import XEUtils from "xe-utils";
import "../../../../@vxe-ui/core/es/index.esm.mjs";
import DomZIndex from "../../../../dom-zindex/es/index.esm.mjs";
import { getConfig } from "../../../../@vxe-ui/core/es/src/config.mjs";
function isEnableConf(conf) {
  return conf && conf.enabled !== false;
}
function nextZIndex() {
  return DomZIndex.getNext();
}
function getLastZIndex() {
  return DomZIndex.getCurrent();
}
function nextSubZIndex() {
  return DomZIndex.getSubNext();
}
function getSubLastZIndex() {
  return DomZIndex.getSubCurrent();
}
function getGlobalDefaultConfig(value, globalValue) {
  if (XEUtils.eqNull(value)) {
    return globalValue;
  }
  return value;
}
function getFuncText(content, args) {
  if (XEUtils.eqNull(content)) {
    return "";
  }
  const translate = getConfig().translate;
  return `${translate ? translate("" + content, args) : content}`;
}
function eqEmptyValue(cellValue) {
  return cellValue === null || cellValue === void 0 || cellValue === "";
}
function handleBooleanDefaultValue(value) {
  return XEUtils.isBoolean(value) ? value : null;
}
export {
  eqEmptyValue,
  getFuncText,
  getGlobalDefaultConfig,
  getLastZIndex,
  getSubLastZIndex,
  handleBooleanDefaultValue,
  isEnableConf,
  nextSubZIndex,
  nextZIndex
};
