import{k as p}from"./dVzHJMF1.js";function V(s,c){p([c,s],()=>{c.value&&l(c.value)},{immediate:!0});function l(n,r=""){for(const e of Object.keys(n)){const t=n[e],o=r?r+"."+e:e;if(typeof t!="object"||t===void 0||t===null||t instanceof Date||Array.isArray(t)){F(o,n[e]);continue}else l(t,o)}}function F(n,r){var e,t,o,d,a,f,i,y;try{(t=(e=s.value)==null?void 0:e.setFieldValue)==null||t.call(e,n,r)}catch(u){u instanceof TypeError&&((d=(o=u==null?void 0:u.stack)==null?void 0:o.includes)!=null&&d.call(o,`TypeError: Cannot set properties of undefined (setting 'value')
    at Proxy.setFieldValue2`))&&((f=(a=s.value)==null?void 0:a.register)==null||f.call(a,n),(y=(i=s.value)==null?void 0:i.setFieldValue)==null||y.call(i,n,r))}}}export{V as u};
