1customElements.get("quick-view-modal")||customElements.define("quick-view-modal",class extends DrawerComponent{constructor(){super(),this.classesToRemoveOnLoad="drawer--loading",this.drawerBody=this.querySelector(this.selector)}get selector(){return".quick-view__content"}get sourceSelector(){return"#MainProduct-quick-view__content"}get requiresBodyAppended(){return!(Shopify.designMode&&this.closest(".section-group-overlay-quick-view"))}shouleBeShow(){return typeof this.getProductQuickViewSectionId()=="string"}prepareToShow(){super.prepareToShow(),this.quickview()}handleAfterShow(){super.handleAfterShow(),document.dispatchEvent(new CustomEvent("quick-view:open",{detail:{productUrl:this.dataset.productUrl}}))}handleAfterHide(){super.handleAfterHide();const drawerContent=this.querySelector(this.selector);drawerContent.innerHTML="",this.classList.add(this.classesToRemoveOnLoad)}getProductQuickViewSectionId(){let sectionId=FoxTheme.QuickViewSectionId||!1;if(!sectionId){const productQuickView=document.querySelector(".section-group-overlay-quick-view");productQuickView&&(sectionId=FoxTheme.utils.getSectionId(productQuickView)),FoxTheme.QuickViewSectionId=sectionId}return sectionId}quickview(){const drawerContent=this.querySelector(this.selector),sectionId=this.getProductQuickViewSectionId(),sectionUrl=`${this.dataset.productUrl.split("?")[0]}?section_id=${sectionId}`;fetch(sectionUrl).then(response=>response.text()).then(responseText=>{const productElement=new DOMParser().parseFromString(responseText,"text/html").querySelector(this.sourceSelector);this.setInnerHTML(drawerContent,productElement.content.cloneNode(!0)),FoxTheme.a11y.trapFocus(this,this.focusElement),window.Shopify&&Shopify.PaymentButton&&Shopify.PaymentButton.init(),setTimeout(()=>{this.classList.remove(this.classesToRemoveOnLoad)},300),document.dispatchEvent(new CustomEvent("quick-view:loaded",{detail:{productUrl:this.dataset.productUrl}}))}).catch(e=>{console.error(e)})}setInnerHTML(element,innerHTML){element.innerHTML="",element.appendChild(innerHTML),element.querySelectorAll("script").forEach(oldScriptTag=>{const newScriptTag=document.createElement("script");Array.from(oldScriptTag.attributes).forEach(attribute=>{newScriptTag.setAttribute(attribute.name,attribute.value)}),newScriptTag.appendChild(document.createTextNode(oldScriptTag.innerHTML)),oldScriptTag.parentNode.replaceChild(newScriptTag,oldScriptTag)})}disconnectedCallback(){super.disconnectedCallback(),this.handleAfterHide()}}); 2//# sourceMappingURL=/cdn/shop/t/81/assets/quick-view.js.map?v=93783555645323306721771417297
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.