1import{i as insertedMarkupFixes}from"./inserted-markup-fixes-b19b8164.js";class RecommendedProducts extends HTMLElement{constructor(){super(),this.selectors={recommendations:"[data-recommendations]"},this.classes={hidden:"hidden",loading:"loading"}}connectedCallback(){const{sectionId,productId,productLimit}=this.dataset;this.content=this.querySelector(this.selectors.recommendations);const requestUrlParams=new URLSearchParams({section_id:sectionId,limit:productLimit,product_id:productId});fetch(`${window.theme.routes.productRecommendations}?${requestUrlParams}`).then(response=>response.text()).then(responseText=>{const newContent=new DOMParser().parseFromString(responseText,"text/html").querySelector(this.selectors.recommendations);newContent.innerHTML.trim()!==""?(this.content.innerHTML=newContent.innerHTML,insertedMarkupFixes(this.content),this.classList.remove(this.classes.loading)):this.classList.add(this.classes.hidden)})}}customElements.get("recommended-products")||customElements.define("recommended-products",RecommendedProducts); 2//# sourceMappingURL=/cdn/shop/t/130/assets/recommended-products.js.map?v=37619421390848689531788332056
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.