"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 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : bizs, s = e.get(r);
  return s && s.key ? t[s.key] : "";
}

function enums2array(e) {
  var r = arguments.length > 1 && 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;