1import{a as t}from"./BaseElement.DAzHg0T6.min.js";import{W as n}from"./WithShopifyCart.BfLudaeZ.min.js";import{b as r,A as i}from"./vendor-lit.Cg17OMaX.min.js";import"./WithApiClient.PdN3Ndxr.min.js";import"./vendor.BxRSgd5H.min.js";import"./cart-context.QcHz7LM1.min.js";import"./cart-sections.irqgSI0g.min.js";class e extends(n(t)){static get properties(){return{translation:{type:Object}}}constructor(){super(),this.translation={},this.isCart="true"===this.dataset.isCart}get translatedCartCount(){var t;return(null==(t=this.translation)?void 0:t.cart_count)||"###count### items in your cart"}render(){const t=(null==(e=null==(n=this.cart)?void 0:n.items)?void 0:e.length)?n.items.filter(t=>!function(t){const n=t.properties??{},r=n._gwp,i=n._gwp_free;return"true"===r||"1"===r||"true"===i}(t)).reduce((t,n)=>t+n.quantity,0):(null==n?void 0:n.item_count)??0;var n,e;return this.isCart?r` 2 <span class="caption" 3 >${1==t?window.cartStrings.itemCountOne.replace("{{ count }}",t):window.cartStrings.itemCountOther.replace("{{ count }}",t)}</span 4 > 5 `:r` 6 ${t>99||0===t?i:r` <span aria-hidden="true">${t}</span> `} 7 <span class="sr-only" 8 >${this.translatedCartCount.replace("###count###",String(t))}</span 9 > 10 `}}window.customElements.define("cart-total",e);
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.