import{On as e,br as t,ii as n,kn as r,mi as i,pi as a,r as o,vn as s,wn as c}from"./index-BKLG6eUi.js";import{d as l,f as u}from"./VTextField-Bs8XQAKI.js";var d=r({...e(),...u()},`VForm`),f=c()({name:`VForm`,props:d(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,{slots:r,emit:c}){let u=l(e),d=n();function f(e){e.preventDefault(),u.reset()}function p(e){let t=e,n=u.validate();t.then=n.then.bind(n),t.catch=n.catch.bind(n),t.finally=n.finally.bind(n),c(`submit`,t),t.defaultPrevented||n.then(({valid:e})=>{e&&d.value?.submit()}),t.preventDefault()}return s(()=>t(`form`,{ref:d,class:a([`v-form`,e.class]),style:i(e.style),novalidate:!0,onReset:f,onSubmit:p},[r.default?.({get errors(){return u.errors.value},get isDisabled(){return u.isDisabled.value},get isReadonly(){return u.isReadonly.value},get isValidating(){return u.isValidating.value},get isValid(){return u.isValid.value},get items(){return u.items.value},validate:u.validate,reset:u.reset,resetValidation:u.resetValidation})])),o(u,d)}});export{f as t};