import{g as d,u as p,p as b,m as v}from"./vuetify-DlufGdsb.js";import{c as y,f as F,m as V}from"./index-vmUNdjsE.js";import{x as h,J as R,q as P,b as k}from"./vue-CPEHuaRL.js";const C=b({...v(),...V()},"VForm"),z=d()({name:"VForm",props:C(),emits:{"update:modelValue":a=>!0,submit:a=>!0},setup(a,n){let{slots:m,emit:l}=n;const o=y(a),s=k();function i(r){r.preventDefault(),o.reset()}function f(r){const t=r,e=o.validate();t.then=e.then.bind(e),t.catch=e.catch.bind(e),t.finally=e.finally.bind(e),l("submit",t),t.defaultPrevented||e.then(u=>{let{valid:c}=u;c&&s.value?.submit()}),t.preventDefault()}return p(()=>h("form",{ref:s,class:P(["v-form",a.class]),style:R(a.style),novalidate:!0,onReset:i,onSubmit:f},[m.default?.(o)])),F(o,s)}});export{z as V};
