https://commodityfragrances.co.uk/cdn/shop/t/48/assets/component-p…?v=120730152746544161971790280513
1customElements.get("product-sticky-add")||customElements.define("product-sticky-add",class extends HTMLElement{constructor(){super(),this.formId=this.dataset.productFormId,this.productSectionId=`MainProduct-${this.dataset.section}`,this.button=this.querySelector("button"),this.form=document.getElementById(this.formId),this.productSection=document.getElementById(this.productSectionId),this.mqlSmall=window.matchMedia("(max-width: 749px)"),this.observer=null,this.button?.addEventListener("click",this.addProduct.bind(this))}connectedCallback(){this.mqlSmall.addEventListener("change",this.onQueryChange.bind(this)),this.mqlSmall.matches&&this.setupObserver()}disconnectedCallback(){this.destroyObserver()}setupObserver(){this.observer=new IntersectionObserver(entries=>{const entry=entries[0];this.classList.toggle("active",!entry.isIntersecting)},{root:null,threshold:.1}),this.productSection&&this.observer.observe(this.productSection)}destroyObserver(){this.observer&&(this.observer.disconnect(),this.observer=null)}onQueryChange(media){media.matches?this.setupObserver():this.destroyObserver()}addProduct(){window.scrollTo({top:0,behavior:"smooth"}),this.form.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))}}); 2//# sourceMappingURL=/cdn/shop/t/48/assets/component-product-sticky-add.js.map?v=120730152746544161971790280513
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.