ss-component-new 1.1.415 → 1.1.417

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 (97) hide show
  1. package/dist/array-CP-DB-qS.cjs +7 -0
  2. package/dist/array-CU7_6w0r.js +346 -0
  3. package/dist/{index-BSAEf__V.js → index-4pgWhRVN.js} +5 -5
  4. package/dist/{index-DjhZHYH_.cjs → index-B3AJmz_C.cjs} +1 -1
  5. package/dist/index-B8GEl5H_.cjs +87 -0
  6. package/dist/{index-BPDslvev.js → index-B8O_p-_G.js} +2 -2
  7. package/dist/{index-Dm1_86kX.js → index-BF4CXK8w.js} +3 -3
  8. package/dist/index-BMFW7H3U.cjs +1 -0
  9. package/dist/{index-BJitBJZu.cjs → index-BVTdPibL.cjs} +2 -2
  10. package/dist/{index-faxMOO3y.js → index-Bcyk637L.js} +5 -5
  11. package/dist/{index-CNQtTLfb.cjs → index-BpsdG9J0.cjs} +1 -1
  12. package/dist/{index-eSv5uzFM.js → index-Bwr24NdY.js} +354 -359
  13. package/dist/{index-DuwxEG2Y.js → index-C3T7U42Q.js} +11 -11
  14. package/dist/index-CCEkCHrk.js +1112 -0
  15. package/dist/{index-DbuzlHfh.js → index-CChV4BPy.js} +10 -10
  16. package/dist/{index-8nzu3dKT.js → index-CDLCxYbO.js} +4 -4
  17. package/dist/{index-BHxsT1eb.cjs → index-CEPaQEEW.cjs} +1 -1
  18. package/dist/{index-AzrB9NlT.js → index-CFD-iDJS.js} +4 -4
  19. package/dist/{index-VOSN3Mnh.js → index-CHub3JaO.js} +5 -5
  20. package/dist/{index-CTTEAggF.cjs → index-CIE6JLs1.cjs} +1 -1
  21. package/dist/index-CJ4l3GaJ.cjs +1 -0
  22. package/dist/{index-BxHhG5PY.js → index-CLRc75f_.js} +8 -8
  23. package/dist/{index-DrCpGMdZ.js → index-CMM_ICmU.js} +3 -3
  24. package/dist/{index-DrUjNhjW.js → index-COlD7pxM.js} +1 -1
  25. package/dist/index-CPP5Pt28.js +731 -0
  26. package/dist/{index-DoIHM98M.js → index-CSsv4KqN.js} +1 -1
  27. package/dist/{index-3dpRV7yS.cjs → index-CTu1NToC.cjs} +1 -1
  28. package/dist/{index-CdLmmvxi.cjs → index-CVMCiTTv.cjs} +1 -1
  29. package/dist/{index-BA-Qtevs.cjs → index-CZbhV1ZJ.cjs} +1 -1
  30. package/dist/{index-CilqH8oC.cjs → index-CZh-SfBL.cjs} +1 -1
  31. package/dist/{index-BimZK7wy.cjs → index-CcaDRZTq.cjs} +1 -1
  32. package/dist/{index-CA9lI4P8.js → index-CeBT1Ulw.js} +4 -4
  33. package/dist/{index-BVuLbYm9.cjs → index-CeVsvY0k.cjs} +1 -1
  34. package/dist/{index-ZUmqWSaw.cjs → index-ChcZGPnx.cjs} +1 -1
  35. package/dist/{index-CffNkMWN.cjs → index-CwIH21hM.cjs} +1 -1
  36. package/dist/{index-Dxfzna5p.cjs → index-D-RyjmUO.cjs} +1 -1
  37. package/dist/{index-B6_X9xq9.js → index-D3z4AgL1.js} +4 -4
  38. package/dist/{index-BJIMXITA.js → index-D5V1e9cO.js} +5 -5
  39. package/dist/{index-9srnYnzT.js → index-D6iU6Te6.js} +9 -9
  40. package/dist/{index-BibIA5-P.cjs → index-D88jka5v.cjs} +1 -1
  41. package/dist/{index-DHhMROzm.cjs → index-DADBCqDR.cjs} +1 -1
  42. package/dist/{index-9QTlnrEQ.cjs → index-DFb2ZrvR.cjs} +1 -1
  43. package/dist/{index-DPm-3I4S.js → index-DKCxgFUW.js} +6 -6
  44. package/dist/{index-BszUQuvL.cjs → index-DLhT_R3Q.cjs} +1 -1
  45. package/dist/{index-WPbX9sqP.cjs → index-DX66EWCT.cjs} +1 -1
  46. package/dist/{index-DMp2zGXo.js → index-Dd4IqazP.js} +7 -7
  47. package/dist/{index-DBB_scdx.cjs → index-WFdingrw.cjs} +1 -1
  48. package/dist/{index-FBp-XX6h.js → index-dGIARC7m.js} +7051 -7021
  49. package/dist/{index-BOzZXj2f.js → index-lGikBSHE.js} +7 -7
  50. package/dist/{index-BJiXsb3E.cjs → index-mGKl9i0X.cjs} +1 -1
  51. package/dist/{index-Bhg9ISur.js → index-oMbmGcaB.js} +6 -6
  52. package/dist/{index-C8jmJvXd.cjs → index-pLa33V9a.cjs} +1 -1
  53. package/dist/{index-UYsrvpRs.js → index-qs1AQKGF.js} +4 -4
  54. package/dist/index-xzoZUttH.cjs +7 -0
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-CKDefrVd.js → index.vue_vue_type_script_setup_true_lang-BEMlrqwP.js} +3 -3
  56. package/dist/{index.vue_vue_type_script_setup_true_lang-Dr6igsfU.cjs → index.vue_vue_type_script_setup_true_lang-Bk4PHjWn.cjs} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D5XW-lZk.js} +2 -2
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-x_oCFRtr.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DNfIOSKK.cjs} +1 -1
  59. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-BJ24PgNH.cjs +1 -0
  60. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DlAg03w9.js +1636 -0
  61. package/dist/index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-CNkToObt.cjs +1 -0
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CMsb25AU.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-DM39K5kZ.js} +90 -89
  63. package/dist/login-0tdy4gQs.js +75 -0
  64. package/dist/login-BEZ7u6zR.cjs +1 -0
  65. package/dist/{main-C7zpT64X.js → main-Cq1MaQxR.js} +6 -6
  66. package/dist/{main-NoOanZcQ.cjs → main-DWQfy0Jj.cjs} +1 -1
  67. package/dist/{menu-B-Z5KAh5.cjs → menu-CAtGS1Fx.cjs} +4 -4
  68. package/dist/{menu-D9x5_s9p.js → menu-D7VMU4Hp.js} +9 -6
  69. package/dist/menuIndex-BWim3TlH.js +33 -0
  70. package/dist/menuIndex-Cg6xI-jR.cjs +1 -0
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +1 -1
  73. package/dist/ss-component.js +10 -10
  74. package/dist/ss-component3.cjs +1 -1
  75. package/dist/ss-component3.js +1 -1
  76. package/dist/{threeModel-BazaxATJ.js → threeModel-CLiNKACw.js} +5 -6
  77. package/dist/{threeModel-MVkoDB-c.cjs → threeModel-CiwhTLoC.cjs} +1 -1
  78. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CBBWsMHp.cjs → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-CHtdDFOo.cjs} +1 -1
  79. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-CwNweo5U.js} +2 -2
  80. package/package.json +1 -1
  81. package/dist/array-CYOvmzeK.js +0 -1310
  82. package/dist/array-DAoy3WS9.cjs +0 -7
  83. package/dist/index-Bvr0YvSP.cjs +0 -74
  84. package/dist/index-CyOcoFxe.cjs +0 -1
  85. package/dist/index-D68A4TXc.cjs +0 -1
  86. package/dist/index-DIv5glVC.js +0 -1567
  87. package/dist/index-Dnq8JVuW.cjs +0 -7
  88. package/dist/index-TEDdJfFz.js +0 -677
  89. package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-B7CgbfdF.cjs +0 -1
  90. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-COxDD0Fj.cjs +0 -1
  91. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DDi07ZiD.js +0 -1593
  92. package/dist/login-CARNmuDg.js +0 -103
  93. package/dist/login-DsWsywlE.cjs +0 -1
  94. package/dist/obj/model.mtl +0 -42
  95. package/dist/obj/model.obj +0 -26110
  96. package/public/obj/model.mtl +0 -42
  97. package/public/obj/model.obj +0 -26110
