1const{MinimogThemeStyles,MinimogThemeScripts}=window;class QuickView{constructor(){this.modal=new MinimogTheme.Modal,this.isOpen=!1,addEventDelegate({selector:".m-product-quickview-button",handler:(e,target)=>{e.preventDefault(),this.target=target,this.toggleLoading(this.target,!0);const productHandle=target.dataset.productHandle;productHandle&&this.fetchHtml(productHandle)}}),window.MinimogEvents.subscribe(MinimogTheme.pubSubEvents.cartUpdate,()=>{this.modal&&MinimogTheme.ProductQuickView.close()})}fetchHtml(productHandle){loadAssetsNew([MinimogThemeStyles.product,MinimogThemeStyles.productInventory],"quick-view-assets"),fetchSection("product-quickview",{url:`${window.MinimogSettings.base_url}products/${productHandle}`}).then(html=>{this.modalContent=html.querySelector(".m-product-quickview");const firstModel=html.querySelector("product-model");this.mediaGallery=this.modalContent.querySelector("media-gallery"),loadAssetsNew([MinimogThemeScripts.productMedia,MinimogThemeScripts.variantsPicker,MinimogThemeScripts.productInventory],"variants-picker",()=>{const colorScheme=this.modalContent.dataset.colorScheme;this.modal.appendChild(this.modalContent),this.modal.setWidth("960px"),this.modal.open(),this.modal.setSizes(`m-gradient ${colorScheme}`),this.toggleLoading(this.target,!1),this.isOpen=!0}),firstModel&&loadAssetsNew([MinimogThemeScripts.productModel,"https://cdn.shopify.com/shopifycloud/model-viewer-ui/assets/v1.0/model-viewer-ui.css"],"product-model-assets")}).catch(console.error)}close(e){this.modal.close(e),this.isOpen=!1}toggleLoading(target,loading){loading?target.classList.add("m-spinner-loading"):target.classList.remove("m-spinner-loading")}}MinimogTheme.ProductQuickView=new QuickView; 2//# sourceMappingURL=/cdn/shop/t/49/assets/product-quick-view.js.map?v=13501101895970331561721400543
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.