1import{ThemeEvents}from"@theme/events";class ProductInventory extends HTMLElement{connectedCallback(){document.addEventListener(ThemeEvents.variantUpdated,this.updateInventory)}disconnectedCallback(){document.removeEventListener(ThemeEvents.variantUpdated,this.updateInventory)}updateInventory=event=>{const newInventory=event.detail.data.html.querySelector('product-inventory [data-ref="product-inventory"]'),currentInventory=this.querySelector('[data-ref="product-inventory"]');!newInventory||!currentInventory||currentInventory.innerHTML!==newInventory.innerHTML&¤tInventory.replaceWith(newInventory)}}customElements.get("product-inventory")||customElements.define("product-inventory",ProductInventory); 2//# sourceMappingURL=/cdn/shop/t/18/assets/product-inventory.js.map?v=114919273639004965001781090903
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.