1if(!customElements.get("quick-shop")){class Quickshop extends HTMLElement{constructor(){super(),this.parentCard=this.closest("[data-product-card]"),this.parentCard.querySelectorAll("[data-quickshop-toggle]").forEach(button=>button.addEventListener("click",this.onPopupToggle.bind(this))),this.querySelectorAll("[data-quickshop-option]").forEach(option=>option.addEventListener("click",this.onOptionSelect.bind(this,option.value,option.dataset.inventoryQuantity)))}onPopupToggle(){this.querySelector("[data-quickshop-popup]").classList.toggle("quickshop__popup--is-open")}onOptionSelect(variantId,inventoryQuantity){const productForm=this.querySelector("product-form"),hiddenId=productForm.querySelector('input[name="id"]'),hiddenInventoryQty=productForm.querySelector('input[name="inventory_quantity"]'),submitButton=productForm.querySelector('[type="submit"]');hiddenId.value=variantId,hiddenInventoryQty.value=inventoryQuantity,submitButton.click()}}window.Quickshop=Quickshop,customElements.define("quick-shop",Quickshop)} 2//# sourceMappingURL=/cdn/shop/t/119/assets/quickshop.js.map?v=50999394316414037601789544174
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.