"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[18119,66884],{66242:function(e,t,n){n.r(t),n(29305),n(32733),n(84701),n(81678),n(44962),n(4754),n(94),n(36947),n(78557),n(90076),n(83994),n(82367);var i=n(82885),o=n(9164),r=n(56213),s=n(67430);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function a(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}n(1177);var l=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.view=t,this.params=n,this.apiClient=s.tF.currentApiClient(),this.sectionsContainer=t.querySelector(".sections"),t.querySelector(".sections").addEventListener("settingschange",f.bind(this))},(t=[{key:"onResume",value:function(e){if(this.sectionsRendered){var t=this.sectionsContainer;return t?r.Ay.resume(t,e):Promise.resolve()}var n=this.view,s=this.apiClient;return this.destroyHomeSections(),this.sectionsRendered=!0,s.getCurrentUser().then((function(e){return r.Ay.loadSections(n.querySelector(".sections"),s,e,i)})).then((function(){e.autoFocus&&o.A.autoFocus(n)})).catch((function(e){console.error(e)}))}},{key:"onPause",value:function(){var e=this.sectionsContainer;e&&r.Ay.pause(e)}},{key:"destroy",value:function(){this.view=null,this.params=null,this.apiClient=null,this.destroyHomeSections(),this.sectionsContainer=null}},{key:"destroyHomeSections",value:function(){var e=this.sectionsContainer;e&&r.Ay.destroySections(e)}}])&&c(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function f(){this.sectionsRendered=!1,this.paused||this.onResume({refresh:!0})}t.default=l}}]);