1var l=Object.defineProperty;var a=(s,e,i)=>e in s?l(s,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[e]=i;var o=(s,e,i)=>a(s,typeof e!="symbol"?e+"":e,i);import{E as n}from"./events.CylfRtLc.min.js";const t=class t extends HTMLElement{constructor(){super()}connectedCallback(){this.setProperties(),this.setEventListeners()}disconnectedCallback(){this.removeEventListeners()}setProperties(){this.goBackBtn=this.querySelector("[data-mobile-mega-menu-go-back]"),this.closeBtn=this.querySelector("[data-mobile-mega-menu-close]"),this.handleGoBackClick=this.onGoBackClick.bind(this),this.handleBlockSelect=this.onBlockSelect.bind(this),this.handleBlockDeselect=this.onBlockDeselect.bind(this)}setEventListeners(){this.goBackBtn.addEventListener("click",this.handleGoBackClick),this.closeBtn.addEventListener("click",this.handleGoBackClick),this.addEventListener(n.SHOPIFY_BLOCK_SELECT,this.handleBlockSelect),this.addEventListener(n.SHOPIFY_BLOCK_DESELECT,this.handleBlockDeselect)}removeEventListeners(){this.goBackBtn.removeEventListener("click",this.handleGoBackClick),this.closeBtn.removeEventListener("click",this.handleGoBackClick),this.removeEventListener(n.SHOPIFY_BLOCK_SELECT,this.handleBlockSelect),this.removeEventListener(n.SHOPIFY_BLOCK_DESELECT,this.handleBlockDeselect)}onGoBackClick(){this.close()}open(){this.isOpen=!0,this.classList.add(t.initializedClass),this.classList.add(t.openedClass),document.querySelector(".promo-bar").classList.add("hidden")}close(){this.isOpen=!1,this.classList.remove(t.openedClass),document.querySelector(".promo-bar").classList.remove("hidden")}onBlockSelect(){this.open()}onBlockDeselect(){this.close()}};o(t,"initializedClass","header-standard-mobile-mega-menu--initialized"),o(t,"openedClass","header-standard-mobile-mega-menu--opened");let c=t;const r=()=>{customElements.get("header-standard-mobile-mega-menu")||customElements.define("header-standard-mobile-mega-menu",c)};export{r as default};
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.