@das-fed/upf-utils 6.4.0-dev.183 → 6.4.0-dev.184

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/api-services/modules/app-manage/es5.js +980 -968
  2. package/api-services/modules/app-manage/index.js +804 -786
  3. package/api-services/modules/app-manage/index.js.gz +0 -0
  4. package/api-services/modules/authentication/es5.js +798 -801
  5. package/api-services/modules/authentication/index.js +617 -621
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/es5.js +996 -984
  8. package/api-services/modules/bems/index.js +818 -800
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/es5.js +801 -798
  11. package/api-services/modules/contract/index.js +621 -617
  12. package/api-services/modules/contract/index.js.gz +0 -0
  13. package/api-services/modules/duty-manage/es5.js +796 -799
  14. package/api-services/modules/duty-manage/index.js +616 -620
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/gateway-edge/es5.js +980 -968
  17. package/api-services/modules/gateway-edge/index.js +804 -786
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/justauth/es5.js +970 -982
  20. package/api-services/modules/justauth/index.js +787 -805
  21. package/api-services/modules/justauth/index.js.gz +0 -0
  22. package/api-services/modules/knowledge/es5.js +968 -980
  23. package/api-services/modules/knowledge/index.js +786 -804
  24. package/api-services/modules/knowledge/index.js.gz +0 -0
  25. package/api-services/modules/link/es5.js +968 -980
  26. package/api-services/modules/link/index.js +786 -804
  27. package/api-services/modules/link/index.js.gz +0 -0
  28. package/api-services/modules/permission/es5.js +980 -968
  29. package/api-services/modules/permission/index.js +804 -786
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/es5.js +960 -972
  32. package/api-services/modules/platformManage/index.js +777 -795
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/space-manage/es5.js +980 -968
  35. package/api-services/modules/space-manage/index.js +804 -786
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/supplychain-manage/es5.js +980 -968
  38. package/api-services/modules/supplychain-manage/index.js +804 -786
  39. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  40. package/api-services/modules/systemConfiguration/es5.js +980 -968
  41. package/api-services/modules/systemConfiguration/index.js +804 -786
  42. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  43. package/api-services/modules/tool/es5.js +968 -980
  44. package/api-services/modules/tool/index.js +786 -804
  45. package/api-services/modules/tool/index.js.gz +0 -0
  46. package/api-services/src/create-service/es5.js +967 -976
  47. package/api-services/src/create-service/index.js +787 -801
  48. package/api-services/src/create-service/index.js.gz +0 -0
  49. package/common-tools/handle-data/es5.js +183 -121
  50. package/common-tools/handle-data/index.d.ts +7 -0
  51. package/common-tools/handle-data/index.js +100 -78
  52. package/common-tools/handle-data/index.js.gz +0 -0
  53. package/create-api-service/es5.js +978 -966
  54. package/create-api-service/index.js +803 -785
  55. package/create-api-service/index.js.gz +0 -0
  56. package/package.json +4 -4
@@ -1,57 +1,62 @@
1
1
  'use strict';
2
2
 
3
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t3 in e) "default" !== _t3 && {}.hasOwnProperty.call(e, _t3) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t3)) && (i.get || i.set) ? o(f, _t3, i) : f[_t3] = e[_t3]); return f; })(e, t); }
3
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t5 in e) "default" !== _t5 && {}.hasOwnProperty.call(e, _t5) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t5)) && (i.get || i.set) ? o(f, _t5, i) : f[_t5] = e[_t5]); return f; })(e, t); }
4
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
5
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
6
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4
7
  function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
5
8
  function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
6
9
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
7
10
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
8
11
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
9
12
  var config = require('@das-fed/upf-utils/config/es5');
