import{g as d,p,a as b,m as v}from"./vuetify-BI39WAG5.js";import{c as y,f as F,d as V}from"./index-ChuS1rKu.js";import{b as h,y as R,N as P,q as k}from"./vue-BhpnMDi9.js";const C=p({...v(),...V()},"VForm"),D=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=h();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 b(()=>R("form",{ref:s,class:k(["v-form",a.class]),style:P(a.style),novalidate:!0,onReset:i,onSubmit:f},[m.default?.(o)])),F(o,s)}});export{D as V};
