ss-component-new 1.1.415 → 1.1.416

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