1(self.webpackChunkapp_project=self.webpackChunkapp_project||[]).push([[5344],{90810:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var o=n(10948),a=n(14863),s=n(12737),i=n(79510);const r=n(66462);class c extends o.default{get SELECTORS(){return{rootContent:".contenent_out-of-stock_panel",notifyButton:".js-notify-when-available",panel:".out-of-stock_panel",sidePanel:".side-panel__inner.open"}}get CLASSES(){return{keyboardInteraction:"keyboard-interaction",mouseInteraction:"mouse-interaction"}}get KEYBOARD_INPUT(){return"keyboard"===this.html.dataset.whatintent||this.body.classList.contains(this.CLASSES.keyboardInteraction)}constructor(t){super(t),this.contentUrl=this.element.dataset.url,this.contentRoot=this.element.querySelector(this.SELECTORS.rootContent),this.currentItem,this.body=document.body,this.html=document.documentElement,this._bindEventListener([...document.querySelectorAll(this.SELECTORS.notifyButton)]),s.Z.on("notifyWhenAvailable:buttonCreated",(t=>{t.forEach((t=>{this._bindEventListener([t.querySelector(this.SELECTORS.notifyButton)])}))})),t.addEventListener("keydown",this.keyboardHandler.bind(this)),s.Z.on("notifyWhenAvailable:clickedFrom3DBagsVTO",(t=>{this.createModal(t.dataset.id),this.currentItem=t,super.open()}))}_bindEventListener(t){(t||[]).forEach((t=>{if(t){const e=t.queryParentsByDataAttribute("component","ProductInformations"),n=()=>{e.componentInstance.validate()&&(this.createModal(t.dataset.id),this.currentItem=t,super.open(),this.panelProductInformation=document.querySelector(".side-panel-product-information.open"),this.panelProductInformation&&s.Z.emit("panel:closeProductInfo"))};t.removeEventListener("click",n),t.addEventListener("click",n)}}))}keyboardHandler(t){t&&t.key&&t.key.toUpperCase()===i.hY&&(t.preventDefault(),t.stopPropagation(),this.close())}async createModal(t){s.Z.emit("loader:start",{element:this.contentRoot});const e=await(0,a.ZP)(this.contentUrl+"?id="+t,{method:"GET"}),n=await e.text();this.contentRoot.innerHTML=n,s.Z.emit("loader:end",{element:this.contentRoot}),s.Z.emit("sidepanel:contentLoaded");const o=this.element.querySelector(".js-side-panel__close-modal-panel");o&&o.focus(),this.KEYBOARD_INPUT&&r.when.visibleArea({context:this.SELECTORS.panel,callback:t=>{this.allyTabFocusHandler=r.maintain.tabFocus({context:this.SELECTORS.sidePanel});const e=r.query.firstTabbable({context:t,defaultToContext:!0});e&&e.focus()},area:.2})}close(){super.close(),this.contentRoot.innerHTML="",this.allyTabFocusHandler&&this.allyTabFocusHandler.disengage(),this.KEYBOARD_INPUT&&this.currentItem&&r.element.focus(this.currentItem)}destroy(){this.disableMouseMove()}}}}]);
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.