PageSourceSearch

https://www.lacoquetakids.com/cdn/shop/t/291/assets/product-form.js?v=176226114700306866131761906980

js lacoquetakids.com collected 2026-09-26 18:43:45 UTC 1,105 bytes, 2 lines download raw bytes

1const{buildProperties}=window.BAO.Utils;window.BAO.ProductForm=class extends window.BAO.CustomElement(){setupListeners(){super.setupListeners(),this.cartCheck||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(),await this.addToCart()}async addToCart(){const formData=new FormData(this.form);let id;formData.has("id_complete")?id=Number(formData.get("id_complete")):id=Number(formData.get("id"));const productId=Number(this.form.getAttribute("data-product-id")),quantity=Number(formData.get("quantity")),properties=buildProperties(formData);return window.BAO.Cart.addItem({id,productId,quantity,properties},{form:this.form})}get form(){return this.querySelector("form")}get cartCheck(){return this.dataset.cartQuickbuy||!1}},customElements.get("product-form")||customElements.define("product-form",window.BAO.ProductForm);
2//# sourceMappingURL=/cdn/shop/t/291/assets/product-form.js.map?v=176226114700306866131761906980

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.