https://www.bajaao.com/cdn/shop/t/344/assets/marmeto-product-card.js?v=93857096558610921371788873181
1class marmetoProductCard extends HTMLElement{constructor(){super()}connectedCallback(){this.initEvent()}initEvent(){let swatchs=this.querySelectorAll(".color-swatch"),_this=this;console.log(this.querySelectorAll(".color-swatch")),swatchs.length>0&&swatchs.forEach(swatch=>{swatch.addEventListener("click",e=>{e.preventDefault();let productUrl=e.target.getAttribute("data-href");console.log(productUrl),_this.onVariantChange(productUrl)})})}onVariantChange(productUrl){this.renderProductCard(productUrl)}async renderProductCard(productUrl){this.productCard=this.closest("marmeto-product-card"),this.sectionId=this.productCard.dataset.sectionId,this.productHandle=this.productCard.dataset.productHandle,this.templateParam=this.closest("multi-product-form")?"card-complementary":"card";let variantUrl=`${productUrl}§ion_id=product-card`;try{const responseText=await(await fetch(variantUrl)).text(),responseCard=new DOMParser().parseFromString(responseText,"text/html").querySelector("marmeto-product-card");this.productCard.innerHTML=responseCard.innerHTML,this.initEvent(productUrl)}catch(error){console.error("Error fetching data:",error)}}}customElements.define("marmeto-product-card",marmetoProductCard); 2//# sourceMappingURL=/cdn/shop/t/344/assets/marmeto-product-card.js.map?v=93857096558610921371788873181
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.