@@ -0,0 +1,1636 @@
1
+ import { a as bs, s as Es, d as Ms, e as ws, f as Ps, g as Is } from "./index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-DM39K5kZ.js";
2
+ import { ref as ne, reactive as Ks, defineComponent as cs, h as ke, Transition as Ns, withCtx as xs, withDirectives as Ls, createVNode as js, vShow as Os, createApp as _s, toRefs as Us, nextTick as is, isRef as Rs, defineProps as Bs, computed as Re, onMounted as Ts, watch as De } from "vue";
3
+ import { c as ve, g as fe, d as Ee, e as us, u as Ge, p as Ue, s as Ae, E as de } from "./menu-D7VMU4Hp.js";
4
+ import { useRouter as $s } from "vue-router";
5
+ import { u as ps } from "./login-0tdy4gQs.js";
6
+ import { g as Cs } from "./index-qs1AQKGF.js";
7
+ import { t as Js, b as Be, c as Gs, d as ze, g as Me, u as Hs, f as zs, e as qs, h as Fs, i as Ys, I as pe } from "./index-Bcyk637L.js";
8
+ import { c as D, a as Ne, J as Ws } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D5XW-lZk.js";
9
+ import { g as Xs, d as qe } from "./crypto-BRyGpjGR.js";
10
+ import { t as Zs, g as Fe } from "./index-oMbmGcaB.js";
11
+ import { t as Qs } from "./index-D3z4AgL1.js";
12
+ import { t as Vs } from "./index-BF4CXK8w.js";
13
+ import { t as ms } from "./index-CMM_ICmU.js";
14
+ import { v as fs } from "./index-B8O_p-_G.js";
15
+ import { u as ys } from "./threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-CwNweo5U.js";
16
+ import { a as ea, b as Oe, i as sa, c as ds, g as Se, d as Ye, e as hs, h as aa } from "./index-CChV4BPy.js";
17
+ import { g as la } from "./index-Dd4IqazP.js";
18
+ import { c as ra, m as ta, g as na, b as oa, p as ca } from "./array-CU7_6w0r.js";
19
+ function ia(e, s) {
20
+ let a;
21
+ const r = ne(!1), i = Ks({
22
+ ...e,
23
+ originalPosition: "",
24
+ originalOverflow: "",
25
+ visible: !1
26
+ });
27
+ function t(c) {
28
+ i.text = c;
29
+ }
30
+ function p() {
31
+ const c = i.parent, g = h.ns;
32
+ if (!c.vLoadingAddClassList) {
33
+ let M = c.getAttribute("loading-number");
34
+ M = Number.parseInt(M) - 1, M ? c.setAttribute("loading-number", M.toString()) : (Oe(c, g.bm("parent", "relative")), c.removeAttribute("loading-number")), Oe(c, g.bm("parent", "hidden"));
35
+ }
36
+ y(), d.unmount();
37
+ }
38
+ function y() {
39
+ var c, g;
40
+ (g = (c = h.$el) == null ? void 0 : c.parentNode) == null || g.removeChild(h.$el);
41
+ }
42
+ function n() {
43
+ var c;
44
+ e.beforeClose && !e.beforeClose() || (r.value = !0, clearTimeout(a), a = setTimeout(u, 400), i.visible = !1, (c = e.closed) == null || c.call(e));
45
+ }
46
+ function u() {
47
+ if (!r.value)
48
+ return;
49
+ const c = i.parent;
50
+ r.value = !1, c.vLoadingAddClassList = void 0, p();
51
+ }
52
+ const o = cs({
53
+ name: "ElLoading",
54
+ setup(c, { expose: g }) {
55
+ const { ns: M, zIndex: b } = ea("loading");
56
+ return g({
57
+ ns: M,
58
+ zIndex: b
59
+ }), () => {
60
+ const v = i.spinner || i.svg, j = ke("svg", {
61
+ class: "circular",
62
+ viewBox: i.svgViewBox ? i.svgViewBox : "0 0 50 50",
63
+ ...v ? { innerHTML: v } : {}
64
+ }, [
65
+ ke("circle", {
66
+ class: "path",
67
+ cx: "25",
68
+ cy: "25",
69
+ r: "20",
70
+ fill: "none"
71
+ })
72
+ ]), U = i.text ? ke("p", { class: M.b("text") }, [i.text]) : void 0;
73
+ return ke(Ns, {
74
+ name: M.b("fade"),
75
+ onAfterLeave: u
76
+ }, {
77
+ default: xs(() => [
78
+ Ls(js("div", {
79
+ style: {
80
+ backgroundColor: i.background || ""
81
+ },
82
+ class: [
83
+ M.b("mask"),
84
+ i.customClass,
85
+ i.fullscreen ? "is-fullscreen" : ""
86
+ ]
87
+ }, [
88
+ ke("div", {
89
+ class: M.b("spinner")
90
+ }, [j, U])
91
+ ]), [[Os, i.visible]])
92
+ ])
93
+ });
94
+ };
95
+ }
96
+ }), d = _s(o);
97
+ Object.assign(d._context, s ?? {});
98
+ const h = d.mount(document.createElement("div"));
99
+ return {
100
+ ...Us(i),
101
+ setText: t,
102
+ removeElLoadingChild: y,
103
+ close: n,
104
+ handleAfterLeave: u,
105
+ vm: h,
106
+ get $el() {
107
+ return h.$el;
108
+ }
109
+ };
110
+ }
111
+ let xe;
112
+ const ge = function(e = {}) {
113
+ if (!sa)
114
+ return;
115
+ const s = ua(e);
116
+ if (s.fullscreen && xe)
117
+ return xe;
118
+ const a = ia({
119
+ ...s,
120
+ closed: () => {
121
+ var i;
122
+ (i = s.closed) == null || i.call(s), s.fullscreen && (xe = void 0);
123
+ }
124
+ }, ge._context);
125
+ pa(s, s.parent, a), We(s, s.parent, a), s.parent.vLoadingAddClassList = () => We(s, s.parent, a);
126
+ let r = s.parent.getAttribute("loading-number");
127
+ return r ? r = `${Number.parseInt(r) + 1}` : r = "1", s.parent.setAttribute("loading-number", r), s.parent.appendChild(a.$el), is(() => a.visible.value = s.visible), s.fullscreen && (xe = a), a;
128
+ }, ua = (e) => {
129
+ var s, a, r, i;
130
+ let t;
131
+ return ds(e.target) ? t = (s = document.querySelector(e.target)) != null ? s : document.body : t = e.target || document.body, {
132
+ parent: t === document.body || e.body ? document.body : t,
133
+ background: e.background || "",
134
+ svg: e.svg || "",
135
+ svgViewBox: e.svgViewBox || "",
136
+ spinner: e.spinner || !1,
137
+ text: e.text || "",
138
+ fullscreen: t === document.body && ((a = e.fullscreen) != null ? a : !0),
139
+ lock: (r = e.lock) != null ? r : !1,
140
+ customClass: e.customClass || "",
141
+ visible: (i = e.visible) != null ? i : !0,
142
+ beforeClose: e.beforeClose,
143
+ closed: e.closed,
144
+ target: t
145
+ };
146
+ }, pa = async (e, s, a) => {
147
+ const { nextZIndex: r } = a.vm.zIndex || a.vm._.exposed.zIndex, i = {};
148
+ if (e.fullscreen)
149
+ a.originalPosition.value = Se(document.body, "position"), a.originalOverflow.value = Se(document.body, "overflow"), i.zIndex = r();
150
+ else if (e.parent === document.body) {
151
+ a.originalPosition.value = Se(document.body, "position"), await is();
152
+ for (const t of ["top", "left"]) {
153
+ const p = t === "top" ? "scrollTop" : "scrollLeft";
154
+ i[t] = `${e.target.getBoundingClientRect()[t] + document.body[p] + document.documentElement[p] - Number.parseInt(Se(document.body, `margin-${t}`), 10)}px`;
155
+ }
156
+ for (const t of ["height", "width"])
157
+ i[t] = `${e.target.getBoundingClientRect()[t]}px`;
158
+ } else
159
+ a.originalPosition.value = Se(s, "position");
160
+ for (const [t, p] of Object.entries(i))
161
+ a.$el.style[t] = p;
162
+ }, We = (e, s, a) => {
163
+ const r = a.vm.ns || a.vm._.exposed.ns;
164
+ ["absolute", "fixed", "sticky"].includes(a.originalPosition.value) ? Oe(s, r.bm("parent", "relative")) : Ye(s, r.bm("parent", "relative")), e.fullscreen && e.lock ? Ye(s, r.bm("parent", "hidden")) : Oe(s, r.bm("parent", "hidden"));
165
+ };
166
+ ge._context = null;
167
+ const Le = Symbol("ElLoading"), Xe = (e, s) => {
168
+ var a, r, i, t;
169
+ const p = s.instance, y = (c) => hs(s.value) ? s.value[c] : void 0, n = (c) => {
170
+ const g = ds(c) && (p == null ? void 0 : p[c]) || c;
171
+ return g && ne(g);
172
+ }, u = (c) => n(y(c) || e.getAttribute(`element-loading-${aa(c)}`)), o = (a = y("fullscreen")) != null ? a : s.modifiers.fullscreen, d = {
173
+ text: u("text"),
174
+ svg: u("svg"),
175
+ svgViewBox: u("svgViewBox"),
176
+ spinner: u("spinner"),
177
+ background: u("background"),
178
+ customClass: u("customClass"),
179
+ fullscreen: o,
180
+ target: (r = y("target")) != null ? r : o ? void 0 : e,
181
+ body: (i = y("body")) != null ? i : s.modifiers.body,
182
+ lock: (t = y("lock")) != null ? t : s.modifiers.lock
183
+ }, h = ge(d);
184
+ h._context = be._context, e[Le] = {
185
+ options: d,
186
+ instance: h
187
+ };
188
+ }, fa = (e, s) => {
189
+ for (const a of Object.keys(s))
190
+ Rs(s[a]) && (s[a].value = e[a]);
191
+ }, be = {
192
+ mounted(e, s) {
193
+ s.value && Xe(e, s);
194
+ },
195
+ updated(e, s) {
196
+ const a = e[Le];
197
+ s.oldValue !== s.value && (s.value && !s.oldValue ? Xe(e, s) : s.value && s.oldValue ? hs(s.value) && fa(s.value, a.options) : a == null || a.instance.close());
198
+ },
199
+ unmounted(e) {
200
+ var s;
201
+ (s = e[Le]) == null || s.instance.close(), e[Le] = null;
202
+ }
203
+ };
204
+ be._context = null;
205
+ const ya = {
206
+ install(e) {
207
+ ge._context = e._context, be._context = e._context, e.directive("loading", be), e.config.globalProperties.$loading = ge;
208
+ },
209
+ directive: be,
210
+ service: ge
211
+ }, Ze = async (e) => {
212
+ let s = [];
213
+ e == null || e.forEach((a) => {
214
+ var r;
215
+ (r = a.compData) == null || r.forEach((i) => {
216
+ var t;
217
+ (t = i.contents) == null || t.forEach((p) => {
218
+ var n, u, o, d;
219
+ const y = (u = (n = p == null ? void 0 : p.compData) == null ? void 0 : n.find((h) => (h == null ? void 0 : h.key) === "extra")) == null ? void 0 : u.value;
220
+ (d = (o = p.compData) == null ? void 0 : o.filter((h) => (h == null ? void 0 : h.key) !== "extra")) == null || d.forEach((h) => {
221
+ var c;
222
+ (c = Js(D(h))) == null || c.forEach(async (g) => {
223
+ var M, b, v, j, U, B, G, H;
224
+ if (g.comp === "Table") {
225
+ const z = await ve({
226
+ key: {
227
+ systemKey: sessionStorage.getItem("systemKey"),
228
+ pageKey: a.name,
229
+ type: "method",
230
+ version: 1,
231
+ methodName: (v = (M = a.name) == null ? void 0 : M.split("/")) == null ? void 0 : v[((b = a.name) == null ? void 0 : b.split("/").length) - 1],
232
+ methodKey: (j = Object.values(y[0])) == null ? void 0 : j[0],
233
+ parentTable: (g == null ? void 0 : g.parentTableContents) ?? ""
234
+ },
235
+ value: {
236
+ pageData: {
237
+ comp: (U = Be(D(g))) == null ? void 0 : U.comp,
238
+ compData: (B = Be(D(g))) == null ? void 0 : B.compData,
239
+ name: (G = Be(D(g))) == null ? void 0 : G.name
240
+ }
241
+ }
242
+ }), K = z.data.result, S = await ((H = Gs(D(g))) == null ? void 0 : H.map(async (O) => {
243
+ var W, C;
244
+ let L;
245
+ O.length !== 0 && (L = await ve({
246
+ key: {
247
+ systemKey: sessionStorage.getItem("systemKey"),
248
+ pageKey: a.name,
249
+ type: "methodData",
250
+ methodKey: (W = Object.values(y[0])) == null ? void 0 : W[0],
251
+ tableId: K
252
+ },
253
+ value: {
254
+ tableData: O
255
+ }
256
+ }));
257
+ const $ = (C = (await fe({
258
+ key: {
259
+ parentTable: O,
260
+ systemKey: sessionStorage.getItem("systemKey"),
261
+ pageKey: a.name,
262
+ type: "method"
263
+ }
264
+ })).data.result) == null ? void 0 : C.map(async (P) => await Ee({
265
+ id: P.id,
266
+ key: {
267
+ systemKey: P.key.systemKey,
268
+ pageKey: P.key.pageKey,
269
+ type: P.key.type,
270
+ methodKey: P.key.methodKey,
271
+ parentTable: L.data.result
272
+ }
273
+ }));
274
+ return s.push($), L;
275
+ }));
276
+ s.push(z), s.push(S);
277
+ }
278
+ });
279
+ });
280
+ });
281
+ });
282
+ }), await Promise.all(s);
283
+ }, gs = Ge(), Je = (e) => e == null ? void 0 : e.map((s) => (s.contents && (s.contents = s.contents.filter((a) => {
284
+ var r;
285
+ return ((r = a.comp) == null ? void 0 : r.toUpperCase()) !== "CALCULATOR";
286
+ })), s.compData && (s.compData = Je(s.compData)), s)), Qe = async (e) => {
287
+ var s, a, r, i, t, p, y, n, u, o, d, h, c, g, M, b, v, j, U, B, G, H, z;
288
+ if ((e == null ? void 0 : e.length) === 0) {
289
+ const K = await fe({
290
+ key: {
291
+ systemKey: sessionStorage.getItem("systemKey"),
292
+ layer: "superAdmin"
293
+ }
294
+ });
295
+ if (((s = K == null ? void 0 : K.data) == null ? void 0 : s.code) === 200 && (i = (r = (a = K == null ? void 0 : K.data) == null ? void 0 : a.result) == null ? void 0 : r[0]) != null && i.id) {
296
+ const S = (p = (t = K == null ? void 0 : K.data) == null ? void 0 : t.result) == null ? void 0 : p[0], O = (u = (n = (y = K == null ? void 0 : K.data) == null ? void 0 : y.result) == null ? void 0 : n[0]) == null ? void 0 : u.key;
297
+ O.systemType = "管理系统", await Ee({
298
+ id: S == null ? void 0 : S.id,
299
+ key: O
300
+ });
301
+ }
302
+ return;
303
+ }
304
+ try {
305
+ const K = await fe({
306
+ key: {
307
+ systemKey: sessionStorage.getItem("systemKey"),
308
+ layer: "superAdmin"
309
+ }
310
+ });
311
+ if (((o = K == null ? void 0 : K.data) == null ? void 0 : o.code) === 200 && (c = (h = (d = K == null ? void 0 : K.data) == null ? void 0 : d.result) == null ? void 0 : h[0]) != null && c.id) {
312
+ const S = (M = (g = K == null ? void 0 : K.data) == null ? void 0 : g.result) == null ? void 0 : M[0], O = (j = (v = (b = K == null ? void 0 : K.data) == null ? void 0 : b.result) == null ? void 0 : v[0]) == null ? void 0 : j.key, L = (U = D(e)) == null ? void 0 : U.map((T) => {
313
+ var $;
314
+ return ($ = T.compData) == null ? void 0 : $[0];
315
+ });
316
+ O.systemType = (G = (B = L == null ? void 0 : L.find((T) => (T == null ? void 0 : T.key) === "type")) == null ? void 0 : B.contents) == null ? void 0 : G[0], O.name = (z = (H = L == null ? void 0 : L.find((T) => (T == null ? void 0 : T.key) === "name")) == null ? void 0 : H.contents) == null ? void 0 : z[0], await Ee({
317
+ id: S == null ? void 0 : S.id,
318
+ key: O
319
+ });
320
+ }
321
+ } catch (K) {
322
+ return Promise.reject(K);
323
+ }
324
+ }, vs = (e) => e == null ? void 0 : e.map((s) => (s.contents && (s.contents = s.contents.filter((a) => {
325
+ var r;
326
+ return ((r = a.comp) == null ? void 0 : r.toUpperCase()) === "CALCULATOR";
327
+ })), s.compData && (s.compData = vs(s.compData)), s)), Ve = (e) => {
328
+ const s = vs(e);
329
+ let a = [];
330
+ return s == null || s.forEach((r) => {
331
+ var i;
332
+ (i = r.compData) != null && i.find((t) => {
333
+ var p;
334
+ return (p = t == null ? void 0 : t.contents) == null ? void 0 : p.find((y) => (y == null ? void 0 : y.comp) === "calculator");
335
+ }) && a.push(r);
336
+ }), a;
337
+ }, me = async (e) => {
338
+ var s, a, r, i;
339
+ try {
340
+ const t = await ve({
341
+ key: {
342
+ systemKey: sessionStorage.getItem("systemKey"),
343
+ pageKey: "menu",
344
+ type: "structure"
345
+ },
346
+ value: {
347
+ pageData: e
348
+ }
349
+ });
350
+ if (((s = t == null ? void 0 : t.data) == null ? void 0 : s.code) === 200) {
351
+ const p = (r = (a = e == null ? void 0 : e.compData) == null ? void 0 : a[0]) == null ? void 0 : r.contents;
352
+ gs.setRawMenus(p ?? []);
353
+ }
354
+ return (i = t == null ? void 0 : t.data) == null ? void 0 : i.code;
355
+ } catch (t) {
356
+ return Promise.reject(t);
357
+ }
358
+ }, da = async (e, s) => {
359
+ var a, r, i, t;
360
+ try {
361
+ const p = await Ee({
362
+ id: e,
363
+ value: {
364
+ pageData: s
365
+ }
366
+ });
367
+ if (((a = p == null ? void 0 : p.data) == null ? void 0 : a.code) === 200) {
368
+ const y = (i = (r = s == null ? void 0 : s.compData) == null ? void 0 : r[0]) == null ? void 0 : i.contents;
369
+ gs.setRawMenus(y ?? []);
370
+ }
371
+ return (t = p == null ? void 0 : p.data) == null ? void 0 : t.code;
372
+ } catch (p) {
373
+ return Promise.reject(p);
374
+ }
375
+ }, es = async () => {
376
+ var e;
377
+ try {
378
+ const s = Xs(), a = await ve({
379
+ key: {
380
+ systemKey: sessionStorage.getItem("systemKey"),
381
+ pageKey: "secret",
382
+ type: "system"
383
+ },
384
+ value: {
385
+ cryptoInfo: {
386
+ publicKey: s.publicKey,
387
+ privateKey: s.privateKey
388
+ }
389
+ }
390
+ });
391
+ return ((e = a == null ? void 0 : a.data) == null ? void 0 : e.code) === 200;
392
+ } catch (s) {
393
+ throw s;
394
+ }
395
+ }, ol = async (e) => {
396
+ var i, t, p, y, n, u;
397
+ let s = D(e);
398
+ s = [...s, Zs, Qs, Vs, ms];
399
+ const { menuExist: a, structureExist: r } = await fs();
400
+ if (sessionStorage.getItem("systemKey") && !a && !r) {
401
+ const o = (i = Je(s)) == null ? void 0 : i.filter((c) => {
402
+ var g, M, b;
403
+ return ((g = c == null ? void 0 : c.comp) == null ? void 0 : g.toUpperCase()) !== "MENU" && ((M = c == null ? void 0 : c.comp) == null ? void 0 : M.toUpperCase()) !== "MENUTOP" && ((b = c == null ? void 0 : c.comp) == null ? void 0 : b.toUpperCase()) !== "SYSTEM";
404
+ }), d = s == null ? void 0 : s.find((c) => c.comp === "Menu"), h = s == null ? void 0 : s.filter((c) => c.comp === "System");
405
+ await me(d), await Qe(h), es(), await ze(o), await Ze((t = Ve(D(e))) == null ? void 0 : t.filter((c) => {
406
+ var g;
407
+ return ((g = c == null ? void 0 : c.comp) == null ? void 0 : g.toUpperCase()) !== "MENU";
408
+ }));
409
+ } else {
410
+ const d = (y = (p = (await fe({
411
+ key: {
412
+ systemKey: sessionStorage.getItem("systemKey")
413
+ }
414
+ })).data.result) == null ? void 0 : p.filter((b) => {
415
+ var v;
416
+ return ((v = b == null ? void 0 : b.key) == null ? void 0 : v.layer) !== "superAdmin";
417
+ })) == null ? void 0 : y.map((b) => b.id), h = d == null ? void 0 : d.map(async (b) => await us({
418
+ id: b
419
+ }));
420
+ await Promise.all(h);
421
+ const c = (n = Je(s)) == null ? void 0 : n.filter((b) => {
422
+ var v, j, U;
423
+ return ((v = b == null ? void 0 : b.comp) == null ? void 0 : v.toUpperCase()) !== "MENU" && ((j = b == null ? void 0 : b.comp) == null ? void 0 : j.toUpperCase()) !== "MENUTOP" && ((U = b == null ? void 0 : b.comp) == null ? void 0 : U.toUpperCase()) !== "SYSTEM";
424
+ }), g = s == null ? void 0 : s.find((b) => b.comp === "Menu"), M = s == null ? void 0 : s.filter((b) => b.comp === "System");
425
+ await me(g), await Qe(M), es(), await ze(c), await Ze((u = Ve(D(e))) == null ? void 0 : u.filter((b) => {
426
+ var v;
427
+ return ((v = b == null ? void 0 : b.comp) == null ? void 0 : v.toUpperCase()) !== "MENU";
428
+ }));
429
+ }
430
+ }, cl = cs({
431
+ name: "menu",
432
+ components: {
433
+ ssMenu: Es,
434
+ DynamicIcon: bs
435
+ },
436
+ setup() {
437
+ const e = Bs({
438
+ mode: {
439
+ type: String,
440
+ default: "vertical"
441
+ }
442
+ }), s = ne("sub-menu-more"), a = Ge(), r = ys(Ue), i = ne(0), t = $s(), {
443
+ rawMenus: p,
444
+ activeTopMenuPath: y,
445
+ isRefreshMenus: n,
446
+ menuTriggerType: u,
447
+ permissionSideMenus: o,
448
+ platform: d,
449
+ cacheInputMenu: h,
450
+ activeMainMenu: c
451
+ } = Ae(a), g = ps(), { structureData: M } = Ae(g), b = ne([]), v = ne([]), j = Re(() => e == null ? void 0 : e.mode), U = (l) => {
452
+ const f = ya.service({
453
+ lock: !0,
454
+ text: "Loading",
455
+ background: "rgba(0, 0, 0, 0.7)"
456
+ });
457
+ l || f.close();
458
+ }, B = (l) => {
459
+ let f = [], k = [];
460
+ return l == null || l.forEach((A) => {
461
+ f = G(A, k);
462
+ }), f;
463
+ }, G = (l, f) => {
464
+ const k = f, A = [];
465
+ l == null || l.forEach((w) => {
466
+ Array.isArray(w) ? A.push({ children: G(w, []) }) : A.push({ title: w });
467
+ });
468
+ let E = A.reduce((w, J) => (Object.entries(J).forEach(([I, x]) => {
469
+ w[I] === void 0 ? x != null && x.title ? w[I] = [x] : w[I] = x : (Array.isArray(w[I]) || (w[I] = [{ title: w[I] }]), x != null && x.title || Array.isArray(x) ? w[I].push(x) : w[I].push({ title: x }));
470
+ }), w), {});
471
+ return E = H(D(E)), k.push(E), Array.isArray(k) && (k == null ? void 0 : k.length) > 1 ? k : k == null ? void 0 : k[0];
472
+ }, H = (l) => {
473
+ var f, k, A;
474
+ return Array.isArray(l == null ? void 0 : l.title) && ((f = l == null ? void 0 : l.title) == null ? void 0 : f.length) === ((A = (k = l == null ? void 0 : l.title) == null ? void 0 : k.filter((E) => E.title)) == null ? void 0 : A.length) ? l == null ? void 0 : l.title : Array.isArray(l == null ? void 0 : l.children) ? z(l) : l;
475
+ }, z = (l) => {
476
+ var k;
477
+ const f = l;
478
+ return f.children = (k = f.children) == null ? void 0 : k.map((A) => {
479
+ var E;
480
+ return (E = A == null ? void 0 : A.title) != null && E.children ? A == null ? void 0 : A.title : A;
481
+ }), f;
482
+ }, K = ne({}), S = (l) => l == null ? void 0 : l.map((f) => f.children && f.children.length > 0 ? {
483
+ ...f,
484
+ // 水平菜单仅显示一层
485
+ children: f.level === 0 ? [] : f.children ?? [],
486
+ childMenus: S(f.children)
487
+ } : f), O = (l, f) => {
488
+ var k, A;
489
+ return f === 0 ? ((A = (k = v.value) == null ? void 0 : k.find((E) => {
490
+ var w;
491
+ return (w = l.title) == null ? void 0 : w.includes(E.value);
492
+ })) == null ? void 0 : A.value) ?? "wenjianjia" : f === 1 ? "wenjianjia" : "wenjian";
493
+ }, L = (l) => {
494
+ var f, k;
495
+ return (k = (f = v.value) == null ? void 0 : f.find((A) => {
496
+ var E;
497
+ return (E = l.title) == null ? void 0 : E.includes(A.value);
498
+ })) == null ? void 0 : k.value;
499
+ }, T = (l, f = "", k = 0) => {
500
+ var J;
501
+ let A, E = D(l);
502
+ const w = (J = M.value) == null ? void 0 : J.map((I) => {
503
+ var x;
504
+ return (x = I == null ? void 0 : I.key) == null ? void 0 : x.pageKey;
505
+ });
506
+ return Array.isArray(E) || (E = [E]), A = E == null ? void 0 : E.map((I) => {
507
+ const x = f ? `${f}/${I.title}` : I.title, Y = {
508
+ ...I,
509
+ path: x,
510
+ level: k,
511
+ show: !0,
512
+ // icon: Icon[`${level}`],
513
+ icon: d.value === "client" ? O(I, k) : L(I),
514
+ carryData: w == null ? void 0 : w.includes(x),
515
+ //便于角色授权菜单那里给叶子节点添加按钮节点
516
+ isPenultimate: !I.children,
517
+ // 便于自定义新增菜单
518
+ children: [],
519
+ childMenus: []
520
+ };
521
+ return I.children && I.children.length > 0 && (Y.children = T(I.children, x, k + 1)), Y;
522
+ }), A;
523
+ }, $ = Re(() => {
524
+ let l = D(b.value);
525
+ if (l = [...l, ...o.value], (l == null ? void 0 : l.length) === 0)
526
+ return t.push("/"), [];
527
+ const f = _(l, ie.value);
528
+ f.isFlag || (l = f == null ? void 0 : f.data);
529
+ const k = S(l);
530
+ return a.setMenus(k), k;
531
+ }), W = async (l) => {
532
+ var E, w, J;
533
+ let f, k;
534
+ (l == null ? void 0 : l.level) === 0 ? k = {
535
+ key: {
536
+ type: "menuConfigData",
537
+ systemKey: sessionStorage.getItem("systemKey"),
538
+ rootNodePath: l == null ? void 0 : l.path,
539
+ tableId: ""
540
+ }
541
+ } : k = {
542
+ key: {
543
+ type: "menuConfigData",
544
+ systemKey: sessionStorage.getItem("systemKey"),
545
+ pageKey: "/平台管理/菜单管理/" + (l == null ? void 0 : l.path),
546
+ tableId: ""
547
+ }
548
+ };
549
+ const A = await fe(k);
550
+ return ((E = A == null ? void 0 : A.data) == null ? void 0 : E.code) === 200 && (f = (J = (w = A.data) == null ? void 0 : w.result) == null ? void 0 : J.map((I) => {
551
+ var x;
552
+ return {
553
+ id: I == null ? void 0 : I.id,
554
+ ...(x = I == null ? void 0 : I.value) == null ? void 0 : x.tableData
555
+ };
556
+ }), (l == null ? void 0 : l.level) === 0 && (K.value = D(f), console.log(77782, K.value))), (f == null ? void 0 : f.length) > 0 ? f : null;
557
+ }, C = async (l, f) => {
558
+ var k, A;
559
+ if (!Array.isArray(f)) return l;
560
+ for (const E of f) {
561
+ let w = (E == null ? void 0 : E.path) === l.path;
562
+ if (console.log("findMatchingMenu", E, l), w)
563
+ return {
564
+ ...l,
565
+ config: await W(l),
566
+ icon: (A = (k = E == null ? void 0 : E.data) == null ? void 0 : k.menuConfig) == null ? void 0 : A.menuIcon
567
+ };
568
+ }
569
+ return l;
570
+ }, P = ne(null), Q = async (l, f = null) => await Promise.all(
571
+ l == null ? void 0 : l.map(async (k) => {
572
+ var w;
573
+ let A = await C(k, K.value);
574
+ console.log("recurseFormatAsideMenus", A, K.value);
575
+ const E = (A == null ? void 0 : A.config) ?? ((w = f == null ? void 0 : f.filter((J) => J.allowInherit)) == null ? void 0 : w.map((J) => {
576
+ var I, x;
577
+ return {
578
+ ...J,
579
+ structureIds: (x = (I = f == null ? void 0 : f.find((Y) => {
580
+ var R;
581
+ return ((R = Y == null ? void 0 : Y.structureIds) == null ? void 0 : R.length) > 0;
582
+ })) == null ? void 0 : I.structureIds) == null ? void 0 : x.filter((Y) => (Y == null ? void 0 : Y.key) === "contentConfig")
583
+ };
584
+ }));
585
+ return A != null && A.childMenus && (A == null ? void 0 : A.childMenus.length) > 0 && (A = {
586
+ ...A,
587
+ config: E,
588
+ children: await Q(k == null ? void 0 : k.childMenus, E),
589
+ childMenus: await Q(k == null ? void 0 : k.childMenus, E)
590
+ }), {
591
+ ...A,
592
+ config: E
593
+ };
594
+ })
595
+ ), V = async (l) => {
596
+ var k;
597
+ const f = await fe({
598
+ key: {
599
+ systemKey: sessionStorage.getItem("systemKey"),
600
+ // pageKey: '平台管理/菜单管理/' + menu?.path,
601
+ type: "structure",
602
+ rootNodePath: l == null ? void 0 : l.path,
603
+ structureBelong: "dialogConfig",
604
+ parentTable: "",
605
+ version: 1
606
+ }
607
+ });
608
+ if (((k = f == null ? void 0 : f.data) == null ? void 0 : k.code) === 200) {
609
+ P.value = null;
610
+ const A = D(f.data.result);
611
+ return (A == null ? void 0 : A.length) === 0 ? A : await Q(l.childMenus);
612
+ }
613
+ }, re = async (l) => {
614
+ var f, k, A;
615
+ if (a.setMenuTriggerType("click"), r.setRouteToChildPath(""), a.setActiveTopMenuPath(l == null ? void 0 : l.path), a.setActiveMainMenu(l), await W(l), P.value = null, l != null && l.childMenus && ((f = l == null ? void 0 : l.childMenus) == null ? void 0 : f.length) > 0) {
616
+ const E = (A = (k = l == null ? void 0 : l.childMenus) == null ? void 0 : k[0]) == null ? void 0 : A.path;
617
+ a.setActiveMenuPath(E);
618
+ const w = await V(l);
619
+ console.log(666, w);
620
+ const J = (w == null ? void 0 : w.length) === 0 ? l == null ? void 0 : l.childMenus : w;
621
+ a.setAsideMenus(J);
622
+ } else
623
+ a.setAsideMenus([]);
624
+ l.isRouter ? t.push(l.path) : t.push("/");
625
+ }, oe = (l) => {
626
+ r.setRouteToChildPath(""), u.value === "click" ? i.value === 1 ? a.setActiveMenuPath(sessionStorage.getItem("pageKey")) : l !== s.value && a.setActiveMenuPath(l) : a.setMenuTriggerType("click"), l != null && l.startsWith("/") ? t.push(l) : t.push("/"), i.value++;
627
+ }, ce = (l) => {
628
+ l !== s.value && a.setActiveMenuPath(l);
629
+ }, m = (l) => {
630
+ const f = document.documentElement;
631
+ l == null || l.forEach((k) => {
632
+ f.style.setProperty(k.name, k.value);
633
+ });
634
+ };
635
+ Ts(() => {
636
+ i.value = 1, v.value = Cs();
637
+ });
638
+ const ie = Re(() => {
639
+ const l = sessionStorage.getItem("authority");
640
+ return l ? JSON.parse(l) : [];
641
+ });
642
+ De(() => d.value, (l) => {
643
+ l === "browser" ? (m(Ms), m(ws)) : l === "client" && (m(Ps), m(Is));
644
+ }, { immediate: !0 }), De(() => p.value, (l) => {
645
+ if (l) {
646
+ const f = l;
647
+ b.value = T(B(f));
648
+ } else
649
+ a.setActiveMenuPath("");
650
+ }, {
651
+ immediate: !0
652
+ });
653
+ const ue = (l, f) => {
654
+ function k(A) {
655
+ A == null || A.forEach((E) => {
656
+ E.show = f == null ? void 0 : f.some((w) => w == null ? void 0 : w.includes(E.path)), E.children && k(E.children);
657
+ });
658
+ }
659
+ return k(l), l;
660
+ }, _ = (l, f) => {
661
+ if (Array.isArray(f)) {
662
+ const k = Array.from(new Set(f == null ? void 0 : f.map((A) => A.substring(0, A.lastIndexOf("/")))));
663
+ return {
664
+ data: ue(l, k),
665
+ isFlag: !1
666
+ };
667
+ } else
668
+ return {
669
+ isFlag: (f == null ? void 0 : f.toUpperCase()) === "SUPERADMIN"
670
+ };
671
+ }, N = (l) => {
672
+ var k;
673
+ const f = [l == null ? void 0 : l.title];
674
+ if (l != null && l.children && ((k = l == null ? void 0 : l.children) == null ? void 0 : k.length) > 0) {
675
+ const A = l.children.map((E) => N(E));
676
+ f.push(...A);
677
+ }
678
+ return f;
679
+ }, q = (l, f, k, A) => l.map((E) => {
680
+ var w, J;
681
+ if (E.path === k) {
682
+ const I = { ...E };
683
+ return console.log(7771, I, A), A === "create" ? I.children.push(f) : A === "update" ? I.children = (w = I.children) == null ? void 0 : w.map((x) => (x == null ? void 0 : x.path) === (f == null ? void 0 : f.path) ? f : x) : A === "delete" && (I.children = (J = I.children) == null ? void 0 : J.filter((x) => (x == null ? void 0 : x.path) !== (f == null ? void 0 : f.path))), I;
684
+ } else
685
+ return {
686
+ ...E,
687
+ children: q(E.children, f, k, A)
688
+ // 递归更新子节点
689
+ };
690
+ }), se = async (l) => {
691
+ var k, A, E, w, J, I;
692
+ const f = (k = M.value) == null ? void 0 : k.find((x) => {
693
+ var Y;
694
+ return ((Y = x == null ? void 0 : x.key) == null ? void 0 : Y.pageKey) === "menu";
695
+ });
696
+ if (f) {
697
+ const x = {
698
+ ...(A = f.value) == null ? void 0 : A.pageData,
699
+ compData: (J = (w = (E = f.value) == null ? void 0 : E.pageData) == null ? void 0 : w.compData) == null ? void 0 : J.map((R) => R.key === "menuContents" ? {
700
+ ...R,
701
+ contents: l
702
+ } : R)
703
+ };
704
+ await da(f == null ? void 0 : f.id, x);
705
+ const Y = (I = $.value) == null ? void 0 : I.find((R) => (R == null ? void 0 : R.path) === y.value);
706
+ await re(Y), U(!1), de.success("响应成功");
707
+ }
708
+ }, F = async (l) => {
709
+ var A, E, w, J, I;
710
+ const f = await fe({
711
+ id: l
712
+ });
713
+ let k;
714
+ return ((A = f == null ? void 0 : f.data) == null ? void 0 : A.code) === 200 && (k = (I = (J = (w = (E = f == null ? void 0 : f.data) == null ? void 0 : E.result) == null ? void 0 : w[0]) == null ? void 0 : J.value) == null ? void 0 : I.pageData, console.log(1829, f)), k;
715
+ }, ae = async (l) => {
716
+ var I, x, Y;
717
+ const f = (Y = (x = (I = l == null ? void 0 : l.config) == null ? void 0 : I.find((R) => (R == null ? void 0 : R.operateType) === "新增")) == null ? void 0 : x.structureIds) == null ? void 0 : Y.filter((R) => (R == null ? void 0 : R.key) === "contentConfig"), k = f == null ? void 0 : f.map((R) => R == null ? void 0 : R.id);
718
+ let A = [], E = [];
719
+ k == null || k.forEach((R) => {
720
+ R && A.push(F(R));
721
+ });
722
+ const w = await Promise.all(A);
723
+ w == null || w.forEach((R) => {
724
+ R && E.push(ve({
725
+ key: {
726
+ pageKey: l == null ? void 0 : l.path,
727
+ systemKey: sessionStorage.getItem("systemKey"),
728
+ parentTable: "",
729
+ version: 1
730
+ },
731
+ value: {
732
+ pageData: R
733
+ }
734
+ }));
735
+ });
736
+ const J = await Promise.all(E);
737
+ console.log("handleStoreNewMenuStructure-0", w, J, l, k);
738
+ };
739
+ return De(() => n.value, async (l) => {
740
+ var f, k, A, E, w, J, I, x, Y;
741
+ if (l)
742
+ try {
743
+ const R = (A = (k = (f = h.value) == null ? void 0 : f.data) == null ? void 0 : k.path) == null ? void 0 : A.split("/").slice(0, -1).join("/"), Pe = q(b.value, (E = h.value) == null ? void 0 : E.data, R, (w = h.value) == null ? void 0 : w.type), He = (J = Pe == null ? void 0 : Pe.filter((Ke) => Ke.path !== "系统管理" && Ke.path !== "平台管理")) == null ? void 0 : J.map((Ke) => N(Ke));
744
+ console.log(777, Pe, He, (I = h.value) == null ? void 0 : I.data), await ae((x = h.value) == null ? void 0 : x.data), U(!0), await se(He);
745
+ const Ie = await V(c.value), Ds = (Ie == null ? void 0 : Ie.length) === 0 ? (Y = c.value) == null ? void 0 : Y.childMenus : Ie;
746
+ a.setAsideMenus(Ds);
747
+ } catch (R) {
748
+ throw de.error(R), new Error(R);
749
+ }
750
+ }, { immediate: !0 }), {
751
+ mode: j,
752
+ renderMenuList: $,
753
+ clickMenu: re,
754
+ openMenu: oe,
755
+ closeMenu: ce,
756
+ changeMenuStyle: m
757
+ };
758
+ }
759
+ });
760
+ var je = { exports: {} }, ha = je.exports, ss;
761
+ function ga() {
762
+ return ss || (ss = 1, function(e, s) {
763
+ (function(a, r) {
764
+ r();
765
+ })(ha, function() {
766
+ function a(u, o) {
767
+ return typeof o > "u" ? o = { autoBom: !1 } : typeof o != "object" && (console.warn("Deprecated: Expected third argument to be a object"), o = { autoBom: !o }), o.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type) ? new Blob(["\uFEFF", u], { type: u.type }) : u;
768
+ }
769
+ function r(u, o, d) {
770
+ var h = new XMLHttpRequest();
771
+ h.open("GET", u), h.responseType = "blob", h.onload = function() {
772
+ n(h.response, o, d);
773
+ }, h.onerror = function() {
774
+ console.error("could not download file");
775
+ }, h.send();
776
+ }
777
+ function i(u) {
778
+ var o = new XMLHttpRequest();
779
+ o.open("HEAD", u, !1);
780
+ try {
781
+ o.send();
782
+ } catch {
783
+ }
784
+ return 200 <= o.status && 299 >= o.status;
785
+ }
786
+ function t(u) {
787
+ try {
788
+ u.dispatchEvent(new MouseEvent("click"));
789
+ } catch {
790
+ var o = document.createEvent("MouseEvents");
791
+ o.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), u.dispatchEvent(o);
792
+ }
793
+ }
794
+ var p = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof Ne == "object" && Ne.global === Ne ? Ne : void 0, y = p.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), n = p.saveAs || (typeof window != "object" || window !== p ? function() {
795
+ } : "download" in HTMLAnchorElement.prototype && !y ? function(u, o, d) {
796
+ var h = p.URL || p.webkitURL, c = document.createElement("a");
797
+ o = o || u.name || "download", c.download = o, c.rel = "noopener", typeof u == "string" ? (c.href = u, c.origin === location.origin ? t(c) : i(c.href) ? r(u, o, d) : t(c, c.target = "_blank")) : (c.href = h.createObjectURL(u), setTimeout(function() {
798
+ h.revokeObjectURL(c.href);
799
+ }, 4e4), setTimeout(function() {
800
+ t(c);
801
+ }, 0));
802
+ } : "msSaveOrOpenBlob" in navigator ? function(u, o, d) {
803
+ if (o = o || u.name || "download", typeof u != "string") navigator.msSaveOrOpenBlob(a(u, d), o);
804
+ else if (i(u)) r(u, o, d);
805
+ else {
806
+ var h = document.createElement("a");
807
+ h.href = u, h.target = "_blank", setTimeout(function() {
808
+ t(h);
809
+ });
810
+ }
811
+ } : function(u, o, d, h) {
812
+ if (h = h || open("", "_blank"), h && (h.document.title = h.document.body.innerText = "downloading..."), typeof u == "string") return r(u, o, d);
813
+ var c = u.type === "application/octet-stream", g = /constructor/i.test(p.HTMLElement) || p.safari, M = /CriOS\/[\d]+/.test(navigator.userAgent);
814
+ if ((M || c && g || y) && typeof FileReader < "u") {
815
+ var b = new FileReader();
816
+ b.onloadend = function() {
817
+ var U = b.result;
818
+ U = M ? U : U.replace(/^data:[^;]*;/, "data:attachment/file;"), h ? h.location.href = U : location = U, h = null;
819
+ }, b.readAsDataURL(u);
820
+ } else {
821
+ var v = p.URL || p.webkitURL, j = v.createObjectURL(u);
822
+ h ? h.location = j : location.href = j, h = null, setTimeout(function() {
823
+ v.revokeObjectURL(j);
824
+ }, 4e4);
825
+ }
826
+ });
827
+ p.saveAs = n.saveAs = n, e.exports = n;
828
+ });
829
+ }(je)), je.exports;
830
+ }
831
+ var va = ga();
832
+ const Aa = ps(), { loginUserInfo: as, cryptoInfo: he } = Ae(Aa), X = ys(Ue), { itemData: ka, curStructureCompIds: ls, isSubmitCurStructure: Sa, isRefreshCurStructure: Da, freshContent: rs } = Ae(X), As = Ge(Ue), { activeMenuPath: le, activeAsideMenu: ba, platform: ts, buttonTriggerType: Ea, cacheStructures: il } = Ae(As), te = Hs(Ue), { selectTitle: ye } = Ae(te), Ma = (e, s) => {
833
+ const a = new Ws();
834
+ e.forEach((r) => {
835
+ a.file(r.name, r.content);
836
+ }), a.generateAsync({ type: "blob" }).then((r) => {
837
+ va.saveAs(r, `${s}.zip`);
838
+ });
839
+ }, ul = () => {
840
+ const e = [
841
+ { name: ts.value === "browser" ? "insoftest-SSIP.exe" : "insofrobot-TubeBending.exe", content: "欢迎使用" }
842
+ ], s = ts.value === "browser" ? "insoftest-SSIP" : "insofrobot-TubeBending";
843
+ Ma(e, s);
844
+ }, pl = () => {
845
+ X.setIsEdit("edit"), X.setSubmitCurStructure(le.value !== "/平台管理/菜单管理");
846
+ }, fl = () => {
847
+ X.setIsEdit("view"), X.setRefreshCurStructure(!0);
848
+ }, yl = async (e) => {
849
+ var s;
850
+ if ((e == null ? void 0 : e.key) === "main" || ye.value.length === 1)
851
+ Z.value = await Me(le.value, sessionStorage.getItem("systemKey")), te.setSelectIndex(""), te.setSelectMenu(""), te.setSelectTitle([]);
852
+ else {
853
+ const a = [], r = (e == null ? void 0 : e.key) === "" || !(e != null && e.key) ? "" : parseInt(e == null ? void 0 : e.key);
854
+ Z.value = await Me(le.value, sessionStorage.getItem("systemKey"), r);
855
+ let i = -1;
856
+ (s = ye.value) == null || s.forEach((t, p) => {
857
+ (t == null ? void 0 : t.key) === (e == null ? void 0 : e.key) && (i = p), (i === -1 || i >= p) && a.push(t);
858
+ }), te.setSelectTitle(a), r !== "" ? te.setSelectMenu(e == null ? void 0 : e.key) : (te.setSelectIndex(""), te.setSelectMenu(""));
859
+ }
860
+ X.setItemData(Z.value), X.setOriginalData(Z.value);
861
+ }, Te = async (e, s, a, r = "contentConfig") => {
862
+ var i, t, p;
863
+ try {
864
+ let y, n;
865
+ s === "create" ? (y = {
866
+ key: {
867
+ systemKey: sessionStorage.getItem("systemKey"),
868
+ pageKey: a,
869
+ type: "structure",
870
+ structureBelong: r,
871
+ parentTable: "",
872
+ version: 1
873
+ },
874
+ value: {
875
+ pageData: {
876
+ ...e,
877
+ compData: (i = e == null ? void 0 : e.compData) == null ? void 0 : i.filter((o) => (o == null ? void 0 : o.key) !== "tableContents")
878
+ }
879
+ }
880
+ }, n = ve) : s === "update" ? (y = {
881
+ id: e == null ? void 0 : e.id,
882
+ key: {
883
+ systemKey: sessionStorage.getItem("systemKey"),
884
+ pageKey: a,
885
+ type: "structure",
886
+ structureBelong: r,
887
+ parentTable: "",
888
+ version: 1
889
+ },
890
+ value: {
891
+ pageData: {
892
+ ...e,
893
+ compData: (t = e == null ? void 0 : e.compData) == null ? void 0 : t.filter((o) => (o == null ? void 0 : o.key) !== "tableContents")
894
+ }
895
+ }
896
+ }, n = Ee) : s === "delete" && (y = {
897
+ id: e,
898
+ key: {
899
+ systemKey: sessionStorage.getItem("systemKey"),
900
+ pageKey: a,
901
+ type: "structure",
902
+ structureBelong: r,
903
+ parentTable: "",
904
+ version: 1
905
+ }
906
+ }, n = us);
907
+ const u = await n(y);
908
+ if (((p = u == null ? void 0 : u.data) == null ? void 0 : p.code) === 200)
909
+ return u.data.result;
910
+ throw de.error("保存响应失败"), new Error("保存响应失败");
911
+ } catch {
912
+ de.error("保存响应失败");
913
+ }
914
+ }, dl = async (e) => {
915
+ var u;
916
+ const s = JSON.parse(D(JSON.stringify(ka.value)));
917
+ if (!Sa.value)
918
+ return As.setCacheStructures({
919
+ key: Ea.value,
920
+ data: s
921
+ }), de.success("已暂存");
922
+ const a = s == null ? void 0 : s.map((o) => o.id), r = a.filter((o) => {
923
+ var d;
924
+ return !((d = ls.value) != null && d.includes(o));
925
+ }), i = (u = ls.value) == null ? void 0 : u.filter((o) => !a.includes(o)), t = [...r, ...i], p = s == null ? void 0 : s.filter((o) => !o.id), y = s == null ? void 0 : s.filter((o) => o.id);
926
+ let n = [];
927
+ t && (t == null ? void 0 : t.length) > 0 && (t == null || t.forEach((o) => {
928
+ o && n.push(Te(o, "delete", e));
929
+ })), p && (p == null ? void 0 : p.length) > 0 && (p == null || p.forEach((o) => {
930
+ o && n.push(Te(o, "create", e));
931
+ })), y && (y == null ? void 0 : y.length) > 0 && (y == null || y.forEach((o) => {
932
+ a != null && a.includes(o.id) && (console.log("clickSavePage5", "包含"), o && n.push(Te(o, "update", e)));
933
+ })), Promise.all(n).then(() => {
934
+ de.success("保存成功"), X.setRefreshCurStructure(!0);
935
+ }).catch((o) => {
936
+ de.success(o);
937
+ });
938
+ }, hl = (e) => la(e), Z = ne([]), gl = async (e, s = "data") => {
939
+ var r, i, t, p, y, n;
940
+ if ((e == null ? void 0 : e.type) === "delete")
941
+ await qs((r = e == null ? void 0 : e.singleContent) == null ? void 0 : r.id);
942
+ else if ((e == null ? void 0 : e.buttonName) === "新增") {
943
+ let u = {};
944
+ for (let o in e == null ? void 0 : e.singleContent)
945
+ o !== "id" && o !== "index" && (u[o] = e == null ? void 0 : e.singleContent[o]);
946
+ await Fs(
947
+ s,
948
+ le.value,
949
+ e == null ? void 0 : e.index,
950
+ sessionStorage.getItem("systemKey"),
951
+ Object.values(u),
952
+ e == null ? void 0 : e.column,
953
+ e
954
+ );
955
+ } else if ((e == null ? void 0 : e.buttonName) === "编辑") {
956
+ let u = {}, o = (i = e == null ? void 0 : e.singleContent) == null ? void 0 : i.id;
957
+ for (let d in e == null ? void 0 : e.singleContent)
958
+ d !== "id" && d !== "index" && (u[d] = e == null ? void 0 : e.singleContent[d]);
959
+ await Ys(
960
+ s,
961
+ le.value,
962
+ e == null ? void 0 : e.index,
963
+ o,
964
+ sessionStorage.getItem("systemKey"),
965
+ Object.values(u),
966
+ e == null ? void 0 : e.column
967
+ );
968
+ }
969
+ let a = (p = (t = ye.value) == null ? void 0 : t[ye.value.length - 1]) != null && p.key ? parseInt((n = (y = ye.value) == null ? void 0 : y[ye.value.length - 1]) == null ? void 0 : n.key) : "";
970
+ Z.value = await Me(le.value, sessionStorage.getItem("systemKey"), a), X.setItemData(Z.value), X.setOriginalData(Z.value);
971
+ }, wa = async (e) => {
972
+ var a, r, i, t, p;
973
+ const s = await fe({
974
+ id: e
975
+ });
976
+ return (p = (t = (i = (r = (a = s == null ? void 0 : s.data) == null ? void 0 : a.result) == null ? void 0 : r[0]) == null ? void 0 : i.value) == null ? void 0 : t.pageData) == null ? void 0 : p.name;
977
+ }, vl = async (e) => {
978
+ var r, i;
979
+ const s = await wa(e == null ? void 0 : e.index);
980
+ await zs(e == null ? void 0 : e.index, {
981
+ comp: "Form",
982
+ compData: (r = D(e == null ? void 0 : e.contents)) == null ? void 0 : r.filter((t) => t.contents),
983
+ name: s
984
+ });
985
+ const a = (i = D(Z.value)) == null ? void 0 : i.map((t) => ((t == null ? void 0 : t.id) === (e == null ? void 0 : e.index) && (t.compData = e == null ? void 0 : e.contents), t));
986
+ X.setItemData(a), X.setOriginalData(a);
987
+ }, Al = (e) => {
988
+ Z.value = e, X.setItemData(Z.value), X.setOriginalData(Z.value);
989
+ }, ns = (e) => {
990
+ var s, a, r;
991
+ return ((a = (s = as.value) == null ? void 0 : s.layer) == null ? void 0 : a.toUpperCase()) === "SUPERADMIN" ? !0 : ((r = as.value) == null ? void 0 : r.account) === (e == null ? void 0 : e.account);
992
+ }, os = async (e, s, a) => {
993
+ const r = Fe("/系统管理/角色管理"), i = Fe("/系统管理/部门管理");
994
+ return await Promise.all([r, i]).then((p) => {
995
+ var u, o;
996
+ const y = (u = p == null ? void 0 : p[0]) == null ? void 0 : u.map((d) => ({
997
+ label: d == null ? void 0 : d.roleName,
998
+ value: d == null ? void 0 : d.roleName
999
+ })), n = (o = p == null ? void 0 : p[1]) == null ? void 0 : o.map((d) => ({
1000
+ label: d == null ? void 0 : d.deptName,
1001
+ value: d == null ? void 0 : d.deptName
1002
+ }));
1003
+ return a ? e == null ? void 0 : e.map((d) => {
1004
+ var h;
1005
+ return {
1006
+ ...d,
1007
+ compData: (h = d == null ? void 0 : d.compData) == null ? void 0 : h.map((c) => {
1008
+ var g, M;
1009
+ return (c == null ? void 0 : c.key) === "header" ? {
1010
+ ...c,
1011
+ contents: (g = c == null ? void 0 : c.contents) == null ? void 0 : g.map((b) => b.prop === "userDept" ? {
1012
+ ...b,
1013
+ options: n
1014
+ } : b.prop === "userRoles" ? {
1015
+ ...b,
1016
+ options: y
1017
+ } : b)
1018
+ } : (c == null ? void 0 : c.key) === "tableContents" ? {
1019
+ ...c,
1020
+ contents: (M = c == null ? void 0 : c.contents) == null ? void 0 : M.map((b) => {
1021
+ var v;
1022
+ return {
1023
+ ...b,
1024
+ password: ns(b) ? qe(b == null ? void 0 : b.password, (v = he == null ? void 0 : he.value) == null ? void 0 : v.privateKey) : b == null ? void 0 : b.password
1025
+ };
1026
+ })
1027
+ } : c;
1028
+ })
1029
+ };
1030
+ }) : e == null ? void 0 : e.map((d) => {
1031
+ var h;
1032
+ return {
1033
+ ...d,
1034
+ compData: (h = d == null ? void 0 : d.compData) == null ? void 0 : h.map((c) => {
1035
+ var g, M, b;
1036
+ return (c == null ? void 0 : c.key) === "rowButton" || (c == null ? void 0 : c.key) === "extraButton" ? {
1037
+ ...c,
1038
+ contents: (g = c == null ? void 0 : c.contents) == null ? void 0 : g.filter((v) => s == null ? void 0 : s.includes(v == null ? void 0 : v.label))
1039
+ } : (c == null ? void 0 : c.key) === "header" ? {
1040
+ ...c,
1041
+ contents: (M = c == null ? void 0 : c.contents) == null ? void 0 : M.map((v) => v.prop === "userDept" ? {
1042
+ ...v,
1043
+ options: n
1044
+ } : v.prop === "userRoles" ? {
1045
+ ...v,
1046
+ options: y
1047
+ } : v)
1048
+ } : (c == null ? void 0 : c.key) === "tableContents" ? {
1049
+ ...c,
1050
+ contents: (b = c == null ? void 0 : c.contents) == null ? void 0 : b.map((v) => {
1051
+ var j;
1052
+ return {
1053
+ ...v,
1054
+ password: ns(v) ? qe(v == null ? void 0 : v.password, (j = he == null ? void 0 : he.value) == null ? void 0 : j.privateKey) : v == null ? void 0 : v.password
1055
+ };
1056
+ })
1057
+ } : c;
1058
+ })
1059
+ };
1060
+ });
1061
+ });
1062
+ };
1063
+ De(
1064
+ () => [le.value, Da.value],
1065
+ async (e) => {
1066
+ var r, i;
1067
+ const s = e == null ? void 0 : e[0], a = e == null ? void 0 : e[1];
1068
+ if (s || a) {
1069
+ await fs(), sessionStorage.setItem("pageKey", le.value), console.log("当前菜单的结构0:", ba.value);
1070
+ const t = await Me(s, sessionStorage.getItem("systemKey"), "", le.value);
1071
+ console.log("当前菜单的结构2:", t), X.setExtraContents([]);
1072
+ const p = sessionStorage.getItem("authority"), y = JSON.parse(p || "");
1073
+ if (Array.isArray(y)) {
1074
+ const n = Array.isArray(y) && (y == null ? void 0 : y.filter((o) => o == null ? void 0 : o.includes(s))), u = n == null ? void 0 : n.map((o) => {
1075
+ var d;
1076
+ return ((d = o == null ? void 0 : o.split("/")) == null ? void 0 : d.pop()) || "";
1077
+ });
1078
+ Z.value = s === "/系统管理/用户管理" ? await os(t, u, !1) : t == null ? void 0 : t.map((o) => {
1079
+ var d;
1080
+ return {
1081
+ ...o,
1082
+ compData: (d = o == null ? void 0 : o.compData) == null ? void 0 : d.map((h) => {
1083
+ var c;
1084
+ return (h == null ? void 0 : h.key) === "rowButton" || (h == null ? void 0 : h.key) === "extraButton" ? {
1085
+ ...h,
1086
+ contents: (c = h == null ? void 0 : h.contents) == null ? void 0 : c.filter((g) => u == null ? void 0 : u.includes(g == null ? void 0 : g.label))
1087
+ } : h;
1088
+ })
1089
+ };
1090
+ });
1091
+ } else typeof y == "string" && (y == null ? void 0 : y.toUpperCase()) === "SUPERADMIN" ? Z.value = s === "/系统管理/用户管理" ? await os(t, null, !0) : t : Z.value = [];
1092
+ te.setSelectTitle([]), te.setSelectIndex(""), te.setSelectMenu(""), X.setItemData(Z.value), X.setOriginalData(Z.value), X.setCurStructureCompIds((r = Z.value) == null ? void 0 : r.map((n) => n == null ? void 0 : n.id)), X.setRefreshCurStructure(!1), ye.value = (i = le.value) == null ? void 0 : i.split("/").filter((n) => n !== "").map((n) => ({ value: n.trim() }));
1093
+ }
1094
+ },
1095
+ {
1096
+ immediate: !0
1097
+ }
1098
+ );
1099
+ De(
1100
+ () => rs.value,
1101
+ async () => {
1102
+ rs.value && (Z.value = await Me(le.value, sessionStorage.getItem("systemKey"), "", le.value), X.setFreshContent(!1));
1103
+ },
1104
+ { deep: !0 }
1105
+ );
1106
+ const Pa = (e) => {
1107
+ var i, t, p;
1108
+ const s = (i = e.map((y) => {
1109
+ var u, o;
1110
+ let n = (o = (u = y.key.split("(")) == null ? void 0 : u[1]) == null ? void 0 : o.trim();
1111
+ return n == null ? void 0 : n.slice(0, n.length - 1);
1112
+ })) == null ? void 0 : i.filter((y) => y), a = [];
1113
+ s == null || s.forEach((y) => {
1114
+ var u, o;
1115
+ const n = [];
1116
+ if ((u = ra(y)) == null || u.forEach((d) => {
1117
+ var h, c, g, M, b, v, j, U, B, G, H, z, K, S;
1118
+ if (d.includes("{") && d.includes("[")) {
1119
+ let O = D(d).split(":");
1120
+ d = (v = (c = (h = D(O)) == null ? void 0 : h[0]) == null ? void 0 : c.split("{")) == null ? void 0 : v[((b = (M = (g = D(O)) == null ? void 0 : g[0]) == null ? void 0 : M.split("{")) == null ? void 0 : b.length) - 1].replaceAll("'", ""), n.push(d);
1121
+ let L = (B = (U = (j = O == null ? void 0 : O[(O == null ? void 0 : O.length) - 1]) == null ? void 0 : j.split("}")) == null ? void 0 : U[0]) == null ? void 0 : B.replaceAll("'", '"'), T = [];
1122
+ (H = (G = L.slice(1, L.length - 1)) == null ? void 0 : G.split(",")) == null || H.forEach(($) => {
1123
+ T.push($);
1124
+ }), n.push(T);
1125
+ } else if (d.includes("{")) {
1126
+ let O = (z = d.split(":")) == null ? void 0 : z[0];
1127
+ d = (S = O == null ? void 0 : O.split("{")) == null ? void 0 : S[((K = O == null ? void 0 : O.split("{")) == null ? void 0 : K.length) - 1].replaceAll("'", ""), n.push(d);
1128
+ } else
1129
+ n.push(d);
1130
+ }), !n.some((d) => Array.isArray(d)))
1131
+ a.push(n);
1132
+ else {
1133
+ let d = [];
1134
+ n == null || n.forEach((h, c) => {
1135
+ c !== n.length - 1 && d.push(h);
1136
+ }), (o = n == null ? void 0 : n[(n == null ? void 0 : n.length) - 1]) == null || o.forEach((h) => {
1137
+ let c = D(d);
1138
+ c.push(h), a.push(c);
1139
+ });
1140
+ }
1141
+ });
1142
+ const r = (p = (t = a.filter((y) => y.length !== 0)) == null ? void 0 : t.filter((y) => y.length !== 0)) == null ? void 0 : p.map((y) => {
1143
+ let n = "";
1144
+ return y.forEach((u) => {
1145
+ u.includes("{") || (n = n === "" ? n + D(u) : n + "/" + D(u));
1146
+ }), n;
1147
+ });
1148
+ return ta([...new Set(r)]);
1149
+ }, Ia = (e) => ({
1150
+ comp: "Menu",
1151
+ compData: [{
1152
+ contents: Pa(D(e)),
1153
+ key: "menuContents"
1154
+ }],
1155
+ name: ""
1156
+ }), Ka = (e) => ({
1157
+ comp: "MenuTop",
1158
+ compData: [
1159
+ {
1160
+ key: "menuContents",
1161
+ contents: JSON.parse(e == null ? void 0 : e.value.trim().replaceAll("'", '"'))
1162
+ }
1163
+ ],
1164
+ name: ""
1165
+ }), Na = (e) => {
1166
+ const s = e == null ? void 0 : e.filter((r) => {
1167
+ var i;
1168
+ return !((i = r == null ? void 0 : r.key) != null && i.includes("("));
1169
+ }), a = s == null ? void 0 : s.find((r) => {
1170
+ var i;
1171
+ return pe(r.value.replaceAll("'", '"')) && ((i = JSON.parse(r.value.replaceAll("'", '"'))) == null ? void 0 : i.every((t) => typeof t == "string"));
1172
+ });
1173
+ if (a)
1174
+ return Ka(a);
1175
+ }, xa = (e) => {
1176
+ var i;
1177
+ let s = [];
1178
+ const a = e == null ? void 0 : e.filter((t) => {
1179
+ var p;
1180
+ return !((p = t == null ? void 0 : t.key) != null && p.includes("("));
1181
+ }), r = a == null ? void 0 : a.find((t) => {
1182
+ var p;
1183
+ return pe(t.value.replaceAll("'", '"')) && !((p = JSON.parse(t.value.replaceAll("'", '"'))) != null && p.every((y) => typeof y == "string"));
1184
+ });
1185
+ if (r)
1186
+ return (i = JSON.parse(r.value.replaceAll("'", '"'))) == null || i.forEach((t) => {
1187
+ var p, y, n, u;
1188
+ ((p = Object.keys(t)) == null ? void 0 : p[0]) === "类型" ? s.push({
1189
+ comp: "System",
1190
+ compData: [
1191
+ {
1192
+ key: "type",
1193
+ contents: [(y = Object.values(t)) == null ? void 0 : y[0]]
1194
+ }
1195
+ ]
1196
+ }) : ((n = Object.keys(t)) == null ? void 0 : n[0]) === "名称" && s.push({
1197
+ comp: "System",
1198
+ compData: [
1199
+ {
1200
+ key: "name",
1201
+ contents: [(u = Object.values(t)) == null ? void 0 : u[0]]
1202
+ }
1203
+ ]
1204
+ });
1205
+ }), s;
1206
+ }, ks = (e) => {
1207
+ const s = [];
1208
+ let a = !1;
1209
+ return e.forEach((r) => {
1210
+ Array.isArray(r) && (a = !0, r.forEach((i) => {
1211
+ const t = e.map((p) => p === r ? i : p);
1212
+ s.push(...ks(t));
1213
+ }));
1214
+ }), a ? s : [e];
1215
+ }, La = (e) => {
1216
+ var p, y;
1217
+ if (!e) return;
1218
+ let s = [];
1219
+ const a = na(e), r = D(a).replaceAll("{", "").replaceAll("}", "").trim();
1220
+ let i = [];
1221
+ return r.split(":").forEach((n) => {
1222
+ var u;
1223
+ if (n.includes("[")) {
1224
+ const o = (u = n.slice(1, n.length - 1)) == null ? void 0 : u.split(",");
1225
+ i.push(o);
1226
+ } else
1227
+ i.push(n);
1228
+ }), (p = ks(i)) == null || p.forEach((n) => {
1229
+ s.push(n);
1230
+ }), (y = s == null ? void 0 : s.filter((n) => n.length !== 0)) == null ? void 0 : y.map((n) => {
1231
+ let u = "";
1232
+ return n.forEach((o) => {
1233
+ o.includes("{") || (u = u === "" ? u + D(o).trim() : u + "/" + D(o).trim());
1234
+ }), u;
1235
+ });
1236
+ }, $e = (e) => {
1237
+ var y, n, u, o, d, h, c, g, M, b, v, j, U, B, G, H, z, K, S, O, L, T, $, W;
1238
+ const s = e != null && e.includes(":") ? (y = we(D(e))) == null ? void 0 : y[0] : "[]", a = e != null && e.includes(":") ? "[" + ((n = we(D(e))) == null ? void 0 : n[2]) + "]" : e;
1239
+ let r = [], i = [], t = "";
1240
+ const p = (o = (u = a == null ? void 0 : a.trim()) == null ? void 0 : u.slice(1, (a == null ? void 0 : a.trim().length) - 1)) == null ? void 0 : o.replaceAll("'", '"');
1241
+ if (pe(p) ? r = JSON.parse(p) : pe((c = (h = (d = p == null ? void 0 : p.split("}")) == null ? void 0 : d[0]) == null ? void 0 : h.replace(":", "")) == null ? void 0 : c.replaceAll("\\", "\\\\")) && (r = JSON.parse((b = (M = (g = p == null ? void 0 : p.split("}")) == null ? void 0 : g[0]) == null ? void 0 : M.replace(":", "")) == null ? void 0 : b.replaceAll("\\", "\\\\"))), !(s != null && s.includes("(")))
1242
+ !s.includes("{") && pe(s == null ? void 0 : s.replaceAll("'", '"')) ? i = JSON.parse(s == null ? void 0 : s.replaceAll("'", '"')) : pe((j = (v = s == null ? void 0 : s.split("{")) == null ? void 0 : v[1]) == null ? void 0 : j.replaceAll("'", '"')) && (i = JSON.parse((B = (U = s == null ? void 0 : s.split("{")) == null ? void 0 : U[1]) == null ? void 0 : B.replaceAll("'", '"')));
1243
+ else {
1244
+ let C = [];
1245
+ if (((H = (G = s == null ? void 0 : s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : G.split(",")) == null ? void 0 : H.length) > 1)
1246
+ (K = (z = s == null ? void 0 : s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : z.split(",")) == null || K.forEach((P) => {
1247
+ var Q, V, re, oe, ce, m, ie, ue, _, N, q, se, F, ae, l, f, k, A;
1248
+ if (!(P != null && P.includes("(")))
1249
+ C.push(P == null ? void 0 : P.replaceAll("'", ""));
1250
+ else if (P != null && P.includes("[")) {
1251
+ let E = (ae = (F = (se = (q = P == null ? void 0 : P.split("[")) == null ? void 0 : q[((N = P == null ? void 0 : P.split("[")) == null ? void 0 : N.length) - 1]) == null ? void 0 : se.split("]")) == null ? void 0 : F[0]) == null ? void 0 : ae.replaceAll("'", "");
1252
+ E = E + "[" + ((A = (k = (f = P == null ? void 0 : P.split("(")) == null ? void 0 : f[((l = P == null ? void 0 : P.split("(")) == null ? void 0 : l.length) - 1]) == null ? void 0 : k.split(")")) == null ? void 0 : A[0].replaceAll(":", "/").replaceAll("'", "")) + "]()", C.push(E);
1253
+ } else {
1254
+ let E = (ce = (oe = (re = (V = P == null ? void 0 : P.split(":")) == null ? void 0 : V[((Q = P == null ? void 0 : P.split(":")) == null ? void 0 : Q.length) - 1]) == null ? void 0 : re.split(")")) == null ? void 0 : oe[0]) == null ? void 0 : ce.replaceAll("'", "");
1255
+ E = E + "[" + ((_ = (ue = (ie = P == null ? void 0 : P.split("(")) == null ? void 0 : ie[((m = P == null ? void 0 : P.split("(")) == null ? void 0 : m.length) - 1]) == null ? void 0 : ue.split(")")) == null ? void 0 : _[0].replaceAll(":", "/").replaceAll("'", "")) + "]", C.push(E);
1256
+ }
1257
+ }), i = C;
1258
+ else {
1259
+ const P = ((T = (L = (O = (S = s == null ? void 0 : s.slice(1, s == null ? void 0 : s.length)) == null ? void 0 : S.split("(")) == null ? void 0 : O[1]) == null ? void 0 : L.split(")")) == null ? void 0 : T[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
1260
+ t = t + P + "[" + ((W = ($ = s == null ? void 0 : s.slice(1, s == null ? void 0 : s.length)) == null ? void 0 : $.split("[")) == null ? void 0 : W[1]);
1261
+ }
1262
+ }
1263
+ return console.log(2321, {
1264
+ tableColumns: i,
1265
+ tableContents: r != null && r.every((C) => Array.isArray(C)) ? r : [r],
1266
+ tablePath: t
1267
+ }), {
1268
+ tableColumns: i,
1269
+ tableContents: r != null && r.every((C) => Array.isArray(C)) ? r : [r],
1270
+ tablePath: t
1271
+ };
1272
+ };
1273
+ let ee = "$R";
1274
+ const ja = (e) => /^'[^']+':\{.*\}$/.exec(D(e)), Oa = (e) => /^'([^']+)':.*$/.exec(D(e)), we = (e) => {
1275
+ let s = e;
1276
+ const a = [];
1277
+ let r = "";
1278
+ for (const i of s)
1279
+ i.includes("{") || r.includes("{") || i.includes("[") || r.includes("[") || i.includes("【") || r.includes("【") || i.includes("(") || r.includes("(") || i.includes("(") || r.includes("(") || i.includes("/*") || r.includes("/*") ? (r += i.trim(), D(r).split("{").length - 1 === D(r).split("}").length - 1 && D(r).split("【").length - 1 === D(r).split("】").length - 1 && D(r).split("[").length - 1 === D(r).split("]").length - 1 && D(r).split("(").length - 1 === D(r).split(")").length - 1 && D(r).split("(").length - 1 === D(r).split(")").length - 1 && D(r).split("/*").length - 1 === D(r).split("*/").length - 1 && r[r.length - 1] !== "," && (a.push(r.replace(/\/\*[\s\S]*?\*\//g, "")), r = "")) : a.push(i.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1280
+ return a;
1281
+ }, _a = (e) => /^\[.*?\]:\[.*?\]$/.exec(D(e)), Ua = (e) => {
1282
+ var s, a, r, i, t, p, y, n, u, o, d, h, c, g, M, b, v;
1283
+ if (Oa(e)) {
1284
+ let j = {}, U = (r = (a = (s = e == null ? void 0 : e.replace(":", ee)) == null ? void 0 : s.split(ee)) == null ? void 0 : a[0]) == null ? void 0 : r.replaceAll("'", ""), B = "";
1285
+ return B = B + ((y = (p = (t = (i = e == null ? void 0 : e.split("{")) == null ? void 0 : i[1]) == null ? void 0 : t.split("}")) == null ? void 0 : p[0]) == null ? void 0 : y.replace(":", "/").replaceAll("'", "")) + "[", B = B + ((o = (u = (n = e == null ? void 0 : e.split("[")) == null ? void 0 : n[1]) == null ? void 0 : u.split("]")) == null ? void 0 : o[0]) + "]", j[U] = B, {
1286
+ groupName: "",
1287
+ formContents: [[j]]
1288
+ };
1289
+ } else {
1290
+ let j = {}, U = "", B = (c = (h = (d = e == null ? void 0 : e.split("]")) == null ? void 0 : d[0]) == null ? void 0 : h.split("[")) == null ? void 0 : c[1];
1291
+ (g = B == null ? void 0 : B.split(":")) == null || g.forEach((H, z) => {
1292
+ var K;
1293
+ ((K = B == null ? void 0 : B.split(":")) == null ? void 0 : K.length) - 1 === z && (U = H == null ? void 0 : H.replaceAll("'", ""));
1294
+ });
1295
+ let G = "";
1296
+ return G = (v = (b = (M = e == null ? void 0 : e.split("]")) == null ? void 0 : M[1]) == null ? void 0 : b.replace(":", ee).split(ee)) == null ? void 0 : v[1].replaceAll("'", ""), j[U] = G, {
1297
+ groupName: "",
1298
+ formContents: [[j]]
1299
+ };
1300
+ }
1301
+ }, Ra = (e) => (e == null ? void 0 : e[0]) === "[" && (e == null ? void 0 : e[e.length - 1]) === "]" && !(e != null && e.includes("{")), Ss = (e) => {
1302
+ var r, i, t, p, y, n, u, o, d, h, c, g, M, b, v, j, U, B, G, H, z, K, S, O, L, T, $, W, C, P, Q, V, re, oe, ce, m, ie, ue;
1303
+ let s = "";
1304
+ e = e.replace(/:([^=]*)==/g, ":");
1305
+ let a = e;
1306
+ if (ja(D(e)) !== null && (s = (i = (r = D(e).replace(":", ee).split(ee)) == null ? void 0 : r[0]) == null ? void 0 : i.replaceAll("'", ""), a = (t = D(e).replace(":", ee).split(ee)) == null ? void 0 : t[1]), _a(D(a).slice(1, ((p = D(a)) == null ? void 0 : p.length) - 1)) || Ra(D(a).slice(1, ((y = D(a)) == null ? void 0 : y.length) - 1)))
1307
+ if (console.log(232, D(a).slice(1, ((n = D(a)) == null ? void 0 : n.length) - 1)), ((o = D(a).slice(1, ((u = D(a)) == null ? void 0 : u.length) - 1)) == null ? void 0 : o[1]) !== "[") {
1308
+ const _ = $e(D(a).slice(1, ((d = D(a)) == null ? void 0 : d.length) - 1));
1309
+ return {
1310
+ groupName: s,
1311
+ tableColumn: _ == null ? void 0 : _.tableColumns,
1312
+ tableContents: _ == null ? void 0 : _.tableContents,
1313
+ tableColumnPath: _ == null ? void 0 : _.tablePath
1314
+ };
1315
+ } else if (D(a).slice(1, ((h = D(a)) == null ? void 0 : h.length) - 1).includes("{")) {
1316
+ let _ = D(a).slice(1, ((c = D(a)) == null ? void 0 : c.length) - 1), N = _.indexOf("{"), q = _.slice(N, (_ == null ? void 0 : _.length) - N);
1317
+ return (M = (g = we(q)) == null ? void 0 : g.filter((F) => F == null ? void 0 : F.includes("{"))) == null ? void 0 : M.map((F, ae) => {
1318
+ var f;
1319
+ let l = $e(D(F).slice(1, ((f = D(F)) == null ? void 0 : f.length) - 1));
1320
+ return {
1321
+ groupName: ae === 0 ? s : "",
1322
+ tableColumn: l == null ? void 0 : l.tableColumns,
1323
+ tableContents: l == null ? void 0 : l.tableContents,
1324
+ tableColumnPath: l == null ? void 0 : l.tablePath
1325
+ };
1326
+ });
1327
+ } else {
1328
+ const _ = $e(D(a).slice(1, ((b = D(a)) == null ? void 0 : b.length) - 1));
1329
+ return {
1330
+ groupName: s,
1331
+ tableColumn: _ == null ? void 0 : _.tableColumns,
1332
+ tableContents: _ == null ? void 0 : _.tableContents,
1333
+ tableColumnPath: _ == null ? void 0 : _.tablePath
1334
+ };
1335
+ }
1336
+ else {
1337
+ let _ = [];
1338
+ if (pe((v = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : v.replaceAll("'", '"')))
1339
+ _ = JSON.parse((j = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : j.replaceAll("'", '"'));
1340
+ else if (a.includes("(")) {
1341
+ if ((a == null ? void 0 : a[0]) !== "{") {
1342
+ let N = (W = ($ = (T = a == null ? void 0 : a.split("]")) == null ? void 0 : T[0]) == null ? void 0 : $.split("[")) == null ? void 0 : W[1], q = "", F = ((re = (V = (Q = (P = (C = a == null ? void 0 : a.split(")")) == null ? void 0 : C[0]) == null ? void 0 : P.split("(")) == null ? void 0 : Q[1]) == null ? void 0 : V.replaceAll("[", "")) == null ? void 0 : re.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
1343
+ return (oe = F == null ? void 0 : F.split("/")) == null || oe.forEach((ae, l) => {
1344
+ var f;
1345
+ l !== ((f = F == null ? void 0 : F.split("/")) == null ? void 0 : f.length) - 1 && (q = q === "" ? q + ae : q + "/" + ae);
1346
+ }), {
1347
+ groupName: "",
1348
+ extraButton: (m = N == null ? void 0 : N.split(":")) == null ? void 0 : m[((ce = N == null ? void 0 : N.split(":")) == null ? void 0 : ce.length) - 1].replaceAll("'", ""),
1349
+ extraPath: q
1350
+ };
1351
+ } else if (a = a.slice(1, (a == null ? void 0 : a.length) - 1), (a == null ? void 0 : a[0]) !== "[") {
1352
+ let N = Ua(a);
1353
+ return {
1354
+ groupName: N == null ? void 0 : N.groupName,
1355
+ formContents: N == null ? void 0 : N.formContents
1356
+ };
1357
+ } else if ((a == null ? void 0 : a[0]) === "[" && (a == null ? void 0 : a[1]) === "[") {
1358
+ a = a.slice(1, (a == null ? void 0 : a.length) - 1);
1359
+ let N = [];
1360
+ return (ue = (ie = we(a)) == null ? void 0 : ie.filter((q) => q !== ",")) == null || ue.forEach((q) => {
1361
+ var se;
1362
+ Array.isArray(_e(q)) || N.push((se = _e(q)) == null ? void 0 : se.formContents);
1363
+ }), {
1364
+ groupName: s,
1365
+ formContents: N
1366
+ };
1367
+ }
1368
+ } else if (a = "[[" + a + "]]", pe((U = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : U.replaceAll("'", '"')))
1369
+ _ = JSON.parse((B = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : B.replaceAll("'", '"'));
1370
+ else if (a = a.slice(2, a.length - 2), ((z = (H = (G = a == null ? void 0 : a.replace(":", ee)) == null ? void 0 : G.split(ee)) == null ? void 0 : H[1]) == null ? void 0 : z[0]) !== "{") {
1371
+ a = ((S = (K = a == null ? void 0 : a.replace(":", ee)) == null ? void 0 : K.split(ee)) == null ? void 0 : S[0]) + ":{[" + ((L = (O = a == null ? void 0 : a.replace(":", ee)) == null ? void 0 : O.split(ee)) == null ? void 0 : L[1]) + "]}";
1372
+ const N = Ss(a);
1373
+ return N != null && N.tableColumn ? {
1374
+ groupName: N == null ? void 0 : N.groupName,
1375
+ tableColumn: N == null ? void 0 : N.tableColumn,
1376
+ tableContents: N == null ? void 0 : N.tableContents
1377
+ } : {
1378
+ groupName: N == null ? void 0 : N.groupName,
1379
+ formContents: N == null ? void 0 : N.formContents
1380
+ };
1381
+ }
1382
+ return {
1383
+ groupName: s,
1384
+ formContents: _
1385
+ };
1386
+ }
1387
+ }, _e = (e) => Ss(D(e).slice(1, D(e).length - 1)), Ba = (e) => {
1388
+ var a;
1389
+ let s = [];
1390
+ if (!((e == null ? void 0 : e[0]) === "[" && (e == null ? void 0 : e[1]) === "[")) {
1391
+ let r = (a = we(e)) == null ? void 0 : a.filter((i) => i !== ",");
1392
+ r == null || r.forEach((i) => {
1393
+ s.push(_e(i));
1394
+ });
1395
+ }
1396
+ return s;
1397
+ };
1398
+ ne(0);
1399
+ const Ta = (e) => {
1400
+ const s = [];
1401
+ let a = [];
1402
+ return e == null || e.forEach((r, i) => {
1403
+ var t;
1404
+ (a == null ? void 0 : a.length) === 0 ? a.push(r) : (a.push(r), ((t = e[i + 1]) == null ? void 0 : t.key) === "groupName" && (s.push(a), a = []));
1405
+ }), s.push(a), s;
1406
+ }, Ce = ne(0), $a = (e, s) => {
1407
+ var i;
1408
+ let a = [], r = s == null ? void 0 : s.length;
1409
+ return (i = D(s)) == null || i.forEach((t, p) => {
1410
+ let y = [];
1411
+ t == null || t.forEach((n) => {
1412
+ var u, o, d, h, c;
1413
+ if (pe(D(e).replaceAll("'", '"')))
1414
+ (u = JSON.parse(D(e).replaceAll("'", '"'))) == null || u.forEach((g) => {
1415
+ a.push([{
1416
+ key: n == null ? void 0 : n.key,
1417
+ value: (n == null ? void 0 : n.value) + "/" + g
1418
+ }]);
1419
+ });
1420
+ else {
1421
+ y.push(n);
1422
+ let g = [];
1423
+ if (((o = D(e)) == null ? void 0 : o[0]) === "[" && ((d = D(e)) == null ? void 0 : d[1]) === "[") {
1424
+ let M = e.slice(1, (e == null ? void 0 : e.length) - 1);
1425
+ const b = Ba(M.trim());
1426
+ b == null || b.forEach((v) => {
1427
+ var j;
1428
+ v != null && v.tableColumn ? (y.push({
1429
+ key: "groupName",
1430
+ value: v == null ? void 0 : v.groupName
1431
+ }), y.push({
1432
+ key: "tableColumn",
1433
+ value: v == null ? void 0 : v.tableColumn
1434
+ }), y.push({
1435
+ key: "tableContents",
1436
+ value: v == null ? void 0 : v.tableContents
1437
+ }), y.push({
1438
+ key: "tablePath",
1439
+ value: (v == null ? void 0 : v.tableColumnPath) ?? ""
1440
+ })) : v != null && v.extraButton ? (y.push({
1441
+ key: "groupName",
1442
+ value: v == null ? void 0 : v.groupName
1443
+ }), y.push({
1444
+ key: "extraButton",
1445
+ value: v == null ? void 0 : v.extraButton,
1446
+ path: v == null ? void 0 : v.extraPath
1447
+ })) : (y.push({
1448
+ key: "groupName",
1449
+ value: v == null ? void 0 : v.groupName
1450
+ }), y.push({
1451
+ key: "formContent",
1452
+ value: r === 1 ? v == null ? void 0 : v.formContents : (j = v == null ? void 0 : v.formContents) == null ? void 0 : j[p]
1453
+ }));
1454
+ });
1455
+ } else
1456
+ g = _e(D(e.trim())), g != null && g.tableColumn ? (y.push({
1457
+ key: "groupName",
1458
+ value: g == null ? void 0 : g.groupName
1459
+ }), y.push({
1460
+ key: "tableColumn",
1461
+ value: g == null ? void 0 : g.tableColumn
1462
+ }), y.push({
1463
+ key: "tableContents",
1464
+ value: r !== 1 ? [(h = g == null ? void 0 : g.tableContents) == null ? void 0 : h[p]] : g == null ? void 0 : g.tableContents
1465
+ })) : (y.push({
1466
+ key: "groupName",
1467
+ value: g == null ? void 0 : g.groupName
1468
+ }), y.push({
1469
+ key: "formContent",
1470
+ value: r !== 1 ? [(c = g == null ? void 0 : g.formContents) == null ? void 0 : c[p]] : g == null ? void 0 : g.formContents
1471
+ }));
1472
+ }
1473
+ }), a.push(y);
1474
+ }), a;
1475
+ }, Ca = (e) => {
1476
+ var i, t;
1477
+ const s = [], a = La((i = D(e)) == null ? void 0 : i.key);
1478
+ return a && (a == null ? void 0 : a.length) > 0 && (a == null || a.forEach((p) => {
1479
+ s.push([{
1480
+ key: "contentPath",
1481
+ value: p
1482
+ }]);
1483
+ })), $a((t = D(e)) == null ? void 0 : t.value, s);
1484
+ }, Ja = (e) => {
1485
+ var a;
1486
+ return (a = D(e)) == null ? void 0 : a.map((r) => {
1487
+ var p, y;
1488
+ let i = [];
1489
+ return (p = Ta(r == null ? void 0 : r.filter((n) => (n == null ? void 0 : n.key) !== "contentPath"))) == null || p.forEach((n) => {
1490
+ var d, h, c, g, M, b, v, j, U, B, G, H, z, K;
1491
+ let u = [];
1492
+ if (n.length === 0)
1493
+ return;
1494
+ let o = (h = (d = n.find((S) => (S == null ? void 0 : S.key) === "tableColumn")) == null ? void 0 : d.value) == null ? void 0 : h.map((S) => ({
1495
+ label: S
1496
+ }));
1497
+ if (Array.isArray(o) && ((c = n == null ? void 0 : n.find((S) => (S == null ? void 0 : S.key) === "tablePath")) != null && c.value && ((g = n == null ? void 0 : n.find((S) => (S == null ? void 0 : S.key) === "tablePath")) == null ? void 0 : g.value) !== "" && o.push({
1498
+ columnPath: (M = n == null ? void 0 : n.find((S) => (S == null ? void 0 : S.key) === "tablePath")) == null ? void 0 : M.value
1499
+ }), o = (b = D(o)) == null ? void 0 : b.map((S) => {
1500
+ var O, L, T, $, W, C, P, Q, V;
1501
+ return S != null && S.label && !((O = S == null ? void 0 : S.label) != null && O.includes("[")) ? S : {
1502
+ label: (T = (L = D(S == null ? void 0 : S.label)) == null ? void 0 : L.split("[")) == null ? void 0 : T[0],
1503
+ formMenuSelect: (Q = (P = (C = (W = ($ = D(S == null ? void 0 : S.label)) == null ? void 0 : $.split("[")) == null ? void 0 : W[1]) == null ? void 0 : C.split("]")) == null ? void 0 : P[0]) == null ? void 0 : Q.split("/"),
1504
+ columnPath: (S == null ? void 0 : S.columnPath) ?? "",
1505
+ isRoute: (V = S == null ? void 0 : S.label) == null ? void 0 : V.includes("(")
1506
+ };
1507
+ }), o.length !== 0 && o.push({
1508
+ label: "操作"
1509
+ })), n != null && n.find((S) => (S == null ? void 0 : S.key) === "formContent")) {
1510
+ const S = (v = n.find((L) => (L == null ? void 0 : L.key) === "formContent")) == null ? void 0 : v.value;
1511
+ let O = [];
1512
+ Array.isArray(S) && S.forEach((L) => {
1513
+ let T = 1;
1514
+ Array.isArray(L) && (L != null && L.every(($) => !Array.isArray($))) && (T = L.length), L && (Array.isArray(L) || (L = [L]), L.forEach(($) => {
1515
+ Array.isArray($) || ($ = [$]);
1516
+ let W = [];
1517
+ $ == null || $.forEach((C) => {
1518
+ var P, Q, V, re, oe, ce, m, ie, ue, _, N, q, se, F, ae, l;
1519
+ if (Ce.value++, !((Q = (P = Object.values(C)) == null ? void 0 : P[0]) != null && Q.includes("/") && ((re = (V = Object.values(C)) == null ? void 0 : V[0]) != null && re.includes("["))))
1520
+ W.push({
1521
+ id: Ce.value,
1522
+ key: (oe = Object.keys(C)) == null ? void 0 : oe[0],
1523
+ value: (ce = Object.values(C)) == null ? void 0 : ce[0],
1524
+ width: Math.max(T, $.length)
1525
+ });
1526
+ else {
1527
+ let f = (_ = (ue = (ie = (m = Object.values(C)) == null ? void 0 : m[0]) == null ? void 0 : ie.split("[")) == null ? void 0 : ue[0]) == null ? void 0 : _.split("/"), k = (se = (q = (N = Object.values(C)) == null ? void 0 : N[0]) == null ? void 0 : q.split("[")) == null ? void 0 : se[1], A = (ae = (F = k == null ? void 0 : k.slice(0, k.length - 1)) == null ? void 0 : F.split(":")) == null ? void 0 : ae.map((w) => w.replaceAll("'", "")), E = A;
1528
+ (A == null ? void 0 : A.length) === 1 && E.unshift(""), W.push({
1529
+ id: Ce.value,
1530
+ key: (l = Object.keys(C)) == null ? void 0 : l[0],
1531
+ value: "",
1532
+ width: Math.max(T, $.length),
1533
+ type: "Select",
1534
+ optionUrl: {
1535
+ type: "Select",
1536
+ selectRelateType: "关联绑定列",
1537
+ menuSelect: f,
1538
+ groupSelect: E
1539
+ }
1540
+ });
1541
+ }
1542
+ }), W == null || W.forEach((C) => {
1543
+ O.push(C);
1544
+ });
1545
+ }));
1546
+ }), u.push({
1547
+ key: "formFlex",
1548
+ contents: ""
1549
+ }), u.push({
1550
+ key: "formContent",
1551
+ contents: O
1552
+ }), i.push({
1553
+ comp: "Form",
1554
+ compData: D(u),
1555
+ name: (U = (j = n.find((L) => (L == null ? void 0 : L.key) === "groupName")) == null ? void 0 : j.value) == null ? void 0 : U.replaceAll("'", "")
1556
+ });
1557
+ } else n != null && n.find((S) => (S == null ? void 0 : S.key) === "extraButton") ? i.push({
1558
+ key: "extraButton",
1559
+ value: {
1560
+ method: (B = n == null ? void 0 : n.find((S) => (S == null ? void 0 : S.key) === "extraButton")) == null ? void 0 : B.value,
1561
+ value: [],
1562
+ path: (G = n == null ? void 0 : n.find((S) => (S == null ? void 0 : S.key) === "extraButton")) == null ? void 0 : G.path
1563
+ }
1564
+ }) : (o == null ? void 0 : o.length) !== 0 && (u.push({
1565
+ key: "header",
1566
+ contents: o
1567
+ }), u.push({
1568
+ key: "tableContents",
1569
+ contents: (H = n.find((S) => (S == null ? void 0 : S.key) === "tableContents")) == null ? void 0 : H.value
1570
+ }), u.push({
1571
+ key: "extraButton",
1572
+ contents: [{ label: "新增" }]
1573
+ }), u.push({
1574
+ key: "rowButton",
1575
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
1576
+ }), i.push({
1577
+ comp: "Table",
1578
+ compData: u,
1579
+ name: (K = (z = n.find((S) => (S == null ? void 0 : S.key) === "groupName")) == null ? void 0 : z.value) == null ? void 0 : K.replaceAll("'", "")
1580
+ }));
1581
+ }), {
1582
+ comp: "Group",
1583
+ compData: [{
1584
+ key: "groupContents",
1585
+ contents: i
1586
+ }],
1587
+ name: (y = r == null ? void 0 : r.find((n) => (n == null ? void 0 : n.key) === "contentPath")) == null ? void 0 : y.value
1588
+ };
1589
+ });
1590
+ }, Ga = (e) => {
1591
+ var y, n;
1592
+ let s = [];
1593
+ const a = Ia(D(e));
1594
+ s.push(a);
1595
+ const r = Na(D(e));
1596
+ r && s.push(r);
1597
+ const i = xa(D(e));
1598
+ i && ((y = D(i)) == null || y.forEach((u) => {
1599
+ s.push(u);
1600
+ }));
1601
+ const t = (n = D(e)) == null ? void 0 : n.filter((u) => {
1602
+ var o;
1603
+ return (o = u == null ? void 0 : u.key) == null ? void 0 : o.includes("(");
1604
+ }).map((u) => Ca(u)).filter((u) => (u == null ? void 0 : u.length) !== 0);
1605
+ let p = [];
1606
+ return t == null || t.forEach((u) => {
1607
+ u == null || u.forEach((o) => {
1608
+ p != null && p.find((d) => {
1609
+ var h, c;
1610
+ return ((h = d == null ? void 0 : d.find((g) => (g == null ? void 0 : g.key) === "contentPath")) == null ? void 0 : h.value) === ((c = o == null ? void 0 : o.find((g) => (g == null ? void 0 : g.key) === "contentPath")) == null ? void 0 : c.value);
1611
+ }) ? p = p == null ? void 0 : p.map((d) => {
1612
+ var c, g;
1613
+ return ((c = d == null ? void 0 : d.find((M) => (M == null ? void 0 : M.key) === "contentPath")) == null ? void 0 : c.value) === ((g = o == null ? void 0 : o.find((M) => (M == null ? void 0 : M.key) === "contentPath")) == null ? void 0 : g.value) && (d = [...d, ...o.filter((M) => (M == null ? void 0 : M.key) !== "contentPath")]), d;
1614
+ }) : p.push(o);
1615
+ });
1616
+ }), s = [...s, ...Ja(p)], s;
1617
+ }, kl = (e) => {
1618
+ var i, t, p;
1619
+ const s = (t = (i = oa(D(e))) == null ? void 0 : i.filter((y) => y !== "")) == null ? void 0 : t.map((y) => y.replaceAll("<", "[").replaceAll(">", "]")), a = (p = s == null ? void 0 : s.filter((y) => !y.includes("/*"))) == null ? void 0 : p.map((y) => ca(y));
1620
+ return Ga(a);
1621
+ };
1622
+ export {
1623
+ cl as _,
1624
+ yl as a,
1625
+ ul as b,
1626
+ dl as c,
1627
+ pl as d,
1628
+ Al as e,
1629
+ vl as f,
1630
+ hl as g,
1631
+ gl as h,
1632
+ kl as i,
1633
+ ol as j,
1634
+ fl as o,
1635
+ Z as s
1636
+ };