import{au as d,cw as p,bI as b,a_ as v,W as y,bo as F,bm as V,bO as h}from"#entry";import{c as R,m as P}from"./BbcaTmac.js";import{f as k}from"./D_qxKlPu.js";const C=b({...v(),...P()},"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=R(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 p(()=>y("form",{ref:s,class:V(["v-form",a.class]),style:F(a.style),novalidate:!0,onReset:i,onSubmit:f},[m.default?.(o)])),k(o,s)}});export{D as V};
