import{f as p,u as b,p as v,k as y}from"./vendor-vuetify-BaOIwHiz.js";import{i as F,j as V}from"./VTextField-Bo6WlR6l.js";import{E as h}from"./index-CsRk2AqG.js";import{k,N as R,n as P,b as C}from"./vendor-vue-wu2SJQxD.js";const S=v({...y(),...V()},"VForm"),j=p()({name:"VForm",props:S(),emits:{"update:modelValue":o=>!0,submit:o=>!0},setup(o,i){let{slots:s,emit:f}=i;const r=F(o),n=C();function l(t){t.preventDefault(),r.reset()}function u(t){const a=t,e=r.validate();a.then=e.then.bind(e),a.catch=e.catch.bind(e),a.finally=e.finally.bind(e),f("submit",a),a.defaultPrevented||e.then(c=>{var m;let{valid:d}=c;d&&((m=n.value)==null||m.submit())}),a.preventDefault()}return b(()=>{var t;return k("form",{ref:n,class:P(["v-form",o.class]),style:R(o.style),novalidate:!0,onReset:l,onSubmit:u},[(t=s.default)==null?void 0:t.call(s,r)])}),h(r,n)}});export{j as V};
