1class MobileDock extends HTMLElement{constructor(){super(),new theme.initWhenVisible(this.init.bind(this))}get section(){return this._section=this._section||this.closest(".mobile-dock-section")}init(){this.detectForHeader(),this.detectForFooter(),setTimeout(this.setHeight.bind(this)),document.addEventListener("matchSmall",this.setHeight.bind(this))}detectForHeader(){const header=document.querySelector(".header-section");if(header===null){this.section.classList.add("active");return}header.classList.contains("header-sticky")||(this.scrollY=parseInt(header.getBoundingClientRect().bottom),window.addEventListener("scroll",theme.utils.throttle(this.onScrollForHeader.bind(this)),!1))}onScrollForHeader(){window.scrollY>=this.scrollY?this.section.classList.add("active"):this.section.classList.remove("active")}detectForFooter(){document.querySelector(".footer-copyright")!==null&&window.addEventListener("scroll",theme.utils.throttle(this.onScrollForFooter.bind(this)),!1)}onScrollForFooter(){if(!theme.config.mqlSmall)return;const scrolledTo=window.scrollY+window.innerHeight,threshold=this.offsetHeight,isReachBottom=document.body.scrollHeight-threshold<=scrolledTo;this.classList.toggle("active",isReachBottom)}setHeight(){document.documentElement.style.setProperty("--mobile-dock-height",`${this.offsetHeight}px`)}}customElements.define("mobile-dock",MobileDock); 2//# sourceMappingURL=/cdn/shop/t/25/assets/mobile-dock.js.map?v=86956832444456538811791001099
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.