10
- var h = /* @__PURE__ */new Map(),
11
- $ = /* @__PURE__ */new Map(),
12
- S = 3e5,
13
- b = function b(l) {
14
- return l === null || _typeof(l) > "u" || l === "";
13
+ var k = /* @__PURE__ */new Map(),
14
+ j = /* @__PURE__ */new Map(),
15
+ M = 3e5,
16
+ S = function S(c) {
17
+ return c === null || _typeof(c) > "u" || c === "";
15
18
  },
16
- z = function z(l) {
17
- var e;
18
- return (((e = config.getConfig()) == null ? undefined : e.systemLangList) || ["zh-CN", "en-US", "zh-MO"]).includes(l);
19
+ O = function O(c) {
20
+ var n;
21
+ return (((n = config.getConfig()) == null ? undefined : n.systemLangList) || ["zh-CN", "en-US", "zh-MO"]).includes(c);
19
22
  },
20
- B = /*#__PURE__*/function () {
21
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(l) {
22
- var y, _y$currentLang, e, _y$baseUrl, r, _y$appName, c, _y$isPullBack, _, _y$isDasUI, L, _y$urlObj, n, _y$fallbackBaseUrl, s, f, w, x, C, g, d, _g, _d;
23
+ F = /*#__PURE__*/function () {
24
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(c) {
25
+ var g, _g$currentLang, n, _g$baseUrl, a, _g$appName, h, _g$isPullFrontEnd, _, _g$isPullBack, I, _g$isDasUI, N, _g$fallbackBaseUrl, i, f, d, b, s, _iterator, _step, r, w, m, u, _s, _iterator2, _step2, _r, _w, _m, _u, _s2, _r2, _t3, _t4;
23
26
  return _regenerator().w(function (_context5) {
24
- while (1) switch (_context5.n) {
27
+ while (1) switch (_context5.p = _context5.n) {
25
28
  case 0:
26
- y = l || {};
27
- _y$currentLang = y.currentLang, e = _y$currentLang === void 0 ? "zh-CN" : _y$currentLang, _y$baseUrl = y.baseUrl, r = _y$baseUrl === void 0 ? "/" : _y$baseUrl, _y$appName = y.appName, c = _y$appName === void 0 ? "jc" : _y$appName, _y$isPullBack = y.isPullBack, _ = _y$isPullBack === void 0 ? false : _y$isPullBack, _y$isDasUI = y.isDasUI, L = _y$isDasUI === void 0 ? false : _y$isDasUI, _y$urlObj = y.urlObj, n = _y$urlObj === void 0 ? {
28
- frontEndUrl: "",
29
- backEndUrl: "",
30
- dasUiUrl: ""
31
- } : _y$urlObj, _y$fallbackBaseUrl = y.fallbackBaseUrl, s = _y$fallbackBaseUrl === void 0 ? "" : _y$fallbackBaseUrl;
32
- (typeof e != "string" || !e) && (e = "zh-CN"), (typeof c != "string" || !c) && (c = "jc"), typeof r != "string" && (r = "/"), r || (r = "/"), r.endsWith("/") || (r = r + "/"), typeof s != "string" && (s = ""), s && !s.endsWith("/") && (s = s + "/");
33
- f = {
29
+ g = c || {};
30
+ _g$currentLang = g.currentLang, n = _g$currentLang === void 0 ? "zh-CN" : _g$currentLang, _g$baseUrl = g.baseUrl, a = _g$baseUrl === void 0 ? "/" : _g$baseUrl, _g$appName = g.appName, h = _g$appName === void 0 ? "jc" : _g$appName, _g$isPullFrontEnd = g.isPullFrontEnd, _ = _g$isPullFrontEnd === void 0 ? true : _g$isPullFrontEnd, _g$isPullBack = g.isPullBack, I = _g$isPullBack === void 0 ? false : _g$isPullBack, _g$isDasUI = g.isDasUI, N = _g$isDasUI === void 0 ? false : _g$isDasUI, _g$fallbackBaseUrl = g.fallbackBaseUrl, i = _g$fallbackBaseUrl === void 0 ? "" : _g$fallbackBaseUrl;
31
+ (typeof n != "string" || !n) && (n = "zh-CN");
32
+ f = [];
33
+ Array.isArray(h) ? (f = h.filter(function (s) {
34
+ return typeof s == "string" && s;
35
+ }), f.length === 0 && (f = ["jc"])) : typeof h == "string" && h ? f = [h] : f = ["jc"], typeof a != "string" && (a = "/"), a || (a = "/"), a.endsWith("/") || (a = a + "/"), typeof i != "string" && (i = ""), i && !i.endsWith("/") && (i = i + "/");
36
+ d = {
34
37
  frontEnd: null,
38
+ // 统一格式:{ appName1: data1, appName2: data2, ... }
35
39
  dasUiEnd: null,
36
40
  backMsg: null
41
+ // 统一格式:{ appName1: data1, appName2: data2, ... }
37
42
  };
38
- w = /*#__PURE__*/function () {
39
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(g, d) {
40
- var I,
41
- F,
42
- M,
43
- D,
43
+ b = /*#__PURE__*/function () {
44
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(s, r) {
45
+ var w,
46
+ m,
47
+ u,
48
+ x,
44
49
  E,
45
- k,
46
- o,
50
+ U,
51
+ l,
47
52
  _args4 = arguments;
48
53
  return _regenerator().w(function (_context4) {
49
54
  while (1) switch (_context4.n) {
50
55
  case 0:
51
- I = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : "zh-CN";
52
- F = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : "资源";
53
- M = /*#__PURE__*/function () {
54
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(o) {
56
+ w = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : "zh-CN";
57
+ m = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : "资源";
58
+ u = /*#__PURE__*/function () {
59
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(l) {
55
60
  var t, _t, _t2;
56
61
  return _regenerator().w(function (_context) {
57
62
  while (1) switch (_context.p = _context.n) {
@@ -62,7 +67,7 @@ var h = /* @__PURE__ */new Map(),
62
67
  break;
63
68
  }
64
69
  _context.n = 1;
65
- return window.fetch(o, {
70
+ return window.fetch(l, {
66
71
  cache: "no-cache"
67
72
  });
68
73
  case 1:
@@ -85,12 +90,12 @@ var h = /* @__PURE__ */new Map(),
85
90
  _context.n = 6;
86
91
  return new Promise(function (t) {
87
92
  try {
88
- var a = new XMLHttpRequest();
89
- a.open("GET", o, !0), a.onreadystatechange = function () {
90
- a.readyState === 4 && t(a.status >= 200 && a.status < 300 ? a.responseText : null);
91
- }, a.onerror = function () {
93
+ var e = new XMLHttpRequest();
94
+ e.open("GET", l, !0), e.onreadystatechange = function () {
95
+ e.readyState === 4 && t(e.status >= 200 && e.status < 300 ? e.responseText : null);
96
+ }, e.onerror = function () {
92
97
  t(null);
93
- }, a.send();
98
+ }, e.send();
94
99
  } catch (_unused) {
95
100
  t(null);
96
101
  }
@@ -109,87 +114,87 @@ var h = /* @__PURE__ */new Map(),
109
114
  }
110
115
  }, _callee, null, [[0, 8]]);
111
116
  }));
112
- return function M(_x4) {
117
+ return function u(_x4) {
113
118
  return _ref3.apply(this, arguments);
114
119
  };
115
120
  }();
116
- D = function D(o) {
117
- var t = (o || "").replace(/^\uFEFF/, "");
121
+ x = function x(l) {
122
+ var t = (l || "").replace(/^\uFEFF/, "");
118
123
  try {
119
- var a = t.trim();
120
- if (/^export\s+default\s*\{[\s\S]*\}\s*;?$/m.test(a)) {
121
- var i = a.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(^|\n)\s*\/\/.*(?=\n|$)/g, "$1");
122
- var u = i.indexOf("{"),
123
- p = i.lastIndexOf("}");
124
- if (u !== -1 && p !== -1 && p > u) return i = i.slice(u, p + 1), i = i.replace(/,\s*([}\]])/g, "$1"), JSON.parse(i);
124
+ var e = t.trim();
125
+ if (/^export\s+default\s*\{[\s\S]*\}\s*;?$/m.test(e)) {
126
+ var o = e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(^|\n)\s*\/\/.*(?=\n|$)/g, "$1");
127
+ var p = o.indexOf("{"),
128
+ y = o.lastIndexOf("}");
129
+ if (p !== -1 && y !== -1 && y > p) return o = o.slice(p, y + 1), o = o.replace(/,\s*([}\]])/g, "$1"), JSON.parse(o);
125
130
  }
126
131
  } catch (_unused3) {
127
132
  return null;
128
133
  }
129
134
  };
130
135
  E = /*#__PURE__*/function () {
131
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(o) {
132
- var _i$value;
133
- var t, a, i, u;
136
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(l) {
137
+ var _o$value;
138
+ var t, e, o, p;
134
139
  return _regenerator().w(function (_context3) {
135
140
  while (1) switch (_context3.p = _context3.n) {
136
141
  case 0:
137
- if (o) {
142
+ if (l) {
138
143
  _context3.n = 1;
139
144
  break;
140
145
  }
141
146
  return _context3.a(2, null);
142
147
  case 1:
143
- t = o, a = Date.now(), i = $.get(t);
144
- if (!(i && a - i.t <= S)) {
148
+ t = l, e = Date.now(), o = j.get(t);
149
+ if (!(o && e - o.t <= M)) {
145
150
  _context3.n = 2;
146
151
  break;
147
152
  }
148
- return _context3.a(2, i.ok ? (_i$value = i.value) !== null && _i$value !== void 0 ? _i$value : null : null);
153
+ return _context3.a(2, o.ok ? (_o$value = o.value) !== null && _o$value !== void 0 ? _o$value : null : null);
149
154
  case 2:
150
- if (!h.has(t)) {
155
+ if (!k.has(t)) {
151
156
  _context3.n = 3;
152
157
  break;
153
158
  }
154
- return _context3.a(2, h.get(t));
159
+ return _context3.a(2, k.get(t));
155
160
  case 3:
156
- u = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
157
- var p, m;
161
+ p = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
162
+ var y, L;
158
163
  return _regenerator().w(function (_context2) {
159
164
  while (1) switch (_context2.n) {
160
165
  case 0:
161
166
  _context2.n = 1;
162
- return M(t);
167
+ return u(t);
163
168
  case 1:
164
- p = _context2.v;
165
- if (p) {
169
+ y = _context2.v;
170
+ if (y) {
166
171
  _context2.n = 2;
167
172
  break;
168
173
  }
169
- return _context2.a(2, ($.set(t, {
174
+ return _context2.a(2, (j.set(t, {
170
175
  ok: false,
171
176
  value: null,
172
- t: a
177
+ t: e
173
178
  }), null));
174
179
  case 2:
175
- m = D(p);
176
- return _context2.a(2, ($.set(t, {
180
+ L = x(y);
181
+ return _context2.a(2, (j.set(t, {
177
182
  ok: true,
178
- value: m,
183
+ value: L,
179
184
  t: Date.now()
180
- }), m !== null && m !== void 0 ? m : null));
185
+ }), L !== null && L !== void 0 ? L : null));
181
186
  }
182
187
  }, _callee2);
183
188
  }))();
184
- h.set(t, u);
189
+ k.set(t, p);
185
190
  _context3.p = 4;
186
191
  _context3.n = 5;
187
- return u;
192
+ return p;
188
193
  case 5:
189
194
  return _context3.a(2, _context3.v);
190
195
  case 6:
191
196
  _context3.p = 6;
192
- h["delete"](t);
197
+ k["delete"](t);
193
198
  return _context3.f(6);
194
199
  case 7:
195
200
  return _context3.a(2);
@@ -201,86 +206,143 @@ var h = /* @__PURE__ */new Map(),
201
206
  };
202
207
  }();
203
208
  _context4.n = 1;
204
- return E(g);
209
+ return E(s);
205
210
  case 1:
206
- k = _context4.v;
207
- if (!k) {
211
+ U = _context4.v;
212
+ if (!U) {
208
213
  _context4.n = 2;
209
214
  break;
210
215
  }
211
- return _context4.a(2, k);
216
+ return _context4.a(2, U);
212
217
  case 2:
213
- if (!(d && z(I))) {
218
+ if (!(r && O(w))) {
214
219
  _context4.n = 4;
215
220
  break;
216
221
  }
217
222
  _context4.n = 3;
218
- return E(d);
223
+ return E(r);
219
224
  case 3:
220
- o = _context4.v;
221
- if (!o) {
225
+ l = _context4.v;
226
+ if (!l) {
222
227
  _context4.n = 4;
223
228
  break;
224
229
  }
225
- return _context4.a(2, o);
230
+ return _context4.a(2, l);
226
231
  case 4:
227
232
  return _context4.a(2, null);
228
233
  }
229
234
  }, _callee4);
230
235
  }));
231
- return function w(_x2, _x3) {
236
+ return function b(_x2, _x3) {
232
237
  return _ref2.apply(this, arguments);
233
238
  };
234
- }(), x = (n == null ? undefined : n.frontEndUrl) || "".concat(r, "front-end/i18n/front-end-page/").concat(c, "_").concat(e, ".js");
235
- C = !(n != null && n.frontEndUrl) && s ? "".concat(s, "front-end/i18n/front-end-page/").concat(c, "_").concat(e, ".js") : undefined;
236
- _context5.n = 1;
237
- return w(x, C, e, "前端业务语言资源");
238
- case 1:
239
- f.frontEnd = _context5.v;
240
- f.frontEnd && true;
241
- if (!(_ && f.frontEnd || n != null && n.backEndUrl)) {
242
- _context5.n = 3;
239
+ }();
240
+ if (!_) {
241
+ _context5.n = 9;
243
242
  break;
244
243
  }
245
- g = (n == null ? undefined : n.backEndUrl) || "".concat(r, "front-end/i18n/return-msg/").concat(c, "_").concat(e, ".js");
246
- d = !(n != null && n.backEndUrl) && s ? "".concat(s, "front-end/i18n/return-msg/").concat(c, "_").concat(e, ".js") : undefined;
247
- _context5.n = 2;
248
- return w(g, d, e, "后端语言资源");
244
+ s = {};
245
+ _iterator = _createForOfIteratorHelper(f);
246
+ _context5.p = 1;
247
+ _iterator.s();
249
248
  case 2:
250
- f.backMsg = _context5.v;
251
- f.backMsg && true;
252
- case 3:
253
- if (!L) {
249
+ if ((_step = _iterator.n()).done) {
254
250
  _context5.n = 5;
255
251
  break;
256
252
  }
257
- _g = (n == null ? undefined : n.dasUiUrl) || "".concat(r, "front-end/i18n/front-end-page/dasui_").concat(e, ".js");
258
- _d = !(n != null && n.dasUiUrl) && s ? "".concat(s, "front-end/i18n/front-end-page/dasui_").concat(e, ".js") : undefined;
259
- _context5.n = 4;
260
- return w(_g, _d, e, "UI组件库语言资源");
253
+ r = _step.value;
254
+ w = "".concat(a, "front-end/i18n/front-end-page/").concat(r, "_").concat(n, ".js");
255
+ m = i ? "".concat(i, "front-end/i18n/front-end-page/").concat(r, "_").concat(n, ".js") : undefined;
256
+ _context5.n = 3;
257
+ return b(w, m, n, "\u524D\u7AEF\u4E1A\u52A1\u8BED\u8A00\u8D44\u6E90(".concat(r, ")"));
258
+ case 3:
259
+ u = _context5.v;
260
+ u && (s[r] = u, true);
261
261
  case 4:
262
- f.dasUiEnd = _context5.v;
263
- f.dasUiEnd && true;
262
+ _context5.n = 2;
263
+ break;
264
264
  case 5:
265
- return _context5.a(2, f);
265
+ _context5.n = 7;
266
+ break;
267
+ case 6:
268
+ _context5.p = 6;
269
+ _t3 = _context5.v;
270
+ _iterator.e(_t3);
271
+ case 7:
272
+ _context5.p = 7;
273
+ _iterator.f();
274
+ return _context5.f(7);
275
+ case 8:
276
+ Object.keys(s).length > 0 && (d.frontEnd = s);
277
+ case 9:
278
+ if (!I) {
279
+ _context5.n = 18;
280
+ break;
281
+ }
282
+ _s = {};
283
+ _iterator2 = _createForOfIteratorHelper(f);
284
+ _context5.p = 10;
285
+ _iterator2.s();
286
+ case 11:
287
+ if ((_step2 = _iterator2.n()).done) {
288
+ _context5.n = 14;
289
+ break;
290
+ }
291
+ _r = _step2.value;
292
+ _w = "".concat(a, "front-end/i18n/return-msg/").concat(_r, "_").concat(n, ".js");
293
+ _m = i ? "".concat(i, "front-end/i18n/return-msg/").concat(_r, "_").concat(n, ".js") : undefined;
294
+ _context5.n = 12;
295
+ return b(_w, _m, n, "\u540E\u7AEF\u8BED\u8A00\u8D44\u6E90(".concat(_r, ")"));
296
+ case 12:
297
+ _u = _context5.v;
298
+ _u && (_s[_r] = _u, true);
299
+ case 13:
300
+ _context5.n = 11;
301
+ break;
302
+ case 14:
303
+ _context5.n = 16;
304
+ break;
305
+ case 15:
306
+ _context5.p = 15;
307
+ _t4 = _context5.v;
308
+ _iterator2.e(_t4);
309
+ case 16:
310
+ _context5.p = 16;
311
+ _iterator2.f();
312
+ return _context5.f(16);
313
+ case 17:
314
+ Object.keys(_s).length > 0 && (d.backMsg = _s);
315
+ case 18:
316
+ if (!N) {
317
+ _context5.n = 20;
318
+ break;
319
+ }
320
+ _s2 = "".concat(a, "front-end/i18n/front-end-page/dasui_").concat(n, ".js"), _r2 = i ? "".concat(i, "front-end/i18n/front-end-page/dasui_").concat(n, ".js") : undefined;
321
+ _context5.n = 19;
322
+ return b(_s2, _r2, n, "UI组件库语言资源");
323
+ case 19:
324
+ d.dasUiEnd = _context5.v;
325
+ d.dasUiEnd && true;
326
+ case 20:
327
+ return _context5.a(2, d);
266
328
  }
267
- }, _callee5);
329
+ }, _callee5, null, [[10, 15, 16, 17], [1, 6, 7, 8]]);
268
330
  }));
269
- return function B(_x) {
331
+ return function F(_x) {
270
332
  return _ref.apply(this, arguments);
271
333
  };
272
334
  }(),
273
- P = /*#__PURE__*/function () {
335
+ z = /*#__PURE__*/function () {
274
336
  var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
275
- var l,
276
- y,
277
- r,
337
+ var c,
338
+ g,
339
+ a,
278
340
  _args6 = arguments;
279
341
  return _regenerator().w(function (_context6) {
280
342
  while (1) switch (_context6.n) {
281
343
  case 0:
282
- l = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : "front-end";
283
- y = {};
344
+ c = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : "front-end";
345
+ g = {};
284
346
  _context6.n = 1;
285
347
  return function (specifier) {
286
348
  return new Promise(function (r) {
@@ -288,18 +350,18 @@ var h = /* @__PURE__ */new Map(),
288
350
  }).then(function (s) {
289
351
  return _interopRequireWildcard(require(s));
290
352
  });
291
- }(/* @vite-ignore */"/i18n/".concat(l, "/global.js"));
353
+ }(/* @vite-ignore */"/i18n/".concat(c, "/global.js"));
292
354
  case 1:
293
- r = _context6.v;
294
- return _context6.a(2, (y = (r == null ? undefined : r["default"]) || {}, y));
355
+ a = _context6.v;
356
+ return _context6.a(2, (g = (a == null ? undefined : a["default"]) || {}, g));
295
357
  }
296
358
  }, _callee6);
297
359
  }));
298
- return function P() {
360
+ return function z() {
299
361
  return _ref6.apply(this, arguments);
300
362
  };
301
363
  }();
302
- exports.handleGlobalI18n = P;
303
- exports.handleI18nData = B;
304
- exports.isCurrentLangInSysLang = z;
305
- exports.isEmpty = b;
364
+ exports.handleGlobalI18n = z;
365
+ exports.handleI18nData = F;
366
+ exports.isCurrentLangInSysLang = O;
367
+ exports.isEmpty = S;
@@ -8,6 +8,13 @@ export declare const isCurrentLangInSysLang: (lang: string) => any;
8
8
  /**
9
9
  * 处理多语言在打包时的数据
10
10
  * @param opt
11
+ * @param opt.currentLang - 当前语言,默认 'zh-CN'
12
+ * @param opt.baseUrl - 资源基础路径,默认 '/'
13
+ * @param opt.appName - 应用名称,支持 string 或 string[],默认 'jc'
14
+ * @param opt.isPullFrontEnd - 是否加载前端资源,默认 true
15
+ * @param opt.isPullBack - 是否加载后端资源,默认 false
16
+ * @param opt.isDasUI - 是否加载 DasUI 资源,默认 false
17
+ * @param opt.fallbackBaseUrl - 回退资源路径,默认 ''
11
18
  */
12
19
  export declare const handleI18nData: (opt: any) => unknown;
13
20
  /**