1import{d as t}from"./defineElement-Bh-rOTph.js";import"./GlobalStylesStore--z5tmrDj.js";import{T as e}from"./TemplateElement-u6hNeGmQ.js";import{S as o}from"./ShoppingCartEvents-BujDqPUD.js";import{a as s}from"./js.cookie-BZunJvXJ.js";import{h as r}from"./html-BmWsKWcd.js";import"./StyledElement-Dmi2NcTH.js";const n=`${window.siteConfig().siteName}_cart`,a=()=>{const t=s.get(n);return t?JSON.parse(t):{}};class i extends e{constructor(){super({shadowRender:!1})}properties(){return{count:!1,url:""}}connected(){this.updateCartCount()}updateCartCount(){const{count:t}=a();this.count=t}events(){return{document:{[o.CART_CHANGED]:t=>{this.updateCartCount()}}}}template(){return this.count?r` <div class="count">${this.count}</div> `:""}}t("cart-count",i);export{i as default}; 2//# sourceMappingURL=cart-count-CvHRWbcG.js.map
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.