"use strict";
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.stringUtil = stringUtil, exports.enums2array = enums2array, exports.bizs = void 0;
var bizs = {
  float: "浮点型",
  int: "整型",
  boolean: "布尔型",
  enum: "枚举",
  string: "字符串",
  password: "密码",
  variable: "变量",
  constant: "常量",
  label: "标签"
};

function stringUtil(e, r) {
  var t = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : bizs,
    r = e.get(r);
  return r && r.key ? t[r.key] : ""
}

function enums2array(e) {
  var r = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : bizs,
    t = [];
  return e.enums.forEach(function(e) {
    t.push({
      key: e.value,
      value: e.key,
      label: r[e.key]
    })
  }), t
}
exports.bizs = bizs;
