1if(!customElements.get("sticky-scroller")){class StickyScroller extends HTMLElement{constructor(){super(),this.headerHeight=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--header-height"),10),this.parent=this.parentElement}connectedCallback(){this.newScrollPosition=0,this.oldScrollPositon=0,this.ticking=!1,this.element=this.querySelector(".sticky-scroller--element"),this.element.style.overflowY="hidden",this.observer=new ResizeObserver(this.onWindowScroll.bind(this)),this.observer.observe(this.parent),window.addEventListener("scroll",this.onWindowScroll.bind(this),{passive:!0})}onWindowScroll(){this.newScrollPosition=window.scrollY,this.ticking||(window.requestAnimationFrame(()=>{this.translate(),this.ticking=!1,this.oldScrollPositon=this.newScrollPosition}),this.ticking=!0)}translate(){const parentRect=this.parentElement.getBoundingClientRect(),distance=this.newScrollPosition-this.oldScrollPositon;parentRect.top>this.headerHeight&&distance>0||parentRect.bottom<window.innerHeight&&distance<0||(this.element.scrollTop+=distance)}}customElements.define("sticky-scroller",StickyScroller)} 2//# sourceMappingURL=/cdn/shop/t/381/assets/sticky-scroller.js.map?v=128800395637824487721790641270
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.