import{d as i,v as I,l as u,a as p,k as C,i as c,A as f,p as a}from"./preload-helper.BAt0wiQU.js";import{c as x}from"./createContext.DKLY0CB7.js";const r=Symbol("ContextProps"),s=Symbol("InternalContextProps"),b=function(n){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c(()=>!0);const e=f(new Map),t=(m,v)=>{e.value.set(m,v),e.value=new Map(e.value)},F=m=>{e.value.delete(m),e.value=new Map(e.value)};p([o,e],()=>{}),a(r,n),a(s,{addFormItemField:t,removeFormItemField:F})},l={id:c(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},d={addFormItemField:()=>{},removeFormItemField:()=>{}},w=()=>{const n=u(s,d),o=Symbol("FormItemFieldKey"),e=C();return n.addFormItemField(o,e.type),I(()=>{n.removeFormItemField(o)}),a(s,d),a(r,l),u(r,l)},K=i({compatConfig:{MODE:3},name:"AFormItemRest",setup(n,o){let{slots:e}=o;return a(s,d),a(r,l),()=>{var t;return(t=e.default)===null||t===void 0?void 0:t.call(e)}}}),y=x({}),M=i({name:"NoFormStatus",setup(n,o){let{slots:e}=o;return y.useProvide({}),()=>{var t;return(t=e.default)===null||t===void 0?void 0:t.call(e)}}});export{y as F,M as N,K as a,b,w as u};
