1class StickyBag extends HTMLElement{constructor(){super(),this.STICKY_CLASS="sticky-bag--active",this.setStickyHeight(),this.addObserver(),window.addEventListener("resize",this.setStickyHeight.bind(this))}setStickyHeight(){document.documentElement.style.setProperty("--sticky-bag-height",`${this.offsetHeight}px`)}addObserver(){const addToBag=document.querySelector(".product-form__button"),options={root:null,rootMargin:"-10% 0px 0px 0px",threshold:0};this.observer=new IntersectionObserver(this.toggleDisplay.bind(this),options),this.observer.observe(addToBag)}toggleDisplay(entries){entries.forEach(entry=>{entry.isIntersecting?(this.classList.remove(this.STICKY_CLASS),document.body.classList.remove(this.STICKY_CLASS)):(this.classList.add(this.STICKY_CLASS),document.body.classList.add(this.STICKY_CLASS))})}}customElements.define("sticky-bag",StickyBag); 2//# sourceMappingURL=/cdn/shop/t/92/assets/sticky-bag.js.map?v=4142578954504879501783929386
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.