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