import { provide, inject, computed } from 'vue';

const configProviderKey = Symbol("configProvider");
const GlobalFormContextKey = Symbol("GlobalFormContextKey");
const defaultIconPrefixCls = "anticon";
function useProvideGlobalForm(state) {
  provide(GlobalFormContextKey, state);
}
function useInjectGlobalForm() {
  return inject(GlobalFormContextKey, { validateMessages: computed(() => void 0) });
}
const defaultConfigProvider = {
  getPrefixCls: (suffixCls, customizePrefixCls) => {
    if (customizePrefixCls)
      return customizePrefixCls;
    return suffixCls ? `ant-${suffixCls}` : "ant";
  },
  iconPrefixCls: computed(() => defaultIconPrefixCls),
  getPopupContainer: computed(() => () => document.body),
  direction: computed(() => "ltr")
};
function useConfigContextInject() {
  return inject(configProviderKey, defaultConfigProvider);
}
function useConfigContextProvider(props) {
  return provide(configProviderKey, props);
}

export { GlobalFormContextKey, configProviderKey, defaultConfigProvider, defaultIconPrefixCls, useConfigContextInject, useConfigContextProvider, useInjectGlobalForm, useProvideGlobalForm };
//# sourceMappingURL=context.mjs.map
