1customElements.get("mobile-sticky-bar")||customElements.define("mobile-sticky-bar",class extends HTMLElement{constructor(){super()}connectedCallback(){document.body.classList.add("mobile-sticky-bar-enabled"),this.lastScrollTop=0,this.scrollHandler=FoxTheme.utils.debounce(this.onScrollHandler.bind(this),10),this.init()}disconnectedCallback(){window.removeEventListener("scroll",this.scrollHandler)}init(){this.calculateHeight(),window.addEventListener("scroll",this.scrollHandler,!1)}calculateHeight(){requestAnimationFrame(()=>{document.documentElement.style.setProperty("--mobile-sticky-bar-height",`${this.offsetHeight}px`)})}onScrollHandler(){const offsetTop=document.getElementById("mobileNavStatic").offsetTop,scrollTop=window.scrollY,pointTouch=offsetTop-scrollTop-window.innerHeight;requestAnimationFrame(()=>{scrollTop>this.lastScrollTop?this.scrollDirection="down":this.scrollDirection="up",this.lastScrollTop=scrollTop,this.scrollDirection=="up"&&pointTouch>0?(this.classList.remove("up"),this.classList.add("down"),document.body.classList.remove("mobile-sticky-bar-up"),document.body.classList.add("mobile-sticky-bar-down")):(this.classList.add("up"),this.classList.remove("down"),document.body.classList.remove("mobile-sticky-bar-down"),document.body.classList.add("mobile-sticky-bar-up"))})}}); 2//# sourceMappingURL=/cdn/shop/t/9/assets/mobile-sticky-bar.js.map?v=7303052032413197921748850783
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.