1import{Ht as e,g as t,vn as n}from"./runtime-core.esm-bundler-DPmoNEl9.js";import{t as r}from"./ssr-F9GWYbf6.js";import{r as i,t as a}from"./useEvents-DFY3Q5oo.js";var o=r=>{let i=n([]);return e(()=>Object.keys(r.values).map(e=>({key:e,value:r.isFieldTouched(e)})),e=>{i.value=e.filter(e=>e.value).map(e=>e.key)}),t(()=>Object.fromEntries(Object.entries(r.errors.value).filter(([e])=>i.value.includes(e))))},s=[],c=(e,t,n)=>{r&&globalThis?.dispatchEvent!==void 0&&globalThis.dispatchEvent(new CustomEvent(i(e,n),{detail:t}))},l=(e,t,n={})=>{let i={...t,...n};r&&(t?.FormID&&c(e,i,t.FormID),c(e,i));for(let t of s)t(e,i)},u=e=>{l(a.FormMounted,e)},d=e=>{l(a.FormBeforeUnmount,e)},f=e=>{l(a.FormLoaded,e)},p=(e,t,n,r)=>{l(a.FormSubmit,n,{formData:e,isLastStep:t,response:r})},m=(e,t)=>{l(a.FormBeforeSubmit,t,{formData:e})},h=e=>{l(a.FormBeforeSubmitForResume,e)},g=e=>{l(a.FormSubmitForResume,e)},_=(e,t)=>{l(a.FormSubmitError,t,{error:e})},v=(e,t,n)=>{l(a.ValidationGroupChanged,n,{groupName:e,isValid:t})},y=e=>{l(a.FormResumeSuccess,e?{FormID:e}:{})},b=(e,t)=>{Object.keys(t).length!==0&&l(a.FormBeforeSubmitValidationError,e,{errors:t})},x=(e,t,n)=>{l(a.FileUploadSuccess,e,{fieldName:t,file:n})},S=(e,t,n,r)=>{l(a.FileUploadError,e,{fieldName:t,file:n,error:r})},C=(e,t,n,r)=>{l(a.FileUploadValidationError,e,{fieldName:t,file:n,errors:r})},w=t=>{e(()=>t.StepStore.currentStepIndex,e=>
1{t.FormStore.loaded&&l(a.StepChanged,t,{stepIndex:e})},{immediate:!0})},T=t=>{e(()=>t.FormInstance.meta.value.valid,e=>{l(a.ValidationChanged,t,{isValid:e})},{immediate:!0});let n=o(t.FormInstance);e(n,(e,n)=>{let r=Object.keys(e).length,i=Object.keys(n).length;r&&r>i&&l(a.ValidationError,t,{errors:e})})},E=t=>{e(t.FormInstance.values,e=>{l(a.FormUpdated,t,{formData:e})},{immediate:!0})},D=e=>{r&&s.push(e)};export{w as _,h as a,f as c,_ as d,p as f,E as g,D as h,m as i,u as l,v as m,x as n,b as o,g as p,C as r,d as s,S as t,y as u,T as v,o as y};
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.