import{m as p,u as v}from"./VListItem-53d44b85.js";import{f as b,g as F}from"./VLabel-148b546a.js";import{f as V}from"./VMenu-85495654.js";import{l as y,m as h,r as R,f as P}from"./index-1fa25223.js";const k=y({...p(),...b()},"VForm"),w=h()({name:"VForm",props:k(),emits:{"update:modelValue":r=>!0,submit:r=>!0},setup(r,f){let{slots:m,emit:i}=f;const a=F(r),n=R();function l(t){t.preventDefault(),a.reset()}function u(t){const o=t,e=a.validate();o.then=e.then.bind(e),o.catch=e.catch.bind(e),o.finally=e.finally.bind(e),i("submit",o),o.defaultPrevented||e.then(c=>{var s;let{valid:d}=c;d&&((s=n.value)==null||s.submit())}),o.preventDefault()}return v(()=>{var t;return P("form",{ref:n,class:["v-form",r.class],style:r.style,novalidate:!0,onReset:l,onSubmit:u},[(t=m.default)==null?void 0:t.call(m,a)])}),V(a,n)}});export{w as V};
