1class ProductRecommendations extends HTMLElement{constructor(){super(),this.recommendedUrl=this.getAttribute("recommendedUrl"),this.sectionId=this.getAttribute("section-id"),this.productId=this.getAttribute("product-id"),this.limit=this.getAttribute("limit"),this.initialContentLoad=!0,this.url=`${this.recommendedUrl}?section_id=${this.sectionId}&product_id=${this.productId}&limit=${this.limit}`}renderProducts(){try{fetch(`${this.url}`,{method:"GET"}).then(response=>{if(!response.ok)throw response;return response.text()}).then(data=>{const html=document.createElement("div");html.innerHTML=data;const recommendations=html.querySelector("product-recommendations");recommendations&&recommendations.querySelector("[recommendation-loader]")?.innerHTML.trim().length?this.innerHTML=recommendations.innerHTML:this.closest("section").remove()}).catch(error=>{throw new Error(error)})}catch(error){throw new Error(`HTTp error! Status : ${error}`)}}connectedCallback(){window.requestIdleCallback(this.renderProducts.bind(this),{timeout:1e3})}}customElements.define("product-recommendations",ProductRecommendations); 2//# sourceMappingURL=/cdn/shop/t/15/assets/product-recommendation.js.map?v=173198701352293010181780753311
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.