1class e extends HTMLElement{form;errorMessageWrapper;errorMessage;urlParams;utmParam;constructor(){super(),this.form=this.querySelector("form");const r=this.form.querySelector("[name=id]");r&&(r.disabled=!1),this.urlParams=new URLSearchParams(window.location.search),this.utmParam=this.urlParams.get("utm"),this.utmParamToCartNoteAttribute()}async utmParamToCartNoteAttribute(){if(this.utmParam!==null&&this.utmParam!==""&&window.sh_product&&window.sh_product.tags.includes("twd_delivery")){const r=new FormData;r.append("attributes[utm]",this.utmParam);try{await fetch(window.Shopify.routes.root+"cart/update.js",{method:"POST",body:r})}catch{}}}handleErrorMessage(r=!1){this.errorMessageWrapper=this.errorMessageWrapper||this.querySelector(".product-form__error-message-wrapper"),this.errorMessageWrapper&&(this.errorMessage=this.errorMessage||this.errorMessageWrapper.querySelector(".product-form__error-message"),this.errorMessageWrapper.toggleAttribute("hidden",!r),r&&this.errorMessage&&(this.errorMessage.textContent=r))}}customElements.get("product-form")||customElements.define("product-form",e); 2//# sourceMappingURL=product-form-BDQuuYeN.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.