1import{Component}from"@theme/component";import{ThemeEvents}from"@theme/events";class ProductSkuComponent extends Component{requiredRefs=["skuContainer","sku"];connectedCallback(){super.connectedCallback();const target=this.closest('[id*="ProductInformation-"], [id*="QuickAdd-"], product-card');target&&target.addEventListener(ThemeEvents.variantUpdate,this.updateSku)}disconnectedCallback(){super.disconnectedCallback();const target=this.closest('[id*="ProductInformation-"], [id*="QuickAdd-"], product-card');target&&target.removeEventListener(ThemeEvents.variantUpdate,this.updateSku)}updateSku=event=>{if(event.detail.data.newProduct&&(this.dataset.productId=event.detail.data.newProduct.id),!(event.target instanceof HTMLElement&&event.target.dataset.productId!==this.dataset.productId)&&event.detail.resource){const variantSku=event.detail.resource.sku||"";variantSku?(this.style.display="block",this.refs.sku.textContent=variantSku):(this.style.display="none",this.refs.sku.textContent="")}}}customElements.get("product-sku-component")||customElements.define("product-sku-component",ProductSkuComponent); 2//# sourceMappingURL=/cdn/shop/t/348/assets/product-sku.js.map?v=121804655373531320511789843622
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.