@das-fed/upf-utils 6.4.0-dev.221 → 6.4.0-dev.223

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 (119) hide show
  1. package/api-services/es5.js +1968 -2007
  2. package/api-services/index.js +1436 -1500
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +2337 -2388
  5. package/api-services/modules/app-manage/index.js +1862 -1944
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +2353 -2383
  8. package/api-services/modules/authentication/index.js +1881 -1931
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +2244 -2283
  11. package/api-services/modules/bems/index.js +1771 -1835
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +2240 -2279
  14. package/api-services/modules/contract/index.js +1768 -1832
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +2139 -2166
  17. package/api-services/modules/duty-manage/index.js +1693 -1739
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +2240 -2279
  20. package/api-services/modules/enterpriseright/index.js +1768 -1832
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1995 -2046
  23. package/api-services/modules/file/es5.js +1798 -1837
  24. package/api-services/modules/file/index.js +1288 -1352
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +2350 -2379
  27. package/api-services/modules/gateway-edge/index.js +1877 -1927
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1426 -1508
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +2237 -2267
  32. package/api-services/modules/iot/index.js +1762 -1812
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +2072 -2108
  35. package/api-services/modules/justauth/index.js +1613 -1673
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +2340 -2367
  38. package/api-services/modules/knowledge/index.js +1872 -1918
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +2340 -2367
  41. package/api-services/modules/link/index.js +1872 -1918
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +2240 -2279
  44. package/api-services/modules/permission/index.js +1768 -1832
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +2093 -2132
  47. package/api-services/modules/platformManage/index.js +1625 -1689
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +2337 -2388
  50. package/api-services/modules/portal/index.js +1862 -1944
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +2142 -2169
  53. package/api-services/modules/space-manage/index.js +1698 -1744
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +2342 -2369
  56. package/api-services/modules/super-admin/index.js +1867 -1913
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +2239 -2278
  59. package/api-services/modules/supplier/index.js +1765 -1829
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +2341 -2392
  62. package/api-services/modules/supplychain-manage/index.js +1865 -1947
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +2239 -2276
  65. package/api-services/modules/systemConfiguration/index.js +1768 -1828
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +2330 -2376
  68. package/api-services/modules/tool/index.js +1859 -1933
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +2235 -2276
  71. package/api-services/src/create-service/index.js +1762 -1830
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +75 -94
  74. package/common-info/index.js +64 -78
  75. package/common-info/index.js.gz +0 -0
  76. package/common-info/set-personal-info/es5.js +997 -1073
  77. package/common-info/set-personal-info/index.js +827 -895
  78. package/common-info/set-personal-info/index.js.gz +0 -0
  79. package/common-info/type.d.ts +2 -0
  80. package/common-tools/extract-file-name/es5.js +998 -1074
  81. package/common-tools/extract-file-name/index.js +821 -889
  82. package/common-tools/extract-file-name/index.js.gz +0 -0
  83. package/common-tools/handle-data/es5.js +1 -1
  84. package/common-tools/update-browser-title/es5.js +1 -1
  85. package/common-tools/update-fav-icon/es5.js +1 -1
  86. package/create-api-service/check-token/es5.js +904 -980
  87. package/create-api-service/check-token/index.js +727 -795
  88. package/create-api-service/check-token/index.js.gz +0 -0
  89. package/create-api-service/es5.js +2335 -2386
  90. package/create-api-service/index.js +1860 -1942
  91. package/create-api-service/index.js.gz +0 -0
  92. package/create-api-service/sso/es5.js +1166 -1242
  93. package/create-api-service/sso/index.js +938 -1006
  94. package/create-api-service/sso/index.js.gz +0 -0
  95. package/curring-http/es5.js +1366 -1442
  96. package/curring-http/index.js +1064 -1132
  97. package/curring-http/index.js.gz +0 -0
  98. package/directive/auth/es5.js +40 -60
  99. package/directive/auth/index.js +32 -41
  100. package/directive/auth/index.js.gz +0 -0
  101. package/directive/clickOutside/es5.js +1 -1
  102. package/directive/hoverInside/es5.js +1 -1
  103. package/directive/utils/es5.js +1 -1
  104. package/esm-map.json +3 -1
  105. package/hooks/use-get-auth/es5.js +58 -192
  106. package/hooks/use-get-auth/index.d.ts +2 -7
  107. package/hooks/use-get-auth/index.js +16 -50
  108. package/i18n-bridge/es5.js +23 -0
  109. package/i18n-bridge/index.d.ts +10 -0
  110. package/i18n-bridge/index.js +16 -0
  111. package/package.json +3 -3
  112. package/pinyin-first-character/es5.js +45 -47
  113. package/pinyin-first-character/index.js +35 -37
  114. package/pinyin-first-character/index.js.gz +0 -0
  115. package/style/es5.js +11 -11
  116. package/style/index.js +10 -10
  117. package/style/index.js.gz +0 -0
  118. package/hooks/use-get-auth/apis.d.ts +0 -4
  119. package/hooks/use-get-auth/index.js.gz +0 -0
