"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),F=require("../_util/createContext.js"),r=Symbol("ContextProps"),m=Symbol("InternalContextProps"),I=(n,o=e.computed(()=>!0))=>{const t=e.ref(new Map),l=(u,c)=>{t.value.set(u,c),t.value=new Map(t.value)},i=u=>{t.value.delete(u),t.value=new Map(t.value)};e.getCurrentInstance(),e.watch([o,t],()=>{}),e.provide(r,n),e.provide(m,{addFormItemField:l,removeFormItemField:i})},d={id:e.computed(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},a={addFormItemField:()=>{},removeFormItemField:()=>{}},p=()=>{const n=e.inject(m,a),o=Symbol("FormItemFieldKey"),t=e.getCurrentInstance();return n.addFormItemField(o,t.type),e.onBeforeUnmount(()=>{n.removeFormItemField(o)}),e.provide(m,a),e.provide(r,d),e.inject(r,d)},v=e.defineComponent({compatConfig:{MODE:3},name:"AFormItemRest",setup(n,{slots:o}){return e.provide(m,a),e.provide(r,d),()=>o.default?.()}}),s=F.default({}),C=e.defineComponent({name:"NoFormStatus",setup(n,{slots:o}){return s.useProvide({}),()=>o.default?.()}});exports.FormItemInputContext=s;exports.NoFormStatus=C;exports.default=v;exports.useInjectFormItemContext=p;exports.useProvideFormItemContext=I;
