import e from"../_util/createContext.mjs";import{computed as t,defineComponent as n,getCurrentInstance as r,inject as i,onBeforeUnmount as a,provide as o,ref as s,watch as c}from"vue";var l=Symbol(`ContextProps`),u=Symbol(`InternalContextProps`),d=(e,n=t(()=>!0))=>{let i=s(new Map);r(),c([n,i],()=>{}),o(l,e),o(u,{addFormItemField:(e,t)=>{i.value.set(e,t),i.value=new Map(i.value)},removeFormItemField:e=>{i.value.delete(e),i.value=new Map(i.value)}})},f={id:t(()=>void 0),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},p={addFormItemField:()=>{},removeFormItemField:()=>{}},m=()=>{let e=i(u,p),t=Symbol(`FormItemFieldKey`),n=r();return e.addFormItemField(t,n.type),a(()=>{e.removeFormItemField(t)}),o(u,p),o(l,f),i(l,f)},h=n({compatConfig:{MODE:3},name:`AFormItemRest`,setup(e,{slots:t}){return o(u,p),o(l,f),()=>t.default?.()}}),g=e({}),_=n({name:`NoFormStatus`,setup(e,{slots:t}){return g.useProvide({}),()=>t.default?.()}});export{g as FormItemInputContext,_ as NoFormStatus,h as default,m as useInjectFormItemContext,d as useProvideFormItemContext};