1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[33001],{3001(t,e,s){s.r(e),s.d(e,{default:()=>o});var i=s(4335),n=s(6105),a=s(640);class o extends i.A{static #t=this.options={dropdownMenuSelector:"js-account-menu-dropdown",additionalClass:"account-menu-offcanvas",offcanvasPostion:"left"};init(){this._dropdown=this.el.parentNode.querySelector(`.${this.options.dropdownMenuSelector}`),this._dropdownWrapper=this.el.parentNode,this._registerEventListeners()}_registerEventListeners(){this.el.addEventListener("click",this._onClickAccountMenuTrigger.bind(this,this.el)),this._dropdownWrapper.addEventListener("show.bs.dropdown",this._onClickPreventDropdown.bind(this)),document.addEventListener("Viewport/hasChanged",this._onViewportHasChanged.bind(this))}_onClickAccountMenuTrigger(){!1!==this._isInAllowedViewports()&&(n.A.open(this._dropdown.innerHTML,null,this.options.offcanvasPostion,!0,n.A.REMOVE_OFF_CANVAS_DELAY()),n.A.setAdditionalClassName(this.options.additionalClass),this.$emitter.publish("onClickAccountMenuTrigger"))}_onClickPreventDropdown(t){!0===this._isInAllowedViewports()&&t.preventDefault()}_onViewportHasChanged(){if(!1===this._isInAllowedViewports()&&n.A.exists()&&n.A.getOffCanvas()[0].classList.contains(this.options.additionalClass)&&n.A.close(),this._dropdown){let t=bootstrap.Dropdown.getInstance(this.el);!0===this._isInAllowedViewports()&&t&&t.hide()}this.$emitter.publish("onViewportHasChanged")}_isInAllowedViewports(){return a.A.isXS()||a.A.isSM()}}},6105(t,e,s){s.d(e,{A:()=>d,r:()=>r});var i=s(8308);let n="js-offcanvas-singleton",a=new WeakMap;class o{constructor(){this.$emitter=new i.A}open(t,e,s,i,n,a,o){this._removeExistingOffCanvas();let r=this._createOffCanvas(s,a,o,i);this.setContent(t,n),this._openOffcanvas(r,e)}setContent(t,e){let s=this.getOffCanvas();s[0]&&(s[0].innerHTML=t,this._registerEvents(e),this._setAriaAttrs())}setAdditionalClassName(t){this.getOffCanvas()[0].classList.add(t)}getOffCanvas(){return document.querySelectorAll(`.${n}`)}close(t){let e=this.getOffCanvas();e.forEach(t=>{bootstrap.Offcanvas.getInstance(t).hide()}),setTimeout(()=>{this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:e})},t)}goBackInHistory(){window.history.back()}exists(){return this.getOffCanvas().length>0}_openOffcanvas(t,e){window.focusHandler.saveFocusState("offcanvas"),this._disableBackgroundAccessibility(t),window.focusHandler._addFocusTrapGuard(t),o.bsOffcanvas.show(),window.history.pushState("offcanvas-open",""),"function"==typeof e&&e()}_registerEvents(t){let e=this.getOffCanvas();e.forEach(s=>{let i=()=>{setTimeout(()=>
1{this._restoreBackgroundState(),s.remove(),window.focusHandler._removeFocusTrapGuard(),window.focusHandler.resumeFocusState("offcanvas"),this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:e})},t),s.removeEventListener("hide.bs.offcanvas",i)};s.addEventListener("hide.bs.offcanvas",i)}),window.addEventListener("popstate",this.close.bind(this,t),{once:!0}),document.querySelectorAll(".js-offcanvas-close").forEach(e=>{e.addEventListener("click",this.close.bind(this,t))})}_setAriaAttrs(){let t=this.getOffCanvas()[0],e="off-canvas-headline",s=t.querySelector(`[data-id="${e}"]`);s&&!t.hasAttribute("aria-labelledby")&&(s.setAttribute("id",e),t.setAttribute("aria-labelledby",e))}_disableBackgroundAccessibility(t){let e=[...document.body.children].filter(e=>e!==t).map(t=>({element:t,inert:t.inert,ariaHidden:t.getAttribute("aria-hidden")}));a.set(this,e),e.forEach(t=>{let{element:e}=t;e.inert=!0,e.setAttribute("aria-hidden","true")})}_restoreBackgroundState(){let t=a.get(this);t?.forEach(t=>{let{element:e,inert:s,ariaHidden:i}=t;if(e.inert=s,null===i){e.removeAttribute("aria-hidden");return}e.setAttribute("aria-hidden",i)}),a.delete(this)}_removeExistingOffCanvas(){this.getOffCanvas().forEach(t=>{let e=bootstrap.Offcanvas.getInstance(t);e&&"function"==typeof e.dispose&&e.dispose(),t.remove(),window.focusHandler._removeFocusTrapGuard()}
1),this._restoreBackgroundState(),o.bsOffcanvas=null}_getPositionClass(t){return"left"===t?"offcanvas-start":"right"===t?"offcanvas-end":`offcanvas-${t}`}_createOffCanvas(t,e,s,i){let a=document.createElement("div");if(a.classList.add("offcanvas",n),a.classList.add(this._getPositionClass(t)),a.setAttribute("tabindex","-1"),!0===e&&a.classList.add("is-fullwidth"),s){let t=typeof s;if("string"===t)a.classList.add(s);else if(Array.isArray(s))s.forEach(t=>{a.classList.add(t)});else throw Error(`The type "${t}" is not supported. Please pass an array or a string.`)}return document.body.appendChild(a),o.bsOffcanvas=new bootstrap.Offcanvas(a,{backdrop:!1!==i||"static"}),a}}let r=Object.freeze(new o);class d{static open(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",i=!(arguments.length>3)||void 0===arguments[3]||arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";r.open(t,e,s,i,n,a,o)}static setContent(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:350;r.setContent(t,e,s)}static setAdditionalClassName(t){r.setAdditionalClassName(t)}static close(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;r.close(t)}static exists(){return r.exists()}static getOffCanvas(){return r.getOffCanvas()}static REMOVE_OFF_CANVAS_DELAY(){return 350}}}}]);
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.