1customElements.get("main-cart-recommendations")||customElements.define("main-cart-recommendations",class extends HTMLElement{constructor(){super(),this.handleRequests=[],this.productRecommendation=this.querySelector("cart-product-recommendations"),this.productRecommendation&&!this.classList.contains("empty")&&this.productRecommendation.update()}update(){fetch(`${routes.cart_url}.js`).then(response=>response.json()).then(cart=>{if(cart.item_count>0){if(this.productRecommendation){this.productRecommendation.classList.remove("hidden");const productIds=cart.items.map(item=>item.product_id);this.productRecommendation.dataset.productIds=productIds,this.productRecommendation.update(),this.classList.remove("hidden")}}else this.productRecommendation&&this.productRecommendation.classList.add("loading"),fetch(`${routes.cart_url}?section_id=${this.dataset.sectionId}`).then(response=>response.text()).then(text=>{this.productRecommendation.classList.add("hidden");const html=parseHtml(text),newWrapper=html.querySelector("main-cart-recommendations");this.classList.toggle("hidden",newWrapper.classList.contains("hidden"));const cartEmptyRecommendation=html.querySelector(".cart__empty-recommendation");cartEmptyRecommendation&&this.appendChild(cartEmptyRecommendation)})})}}); 2//# sourceMappingURL=/cdn/shop/t/12/assets/main-cart-recommendations.js.map?v=65626357530013123211787233663
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.