1import{s as a}from"./__vite-cart.e0f5f94b.js";import"./__vite-utils.9fac69fd.js";import"./__vite-section-loader.cfabd402.js";class i extends HTMLElement{constructor(){super(),this.price_currency_code=this.getAttribute("price-currency-code"),this.shop_secure_url=this.getAttribute("shop-secure-url")}connectedCallback(){this.unsubscribeCartContent=a(this.updateCart.bind(this),!0)}disconnectedCallback(){this.unsubscribeCartContent()}updateCart(s){window.nostojs&&nostojs(e=>{const n=s.items.map(t=>this.lineItemToHtml(t)).join("\r"),r=s.items.map(t=>`${t.variant_id}:${t.quantity}`).join(",");this.innerHTML=` 2 ${n} 3 ${s.items.length?`<span class="restore_link">${this.shop_secure_url}/cart/${r}</span>`:""}`,e.resendCartTagging()})}lineItemToHtml(s){return` 4 <div class="line_item"> 5 <span class="product_id">${s.product_id}</span> 6 <span class="sku_id">${s.variant_id}</span> 7 <span class="quantity">${s.quantity}</span> 8 <span class="name">${s.title}</span> 9 <span class="unit_price">${(parseInt(s.price)/100).toFixed(2).replace(/\./,",")}</span> 10 <span class="price_currency_code">${this.price_currency_code}</span> 11 </div> 12 `}}customElements.define("nosto-cart-updater",i);
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.