1if(!customElements.get("promotions-messaging")){class ComponentPromotionsMessaging extends HTMLElement{constructor(){super(),this.url=this.dataset.url,this.disableCollections=this.dataset.disableCollections==="true",this.disablePriceAdjustment=this.dataset.disablePriceAdjustment==="true",this.loadPromotions()}async loadPromotions(){const response=await fetch(`${this.url}?section_id=product_promos`);if(!response)return;const stringHtml=await response.text(),htmlPromos=new DOMParser().parseFromString(stringHtml,"text/html");if(!htmlPromos)return null;const productPromosHtml=htmlPromos.querySelector(".product-promos .product-promo"),collectionPromosHtml=htmlPromos.querySelector(".product-promos .collection-promo");if(!(this.disableCollections&&collectionPromosHtml))if(productPromosHtml||collectionPromosHtml){if(this.appendChild(htmlPromos.querySelector(".product-promos")),collectionPromosHtml&&!this.disablePriceAdjustment){var pricesEl=this.parentNode.querySelectorAll(".price");pricesEl.forEach(priceEl=>priceEl.querySelector(".final")?.classList.add("compare","offer"))}}else this.classList.add("hide")}}customElements.define("promotions-messaging",ComponentPromotionsMessaging)} 2//# sourceMappingURL=/cdn/shop/t/528/assets/component_promotions_messaging.js.map?v=108437293504161295491790111896
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.