import{Component}from"@theme/component";import{ThemeEvents}from"@theme/events";class HeaderActions extends Component{requiredRefs=["liveRegion"];connectedCallback(){super.connectedCallback(),document.addEventListener(ThemeEvents.cartUpdate,this.#onCartUpdate)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(ThemeEvents.cartUpdate,this.#onCartUpdate)}#onCartUpdate=event=>{const cartCount=event.detail.resource?.item_count;cartCount!==void 0&&(this.refs.liveRegion.textContent=`${Theme.translations.cart_count}: ${cartCount}`)}}customElements.get("header-actions")||customElements.define("header-actions",HeaderActions); //# sourceMappingURL=/cdn/shop/t/4/assets/header-actions.js.map?v=121308165565653895611776190214