1import"@archetype-themes/scripts/config";import"@archetype-themes/scripts/modules/disclosure";import"@archetype-themes/scripts/modules/mobile-nav";import"@archetype-themes/scripts/modules/header-search";import"@archetype-themes/scripts/modules/header-nav";import"components/announcement-bar";import HeaderCart from"@archetype-themes/scripts/modules/cart-drawer";import"@archetype-themes/scripts/helpers/utils";import"@archetype-themes/scripts/helpers/size-drawer";class HeaderSection extends HTMLElement{constructor(){super(),this.namespace=".header",this.headerFooter=this.querySelector("#MobileNavFooter"),this.footerMenus=document.querySelector("#FooterMenus"),this.container=this,this.sectionID=this.container.getAttribute("data-section-id"),this.detailsEl=this.container.querySelectorAll('[data-section-type="header"] details[data-hover="true"]'),this.init(),document.dispatchEvent(new CustomEvent("header-section:loaded",{detail:{sectionID:this.sectionID},bubbles:!0}))}init(){Shopify&&Shopify.designMode&&setTimeout(function(){window.dispatchEvent(new Event("resize"))},500),theme.headerNav.init(),theme.announcementBar.init(),theme.headerSearch.init(),this.hoverMenu(),document.body.classList.contains("template-cart")||new HeaderCart,new theme.MobileNav({id:"MobileNav",inHeader:!0}),theme.config.bpSmall&&this.cloneFooter(),window.on("resize"+this.namespace,theme.utils.debounce(300,theme.sizeDrawer))}hoverMenu(){this.detailsEl.forEach(detail=>{const summary=detail.querySelector("summary"),summaryLink=summary.dataset.link;summary.addEventListener("click",e=>{e.preventDefault(),detail.hasAttribute("open")?window.location.href=summaryLink:(detail.setAttribute("open",""),detail.setAttribute("aria-expanded","true"))}),detail.addEventListener("focusout",e=>{detail.contains(e.relatedTarget)||(detail.removeAttribute("open"),detail.setAttribute("aria-expanded","false"))}),detail.addEventListener("keydown",e=>{e.key==="Escape"&&detail.hasAttribute("open")&&(detail.removeAttribute("open"),detail.setAttribute("aria-expanded","false"),summary.focus())}),detail.addEventListener("mouseover",()=>{detail.hasAttribute("open")||(detail.setAttribute("open",""),detail.setAttribute("aria-expanded","true"))}),detail.addEventListener("mouseleave",()=>{detail.hasAttribute("open")&&(detail.removeAttribute("open"),detail.setAttribute("aria-expanded","false"))})})}cloneFooter(){if(!this.headerFooter)return;const clone=this.footerMenus.cloneNode(!0);clone.id="",this.headerFooter.appendChild(clone);const localizationForm=this.headerFooter.querySelector(".multi-selectors");localizationForm&&localizationForm.querySelectorAll("[data-disclosure-toggle]").forEach(el=>{const controls=el.getAttribute("aria-controls"),describedby=el.getAttribute("aria-describedby");el.setAttribute("aria-controls",controls+"-header"),el.setAttribute("aria-describedby",describedby+"-header");const list=document.getElementById(controls);list&&(list.id=controls+"-header");const label=document.getElementById(describedby);label&&(label.id=describedby+"-header");const parent=el.parentNode;parent&&new theme.Disclosure(parent)})}}customElements.define("header-section",HeaderSection); 2//# sourceMappingURL=/cdn/shop/t/31/assets/section-header.js.map?v=114101115667708695071702316318
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.