/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var merge = require('lodash/merge');
var mergeWith$1 = require('lodash/mergeWith');
var zh_CN = require('../../chunks/zh_CN.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var merge__default = /*#__PURE__*/_interopDefaultLegacy(merge);
var mergeWith__default = /*#__PURE__*/_interopDefaultLegacy(mergeWith$1);

var defaultConfig = {
  classPrefix: "l",
  animation: {
    include: ["ripple", "expand", "fade"],
    exclude: []
  },
  calendar: {
    firstDayOfWeek: 1,
    fillWithZero: true,
    controllerConfig: void 0
  },
  icon: {},
  input: {
    autocomplete: ""
  },
  dialog: {
    closeOnEscKeydown: true,
    closeOnOverlayClick: true,
    confirmBtnTheme: {
      default: "primary",
      info: "primary",
      warning: "primary",
      danger: "primary",
      success: "primary"
    }
  },
  popconfirm: {
    confirmBtnTheme: {
      default: "primary",
      warning: "primary",
      danger: "primary"
    }
  },
  table: {
    expandIcon: void 0,
    sortIcon: void 0,
    filterIcon: void 0,
    treeExpandAndFoldIcon: void 0,
    hideSortTips: false
  },
  select: {
    clearIcon: void 0,
    filterable: false
  },
  drawer: {
    closeOnEscKeydown: true,
    closeOnOverlayClick: true,
    size: "small"
  },
  tree: {
    folderIcon: void 0
  },
  datePicker: {
    firstDayOfWeek: 1
  },
  steps: {
    errorIcon: void 0
  },
  tag: {
    closeIcon: void 0
  },
  form: {
    requiredMark: void 0
  }
};

var EAnimationType = /* @__PURE__ */(EAnimationType2 => {
  EAnimationType2["ripple"] = "ripple";
  EAnimationType2["expand"] = "expand";
  EAnimationType2["fade"] = "fade";
  return EAnimationType2;
})(EAnimationType || {});
const defaultGlobalConfig = merge__default["default"](defaultConfig, zh_CN.zh_CN);
const mergeWith = (defaultGlobalConfig2, injectConfig) => mergeWith__default["default"](defaultGlobalConfig2, injectConfig, (objValue, srcValue) => {
  if (Array.isArray(objValue)) return srcValue;
});

exports.EAnimationType = EAnimationType;
exports.defaultGlobalConfig = defaultGlobalConfig;
exports.mergeWith = mergeWith;
//# sourceMappingURL=context.js.map
