1(self.webpackChunkapp_project=self.webpackChunkapp_project||[]).push([[4093],{90736:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});var a=i(12737);const n=i(38302).default,r=i(14863).ZP;class s extends n{constructor(t){super(t),this.wizardUrl=t.dataset.url,this.appendStepElement=t.querySelector(".js-append-step"),this.errorLabel=t.querySelector(".js-error-message"),this.returnInStoreEnabled="true"===t.dataset.returnInStoreEnabled,this.orderID=t.dataset.orderId,this.beforeNavigationFn=null,this.invalidateSubmit=!1,this.returnData={orderID:this.orderID,step:0,whereToReturn:"home",returnLineItems:[],exchangeLineItems:[],store:null,IBAN:null,qrCodeAvailable:!1},a.Z.on("navigationWizard:loadStep",(t=>{this.initNavigationButtons();const e=JSON.parse(t.body);this.element.setAttribute("data-step-active",e.step)})),this.startReturn()}async startReturn(){await this.navigateWizard(this.returnInStoreEnabled?1:2,!0),this.initNavigationButtons()}initNavigationButtons(){this.buttonSteps=[...this.element.querySelectorAll(".js-step-button")],this.buttonSteps&&this.buttonSteps.forEach((t=>t.addEventListener("click",this.clickNavigationHandler.bind(this))))}clickNavigationHandler(t){t.preventDefault(),t.stopImmediatePropagation(),this.navigateWizard(parseInt(t.target.dataset.goToStep),"submit-step"===t.target.dataset.action)}unBindNavigationButtons(){this.buttonSteps&&this.buttonSteps.forEach((t=>t.removeEventListener("click",this.clickNavigationHandler)))}async navigateWizard(t,e){if(this.beforeNavigationFn&&e&&this.beforeNavigationFn(),!this.invalidateSubmit||!e){this.beforeNavigationFn=null;const e=JSON.stringify({step:t,orderId:this.orderID,type:this.returnData.whereToReturn||null,returnLineItems:this.returnData.returnLineItems||[],exchangeLineItems:this.returnData.exchangeLineItems||[],store:this.returnData.store||null,IBAN:this.returnData.IBAN||null,qrCodeAvailable:this.returnData.qrCodeAvailable||!1});this.unBindNavigationButtons(),a.Z.emit("body:loading");const i=await r(this.wizardUrl,{method:"POST",body:e}),n=await i.text();this.appendStepElement.innerHTML=n,a.Z.emit("body:loaded"),a.Z.emit("navigationWizard:loadStep",{body:e})}this.errorLabel.classList.toggle("d-none",!this.invalidateSubmit),this.invalidateSubmit=!1}destroy(){this.buttonSteps&&this.buttonSteps.forEach((t=>t.removeEventListener("click",this.clickNavigationHandler.bind(this)))),a.Z.off("navigationWizard:loadStep")}}}}]);
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.