1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8019],{3709:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}function _callSuper(t,o,e){return o=_getPrototypeOf(o),function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!function _isNativeFunction(fn){try{return-1!==Function.toString.call(fn).indexOf("[native code]")}catch(e){return"function"==typeof fn}}(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&_setPrototypeOf(p,r.prototype),p}(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)},_wrapNativeSuper(Class)}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}__webpack_require__(8132),__webpack_require__(3e3),__webpack_require__(7482),__webpack_require__(8604),__webpack_require__(2586),__webpack_require__(3386),__webpack_require__(2975),__webpack_require__(5165),__webpack_require__(5890),__webpack_require__(9650),__webpack_require__(4509);var MenuMobileElement=function(_HTMLElement){function MenuMobileElement(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,MenuMobileElement),_callSuper(this,MenuMobileElement)}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(MenuMobileElement,_HTMLElement),function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}
1),Constructor}(MenuMobileElement,[{key:"connectedCallback",value:function connectedCallback(){var _this=this;this.innerHTML='\n <div class="menu-mobile__functionalities"></div>\n \n <div class="screenCloseContainer">\n <button class="btn btn--closePanel" data-btn-action="menu.mobile.close">\n <it-icon data-icon="close-alt"></it-icon>\n </button>\n </div>\n ',this.classList.add("menu-mobile"),this.$closeBtn=this.querySelector(".btn--closePanel"),this.$closeBtn.addEventListener("click",(function(e){return _this.hideMenu()})),document.addEventListener("menu.mobile.toggle",(function(e){return _this.toggleMenu()})),document.addEventListener("panel.show.pre",(function(e){return _this.hideMenu()}))}},{key:"showMenu",value:function showMenu(){App.$body.classList.add("is-menu-visible")}},{key:"hideMenu",value:function hideMenu(){App.$body.classList.remove("is-menu-visible")}},{key:"toggleMenu",value:function toggleMenu(){App.$body.classList.contains("is-menu-visible")?this.hideMenu():this.showMenu()}}])}(_wrapNativeSuper(HTMLElement));__webpack_require__.g.customElements.define("menu-mobile",MenuMobileElement)},4269:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var js_components_util__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4054);__webpack_require__(5065);const __WEBPACK_DEFAULT_EXPORT__=js_components_util__WEBPACK_IMPORTED_MODULE_0__.J.isMobile()?__webpack_require__(2491).A:__webpack_require__(5617).A},5065:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{c:()=>TopbarModule_Abstract});__webpack_require__(6549),__webpack_require__(489),__webpack_require__(9813),__webpack_require__(9650),__webpack_require__(4509),__webpack_require__(8132),__webpack_require__(3e3),__webpack_require__(1879),__webpack_require__(2642),__webpack_require__(2586),__webpack_require__(2975),__webpack_require__(7482),__webpack_require__(5165),__webpack_require__(5890);var js_components_template__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7204),js_components_event__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(5152),js_components_styleHelper__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1936),js_components_tooltip__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1715),js_components_util__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(4054),js_components_cssVar__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(350),js_components_filter__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(8744),js_src_stats__WEBPACK_IMPORTED_MODULE_22__=(__webpack_require__(8012),__webpack_require__(9929)),js_components_cache__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(1050),js_src_manifest__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(6657),js_src_book__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(3842),js_src_abstractModule__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(4706),js_components_colors__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(46);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _callSuper(t,o,e){return o=_getPrototypeOf(o),function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(target,property,receiver){var base=function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&null!==(object=_getPrototypeOf(object)););return object}(target,property);if(base){var desc=Object.getOwnPropertyDescriptor(base,property);return desc.get?desc.get.call(arguments.length<3?target:receiver):desc.value}},_get.apply(this,arguments)}
1function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}var TopbarModule_Abstract=function(_AbstractModule){function TopbarModule_Abstract(){var _this;return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,TopbarModule_Abstract),function _defineProperty(obj,key,value){return(key=_toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(_this=_callSuper(this,TopbarModule_Abstract),"listFunctionalitiesDisableOnMobile",["goto","fullscreen"]),(this instanceof TopbarModule_Abstract?this.constructor:void 0)===TopbarModule_Abstract&&function(e){throw new TypeError("Cannot construct Abstract instances directly")}(),_this}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(TopbarModule_Abstract,_AbstractModule),function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(TopbarModule_Abstract,[{key:"init",value:function init(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_get(_getPrototypeOf(TopbarModule_Abstract.prototype),"init",this).call(this,options)}},{key:"afterInit",value:function afterInit(){if(null!==AppContext.get("manifest.customizations.logo.url",null)){var customization=js_src_manifest__WEBPACK_IMPORTED_MODULE_24__._.get("customizations"),$logo=document.querySelector("#logo");if(null!==$logo){if($logo.src=js_components_cache__WEBPACK_IMPORTED_MODULE_23__.q.preventCacheUrl([js_src_manifest__WEBPACK_IMPORTED_MODULE_24__._.get("documentUrl"),customization.logo.url].join("")),js_components_util__WEBPACK_IMPORTED_MODULE_18__.J.isDesktop()){var logoHeight=js_components_styleHelper__WEBPACK_IMPORTED_MODULE_16__.W.numberToPx(js_src_manifest__WEBPACK_IMPORTED_MODULE_24__._.get("customizations.logo.size.height",0)),logoWidth=js_components_styleHelper__WEBPACK_IMPORTED_MODULE_16__.W.numberToPx(js_src_manifest__WEBPACK_IMPORTED_MODULE_24__._.get("customizations.logo.size.width",0));js_components_cssVar__WEBPACK_IMPORTED_MODULE_19__.l.setVar(new js_components_cssVar__WEBPACK_IMPORTED_MODULE_19__.Z("logo-height",logoHeight)),js_components_cssVar__WEBPACK_IMPORTED_MODULE_19__.l.setVar(new js_components_cssVar__WEBPACK_IMPORTED_MODULE_19__.Z("logo-width",logoWidth))}null!==customization.logo.link&&($logo.style.cursor="pointer",$logo.addEventListener("click",(function(e){window.open(customization.logo.link,"_blank")}))),$logo.addEventListener("click",(function(e){var endpoint=AppContext.useStatsApi?"logClick":"logo",params=AppContext.useStatsApi?{typeClick:"logo",pageNumber:0,label:""}:[0,"button"];js_src_stats__WEBPACK_IMPORTED_MODULE_22__.U.addStat(endpoint,params,AppContext.useStatsApi)}))}}else App.$body.classList.add("has-no-logo")}},{key:"afterModulesLoaded",value:function afterModulesLoaded(){var _this2=this,listFunctionalitiesExpand=App.Functionalities.getListExpand();(js_components_util__WEBPACK_IMPORTED_MODULE_18__.J.isDesktop()?listFunctionalitiesExpand.length:this.checkExpandMobile(listFunctionalitiesExpand))?listFunctionalitiesExpand.forEac
1h((function(functionality){return _this2.insertFunctionalityButton(functionality,_this2.$functionalityContainer)})):this.$topBar.classList.add("has-no-expand"),App.Functionalities.getListMain().forEach((function(functionality){return _this2.insertFunctionalityButton(functionality,_this2.$mainFunctionalityContainer)}))}},{key:"checkExpandMobile",value:function checkExpandMobile(listFunctionalitiesExpand){var listFunctionalitiesName=[];listFunctionalitiesExpand.forEach((function(functionality){listFunctionalitiesName.push(functionality.name)}));var listBanned=this.listFunctionalitiesDisableOnMobile;return listFunctionalitiesName.filter((function(obj){return-1==listBanned.indexOf(obj)})).length>0}},{key:"insertFunctionalityButton",value:function insertFunctionalityButton(functionality,$container){var funcBtn,_this3=this,btnTag=functionality.btnTag||"functionality-button";if("goto"===functionality.name){if(js_components_util__WEBPACK_IMPORTED_MODULE_18__.J.isMobile())return;funcBtn=js_components_template__WEBPACK_IMPORTED_MODULE_14__.TemplateHelper.htmlToNodeTree('\n <div id="goToPageContainer"">\n <input type="text" class="form-control noSwipe" id="navigationPageNumber">\n <div id="maxPageNumberInput" class="input-group-append">\n <p class="input-group-text"> / <span data-text="page.count"></span></p>\n </div>\n </div>\n '),this.$goToPage=funcBtn.querySelector("#navigationPageNumber"),this.$goToPage.value=js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getMinPageNum();var colorBackground=js_components_colors__WEBPACK_IMPORTED_MODULE_27__.J.isDark(js_src_manifest__WEBPACK_IMPORTED_MODULE_24__._.get("colors.banner"))?"topbar-desktop__btn-container__dark-background":"topbar-desktop__btn-container__light-background";this.$goToPage.classList.add(colorBackground),this.$goToPage.addEventListener("change",(function(e){return _this3.onInputChange(e.currentTarget.value)})),this.$goToPage.addEventListener("click",(function(e){return _this3.onInputClick(e)})),this.$goToPage.addEventListener("keyup",(function(e){if("ArrowUp"===e.key){var incrementedPage=parseInt(_this3.$goToPage.value)+2;_this3.onInputChange(incrementedPage)}if("ArrowDown"===e.key){var decrementedPage=parseInt(_this3.$goToPage.value)-1;_this3.onInputChange(decrementedPage)}})),document.addEventListener("pages.goto.done",(function(){var currentPageNum=js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getCurrentPageNum(),pageNum=currentPageNum<js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getMinPageNum()?js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getMinPageNum():currentPageNum;_this3.$goToPage.value=pageNum}))}else funcBtn=js_components_template__WEBPACK_IMPORTED_MODULE_14__.TemplateHelper.htmlToNodeTree("\n <".concat(btnTag,'\n data-icon="').concat(functionality.icon,'"\n data-title="').concat(functionality.title,'"\n />\n '));funcBtn.addEventListener("click",(function(e){js_components_event__WEBPACK_IMPORTED_MODULE_15__.o.dispatch("app.functionality.click",{event:e,functionality})})),js_components_util__WEBPACK_IMPORTED_MODULE_18__.J.isDesktop()&&""!==functionality.title&&js_components_tooltip__WEBPACK_IMPORTED_MODULE_17__.m.init(funcBtn,functionality.title),$container.appendChild(funcBtn)}},{key:"onInputChange",value:function onInputChange(pageNum){if(js_components_util__WEBPACK_IMPORTED_MODULE_18__.J.isValidPageNumber(pageNum)){(pageNum=js_components_filter__WEBPACK_IMPORTED_MODULE_20__.E.apply("topbar.onInputChange.pageNum",parseInt(pageNum,10),{pageNum}))<js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getMinPageNum()?this.$goToPage.value=js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getMinPageNum():pageNum>js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getMaxPageNum()&&(this.$goToPage.value=js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getMaxPageNum());var endpoint=AppContext.useStatsApi?"logClick":"goto",params=AppContext.useStatsApi?{typeClick:"goto",pageNumber:pageNum,label:""}:[pageNum];js_src_stats__WEBPACK_IMPORTED_MODULE_22__.U.addStat(endpoint,params,AppContext.useStatsApi),pageNum=js_components_util__WEBPACK_IMPORTED_MODULE_18__.J.cap(pageNum,js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getMinPageNum(),js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getMaxPageNum());var pageIndex=js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.pageNumberToPageIndex(pageNum);js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.isSinglePage()||(pageIndex=js_components_util__WEBPACK_IMPORTED_MODULE_18__.J.getLowerEven(pageIndex)),js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.goToPage(pageIndex)}else this.$goToPage.value=js_src_book__WEBPACK_IMPORTED_MODULE_25__.E.getCurrentPageNum
1()}},{key:"onInputClick",value:function onInputClick(e){this.$goToPage.select()}}])}(js_src_abstractModule__WEBPACK_IMPORTED_MODULE_26__.h)},5617:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>TopbarModule_Desktop});__webpack_require__(8132),__webpack_require__(3e3),__webpack_require__(1879),__webpack_require__(2642),__webpack_require__(2586),__webpack_require__(9650),__webpack_require__(4509),__webpack_require__(2975),__webpack_require__(7482),__webpack_require__(5165),__webpack_require__(5890),__webpack_require__(8604),__webpack_require__(3386);var translator=__webpack_require__(9200),styleHelper=__webpack_require__(1936),components_event=__webpack_require__(5152),cssVar=__webpack_require__(350),stats=__webpack_require__(9929),manifest=__webpack_require__(6657),slidingBanner=__webpack_require__(5125),previewUtils=__webpack_require__(196),dialog=__webpack_require__(1718);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}function _callSuper(t,o,e){return o=_getPrototypeOf(o),function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!function _isNativeFunction(fn){try{return-1!==Function.toString.call(fn).indexOf("[native code]")}catch(e){return"function"==typeof fn}}(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&_setPrototypeOf(p,r.prototype),p}(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)},_wrapNativeSuper(Class)}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}var TopbarDesktopElement=function(_HTMLElement){function TopbarDesktopElement(){var _this;return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,TopbarDesktopElement),_this=_callSuper(this,TopbarDesktopElement),slidingBanner.N.initPreviewContext(),_this.hasSlidingBanner=slidingBanner.N.hasSli
1dingBanner(),_this.hasSlidingBanner&&document.addEventListener("app.book.ready",(function(){_this.updateSlidingBannerWidth()})),_this}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(TopbarDesktopElement,_HTMLElement),function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(TopbarDesktopElement,[{key:"updateSlidingBannerWidth",value:function updateSlidingBannerWidth(){cssVar.l.setVars([new cssVar.Z("sliding-banner-width",styleHelper.W.getElementDimensions(this.$slidingBanner).width),new cssVar.Z("right-to-left-start",styleHelper.W.getElementDimensions(this.$slidingBanner).width+"px"),new cssVar.Z("sliding-banner-text-width",styleHelper.W.getElementDimensions(this.$slidingBannerText).width),new cssVar.Z("right-to-left-end",-1*styleHelper.W.getElementDimensions(this.$slidingBannerText).width+"px")])}},{key:"hasLogo",value:function hasLogo(){return!!AppContext.get("manifest.customizations.logo.url")}},{key:"hasRestrictedAccessAlert",value:function hasRestrictedAccessAlert(){return!AppContext.get("isPublished")&&!previewUtils.u.isPreviewContext()}},{key:"connectedCallback",value:function connectedCallback(){var _this2=this,hasLogo=this.hasLogo();hasLogo&&App.$body.classList.add("has-logo"),this.innerHTML=(hasLogo?'<div class="topbar-desktop__logo">\n <img id="logo" class="topbar-desktop__logo__img" src="" alt="" />\n </div>':'<div class="topbar-desktop__nologo"></div>')+'<div class="topbar-desktop__right">'+(this.hasSlidingBanner?'<div class="topbar-desktop__slidingBanner">\n <div class="topbar-desktop__slidingBanner__container">\n <p class="topbar-desktop__slidingBanner__text"></p>\n </div>\n </div>':"<div></div>")+'<div class="topbar-desktop__btn-container">\n <button class="topbar-desktop__expand-btn btn" data-btn-action="topbar.expand" aria-label="'.concat(translator.r.trans("global.expand"),'" role="">\n <it-icon data-icon="expand"></it-icon>\n </button>\n <div class="topbar-desktop__btn-container__expand"></div>\n <div class="topbar-desktop__btn-container__main"></div>\n </div>\n </div>\n '),this.classList.add("topbar-desktop");var iconSize=AppContext.get("manifest.customizations.icon.size","medium");App.$body.classList.add("has-".concat(iconSize,"-icons")),this.$btnContainer=this.querySelector(".topbar-desktop__btn-container"),this.$expandBtn=this.querySelector('[data-btn-action="topbar.expand"]'),this.$expandBtn.addEventListener("click",(function(e){return _this2.toggleExpand()})),this.initLogo(),this.initSlidingBanner(),this.initAlertMessage()}},{key:"initLogo",value:function initLogo(){if(this.hasLogo()){var logoHeight=manifest._.get("customizations.logo.size.height",0);logoHeight>90?App.$body.classList.add("has-big-logo"):0===logoHeight&&App.$body.classList.add("has-no-logo-size")}}},{key:"initSlidingBanner",value:function initSlidingBanner(){var _this3=this;this.hasSlidingBanner&&(this.$slidingBanner=this.querySelector(".topbar-desktop__slidingBanner"),this.$slidingBannerText=this.querySelector(".topbar-desktop__slidingBanner__text"),this.$slidingBannerText.addEventListener("click",(function(e){var endpoint=AppContext.useStatsApi?"logClick":"scrollingMessage",label=slidingBanner.N.getText(),params=AppContext.useStatsApi?{typeClick:"scrollingMessage",pageNumber:0,label}:[label];stats.U.addStat(endpoint,params,AppContext.useStatsApi)})),slidingBanner.N.setBodyClass(),this.$slidingBanner.style.display="block",this.$slidingBannerText.innerHTML=slidingBanner.N.getText(),slidingBanner.N.hasColor()&&
1(this.$slidingBannerText.style.color=slidingBanner.N.getColor()),slidingBanner.N.hasLink()&&(this.$slidingBannerText.classList.add("has-link"),this.$slidingBannerText.addEventListener("click",(function(e){slidingBanner.N.openLink()}))),window.addEventListener("resize",(function(){_this3.updateSlidingBannerWidth()})))}},{key:"initAlertMessage",value:function initAlertMessage(){this.hasRestrictedAccessAlert()&&document.addEventListener("app.book.show",(function(){dialog.$.alertMessage({content:translator.r.trans("modules.topbar.restrictedAccess"),type:"warning",icon:"fas fa-lock",duration:5e3,dismissable:!0})}))}},{key:"toggleExpand",value:function toggleExpand(){this.classList.toggle("is-expanded"),components_event.o.dispatch("resize",{},window);var ariaLabel=this.classList.contains("is-expanded")?translator.r.trans("global.reduce"):translator.r.trans("global.expand");this.$expandBtn.setAttribute("aria-label",ariaLabel)}}])}(_wrapNativeSuper(HTMLElement));function topbar_desktop_typeof(o){return topbar_desktop_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},topbar_desktop_typeof(o)}function topbar_desktop_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,topbar_desktop_toPropertyKey(descriptor.key),descriptor)}}function topbar_desktop_toPropertyKey(t){var i=function topbar_desktop_toPrimitive(t,r){if("object"!=topbar_desktop_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=topbar_desktop_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==topbar_desktop_typeof(i)?i:i+""}function topbar_desktop_callSuper(t,o,e){return o=topbar_desktop_getPrototypeOf(o),function topbar_desktop_possibleConstructorReturn(self,call){if(call&&("object"===topbar_desktop_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");
1return function topbar_desktop_assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(t,topbar_desktop_isNativeReflectConstruct()?Reflect.construct(o,e||[],topbar_desktop_getPrototypeOf(t).constructor):o.apply(t,e))}function topbar_desktop_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(topbar_desktop_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(target,property,receiver){var base=function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&null!==(object=topbar_desktop_getPrototypeOf(object)););return object}(target,property);if(base){var desc=Object.getOwnPropertyDescriptor(base,property);return desc.get?desc.get.call(arguments.length<3?target:receiver):desc.value}},_get.apply(this,arguments)}function topbar_desktop_getPrototypeOf(o){return topbar_desktop_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},topbar_desktop_getPrototypeOf(o)}function topbar_desktop_setPrototypeOf(o,p){return topbar_desktop_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},topbar_desktop_setPrototypeOf(o,p)}__webpack_require__.g.customElements.define("topbar-desktop",TopbarDesktopElement);var TopbarModule_Desktop=function(_TopbarModule_Abstrac){function TopbarModule_Desktop(){return function to
1pbar_desktop_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,TopbarModule_Desktop),topbar_desktop_callSuper(this,TopbarModule_Desktop,arguments)}return function topbar_desktop_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&topbar_desktop_setPrototypeOf(subClass,superClass)}(TopbarModule_Desktop,_TopbarModule_Abstrac),function topbar_desktop_createClass(Constructor,protoProps,staticProps){return protoProps&&topbar_desktop_defineProperties(Constructor.prototype,protoProps),staticProps&&topbar_desktop_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(TopbarModule_Desktop,[{key:"init",value:function init(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_get(topbar_desktop_getPrototypeOf(TopbarModule_Desktop.prototype),"init",this).call(this,options),this.$parentContainer=document.querySelector("#app"),this.$topBar=this.render(),this.append(),this.$functionalityContainer=this.$topBar.querySelector(".topbar-desktop__btn-container__expand"),this.$mainFunctionalityContainer=this.$topBar.querySelector(".topbar-desktop__btn-container__main")}},{key:"render",value:function render(){return document.createElement("topbar-desktop")}},{key:"append",value:function append(){this.$parentContainer.appendChild(this.$topBar)}}])}(__webpack_require__(5065).c)},2491:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>TopbarModule_Mobile});__webpack_require__(8132),__webpack_require__(3e3),__webpack_require__(1879),__webpack_require__(2642),__webpack_require__(2586),__webpack_require__(9650),__webpack_require__(4509),__webpack_require__(2975),__webpack_require__(7482),__webpack_require__(5165),__webpack_require__(5890),__webpack_require__(8604),__webpack_require__(3386);var components_event=__webpack_require__(5152),template=__webpack_require__(7204),slidingBanner=__webpack_require__(5125),functionality_button_element=__webpack_require__(8012),tooltip=__webpack_require__(1715),stats=__webpack_require__(9929);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}function _callSuper(t,o,e){return o=_getPrototypeOf(o),function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}
1function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}var SlidingBanner_FunctionalityButtonElement=function(_FunctionalityButtonE){function SlidingBanner_FunctionalityButtonElement(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,SlidingBanner_FunctionalityButtonElement),_callSuper(this,SlidingBanner_FunctionalityButtonElement)}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(SlidingBanner_FunctionalityButtonElement,_FunctionalityButtonE),function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(SlidingBanner_FunctionalityButtonElement,[{key:"connectedCallback",value:function connectedCallback(){var _this=this;this.innerHTML='\n <button class="btn functionality-button__btn functionality-button__btn--slidingBanner">\n <it-icon class="blur" data-icon="bell"></it-icon>\n <it-icon class="active" data-icon="bell-active"></it-icon>\n </button>\n ';var $tooltipContent=template.TemplateHelper.htmlToNodeTree('\n <div class="slidingBannerMobile__tooltip">\n <p>'.concat(slidingBanner.N.getText(),"</p>\n </div>\n "));slidingBanner.N.hasLink()&&(this.$linkBtn=template.TemplateHelper.appendHtml('\n <button class="btn slidingBannerMobile__btn">\n <it-icon data-icon="arrow-right-alt"></it-icon>\n </button>\n ',$tooltipContent),this.$linkBtn.addEventListener("click",(function(e){slidingBanner.N.openLink()}))),slidingBanner.N.hasColor()&&($tooltipContent.style.color=slidingBanner.N.getColor()),this.tooltip=tooltip.m.init(this,$tooltipContent,{trigger:"manual",hideOnClick:!1,appendTo:this,interactive:!0,zIndex:99999,onShow:function onShow(){return _this.onTooltipShow()},onHide:function onHide(){return _this.onTooltipHide()}}),this.addEventListener("click",(function(e){return _this.onClick(e)})),this.classList.add("functionality-button","functionality-button--slidingBannerMobile","slidingBannerMobile")}},{key:"onClick",value:function onClick(e){this.toggleTooltip();var endpoint=AppContext.useStatsApi?"logClick":"scrollingMessage",label=slidingBanner.N.getText(),params=AppContext.useStatsApi?{typeClick:"scrollingMessage",pageNumber:0,label}:[label];stats.U.addStat(endpoint,params,AppContext.useStatsApi)}},{key:"toggleTooltip",value:function toggleTooltip(){this.tooltip.state.isVisible?this.tooltip.hide():this.tooltip.show()}},{key:"onTooltipShow",value:function onTooltipShow(){this.classList.add("is-active")}},{key:"onTooltipHide",value:function onTooltipHide(){this.classList.remove("is-active")}}])}(functionality_button_element.a);
1function topbar_mobile_element_typeof(o){return topbar_mobile_element_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},topbar_mobile_element_typeof(o)}function topbar_mobile_element_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,topbar_mobile_element_toPropertyKey(descriptor.key),descriptor)}}function topbar_mobile_element_toPropertyKey(t){var i=function topbar_mobile_element_toPrimitive(t,r){if("object"!=topbar_mobile_element_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=topbar_mobile_element_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==topbar_mobile_element_typeof(i)?i:i+""}function topbar_mobile_element_callSuper(t,o,e){return o=topbar_mobile_element_getPrototypeOf(o),function topbar_mobile_element_possibleConstructorReturn(self,call){if(call&&("object"===topbar_mobile_element_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");
1return function topbar_mobile_element_assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(t,topbar_mobile_element_isNativeReflectConstruct()?Reflect.construct(o,e||[],topbar_mobile_element_getPrototypeOf(t).constructor):o.apply(t,e))}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!function _isNativeFunction(fn){try{return-1!==Function.toString.call(fn).indexOf("[native code]")}catch(e){return"function"==typeof fn}}(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return function _construct(t,e,r){if(topbar_mobile_element_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&topbar_mobile_element_setPrototypeOf(p,r.prototype),p}(Class,arguments,topbar_mobile_element_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),topbar_mobile_element_setPrototypeOf(Wrapper,Class)},_wrapNativeSuper(Class)}function topbar_mobile_element_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(topbar_mobile_element_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function topbar_mobile_element_setPrototypeOf(o,p){return topbar_mobile_element_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},topbar_mobile_element_setPrototypeOf(o,p)}function topbar_mobile_element_getPrototypeOf(o){return topbar_mobile_element_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},topbar_mobile_element_getPrototypeOf(o)}__webpack_require__.g.customElements.define("sliding-banner-functionality-button",SlidingBanner_FunctionalityButtonElement);var TopbarMobileElement=function(_HTMLElement){function TopbarMobileElement(){return function to
1pbar_mobile_element_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,TopbarMobileElement),topbar_mobile_element_callSuper(this,TopbarMobileElement)}return function topbar_mobile_element_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&topbar_mobile_element_setPrototypeOf(subClass,superClass)}(TopbarMobileElement,_HTMLElement),function topbar_mobile_element_createClass(Constructor,protoProps,staticProps){return protoProps&&topbar_mobile_element_defineProperties(Constructor.prototype,protoProps),staticProps&&topbar_mobile_element_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(TopbarMobileElement,[{key:"connectedCallback",value:function connectedCallback(){var _this=this;this.innerHTML='\n <div class="topbar-mobile__int">'+(AppContext.get("manifest.customizations.logo.url")?'<div class="topbar-mobile__logo">\n <div class="topbar-mobile__logo__flexfix">\n <img id="logo" class="topbar-mobile__logo__img" src="" alt="" />\n </div>\n </div>':"")+'<div class="topbar-mobile__btn-container">\n <button class="topbar-mobile__btn topbar-mobile__btn--toggleMenu btn" data-btn-action="menu.toggle">\n <it-icon data-icon="expand" data-rotate="90"></it-icon>\n </button>\n </div>\n </div>\n ',this.classList.add("topbar-mobile"),this.$btnToggleMenu=this.querySelector('[data-btn-action="menu.toggle"]'),this.$btnContainer=this.querySelector(".topbar-mobile__btn-container"),slidingBanner.N.hasSlidingBanner()&&template.TemplateHelper.prependHtml("<sliding-banner-functionality-button></sliding-banner-functionality-button>",this.$btnContainer),this.$btnToggleMenu.addEventListener("click",(function(e){return _this.triggerMenuToggle()}))}},{key:"triggerMenuToggle",value:function triggerMenuToggle(){components_event.o.dispatch("menu.mobile.toggle")}}])}(_wrapNativeSuper(HTMLElement));__webpack_require__.g.customElements.define("topbar-mobile",TopbarMobileElement);__webpack_require__(3709);
1function topbar_mobile_typeof(o){return topbar_mobile_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},topbar_mobile_typeof(o)}function topbar_mobile_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,topbar_mobile_toPropertyKey(descriptor.key),descriptor)}}function topbar_mobile_toPropertyKey(t){var i=function topbar_mobile_toPrimitive(t,r){if("object"!=topbar_mobile_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=topbar_mobile_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==topbar_mobile_typeof(i)?i:i+""}function topbar_mobile_callSuper(t,o,e){return o=topbar_mobile_getPrototypeOf(o),function topbar_mobile_possibleConstructorReturn(self,call){if(call&&("object"===topbar_mobile_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");
1return function topbar_mobile_assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(t,topbar_mobile_isNativeReflectConstruct()?Reflect.construct(o,e||[],topbar_mobile_getPrototypeOf(t).constructor):o.apply(t,e))}function topbar_mobile_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(topbar_mobile_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(target,property,receiver){var base=function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&null!==(object=topbar_mobile_getPrototypeOf(object)););return object}(target,property);if(base){var desc=Object.getOwnPropertyDescriptor(base,property);return desc.get?desc.get.call(arguments.length<3?target:receiver):desc.value}},_get.apply(this,arguments)}function topbar_mobile_getPrototypeOf(o){return topbar_mobile_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},topbar_mobile_getPrototypeOf(o)}function topbar_mobile_setPrototypeOf(o,p){return topbar_mobile_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},topbar_mobile_setPrototypeOf(o,p)}var TopbarModule_Mobile=function(_TopbarModule_Abstrac){function TopbarModule_Mobile(){return function to
1pbar_mobile_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,TopbarModule_Mobile),topbar_mobile_callSuper(this,TopbarModule_Mobile,arguments)}return function topbar_mobile_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&topbar_mobile_setPrototypeOf(subClass,superClass)}(TopbarModule_Mobile,_TopbarModule_Abstrac),function topbar_mobile_createClass(Constructor,protoProps,staticProps){return protoProps&&topbar_mobile_defineProperties(Constructor.prototype,protoProps),staticProps&&topbar_mobile_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(TopbarModule_Mobile,[{key:"init",value:function init(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_get(topbar_mobile_getPrototypeOf(TopbarModule_Mobile.prototype),"init",this).call(this,options);var $app=document.querySelector("#app");this.$topBar=document.createElement("topbar-mobile"),$app.appendChild(this.$topBar),this.$menuMobile=document.createElement("menu-mobile"),$app.appendChild(this.$menuMobile),this.$functionalityContainer=this.$menuMobile.querySelector(".menu-mobile__functionalities"),this.$mainFunctionalityContainer=this.$topBar.querySelector(".topbar-mobile__btn-container")}}])}(__webpack_require__(5065).c)},1718:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>DialogHelper});__webpack_require__(341),__webpack_require__(9650),__webpack_require__(4509),__webpack_require__(7482),__webpack_require__(6517),__webpack_require__(2975),__webpack_require__(5165),__webpack_require__(5890),__webpack_require__(3863),__webpack_require__(5853),__webpack_require__(489);var js_components_template__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(7204),js_components_translator__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9200);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}
1(t,"string");return"symbol"==_typeof(i)?i:i+""}var Dialog=function(){return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}((function Dialog(type,options){var _options$input,_options$duration;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Dialog),this.type=type,this.options=options,this.title=options.title||null,this.content=options.content,this.yesLabel=void 0===options.yesLabel?js_components_translator__WEBPACK_IMPORTED_MODULE_12__.r.trans("global.yes"):options.yesLabel,this.noLabel=void 0===options.noLabel?js_components_translator__WEBPACK_IMPORTED_MODULE_12__.r.trans("global.no"):options.noLabel,this.input=null!==(_options$input=options.input)&&void 0!==_options$input?_options$input:null,this.resolve=options.resolve,this.reject=options.reject,this.toastDuration=null!==(_options$duration=options.duration)&&void 0!==_options$duration?_options$duration:5e3,this.$modal=null,this.$inputWrapper=null,this._onKeyDown=null,this.render()}),[{key:"_getContent",value:function _getContent(){return"string"==typeof this.content?js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.htmlToNodeTree("<span>".concat(this.content,"</span>")):this.content}},{key:"render",value:function render(){var _this$input,_this=this;if("alertMessage"===this.type){var _this$options$type,_this$options$icon,_this$options$dismiss,_this$options$duratio,type=null!==(_this$options$type=this.options.type)&&void 0!==_this$options$type?_this$options$type:"primary",icon=null!==(_this$options$icon=this.options.icon)&&void 0!==_this$options$icon?_this$options$icon:null,dismissable=null===(_this$options$dismiss=this.options.dismissable)||void 0===_this$options$dismiss||_this$options$dismiss,duration=null!==(_this$options$duratio=this.options.duration)&&void 0!==_this$options$duratio?_this$options$duratio:5e3;if(this.$modal=document.createElement("div"),this.$modal.classList.add("alert","alert-message","alert-message--".concat(type),"fade","show"),this.$modal.setAttribute("role","alert"),icon){var _i$classList,i=document.createElement("i");(_i$classList=i.classList).add.apply(_i$classList,_toConsumableArray(icon.split(" "))),this.$modal.appendChild(i)}if(this.$modal.appendChild(this._getContent()),dismissable){var btn=document.createElement("button");btn.type="button",btn.classList.add("close"),btn.dataset.dismiss="alert",btn.setAttribute("aria-label",js_components_translator__WEBPACK_IMPORTED_MODULE_12__.r.trans("global.close"));var span=document.createElement("span");span.setAttribute("aria-hidden","true"),span.appendChild(document.createTextNode("Ã")),btn.appendChild(span),btn.addEventListener("click",(function(){return _this.softRemove()})),this.$modal.appendChild(btn)}return document.body.appendChild(this.$modal),void(duration&&setTimeout((function(){return _this.softRemove()}),duration))}if("toast"===this.type)return this.$modal=js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.htmlToNodeTree('\n <div class="toast-message">\n <div class="toast-content">\n <div class="toast-body"></div>\n <button class="toast-close">â</button>\n </div>\n </div>\n '),js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.append(this._getContent(),this.$modal.querySelector(".toast-body")),this.$modal.querySelector(".toast-close").addEventListener("click",(function(){return _this.softRemove()})),js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.append(this.$modal,document.body),void setTimeout((function(){return _this.softRemove()}),this.toastDuration);this.$modal=js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.htmlToNodeTree('\n <div class="modal show"\n tabindex="-1"\n role="dialog"\n data-backdrop="static">\n <div class="modal-dialog modal-sm">\n <div class="modal-content text-center">\n <div class="modal-header">\n <h2 class="modal-title">'.concat(this.title,'</h2>\n </div>\n <div class="modal-body">\n <div class="modal-body__content"></div>\n </div>\n <div class="modal-footer">\n <div class="w-100 text-center"></div>\n </div>\n </div>\n </div>\n </div>\n '));var _this$input$value,$content=this.$modal.querySelector(".modal-body__content");(js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.append(this._getContent(),$content),"email"===(null===(_this$input=this.input)||void 0===_this$input?void 0:_this$input.type))&&(this.$inputWrapper=js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.htmlToNodeTree('\n <div class="form-group mt-3 text-left">\n <input type="email"\n class="form-control"\n value="'.concat(null!==(_this$input$value=this.input.value)&&void 0!==_this$input$value?_this$input$value:"",'"\n required />\n </div>\n ')),js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.append(this.$inputWrapper,$content));var $btnContainer=this.$modal.querySelector(".modal-footer div");this.$yesBtn=js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.htmlToNodeTree('\n <button class="btn btn-global modal__btn modal__btn--yes">\n '.concat(this.yesLabel,"\n </button>\n ")),this.$yesBtn.addEventListener("click",(function(e){return _this.onYesBtnClick(e)})),js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.append(this.$
1yesBtn,$btnContainer),"confirm"!==this.type&&"promptEmail"!==this.type||(this.$noBtn=js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.htmlToNodeTree('\n <button class="btn btn-link modal__btn modal__btn--no">\n '.concat(this.noLabel,"\n </button>\n ")),this.$noBtn.addEventListener("click",(function(){return _this.onNoBtnClick()})),js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.append(this.$noBtn,$btnContainer)),js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.append(this.$modal,document.body),this.show()}},{key:"show",value:function show(){var _this2=this;this.$modal&&(this.$modal.focus(),this._onKeyDown=function(e){"Escape"===e.key&&"promptEmail"===_this2.type&&(e.stopPropagation(),e.preventDefault(),_this2.onNoBtnClick())},document.addEventListener("keydown",this._onKeyDown,!0))}},{key:"remove",value:function remove(){this._onKeyDown&&(document.removeEventListener("keydown",this._onKeyDown,!0),this._onKeyDown=null),js_components_template__WEBPACK_IMPORTED_MODULE_11__.TemplateHelper.destroy(this.$modal),this.$modal=null}},{key:"softRemove",value:function softRemove(){var _this3=this;if(this.$modal){var el=this.$modal;el.classList.remove("show"),el.classList.add("fade-out");var remove=function remove(){el.parentNode&&el.parentNode.removeChild(el),_this3.$modal=null};el.addEventListener("animationend",remove,{once:!0}),setTimeout(remove,600)}}},{key:"onYesBtnClick",value:function onYesBtnClick(e){if(this.$inputWrapper){var input=this.$inputWrapper.querySelector("input");return input.checkValidity()?void this.resolve({dialog:this,value:input.value}):void input.reportValidity()}this.resolve(this),this.remove()}},{key:"onNoBtnClick",value:function onNoBtnClick(){this.reject(this),this.remove()}}])}(),DialogHelper={alert:function alert(_ref){var title=_ref.title,content=_ref.content,_ref$yesLabel=_ref.yesLabel,yesLabel=void 0===_ref$yesLabel?void 0:_ref$yesLabel;return new Promise((function(_resolve){new Dialog("alert",{title,content,yesLabel,resolve:function resolve(dialog){return _resolve(dialog)},reject:function reject(){}})}))},confirm:function confirm(_ref2){var title=_ref2.title,content=_ref2.content,_ref2$yesLabel=_ref2.yesLabel,yesLabel=void 0===_ref2$yesLabel?void 0:_ref2$yesLabel,_ref2$noLabel=_ref2.noLabel,noLabel=void 0===_ref2$noLabel?void 0:_ref2$noLabel;return new Promise((function(_resolve2,_reject){new Dialog("confirm",{title,content,yesLabel,noLabel,resolve:function resolve(dialog){return _resolve2(dialog)},reject:function reject(dialog){return _reject(dialog)}})}))},promptEmail:function promptEmail(_ref3){var title=_ref3.title,content=_ref3.content,_ref3$yesLabel=_ref3.yesLabel,yesLabel=void 0===_ref3$yesLabel?void 0:_ref3$yesLabel,_ref3$noLabel=_ref3.noLabel,noLabel=void 0===_ref3$noLabel?void 0:_ref3$noLabel,_ref3$defaultValue=_ref3.defaultValue,defaultValue=void 0===_ref3$defaultValue?"":_ref3$defaultValue;return new Promise((function(resolve,reject){new Dialog("promptEmail",{title,content,yesLabel,noLabel,input:{type:"email",label:js_components_translator__WEBPACK_IMPORTED_MODULE_12__.r.trans("global.email"),value:defaultValue},resolve,reject})}))},toast:function toast(_ref4){var content=_ref4.content,_ref4$duration=_ref4.duration,duration=void 0===_ref4$duration?5e3:_ref4$duration;return new Promise((function(resolve){new Dialog("toast",{content,duration,resolve,reject:function reject(){}})}))},alertMessage:function alertMessage(_ref5){var content=_ref5.content,type=_ref5.type,icon=_ref5.icon,duration=_ref5.duration,dismissable=_ref5.dismissable;return new Promise((function(resolve){new Dialog("alertMessage",{content,type,icon,duration,dismissable,resolve,reject:function reject(){}})}))},alertCallback:function alertCallback(options,onConfirm,onRefuse){return this.alert(options).then((function(dialog){return onConfirm(dialog)})).catch((function(dialog){return onRefuse(dialog)}))},confirmCallback:function confirmCallback(options,onConfirm,onRefuse){return this.confirm(options).then((function(dialog){return onConfirm(dialog)})).catch((function(dialog){return onRefuse(dialog)}))}}},1715:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{m:()=>Tooltip});__webpack_require__(9650),__webpack_require__(4509),__webpack_require__(8647),__webpack_require__(9813),__webpack_require__(2642),__webpack_require__(4614),__webpack_require__(2975),__webpack_require__(7482),__webpack_require__(5165),__webpack_require__(5890);var tippy_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(4504);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}
1(t,"string");return"symbol"==_typeof(i)?i:i+""}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Tooltip={init:function init(listItems){var textContent=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null===textContent&&(textContent=this.getItemTextContent),(0,tippy_js__WEBPACK_IMPORTED_MODULE_10__.Ay)(listItems,function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({ignoreAttributes:!0,arrow:!0,duration:null,content:textContent,plugins:[tippy_js__WEBPACK_IMPORTED_MODULE_10__.M],onTrigger:function onTrigger(instance,event){instance.setContent(textContent)}},options))},getItemTextContent:function getItemTextContent($item){var text=$item.dataset.tooltipText;return void 0===text?"":text}}},4706:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{h:()=>AbstractModule});__webpack_require__(9650),__webpack_require__(4509),__webpack_require__(2975),__webpack_require__(7482),__webpack_require__(5165),__webpack_require__(5890);var js_components_util__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4054);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}var AbstractModule=function(){return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}((function AbstractModule(){!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,AbstractModule),function _defineProperty(obj,key,value){return(key=_toPropertyKey(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}(this,"options",{}),(this instanceof AbstractModule?this.constructor:void 0)===AbstractModule&&function(e){throw new TypeError("Cannot construct Abstract instances directly")}()}),[{key:"init",value:function init(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.storeOptions(options)}},{key:"afterInit",value:function afterInit(){}},{key:"onBookReady",value:function onBookReady(){}},{key:"storeOptions",value:function storeOptions(options){this.options=options}},{key:"getOption",value:function getOption(optionKey){var fallback=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_var=js_components_util__WEBPACK_IMPORTED_MODULE_6__.J.resolveVar(optionKey,this.options);return null!=_var?_var:fallback}}])}()},5125:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{N:()=>SlidingBannerHelper});var js_src_manifest__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6657),SlidingBannerHelper={hasSlidingBanner:function hasSlidingBanner(){return null!==this.getText()},getText:function getText(){return js_src_manifest__WEBPACK_IMPORTED_MODULE_0__._.get("customizations.slidingBanner.text")},isPreviewInitContext:function isPreviewInitContext(){return void 0!==AppContext.preview&&null!==AppContext.preview&&this.isInitPreviewText()},isInitPreviewText:function isInitPreviewText(inputText){var text=inputText||this.getText();return null===text||"__init_preview__"===text},initPreviewContext:function initPreviewContext(){this.isPreviewInitContext()&&(AppContext.manifest.customizations.slidingBanner.text="__init_preview__",AppContext.manifest.customizations.slidingBanner.color="transparent")},setBodyClass:function setBodyClass(){this.isPreviewInitContext()?App.$body.classList.add("has-slidingBanner-init-preview"):App.$body.classList.add("has-slidingBanner")},toggleBodyClass:function toggleBodyClass(isEmptyText){!0===isEmptyText?App.$body.classList.remove("has-slidingBanner"):(App.$body.classList.remove("has-slidingBanner-init-preview"),App.$body.classList.add("has-slidingBanner"))},hasLink:function hasLink(){return!!this.getLink()},getLink:function getLink(){return js_src_manifest__WEBPACK_IMPORTED_MODULE_0__._.get("customizations.slidingBanner.link")},openLink:function openLink(){window.open(this.getLink(),"_blank")},hasColor:function hasColor(){return!!this.getColor()},getColor:function getColor(){return js_src_manifest__WEBPACK_IMPORTED_MODULE_0__._.get("customizations.slidingBanner.color")}}},8012:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{a:()=>FunctionalityButtonElement});__webpack_require__(8132),__webpack_require__(3e3),__webpack_require__(7482),__webpack_require__(8604),__webpack_require__(2586),__webpack_require__(3386),__webpack_require__(2975),__webpack_require__(5165),__webpack_require__(5890),__webpack_require__(9650),__webpack_require__(4509);var js_components_util__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(4054),js_src_class_iconHelper__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6284),js_components_template__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7204);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}
1(t,"string");return"symbol"==_typeof(i)?i:i+""}function _callSuper(t,o,e){return o=_getPrototypeOf(o),function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e))}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!function _isNativeFunction(fn){try{return-1!==Function.toString.call(fn).indexOf("[native code]")}catch(e){return"function"==typeof fn}}(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&_setPrototypeOf(p,r.prototype),p}(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)},_wrapNativeSuper(Class)}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}var FunctionalityButtonElement=function(_HTMLElement){function FunctionalityButtonElement(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,FunctionalityButtonElement),_callSuper(this,FunctionalityButtonElement)}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(FunctionalityButtonElement,_HTMLElement),function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(FunctionalityButtonElement,[{key:"connectedCallback",value:function connectedCallback(){this.innerHTML='\n <button class="btn functionality-button__btn" aria-label="'.concat(this.dataset.title,'" role>')+(js_components_util__WEBPACK_IMPORTED_MODULE_11__.J.isMobile()?'<span class="functionality-button__btn__text">'.concat(this.dataset.title,"</span>"):"")+"</button>\n ",js_components_template__WEBPACK_IMPORTED_MODULE_13__.TemplateHelper.prepend(js_src_class_iconHelper__WEBPACK_IMPORTED_MODULE_12__.IconHelper.create(this.dataset.icon),this.querySelector(".btn")),this.classList.add("functionality-button")}}])}(_wrapNativeSuper(HTMLElement));__webpack_require__.g.customElements.define("functionality-button",FunctionalityButtonElement)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.