1if(!customElements.get("cart-recommendations")){class CartRecommendations extends HTMLElement{constructor(){super(),this.productId=this.dataset.productId,this.excludedIds=this.dataset.excludeProducts.split(",")}connectedCallback(){this.productId&&fetch(window.Shopify.routes.root+`recommendations/products.json?product_id=${this.productId}&limit=4`).then(response=>response.json()).then(({products})=>{products.length<0||this.renderResults(products)})}renderResults(products){const filteredProducts=products.filter(product=>product.inventory_available!==!1&&!product.tags.find(tag=>tag==="base-product"||tag==="hide-product")&&!this.excludedIds.find(id=>id===product.id));if(filteredProducts.length<1||!filteredProducts){this.closest("[cart-recommendations]").classList.add("hidden");return}this.innerHTML=` 2 ${filteredProducts.map(product=>` 3 <intersection-loader 4 data-url="/products/${product.handle}" 5 data-section-id="product-tile-cart" 6 class="!aspect-[6/1]" 7 ></intersection-loader> 8 `).join("")} 9 `}}customElements.define("cart-recommendations",CartRecommendations)} 10//# sourceMappingURL=/cdn/shop/t/1423/assets/cart-recommendations.js.map?v=91615909458984286341790020572
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.