1var o=Object.defineProperty;var c=(a,e,t)=>e in a?o(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var i=(a,e,t)=>(c(a,typeof e!="symbol"?e+"":e,t),t);class r extends HTMLElement{constructor(){super(...arguments);i(this,"addToCompare",()=>{const t=JSON.parse(localStorage.getItem("compareStack")||"[]");t.unshift({id:this.productId,title:this.productTitle,image:this.productImage,handle:this.handle}),t.length>2&&t.pop(),localStorage.setItem("compareStack",JSON.stringify(t)),this.dispatchEvent(new CustomEvent("itemAdded",{detail:{id:this.productId,title:this.productTitle}}));const d=document.querySelector("compare-at-portal");d&&d.updatePortal()})}connectedCallback(){this.productId=this.getAttribute("data-product-id"),this.productTitle=this.getAttribute("data-product-title"),this.handle=this.getAttribute("data-product-handle"),this.productImage=this.getAttribute("data-product-image"),this.addEventListener("click",this.addToCompare)}}customElements.define("add-compare",r); 2//# sourceMappingURL=add-compare.8b4acafe.min.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.