1import{EVENTS}from"@archetype-themes/utils/events";let hasLoadedBefore=!1;class CollectionHeader extends HTMLElement{constructor(){super(),this.overlayHeader=!1,this.heroImageContainer=this.querySelector(".collection-hero"),this.handleOverlayHeaderChange=this.handleOverlayHeaderChange.bind(this)}connectedCallback(){this.abortController=new AbortController,document.addEventListener(EVENTS.overlayHeaderChange,this.handleOverlayHeaderChange,{signal:this.abortController.signal}),this.heroImageContainer?(hasLoadedBefore&&this.checkIfNeedReload(),this.heroImageContainer.classList.remove("loading","loading--delayed"),this.heroImageContainer.classList.add("loaded")):this.overlayHeader&&this.dispatchEvent(new CustomEvent(EVENTS.headerOverlayDisable),{bubbles:!0}),hasLoadedBefore=!0}disconnectedCallback(){this.abortController.abort()}handleOverlayHeaderChange(event){this.overlayHeader=event.detail.overlayHeader,!this.overlayHeader&&!this.heroImageContainer&&this.dispatchEvent(new CustomEvent(EVENTS.headerOverlayDisable),{bubbles:!0})}checkIfNeedReload(){Shopify.designMode&&this.overlayHeader&&(document.querySelector(".header-wrapper").classList.contains("header-wrapper--overlay")||location.reload())}}customElements.define("section-collection-header",CollectionHeader); 2//# sourceMappingURL=/cdn/shop/t/3/assets/section-collection-header.js.map?v=38468508189529151931744275111
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.