1import{b as s}from"./app-d8bad108.js";const a=class r extends s{run(){window.pimcore||(this.bind(),this.setListeners())}bind(){this.form=this.element.querySelector("form"),this.radioInputs=Array.from(this.element.querySelectorAll(r.SELECTORS.radioInput));const t=this.element.querySelector("[data-cart-data]");this.cartData=JSON.parse(t.dataset.cartData)}setListeners(){this.form.addEventListener("submit",t=>{this.radioInputs.forEach(e=>{e.checked&&(window.dataLayer=window.dataLayer||[],this.cartData.ecommerce.payment_type=e.value,window.dataLayer.push({ecommerce:null}),window.dataLayer.push(this.cartData))})})}};a.SELECTORS={radioInput:'[name="form[payment_method]"]'};let o=a;export{o as default};
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.