1import{d as u,a0 as v,r as c,X as p}from"./state-Bf4GxglA.js";import"./tokens-DERl5KQ3.js";const y=u({name:"ValidationObserver",__name:"ValidationObserver",props:{slim:{type:Boolean,default:!1}},setup(f,{expose:n}){const r=c(new Set),i=e=>{r.value.add(e)},l=e=>{r.value.delete(e)},t=async()=>{const e=Array.from(r.value);return e.length===0?!0:(await Promise.all(e.map(d=>d.validate()))).every(Boolean)},s=async e=>{if(await t()&&typeof e=="function")return e()},a=()=>{r.value.forEach(e=>e.reset())};return p("validationObserverApi",{register:i,unregister:l}),n({handleSubmit:s,reset:a,validate:t}),(e,o)=>v(e.$slots,"default",{handleSubmit:s,reset:a})}});export{y as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.