1requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.store("xQuickView",{sectionId:window.xQuickView.sectionId,enabled:window.xQuickView.enabled,buttonLabel:window.xQuickView.buttonLabel,show_atc_button:window.xQuickView.show_atc_button,btn_atc_bottom:window.xQuickView.atc_btn_bottom,show:!1,loading:!1,currentVariant:"",cachedResults:[],loadedChooseOptions:[],loadedChooseOptionsID:[],selected:!1,addListener(){document.addEventListener("eurus:cart:items-changed",()=>{this.cachedResults=[]})},showBtn(enable,showATCButton,textBtn){this.enabled=enable,this.buttonLabel=textBtn,this.show_atc_button=showATCButton},load(url,el,optionId){let getVariant=document.getElementById("current-variant-"+optionId).innerText,urlProduct=getVariant?`${url}?variant=${getVariant}§ion_id=${this.sectionId}`:`${url}?section_id=${this.sectionId}`;return this.cachedResults[urlProduct]?(document.getElementById("quickview-product-content").innerHTML=this.cachedResults[urlProduct],!0):(this.loading=!0,fetch(urlProduct).then(reponse=>reponse.text()).then(response=>{const content=new DOMParser().parseFromString(response,"text/html").getElementById("quickview-product-content").innerHTML;document.getElementById("quickview-product-content").innerHTML=content,this.cachedResults[urlProduct]=content}).finally(()=>{this.loading=!1}),!0)},async loadChooseOptions(url,el,optionId){let getVariant=document.getElementById("current-variant-"+optionId).innerText,urlProduct=getVariant?`${url}?variant=${getVariant}§ion_id=choose-option`:`${url}?section_id=choose-option`;var formData={attributes:{choose_option_id:optionId}};const isOptionLoaded=document.getElementById("choose-options-content-"+optionId),variantId=getVariant?`${optionId}-${getVariant}`:optionId;let urlChooseOption=urlProduct+"_choose-options",destinationElm=document.getElementById("choose-options-"+optionId).querySelector(".choose-options"),loadingEl=document.getElementById("choose-options-"+optionId).querySelector(".icon-loading");if(isOptionLoaded&&this.loadedChooseOptionsID[variantId]&&this.loadedChooseOptions[urlChooseOption])return destinationElm.innerHTML=this.loadedChooseOptions[urlChooseOption],!0;try{loadingEl&&loadingEl.classList.remove("hidden");const responseData=await(await fetch(Shopify.routes.root+"cart/update",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(formData)})).json();this.loadedChooseOptionsID[variantId]=!0,await this.renderChooseOptions(urlProduct,responseData.attributes.choose_option_id)}catch(error){console.log(error)}},async renderChooseOptions(urlProduct,optionId){let urlChooseOptions=urlProduct+"_choose-options",destinationEl=document.getElementById("choose-options-"+optionId).querySelector(".choose-options");if(document.getElementById("choose-options-content-"+optionId)&&this.loadedChooseOptions[urlChooseOptions])return destinationEl.innerHTML=this.loadedChooseOptions[urlChooseOptions],!0;try{const content=await(await fetch(urlProduct)).text(),parsedContent=new DOMParser().parseFromString(content,"text/html").getElementById("choose-options-content").innerHTML;parsedContent&&(destinationEl.innerHTML=parsedContent,this.loadedChooseOptions[urlChooseOptions]=parsedContent);let loadingEl=document.getElementById("choose-options-"+optionId).querySelector(".icon-loading");loadingEl&&loadingEl.classList.add("hidden")}catch(error){console.log(error)}},open(){this.show=!0,Alpine.store("xPopup").open=!0},close(){this.show=!1,Alpine.store("xPopup").open=!1},focusQuickView(quickView,btnClose){this.selected||Alpine.store("xFocusElement").trapFocus(quickView,btnClose)},removeFocusQuickView(){if(!this.selected){const elementActive=document.getElementById("button_quickview");Alpine.store("xFocusElement").removeTrapFocus(elementActive)}}})})}); 2//# sourceMappingURL=/cdn/shop/t/8/assets/quick-view.js.map?v=60361466208814618591716161138
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.