'use strict';

var vue = require('vue');

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

exports.GlobalFormContextKey = GlobalFormContextKey;
exports.configProviderKey = configProviderKey;
exports.defaultConfigProvider = defaultConfigProvider;
exports.defaultIconPrefixCls = defaultIconPrefixCls;
exports.useConfigContextInject = useConfigContextInject;
exports.useConfigContextProvider = useConfigContextProvider;
exports.useInjectGlobalForm = useInjectGlobalForm;
exports.useProvideGlobalForm = useProvideGlobalForm;
//# sourceMappingURL=context.cjs.map
