1window.Eurus.loadedScript.includes("product-cart.js")||(window.Eurus.loadedScript.push("product-cart.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xProductCart",()=>({loading:!1,errorMessage:!1,buttonSubmit:"",error_message_wrapper:{},addToCart(e){e.preventDefault();let formData=new FormData(this.$refs.product_form);this.loading=!0,formData.append("sections",Alpine.store("xCartHelper").getSectionsToRender().map(section=>section.id)),formData.append("sections_url",window.location.pathname),fetch("/cart/add",{method:"POST",headers:{Accept:"application/javascript","X-Requested-With":"XMLHttpRequest"},body:formData}).then(reponse=>reponse.json()).then(response=>{response.status=="422"?typeof response.errors=="object"?(this.error_message_wrapper=response.errors,document.querySelector(".recipient-error-message").classList.remove("hidden")):(this.errorMessage=!0,this.$refs.error_message&&(this.$refs.error_message.textContent=response.description)):(document.querySelector(".recipient-error-message")&&document.querySelector(".recipient-error-message").classList.add("hidden"),this.error_message_wrapper={},document.dispatchEvent(new CustomEvent("eurus:cart:items-changed")),Alpine.store("xCartHelper").getSectionsToRender().forEach((section=>{const sectionElement=document.querySelector(section.selector);sectionElement&&response.sections[section.id]&&(sectionElement.innerHTML=getSectionInnerHTML(response.sections[section.id],section.selector))})),Alpine.store("xQuickView")&&(Alpine.store("xQuickView").show=!1),Alpine.store("xPopup").open=!1,Alpine.store("xMiniCart").openCart(),Alpine.store("xCartHelper").currentItemCount=parseInt(document.querySelector("#cart-icon-bubble span").innerHTML))}).catch(error=>{console.error("Error:",error)}).finally(()=>{this.loading=!1})}}))})})); 2//# sourceMappingURL=/cdn/shop/t/61/assets/product-cart.js.map?v=110072743314724235591748761078
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.