https://shop.newbelgium.com/cdn/shop/t/4/assets/product-inventory.js?v=81520546963552472391774386996
1import{ThemeEvents}from"@theme/events";import{morph}from"@theme/morph";import{Component}from"@theme/component";class ProductInventory extends Component{connectedCallback(){super.connectedCallback(),this.closest(".shopify-section, dialog")?.addEventListener(ThemeEvents.variantUpdate,this.updateInventory)}disconnectedCallback(){super.disconnectedCallback(),this.closest(".shopify-section, dialog")?.removeEventListener(ThemeEvents.variantUpdate,this.updateInventory)}updateInventory=event=>{if(event.detail.data.newProduct)this.dataset.productId=event.detail.data.newProduct.id;else if(event.target instanceof HTMLElement&&event.target.dataset.productId!==this.dataset.productId)return;const newInventory=event.detail.data.html.querySelector("product-inventory");newInventory&&morph(this,newInventory,{childrenOnly:!0})}}customElements.get("product-inventory")||customElements.define("product-inventory",ProductInventory); 2//# sourceMappingURL=/cdn/shop/t/4/assets/product-inventory.js.map?v=81520546963552472391774386996
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.