ss-component-new 1.1.321 → 1.1.322

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 (86) hide show
  1. package/dist/{array-B7a7NPJU.cjs → array-BbvvSsMu.cjs} +1 -1
  2. package/dist/{array-C-FBt-w6.js → array-D1c5z7wR.js} +2 -2
  3. package/dist/{cloneDeep-Dfe27GGP.cjs → cloneDeep-Cz5C3YTY.cjs} +1 -1
  4. package/dist/{cloneDeep-BCBo2P7c.js → cloneDeep-_BP6PqFE.js} +1 -1
  5. package/dist/{index-DtKo1EwI.cjs → index-2DyWZAdI.cjs} +1 -1
  6. package/dist/{index-B8R_1YcJ.cjs → index-8Hh6ndcp.cjs} +1 -1
  7. package/dist/{index-BQg0VVq4.cjs → index-B04yaoqW.cjs} +1 -1
  8. package/dist/{index-zKJ_fhRb.js → index-B5mGte2C.js} +1 -1
  9. package/dist/{index-BYj7719b.js → index-B5xspgKx.js} +4 -4
  10. package/dist/{index-DYKwo9dQ.cjs → index-BDEd8FiZ.cjs} +1 -1
  11. package/dist/{index-B31X029_.js → index-BHVJl56b.js} +1 -1
  12. package/dist/{index-DH_8-yVF.cjs → index-BLnGKCeV.cjs} +1 -1
  13. package/dist/{index-CvyP7SN4.cjs → index-BViHfbD_.cjs} +1 -1
  14. package/dist/{index-DJCo-V_0.js → index-Bbd67AeJ.js} +3 -3
  15. package/dist/{index-Bs0aQvhY.cjs → index-BcojRq7f.cjs} +1 -1
  16. package/dist/{index-B9ylWbtH.cjs → index-BmH4vIv5.cjs} +1 -1
  17. package/dist/{index-BW8fHFr3.cjs → index-BnhhKe8F.cjs} +1 -1
  18. package/dist/{index-IynRqxzh.js → index-Bo9FXjtY.js} +9 -9
  19. package/dist/{index-BhRm0szn.cjs → index-BtqwaqYq.cjs} +1 -1
  20. package/dist/{index-CXJxkaVz.cjs → index-BvHZX-h-.cjs} +1 -1
  21. package/dist/{index-BCoI86GW.js → index-C6JIrngm.js} +8 -8
  22. package/dist/{index-a2ldY1f-.js → index-CAc69tT_.js} +188 -175
  23. package/dist/{index-C_ALukSb.js → index-CCK5r26s.js} +5 -5
  24. package/dist/{index-9GphTnn3.js → index-CFmGx7au.js} +3 -3
  25. package/dist/{index-Bgho40P2.cjs → index-CIKYVmYG.cjs} +1 -1
  26. package/dist/{index-Ca2rHt6C.js → index-COd6JefL.js} +1 -1
  27. package/dist/{index-BeJ-4T1d.js → index-CPFvyv9G.js} +7 -7
  28. package/dist/{index-56_km5fJ.cjs → index-CS1cZGwT.cjs} +1 -1
  29. package/dist/{index-GQAcezLl.cjs → index-CVOAzSks.cjs} +1 -1
  30. package/dist/{index-XAfW8sqN.js → index-CZoo5L0I.js} +8 -8
  31. package/dist/{index-CymFMSAS.js → index-C_IxW7Md.js} +9 -9
  32. package/dist/{index-bag5UhkN.js → index-Cex_DdEz.js} +6 -6
  33. package/dist/{index-6JoL18KU.js → index-CifB8Q5h.js} +6 -6
  34. package/dist/{index-B1pGYX6g.js → index-Cq_-kyms.js} +3 -3
  35. package/dist/{index-Cum9FmiL.js → index-CvmUTrUZ.js} +7 -7
  36. package/dist/{index-CLaDIaSW.cjs → index-CvqVEDJp.cjs} +1 -1
  37. package/dist/{index-CnyOW-3P.js → index-Cy7V5CTy.js} +4 -4
  38. package/dist/{index-DSmYcj7E.cjs → index-D7VphCVl.cjs} +1 -1
  39. package/dist/{index-ZC9w1ZOi.cjs → index-DAwrHG2B.cjs} +1 -1
  40. package/dist/{index-Yb-y-7vb.js → index-DFfFpmpu.js} +5 -5
  41. package/dist/{index-BK4WawKM.cjs → index-DHpjhrEA.cjs} +1 -1
  42. package/dist/index-DK5Q4nqN.cjs +11 -0
  43. package/dist/{index-DGQdhDlx.cjs → index-DSg6qN3u.cjs} +1 -1
  44. package/dist/{index-DFnqEKzJ.cjs → index-D_43dEyj.cjs} +1 -1
  45. package/dist/{index-ETZte82B.js → index-DdlsSh-T.js} +5 -5
  46. package/dist/{index-yAPzGZyB.js → index-DfXZ2EMp.js} +3 -3
  47. package/dist/{index-B2enzaE2.js → index-DiNYreUx.js} +3 -3
  48. package/dist/{index-DzbEZsq7.cjs → index-DiPSBd5G.cjs} +1 -1
  49. package/dist/{index-41WzW0HQ.js → index-Djvu9TqC.js} +8 -8
  50. package/dist/{index-DWRuDpPB.js → index-GuVmUiOk.js} +1 -1
  51. package/dist/{index-rsQ55kHW.cjs → index-RK4ejtZg.cjs} +1 -1
  52. package/dist/{index-CO1MoNNj.cjs → index-TdIgNVKx.cjs} +1 -1
  53. package/dist/{index-CksMAtZu.cjs → index-UEe32A7X.cjs} +161 -161
  54. package/dist/{index-gv4Kx45I.cjs → index-feWSPCw8.cjs} +1 -1
  55. package/dist/index-q45-pnfC.js +5632 -0
  56. package/dist/{index-C9giOxZg.js → index-znmNCY8T.js} +6 -6
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-CI6HPiSn.js → index.vue_vue_type_script_setup_true_lang-DCkScM42.js} +1 -1
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-Dhlx6gOT.cjs → index.vue_vue_type_script_setup_true_lang-DXsUWEZn.cjs} +1 -1
  59. package/dist/index.vue_vue_type_style_index_0_scoped_62633fa4_lang-CMqyfT8F.js +1146 -0
  60. package/dist/index.vue_vue_type_style_index_0_scoped_62633fa4_lang-CtS3lsVS.cjs +1 -0
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-CUJRJXLZ.js → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-BxpfZWjj.js} +8 -8
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-BRb9nIeN.cjs → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-tJav1eMA.cjs} +1 -1
  63. package/dist/{login-DFyLmZjC.js → login-B19t0BgJ.js} +2 -2
  64. package/dist/{login-DI3Yef8J.cjs → login-CIjEq-GP.cjs} +1 -1
  65. package/dist/{main-MMs-Ocq5.cjs → main-EHe9Q7Jw.cjs} +1 -1
  66. package/dist/{main-KRl16v8X.js → main-vsUpk0Pc.js} +7 -7
  67. package/dist/{menu-ClaTWnGZ.cjs → menu-BwznZPTB.cjs} +1 -1
  68. package/dist/{menu-9axm5sPU.js → menu-DXatuTQB.js} +1 -1
  69. package/dist/model/final.pcd +19333 -0
  70. package/dist/model/target.pcd +29276 -0
  71. package/dist/obj/model.mtl +42 -0
  72. package/dist/obj/model.obj +26110 -0
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.css +1 -1
  75. package/dist/ss-component.js +7 -7
  76. package/dist/ss-component3.cjs +1 -1
  77. package/dist/ss-component3.js +1 -1
  78. package/package.json +1 -1
  79. package/public/model/final.pcd +19333 -0
  80. package/public/model/target.pcd +29276 -0
  81. package/public/obj/model.mtl +42 -0
  82. package/public/obj/model.obj +26110 -0
  83. package/dist/index-Coyk-8_r.js +0 -5421
  84. package/dist/index-aBU24Yq6.cjs +0 -9
  85. package/dist/index.vue_vue_type_style_index_0_scoped_63a4bd9d_lang-BRkLNqo1.js +0 -1091
  86. package/dist/index.vue_vue_type_style_index_0_scoped_63a4bd9d_lang-C-PKZjBI.cjs +0 -1
