1class r extends HTMLElement{constructor(){super(),this.promoElem=null,this.promoConfig=null}connectedCallback(){this.promoElem=this.querySelector(".promo-text"),this.promoConfig||(this.promoConfig=Array.from(document.querySelectorAll(".js-promotext")).map(o=>({tag:o.dataset.tag,text:o.textContent.trim(),color:o.dataset.color}))),this.updatePromoText()}disconnectedCallback(){this.promoElem=null}updatePromoText(){if(!this.promoElem||!this.promoConfig||!this.promoConfig.length)return;const o=Array.from(this.querySelectorAll(".product-tag")).map(e=>e.dataset.tag).filter(Boolean),t=this.promoConfig.find(e=>o.includes(e.tag));t?(this.promoElem.textContent=t.text,this.promoElem.style.color=t.color):(this.promoElem.textContent="",this.promoElem.style.color="")}}customElements.define("card-promo-text",r); 2//# sourceMappingURL=card-promo-text-6vUVnjPA.js.map
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.