/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

import { merge, mergeWith as mergeWith$1 } from 'lodash';
import { z as zh_CN } from '../../chunks/zh_CN.js';
import './type.js';

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(defaultConfig, zh_CN);
const mergeWith = (defaultGlobalConfig2, injectConfig) => mergeWith$1(defaultGlobalConfig2, injectConfig, (objValue, srcValue) => {
  if (Array.isArray(objValue)) return srcValue;
});

export { EAnimationType, defaultGlobalConfig, mergeWith };
//# sourceMappingURL=context.js.map
