PageSourceSearch

https://slome.fr/cdn/shop/t/476/assets/islands-sticky-add-to-cart-20260928T123922-sh.js

js slome.fr collected 2026-10-09 04:41:24 UTC 801 bytes, 1 lines download raw bytes

1import{E as a}from"./index-20260928T123922-sh.js";class i extends a{observer;onStart(){const r=this.getAttribute("data-toggle-class")??"!hidden";if(this.getAttribute("data-disable-js")==="true")return;const s=(this.closest("product-manager")||this._throwError("StickyAddToCart must be inside a ProductManager")).querySelector("[data-main-add-to-cart]")??this._throwError("StickyAddToCart requires an add to cart button in the product manager");this.observer=new IntersectionObserver(o=>{for(const t of o){const e=!(!t.isIntersecting&&t.boundingClientRect.bottom<0);this.classList.toggle(r,e),this.setAttribute("aria-hidden",e?"true":"false")}},{threshold:0}),this.observer.observe(s)}onDestroy(){this.observer?.disconnect()}}customElements.define("sticky-add-to-cart",i);export{i as StickyAddToCart};

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.