PageSourceSearch

https://microperfumes.com/cdn/shop/t/195/assets/add-item-drawer-suggestions.js?v=43555431231231150111785446488

js microperfumes.com collected 2026-09-25 14:04:52 UTC 1,782 bytes, 2 lines download raw bytes

1class DrawerExplore extends HTMLElement{constructor(){super(),this.script=this.querySelector("#CartJSON"),this.script&&(this.data=JSON.parse(this.script.textContent),this.data.items.length!=0&&(this.list=this.querySelector(".cart__upsell-products"),this.init(),this.addEventListener("click",event=>{window._conv_q=window._conv_q||[],_conv_q.push(["triggerConversion","1004101052"]),console.log("Convert: Suggested product added to cart")})))}init(){const element=this,skus=this.data.items.map(item=>{if(item.sku)return item.sku}).filter(sku=>sku).join(",");if(skus.length==0){this.closest(".cart__upsell").remove();return}fetch(`${window.explore.endpoint.replace("{skus}",skus)}`).then(response=>response.json()).then(response=>{var promises=[];response.forEach(item=>{var promise=new Promise((resolve,reject)=>{fetch(`${window.routes.products}/${item.handle}?section_id=product_drawer-suggestions`).then(response2=>response2.text()).then(responseText=>{const quickbuy=new DOMParser().parseFromString(responseText,"text/html").querySelector("drewer-component");resolve(quickbuy)})});promises.push(promise)}),Promise.all(promises).then(quickbuys=>{this.list.innerHTML="",quickbuys.forEach(quickbuy=>{if(quickbuy){const li=document.createElement("li");li.appendChild(quickbuy),this.list.appendChild(li)}})})})}}customElements.define("drawer-suggestions",DrawerExplore);class SuggestedExplore extends HTMLElement{constructor(){super(),this.addEventListener("click",event=>{window._conv_q=window._conv_q||[],_conv_q.push(["triggerConversion","1004101052"]),console.log("Convert: Suggested product added to cart")})}}customElements.define("cart-suggestion",SuggestedExplore);
2//# sourceMappingURL=/cdn/shop/t/195/assets/add-item-drawer-suggestions.js.map?v=43555431231231150111785446488

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.