@das-fed/web 7.0.0-zhonwang.1 → 7.0.0-zhonwang.3

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.
@@ -11,7 +11,7 @@ import { DasIconClose2 as Ga } from "@das-fed/ui/packages/icons/close-2/index";
11
11
  import { DasChangePwdRef as Qa, DasChangePwd as Ya } from "@das-fed/ui/packages/business-components/change-pwd/index";
12
12
  import { DasChangeEnterprises as Sa } from "@das-fed/ui/packages/business-components/change-enterprises/index";
13
13
  import { DasAiPanel as Ka } from "@das-fed/ui/packages/business-components/ai-panel/index";
14
- import { getSubApps as GA, getTabInfo as M9, getToken as ee, getTenantInfo as Vv, getProjectInfo as ef, getPersonalInfo as X7, getLanguages as z1, getUserInfo as xv, getMenus as sv } from "@das-fed/utils/common-info";
14
+ import { getSubApps as UA, getTabInfo as M9, getToken as ee, getTenantInfo as Vv, getProjectInfo as ef, getPersonalInfo as X7, getLanguages as z1, getUserInfo as xv, getMenus as sv } from "@das-fed/utils/common-info";
15
15
  import { pureImageSrc as b7 } from "@das-fed/utils/pure-image-src";
16
16
  import { DasNotification as pv } from "@das-fed/ui/packages/components/notification/index";
17
17
  import { flatTree as Rf, isEmpty as ha, filterTreeArray as Fa, treeFind as X1, setBrowseTitle as Ca, dateFormat as _a, updateFavIcon as $a, runPromiseByQueue as A0, objEqual as Fr, setShowWatermark as Cr, setShowLayout as _r, getUrlParams as f0, appendQueryParams as e0, withToken as v0 } from "@das-fed/utils/common-tools";
@@ -2029,11 +2029,15 @@ const vq = (n = {}) => {
2029
2029
  }, zq = () => {
2030
2030
  sessionStorage.removeItem("tabs");
2031
2031
  }, K9 = (n) => {
2032
- let v = GA();
2032
+ let v = UA();
2033
2033
  n.forEach((e) => {
2034
2034
  if (e.key === "subAppList" && !Array.isArray(e.value)) {
2035
2035
  const t = v.subAppList.findIndex((P) => P.code === e.value.code);
2036
2036
  t !== -1 ? v.subAppList.splice(t, 1, e.value) : v.subAppList.push(e.value);
2037
+ } else if (e.key === "currentSubApp" && e.value && typeof e.value == "object") {
2038
+ v.currentSubApp = e.value, Array.isArray(v.subAppList) || (v.subAppList = []);
2039
+ const t = v.subAppList.findIndex((P) => P.code === e.value.code);
2040
+ t !== -1 ? v.subAppList.splice(t, 1, { ...v.subAppList[t], ...e.value }) : v.subAppList.push(e.value);
2037
2041
  } else
2038
2042
  Object.assign(v, { [e.key]: e.value });
2039
2043
  }), sessionStorage.setItem("subApps", JSON.stringify(v));
@@ -2046,7 +2050,7 @@ const vq = (n = {}) => {
2046
2050
  { key: "menuCollapses", value: [] }
2047
2051
  ]);
2048
2052
  }, zd = (n) => {
2049
- let v = GA();
2053
+ let v = UA();
2050
2054
  v.currentSubApp.currentMenuCode = n;
2051
2055
  for (const e in v.subAppList)
2052
2056
  v.subAppList[e].code === v.currentSubAppCode && (v.subAppList[e].currentMenuCode = n);
@@ -2157,7 +2161,7 @@ const Oq = {}, Vq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2157
2161
  default: Oq
2158
2162
  }, Symbol.toStringTag, { value: "Module" })), xq = /* @__PURE__ */ Hq(Vq);
2159
2163
  var R1;
