"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[18119,66884],{84595:function(n,e,t){t.r(e),t(29305),t(32733),t(84701),t(81678),t(44962),t(4754),t(94),t(36947),t(78557),t(90076),t(83994),t(82367);var r=t(95569),i=t(9164),o=t(65126),u=t(67430),s=(t(1177),{});function c(n){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c(n)}function a(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,f(r.key),r)}}function f(n){var e=function(n){if("object"!=c(n)||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var t=e.call(n,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"==c(e)?e:e+""}t.r(s),t.d(s,{UserSettings:function(){return r.tl},allowedAudioChannels:function(){return r.jY},backdropScreensaverInterval:function(){return r.dE},currentSettings:function(){return r.fe},customCss:function(){return r.xO},dashboardTheme:function(){return r.o1},dateTimeLocale:function(){return r.qn},detailsBanner:function(){return r.rQ},disableCustomCss:function(){return r.$W},enableBackdrops:function(){return r.TB},enableBlurhash:function(){return r.LC},enableCinemaMode:function(){return r.Au},enableFastFadein:function(){return r.XH},enableNextVideoInfoOverlay:function(){return r.u1},enableRewatchingInNextUp:function(){return r.LL},enableThemeSongs:function(){return r.$m},enableThemeVideos:function(){return r.XW},enableVideoRemainingTime:function(){return r.Yg},get:function(){return r.Jt},getComicsPlayerSettings:function(){return r.dg},getFilter:function(){return r.vD},getSavedView:function(){return r.jS},getSortValuesLegacy:function(){return r.I8},getSubtitleAppearanceSettings:function(){return r.kl},language:function(){return r.BH},libraryPageSize:function(){return r.ex},limitSegmentLength:function(){return r.nN},loadQuerySettings:function(){return r.YE},maxDaysForNextUp:function(){return r.pu},preferFmp4HlsContainer:function(){return r.WR},saveQuerySettings:function(){return r.Pp},saveViewSetting:function(){return r.hz},screensaver:function(){return r.sg},screensaverTime:function(){return r.l9},selectAudioNormalization:function(){return r.selectAudioNormalization},serverConfig:function(){return r.sB},set:function(){return r.hZ},setComicsPlayerSettings:function(){return r.tG},setFilter:function(){return r.R6},setSubtitleAppearanceSettings:function(){return r.yO},setUserInfo:function(){return r.iA},skin:function(){return r.WC},skipBackLength:function(){return r.z7},skipForwardLength:function(){return r.nG},slideshowInterval:function(){return r.eB},soundEffects:function(){return r.oq},stillWatchingPrompt:function(){return r.Wf},theme:function(){return r.w4},useEpisodeImagesInNextUpAndResume:function(){return r.sM}});var l=function(){return n=function n(e,t){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.view=e,this.params=t,this.apiClient=u.tF.currentApiClient(),this.sectionsContainer=e.querySelector(".sections"),e.querySelector(".sections").addEventListener("settingschange",h.bind(this))},(e=[{key:"onResume",value:function(n){if(this.sectionsRendered){var e=this.sectionsContainer;return e?o.Ay.resume(e,n):Promise.resolve()}var t=this.view,r=this.apiClient;return this.destroyHomeSections(),this.sectionsRendered=!0,r.getCurrentUser().then((function(n){return o.Ay.loadSections(t.querySelector(".sections"),r,n,s)})).then((function(){n.autoFocus&&i.A.autoFocus(t)})).catch((function(n){console.error(n)}))}},{key:"onPause",value:function(){var n=this.sectionsContainer;n&&o.Ay.pause(n)}},{key:"destroy",value:function(){this.view=null,this.params=null,this.apiClient=null,this.destroyHomeSections(),this.sectionsContainer=null}},{key:"destroyHomeSections",value:function(){var n=this.sectionsContainer;n&&o.Ay.destroySections(n)}}])&&a(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function h(){this.sectionsRendered=!1,this.paused||this.onResume({refresh:!0})}e.default=l}}]);