1if(!customElements.get("product-card")){class ProductCard extends HTMLElement{constructor(){super()}handleInsideLinkClick=event=>{event.preventDefault()};fetchProduct(event){event.preventDefault();const isWithinSlider=this.closest("slider-component")!==null,isWithinCartDrawer=this.closest("#CartDrawer")!==null,isProductPage=document.body.classList.contains("product"),isMobile=window.innerWidth<750;fetch(event.target.dataset.productUrl+"?view=card-product--swatches").then(response=>response.text()).then(text=>{const newHtml=new DOMParser().parseFromString(text,"text/html").querySelector("product-card").innerHTML;newHtml!==null&&(this.innerHTML=newHtml,this.handleProductCardSwatchClick())}).catch(e=>{console.error(e)})}handleProductCardSwatchClick(){this.querySelectorAll("product-group product-group-swatch").forEach(swatch=>{swatch.addEventListener("click",this.fetchProduct.bind(this)),swatch.querySelector("a.product-group--item")?.classList.add("js-load"),swatch.querySelector("a.product-group--item")?.addEventListener("click",this.handleInsideLinkClick)})}}customElements.define("product-card",ProductCard)} 2//# sourceMappingURL=/cdn/shop/t/674/assets/ua_product-card.js.map?v=88317790369767652631767688658
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.