1import CartForm from"module.cart-form";import{EVENTS}from"util.events";class HeaderCart extends HTMLElement{constructor(){super(),this.form=this.querySelector("form"),this.cartType=this.getAttribute("cart-type")}disconnectedCallback(){this.abortController.abort()}connectedCallback(){this.abortController=new AbortController,this.cartForm=new CartForm(this.form),this.cartForm.buildCart(),document.addEventListener(EVENTS.ajaxProductAdded,this.handleCartChange.bind(this),{signal:this.abortController.signal})}async handleCartChange(evt){this.cartForm.cartMarkup(evt.detail.product.sections["cart-ajax"]),!evt?.detail?.preventCartOpen&&this.cartType==="dropdown"&&this.dispatchEvent(new CustomEvent(EVENTS.cartOpen,{bubbles:!0})),this.cartForm.cartItemsUpdated&&(this.cartForm.cartItemsUpdated=!1)}}customElements.define("header-cart-drawer",HeaderCart); 2//# sourceMappingURL=/cdn/shop/t/297/assets/header.cart-drawer.js.map?v=76924253000731865721790816532
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.