"use strict";

Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.bizs = void 0, exports.enums2array = enums2array, exports.stringUtil = stringUtil;

var bizs = {
  lua: "lua",
  JavaScript: "JavaScript",
  Python: "Python"
};

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