1import{DialogComponent}from"@theme/dialog";import{CartAddEvent}from"@theme/events";class CartDrawerComponent extends DialogComponent{connectedCallback(){super.connectedCallback(),document.addEventListener(CartAddEvent.eventName,this.#handleCartAdd)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(CartAddEvent.eventName,this.#handleCartAdd)}#handleCartAdd=()=>{this.hasAttribute("auto-open")&&this.showDialog()};open(){this.showDialog(),customElements.whenDefined("shopify-payment-terms").then(()=>{document.querySelector("shopify-payment-terms")?.shadowRoot?.querySelector("#shopify-installments-cta")?.addEventListener("click",this.closeDialog,{once:!0})})}close(){this.closeDialog()}}customElements.get("cart-drawer-component")||customElements.define("cart-drawer-component",CartDrawerComponent); 2//# sourceMappingURL=/cdn/shop/t/796/assets/cart-drawer.js.map?v=92290163633888904321783022038
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.