import{g as d,a as p,p as v,az as b,c as y,ah as F,n as V,a4 as h}from"#entry";import{c as R,m as P}from"./xGkJbl6f.js";import{f as k}from"./D_qxKlPu.js";const z=v({...b(),...P()},"VForm"),D=d()({name:"VForm",props:z(),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(c=>{let{valid:u}=c;u&&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};
