1import{a as s}from"./vendor-58675f0b.js";class n extends s{setupDefaults(){this.dom={deleteButtons:document.querySelectorAll(".cart-sample-item__delete-button")}}addListeners(){this.dom.deleteButtons.forEach(t=>{t.addEventListener("click",this.deleteItem.bind(this))})}deleteItem(t){const d=t.target.closest(".cart-sample-item__delete-button");if(!d)return;const e=d.getAttribute("data-product-id");e&&this.el.dataset.endpoint&&fetch(this.el.dataset.endpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`id=${e}`}).then(a=>{if(a.ok){const o=document.querySelector(`.cart-sample-item:has([data-product-id="${e}"])`);o&&o.remove()}})}}export{n as default}; 2//# sourceMappingURL=cartSample-7ce19c93.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.