1class ProductPopup extends HTMLElement{carouselGlide;constructor(){super()}init(){this.setFlavorSelectorEvent(),this.initGallery()}connectedCallback(){this.init()}initGallery(){typeof Glide<"u"?this.carouselGlide=new Glide("#"+this.id+" .js--section-product__slider",{type:"carousel",startAt:0,perView:1}).mount():console.warn("[product-popup] Glide.js not loaded")}updateGallery(){this.querySelectorAll(".gallery img").forEach(img=>{img.loading="eager"}),this.carouselGlide.update()}setFlavorSelectorEvent(){this.querySelectorAll(".section-product__flavor a")?.forEach(linkEl=>{linkEl.classList.add("js-no-transition"),linkEl.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const handle=linkEl.dataset.handle;return handle&&fetch(window.Shopify.routes.root+"products/"+handle+"?section_id=product-popup-section").then(response=>response.text()).then(html=>{console.log("html",html),this.closest("product-popup").replaceWith(new DOMParser().parseFromString(html,"text/html").querySelector("product-popup")),window.priceSelectorV2?.init(),window.priceSelectorV2?.onIgReady(),window.priceSelectorV2?.triggerAllSSCardSelects()}),!1})})}}customElements.get("product-popup")||customElements.define("product-popup",ProductPopup); 2//# sourceMappingURL=/cdn/shop/t/261/assets/product-popup.js.map?v=59820752262314158651784223298
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.