1class r extends HTMLElement{constructor(){super(),this.onSetHeaderHeight=this.setHeaderHeight.bind(this),this.onSetAnnouncementBarHeight=this.setAnnouncementBarHeight.bind(this)}connectedCallback(){this.header=document.querySelector(".section-header"),this.announcementBar=document.querySelector(".announcement-bar"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always",this.headerBounds={},this.isStickyMobile=this.getAttribute("data-sticky-mobile")==="true",this.hideOnScrollEnabled=this.hasAttribute("data-hide-on-scroll"),this.setHeaderHeight(),this.setAnnouncementBarHeight(),window.addEventListener("resize",()=>{this.onSetHeaderHeight(),this.onSetAnnouncementBarHeight()}),this.headerIsAlwaysSticky&&(this.header.classList.add("shopify-section-header-sticky"),this.isStickyMobile&&this.header.classList.add("shopify-section-header-sticky-mobile")),this.currentScrollTop=0,this.preventReveal=!1,this.preventHide=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollHandler,{passive:!0}),this.hideOnScrollEnabled&&(this.onScrollStopHandler=this.onScrollStop.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp)),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight||0}px`)}setAnnouncementBarHeight(){var e;document.documentElement.style.setProperty("--announcement-bar-height",`${((e=this.announcementBar)==null?void 0:e.offsetHeight)||0}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((t,i)=>{this.headerBounds=t[0].intersectionRect,i.disconnect()}).observe(this.header)}onScroll(){const e=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(e>this.currentScrollTop&&e>this.headerBounds.bottom){if(this.header.classList.add("scrolled-past-header"),this.preventHide)return;this.header.classList.contains("shopify-section-header-hidden")||requestAnimationFrame(this.hide.bind(this))}else e<this.currentScrollTop&&e>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):e<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.hideOnScrollEnabled&&(window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(this.onScrollStopHandler,1e3)),this.currentScrollTop=e}}onScrollStop(){this.hideOnScrollEnabled&&(this.header.classList.add("animate"),requestAnimationFrame(this.reveal.bind(this)))}hide(){this.headerIsAlwaysSticky&&!this.hideOnScrollEnabled||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure())}reveal(){this.headerIsAlwaysSticky&&!this.hideOnScrollEnabled||(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden"))}reset(){this.headerIsAlwaysSticky&&!this.hideOnScrollEnabled||this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("header-menu"),this.disclosures.forEach(e=>e.close())}}customElements.define("sticky-header",r);class n extends HTMLElement{constructor(){super(),this.icon=this.querySelector(".icon")}connectedCallback(){document.addEventListener("storefront:signincompleted",this.handleStorefrontSignInCompleted.bind(this))}handleStorefrontSignInCompleted(e){var t,i;(t=e==null?void 0:e.detail)!=null&&t.avatar&&((i=this.icon)==null||i.replaceWith(e.detail.avatar.cloneNode()))}}customElements.define("account-icon",n);
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.