class MobileDock extends HTMLElement{constructor(){super()}get section(){return this.closest(".mobile-dock-section")}connectedCallback(){const header=document.querySelector(".header-section");header===null?this.section.classList.add("active"):header.classList.contains("header-sticky")||(this.scrollY=parseInt(header.getBoundingClientRect().bottom),this.onScrollHandler=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollHandler,!1)),setTimeout(()=>{document.documentElement.style.setProperty("--mobile-dock-height",`${this.offsetHeight}px`)})}disconnectedCallback(){window.removeEventListener("scroll",this.onScrollHandler)}onScroll(){window.scrollY>=this.scrollY?this.section.classList.add("active"):this.section.classList.remove("active")}}customElements.define("mobile-dock",MobileDock); //# sourceMappingURL=/cdn/shop/t/7/assets/mobile-dock.js.map?v=84715247845549869921706550806