1import{ECXHelper}from"@theme/helper";import"@theme/component";import"@theme/carousel";import"@theme/popup";import"@theme/drawer";import{ECXDialogCore}from"@theme/dialog";import"@theme/swatch";import"@theme/accordion";import"@theme/localization";import"@theme/header";import"@theme/announcement";import"@theme/quantity-input";import"@theme/cart-notification";import"@theme/cart-drawer";class ECXDialog extends ECXDialogCore{constructor(){super()}}customElements.get("ecx-dialog")||customElements.define("ecx-dialog",ECXDialog);class ECXDialogEditAddress extends ECXDialogCore{constructor(){super(),setTimeout(()=>{this.closest(".js-account-addresses").style.transform="none"},500)}}customElements.get("ecx-dialog-edit-address")||customElements.define("ecx-dialog-edit-address",ECXDialogEditAddress);class ECXLazyLoader extends HTMLElement{constructor(){super(),this.observer=null,this.isLoaded=!1}connectedCallback(){this.init()}disconnectedCallback(){this.observer&&this.observer.disconnect()}init(){this.isLoaded||this.dataset.loading==="eager"?this.loadImages():this.setupIntersectionObserver()}setupIntersectionObserver(){this.observer=new IntersectionObserver(e=>{e.forEach(e2=>{e2.isIntersecting&&!this.isLoaded&&(this.loadImages(),this.observer.unobserve(e2.target))})},{root:null,rootMargin:"50px",threshold:.1}),this.observer.observe(this)}loadImages(){this.isLoaded||(this.querySelectorAll("img").forEach(e=>{var t;e.complete&&e.naturalHeight!==0?e.classList.add("loaded"):(e.addEventListener("load",()=>{e.classList.add("loaded")},{once:!0}),e.src&&!e.src.includes("data:")||(t=e.dataset.src||e.src)&&!t.includes("data:")&&(e.src=t))}),this.isLoaded=!0,this.setAttribute("data-loaded","true"))}}function initImageShimmer(e){(e instanceof Element?e:document).querySelectorAll("ecx-image-atf > img").forEach(e2=>{e2.complete&&e2.naturalHeight!==0?e2.classList.add("loaded"):(e2.addEventListener("load",()=>e2.classList.add("loaded"),{once:!0}),e2.addEventListener("error",()=>e2.classList.add("loaded"),{once:!0}))})}customElements.get("ecx-lazy-loader")||customElements.define("ecx-lazy-loader",ECXLazyLoader),initImageShimmer(),Shopify.designMode&&document.addEventListener("shopify:section:load",e=>initImageShimmer(e.target));const _shimmerObserver=new MutationObserver(e=>{for(const t of e)for(const o of t.addedNodes)o.nodeType===1&&(o.tagName==="ECX-IMAGE-ATF"?o.querySelectorAll("img"):o.querySelectorAll("ecx-image-atf > img")).forEach(e2=>{e2.complete&&e2.naturalHeight!==0?e2.classList.add("loaded"):(e2.addEventListener("load",()=>e2.classList.add("loaded"),{once:!0}),e2.addEventListener("error",()=>e2.classList.add("loaded"),{once:!0}))})}),_loadProductFormModules=(_shimmerObserver.observe(document.body,{childList:!0,subtree:!0}),document.body.addEventListener("ecx:morph-complete",e=>initImageShimmer(e.target)),()=>Promise.all([import("@theme/product-form"),import("@theme/product-media"),import("@theme/product-pickup")])),_loadQuickViewSectionModules=()=>Promise.all([import("@theme/section-read-more"),import("@theme/section-share-button"),import("@theme/section-variation"),import("@theme/section-progress"),import("@theme/section-product-recommendations"),import("@theme/section-back-in-stock")]);!customElements.get("ecx-prd-frm")&&document.querySelector("ecx-prd-frm, ecx-variant-radios")&&_loadProductFormModules(),!customElements.get("ecx-gift-card-recipient-form")&&document.querySelector("ecx-gift-card-recipient-form")&&import("@theme/product-gift-card"),(function(){if(!customElements.get("ecx-recently-viewed")){var e=document.querySelector("ecx-product-recently-viewed"),t=document.querySelector("ecx-recently-viewed");if(e||t)if(e)import("@theme/product-recently-viewed");else{const o=new IntersectionObserver(e2=>{e2.some(e3=>e3.isIntersecting)&&(o.disconnect(),import("@theme/product-recently-viewed"))},{rootMargin:"300px"});o.observe(t)}}})(),(function(){var e=document.querySelector("ecx-product-bundle");if(e&&!customElements.get("ecx-product-bundle")){const t=new IntersectionObserver(e2=>{e2.some(e3=>e3.isIntersecting)&&(t.disconnect(),import("@theme/product-bundle"))},{rootMargin:"300px"});t.observe(e)}})(),document.addEventListener("click",async e=>
1{var t=e.target.closest('[onclick*="dialogQuickShop"]');t&&!customElements.get("ecx-dialog-quickview")&&(e.preventDefault(),e.stopImmediatePropagation(),await Promise.all([import("@theme/product-quick-view"),_loadProductFormModules(),_loadQuickViewSectionModules()]),t.click())},!0),document.addEventListener("click",async e=>{var t=e.target.closest('[onclick*="dialogQuickBuy"]');t&&!customElements.get("ecx-dialog-quick-buy")&&(e.preventDefault(),e.stopImmediatePropagation(),await Promise.all([import("@theme/product-quick-buy"),_loadProductFormModules()]),t.click())},!0),!customElements.get("ecx-collections-compare")&&document.querySelector("ecx-collections-compare, ecx-load-more, ecx-infinity-scroll, ecx-show-all-options, ecx-custom-sort-field")&&import("@theme/collection"),!customElements.get("ecx-cart-discount")&&document.querySelector("ecx-cart-discount")&&import("@theme/cart"),!customElements.get("ecx-load-video")&&document.querySelector("ecx-load-video, ecx-slideshow, ecx-slideshow-load-img, ecx-video")&&import("@theme/section-media"),document.addEventListener("DOMContentLoaded",()=>{var e=ECXHelper.qsa(".js-search-open-trigger");ECXHelper.qs("ecx-search-drwr-section")||e.forEach(e2=>{e2.dataset.event==="drawer"&&(typeof Shopify<"u"&&Shopify.designMode?e2.addEventListener("click",()=>{setTimeout(()=>{alert("Search is unavailable due to a conflict in the search settings. Please unhide the \u2018Search Drawer\u2019 section or change the search behavior to \u2018Search Page\u2019 to resolve this issue. This message is only visible in the theme editor. In the live store, the system will automatically default to the \u2018Search Page\u2019.")},500)}):e2.removeAttribute("onclick"))})}),document.addEventListener("DOMContentLoaded",()=>{var e=ECXHelper.qs(".js-cart-drawer-trigger");!ECXHelper.qs("ecx-cart-drwr")&&e&&typeof Shopify<"u"&&Shopify.designMode&&e.dataset.event==="drawer"&&(e.removeAttribute("onclick"),e.addEventListener("click",e2=>{e2.preventDefault(),alert("Cart is unavailable due to a conflict in the cart settings. Please unhide the \u2018Cart Drawer\u2019 section or change the search behavior to \u2018Cart Page\u2019 to resolve this issue. This message is only visible in the theme editor. In the live store, the system will automatically default to the \u2018Cart Page\u2019.")}))}); 2//# sourceMappingURL=/cdn/shop/t/37/assets/theme.js.map?v=74760726664488345511788315927
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.