1class ProductFixedBar extends window.BAO.CustomElement(){connectedCallback(){super.connectedCallback(),this.createObserver(document.querySelector('[data-product-fixed-bar-external-el="button"]'),"0px"),this.createObserver(document.querySelector('[data-product-fixed-bar-external-el="title"]'),"-98px")}setupListeners(){super.setupListeners()}setVisibility(visibility){this.setAttribute("aria-hidden",visibility),visibility?document.body.classList.add("util-FixedBar"):document.body.classList.remove("util-FixedBar");const footerEl=document.querySelector('[data-product-fixed-bar-external-el="footer"]');visibility?footerEl.style.setProperty("--FixedBarHeight",`${this.offsetHeight}px`):footerEl.style.setProperty("--FixedBarHeight",0)}setTitleVisibility(visibility){this.els.title.element.setAttribute("aria-hidden",visibility)}get shouldBeVisible(){const buttonEl=document.querySelector('[data-product-fixed-bar-external-el="button"]');if(!buttonEl)return;const threshold=window.BAO.Utils.getOffsetTop(buttonEl)+buttonEl.offsetHeight;return this.lastKnownY>threshold}intersectionCallback=entries=>{entries.forEach(entry=>{entry.isIntersecting?entry.target.tagName.toLowerCase().includes("button")?this.setVisibility(!0):this.setTitleVisibility(!0):entry.target.tagName.toLowerCase().includes("button")?this.setVisibility(!1):this.setTitleVisibility(!1)})};createObserver(el,root){const options={root:null,rootMargin:root,threshold:0};new IntersectionObserver(this.intersectionCallback,options).observe(el)}}customElements.get("product-fixed-bar")||customElements.define("product-fixed-bar",ProductFixedBar); 2//# sourceMappingURL=/cdn/shop/t/116/assets/product-fixed-bar.js.map?v=173011417257406698251783585171
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.