@@ -0,0 +1,1146 @@
1
+ import { ref as m, watch as ue, defineComponent as We, defineProps as Qe, computed as ke, onMounted as Xe } from "vue";
2
+ import { c as oe, g as pe, d as ye, e as _e, u as Ee, s as re, E as ne } from "./menu-DXatuTQB.js";
3
+ import { am as Ze, an as Ae, ao as Ie, ap as Ne, ak as W, u as me, aq as ge, ai as ea, ar as aa, as as sa, at as ra, au as la } from "./index-CAc69tT_.js";
4
+ import { c as C } from "./cloneDeep-_BP6PqFE.js";
5
+ import { g as ta, d as Oe } from "./crypto-BRyGpjGR.js";
6
+ import { t as na, g as Ue } from "./index-Cex_DdEz.js";
7
+ import { t as ua } from "./index-Cy7V5CTy.js";
8
+ import { t as oa } from "./index-Bbd67AeJ.js";
9
+ import { t as pa } from "./index-CFmGx7au.js";
10
+ import { v as He } from "./index-Cq_-kyms.js";
11
+ import { d as De, p as fa, m as ca, g as ya } from "./array-D1c5z7wR.js";
12
+ import { p as Me } from "./index-BHVJl56b.js";
13
+ import { g as ga } from "./index-CPFvyv9G.js";
14
+ import { u as Ye } from "./login-B19t0BgJ.js";
15
+ import { a as ha, s as ia, b as ka, c as Aa, d as Sa } from "./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-BxpfZWjj.js";
16
+ import { useRouter as ba } from "vue-router";
17
+ m([]);
18
+ const Re = async (e) => {
19
+ let s = [];
20
+ e == null || e.forEach((r) => {
21
+ var a;
22
+ (a = r.compData) == null || a.forEach((c) => {
23
+ var t;
24
+ (t = c.contents) == null || t.forEach((n) => {
25
+ var o, g, p, h;
26
+ const u = (g = (o = n == null ? void 0 : n.compData) == null ? void 0 : o.find((T) => (T == null ? void 0 : T.key) === "extra")) == null ? void 0 : g.value;
27
+ (h = (p = n.compData) == null ? void 0 : p.filter((T) => (T == null ? void 0 : T.key) !== "extra")) == null || h.forEach((T) => {
28
+ var k;
29
+ (k = Ze(C(T))) == null || k.forEach(async (O) => {
30
+ var v, D, d, F, w, G, H, Y;
31
+ if (O.comp === "Table") {
32
+ const S = await oe({
33
+ key: {
34
+ systemKey: sessionStorage.getItem("systemKey"),
35
+ pageKey: r.name,
36
+ type: "method",
37
+ version: 1,
38
+ methodName: (d = (v = r.name) == null ? void 0 : v.split("/")) == null ? void 0 : d[((D = r.name) == null ? void 0 : D.split("/").length) - 1],
39
+ methodKey: (F = Object.values(u[0])) == null ? void 0 : F[0],
40
+ parentTable: (O == null ? void 0 : O.parentTableContents) ?? ""
41
+ },
42
+ value: {
43
+ pageData: {
44
+ comp: (w = Ae(C(O))) == null ? void 0 : w.comp,
45
+ compData: (G = Ae(C(O))) == null ? void 0 : G.compData,
46
+ name: (H = Ae(C(O))) == null ? void 0 : H.name
47
+ }
48
+ }
49
+ }), P = S.data.result, R = await ((Y = Ie(C(O))) == null ? void 0 : Y.map(async (E) => {
50
+ var y, b;
51
+ let f;
52
+ E.length !== 0 && (f = await oe({
53
+ key: {
54
+ systemKey: sessionStorage.getItem("systemKey"),
55
+ pageKey: r.name,
56
+ type: "methodData",
57
+ methodKey: (y = Object.values(u[0])) == null ? void 0 : y[0],
58
+ tableId: P
59
+ },
60
+ value: {
61
+ tableData: E
62
+ }
63
+ }));
64
+ const l = (b = (await pe({
65
+ key: {
66
+ parentTable: E,
67
+ systemKey: sessionStorage.getItem("systemKey"),
68
+ pageKey: r.name,
69
+ type: "method"
70
+ }
71
+ })).data.result) == null ? void 0 : b.map(async (i) => await ye({
72
+ id: i.id,
73
+ key: {
74
+ systemKey: i.key.systemKey,
75
+ pageKey: i.key.pageKey,
76
+ type: i.key.type,
77
+ methodKey: i.key.methodKey,
78
+ parentTable: f.data.result
79
+ }
80
+ }));
81
+ return s.push(l), f;
82
+ }));
83
+ s.push(S), s.push(R);
84
+ }
85
+ });
86
+ });
87
+ });
88
+ });
89
+ }), await Promise.all(s);
90
+ }, Da = Ee(), Ce = (e) => e == null ? void 0 : e.map((s) => (s.contents && (s.contents = s.contents.filter((r) => {
91
+ var a;
92
+ return ((a = r.comp) == null ? void 0 : a.toUpperCase()) !== "CALCULATOR";
93
+ })), s.compData && (s.compData = Ce(s.compData)), s)), ve = async (e) => {
94
+ var s, r, a, c, t, n, u, o, g, p, h, T, k, O, v, D, d, F, w, G, H, Y, S;
95
+ if ((e == null ? void 0 : e.length) === 0) {
96
+ const P = await pe({
97
+ key: {
98
+ systemKey: sessionStorage.getItem("systemKey"),
99
+ layer: "superAdmin"
100
+ }
101
+ });
102
+ if (((s = P == null ? void 0 : P.data) == null ? void 0 : s.code) === 200 && (c = (a = (r = P == null ? void 0 : P.data) == null ? void 0 : r.result) == null ? void 0 : a[0]) != null && c.id) {
103
+ const R = (n = (t = P == null ? void 0 : P.data) == null ? void 0 : t.result) == null ? void 0 : n[0], E = (g = (o = (u = P == null ? void 0 : P.data) == null ? void 0 : u.result) == null ? void 0 : o[0]) == null ? void 0 : g.key;
104
+ E.systemType = "管理系统", await ye({
105
+ id: R == null ? void 0 : R.id,
106
+ key: E
107
+ });
108
+ }
109
+ return;
110
+ }
111
+ try {
112
+ const P = await pe({
113
+ key: {
114
+ systemKey: sessionStorage.getItem("systemKey"),
115
+ layer: "superAdmin"
116
+ }
117
+ });
118
+ if (((p = P == null ? void 0 : P.data) == null ? void 0 : p.code) === 200 && (k = (T = (h = P == null ? void 0 : P.data) == null ? void 0 : h.result) == null ? void 0 : T[0]) != null && k.id) {
119
+ const R = (v = (O = P == null ? void 0 : P.data) == null ? void 0 : O.result) == null ? void 0 : v[0], E = (F = (d = (D = P == null ? void 0 : P.data) == null ? void 0 : D.result) == null ? void 0 : d[0]) == null ? void 0 : F.key, f = (w = C(e)) == null ? void 0 : w.map((M) => {
120
+ var l;
121
+ return (l = M.compData) == null ? void 0 : l[0];
122
+ });
123
+ E.systemType = (H = (G = f == null ? void 0 : f.find((M) => (M == null ? void 0 : M.key) === "type")) == null ? void 0 : G.contents) == null ? void 0 : H[0], E.name = (S = (Y = f == null ? void 0 : f.find((M) => (M == null ? void 0 : M.key) === "name")) == null ? void 0 : Y.contents) == null ? void 0 : S[0], await ye({
124
+ id: R == null ? void 0 : R.id,
125
+ key: E
126
+ });
127
+ }
128
+ } catch (P) {
129
+ return Promise.reject(P);
130
+ }
131
+ }, qe = (e) => e == null ? void 0 : e.map((s) => (s.contents && (s.contents = s.contents.filter((r) => {
132
+ var a;
133
+ return ((a = r.comp) == null ? void 0 : a.toUpperCase()) === "CALCULATOR";
134
+ })), s.compData && (s.compData = qe(s.compData)), s)), Je = (e) => {
135
+ const s = qe(e);
136
+ let r = [];
137
+ return s == null || s.forEach((a) => {
138
+ var c;
139
+ (c = a.compData) != null && c.find((t) => {
140
+ var n;
141
+ return (n = t == null ? void 0 : t.contents) == null ? void 0 : n.find((u) => (u == null ? void 0 : u.comp) === "calculator");
142
+ }) && r.push(a);
143
+ }), r;
144
+ }, je = async (e) => {
145
+ var s, r, a, c;
146
+ try {
147
+ const t = await oe({
148
+ key: {
149
+ systemKey: sessionStorage.getItem("systemKey"),
150
+ pageKey: "menu",
151
+ type: "structure"
152
+ },
153
+ value: {
154
+ pageData: e
155
+ }
156
+ });
157
+ if (((s = t == null ? void 0 : t.data) == null ? void 0 : s.code) === 200) {
158
+ const n = (a = (r = e == null ? void 0 : e.compData) == null ? void 0 : r[0]) == null ? void 0 : a.contents;
159
+ Da.setRawMenus(n ?? []);
160
+ }
161
+ return (c = t == null ? void 0 : t.data) == null ? void 0 : c.code;
162
+ } catch (t) {
163
+ return Promise.reject(t);
164
+ }
165
+ }, Fe = async () => {
166
+ var e;
167
+ try {
168
+ const s = ta(), r = await oe({
169
+ key: {
170
+ systemKey: sessionStorage.getItem("systemKey"),
171
+ pageKey: "secret",
172
+ type: "system"
173
+ },
174
+ value: {
175
+ cryptoInfo: {
176
+ publicKey: s.publicKey,
177
+ privateKey: s.privateKey
178
+ }
179
+ }
180
+ });
181
+ return ((e = r == null ? void 0 : r.data) == null ? void 0 : e.code) === 200;
182
+ } catch (s) {
183
+ throw s;
184
+ }
185
+ }, rs = async (e) => {
186
+ var c, t, n, u, o, g;
187
+ let s = C(e);
188
+ s = [...s, na, ua, oa, pa];
189
+ const { menuExist: r, structureExist: a } = await He();
190
+ if (sessionStorage.getItem("systemKey") && !r && !a) {
191
+ const p = (c = Ce(s)) == null ? void 0 : c.filter((k) => {
192
+ var O, v, D;
193
+ return ((O = k == null ? void 0 : k.comp) == null ? void 0 : O.toUpperCase()) !== "MENU" && ((v = k == null ? void 0 : k.comp) == null ? void 0 : v.toUpperCase()) !== "MENUTOP" && ((D = k == null ? void 0 : k.comp) == null ? void 0 : D.toUpperCase()) !== "SYSTEM";
194
+ }), h = s == null ? void 0 : s.find((k) => k.comp === "Menu"), T = s == null ? void 0 : s.filter((k) => k.comp === "System");
195
+ await je(h), await ve(T), Fe(), await Ne(p), await Re((t = Je(C(e))) == null ? void 0 : t.filter((k) => {
196
+ var O;
197
+ return ((O = k == null ? void 0 : k.comp) == null ? void 0 : O.toUpperCase()) !== "MENU";
198
+ }));
199
+ } else {
200
+ const h = (u = (n = (await pe({
201
+ key: {
202
+ systemKey: sessionStorage.getItem("systemKey")
203
+ }
204
+ })).data.result) == null ? void 0 : n.filter((D) => {
205
+ var d;
206
+ return ((d = D == null ? void 0 : D.key) == null ? void 0 : d.layer) !== "superAdmin";
207
+ })) == null ? void 0 : u.map((D) => D.id), T = h == null ? void 0 : h.map(async (D) => await _e({
208
+ id: D
209
+ }));
210
+ await Promise.all(T);
211
+ const k = (o = Ce(s)) == null ? void 0 : o.filter((D) => {
212
+ var d, F, w;
213
+ return ((d = D == null ? void 0 : D.comp) == null ? void 0 : d.toUpperCase()) !== "MENU" && ((F = D == null ? void 0 : D.comp) == null ? void 0 : F.toUpperCase()) !== "MENUTOP" && ((w = D == null ? void 0 : D.comp) == null ? void 0 : w.toUpperCase()) !== "SYSTEM";
214
+ }), O = s == null ? void 0 : s.find((D) => D.comp === "Menu"), v = s == null ? void 0 : s.filter((D) => D.comp === "System");
215
+ await je(O), await ve(v), Fe(), await Ne(k), await Re((g = Je(C(e))) == null ? void 0 : g.filter((D) => {
216
+ var d;
217
+ return ((d = D == null ? void 0 : D.comp) == null ? void 0 : d.toUpperCase()) !== "MENU";
218
+ }));
219
+ }
220
+ }, $e = m(0), ce = (e) => {
221
+ const s = [];
222
+ let r = 0, a = "";
223
+ for (; r < e.length; ) {
224
+ const c = e[r];
225
+ a = a + c, a[a.length - 1] === "]" && a[a.length - 2] === "}" && (s.push(a), a = ""), r++;
226
+ }
227
+ return s;
228
+ }, Se = (e) => {
229
+ const s = [];
230
+ let r = 0, a = "";
231
+ for (; r < e.length; ) {
232
+ const c = e[r];
233
+ a = a + c, a[a.length - 4] === "]" && a[a.length - 3] === "]" && a[a.length - 2] === "," && a[a.length - 1] === "[" ? (s.push(a), a = "") : r === e.length - 1 && s.push(a), r++;
234
+ }
235
+ return s;
236
+ }, Ca = (e) => {
237
+ const s = [];
238
+ let r = 0, a = "";
239
+ for (; r < e.length; ) {
240
+ const c = e[r];
241
+ a = a + c, a[a.length - 3] === "]" && a[a.length - 2] === ":" && a[a.length - 1] === "[" ? (s.push(a), a = "") : r === e.length - 1 && s.push(a), r++;
242
+ }
243
+ return s;
244
+ }, xe = (e) => {
245
+ const s = [];
246
+ let r = 0, a = "";
247
+ for (; r < e.length; ) {
248
+ const c = e[r];
249
+ a = a + c, a[a.length - 3] === "]" && a[a.length - 2] === "," && a[a.length - 1] === "[" ? (s.push(a), a = "") : r === e.length - 1 && s.push(a), r++;
250
+ }
251
+ return s;
252
+ }, Ea = (e) => {
253
+ const s = [];
254
+ let r = 0, a = "";
255
+ for (; r < e.length; ) {
256
+ const c = e[r];
257
+ a = a + c, a[a.length - 2] === "," && a[a.length - 1] === "{" ? (s.push(a), a = "") : r === e.length - 1 && s.push(a), r++;
258
+ }
259
+ return s;
260
+ }, Ma = (e) => {
261
+ const s = [];
262
+ let r = 0, a = "";
263
+ for (; r < e.length; ) {
264
+ const c = e[r];
265
+ a = a + c, a[a.length] !== "[" && a[a.length - 1] === "," && a[a.length - 2] === "]" && a[a.length - 3] === "}" && a[a.length - 4] === "]" ? (s.push(a), a = "") : r === e.length - 1 && s.push(a), r++;
266
+ }
267
+ return s;
268
+ }, da = (e) => {
269
+ let s = "";
270
+ return e == null || e.forEach((r, a) => {
271
+ a !== 0 && (s = s + r);
272
+ }), s;
273
+ }, Ka = (e) => (e == null ? void 0 : e.map((r) => {
274
+ var a, c;
275
+ return ((a = De(r)) == null ? void 0 : a.length) !== 0 || ((c = De(r.slice(1, r.length))) == null ? void 0 : c.length) !== 0;
276
+ })).every((r) => r === !0), we = (e) => {
277
+ var n, u, o, g, p, h, T, k, O, v, D, d, F, w, G, H, Y, S, P, R, E, f;
278
+ const s = C(e).slice(1, e.length - 1), r = (n = C(s).split(":")) == null ? void 0 : n[0];
279
+ let a = "{" + ((u = s.replace("{", "$R").split("$R")) == null ? void 0 : u[1]), c = a.slice(1, (a == null ? void 0 : a.length) - 1);
280
+ const t = Ca(C(c));
281
+ if ((t == null ? void 0 : t.length) === 2) {
282
+ let M = (g = C(t)) == null ? void 0 : g[0].slice(0, ((o = C(t)) == null ? void 0 : o[0].length) - 2), l = "[" + ((p = C(t)) == null ? void 0 : p[1]);
283
+ if (M.includes("(")) {
284
+ let y = M == null ? void 0 : M.slice(1, (M == null ? void 0 : M.length) - 1);
285
+ if (y != null && y.includes("{")) {
286
+ let b = "";
287
+ (F = (d = (D = (v = (O = (k = (T = (h = C(y)) == null ? void 0 : h.split("(")) == null ? void 0 : T[1]) == null ? void 0 : k.split(")")) == null ? void 0 : O[0]) == null ? void 0 : v.replaceAll("{", "")) == null ? void 0 : D.replaceAll("}", "")) == null ? void 0 : d.split(":")) == null || F.forEach((A) => {
288
+ b = b === "" ? b + A.replaceAll("'", "") : b + "/" + A.replaceAll("'", "");
289
+ });
290
+ let i = b + "[" + ((w = y == null ? void 0 : y.split("[")) == null ? void 0 : w[1]);
291
+ if (W(l == null ? void 0 : l.replaceAll("'", '"')))
292
+ return {
293
+ groupName: r == null ? void 0 : r.slice(1, (r == null ? void 0 : r.length) - 1),
294
+ tableColumn: [],
295
+ tableContents: JSON.parse(l == null ? void 0 : l.replaceAll("'", '"')),
296
+ tableColumnPath: i
297
+ };
298
+ } else {
299
+ let b = [];
300
+ if ((G = y == null ? void 0 : y.split(",")) == null || G.forEach((i) => {
301
+ var A, K, J, N, U, L, _, $;
302
+ if (!(i != null && i.includes("(")))
303
+ b.push(i.slice(1, (i == null ? void 0 : i.length) - 1));
304
+ else {
305
+ let x = "", q = (K = (A = C(i)) == null ? void 0 : A.split(":")) == null ? void 0 : K[1], z = q.slice(1, (q == null ? void 0 : q.length) - 2), j = "";
306
+ ($ = (_ = (L = (U = (N = (J = C(i)) == null ? void 0 : J.split("(")) == null ? void 0 : N[1]) == null ? void 0 : U.split(")")) == null ? void 0 : L[0]) == null ? void 0 : _.split(":")) == null || $.forEach((I) => {
307
+ j = j === "" ? j + I.replaceAll("'", "") : j + "/" + I.replaceAll("'", "");
308
+ }), x = x + z + "[" + j + "]", b.push(x);
309
+ }
310
+ }), W(l == null ? void 0 : l.replaceAll("'", '"')))
311
+ return {
312
+ groupName: r == null ? void 0 : r.slice(1, (r == null ? void 0 : r.length) - 1),
313
+ tableColumn: b,
314
+ tableContents: JSON.parse(l == null ? void 0 : l.replaceAll("'", '"'))
315
+ };
316
+ }
317
+ }
318
+ } else if (!((H = t == null ? void 0 : t[0]) != null && H.includes("[")) && !((Y = t == null ? void 0 : t[0]) != null && Y.includes("("))) {
319
+ let M = (S = t == null ? void 0 : t[0].replaceAll("'", "")) == null ? void 0 : S.split(":"), l = [
320
+ [
321
+ {
322
+ [M[0]]: M[1]
323
+ }
324
+ ]
325
+ ];
326
+ return {
327
+ groupName: r == null ? void 0 : r.slice(1, (r == null ? void 0 : r.length) - 1),
328
+ formContent: l
329
+ };
330
+ } else if (((P = Se(C(e))) == null ? void 0 : P.length) === 1) {
331
+ let M = {};
332
+ return (R = Se(C(e))) == null || R.forEach((l) => {
333
+ var K, J, N, U, L, _, $, x, q, z, j, I, le;
334
+ let y = l.slice(2, l.length - 2), b = "", i = "";
335
+ const A = (K = y.replace(":", "$R")) == null ? void 0 : K.split("$R");
336
+ (x = ($ = (_ = (L = (U = (N = (J = C(A)) == null ? void 0 : J[1]) == null ? void 0 : N.split("{")) == null ? void 0 : U[1]) == null ? void 0 : L.split("}")) == null ? void 0 : _[0]) == null ? void 0 : $.split(":")) == null || x.forEach((Z) => {
337
+ i = i === "" ? i + (Z == null ? void 0 : Z.replaceAll("'", "")) : i + "/" + (Z == null ? void 0 : Z.replaceAll("'", ""));
338
+ }), b = i + "[" + ((le = (I = (j = (z = (q = C(A)) == null ? void 0 : q[1]) == null ? void 0 : z.split("[")) == null ? void 0 : j[1]) == null ? void 0 : I.split("]")) == null ? void 0 : le[0]) + "]", M[C(A)[0].replaceAll("'", "")] = b;
339
+ }), {
340
+ groupName: "",
341
+ formContents: [[M]]
342
+ };
343
+ } else {
344
+ let M = [], l = Se(C(e));
345
+ if (M.push(l == null ? void 0 : l[0].slice(1, (l == null ? void 0 : l[0].length) - 3)), (l == null ? void 0 : l.length) === 2)
346
+ M.push("[" + (l == null ? void 0 : l[0].slice(0, (l == null ? void 0 : l[0].length) - 1)));
347
+ else {
348
+ let i = "[";
349
+ l == null || l.forEach((A, K) => {
350
+ K !== 0 ? i = i + A : K === l.length - 1 && (i = i + (A == null ? void 0 : A.slice(0, A.length - 1)));
351
+ }), M.push(i);
352
+ }
353
+ let y = [], b = (f = xe((E = C(M)) == null ? void 0 : E[0])) == null ? void 0 : f.map((i, A) => {
354
+ var K, J;
355
+ return A === 0 ? i = i.slice(1, i.length - 3) : A === ((J = xe((K = C(M)) == null ? void 0 : K[0])) == null ? void 0 : J.length) - 1 ? i = i.slice(0, i.length - 1) : i = i.slice(0, i.length - 3), i;
356
+ });
357
+ return b == null || b.forEach((i) => {
358
+ var J, N, U, L, _, $, x, q, z, j, I, le, Z, Ke, Pe;
359
+ let A = Ea(C(i)), K = [];
360
+ if ((A == null ? void 0 : A.length) === 1) {
361
+ let fe = (U = (N = A == null ? void 0 : A[0].slice(1, ((J = A == null ? void 0 : A[0]) == null ? void 0 : J.length) - 1)) == null ? void 0 : N.replace(":", "$R")) == null ? void 0 : U.split("$R");
362
+ console.log(232, fe);
363
+ let ie = {}, Te = "", te = "";
364
+ (j = (z = (q = (x = ($ = (_ = (L = C(fe)) == null ? void 0 : L[1]) == null ? void 0 : _.split("{")) == null ? void 0 : $[1]) == null ? void 0 : x.split("}")) == null ? void 0 : q[0]) == null ? void 0 : z.split(":")) == null || j.forEach((ae) => {
365
+ te = te === "" ? te + (ae == null ? void 0 : ae.replaceAll("'", "")) : te + "/" + (ae == null ? void 0 : ae.replaceAll("'", ""));
366
+ }), Te = te + "[" + ((Pe = (Ke = (Z = (le = (I = C(fe)) == null ? void 0 : I[1]) == null ? void 0 : le.split("[")) == null ? void 0 : Z[1]) == null ? void 0 : Ke.split("]")) == null ? void 0 : Pe[0]) + "]", ie[C(fe)[0].replaceAll("'", "")] = Te, K.push(ie), console.log(2321, ie);
367
+ }
368
+ y.push(K);
369
+ }), {
370
+ groupName: "",
371
+ formContents: y
372
+ };
373
+ }
374
+ }, Pa = (e, s) => {
375
+ var c;
376
+ const r = [], a = s.length;
377
+ return (c = C(s)) == null || c.forEach((t, n) => {
378
+ let u = [];
379
+ t == null || t.forEach((o) => {
380
+ var g, p, h, T, k, O, v, D, d, F, w, G, H, Y, S, P, R;
381
+ if (W(e.replaceAll("'", '"')))
382
+ (g = JSON.parse(e.replaceAll("'", '"'))) == null || g.forEach((E) => {
383
+ r.push([{
384
+ key: o == null ? void 0 : o.key,
385
+ value: (o == null ? void 0 : o.value) + "/" + E
386
+ }]);
387
+ });
388
+ else {
389
+ u.push(o);
390
+ let E;
391
+ if (Ka(ce(e)))
392
+ C(ce(e)).length === 1 ? E = C(ce(e)) : E = (p = C(ce(e))) == null ? void 0 : p.map((f) => f.slice(1, f.length)), E = E == null ? void 0 : E.map((f) => {
393
+ var i, A, K, J, N, U, L, _;
394
+ const M = C(f).slice(1, f.length - 1), l = (i = C(M).split(":")) == null ? void 0 : i[0];
395
+ let y = "{" + ((A = M.split("{")) == null ? void 0 : A[1]);
396
+ y = C(y).slice(1, y.length - 1);
397
+ let b = da(y.split(":"));
398
+ if (W(b.slice(0, b.length - 1).replaceAll("'", '"')) || W(b.replaceAll("'", '"')))
399
+ if (y != null && y.includes("[")) {
400
+ let $ = W(b.replaceAll("'", '"')) ? JSON.parse(b.replaceAll("'", '"')) : JSON.parse(b.slice(0, b.length - 1).replaceAll("'", '"'));
401
+ return {
402
+ groupName: l.slice(1, l.length - 1).includes("[") ? "" : l.slice(1, l.length - 1),
403
+ tableColumn: JSON.parse(((K = y.split(":")) == null ? void 0 : K[0]).replaceAll("'", '"')),
404
+ tableContents: $
405
+ };
406
+ } else {
407
+ let $ = (J = y == null ? void 0 : y.replace(":", "$R")) == null ? void 0 : J.split("$R");
408
+ const x = [
409
+ [
410
+ {
411
+ [$[0].replaceAll("'", "")]: ($ == null ? void 0 : $[1]).replaceAll("'", "")
412
+ }
413
+ ]
414
+ ];
415
+ return {
416
+ groupName: l.slice(1, l.length - 1).includes("[") ? "" : l.slice(1, l.length - 1),
417
+ formContents: x
418
+ };
419
+ }
420
+ else {
421
+ const $ = C(f).slice(2, f.length - 2), x = (N = $ == null ? void 0 : $.replace(":", "$S")) == null ? void 0 : N.split("$S"), q = (U = x == null ? void 0 : x[0]) == null ? void 0 : U.replaceAll("'", '"'), z = (_ = (L = x == null ? void 0 : x[1]) == null ? void 0 : L.replaceAll("'", '"')) == null ? void 0 : _.replace(/\\/g, "\\\\");
422
+ return W(q) && W(z) ? {
423
+ groupName: "",
424
+ tableColumn: JSON.parse(q),
425
+ tableContents: JSON.parse(z)
426
+ } : we(C(f));
427
+ }
428
+ }), a > 1 && E.length === 1 ? E != null && E.find((f) => {
429
+ var M;
430
+ return (f == null ? void 0 : f.formContents) && ((M = f == null ? void 0 : f.formContents) == null ? void 0 : M.length) > 0;
431
+ }) ? (u.push({
432
+ key: "groupName",
433
+ value: (h = E == null ? void 0 : E[0]) == null ? void 0 : h.groupName
434
+ }), u.push({
435
+ key: "formContent",
436
+ value: (T = E == null ? void 0 : E[0]) == null ? void 0 : T.formContents
437
+ })) : (u.push({
438
+ key: "groupName",
439
+ value: (k = E == null ? void 0 : E[0]) == null ? void 0 : k.groupName
440
+ }), u.push({
441
+ key: "tableColumn",
442
+ value: (O = E == null ? void 0 : E[0]) == null ? void 0 : O.tableColumn
443
+ }), u.push({
444
+ key: "tableContents",
445
+ value: [(D = (v = E == null ? void 0 : E[0]) == null ? void 0 : v.tableContents) == null ? void 0 : D[n]]
446
+ }), u.push({
447
+ key: "tablePath",
448
+ value: (d = E == null ? void 0 : E[0]) == null ? void 0 : d.tableColumnPath
449
+ })) : E == null || E.forEach((f) => {
450
+ var l, y, b, i, A, K, J, N;
451
+ let M;
452
+ s.length === 1 ? Array.isArray(f == null ? void 0 : f.tableContents) && (M = (l = f == null ? void 0 : f.tableContents) != null && l.every((U) => Array.isArray(U)) ? f == null ? void 0 : f.tableContents : [f == null ? void 0 : f.tableContents]) : Array.isArray((y = f == null ? void 0 : f.tableContents) == null ? void 0 : y[n]) ? M = (i = (b = f == null ? void 0 : f.tableContents) == null ? void 0 : b[n]) != null && i.every((U) => Array.isArray(U)) ? (A = f == null ? void 0 : f.tableContents) == null ? void 0 : A[n] : [(K = f == null ? void 0 : f.tableContents) == null ? void 0 : K[n]] : M = [[(J = f == null ? void 0 : f.tableContents) == null ? void 0 : J[n]]], f != null && f.formContents && ((N = f == null ? void 0 : f.formContents) == null ? void 0 : N.length) > 0 ? (u.push({
453
+ key: "groupName",
454
+ value: f == null ? void 0 : f.groupName
455
+ }), u.push({
456
+ key: "formContent",
457
+ value: f == null ? void 0 : f.formContents
458
+ })) : (u.push({
459
+ key: "groupName",
460
+ value: f == null ? void 0 : f.groupName
461
+ }), u.push({
462
+ key: "tableColumn",
463
+ value: f == null ? void 0 : f.tableColumn
464
+ }), u.push({
465
+ key: "tableContents",
466
+ value: M
467
+ }), u.push({
468
+ key: "tablePath",
469
+ value: f == null ? void 0 : f.tableColumnPath
470
+ }));
471
+ });
472
+ else {
473
+ const f = e == null ? void 0 : e.slice(1, e.length - 1), M = (w = (F = C(f)) == null ? void 0 : F.split(":")) == null ? void 0 : w[0], l = (S = (Y = (H = (G = C(f)) == null ? void 0 : G.replace(":", "$R")) == null ? void 0 : H.split("$R")) == null ? void 0 : Y[1]) == null ? void 0 : S.replaceAll("'", '"');
474
+ W(l == null ? void 0 : l.slice(1, l.length - 1)) ? (u.push({
475
+ key: "groupName",
476
+ value: M == null ? void 0 : M.slice(1, M.length - 1)
477
+ }), u.push({
478
+ key: "formContent",
479
+ value: (P = JSON.parse(l == null ? void 0 : l.slice(1, l.length - 1))) == null ? void 0 : P[n]
480
+ })) : (R = Ma(f)) == null || R.forEach((y) => {
481
+ var K, J, N, U, L, _, $, x, q, z;
482
+ const b = y.slice(1, y.length - 2), i = (J = (K = C(b)) == null ? void 0 : K.split(":")) == null ? void 0 : J[0], A = (_ = (L = (U = (N = C(b)) == null ? void 0 : N.replace(":", "$R")) == null ? void 0 : U.split("$R")) == null ? void 0 : L[1]) == null ? void 0 : _.replaceAll("'", '"');
483
+ if (W(A == null ? void 0 : A.slice(1, A.length - 1)))
484
+ u.push({
485
+ key: "groupName",
486
+ value: i == null ? void 0 : i.slice(1, i.length - 1)
487
+ }), Array.isArray(($ = JSON.parse(A == null ? void 0 : A.slice(1, A.length - 1))) == null ? void 0 : $[n]) ? u.push({
488
+ key: "formContent",
489
+ value: (x = JSON.parse(A == null ? void 0 : A.slice(1, A.length - 1))) == null ? void 0 : x[n]
490
+ }) : u.push({
491
+ key: "formContent",
492
+ value: [JSON.parse(A == null ? void 0 : A.slice(1, A.length - 1))]
493
+ });
494
+ else if (W(A == null ? void 0 : A.slice(1, A.length)))
495
+ u.push({
496
+ key: "groupName",
497
+ value: i == null ? void 0 : i.slice(1, i.length - 1)
498
+ }), u.push({
499
+ key: "formContent",
500
+ value: (q = JSON.parse(A == null ? void 0 : A.slice(1, A.length))) == null ? void 0 : q[n]
501
+ });
502
+ else {
503
+ let j = we(C(y));
504
+ j != null && j.formContent && ((z = j == null ? void 0 : j.formContent) == null ? void 0 : z.length) > 0 && (u.push({
505
+ key: "groupName",
506
+ value: j == null ? void 0 : j.groupName
507
+ }), u.push({
508
+ key: "formContent",
509
+ value: j == null ? void 0 : j.formContent
510
+ }));
511
+ }
512
+ });
513
+ }
514
+ r.push(u);
515
+ }
516
+ });
517
+ }), r;
518
+ }, de = (e) => {
519
+ const s = [];
520
+ let r = !1;
521
+ return e.forEach((a) => {
522
+ Array.isArray(a) && (r = !0, a.forEach((c) => {
523
+ const t = e.map((n) => n === a ? c : n);
524
+ s.push(...de(t));
525
+ }));
526
+ }), r ? s : [e];
527
+ }, Ta = (e) => {
528
+ var c, t;
529
+ const s = (c = e.map((n) => {
530
+ var o, g;
531
+ let u = (g = (o = n.key.split("(")) == null ? void 0 : o[1]) == null ? void 0 : g.trim();
532
+ return u == null ? void 0 : u.slice(0, u.length - 1);
533
+ })) == null ? void 0 : c.filter((n) => n), r = [];
534
+ s == null || s.forEach((n) => {
535
+ var g;
536
+ const u = C(n).replaceAll("{", "").replaceAll("}", "").trim();
537
+ let o = [];
538
+ u.split(":").forEach((p) => {
539
+ var h;
540
+ if (p.includes("[")) {
541
+ const T = (h = p.slice(1, p.length - 1)) == null ? void 0 : h.split(",");
542
+ o.push(T);
543
+ } else
544
+ o.push(p);
545
+ }), (g = de(o)) == null || g.forEach((p) => {
546
+ r.push(p);
547
+ });
548
+ });
549
+ const a = (t = r == null ? void 0 : r.filter((n) => n.length !== 0)) == null ? void 0 : t.map((n) => {
550
+ let u = "";
551
+ return n.forEach((o) => {
552
+ o.includes("{") || (u = u === "" ? u + C(o) : u + "/" + C(o));
553
+ }), u;
554
+ });
555
+ return ca([...new Set(a)]);
556
+ }, Na = (e) => {
557
+ var n, u;
558
+ if (!e) return;
559
+ let s = [];
560
+ const r = ya(e), a = C(r).replaceAll("{", "").replaceAll("}", "").trim();
561
+ let c = [];
562
+ return a.split(":").forEach((o) => {
563
+ var g;
564
+ if (o.includes("[")) {
565
+ const p = (g = o.slice(1, o.length - 1)) == null ? void 0 : g.split(",");
566
+ c.push(p);
567
+ } else
568
+ c.push(o);
569
+ }), (n = de(c)) == null || n.forEach((o) => {
570
+ s.push(o);
571
+ }), (u = s == null ? void 0 : s.filter((o) => o.length !== 0)) == null ? void 0 : u.map((o) => {
572
+ let g = "";
573
+ return o.forEach((p) => {
574
+ p.includes("{") || (g = g === "" ? g + C(p) : g + "/" + C(p));
575
+ }), g;
576
+ });
577
+ }, Oa = (e) => ({
578
+ comp: "MenuTop",
579
+ compData: [
580
+ {
581
+ key: "menuContents",
582
+ contents: JSON.parse(e == null ? void 0 : e.value.trim().replaceAll("'", '"'))
583
+ }
584
+ ],
585
+ name: ""
586
+ }), Ua = (e) => {
587
+ const s = [], r = Na(e == null ? void 0 : e.key);
588
+ return r && (r == null ? void 0 : r.length) > 0 && (r == null || r.forEach((c) => {
589
+ s.push([{
590
+ key: "contentPath",
591
+ value: c
592
+ }]);
593
+ })), Pa(e == null ? void 0 : e.value, s);
594
+ }, Ra = (e) => {
595
+ const s = [];
596
+ let r = [];
597
+ return e == null || e.forEach((a, c) => {
598
+ var t;
599
+ (r == null ? void 0 : r.length) === 0 ? r.push(a) : (r.push(a), ((t = e[c + 1]) == null ? void 0 : t.key) === "groupName" && (s.push(r), r = []));
600
+ }), s.push(r), s;
601
+ }, va = (e) => {
602
+ var r;
603
+ return (r = C(e)) == null ? void 0 : r.map((a) => {
604
+ var n, u;
605
+ let c = [];
606
+ return (n = Ra(a == null ? void 0 : a.filter((o) => (o == null ? void 0 : o.key) !== "contentPath"))) == null || n.forEach((o) => {
607
+ var h, T, k, O, v, D, d, F, w, G, H, Y;
608
+ let g = [];
609
+ if (o.length === 0)
610
+ return;
611
+ let p = Array.isArray((h = o.find((S) => (S == null ? void 0 : S.key) === "tableColumn")) == null ? void 0 : h.value) ? (k = (T = o.find((S) => (S == null ? void 0 : S.key) === "tableColumn")) == null ? void 0 : T.value) == null ? void 0 : k.map((S) => ({
612
+ label: S
613
+ })) : [(O = o.find((S) => (S == null ? void 0 : S.key) === "tableColumn")) == null ? void 0 : O.value].map((S) => ({
614
+ label: S
615
+ }));
616
+ if ((v = o == null ? void 0 : o.find((S) => (S == null ? void 0 : S.key) === "tablePath")) != null && v.value && p.push({
617
+ columnPath: (D = o == null ? void 0 : o.find((S) => (S == null ? void 0 : S.key) === "tablePath")) == null ? void 0 : D.value
618
+ }), p = p == null ? void 0 : p.map((S) => {
619
+ var P, R, E, f, M, l, y, b;
620
+ return S != null && S.label && !((P = S == null ? void 0 : S.label) != null && P.includes("[")) ? S : {
621
+ label: (E = (R = C(S == null ? void 0 : S.label)) == null ? void 0 : R.split("[")) == null ? void 0 : E[0],
622
+ formMenuSelect: (b = (y = (l = (M = (f = C(S == null ? void 0 : S.label)) == null ? void 0 : f.split("[")) == null ? void 0 : M[1]) == null ? void 0 : l.split("]")) == null ? void 0 : y[0]) == null ? void 0 : b.split("/"),
623
+ columnPath: S == null ? void 0 : S.columnPath
624
+ };
625
+ }), p = p == null ? void 0 : p.filter((S) => (S == null ? void 0 : S.label) !== void 0 || (S == null ? void 0 : S.columnPath) !== void 0), p.length !== 0 && p.push({
626
+ label: "操作"
627
+ }), o != null && o.find((S) => (S == null ? void 0 : S.key) === "formContent")) {
628
+ const S = (d = o.find((R) => (R == null ? void 0 : R.key) === "formContent")) == null ? void 0 : d.value;
629
+ let P = [];
630
+ Array.isArray(S) && S.forEach((R) => {
631
+ R.forEach((E) => {
632
+ var f, M;
633
+ $e.value++, P.push({
634
+ id: $e.value,
635
+ key: (f = Object.keys(E)) == null ? void 0 : f[0],
636
+ value: (M = Object.values(E)) == null ? void 0 : M[0],
637
+ width: R.length
638
+ });
639
+ });
640
+ }), g.push({
641
+ key: "formFlex",
642
+ contents: ""
643
+ }), g.push({
644
+ key: "formContent",
645
+ contents: P
646
+ }), c.push({
647
+ comp: "Form",
648
+ compData: C(g),
649
+ name: (w = (F = o.find((R) => (R == null ? void 0 : R.key) === "groupName")) == null ? void 0 : F.value) == null ? void 0 : w.replaceAll("'", "")
650
+ });
651
+ }
652
+ p.length !== 0 && (g.push({
653
+ key: "header",
654
+ contents: p
655
+ }), g.push({
656
+ key: "tableContents",
657
+ contents: (G = o.find((S) => (S == null ? void 0 : S.key) === "tableContents")) == null ? void 0 : G.value
658
+ }), g.push({
659
+ key: "extraButton",
660
+ contents: [{ label: "新增" }]
661
+ }), g.push({
662
+ key: "rowButton",
663
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
664
+ }), c.push({
665
+ comp: "Table",
666
+ compData: g,
667
+ name: (Y = (H = o.find((S) => (S == null ? void 0 : S.key) === "groupName")) == null ? void 0 : H.value) == null ? void 0 : Y.replaceAll("'", "")
668
+ }));
669
+ }), {
670
+ comp: "Group",
671
+ compData: [{
672
+ key: "groupContents",
673
+ contents: c
674
+ }],
675
+ name: (u = a == null ? void 0 : a.find((o) => (o == null ? void 0 : o.key) === "contentPath")) == null ? void 0 : u.value
676
+ };
677
+ });
678
+ }, Ja = (e) => {
679
+ var c;
680
+ let s = [];
681
+ s.push({
682
+ comp: "Menu",
683
+ compData: [{
684
+ contents: Ta(C(e)),
685
+ key: "menuContents"
686
+ }],
687
+ name: ""
688
+ }), e != null && e.find((t) => {
689
+ var n;
690
+ return !((n = t == null ? void 0 : t.key) != null && n.includes("("));
691
+ }) && ((c = e == null ? void 0 : e.filter((t) => {
692
+ var n;
693
+ return !((n = t == null ? void 0 : t.key) != null && n.includes("("));
694
+ })) == null || c.forEach((t) => {
695
+ var n, u;
696
+ W(t.value.replaceAll("'", '"')) && Array.isArray(JSON.parse(t.value.replaceAll("'", '"'))) && ((n = JSON.parse(t.value.replaceAll("'", '"'))) != null && n.every((o) => typeof o == "string")) ? s.push(Oa(t)) : (u = JSON.parse(t.value.replaceAll("'", '"'))) == null || u.forEach((o) => {
697
+ var g, p, h, T;
698
+ ((g = Object.keys(o)) == null ? void 0 : g[0]) === "类型" ? s.push({
699
+ comp: "System",
700
+ compData: [
701
+ {
702
+ key: "type",
703
+ contents: [(p = Object.values(o)) == null ? void 0 : p[0]]
704
+ }
705
+ ]
706
+ }) : ((h = Object.keys(o)) == null ? void 0 : h[0]) === "名称" && s.push({
707
+ comp: "System",
708
+ compData: [
709
+ {
710
+ key: "name",
711
+ contents: [(T = Object.values(o)) == null ? void 0 : T[0]]
712
+ }
713
+ ]
714
+ });
715
+ });
716
+ }));
717
+ const r = e == null ? void 0 : e.filter((t) => {
718
+ var n;
719
+ return (n = t == null ? void 0 : t.key) == null ? void 0 : n.includes("(");
720
+ }).map((t) => Ua(t)).filter((t) => (t == null ? void 0 : t.length) !== 0);
721
+ let a = [];
722
+ return r == null || r.forEach((t) => {
723
+ t == null || t.forEach((n) => {
724
+ a != null && a.find((u) => {
725
+ var o, g;
726
+ return ((o = u == null ? void 0 : u.find((p) => (p == null ? void 0 : p.key) === "contentPath")) == null ? void 0 : o.value) === ((g = n == null ? void 0 : n.find((p) => (p == null ? void 0 : p.key) === "contentPath")) == null ? void 0 : g.value);
727
+ }) ? a = a == null ? void 0 : a.map((u) => {
728
+ var g, p;
729
+ return ((g = u == null ? void 0 : u.find((h) => (h == null ? void 0 : h.key) === "contentPath")) == null ? void 0 : g.value) === ((p = n == null ? void 0 : n.find((h) => (h == null ? void 0 : h.key) === "contentPath")) == null ? void 0 : p.value) && (u = [...u, ...n.filter((h) => (h == null ? void 0 : h.key) !== "contentPath")]), u;
730
+ }) : a.push(n);
731
+ });
732
+ }), s = [...s, ...va(a)], s;
733
+ }, ls = (e) => {
734
+ var c, t, n, u, o;
735
+ const s = (n = De((t = (c = C(e)) == null ? void 0 : c.replace("(", "(")) == null ? void 0 : t.replace(")", ")"))) == null ? void 0 : n.filter((g) => g !== ""), r = (o = (u = C(s)) == null ? void 0 : u.filter((g) => !g.includes("/*"))) == null ? void 0 : o.map((g) => fa(g));
736
+ return Ja(r);
737
+ }, ja = Ye(), { loginUserInfo: Be, cryptoInfo: se } = re(ja), B = me(Me), { itemData: Fa, curStructureCompIds: Le, isSubmitCurStructure: $a, isRefreshCurStructure: xa } = re(B), ze = Ee(Me), { activeMenuPath: X, buttonTriggerType: wa, cacheStructures: Ba } = re(ze), Q = ea(Me), { selectTitle: ee } = re(Q), ts = () => {
738
+ B.setIsEdit("edit"), B.setSubmitCurStructure(X.value !== "/平台管理/菜单管理");
739
+ }, ns = () => {
740
+ B.setIsEdit("view"), B.setRefreshCurStructure(!0);
741
+ }, us = async (e) => {
742
+ var s;
743
+ if ((e == null ? void 0 : e.key) === "main" || ee.value.length === 1)
744
+ V.value = await ge(X.value, sessionStorage.getItem("systemKey")), Q.setSelectIndex(""), Q.setSelectMenu(""), Q.setSelectTitle([]);
745
+ else {
746
+ const r = [], a = (e == null ? void 0 : e.key) === "" || !(e != null && e.key) ? "" : parseInt(e == null ? void 0 : e.key);
747
+ V.value = await ge(X.value, sessionStorage.getItem("systemKey"), a);
748
+ let c = -1;
749
+ (s = ee.value) == null || s.forEach((t, n) => {
750
+ (t == null ? void 0 : t.key) === (e == null ? void 0 : e.key) && (c = n), (c === -1 || c >= n) && r.push(t);
751
+ }), Q.setSelectTitle(r), a !== "" ? Q.setSelectMenu(e == null ? void 0 : e.key) : (Q.setSelectIndex(""), Q.setSelectMenu(""));
752
+ }
753
+ B.setItemData(V.value), B.setOriginalData(V.value);
754
+ }, be = async (e, s, r, a = "contentConfig") => {
755
+ var c, t, n;
756
+ try {
757
+ let u, o;
758
+ s === "create" ? (u = {
759
+ key: {
760
+ systemKey: sessionStorage.getItem("systemKey"),
761
+ pageKey: r,
762
+ type: "structure",
763
+ structureBelong: a,
764
+ parentTable: "",
765
+ version: 1
766
+ },
767
+ value: {
768
+ pageData: {
769
+ ...e,
770
+ compData: (c = e == null ? void 0 : e.compData) == null ? void 0 : c.filter((p) => (p == null ? void 0 : p.key) !== "tableContents")
771
+ }
772
+ }
773
+ }, o = oe) : s === "update" ? (u = {
774
+ id: e == null ? void 0 : e.id,
775
+ key: {
776
+ systemKey: sessionStorage.getItem("systemKey"),
777
+ pageKey: r,
778
+ type: "structure",
779
+ structureBelong: a,
780
+ parentTable: "",
781
+ version: 1
782
+ },
783
+ value: {
784
+ pageData: {
785
+ ...e,
786
+ compData: (t = e == null ? void 0 : e.compData) == null ? void 0 : t.filter((p) => (p == null ? void 0 : p.key) !== "tableContents")
787
+ }
788
+ }
789
+ }, o = ye) : s === "delete" && (u = {
790
+ id: e,
791
+ key: {
792
+ systemKey: sessionStorage.getItem("systemKey"),
793
+ pageKey: r,
794
+ type: "structure",
795
+ structureBelong: a,
796
+ parentTable: "",
797
+ version: 1
798
+ }
799
+ }, o = _e);
800
+ const g = await o(u);
801
+ if (((n = g == null ? void 0 : g.data) == null ? void 0 : n.code) === 200)
802
+ return g.data.result;
803
+ throw ne.error("保存响应失败"), new Error("保存响应失败");
804
+ } catch {
805
+ ne.error("保存响应失败");
806
+ }
807
+ }, he = m([]), os = async (e) => {
808
+ var g;
809
+ const s = JSON.parse(C(JSON.stringify(Fa.value)));
810
+ if (!$a.value)
811
+ return he.value.push({
812
+ key: wa.value,
813
+ data: s
814
+ }), ne.success("已暂存");
815
+ const r = s == null ? void 0 : s.map((p) => p.id), a = r.filter((p) => {
816
+ var h;
817
+ return !((h = Le.value) != null && h.includes(p));
818
+ }), c = (g = Le.value) == null ? void 0 : g.filter((p) => !r.includes(p)), t = [...a, ...c], n = s == null ? void 0 : s.filter((p) => !p.id), u = s == null ? void 0 : s.filter((p) => p.id);
819
+ let o = [];
820
+ t && (t == null ? void 0 : t.length) > 0 && (t == null || t.forEach((p) => {
821
+ p && o.push(be(p, "delete", e));
822
+ })), n && (n == null ? void 0 : n.length) > 0 && (n == null || n.forEach((p) => {
823
+ p && o.push(be(p, "create", e));
824
+ })), u && (u == null ? void 0 : u.length) > 0 && (u == null || u.forEach((p) => {
825
+ r != null && r.includes(p.id) && (console.log("clickSavePage5", "包含"), p && o.push(be(p, "update", e)));
826
+ })), Promise.all(o).then(() => {
827
+ ne.success("保存成功"), B.setRefreshCurStructure(!0);
828
+ }).catch((p) => {
829
+ ne.success(p);
830
+ });
831
+ };
832
+ ue(() => {
833
+ var e;
834
+ return (e = he.value) == null ? void 0 : e.length;
835
+ }, (e) => {
836
+ e && ze.setCacheStructures(he.value);
837
+ }, { immediate: !0 });
838
+ ue(() => {
839
+ var e;
840
+ return (e = Ba.value) == null ? void 0 : e.length;
841
+ }, (e) => {
842
+ e === 0 && he.value.splice(0);
843
+ }, { immediate: !0 });
844
+ const ps = (e) => ga(e), V = m([]), fs = async (e, s = "data") => {
845
+ var a, c, t, n, u, o;
846
+ if ((e == null ? void 0 : e.type) === "delete")
847
+ await sa((a = e == null ? void 0 : e.singleContent) == null ? void 0 : a.id);
848
+ else if ((e == null ? void 0 : e.buttonName) === "新增") {
849
+ let g = {};
850
+ for (let p in e == null ? void 0 : e.singleContent)
851
+ p !== "id" && p !== "index" && (g[p] = e == null ? void 0 : e.singleContent[p]);
852
+ await ra(
853
+ s,
854
+ X.value,
855
+ e == null ? void 0 : e.index,
856
+ sessionStorage.getItem("systemKey"),
857
+ Object.values(g),
858
+ e == null ? void 0 : e.column
859
+ );
860
+ } else if ((e == null ? void 0 : e.buttonName) === "编辑") {
861
+ let g = {}, p = (c = e == null ? void 0 : e.singleContent) == null ? void 0 : c.id;
862
+ for (let h in e == null ? void 0 : e.singleContent)
863
+ h !== "id" && h !== "index" && (g[h] = e == null ? void 0 : e.singleContent[h]);
864
+ await la(
865
+ s,
866
+ X.value,
867
+ e == null ? void 0 : e.index,
868
+ p,
869
+ sessionStorage.getItem("systemKey"),
870
+ Object.values(g),
871
+ e == null ? void 0 : e.column
872
+ );
873
+ }
874
+ let r = (n = (t = ee.value) == null ? void 0 : t[ee.value.length - 1]) != null && n.key ? parseInt((o = (u = ee.value) == null ? void 0 : u[ee.value.length - 1]) == null ? void 0 : o.key) : "";
875
+ V.value = await ge(X.value, sessionStorage.getItem("systemKey"), r), B.setItemData(V.value), B.setOriginalData(V.value);
876
+ }, La = async (e) => {
877
+ var r, a, c, t, n;
878
+ const s = await pe({
879
+ id: e
880
+ });
881
+ return (n = (t = (c = (a = (r = s == null ? void 0 : s.data) == null ? void 0 : r.result) == null ? void 0 : a[0]) == null ? void 0 : c.value) == null ? void 0 : t.pageData) == null ? void 0 : n.name;
882
+ }, cs = async (e) => {
883
+ var a, c;
884
+ const s = await La(e == null ? void 0 : e.index);
885
+ await aa(e == null ? void 0 : e.index, {
886
+ comp: "Form",
887
+ compData: (a = C(e == null ? void 0 : e.contents)) == null ? void 0 : a.filter((t) => t.contents),
888
+ name: s
889
+ });
890
+ const r = (c = C(V.value)) == null ? void 0 : c.map((t) => ((t == null ? void 0 : t.id) === (e == null ? void 0 : e.index) && (t.compData = e == null ? void 0 : e.contents), t));
891
+ B.setItemData(r), B.setOriginalData(r);
892
+ }, ys = (e) => {
893
+ V.value = e, B.setItemData(V.value), B.setOriginalData(V.value);
894
+ }, Ve = (e) => {
895
+ var s, r, a;
896
+ return ((r = (s = Be.value) == null ? void 0 : s.layer) == null ? void 0 : r.toUpperCase()) === "SUPERADMIN" ? !0 : ((a = Be.value) == null ? void 0 : a.account) === (e == null ? void 0 : e.account);
897
+ }, Ge = async (e, s, r) => {
898
+ const a = Ue("/系统管理/角色管理"), c = Ue("/系统管理/部门管理");
899
+ return await Promise.all([a, c]).then((n) => {
900
+ var g, p;
901
+ const u = (g = n == null ? void 0 : n[0]) == null ? void 0 : g.map((h) => ({
902
+ label: h == null ? void 0 : h.roleName,
903
+ value: h == null ? void 0 : h.roleName
904
+ })), o = (p = n == null ? void 0 : n[1]) == null ? void 0 : p.map((h) => ({
905
+ label: h == null ? void 0 : h.deptName,
906
+ value: h == null ? void 0 : h.deptName
907
+ }));
908
+ return r ? e == null ? void 0 : e.map((h) => {
909
+ var T;
910
+ return {
911
+ ...h,
912
+ compData: (T = h == null ? void 0 : h.compData) == null ? void 0 : T.map((k) => {
913
+ var O, v;
914
+ return (k == null ? void 0 : k.key) === "header" ? {
915
+ ...k,
916
+ contents: (O = k == null ? void 0 : k.contents) == null ? void 0 : O.map((D) => D.prop === "userDept" ? {
917
+ ...D,
918
+ options: o
919
+ } : D.prop === "userRoles" ? {
920
+ ...D,
921
+ options: u
922
+ } : D)
923
+ } : (k == null ? void 0 : k.key) === "tableContents" ? {
924
+ ...k,
925
+ contents: (v = k == null ? void 0 : k.contents) == null ? void 0 : v.map((D) => {
926
+ var d;
927
+ return {
928
+ ...D,
929
+ password: Ve(D) ? Oe(D == null ? void 0 : D.password, (d = se == null ? void 0 : se.value) == null ? void 0 : d.privateKey) : D == null ? void 0 : D.password
930
+ };
931
+ })
932
+ } : k;
933
+ })
934
+ };
935
+ }) : e == null ? void 0 : e.map((h) => {
936
+ var T;
937
+ return {
938
+ ...h,
939
+ compData: (T = h == null ? void 0 : h.compData) == null ? void 0 : T.map((k) => {
940
+ var O, v, D;
941
+ return (k == null ? void 0 : k.key) === "rowButton" || (k == null ? void 0 : k.key) === "extraButton" ? {
942
+ ...k,
943
+ contents: (O = k == null ? void 0 : k.contents) == null ? void 0 : O.filter((d) => s == null ? void 0 : s.includes(d == null ? void 0 : d.label))
944
+ } : (k == null ? void 0 : k.key) === "header" ? {
945
+ ...k,
946
+ contents: (v = k == null ? void 0 : k.contents) == null ? void 0 : v.map((d) => d.prop === "userDept" ? {
947
+ ...d,
948
+ options: o
949
+ } : d.prop === "userRoles" ? {
950
+ ...d,
951
+ options: u
952
+ } : d)
953
+ } : (k == null ? void 0 : k.key) === "tableContents" ? {
954
+ ...k,
955
+ contents: (D = k == null ? void 0 : k.contents) == null ? void 0 : D.map((d) => {
956
+ var F;
957
+ return {
958
+ ...d,
959
+ password: Ve(d) ? Oe(d == null ? void 0 : d.password, (F = se == null ? void 0 : se.value) == null ? void 0 : F.privateKey) : d == null ? void 0 : d.password
960
+ };
961
+ })
962
+ } : k;
963
+ })
964
+ };
965
+ });
966
+ });
967
+ };
968
+ ue(
969
+ () => [X.value, xa.value],
970
+ async (e) => {
971
+ var a;
972
+ const s = e == null ? void 0 : e[0], r = e == null ? void 0 : e[1];
973
+ if (V.value = [], s || r) {
974
+ He(), sessionStorage.setItem("pageKey", X.value);
975
+ const c = await ge(s, sessionStorage.getItem("systemKey"), "", X.value);
976
+ B.setExtraContents([]);
977
+ const t = sessionStorage.getItem("authority"), n = JSON.parse(t || "");
978
+ if (Array.isArray(n)) {
979
+ const u = Array.isArray(n) && (n == null ? void 0 : n.filter((g) => g == null ? void 0 : g.includes(s))), o = u == null ? void 0 : u.map((g) => {
980
+ var p;
981
+ return ((p = g == null ? void 0 : g.split("/")) == null ? void 0 : p.pop()) || "";
982
+ });
983
+ V.value = s === "/系统管理/用户管理" ? await Ge(c, o, !1) : c == null ? void 0 : c.map((g) => {
984
+ var p;
985
+ return {
986
+ ...g,
987
+ compData: (p = g == null ? void 0 : g.compData) == null ? void 0 : p.map((h) => {
988
+ var T;
989
+ return (h == null ? void 0 : h.key) === "rowButton" || (h == null ? void 0 : h.key) === "extraButton" ? {
990
+ ...h,
991
+ contents: (T = h == null ? void 0 : h.contents) == null ? void 0 : T.filter((k) => o == null ? void 0 : o.includes(k == null ? void 0 : k.label))
992
+ } : h;
993
+ })
994
+ };
995
+ });
996
+ } else typeof n == "string" && (n == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? V.value = s === "/系统管理/用户管理" ? await Ge(c, null, !0) : c : V.value = [];
997
+ Q.setSelectTitle([]), Q.setSelectIndex(""), Q.setSelectMenu(""), B.setItemData(V.value), B.setOriginalData(V.value), B.setCurStructureCompIds((a = V.value) == null ? void 0 : a.map((u) => u == null ? void 0 : u.id)), B.setRefreshCurStructure(!1), ee.value = X.value.split("/").filter((u) => u !== "").map((u) => ({ value: u.trim() }));
998
+ }
999
+ },
1000
+ {
1001
+ immediate: !0
1002
+ }
1003
+ );
1004
+ const gs = We({
1005
+ name: "menu",
1006
+ components: {
1007
+ ssMenu: ia,
1008
+ DynamicIcon: ha
1009
+ },
1010
+ setup() {
1011
+ const e = Qe({
1012
+ mode: {
1013
+ type: String,
1014
+ default: "vertical"
1015
+ }
1016
+ }), s = m("sub-menu-more"), r = Ee(), a = m(0), c = ba(), { rawMenus: t, menuTriggerType: n, permissionSideMenus: u, platform: o } = re(r), g = Ye(), { structureData: p } = re(g), h = m([]), T = ke(() => e == null ? void 0 : e.mode), k = (l) => {
1017
+ let y = [], b = [];
1018
+ return l == null || l.forEach((i) => {
1019
+ y = O(i, b);
1020
+ }), y;
1021
+ }, O = (l, y) => {
1022
+ const b = y, i = [];
1023
+ l == null || l.forEach((K) => {
1024
+ Array.isArray(K) ? i.push({ children: O(K, []) }) : i.push({ title: K });
1025
+ });
1026
+ let A = i.reduce((K, J) => (Object.entries(J).forEach(([N, U]) => {
1027
+ K[N] === void 0 ? U != null && U.title ? K[N] = [U] : K[N] = U : (Array.isArray(K[N]) || (K[N] = [{ title: K[N] }]), U != null && U.title || Array.isArray(U) ? K[N].push(U) : K[N].push({ title: U }));
1028
+ }), K), {});
1029
+ return A = v(C(A)), b.push(A), Array.isArray(b) && (b == null ? void 0 : b.length) > 1 ? b : b == null ? void 0 : b[0];
1030
+ }, v = (l) => {
1031
+ var y, b, i;
1032
+ return Array.isArray(l == null ? void 0 : l.title) && ((y = l == null ? void 0 : l.title) == null ? void 0 : y.length) === ((i = (b = l == null ? void 0 : l.title) == null ? void 0 : b.filter((A) => A.title)) == null ? void 0 : i.length) ? l == null ? void 0 : l.title : Array.isArray(l == null ? void 0 : l.children) ? D(l) : l;
1033
+ }, D = (l) => {
1034
+ var b;
1035
+ const y = l;
1036
+ return y.children = (b = y.children) == null ? void 0 : b.map((i) => {
1037
+ var A;
1038
+ return (A = i == null ? void 0 : i.title) != null && A.children ? i == null ? void 0 : i.title : i;
1039
+ }), y;
1040
+ }, d = (l) => l == null ? void 0 : l.map((y) => y.children && y.children.length > 0 ? {
1041
+ ...y,
1042
+ children: y.level === 0 ? [] : y.children,
1043
+ childMenus: d(y.children)
1044
+ } : y), F = m(["gongjianku", "shebeiku", "fangfaku", "guocheng", "Fold", "Fold"]), w = (l, y) => l === 0 ? F.value[y] ?? "Fold" : l === 1 ? "wenjianjia" : "wenjian", G = (l, y = "", b = 0) => {
1045
+ var J;
1046
+ let i, A = C(l);
1047
+ const K = (J = p.value) == null ? void 0 : J.map((N) => {
1048
+ var U;
1049
+ return (U = N == null ? void 0 : N.key) == null ? void 0 : U.pageKey;
1050
+ });
1051
+ return Array.isArray(A) || (A = [A]), i = A == null ? void 0 : A.map((N, U) => {
1052
+ const L = y ? `${y}/${N.title}` : N.title, _ = {
1053
+ ...N,
1054
+ path: L,
1055
+ level: b,
1056
+ show: !0,
1057
+ // icon: Icon[`${level}`],
1058
+ icon: w(b, U),
1059
+ carryData: K == null ? void 0 : K.includes(L),
1060
+ // carryData: true,
1061
+ isPenultimate: !N.children
1062
+ //便于角色授权菜单那里给叶子节点添加按钮节点
1063
+ };
1064
+ return N.children && N.children.length > 0 && (_.children = G(N.children, L, b + 1)), _;
1065
+ }), i;
1066
+ }, H = ke(() => {
1067
+ let l = G(h.value);
1068
+ if (l = [...l, ...u.value], (l == null ? void 0 : l.length) === 0)
1069
+ return c.push("/"), [];
1070
+ const y = M(l, E.value);
1071
+ y.isFlag || (l = y == null ? void 0 : y.data);
1072
+ const b = d(l);
1073
+ return o.value === "client" ? (r.setMenus(b), b) : l;
1074
+ }), Y = async (l) => {
1075
+ r.setMenuTriggerType("click"), o.value === "client" && (l != null && l.childMenus) && r.setAsideMenus(l == null ? void 0 : l.childMenus), l.isRouter ? c.push(l.path) : c.push("/");
1076
+ }, S = (l) => {
1077
+ n.value === "click" ? a.value === 1 ? r.setActiveMenuPath(sessionStorage.getItem("pageKey")) : l !== s.value && r.setActiveMenuPath(l) : r.setMenuTriggerType("click"), l != null && l.startsWith("/") ? c.push(l) : c.push("/"), a.value++;
1078
+ }, P = (l) => {
1079
+ l !== s.value && r.setActiveMenuPath(l);
1080
+ }, R = (l) => {
1081
+ const y = document.documentElement;
1082
+ l == null || l.forEach((b) => {
1083
+ y.style.setProperty(b.name, b.value);
1084
+ });
1085
+ };
1086
+ Xe(() => {
1087
+ a.value = 1;
1088
+ });
1089
+ const E = ke(() => {
1090
+ const l = sessionStorage.getItem("authority");
1091
+ return l ? JSON.parse(l) : [];
1092
+ });
1093
+ ue(() => o.value, (l) => {
1094
+ l === "browser" ? R(ka) : l === "client" && (R(Aa), R(Sa));
1095
+ }, { immediate: !0 }), ue(() => t.value, (l) => {
1096
+ if (l) {
1097
+ const y = l;
1098
+ h.value = k(y);
1099
+ } else
1100
+ r.setActiveMenuPath("");
1101
+ }, {
1102
+ immediate: !0
1103
+ });
1104
+ const f = (l, y) => {
1105
+ function b(i) {
1106
+ i == null || i.forEach((A) => {
1107
+ A.show = y == null ? void 0 : y.some((K) => K == null ? void 0 : K.includes(A.path)), A.children && b(A.children);
1108
+ });
1109
+ }
1110
+ return b(l), l;
1111
+ }, M = (l, y) => {
1112
+ if (Array.isArray(y)) {
1113
+ const b = Array.from(new Set(y == null ? void 0 : y.map((i) => i.substring(0, i.lastIndexOf("/")))));
1114
+ return {
1115
+ data: f(l, b),
1116
+ isFlag: !1
1117
+ };
1118
+ } else
1119
+ return {
1120
+ isFlag: (y == null ? void 0 : y.toUpperCase()) === "SUPERADMIN"
1121
+ };
1122
+ };
1123
+ return {
1124
+ mode: T,
1125
+ renderMenuList: H,
1126
+ clickMenu: Y,
1127
+ openMenu: S,
1128
+ closeMenu: P,
1129
+ changeMenuStyle: R
1130
+ };
1131
+ }
1132
+ });
1133
+ export {
1134
+ gs as _,
1135
+ us as a,
1136
+ ts as b,
1137
+ os as c,
1138
+ ys as d,
1139
+ cs as e,
1140
+ fs as f,
1141
+ ps as g,
1142
+ ls as h,
1143
+ rs as i,
1144
+ ns as o,
1145
+ V as s
1146
+ };