(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()});this.header_1!=null?observer.observe(this.header_1):observer.observe(this.header)}onScroll(){(this.header_1==null||this.header_1=="")&&(this.style.height=`${this.header.clientHeight}px`);const scrollTop=window.pageYOffset||document.documentElement.scrollTop;!this.check||scrollTop==0?!document.body.classList.contains("cart-sidebar-show")&&!document.body.classList.contains("sticky-search-open")&&(scrollTop>this.currentScrollTop&&scrollTop>this.heightEle?(this.header_1!=null&&(this.header_1.style.transform=`translateY(-${this.header_1.clientHeight}px)`),this.hideOnScroll=="true"?requestAnimationFrame(this.hide.bind(this)):requestAnimationFrame(this.reveal2.bind(this))):scrollTopthis.heightEle?(requestAnimationFrame(this.reveal.bind(this)),this.header_1!=null&&(this.header_1.style.transform="translateY(0)")):scrollTop-(this.heightEle-this.headerBottom)<=this.headerBounds.top&&(requestAnimationFrame(this.reset.bind(this)),this.header_1!=null&&(this.header_1.style.transform="translateY(0)")),this.check=!0,this.currentScrollTop=scrollTop):this.check=!1}hide(){this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),document.body.classList.add("scroll-down"),document.body.classList.remove("scroll-up"),this.closeMenuDisclosure()}reveal(){this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden"),document.body.classList.add("scroll-up"),document.body.classList.remove("scroll-down")}reveal2(){this.header.classList.add("shopify-section-header-sticky","animate","slide-down")}reset(){this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate"),document.body.classList.remove("scroll-down","scroll-up")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}}(),function(){if(__sections__["header-03"])try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTopthis.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))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}}(),function(){if(__sections__["header-04"])try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTopthis.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))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}}(),function(){if(__sections__["header-05"])try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTopthis.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))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}}(),function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header-navigation"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type"),this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;this.header.classList.add("scrolled-past-header"),requestAnimationFrame(this.hide.bind(this))}else scrollTopthis.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))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}hide(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky");return}else this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-show");this.closeMenuDisclosure()}reveal(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.add("shopify-section-header-sticky","shopify-section-header-show","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){if(this.headerIsAlwaysSticky!=null)if(this.headerIsAlwaysSticky==="always"){this.header.classList.add("shopify-section-header-sticky","animate");return}else this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-show","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}}()})(); //# sourceMappingURL=/cdn/shop/t/3/compiled_assets/scripts.js.map