https://hordabrand.com/cdn/shop/t/116/assets/product-price.s.min.js?v=119151543883079938231790760835
1import{ThemeEvents,VariantUpdateEvent}from"@theme/events";class ProductPrice extends HTMLElement{connectedCallback(){const e=this.closest(".shopify-section, dialog");e&&e.addEventListener(ThemeEvents.variantUpdate,this.updatePrice)}disconnectedCallback(){const e=this.closest(".shopify-section, dialog");e&&e.removeEventListener(ThemeEvents.variantUpdate,this.updatePrice)}updatePrice=e=>{if(e.detail.data.newProduct)this.dataset.productId=e.detail.data.newProduct.id;else if(e.target instanceof HTMLElement&&e.target.dataset.productId!==this.dataset.productId)return;const t=e.detail.data.html.querySelector('product-price [ref="priceContainer"]'),i=this.querySelector('[ref="priceContainer"]');t&&i&&i.innerHTML!==t.innerHTML&&i.replaceWith(t)}}customElements.get("product-price")||customElements.define("product-price",ProductPrice);
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.