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