'use strict';

var vue = require('vue');
require('./context/index.cjs');
var context = require('./context/context.cjs');

const defaultPrefixCls = "ant";
const globalConfigForApi = vue.reactive({});
function getGlobalIconPrefixCls() {
  return globalConfigForApi.iconPrefixCls || context.defaultIconPrefixCls;
}
function getGlobalPrefixCls() {
  return globalConfigForApi.prefixCls || defaultPrefixCls;
}
function globalConfig() {
  return {
    getPrefixCls: (suffixCls, customizePrefixCls) => {
      if (customizePrefixCls)
        return customizePrefixCls;
      return suffixCls ? `${getGlobalPrefixCls()}-${suffixCls}` : getGlobalPrefixCls();
    },
    getIconPrefixCls: getGlobalIconPrefixCls,
    getRootPrefixCls: () => {
      if (globalConfigForApi.prefixCls)
        return globalConfigForApi.prefixCls;
      return getGlobalPrefixCls();
    }
  };
}

exports.defaultPrefixCls = defaultPrefixCls;
exports.getGlobalIconPrefixCls = getGlobalIconPrefixCls;
exports.getGlobalPrefixCls = getGlobalPrefixCls;
exports.globalConfig = globalConfig;
exports.globalConfigForApi = globalConfigForApi;
//# sourceMappingURL=config.cjs.map