2160
- function UA() {
2164
+ function GA() {
2161
2165
  return R1 || (R1 = 1, function(n, v) {
2162
2166
  (function(e, t) {
2163
2167
  n.exports = t();
@@ -2661,7 +2665,7 @@ var dr = { exports: {} }, N1;
2661
2665
  function jv() {
2662
2666
  return N1 || (N1 = 1, function(n, v) {
2663
2667
  (function(e, t) {
2664
- n.exports = t(UA());
2668
+ n.exports = t(GA());
2665
2669
  })(DA, function(e) {
2666
2670
  return function(t) {
2667
2671
  var P = e, u = P.lib, z = u.Base, b = u.WordArray, a = P.x64 = {};
@@ -2891,7 +2895,7 @@ var zr = { exports: {} }, Z1;
2891
2895
  function Rq() {
2892
2896
  return Z1 || (Z1 = 1, function(n, v) {
2893
2897
  (function(e, t) {
2894
- n.exports = t(UA());
2898
+ n.exports = t(GA());
2895
2899
  })(DA, function(e) {
2896
2900
  return function() {
2897
2901
  if (typeof ArrayBuffer == "function") {
@@ -2913,7 +2917,7 @@ var Xr = { exports: {} }, T1;
2913
2917
  function Nq() {
2914
2918
  return T1 || (T1 = 1, function(n, v) {
2915
2919
  (function(e, t) {
2916
- n.exports = t(UA());
2920
+ n.exports = t(GA());
2917
2921
  })(DA, function(e) {
2918
2922
  return function() {
2919
2923
  var t = e, P = t.lib, u = P.WordArray, z = t.enc;
@@ -3007,7 +3011,7 @@ var br = { exports: {} }, D1;
3007
3011
  function Je() {
3008
3012
  return D1 || (D1 = 1, function(n, v) {
3009
3013
  (function(e, t) {
3010
- n.exports = t(UA());
3014
+ n.exports = t(GA());
3011
3015
  })(DA, function(e) {
3012
3016
  return function() {
3013
3017
  var t = e, P = t.lib, u = P.WordArray, z = t.enc;
@@ -3082,7 +3086,7 @@ var cr = { exports: {} }, j1;
3082
3086
  function Zq() {
3083
3087
  return j1 || (j1 = 1, function(n, v) {
3084
3088
  (function(e, t) {
3085
- n.exports = t(UA());
3089
+ n.exports = t(GA());
3086
3090
  })(DA, function(e) {
3087
3091
  return function() {
3088
3092
  var t = e, P = t.lib, u = P.WordArray, z = t.enc;
@@ -3164,7 +3168,7 @@ var ar = { exports: {} }, y1;
3164
3168
  function Be() {
3165
3169
  return y1 || (y1 = 1, function(n, v) {
3166
3170
  (function(e, t) {
3167
- n.exports = t(UA());
3171
+ n.exports = t(GA());
3168
3172
  })(DA, function(e) {
3169
3173
  return function(t) {
3170
3174
  var P = e, u = P.lib, z = u.WordArray, b = u.Hasher, a = P.algo, d = [];
@@ -3230,7 +3234,7 @@ var ir = { exports: {} }, L1;
3230
3234
  function cd() {
3231
3235
  return L1 || (L1 = 1, function(n, v) {
3232
3236
  (function(e, t) {
3233
- n.exports = t(UA());
3237
+ n.exports = t(GA());
3234
3238
  })(DA, function(e) {
3235
3239
  return function() {
3236
3240
  var t = e, P = t.lib, u = P.WordArray, z = P.Hasher, b = t.algo, a = [], d = b.SHA1 = z.extend({
@@ -3274,7 +3278,7 @@ var qr = { exports: {} }, W1;
3274
3278
  function mt() {
3275
3279
  return W1 || (W1 = 1, function(n, v) {
3276
3280
  (function(e, t) {
3277
- n.exports = t(UA());
3281
+ n.exports = t(GA());
3278
3282
  })(DA, function(e) {
3279
3283
  return function(t) {
3280
3284
  var P = e, u = P.lib, z = u.WordArray, b = u.Hasher, a = P.algo, d = [], c = [];
@@ -3326,7 +3330,7 @@ var sr = { exports: {} }, o1;
3326
3330
  function Tq() {
3327
3331
  return o1 || (o1 = 1, function(n, v) {
3328
3332
  (function(e, t, P) {
3329
- n.exports = t(UA(), mt());
3333
+ n.exports = t(GA(), mt());
3330
3334
  })(DA, function(e) {
3331
3335
  return function() {
3332
3336
  var t = e, P = t.lib, u = P.WordArray, z = t.algo, b = z.SHA256, a = z.SHA224 = b.extend({
@@ -3356,7 +3360,7 @@ var pr = { exports: {} }, w1;
3356
3360
  function ad() {
3357
3361
  return w1 || (w1 = 1, function(n, v) {
3358
3362
  (function(e, t, P) {
3359
- n.exports = t(UA(), jv());
3363
+ n.exports = t(GA(), jv());
3360
3364
  })(DA, function(e) {
3361
3365
  return function() {
3362
3366
  var t = e, P = t.lib, u = P.Hasher, z = t.x64, b = z.Word, a = z.WordArray, d = t.algo;
@@ -3497,7 +3501,7 @@ var lr = { exports: {} }, E1;
3497
3501
  function Dq() {
3498
3502
  return E1 || (E1 = 1, function(n, v) {
3499
3503
  (function(e, t, P) {
3500
- n.exports = t(UA(), jv(), ad());
3504
+ n.exports = t(GA(), jv(), ad());
3501
3505
  })(DA, function(e) {
3502
3506
  return function() {
3503
3507
  var t = e, P = t.x64, u = P.Word, z = P.WordArray, b = t.algo, a = b.SHA512, d = b.SHA384 = a.extend({
@@ -3527,7 +3531,7 @@ var Hr = { exports: {} }, I1;
3527
3531
  function jq() {
3528
3532
  return I1 || (I1 = 1, function(n, v) {
3529
3533
  (function(e, t, P) {
3530
- n.exports = t(UA(), jv());
3534
+ n.exports = t(GA(), jv());
3531
3535
  })(DA, function(e) {
3532
3536
  return function(t) {
3533
3537
  var P = e, u = P.lib, z = u.WordArray, b = u.Hasher, a = P.x64, d = a.Word, c = P.algo, x = [], i = [], s = [];
@@ -3637,7 +3641,7 @@ var mr = { exports: {} }, M1;
3637
3641
  function yq() {
3638
3642
  return M1 || (M1 = 1, function(n, v) {
3639
3643
  (function(e, t) {
3640
- n.exports = t(UA());
3644
+ n.exports = t(GA());
3641
3645
  })(DA, function(e) {
3642
3646
  /** @preserve
3643
3647
  (c) 2012 by Cédric Mesnil. All rights reserved.
@@ -4030,7 +4034,7 @@ var Or = { exports: {} }, k1;
4030
4034
  function Ot() {
4031
4035
  return k1 || (k1 = 1, function(n, v) {
4032
4036
  (function(e, t) {
4033
- n.exports = t(UA());
4037
+ n.exports = t(GA());
4034
4038
  })(DA, function(e) {
4035
4039
  (function() {
4036
4040
  var t = e, P = t.lib, u = P.Base, z = t.enc, b = z.Utf8, a = t.algo;
@@ -4108,7 +4112,7 @@ var Vr = { exports: {} }, g1;
4108
4112
  function Lq() {
4109
4113
  return g1 || (g1 = 1, function(n, v) {
4110
4114
  (function(e, t, P) {
4111
- n.exports = t(UA(), mt(), Ot());
4115
+ n.exports = t(GA(), mt(), Ot());
4112
4116
  })(DA, function(e) {
4113
4117
  return function() {
4114
4118
  var t = e, P = t.lib, u = P.Base, z = P.WordArray, b = t.algo, a = b.SHA256, d = b.HMAC, c = b.PBKDF2 = u.extend({
@@ -4175,7 +4179,7 @@ var xr = { exports: {} }, J1;
4175
4179
  function le() {
4176
4180
  return J1 || (J1 = 1, function(n, v) {
4177
4181
  (function(e, t, P) {
4178
- n.exports = t(UA(), cd(), Ot());
4182
+ n.exports = t(GA(), cd(), Ot());
4179
4183
  })(DA, function(e) {
4180
4184
  return function() {
4181
4185
  var t = e, P = t.lib, u = P.Base, z = P.WordArray, b = t.algo, a = b.MD5, d = b.EvpKDF = u.extend({
@@ -4238,7 +4242,7 @@ var Rr = { exports: {} }, B1;
4238
4242
  function Z9() {
4239
4243
  return B1 || (B1 = 1, function(n, v) {
4240
4244
  (function(e, t, P) {
4241
- n.exports = t(UA(), le());
4245
+ n.exports = t(GA(), le());
4242
4246
  })(DA, function(e) {
4243
4247
  e.lib.Cipher || function(t) {
4244
4248
  var P = e, u = P.lib, z = u.Base, b = u.WordArray, a = u.BufferedBlockAlgorithm, d = P.enc;
@@ -4776,7 +4780,7 @@ var Nr = { exports: {} }, U1;
4776
4780
  function Wq() {
4777
4781
  return U1 || (U1 = 1, function(n, v) {
4778
4782
  (function(e, t, P) {
4779
- n.exports = t(UA(), Z9());
4783
+ n.exports = t(GA(), Z9());
4780
4784
  })(DA, function(e) {
4781
4785
  return e.mode.CFB = function() {
4782
4786
  var t = e.lib.BlockCipherMode.extend();
@@ -4806,7 +4810,7 @@ var Zr = { exports: {} }, G1;
4806
4810
  function oq() {
4807
4811
  return G1 || (G1 = 1, function(n, v) {
4808
4812
  (function(e, t, P) {
4809
- n.exports = t(UA(), Z9());
4813
+ n.exports = t(GA(), Z9());
4810
4814
  })(DA, function(e) {
4811
4815
  return e.mode.CTR = function() {
4812
4816
  var t = e.lib.BlockCipherMode.extend(), P = t.Encryptor = t.extend({
@@ -4828,7 +4832,7 @@ var Tr = { exports: {} }, Q1;
4828
4832
  function wq() {
4829
4833
  return Q1 || (Q1 = 1, function(n, v) {
4830
4834
  (function(e, t, P) {
4831
- n.exports = t(UA(), Z9());
4835
+ n.exports = t(GA(), Z9());
4832
4836
  })(DA, function(e) {
4833
4837
  /** @preserve
4834
4838
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
@@ -4867,7 +4871,7 @@ var Dr = { exports: {} }, Y1;
4867
4871
  function Eq() {
4868
4872
  return Y1 || (Y1 = 1, function(n, v) {
4869
4873
  (function(e, t, P) {
4870
- n.exports = t(UA(), Z9());
4874
+ n.exports = t(GA(), Z9());
4871
4875
  })(DA, function(e) {
4872
4876
  return e.mode.OFB = function() {
4873
4877
  var t = e.lib.BlockCipherMode.extend(), P = t.Encryptor = t.extend({
@@ -4887,7 +4891,7 @@ var jr = { exports: {} }, S1;
4887
4891
  function Iq() {
4888
4892
  return S1 || (S1 = 1, function(n, v) {
4889
4893
  (function(e, t, P) {
4890
- n.exports = t(UA(), Z9());
4894
+ n.exports = t(GA(), Z9());
4891
4895
  })(DA, function(e) {
4892
4896
  return e.mode.ECB = function() {
4893
4897
  var t = e.lib.BlockCipherMode.extend();
@@ -4908,7 +4912,7 @@ var yr = { exports: {} }, K1;
4908
4912
  function Mq() {
4909
4913
  return K1 || (K1 = 1, function(n, v) {
4910
4914
  (function(e, t, P) {
4911
- n.exports = t(UA(), Z9());
4915
+ n.exports = t(GA(), Z9());
4912
4916
  })(DA, function(e) {
4913
4917
  return e.pad.AnsiX923 = {
4914
4918
  pad: function(t, P) {
@@ -4927,7 +4931,7 @@ var Lr = { exports: {} }, h1;
4927
4931
  function kq() {
4928
4932
  return h1 || (h1 = 1, function(n, v) {
4929
4933
  (function(e, t, P) {
4930
- n.exports = t(UA(), Z9());
4934
+ n.exports = t(GA(), Z9());
4931
4935
  })(DA, function(e) {
4932
4936
  return e.pad.Iso10126 = {
4933
4937
  pad: function(t, P) {
@@ -4946,7 +4950,7 @@ var Wr = { exports: {} }, F1;
4946
4950
  function gq() {
4947
4951
  return F1 || (F1 = 1, function(n, v) {
4948
4952
  (function(e, t, P) {
4949
- n.exports = t(UA(), Z9());
4953
+ n.exports = t(GA(), Z9());
4950
4954
  })(DA, function(e) {
4951
4955
  return e.pad.Iso97971 = {
4952
4956
  pad: function(t, P) {
@@ -4963,7 +4967,7 @@ var or = { exports: {} }, C1;
4963
4967
  function Jq() {
4964
4968
  return C1 || (C1 = 1, function(n, v) {
4965
4969
  (function(e, t, P) {
4966
- n.exports = t(UA(), Z9());
4970
+ n.exports = t(GA(), Z9());
4967
4971
  })(DA, function(e) {
4968
4972
  return e.pad.ZeroPadding = {
4969
4973
  pad: function(t, P) {
@@ -4985,7 +4989,7 @@ var wr = { exports: {} }, _1;
4985
4989
  function Bq() {
4986
4990
  return _1 || (_1 = 1, function(n, v) {
4987
4991
  (function(e, t, P) {
4988
- n.exports = t(UA(), Z9());
4992
+ n.exports = t(GA(), Z9());
4989
4993
  })(DA, function(e) {
4990
4994
  return e.pad.NoPadding = {
4991
4995
  pad: function() {
@@ -5000,7 +5004,7 @@ var Er = { exports: {} }, $1;
5000
5004
  function Uq() {
5001
5005
  return $1 || ($1 = 1, function(n, v) {
5002
5006
  (function(e, t, P) {
5003
- n.exports = t(UA(), Z9());
5007
+ n.exports = t(GA(), Z9());
5004
5008
  })(DA, function(e) {
5005
5009
  return function(t) {
5006
5010
  var P = e, u = P.lib, z = u.CipherParams, b = P.enc, a = b.Hex, d = P.format;
@@ -5047,7 +5051,7 @@ var Ir = { exports: {} }, A6;
5047
5051
  function Gq() {
5048
5052
  return A6 || (A6 = 1, function(n, v) {
5049
5053
  (function(e, t, P) {
5050
- n.exports = t(UA(), Je(), Be(), le(), Z9());
5054
+ n.exports = t(GA(), Je(), Be(), le(), Z9());
5051
5055
  })(DA, function(e) {
5052
5056
  return function() {
5053
5057
  var t = e, P = t.lib, u = P.BlockCipher, z = t.algo, b = [], a = [], d = [], c = [], x = [], i = [], s = [], q = [], O = [], H = [];
@@ -5107,7 +5111,7 @@ var Mr = { exports: {} }, f6;
5107
5111
  function Qq() {
5108
5112
  return f6 || (f6 = 1, function(n, v) {
5109
5113
  (function(e, t, P) {
5110
- n.exports = t(UA(), Je(), Be(), le(), Z9());
5114
+ n.exports = t(GA(), Je(), Be(), le(), Z9());
5111
5115
  })(DA, function(e) {
5112
5116
  return function() {
5113
5117
  var t = e, P = t.lib, u = P.WordArray, z = P.BlockCipher, b = t.algo, a = [
@@ -5827,7 +5831,7 @@ var kr = { exports: {} }, e6;
5827
5831
  function Yq() {
5828
5832
  return e6 || (e6 = 1, function(n, v) {
5829
5833
  (function(e, t, P) {
5830
- n.exports = t(UA(), Je(), Be(), le(), Z9());
5834
+ n.exports = t(GA(), Je(), Be(), le(), Z9());
5831
5835
  })(DA, function(e) {
5832
5836
  return function() {
5833
5837
  var t = e, P = t.lib, u = P.StreamCipher, z = t.algo, b = z.RC4 = u.extend({
@@ -5881,7 +5885,7 @@ var gr = { exports: {} }, v6;
5881
5885
  function Sq() {
5882
5886
  return v6 || (v6 = 1, function(n, v) {
5883
5887
  (function(e, t, P) {
5884
- n.exports = t(UA(), Je(), Be(), le(), Z9());
5888
+ n.exports = t(GA(), Je(), Be(), le(), Z9());
5885
5889
  })(DA, function(e) {
5886
5890
  return function() {
5887
5891
  var t = e, P = t.lib, u = P.StreamCipher, z = t.algo, b = [], a = [], d = [], c = z.Rabbit = u.extend({
@@ -5947,7 +5951,7 @@ var Jr = { exports: {} }, n6;
5947
5951
  function Kq() {
5948
5952
  return n6 || (n6 = 1, function(n, v) {
5949
5953
  (function(e, t, P) {
5950
- n.exports = t(UA(), Je(), Be(), le(), Z9());
5954
+ n.exports = t(GA(), Je(), Be(), le(), Z9());
5951
5955
  })(DA, function(e) {
5952
5956
  return function() {
5953
5957
  var t = e, P = t.lib, u = P.StreamCipher, z = t.algo, b = [], a = [], d = [], c = z.RabbitLegacy = u.extend({
@@ -6011,7 +6015,7 @@ var Br = { exports: {} }, r6;
6011
6015
  function hq() {
6012
6016
  return r6 || (r6 = 1, function(n, v) {
6013
6017
  (function(e, t, P) {
6014
- n.exports = t(UA(), Je(), Be(), le(), Z9());
6018
+ n.exports = t(GA(), Je(), Be(), le(), Z9());
6015
6019
  })(DA, function(e) {
6016
6020
  return function() {
6017
6021
  var t = e, P = t.lib, u = P.BlockCipher, z = t.algo;
@@ -7131,7 +7135,7 @@ function hq() {
7131
7135
  }
7132
7136
  (function(n, v) {
7133
7137
  (function(e, t, P) {
7134
- n.exports = t(UA(), jv(), Rq(), Nq(), Je(), Zq(), Be(), cd(), mt(), Tq(), ad(), Dq(), jq(), yq(), Ot(), Lq(), le(), Z9(), Wq(), oq(), wq(), Eq(), Iq(), Mq(), kq(), gq(), Jq(), Bq(), Uq(), Gq(), Qq(), Yq(), Sq(), Kq(), hq());
7138
+ n.exports = t(GA(), jv(), Rq(), Nq(), Je(), Zq(), Be(), cd(), mt(), Tq(), ad(), Dq(), jq(), yq(), Ot(), Lq(), le(), Z9(), Wq(), oq(), wq(), Eq(), Iq(), Mq(), kq(), gq(), Jq(), Bq(), Uq(), Gq(), Qq(), Yq(), Sq(), Kq(), hq());
7135
7139
  })(DA, function(e) {
7136
7140
  return e;
7137
7141
  });
@@ -7946,7 +7950,7 @@ const Hv = (n, v = "") => {
7946
7950
  const P = n.slice(0, t), u = n.slice(t + 1);
7947
7951
  return u.length && (e = u[0]), e || P.length && (e = P[P.length - 1]), { index: t, target: e };
7948
7952
  }, zt = (n) => {
7949
- const v = GA().subAppList ?? [];
7953
+ const v = UA().subAppList ?? [];
7950
7954
  let { index: e, target: t } = _H(v, n);
7951
7955
  return v.splice(e, 1), v.length ? K9([{ key: "subAppList", value: v }]) : dd(), ff([
7952
7956
  { key: "currentCode", value: "" },
@@ -8027,7 +8031,7 @@ const Hv = (n, v = "") => {
8027
8031
  let b = (v == null ? void 0 : v.code) ?? "";
8028
8032
  if (!b) return { menuConfig: [], currentApp: null, currentMenu: null, query: null };
8029
8033
  let a = [], d = [];
8030
- const c = GA().subAppList ?? [];
8034
+ const c = UA().subAppList ?? [];
8031
8035
  if (c.length && (a = ((q = c.find((l) => l.code === v.code)) == null ? void 0 : q.menus) ?? []), !a.length) {
8032
8036
  const { menus: l, originalMenus: m } = await Nt(b);
8033
8037
  a = l ?? [], d = m ?? [];
@@ -13435,14 +13439,14 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13435
13439
  w.forEach((g) => (V != null && V.appAlias && g.value === xf && (g.label = V.appAlias), V != null && V.homeAlias && g.value === gf && (g.label = V.homeAlias), g));
13436
13440
  let D = l.map((g) => g.id === "-1" || g.id === "-2" ? w.map((K) => ({ ...K, label: dA(K.label), name: dA(K.label), closable: !1 })).find((K) => K.id === g.id) : g);
13437
13441
  j || (D = D.filter((g) => g.id !== "-2"));
13438
- const E = (m.map((g) => g.apps).flat() || []).map((g) => g.code), L = (tA = GA()) == null ? void 0 : tA.subAppList.filter(
13442
+ const E = (m.map((g) => g.apps).flat() || []).map((g) => g.code), L = (tA = UA()) == null ? void 0 : tA.subAppList.filter(
13439
13443
  (g) => E.includes(g.code) && !D.map((K) => K.code).includes(g.code)
13440
13444
  ), o = [...D, ...L];
13441
13445
  K9([{ key: "subAppList", value: o }]), K9([{ key: "fixedApps", value: D }]);
13442
- const B = (uA = (F = GA()) == null ? void 0 : F.subAppList) == null ? void 0 : uA.map((g) => ({ ...g, value: g.code, label: g.name }));
13446
+ const B = (uA = (F = UA()) == null ? void 0 : F.subAppList) == null ? void 0 : uA.map((g) => ({ ...g, value: g.code, label: g.name }));
13443
13447
  sA.nav.setItems(B);
13444
13448
  const Q = (o == null ? void 0 : o[0]) || xf;
13445
- (location.pathname === "/" || location.pathname === gf && !j || !E.includes(GA().currentSubAppCode)) && u(Q, !1);
13449
+ (location.pathname === "/" || location.pathname === gf && !j || !E.includes(UA().currentSubAppCode)) && u(Q, !1);
13446
13450
  }, q = J(!1), O = async () => {
13447
13451
  var Q;
13448
13452
  await n();
@@ -13470,7 +13474,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13470
13474
  getHistoryList: t,
13471
13475
  getSearchList: P
13472
13476
  });
13473
- const B = GA().subAppList ?? [];
13477
+ const B = UA().subAppList ?? [];
13474
13478
  B.length && (B.forEach((tA) => {
13475
13479
  tA.menus = [], tA.originalMenus = [];
13476
13480
  }), K9([{ key: "subAppList", value: B }])), q.value = !0;
@@ -13499,26 +13503,27 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13499
13503
  }, LV = () => {
13500
13504
  const { entryMenu: n } = wv();
13501
13505
  sA.menu.addEventListener("onItemClick", async (v) => {
13502
- var u;
13506
+ var z, b;
13503
13507
  i9.innerSet = !0;
13504
- const e = Rf(sv(v.applicationCode)).filter((z) => !z.disable && !z.expired).find((z) => z.code === v.code);
13505
- if (e && !e.routeUrl) return;
13506
- if (!e) {
13507
- const { title: z, content: b, desc: a } = await Dt(e);
13508
- await v7({ title: z, content: b, desc: a });
13508
+ const e = UA();
13509
+ let t = null;
13510
+ if (v.applicationCode === e.currentSubAppCode ? t = ((z = e.currentSubApp) == null ? void 0 : z.menus) ?? [] : t = Rf(sv(v.applicationCode)).find((a) => a.code === v.code), !t || !t.routeUrl) return;
13511
+ if (t.disable || t.expired) {
13512
+ const { title: a, content: d, desc: c } = await Dt(t);
13513
+ await v7({ title: a, content: d, desc: c });
13509
13514
  return;
13510
13515
  }
13511
- const P = (((u = M9().tabMap) == null ? void 0 : u[v.applicationCode]) ?? []).find((z) => z.code === v.code);
13512
- n(P ? { currentMenu: e, route: { path: P.path, query: P.query ?? {} } } : { currentMenu: e });
13516
+ const u = (((b = M9().tabMap) == null ? void 0 : b[v.applicationCode]) ?? []).find((a) => a.code === v.code);
13517
+ n(u ? { currentMenu: t, route: { path: u.path, query: u.query ?? {} } } : { currentMenu: t });
13513
13518
  }), sA.menu.addEventListener("toggleCollapse", (v) => {
13514
13519
  const e = Y6.nav.activeItem;
13515
- let t = GA().menuCollapses || [];
13520
+ let t = UA().menuCollapses || [];
13516
13521
  v ? t = Array.from(/* @__PURE__ */ new Set([...t, e])) : t = t.filter((P) => P !== e), K9([{ key: "menuCollapses", value: t }]);
13517
13522
  });
13518
13523
  }, WV = () => {
13519
13524
  const { changeApp: n, deleteApp: v, beforeEntryApp: e } = He();
13520
13525
  sA.nav.addEventListener("onItemClick", async (P) => {
13521
- const u = GA().currentSubAppCode ?? "";
13526
+ const u = UA().currentSubAppCode ?? "";
13522
13527
  if (u !== P.code) {
13523
13528
  if (u && pq(u), (!P.fixed || !P.unClosed) && !await e(P))
13524
13529
  throw new Error(dA("取消切换"));
@@ -13526,7 +13531,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13526
13531
  }
13527
13532
  }), sA.nav.addEventListener("onItemRemove", (P) => {
13528
13533
  var d;
13529
- const u = GA();
13534
+ const u = UA();
13530
13535
  if (!((d = u.subAppList) != null && d.length) || u.subAppList.findIndex((c) => c.code === P.code) === -1) return;
13531
13536
  const a = (M9().tabMap[P.code] ?? []).map((c) => c.code);
13532
13537
  a && a.length && iv(P.code, a), v(P);
@@ -13544,7 +13549,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13544
13549
  let H = ((j = q.query) == null ? void 0 : j.showLayout) ?? !0;
13545
13550
  if (H === "false" && (H = !1), !O || !H || q.path === P && Fr(q.query, u)) return;
13546
13551
  P = H3(q.path), u = H3(q.query);
13547
- const l = GA().currentSubAppCode ?? "";
13552
+ const l = UA().currentSubAppCode ?? "";
13548
13553
  if (!l) return;
13549
13554
  const m = ((w = q.query) == null ? void 0 : w.menu) ?? ((D = M9()) == null ? void 0 : D.currentCode) ?? "";
13550
13555
  if (!m) return;
@@ -13561,13 +13566,13 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13561
13566
  const O = q.filter((H) => !H.path.startsWith(We)).map((H) => H.path);
13562
13567
  O && O.length && d(O), q.forEach((H) => sA.iframeView.triggerEventListener("onUnloadPage", H.path));
13563
13568
  }, i = (q) => {
13564
- const O = GA().currentSubAppCode ?? "";
13569
+ const O = UA().currentSubAppCode ?? "";
13565
13570
  i9.innerSet = !0;
13566
13571
  const H = M9(), l = H.tabMap[O], m = l.findIndex((y) => y.code === q.data.code);
13567
13572
  if (m === -1) return;
13568
13573
  const V = () => {
13569
13574
  var L;
13570
- let E = (((L = GA().appcategorys) == null ? void 0 : L.map((o) => o.apps).flat()) ?? []).find((o) => o.code === O);
13575
+ let E = (((L = UA().appcategorys) == null ? void 0 : L.map((o) => o.apps).flat()) ?? []).find((o) => o.code === O);
13571
13576
  E = { ...E, value: E.code, label: E.name }, z(E), sA.nav.removeItem(O);
13572
13577
  };
13573
13578
  ({
@@ -13604,7 +13609,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13604
13609
  sA.tab.addEventListener("onItemClick", async (q) => {
13605
13610
  M9().currentCode !== q.currentCode && (i9.innerSet = !0, c(q));
13606
13611
  }), sA.tab.addEventListener("onItemRemove", (q) => {
13607
- const O = M9(), H = GA().currentSubAppCode ?? "";
13612
+ const O = M9(), H = UA().currentSubAppCode ?? "";
13608
13613
  O.tabMap[H].findIndex((V) => V.code === q.code) !== -1 && (iv(q.applicationCode, [q.code]), i({ type: "me", data: q }));
13609
13614
  }), sA.tab.addEventListener("onMenuClick", (q) => {
13610
13615
  let O = [];
@@ -13653,7 +13658,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13653
13658
  window.__isAutoCloseApp = !0;
13654
13659
  return;
13655
13660
  }
13656
- const t = GA();
13661
+ const t = UA();
13657
13662
  t.subAppList && t.subAppList.length && sessionStorage.setItem("has-subapp", "true"), n();
13658
13663
  }), window.__isAutoCloseApp = !0, sessionStorage.getItem("has-subapp") && (v(), sessionStorage.removeItem("has-subapp")), m9.addEventListenerFromMicroApp("system-reload", () => {
13659
13664
  n(), v();
@@ -13666,7 +13671,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13666
13671
  sA.menu.setItems([]), sA.menu.setActiveItem(""), sA.tab.setItems([]), sA.tab.setActiveItem("");
13667
13672
  }, a = async (i) => {
13668
13673
  if (i.routeUrl && !z.includes(i.routeUrl)) return !0;
13669
- const s = i.code ?? "", O = (GA().subAppList ?? []).find((N) => N.code === s);
13674
+ const s = i.code ?? "", O = (UA().subAppList ?? []).find((N) => N.code === s);
13670
13675
  let H = [], l = [], m = !1;
13671
13676
  if (O && (H = O.menus ?? []), !H.length) {
13672
13677
  const { menus: N, originalMenus: j, err: w } = await Nt(s);
@@ -13697,7 +13702,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13697
13702
  appCode: s.code,
13698
13703
  displayAppName: s.name
13699
13704
  }), b();
13700
- const g = ((tA = GA()) == null ? void 0 : tA.subAppList) ?? [];
13705
+ const g = ((tA = UA()) == null ? void 0 : tA.subAppList) ?? [];
13701
13706
  if ((g == null ? void 0 : g.find((XA) => XA.code === s.code)) || g == null || g.push(s), K9([
13702
13707
  { key: "currentSubApp", value: s },
13703
13708
  { key: "currentSubAppCode", value: s.code },
@@ -13746,7 +13751,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13746
13751
  if (D.fixed || D.unClosed)
13747
13752
  await n.push(D.path), b(), sA.nav.setActiveItem(D.path);
13748
13753
  else {
13749
- const g = (F = GA().subAppList) == null ? void 0 : F.find((cA) => cA.code === D.code), K = M9().preTab[D.code], XA = { ...(K == null ? void 0 : K.query) ?? {} };
13754
+ const g = (F = UA().subAppList) == null ? void 0 : F.find((cA) => cA.code === D.code), K = M9().preTab[D.code], XA = { ...(K == null ? void 0 : K.query) ?? {} };
13750
13755
  await d({ microApp: g, menuCode: (K == null ? void 0 : K.code) ?? "", route: { query: XA } });
13751
13756
  }
13752
13757
  return;
@@ -13763,7 +13768,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13763
13768
  return;
13764
13769
  }
13765
13770
  if (m && V) {
13766
- (uA = GA().subAppList) == null || uA.forEach((K) => {
13771
+ (uA = UA().subAppList) == null || uA.forEach((K) => {
13767
13772
  const XA = { ...K, value: K.code, label: K.name };
13768
13773
  sA.nav.appendItem(XA);
13769
13774
  }), sA.nav.setActiveItem(o.code), sA.menu.setItems(w);
@@ -13791,7 +13796,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13791
13796
  ]);
13792
13797
  return;
13793
13798
  }
13794
- const q = (m = GA().subAppList) == null ? void 0 : m.find((V) => V.code === i.code), O = M9().preTab[i.code], H = (O == null ? void 0 : O.code) ?? "", l = { ...(O == null ? void 0 : O.query) ?? {} };
13799
+ const q = (m = UA().subAppList) == null ? void 0 : m.find((V) => V.code === i.code), O = M9().preTab[i.code], H = (O == null ? void 0 : O.code) ?? "", l = { ...(O == null ? void 0 : O.query) ?? {} };
13795
13800
  await d({ microApp: q, menuCode: H, route: { query: l } });
13796
13801
  };
13797
13802
  return {
@@ -13800,7 +13805,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13800
13805
  changeApp: c,
13801
13806
  deleteApp: async (i) => {
13802
13807
  var l;
13803
- const s = GA();
13808
+ const s = UA();
13804
13809
  if (!((l = s.subAppList) != null && l.length)) return;
13805
13810
  const q = s.subAppList.findIndex((m) => m.code === i.code);
13806
13811
  if (q === -1) return;
@@ -13876,7 +13881,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13876
13881
  let q = (d == null ? void 0 : d.showLayout) ?? !0;
13877
13882
  if (q === "false" && (q = !1), s && q) {
13878
13883
  const H = {
13879
- currentApplication: GA().currentSubApp.routeUrl,
13884
+ currentApplication: UA().currentSubApp.routeUrl,
13880
13885
  applicationPath: z.applicationPath,
13881
13886
  applicationCode: z.applicationCode,
13882
13887
  menuId: z.id,
@@ -13919,7 +13924,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13919
13924
  i === "false" && (i = !1);
13920
13925
  const s = async () => {
13921
13926
  var E, L;
13922
- let D = GA().appcategorys ?? [];
13927
+ let D = UA().appcategorys ?? [];
13923
13928
  if (!Array.isArray(D)) return [];
13924
13929
  if (x.query) {
13925
13930
  const o = ((E = x.query) == null ? void 0 : E.project) ?? ((L = x.query) == null ? void 0 : L.projectId) ?? "";
@@ -13945,7 +13950,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13945
13950
  return;
13946
13951
  }
13947
13952
  }
13948
- const O = await s(), H = O.map((D) => D.code), l = ((V = x.query) == null ? void 0 : V.app) ?? "", m = ((N = GA()) == null ? void 0 : N.subAppList) ?? [];
13953
+ const O = await s(), H = O.map((D) => D.code), l = ((V = x.query) == null ? void 0 : V.app) ?? "", m = ((N = UA()) == null ? void 0 : N.subAppList) ?? [];
13949
13954
  if (m.length) {
13950
13955
  const D = m.filter((E) => E.code !== l && !H.includes(E.code)), y = m.filter((E) => l === E.code || H.includes(E.code) || E.id === "-1" || E.id === "-2");
13951
13956
  K9([{ key: "subAppList", value: y }]), D && D.length && D.forEach((E) => {
@@ -13992,7 +13997,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
13992
13997
  return;
13993
13998
  }
13994
13999
  }
13995
- i && ((w = (j = GA()) == null ? void 0 : j.subAppList) == null || w.forEach((D) => {
14000
+ i && ((w = (j = UA()) == null ? void 0 : j.subAppList) == null || w.forEach((D) => {
13996
14001
  const y = { ...D, value: D.code, label: D.name };
13997
14002
  sA.nav.appendItem(y);
13998
14003
  }));
@@ -14049,7 +14054,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
14049
14054
  const s = i.toString(), q = `${e.baseURL}${a.logout}?${s}`;
14050
14055
  window.__isAutoCloseApp = !1, t() ? P(q) : location.replace(q), localStorage.removeItem("idelTime"), sessionStorage.clear(), z0();
14051
14056
  }, { entryApp: z } = He(), b = async () => {
14052
- const a = "personCenter", c = (GA().appcategorys || []).map((O) => O.apps).flat(), { originalMenus: x = [] } = await Nt(a), s = Rf(x).filter((O) => O.isMenu && O.routeUrl).find((O) => O.routeUrl === "/userInfo");
14057
+ const a = "personCenter", c = (UA().appcategorys || []).map((O) => O.apps).flat(), { originalMenus: x = [] } = await Nt(a), s = Rf(x).filter((O) => O.isMenu && O.routeUrl).find((O) => O.routeUrl === "/userInfo");
14053
14058
  if (s != null && s.disable || s != null && s.expired) {
14054
14059
  const { title: O, content: H, desc: l } = await Dt(s);
14055
14060
  await v7({ title: O, content: H, desc: l });
@@ -14142,7 +14147,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
14142
14147
  return;
14143
14148
  }
14144
14149
  await UV().run({ searchVal: u, clickData: P });
14145
- const d = ((GA().appcategorys ?? []).map((x) => x.apps).flat() ?? []).find((x) => x.code === P.applicationCode);
14150
+ const d = ((UA().appcategorys ?? []).map((x) => x.apps).flat() ?? []).find((x) => x.code === P.applicationCode);
14146
14151
  if (!d) return;
14147
14152
  const c = P.applicationCode !== P.code ? P.code : "";
14148
14153
  e({ microApp: d, menuCode: c }), z();
@@ -14166,7 +14171,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
14166
14171
  let u = P.startsWith("/") ? `http://example.com${P}` : `http://example.com/${P}`;
14167
14172
  const z = new URL(u), b = new URLSearchParams(z.search), a = b.get("app"), d = b.get("menu");
14168
14173
  if (d && a) {
14169
- const i = ((GA().appcategorys ?? []).map((s) => s.apps).flat() ?? []).find((s) => s.code === a);
14174
+ const i = ((UA().appcategorys ?? []).map((s) => s.apps).flat() ?? []).find((s) => s.code === a);
14170
14175
  if (!i) return;
14171
14176
  v({ microApp: i, menuCode: d });
14172
14177
  }
@@ -14188,7 +14193,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
14188
14193
  routeKeepAliveVisible: !0
14189
14194
  }), KV = () => {
14190
14195
  m9.addEventListenerFromMicroApp("iot:change-instance", (n) => {
14191
- const v = GA(), e = v.currentSubAppCode;
14196
+ const v = UA(), e = v.currentSubAppCode;
14192
14197
  let t = sv(e);
14193
14198
  t.forEach((u) => {
14194
14199
  u.fixed && (u.name = n.data.instanceInfo.instanceName);
@@ -14229,7 +14234,7 @@ const gO = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
14229
14234
  }, CV = Nv.get("/platform/login/pwd-advance-notify-check"), _V = () => {
14230
14235
  const n = J([]), v = J(null), e = J([]), { entryApp: t } = lv.hooks.useEntryApp(), P = () => {
14231
14236
  var a;
14232
- const b = (((a = GA().appcategorys) == null ? void 0 : a.map((d) => d.apps).flat()) ?? []).find((d) => d.code === "messagecenter");
14237
+ const b = (((a = UA().appcategorys) == null ? void 0 : a.map((d) => d.apps).flat()) ?? []).find((d) => d.code === "messagecenter");
14233
14238
  b && t({ microApp: b });
14234
14239
  }, u = () => {
14235
14240
  v.value = new Tv({
@@ -16739,7 +16744,7 @@ const qR = L9(`/api/tool/event-bus/${Iv}/`), Sr = qR.post("/publish"), sR = Rv.g
16739
16744
  }
16740
16745
  }, z = async (H) => {
16741
16746
  var V, N, j, w, D;
16742
- const l = GA(), m = ((V = l.appcategorys) == null ? void 0 : V.map((y) => y.apps).flat()) || [];
16747
+ const l = UA(), m = ((V = l.appcategorys) == null ? void 0 : V.map((y) => y.apps).flat()) || [];
16743
16748
  if (Array.isArray(H)) {
16744
16749
  const y = H.filter((E) => E.code).map((E) => E.code);
16745
16750
  if (H.length) {
@@ -17608,7 +17613,7 @@ const rN = () => {
17608
17613
  Ad(y.equipmentCode, y.equipmentPanelCode);
17609
17614
  }, { handleAlarmVue: s } = JR(e, P), q = async () => {
17610
17615
  var L;
17611
- const E = (((L = GA().appcategorys) == null ? void 0 : L.map((o) => o.apps).flat()) ?? []).find((o) => o.code === "alarm");
17616
+ const E = (((L = UA().appcategorys) == null ? void 0 : L.map((o) => o.apps).flat()) ?? []).find((o) => o.code === "alarm");
17612
17617
  E && x({ microApp: E, menuPath: `/${E.routeUrl}/realTimeAlarm` });
17613
17618
  }, O = [], H = (y) => {
17614
17619
  if (O.push(y), u.value.length < 2) {
@@ -17738,7 +17743,7 @@ const rN = () => {
17738
17743
  (E) => {
17739
17744
  var L;
17740
17745
  if (E) {
17741
- const B = !!(((L = GA()) == null ? void 0 : L.menuCollapses) || []).find((Q) => Q === E);
17746
+ const B = !!(((L = UA()) == null ? void 0 : L.menuCollapses) || []).find((Q) => Q === E);
17742
17747
  sA.menu.setCollapse(B);
17743
17748
  }
17744
17749
  },
@@ -18005,11 +18010,11 @@ J("@das-fed/web");
18005
18010
  const bN = [
18006
18011
  {
18007
18012
  path: xf,
18008
- component: () => import("./index-BFeXrnSO.js")
18013
+ component: () => import("./index-BhwUVSaO.js")
18009
18014
  },
18010
18015
  {
18011
18016
  path: Pd,
18012
- component: () => import("./index-Cp2VpVJf.js")
18017
+ component: () => import("./index-DB2R5vyg.js")
18013
18018
  }
18014
18019
  ], MZ = {
18015
18020
  routes: bN,
Binary file
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-DIrPzLab.js";
1
+ import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-DQK4cLyV.js";
2
2
  export {
3
3
  e as DasMainAppLayout,
4
4
  t as DasWebLayout,