1import{G as t}from"./global-events.CQo4HGo3.min.js";class s extends HTMLElement{constructor(){super(),this.overlay=document.querySelector("[data-cart-overlay]"),this.openButton=document.querySelectorAll('[data-selector="minicart-button"]'),this.closeButton=this.querySelector("[data-cart-close]")}connectedCallback(){this.closeButton=this.querySelector("[data-cart-close]"),this.bindEvents()}bindEvents(){this.openButton.forEach(e=>e.addEventListener("click",()=>this.open())),this.closeButton?.addEventListener("click",()=>this.close()),this.overlay?.addEventListener("click",()=>this.close()),document.addEventListener("keydown",e=>{e.key==="Escape"&&this.close()}),document.addEventListener(t.cart.open,()=>{console.log("received cart open event"),this.open()})}open(){this.dataset.open="true",this.classList.remove("translate-x-full"),this.overlay?.classList.remove("opacity-0","pointer-events-none"),document.body.style.overflow="hidden"}close(){this.dataset.open="false",this.classList.add("translate-x-full"),this.overlay?.classList.add("opacity-0","pointer-events-none"),document.body.style.overflow=""}}customElements.define("cart-slideout",s);
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.