1/* 2Generated time: July 4, 2025 06:21 3This file was created by the app developer. Feel free to contact the original developer with any questions. It was minified (compressed) by AVADA. AVADA do NOT own this script. 4*/ 5class CartTool extends HTMLElement{constructor(){super(),this.querySelectorAll(".cartTool-item").forEach(e=>{e.addEventListener("click",e=>{e=e.target.dataset.popup;document.getElementById(e).classList.add("show"),document.querySelector(".previewCart").classList.add("active-tool")})})}}customElements.define("cart-item-tool",CartTool);class CartCancel extends HTMLElement{constructor(){super(),this.querySelector("button").addEventListener("click",e=>{document.querySelector(".popup-toolDown.show").classList.remove("show"),document.querySelector(".previewCart").classList.remove("active-tool")})}}customElements.define("cart-cancel-popup",CartCancel);class CartNote extends HTMLElement{constructor(){super(),this.querySelector("[data-update-note]").addEventListener("click",e=>{this.val=this.querySelector(".text-area").value;var t=JSON.stringify({note:this.val});fetch(""+routes.cart_update_url,{...fetchConfig(),body:t}),document.querySelector(".popup-toolDown.show").classList.remove("show"),document.querySelector(".previewCart").classList.remove("active-tool")})}}customElements.define("cart-note",CartNote);class CouponCode extends HTMLElement{constructor(){super(),localStorage.getItem("storedDiscount")&&(this.querySelector('input[name="discount"]').value=localStorage.getItem("storedDiscount")),this.querySelector("[data-update-coupon]").addEventListener("click",e=>{this.val=this.querySelector('input[name="discount"]').value,localStorage.setItem("storedDiscount",this.val),fetch("/discount/"+this.val).then(e=>e.text()).then(e=>{}),document.querySelector(".popup-toolDown.show").classList.remove("show"),document.querySelector(".previewCart").classList.remove("active-tool")})}}customElements.define("coupon-code",CouponCode);
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.