"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const XEUtils = require("xe-utils");
require("../../../../@vxe-ui/core/es/index.esm.js");
const index_esm = require("../../../../dom-zindex/es/index.esm.js");
const config = require("../../../../@vxe-ui/core/es/src/config.js");
function isEnableConf(conf) {
  return conf && conf.enabled !== false;
}
function nextZIndex() {
  return index_esm.default.getNext();
}
function getLastZIndex() {
  return index_esm.default.getCurrent();
}
function nextSubZIndex() {
  return index_esm.default.getSubNext();
}
function getSubLastZIndex() {
  return index_esm.default.getSubCurrent();
}
function getGlobalDefaultConfig(value, globalValue) {
  if (XEUtils.eqNull(value)) {
    return globalValue;
  }
  return value;
}
function getFuncText(content, args) {
  if (XEUtils.eqNull(content)) {
    return "";
  }
  const translate = config.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;
}
exports.eqEmptyValue = eqEmptyValue;
exports.getFuncText = getFuncText;
exports.getGlobalDefaultConfig = getGlobalDefaultConfig;
exports.getLastZIndex = getLastZIndex;
exports.getSubLastZIndex = getSubLastZIndex;
exports.handleBooleanDefaultValue = handleBooleanDefaultValue;
exports.isEnableConf = isEnableConf;
exports.nextSubZIndex = nextSubZIndex;
exports.nextZIndex = nextZIndex;
