1import{d as f,r as i,c as m}from"./vue.esm-D6kxFMzM.js";import{c as _}from"./FormValidate-DoCuxxbD.js";import{p as v}from"./postFormData-uUdGn-8v.js";import{n as F}from"./_plugin-vue2_normalizer-p4i_2SC9.js";import"./global-jquery-CDd9sieU.js";import"./jquery-WKbeL-yW.js";import"./graphql-lsp-B6A8sSuz.js";import"./registerPlugin-4JOtW-KC.js";import"./LazyLoading-Nfw3y1Yi.js";const b=f({name:"MeProdForm",components:{},props:{scope:{type:Object,required:!0},cssclass:{type:String,required:!0},data:{required:!0,type:Object}},setup(o){const e=i([]);i(null);function t(r){return r?parseFloat(String(r).replace(/[^0-9.]/g,"")):0}const a=m(()=>`$ ${e.value.reduce((r,s)=>r+t(s.price),t(o.scope.value.price)).toFixed(2)}`),n=m(()=>({addBundle(r){e.value.push(r)},removeBundle(r){e.value.splice(r,1)},bundle:e.value,price:a.value})),{isValid:u,items:c,validate:d,reset:p}=_();function l(r){if(o.data.async){r.preventDefault();const s=new FormData(r.target,r.submitter);v(s).then(()=>p())}}return{prodform:n,bundle:e,isValid:u,items:c,validate:d,submitForm:l}}});var P=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.cssclass},[t("form",{attrs:{method:"post",name:"ProdForm"},on:{submit:e.submitForm}},[e._t("default"),e._l(e.bundle,function(a,n){return t("input",{key:n,attrs:{type:"hidden",name:"ProdForm[all][Bundle][]"},domProps:{value:a.id}})})],2)])},y=[],h=F(b,P,y,!1,null,"70d4ba60");const O=h.exports;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.