1import{D as i}from"./DeferWebComponent.min.BrKhvwE6.js";import{F as s}from"./FixScroll.min.CEFs3W-g.js";class o extends i{constructor(){super()}ready(){this.itemsWithSubmenu=this.querySelectorAll("[data-header-has-submenu]"),this.showWhenStatic=this.querySelectorAll("[data-show-static]"),this.showWhenSticky=this.querySelectorAll("[data-show-sticky]"),this.predictiveNavbar=document.querySelector("[data-predictive-navbar]"),this.navSidebar=document.querySelector("nav-sidebar"),this.scrollPosition=window.scrollY,this.headerWrapper=document.querySelector("[data-header-wrapper]"),this.shopifyHeader=document.getElementById("shopify-section-header"),this.timeoutId=0,this.bindEvents(),this.updateNavbarBottom()}bindEvents(){window.addEventListener("scroll",()=>{this.handleScroll()}),window.addEventListener("resize",()=>{this.updateNavbarBottom()}),this.itemsWithSubmenu.forEach(e=>{e.addEventListener("mouseenter",this.handleMouseOver.bind(this,e)),e.addEventListener("mouseleave",this.handleMouseOut.bind(this,e))})}handleMouseOver(e){s.fix();const t=e.querySelector("[data-header-submenu]");t&&(t.classList.add("is-loaded"),this.timeoutId=setTimeout(()=>{t.classList.add("is-visible")},200))}handleMouseOut(e){s.unFix(),clearTimeout(this.timeoutId);const t=e.querySelector("[data-header-submenu]");t&&(t.classList.remove("is-visible"),setTimeout(()=>{t.classList.remove("is-loaded")},200))}handleScroll(){this.previousScrollPosition=this.scrollPosition,this.scrollPosition=window.scrollY,this.toggleHeaderFixedState(),this.toggleScrollDirection(),this.updateMobileMenuState(),this.toggleVisibilityBasedOnScroll(),this.updateTransparency(),this.updateNavbarBottom()}updateNavbarBottom(){document.querySelector(":root").style.setProperty("--navbar-bottom",`${this.offsetHeight}px`)}toggleHeaderFixedState(){const e=parseInt(getComputedStyle(this).getPropertyValue("--announcement-bar-bottom"));this.scrollPosition>e?this.headerWrapper.classList.add("is-fixed"):this.headerWrapper.classList.remove("is-fixed")}toggleScrollDirection(){const e=parseInt(getComputedStyle(this).getPropertyValue("--header-height"));this.scrollPosition>e&&this.scrollPosition>this.previousScrollPosition?(this.classList.add("is-scroll-down"),this.shopifyHeader&&this.shopifyHeader.classList.add("u-pointer-events-none")):this.classList.contains("is-scroll-down")&&(this.classList.remove("is-scroll-down"),this.shopifyHeader&&this.shopifyHeader.classList.remove("u-pointer-events-none"))}updateMobileMenuState(){this.scrollPosition>parseInt(getComputedStyle(this).getPropertyValue("--announcement-bar-bottom"))?this.navSidebar.classList.add("header-is-sticky"):this.navSidebar.classList.remove("header-is-sticky")}toggleVisibilityBasedOnScroll(){this.scrollPosition>parseInt(getComputedStyle(this).getPropertyValue("--announcement-bar-bottom"))?(this.showWhenStatic.forEach(e=>e.classList.add("u-hidden")),this.showWhenSticky.forEach(e=>e.classList.remove("u-hidden")),this.predictiveNavbar.classList.remove("u-hidden")):(this.showWhenStatic.forEach(e=>e.classList.remove("u-hidden")),this.showWhenSticky.forEach(e=>e.classList.add("u-hidden")),this.predictiveNavbar.classList.add("u-hidden"))}updateTransparency(){this.scrollPosition>parseInt(getComputedStyle(this).getPropertyValue("--announcement-bar-bottom"))?this.isUnder()&&this.classList.remove("is-transparent"):(this.classList.add("transition-delay-background"),this.isUnder()&&this.classList.add("is-transparent"),this.classList.remove("transition-delay-background"))}isUnder(){return this.dataset.isTransparent=="true"}}customElements.get("nav-header")||customElements.define("nav-header",o);
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.