1class ProductForm extends HTMLElement{constructor(){super(),this.form=this.querySelector("form"),this.form.addEventListener("submit",this.onSubmitHandler.bind(this)),this.cartNotification=document.querySelector("cart-notification")}onSubmitHandler(evt){evt.preventDefault(),this.cartNotification.setActiveElement(document.activeElement);const submitButton=this.querySelector('[type="submit"]');submitButton.setAttribute("disabled",!0),submitButton.classList.add("loading");const body=JSON.stringify({...JSON.parse(serializeForm(this.form)),sections:this.cartNotification.getSectionsToRender().map(section=>section.id),sections_url:window.location.pathname});fetch(`${routes.cart_add_url}`,{...fetchConfig("javascript"),body}).then(response=>response.json()).then(parsedState=>{this.cartNotification.renderContents(parsedState)}).catch(e=>{console.error(e)}).finally(()=>{submitButton.classList.remove("loading"),submitButton.removeAttribute("disabled")})}}customElements.define("product-form",ProductForm); 2//# sourceMappingURL=/cdn/shop/t/9/assets/product-form.js.map?v=67332010904971646981784288711
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.