1class ProductCarousel extends HTMLElement{constructor(){super()}connectedCallback(){new IntersectionObserver(this.handleAsyncMethods.bind(this),{rootMargin:"0px 0px 400px 0px"}).observe(this)}handleAsyncMethods(entries,observer){entries[0].isIntersecting&&(observer.unobserve(this),this.handleDynamicRecommendations())}async handleDynamicRecommendations(){if(this.dataset.url)try{const text=await(await fetch(this.dataset.url)).text(),html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector("uwp-product-carousel");if(!recommendations||!recommendations.innerHTML.trim().length)return;this.innerHTML=recommendations.innerHTML,this.reinitialiseCarousel()}catch(error){throw new Error(error)}}reinitialiseCarousel(){const carousel=this.querySelector("uwp-carousel");carousel&&carousel.createCarousel()}}customElements.define("uwp-product-carousel",ProductCarousel); 2//# sourceMappingURL=/cdn/shop/t/271/assets/product-carousel-DhJbvscU.js.map
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.