1export class ProductForm extends window.BAO.CustomElement(){setupListeners(){super.setupListeners(),this.listeners.add(this.form,"submit",this.onSubmitHandler.bind(this))}checkValidity(){super.checkValidity(),this.form||this.throwError("needs to be wrapped around a product's <form> element")}async onSubmitHandler(e){e.preventDefault();try{await this.addToCart()}catch(error){console.error("Error while adding to cart: ",error)}}async addToCart(){return window.BAO.Cart.addItemFromForm(this.form)}get form(){return this.querySelector("form")}}customElements.define("product-form",ProductForm); 2//# sourceMappingURL=/cdn/shop/t/914/assets/product-form.js.map?v=152139293724996877651787650528
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.