@@ -3,11 +3,12 @@
3
3
  var config = require('@das-fed/upf-utils/config/es5');
4
4
  var tokenTools = require('@das-fed/upf-utils/token-tools/es5');
5
5
  var getInfoFromUrl = require('@das-fed/upf-utils/common-info/getInfoFromUrl/es5');
6
- var T = function T(e) {
7
- var _t$rightFuncCodes, _t$routeUrl, _t$parentId, _t$id, _t$appId, _t$menuAppearance, _t$name, _t$showName, _ref;
6
+ var j = function j(e) {
7
+ var _t$rightFuncCodes, _t$routeCode, _t$routeUrl, _t$parentId, _t$id, _t$appId, _t$menuAppearance, _t$name, _t$showName, _ref;
8
8
  var t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
9
9
  return {
10
10
  authCodes: (_t$rightFuncCodes = t.rightFuncCodes) !== null && _t$rightFuncCodes !== void 0 ? _t$rightFuncCodes : [],
11
+ routeCode: (_t$routeCode = t.routeCode) !== null && _t$routeCode !== void 0 ? _t$routeCode : "",
11
12
  routeUrl: (_t$routeUrl = t.routeUrl) !== null && _t$routeUrl !== void 0 ? _t$routeUrl : "",
12
13
  parentId: (_t$parentId = t.parentId) !== null && _t$parentId !== void 0 ? _t$parentId : "",
13
14
  id: (_t$id = t.id) !== null && _t$id !== void 0 ? _t$id : "",
@@ -18,56 +19,36 @@ var T = function T(e) {
18
19
  type: (_ref = t == null ? undefined : t.type) !== null && _ref !== void 0 ? _ref : ""
19
20
  };
20
21
  },
21
- F = function F() {
22
+ d = function d() {
22
23
  return JSON.parse(sessionStorage.getItem("menuList") || "[]");
23
24
  },
24
- S = function S() {
25
- var e = JSON.parse(sessionStorage.getItem("menuList") || "[]"),
26
- t = {};
27
- return e.forEach(function (s) {
28
- s.appId && (s.rightFuncCodes && s.rightFuncCodes.forEach(function (n) {
29
- return t[n] = [];
30
- }), s.children && s.children.forEach(function (n) {
31
- var p, o;
32
- if (n.routeCode && (t[n.routeCode] = []), n.rightFuncCodes && n.rightFuncCodes[0] && !n.children) {
33
- var r = (p = n.rightFuncCodes[0]) == null ? undefined : p.lastIndexOf("."),
34
- g = (o = n.rightFuncCodes[0]) == null ? undefined : o.slice(0, r);
35
- t[g] = [], n.rightFuncCodes.forEach(function (a) {
36
- var l = a == null ? undefined : a.lastIndexOf(".");
37
- t[g].push({
38
- code: a == null ? undefined : a.slice(l + 1)
39
- });
40
- });
41
- }
42
- n.children && n.children.forEach(function (r) {
43
- var g, a;
44
- if (r.routeCode && (t[r.routeCode] = []), r.rightFuncCodes) {
45
- var l = (g = r.rightFuncCodes[0]) == null ? undefined : g.lastIndexOf("."),
46
- u = (a = r.rightFuncCodes[0]) == null ? undefined : a.slice(0, l);
47
- t[u] = [], r.rightFuncCodes.forEach(function (c) {
48
- var m = c == null ? undefined : c.lastIndexOf(".");
49
- t[u].push({
50
- code: c == null ? undefined : c.slice(m + 1)
51
- });
25
+ i = function i() {
26
+ var e = d(),
27
+ t = {},
28
+ _r = function r(n) {
29
+ !n || !Array.isArray(n) || n.forEach(function (s) {
30
+ s.routeCode && t[s.routeCode] === undefined && (t[s.routeCode] = []), s.routeCode && s.rightFuncCodes && Array.isArray(s.rightFuncCodes) && s.rightFuncCodes.forEach(function (a) {
31
+ a && typeof a == "string" && t[s.routeCode].push({
32
+ code: a
52
33
  });
53
- }
34
+ }), s.children && Array.isArray(s.children) && _r(s.children);
54
35
  });
55
- }));
56
- }), t;
36
+ };
37
+ return _r(e), t;
57
38
  },
58
- h = tokenTools.getAccessToken,
59
- J = function J() {
39
+ m = tokenTools.getAccessToken,
40
+ P = function P() {
60
41
  var _e$id, _e$userName, _e$flag, _ref2;
61
- var s;
42
+ var r;
62
43
  var e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
63
44
  return {
64
45
  id: (_e$id = e.id) !== null && _e$id !== void 0 ? _e$id : "",
65
46
  name: (_e$userName = e.userName) !== null && _e$userName !== void 0 ? _e$userName : "",
66
47
  flag: (_e$flag = e.flag) !== null && _e$flag !== void 0 ? _e$flag : null,
67
- tenantId: (_ref2 = (s = e == null ? undefined : e.tenant) == null ? undefined : s.id) !== null && _ref2 !== void 0 ? _ref2 : ""
48
+ tenantId: (_ref2 = (r = e == null ? undefined : e.tenant) == null ? undefined : r.id) !== null && _ref2 !== void 0 ? _ref2 : ""
68
49
  };
69
50
  },
70
- A = function A() {
51
+ b = function b() {
71
52
  var _e$id2, _e$name, _e$userName2, _e$phone, _e$email, _e$headPicture;
72
53
  var e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
73
54
  var t = config.getConfig();
@@ -80,7 +61,7 @@ var T = function T(e) {
80
61
  headPicture: (_e$headPicture = e.headPicture) !== null && _e$headPicture !== void 0 ? _e$headPicture : ""
81
62
  };
82
63
  },
83
- x = function x() {
64
+ A = function A() {
84
65
  var _e$id3, _e$userName3, _e$name2, _e$areaCode, _e$region, _e$phone2, _e$email2, _e$flag2, _e$tenant, _e$headPicture2, _e$nickName, _e$gender, _e$status, _e$statusName, _e$tags, _e$type, _e$address, _e$description;
85
66
  var e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
86
67
  return {
@@ -104,10 +85,10 @@ var T = function T(e) {
104
85
  description: (_e$description = e.description) !== null && _e$description !== void 0 ? _e$description : ""
105
86
  };
106
87
  },
107
- M = function M() {
88
+ T = function T() {
108
89
  return sessionStorage.getItem("languages");
109
90
  },
110
- N = function N() {
91
+ I = function I() {
111
92
  var _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11;
112
93
  var e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
113
94
  var t = config.getConfig();
@@ -125,7 +106,7 @@ var T = function T(e) {
125
106
  optional: (_ref11 = e == null ? undefined : e.leaf) !== null && _ref11 !== void 0 ? _ref11 : true
126
107
  };
127
108
  },
128
- E = function E() {
109
+ f = function f() {
129
110
  var _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31, _ref32;
130
111
  var e = JSON.parse(sessionStorage.getItem("project-message") || "{}");
131
112
  return {
@@ -152,7 +133,7 @@ var T = function T(e) {
152
133
  currency: (_ref32 = e == null ? undefined : e.currency) !== null && _ref32 !== void 0 ? _ref32 : {}
153
134
  };
154
135
  },
155
- k = function k() {
136
+ J = function J() {
156
137
  var _ref33, _ref34, _ref35, _ref36, _ref37, _ref38, _ref39;
157
138
  var e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
158
139
  return {
@@ -165,7 +146,7 @@ var T = function T(e) {
165
146
  type: (_ref39 = e == null ? undefined : e.type) !== null && _ref39 !== void 0 ? _ref39 : null
166
147
  };
167
148
  },
168
- U = function U() {
149
+ O = function O() {
169
150
  var _ref40, _ref41;
170
151
  var e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
171
152
  return {
@@ -173,14 +154,14 @@ var T = function T(e) {
173
154
  skinStyle: (_ref41 = e == null ? undefined : e.skinStyle) !== null && _ref41 !== void 0 ? _ref41 : ""
174
155
  };
175
156
  },
176
- j = function j(e, t) {
177
- return e ? S()[e] : undefined;
157
+ y = function y(e, t) {
158
+ return e ? i()[e] : undefined;
178
159
  },
179
- v = function v(e, t) {
180
- var _j;
181
- return (_j = j(e)) !== null && _j !== void 0 ? _j : [];
160
+ M = function M(e, t) {
161
+ var _y;
162
+ return (_y = y(e)) !== null && _y !== void 0 ? _y : [];
182
163
  },
183
- f = function f() {
164
+ C = function C() {
184
165
  var _e$appcategorys, _e$currentSubApp, _e$currentSubAppCode, _e$subAppList, _e$menuCollapses;
185
166
  var e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
186
167
  return {
@@ -191,28 +172,28 @@ var T = function T(e) {
191
172
  menuCollapses: (_e$menuCollapses = e.menuCollapses) !== null && _e$menuCollapses !== void 0 ? _e$menuCollapses : []
192
173
  };
193
174
  },
194
- D = function D(e) {
175
+ k = function k(e) {
195
176
  var _ref42, _ref43;
196
177
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
197
- var n, p;
198
- var s = f().subAppList;
199
- if (e) return t ? (_ref42 = (n = s == null ? undefined : s.find(function (o) {
200
- return o.code === e;
201
- })) == null ? undefined : n.originalMenus) !== null && _ref42 !== void 0 ? _ref42 : [] : (_ref43 = (p = s == null ? undefined : s.find(function (o) {
202
- return o.code === e;
203
- })) == null ? undefined : p.menus) !== null && _ref43 !== void 0 ? _ref43 : [];
178
+ var n, s;
179
+ var r = C().subAppList;
180
+ if (e) return t ? (_ref42 = (n = r == null ? undefined : r.find(function (a) {
181
+ return a.code === e;
182
+ })) == null ? undefined : n.originalMenus) !== null && _ref42 !== void 0 ? _ref42 : [] : (_ref43 = (s = r == null ? undefined : r.find(function (a) {
183
+ return a.code === e;
184
+ })) == null ? undefined : s.menus) !== null && _ref43 !== void 0 ? _ref43 : [];
204
185
  {
205
- var o = {};
206
- return t ? s == null || s.forEach(function (r) {
207
- var _r$originalMenus;
208
- o[r.code] = (_r$originalMenus = r.originalMenus) !== null && _r$originalMenus !== void 0 ? _r$originalMenus : [];
209
- }) : s == null || s.forEach(function (r) {
210
- var _r$menus;
211
- o[r.code] = (_r$menus = r.menus) !== null && _r$menus !== void 0 ? _r$menus : [];
212
- }), o;
186
+ var a = {};
187
+ return t ? r == null || r.forEach(function (o) {
188
+ var _o$originalMenus;
189
+ a[o.code] = (_o$originalMenus = o.originalMenus) !== null && _o$originalMenus !== void 0 ? _o$originalMenus : [];
190
+ }) : r == null || r.forEach(function (o) {
191
+ var _o$menus;
192
+ a[o.code] = (_o$menus = o.menus) !== null && _o$menus !== void 0 ? _o$menus : [];
193
+ }), a;
213
194
  }
214
195
  },
215
- z = function z() {
196
+ v = function v() {
216
197
  var _e$currentCode, _e$currentTab, _e$tabMap, _e$preTab;
217
198
  var e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
218
199
  return {
@@ -222,40 +203,40 @@ var T = function T(e) {
222
203
  preTab: (_e$preTab = e.preTab) !== null && _e$preTab !== void 0 ? _e$preTab : {}
223
204
  };
224
205
  },
225
- L = function L() {
206
+ F = function F() {
226
207
  var e = config.getConfig(),
227
208
  t = sessionStorage.getItem("minioAddress");
228
209
  return t || (e.baseURL ? e.baseURL : location.origin);
229
210
  },
230
- w = function w() {
211
+ U = function U() {
231
212
  var _JSON$parse$instanceI;
232
213
  return {
233
214
  instanceInfo: (_JSON$parse$instanceI = JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo) !== null && _JSON$parse$instanceI !== void 0 ? _JSON$parse$instanceI : {}
234
215
  };
235
216
  },
236
- Q = function Q() {
217
+ D = function D() {
237
218
  return localStorage.getItem("fav-icon") || "./logo.svg";
238
219
  };
239
- h() || getInfoFromUrl.getTokenFromQuery();
240
- var i;
241
- (i = N()) != null && i.id || getInfoFromUrl.getProjectInfoFromQuery();
242
- exports.getAuthobj = S;
243
- exports.getFavIcon = Q;
244
- exports.getHomeInfo = k;
245
- exports.getInstanceInfo = w;
246
- exports.getLanguages = M;
247
- exports.getMenuItemInfo = T;
248
- exports.getMenuListnfo = F;
249
- exports.getMenus = D;
250
- exports.getMinioAddress = L;
251
- exports.getPageAuth = j;
252
- exports.getPageAuthBtn = v;
253
- exports.getPersonalConfig = U;
254
- exports.getPersonalInfo = A;
255
- exports.getProjectInfo = N;
256
- exports.getProjectMessage = E;
257
- exports.getSubApps = f;
258
- exports.getTabInfo = z;
259
- exports.getTenantInfo = x;
260
- exports.getToken = h;
261
- exports.getUserInfo = J;
220
+ m() || getInfoFromUrl.getTokenFromQuery();
221
+ var p;
222
+ (p = I()) != null && p.id || getInfoFromUrl.getProjectInfoFromQuery();
223
+ exports.getAuthobj = i;
224
+ exports.getFavIcon = D;
225
+ exports.getHomeInfo = J;
226
+ exports.getInstanceInfo = U;
227
+ exports.getLanguages = T;
228
+ exports.getMenuItemInfo = j;
229
+ exports.getMenuListnfo = d;
230
+ exports.getMenus = k;
231
+ exports.getMinioAddress = F;
232
+ exports.getPageAuth = y;
233
+ exports.getPageAuthBtn = M;
234
+ exports.getPersonalConfig = O;
235
+ exports.getPersonalInfo = b;
236
+ exports.getProjectInfo = I;
237
+ exports.getProjectMessage = f;
238
+ exports.getSubApps = C;
239
+ exports.getTabInfo = v;
240
+ exports.getTenantInfo = A;
241
+ exports.getToken = m;
242
+ exports.getUserInfo = P;
@@ -1,10 +1,11 @@
1
- import { getConfig as d } from "@das-fed/upf-utils/config";
2
- import { getAccessToken as I } from "@das-fed/upf-utils/token-tools";
3
- import { getTokenFromQuery as C, getProjectInfoFromQuery as y } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
4
- const T = (e) => {
1
+ import { getConfig as c } from "@das-fed/upf-utils/config";
2
+ import { getAccessToken as u } from "@das-fed/upf-utils/token-tools";
3
+ import { getTokenFromQuery as g, getProjectInfoFromQuery as l } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
4
+ const j = (e) => {
5
5
  const t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
6
6
  return {
7
7
  authCodes: t.rightFuncCodes ?? [],
8
+ routeCode: t.routeCode ?? "",
8
9
  routeUrl: t.routeUrl ?? "",
9
10
  parentId: t.parentId ?? "",
10
11
  id: t.id ?? "",
@@ -14,42 +15,27 @@ const T = (e) => {
14
15
  showName: t.showName ?? "",
15
16
  type: (t == null ? void 0 : t.type) ?? ""
16
17
  };
17
- }, F = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), S = () => {
18
- const e = JSON.parse(sessionStorage.getItem("menuList") || "[]"), t = {};
19
- return e.forEach((s) => {
20
- s.appId && (s.rightFuncCodes && s.rightFuncCodes.forEach((n) => t[n] = []), s.children && s.children.forEach((n) => {
21
- var p, o;
22
- if (n.routeCode && (t[n.routeCode] = []), n.rightFuncCodes && n.rightFuncCodes[0] && !n.children) {
23
- const r = (p = n.rightFuncCodes[0]) == null ? void 0 : p.lastIndexOf("."), g = (o = n.rightFuncCodes[0]) == null ? void 0 : o.slice(0, r);
24
- t[g] = [], n.rightFuncCodes.forEach((a) => {
25
- const l = a == null ? void 0 : a.lastIndexOf(".");
26
- t[g].push({ code: a == null ? void 0 : a.slice(l + 1) });
27
- });
28
- }
29
- n.children && n.children.forEach((r) => {
30
- var g, a;
31
- if (r.routeCode && (t[r.routeCode] = []), r.rightFuncCodes) {
32
- const l = (g = r.rightFuncCodes[0]) == null ? void 0 : g.lastIndexOf("."), u = (a = r.rightFuncCodes[0]) == null ? void 0 : a.slice(0, l);
33
- t[u] = [], r.rightFuncCodes.forEach((c) => {
34
- const m = c == null ? void 0 : c.lastIndexOf(".");
35
- t[u].push({ code: c == null ? void 0 : c.slice(m + 1) });
36
- });
37
- }
38
- });
39
- }));
40
- }), t;
41
- }, h = I, J = () => {
42
- var s;
18
+ }, d = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), i = () => {
19
+ const e = d(), t = {}, r = (n) => {
20
+ !n || !Array.isArray(n) || n.forEach((s) => {
21
+ s.routeCode && t[s.routeCode] === void 0 && (t[s.routeCode] = []), s.routeCode && s.rightFuncCodes && Array.isArray(s.rightFuncCodes) && s.rightFuncCodes.forEach((a) => {
22
+ a && typeof a == "string" && t[s.routeCode].push({ code: a });
23
+ }), s.children && Array.isArray(s.children) && r(s.children);
24
+ });
25
+ };
26
+ return r(e), t;
27
+ }, m = u, P = () => {
28
+ var r;
43
29
  let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
44
30
  return {
45
31
  id: e.id ?? "",
46
32
  name: e.userName ?? "",
47
33
  flag: e.flag ?? null,
48
- tenantId: ((s = e == null ? void 0 : e.tenant) == null ? void 0 : s.id) ?? ""
34
+ tenantId: ((r = e == null ? void 0 : e.tenant) == null ? void 0 : r.id) ?? ""
49
35
  };
50
- }, A = () => {
36
+ }, b = () => {
51
37
  let e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
52
- const t = d();
38
+ const t = c();
53
39
  return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
54
40
  id: e.id ?? "",
55
41
  name: e.name ?? "",
@@ -58,7 +44,7 @@ const T = (e) => {
58
44
  email: e.email ?? "",
59
45
  headPicture: e.headPicture ?? ""
60
46
  };
61
- }, x = () => {
47
+ }, A = () => {
62
48
  let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
63
49
  return {
64
50
  userId: e.id ?? "",
@@ -80,9 +66,9 @@ const T = (e) => {
80
66
  address: e.address ?? "",
81
67
  description: e.description ?? ""
82
68
  };
83
- }, M = () => sessionStorage.getItem("languages"), N = () => {
69
+ }, T = () => sessionStorage.getItem("languages"), I = () => {
84
70
  let e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
85
- const t = d();
71
+ const t = c();
86
72
  return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
87
73
  id: (e == null ? void 0 : e.id) ?? 0,
88
74
  code: (e == null ? void 0 : e.code) ?? 0,
@@ -96,7 +82,7 @@ const T = (e) => {
96
82
  leaf: (e == null ? void 0 : e.leaf) ?? !1,
97
83
  optional: (e == null ? void 0 : e.leaf) ?? !0
98
84
  };
99
- }, E = () => {
85
+ }, f = () => {
100
86
  let e = JSON.parse(sessionStorage.getItem("project-message") || "{}");
101
87
  return {
102
88
  id: (e == null ? void 0 : e.id) ?? 0,
@@ -121,7 +107,7 @@ const T = (e) => {
121
107
  autoTimezone: (e == null ? void 0 : e.autoTimezone) ?? !1,
122
108
  currency: (e == null ? void 0 : e.currency) ?? {}
123
109
  };
124
- }, k = () => {
110
+ }, J = () => {
125
111
  const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
126
112
  return {
127
113
  applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
@@ -132,13 +118,13 @@ const T = (e) => {
132
118
  displayPosition: (e == null ? void 0 : e.displayPosition) ?? 1,
133
119
  type: (e == null ? void 0 : e.type) ?? null
134
120
  };
135
- }, U = () => {
121
+ }, O = () => {
136
122
  const e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
137
123
  return {
138
124
  style: (e == null ? void 0 : e.style) ?? "",
139
125
  skinStyle: (e == null ? void 0 : e.skinStyle) ?? ""
140
126
  };
141
- }, j = (e, t) => e ? S()[e] : void 0, v = (e, t) => j(e) ?? [], f = () => {
127
+ }, y = (e, t) => e ? i()[e] : void 0, M = (e, t) => y(e) ?? [], C = () => {
142
128
  const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
143
129
  return {
144
130
  appcategorys: e.appcategorys ?? [],
@@ -147,20 +133,20 @@ const T = (e) => {
147
133
  subAppList: e.subAppList ?? [],
148
134
  menuCollapses: e.menuCollapses ?? []
149
135
  };
150
- }, D = (e, t = !1) => {
151
- var n, p;
152
- const s = f().subAppList;
136
+ }, k = (e, t = !1) => {
137
+ var n, s;
138
+ const r = C().subAppList;
153
139
  if (e)
154
- return t ? ((n = s == null ? void 0 : s.find((o) => o.code === e)) == null ? void 0 : n.originalMenus) ?? [] : ((p = s == null ? void 0 : s.find((o) => o.code === e)) == null ? void 0 : p.menus) ?? [];
140
+ return t ? ((n = r == null ? void 0 : r.find((a) => a.code === e)) == null ? void 0 : n.originalMenus) ?? [] : ((s = r == null ? void 0 : r.find((a) => a.code === e)) == null ? void 0 : s.menus) ?? [];
155
141
  {
156
- let o = {};
157
- return t ? s == null || s.forEach((r) => {
158
- o[r.code] = r.originalMenus ?? [];
159
- }) : s == null || s.forEach((r) => {
160
- o[r.code] = r.menus ?? [];
161
- }), o;
142
+ let a = {};
143
+ return t ? r == null || r.forEach((o) => {
144
+ a[o.code] = o.originalMenus ?? [];
145
+ }) : r == null || r.forEach((o) => {
146
+ a[o.code] = o.menus ?? [];
147
+ }), a;
162
148
  }
163
- }, z = () => {
149
+ }, v = () => {
164
150
  const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
165
151
  return {
166
152
  currentCode: e.currentCode ?? "",
@@ -168,34 +154,34 @@ const T = (e) => {
168
154
  tabMap: e.tabMap ?? {},
169
155
  preTab: e.preTab ?? {}
170
156
  };
171
- }, L = () => {
172
- const e = d(), t = sessionStorage.getItem("minioAddress");
157
+ }, F = () => {
158
+ const e = c(), t = sessionStorage.getItem("minioAddress");
173
159
  return t || (e.baseURL ? e.baseURL : location.origin);
174
- }, w = () => ({
160
+ }, U = () => ({
175
161
  instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
176
- }), Q = () => localStorage.getItem("fav-icon") || "./logo.svg";
177
- h() || C();
178
- var i;
179
- (i = N()) != null && i.id || y();
162
+ }), D = () => localStorage.getItem("fav-icon") || "./logo.svg";
163
+ m() || g();
164
+ var p;
165
+ (p = I()) != null && p.id || l();
180
166
  export {
181
- S as getAuthobj,
182
- Q as getFavIcon,
183
- k as getHomeInfo,
184
- w as getInstanceInfo,
185
- M as getLanguages,
186
- T as getMenuItemInfo,
187
- F as getMenuListnfo,
188
- D as getMenus,
189
- L as getMinioAddress,
190
- j as getPageAuth,
191
- v as getPageAuthBtn,
192
- U as getPersonalConfig,
193
- A as getPersonalInfo,
194
- N as getProjectInfo,
195
- E as getProjectMessage,
196
- f as getSubApps,
197
- z as getTabInfo,
198
- x as getTenantInfo,
199
- h as getToken,
200
- J as getUserInfo
167
+ i as getAuthobj,
168
+ D as getFavIcon,
169
+ J as getHomeInfo,
170
+ U as getInstanceInfo,
171
+ T as getLanguages,
172
+ j as getMenuItemInfo,
173
+ d as getMenuListnfo,
174
+ k as getMenus,
175
+ F as getMinioAddress,
176
+ y as getPageAuth,
177
+ M as getPageAuthBtn,
178
+ O as getPersonalConfig,
179
+ b as getPersonalInfo,
180
+ I as getProjectInfo,
181
+ f as getProjectMessage,
182
+ C as getSubApps,
183
+ v as getTabInfo,
184
+ A as getTenantInfo,
185
+ m as getToken,
186
+ P as getUserInfo
201
187
  };
Binary file