PageSourceSearch

https://maison-damas.com/cdn/shop/t/66/assets/product-badge.js?v=77948724958744191271781871785

js maison-damas.com collected 2026-10-08 00:41:06 UTC 1,432 bytes, 2 lines download raw bytes

1import{ThemeEvents}from"@theme/events";class ProductBadge extends HTMLElement{connectedCallback(){const closestSection=this.closest(".shopify-section, dialog");closestSection&&closestSection.addEventListener(ThemeEvents.variantUpdate,this.updateBadge)}disconnectedCallback(){const closestSection=this.closest(".shopify-section, dialog");closestSection&&closestSection.removeEventListener(ThemeEvents.variantUpdate,this.updateBadge)}updateBadge=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;if(!event.detail.data.html)return;const productId=this.dataset.productId;let newBadge=null;if(productId){const allBadges=event.detail.data.html.querySelectorAll("product-badge");for(const badge of allBadges)if(badge.dataset.productId===productId){newBadge=badge.querySelector('[ref="badgesContainer"]');break}}newBadge||(newBadge=event.detail.data.html.querySelector("product-badge")?.querySelector('[ref="badgesContainer"]'));const currentBadge=this.querySelector('[ref="badgesContainer"]');!newBadge||!currentBadge||currentBadge.innerHTML!==newBadge.innerHTML&&currentBadge.replaceWith(newBadge)}}customElements.get("product-badge")||customElements.define("product-badge",ProductBadge);
2//# sourceMappingURL=/cdn/shop/t/66/assets/product-badge.js.map?v=77948724958744191271781871785

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.