ss-component-new 1.1.158 → 1.1.161

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 (77) hide show
  1. package/dist/array-D3McBpCm.js +2286 -0
  2. package/dist/array-fzkAG4pE.cjs +7 -0
  3. package/dist/{cloneDeep-Dc2w_Lu-.cjs → cloneDeep-DaNfQcjc.cjs} +1 -1
  4. package/dist/{cloneDeep-B9TiLsmE.js → cloneDeep-FaEstWW1.js} +1 -1
  5. package/dist/{formToTable-CmnIz37U.cjs → formToTable-CI9HkxzH.cjs} +1 -1
  6. package/dist/{formToTable-B28kxNhk.js → formToTable-DulKdHvA.js} +1 -1
  7. package/dist/{index-9F99HJnT.cjs → index-7g-oQMWb.cjs} +1 -1
  8. package/dist/{index-nlIjUSGz.js → index-B15Qhv0b.js} +10 -10
  9. package/dist/{index-Ct9IgtJt.cjs → index-BCWDrk9e.cjs} +1 -1
  10. package/dist/{index-CSx5dw6A.js → index-BNCl2THG.js} +1 -1
  11. package/dist/{index-CEf1eis_.js → index-BNd-Yjaf.js} +6 -6
  12. package/dist/{index-4oaP54l6.cjs → index-BWLbJFrZ.cjs} +1 -1
  13. package/dist/{index-BAE5DHbs.cjs → index-BblT-Wei.cjs} +1 -1
  14. package/dist/{index-ClaPKjMY.cjs → index-BdPgrQA5.cjs} +1 -1
  15. package/dist/{index-D4ZyKx-J.js → index-BlBLooWj.js} +4 -4
  16. package/dist/{index-DLX3ew9N.cjs → index-Bsxvkn-J.cjs} +1 -1
  17. package/dist/{index-BRnmis9p.js → index-BxExFr40.js} +7 -7
  18. package/dist/{index-Bn-fFaQ0.cjs → index-C5FTj31Q.cjs} +1 -1
  19. package/dist/{index-BTvG_TlS.cjs → index-C5oCT7lx.cjs} +1 -1
  20. package/dist/{index-Dx9uzuM4.cjs → index-CEVzdxIG.cjs} +1 -1
  21. package/dist/{index-D3ShGz-b.js → index-COC8_GWY.js} +7 -7
  22. package/dist/{index-CgfHUdXv.cjs → index-CWWnMEv5.cjs} +1 -1
  23. package/dist/{index-C06nP7rT.js → index-CZHylmSN.js} +1 -1
  24. package/dist/{index-wO8Y6Vhy.js → index-CavexFlx.js} +6 -6
  25. package/dist/index-CdPiw9D5.js +371 -0
  26. package/dist/{index-Cfu78qcq.cjs → index-CiK2RLMx.cjs} +1 -1
  27. package/dist/{index-CLWDpaPA.js → index-CpTaEAqS.js} +7 -7
  28. package/dist/{index-CoEZVnFp.cjs → index-Cq-MN1j3.cjs} +1 -1
  29. package/dist/{index-BZFh2O6g.js → index-Cz-XVBX4.js} +165 -161
  30. package/dist/{index-CHSuDrCC.js → index-D9eYcFtk.js} +7 -7
  31. package/dist/index-DEdjd75E.cjs +1 -0
  32. package/dist/{index-ZO9dn127.cjs → index-DGib8djg.cjs} +1 -1
  33. package/dist/{index-BolODvJn.js → index-DK2QCFcU.js} +7 -7
  34. package/dist/index-DQQZMSwu.cjs +9 -0
  35. package/dist/{index-CggFByLx.js → index-DR4DW87v.js} +1 -1
  36. package/dist/{index-BMobkWUk.js → index-DRGsKfTw.js} +1 -1
  37. package/dist/index-DaMT_y7A.js +3285 -0
  38. package/dist/{index-DyT_adTl.js → index-DjVx0-ul.js} +4 -4
  39. package/dist/{index-DOA8vwcd.js → index-H9EvDEyq.js} +1 -1
  40. package/dist/{index-ngbkqVWp.js → index-P-4EFLAh.js} +1 -1
  41. package/dist/{index-DlXN1Cqe.cjs → index-bQxx1xoD.cjs} +1 -1
  42. package/dist/{index-a20EDdCQ.cjs → index-hvCHIE2L.cjs} +1 -1
  43. package/dist/{index-BDMSfJjz.cjs → index-tVjfsULl.cjs} +1 -1
  44. package/dist/{index-OLMx_d3p.cjs → index-yC1bUlwP.cjs} +1 -1
  45. package/dist/index-yjOzDX1Y.cjs +1 -0
  46. package/dist/{index-Dc10GzMY.js → index-yymwczw9.js} +6 -6
  47. package/dist/{index.vue_vue_type_script_setup_true_lang-UaxxHkMj.js → index.vue_vue_type_script_setup_true_lang-BoVsomuR.js} +65 -65
  48. package/dist/index.vue_vue_type_script_setup_true_lang-bVik2vzZ.cjs +1 -0
  49. package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-CFIrX50I.cjs +1 -0
  50. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-Bq5WH8y1.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-MH9TkNaa.js} +13 -12
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-KZcDy7L7.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DIlGg4WQ.js} +6 -6
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BOx0FpMh.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-FstFNbRt.cjs} +1 -1
  53. package/dist/{login-CYnubgtI.cjs → login-BjxfL8al.cjs} +1 -1
  54. package/dist/{login-DeHsN52A.js → login-CRvzlpwj.js} +3 -3
  55. package/dist/{main-C0_fYt9z.cjs → main-CVB3zDca.cjs} +1 -1
  56. package/dist/{main-C7F2zbjR.js → main-C_-0pI64.js} +6 -6
  57. package/dist/{menu-CgAplFgC.cjs → menu-BZ0t8sRY.cjs} +1 -1
  58. package/dist/{menu-CltkqT7g.js → menu-DNrY6jCe.js} +1 -1
  59. package/dist/{modelComp-BcmEYGm9.cjs → modelComp-5IdEbYDb.cjs} +1 -1
  60. package/dist/{modelComp-P5x7IjI9.js → modelComp-D9-ntgHr.js} +1 -1
  61. package/dist/{request-XLI2NiAW.cjs → request-CCnzeuCs.cjs} +1 -1
  62. package/dist/{request-CuCamIQ7.js → request-Dy_4Mgsd.js} +1 -1
  63. package/dist/ss-component.cjs +1 -1
  64. package/dist/ss-component.css +1 -1
  65. package/dist/ss-component.js +7 -7
  66. package/dist/ss-component2.cjs +1 -1
  67. package/dist/ss-component2.js +1 -1
  68. package/package.json +3 -2
  69. package/dist/array-C8zCM38e.cjs +0 -7
  70. package/dist/array-CF1EYSXS.js +0 -2270
  71. package/dist/index-BKg6M7MO.cjs +0 -1
  72. package/dist/index-Bjgg7gom.cjs +0 -6
  73. package/dist/index-DtVTJ3uF.js +0 -363
  74. package/dist/index-Du2g4zTf.js +0 -2835
  75. package/dist/index-Ws_Nci0i.cjs +0 -1
  76. package/dist/index.vue_vue_type_script_setup_true_lang-AW9Z9ebb.cjs +0 -1
  77. package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-CI5f4aiI.cjs +0 -1
@@ -0,0 +1,2286 @@
1
+ import { g as Cl, s as Al } from "./index-Cz-XVBX4.js";
2
+ import { _ as $l, s as Ol } from "./index.vue_vue_type_script_setup_true_lang-BoVsomuR.js";
3
+ import { ref as L, watch as te, resolveComponent as Ve, createElementBlock as q, openBlock as Z, createElementVNode as w, createVNode as z, toDisplayString as K, withCtx as ne, createTextVNode as ce, Fragment as de, renderList as _e, createBlock as Se, resolveDynamicComponent as Pe, createCommentVNode as _l } from "vue";
4
+ import { s as ue, a as el, b as vl } from "./index-DaMT_y7A.js";
5
+ import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import { U as Be, g as Ue, a as je, i as Fe, S as ke, b as xl, c as u } from "./cloneDeep-FaEstWW1.js";
7
+ import { _ as Tl } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
8
+ import { g as Je } from "./index-P-4EFLAh.js";
9
+ import { p as xe, a as El } from "./request-Dy_4Mgsd.js";
10
+ import { s as Te, u as Dl } from "./menu-DNrY6jCe.js";
11
+ import { u as ll } from "./modelComp-D9-ntgHr.js";
12
+ import { M as Nl, S as Le, e as Sl, i as Re, b as we } from "./index-DK2QCFcU.js";
13
+ var Pl = "__lodash_hash_undefined__";
14
+ function Bl(e) {
15
+ return this.__data__.set(e, Pl), this;
16
+ }
17
+ function Ul(e) {
18
+ return this.__data__.has(e);
19
+ }
20
+ function me(e) {
21
+ var t = -1, n = e == null ? 0 : e.length;
22
+ for (this.__data__ = new Nl(); ++t < n; )
23
+ this.add(e[t]);
24
+ }
25
+ me.prototype.add = me.prototype.push = Bl;
26
+ me.prototype.has = Ul;
27
+ function jl(e, t) {
28
+ for (var n = -1, l = e == null ? 0 : e.length; ++n < l; )
29
+ if (t(e[n], n, e))
30
+ return !0;
31
+ return !1;
32
+ }
33
+ function Fl(e, t) {
34
+ return e.has(t);
35
+ }
36
+ var Jl = 1, Ll = 2;
37
+ function tl(e, t, n, l, a, s) {
38
+ var o = n & Jl, p = e.length, i = t.length;
39
+ if (p != i && !(o && i > p))
40
+ return !1;
41
+ var d = s.get(e), m = s.get(t);
42
+ if (d && m)
43
+ return d == t && m == e;
44
+ var _ = -1, $ = !0, v = n & Ll ? new me() : void 0;
45
+ for (s.set(e, t), s.set(t, e); ++_ < p; ) {
46
+ var C = e[_], E = t[_];
47
+ if (l)
48
+ var h = o ? l(E, C, _, t, e, s) : l(C, E, _, e, t, s);
49
+ if (h !== void 0) {
50
+ if (h)
51
+ continue;
52
+ $ = !1;
53
+ break;
54
+ }
55
+ if (v) {
56
+ if (!jl(t, function(f, g) {
57
+ if (!Fl(v, g) && (C === f || a(C, f, n, l, s)))
58
+ return v.push(g);
59
+ })) {
60
+ $ = !1;
61
+ break;
62
+ }
63
+ } else if (!(C === E || a(C, E, n, l, s))) {
64
+ $ = !1;
65
+ break;
66
+ }
67
+ }
68
+ return s.delete(e), s.delete(t), $;
69
+ }
70
+ function Rl(e) {
71
+ var t = -1, n = Array(e.size);
72
+ return e.forEach(function(l, a) {
73
+ n[++t] = [a, l];
74
+ }), n;
75
+ }
76
+ function wl(e) {
77
+ var t = -1, n = Array(e.size);
78
+ return e.forEach(function(l) {
79
+ n[++t] = l;
80
+ }), n;
81
+ }
82
+ var Gl = 1, Ml = 2, Il = "[object Boolean]", Hl = "[object Date]", Wl = "[object Error]", Zl = "[object Map]", Kl = "[object Number]", ql = "[object RegExp]", zl = "[object Set]", Ql = "[object String]", Xl = "[object Symbol]", Yl = "[object ArrayBuffer]", Vl = "[object DataView]", Ge = Le ? Le.prototype : void 0, Ce = Ge ? Ge.valueOf : void 0;
83
+ function et(e, t, n, l, a, s, o) {
84
+ switch (n) {
85
+ case Vl:
86
+ if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
87
+ return !1;
88
+ e = e.buffer, t = t.buffer;
89
+ case Yl:
90
+ return !(e.byteLength != t.byteLength || !s(new Be(e), new Be(t)));
91
+ case Il:
92
+ case Hl:
93
+ case Kl:
94
+ return Sl(+e, +t);
95
+ case Wl:
96
+ return e.name == t.name && e.message == t.message;
97
+ case ql:
98
+ case Ql:
99
+ return e == t + "";
100
+ case Zl:
101
+ var p = Rl;
102
+ case zl:
103
+ var i = l & Gl;
104
+ if (p || (p = wl), e.size != t.size && !i)
105
+ return !1;
106
+ var d = o.get(e);
107
+ if (d)
108
+ return d == t;
109
+ l |= Ml, o.set(e, t);
110
+ var m = tl(p(e), p(t), l, a, s, o);
111
+ return o.delete(e), m;
112
+ case Xl:
113
+ if (Ce)
114
+ return Ce.call(e) == Ce.call(t);
115
+ }
116
+ return !1;
117
+ }
118
+ var lt = 1, tt = Object.prototype, nt = tt.hasOwnProperty;
119
+ function at(e, t, n, l, a, s) {
120
+ var o = n & lt, p = Ue(e), i = p.length, d = Ue(t), m = d.length;
121
+ if (i != m && !o)
122
+ return !1;
123
+ for (var _ = i; _--; ) {
124
+ var $ = p[_];
125
+ if (!(o ? $ in t : nt.call(t, $)))
126
+ return !1;
127
+ }
128
+ var v = s.get(e), C = s.get(t);
129
+ if (v && C)
130
+ return v == t && C == e;
131
+ var E = !0;
132
+ s.set(e, t), s.set(t, e);
133
+ for (var h = o; ++_ < i; ) {
134
+ $ = p[_];
135
+ var f = e[$], g = t[$];
136
+ if (l)
137
+ var k = o ? l(g, f, $, t, e, s) : l(f, g, $, e, t, s);
138
+ if (!(k === void 0 ? f === g || a(f, g, n, l, s) : k)) {
139
+ E = !1;
140
+ break;
141
+ }
142
+ h || (h = $ == "constructor");
143
+ }
144
+ if (E && !h) {
145
+ var c = e.constructor, r = t.constructor;
146
+ c != r && "constructor" in e && "constructor" in t && !(typeof c == "function" && c instanceof c && typeof r == "function" && r instanceof r) && (E = !1);
147
+ }
148
+ return s.delete(e), s.delete(t), E;
149
+ }
150
+ var st = 1, Me = "[object Arguments]", Ie = "[object Array]", pe = "[object Object]", rt = Object.prototype, He = rt.hasOwnProperty;
151
+ function ot(e, t, n, l, a, s) {
152
+ var o = Re(e), p = Re(t), i = o ? Ie : je(e), d = p ? Ie : je(t);
153
+ i = i == Me ? pe : i, d = d == Me ? pe : d;
154
+ var m = i == pe, _ = d == pe, $ = i == d;
155
+ if ($ && Fe(e)) {
156
+ if (!Fe(t))
157
+ return !1;
158
+ o = !0, m = !1;
159
+ }
160
+ if ($ && !m)
161
+ return s || (s = new ke()), o || xl(e) ? tl(e, t, n, l, a, s) : et(e, t, i, n, l, a, s);
162
+ if (!(n & st)) {
163
+ var v = m && He.call(e, "__wrapped__"), C = _ && He.call(t, "__wrapped__");
164
+ if (v || C) {
165
+ var E = v ? e.value() : e, h = C ? t.value() : t;
166
+ return s || (s = new ke()), a(E, h, n, l, s);
167
+ }
168
+ }
169
+ return $ ? (s || (s = new ke()), at(e, t, n, l, a, s)) : !1;
170
+ }
171
+ function nl(e, t, n, l, a) {
172
+ return e === t ? !0 : e == null || t == null || !we(e) && !we(t) ? e !== e && t !== t : ot(e, t, n, l, nl, a);
173
+ }
174
+ function ct(e, t) {
175
+ return nl(e, t);
176
+ }
177
+ const ut = { class: "table-operate-content" }, pt = { class: "table-operate-item" }, it = { class: "operate-title" }, ft = { class: "operate-content" }, dt = { class: "operate-title" }, ht = { class: "operate-content" }, yt = { class: "operate-title" }, mt = { class: "operate-content" }, gt = { class: "operate-content" }, bt = {
178
+ __name: "operate",
179
+ props: {
180
+ itemContents: {
181
+ type: Array,
182
+ default: () => []
183
+ },
184
+ originalItemContents: {
185
+ type: Array,
186
+ default: () => []
187
+ }
188
+ },
189
+ emits: ["change"],
190
+ setup(e, { emit: t }) {
191
+ const n = e, l = t, a = L([]), s = L([]), o = L([]), p = L([{
192
+ label: "按钮名称",
193
+ prop: "label",
194
+ type: "edit"
195
+ }, {
196
+ label: "按钮类型",
197
+ prop: "type",
198
+ type: "edit"
199
+ }, {
200
+ label: "按钮背景颜色",
201
+ prop: "background",
202
+ type: "edit",
203
+ columnType: "Color"
204
+ }, {
205
+ label: "操作",
206
+ prop: "operate",
207
+ type: "operate",
208
+ sortable: !1
209
+ }]), i = L([{
210
+ label: "标签名称",
211
+ prop: "label",
212
+ type: "edit"
213
+ }, {
214
+ label: "标签类型",
215
+ prop: "type",
216
+ type: "edit"
217
+ }, {
218
+ label: "按钮文字颜色",
219
+ prop: "textColor",
220
+ type: "edit",
221
+ columnType: "Color"
222
+ }, {
223
+ label: "操作",
224
+ prop: "operate",
225
+ type: "operate",
226
+ sortable: !1
227
+ }]), d = L([]), m = L(0), _ = L([{
228
+ name: "isPagination",
229
+ label: "是否显示分页",
230
+ type: "Switch",
231
+ value: !0
232
+ }]), $ = [{
233
+ label: "标签名",
234
+ prop: "label",
235
+ type: "edit"
236
+ }, {
237
+ label: "属性名",
238
+ prop: "prop",
239
+ type: "edit"
240
+ }, {
241
+ label: "宽度",
242
+ prop: "width",
243
+ type: "edit",
244
+ columnType: "Number"
245
+ }, {
246
+ label: "是否固定列",
247
+ prop: "fixed",
248
+ type: "edit",
249
+ columnType: "Radio",
250
+ contents: [{
251
+ label: "left",
252
+ value: "左"
253
+ }, {
254
+ label: "right",
255
+ value: "右"
256
+ }]
257
+ }, {
258
+ label: "是否支持排序",
259
+ prop: "sortable",
260
+ type: "edit",
261
+ columnType: "Switch"
262
+ }, {
263
+ label: "文本所在位置",
264
+ prop: "align",
265
+ type: "edit",
266
+ columnType: "Radio",
267
+ contents: [{
268
+ label: "left",
269
+ value: "左"
270
+ }, {
271
+ label: "center",
272
+ value: "中"
273
+ }, {
274
+ label: "right",
275
+ value: "右"
276
+ }]
277
+ }, {
278
+ label: "溢出悬浮文字",
279
+ prop: "showOverflowTooltip",
280
+ type: "edit",
281
+ columnType: "Switch"
282
+ }, {
283
+ label: "是否不可拖动",
284
+ prop: "isNotDrag",
285
+ type: "edit",
286
+ columnType: "Switch"
287
+ }, {
288
+ label: "是否可编辑列名",
289
+ //暂不支持
290
+ prop: "isEditCol",
291
+ type: "edit",
292
+ columnType: "Switch"
293
+ }, {
294
+ label: "是否出现在附属界面",
295
+ //暂不支持
296
+ prop: "isOperate",
297
+ type: "edit",
298
+ columnType: "Switch"
299
+ }, {
300
+ label: "操作",
301
+ prop: "operate",
302
+ type: "operate",
303
+ sortable: !1
304
+ }], v = (c) => {
305
+ let r = u(a.value);
306
+ const y = r == null ? void 0 : r.find((A) => A.key === "page");
307
+ (y == null ? void 0 : y.contents) !== void 0 ? r = r == null ? void 0 : r.map((A) => ((A == null ? void 0 : A.key) === "page" && (A.contents = c == null ? void 0 : c.isPagination), A)) : r.push({
308
+ key: "page",
309
+ contents: c == null ? void 0 : c.isPagination
310
+ }), a.value = r;
311
+ };
312
+ te(
313
+ () => n.originalItemContents,
314
+ () => {
315
+ var c, r, y, A, O, P, x, U, G, T, S, N, D;
316
+ !n.originalItemContents || n.originalItemContents.length === 0 || (a.value = u(n.originalItemContents), s.value = (r = (c = a.value) == null ? void 0 : c.find((b) => (b == null ? void 0 : b.key) === "header")) == null ? void 0 : r.contents, o.value = (A = (y = a.value) == null ? void 0 : y.find((b) => (b == null ? void 0 : b.key) === "rowButton")) == null ? void 0 : A.contents, p.value = (P = (O = a.value) == null ? void 0 : O.find((b) => (b == null ? void 0 : b.key) === "extraButton")) == null ? void 0 : P.contents, _.value = (U = (x = a.value) == null ? void 0 : x.find((b) => (b == null ? void 0 : b.key) === "page")) != null && U.contents ? [{
317
+ name: "isPagination",
318
+ label: "是否显示分页",
319
+ type: "Switch",
320
+ value: (T = (G = a.value) == null ? void 0 : G.find((b) => (b == null ? void 0 : b.key) === "page")) == null ? void 0 : T.contents
321
+ }] : [{
322
+ name: "isPagination",
323
+ label: "是否显示分页",
324
+ type: "Switch",
325
+ value: !0
326
+ }], s.value = (S = s.value) == null ? void 0 : S.map((b, B) => b = {
327
+ label: (b == null ? void 0 : b.label) ?? "",
328
+ prop: (b == null ? void 0 : b.label) === "操作" ? "operate" : b == null ? void 0 : b.prop,
329
+ width: b != null && b.width ? parseInt(b.width) : "",
330
+ fixed: (b == null ? void 0 : b.fixed) ?? void 0,
331
+ sortable: (b == null ? void 0 : b.sortable) ?? !1,
332
+ align: (b == null ? void 0 : b.align) ?? "center",
333
+ showOverflowTooltip: (b == null ? void 0 : b.showOverflowTooltip) ?? !0,
334
+ isNotDrag: (b == null ? void 0 : b.isNotDrag) ?? !1,
335
+ isEditCol: (b == null ? void 0 : b.isEditCol) ?? !1,
336
+ isOperate: (b == null ? void 0 : b.isOperate) ?? !1,
337
+ id: (b == null ? void 0 : b.id) ?? B
338
+ }), o.value = (N = o.value) == null ? void 0 : N.map((b, B) => b = {
339
+ label: (b == null ? void 0 : b.label) ?? "",
340
+ type: (b == null ? void 0 : b.type) ?? "",
341
+ textColor: (b == null ? void 0 : b.textColor) ?? "#000000",
342
+ id: (b == null ? void 0 : b.id) ?? B
343
+ }), p.value = (D = p.value) == null ? void 0 : D.map((b, B) => b = {
344
+ label: (b == null ? void 0 : b.label) ?? "",
345
+ type: (b == null ? void 0 : b.type) ?? "",
346
+ background: (b == null ? void 0 : b.textColor) ?? "#FFFFFF",
347
+ id: (b == null ? void 0 : b.id) ?? B
348
+ }));
349
+ },
350
+ { deep: !0, immediate: !0 }
351
+ ), te(
352
+ () => _.value,
353
+ () => {
354
+ var y;
355
+ let c = u(a.value);
356
+ const r = c == null ? void 0 : c.find((A) => A.key === "page");
357
+ r != null && r.contents ? c = c == null ? void 0 : c.map((A) => {
358
+ var O;
359
+ return (A == null ? void 0 : A.key) === "page" && (A.contents = (O = _.value) == null ? void 0 : O[0].value), A;
360
+ }) : c.push({
361
+ key: "page",
362
+ contents: (y = _.value) == null ? void 0 : y[0].value
363
+ }), a.value = c;
364
+ },
365
+ { immediate: !0, deep: !0 }
366
+ );
367
+ const C = () => {
368
+ const c = u(s.value);
369
+ let r = u(a.value);
370
+ c.push({
371
+ label: "",
372
+ prop: "",
373
+ width: "",
374
+ fixed: void 0,
375
+ sortable: !1,
376
+ align: "center",
377
+ showOverflowTooltip: !0,
378
+ isNotDrag: !1,
379
+ isEditCol: !1,
380
+ isOperate: !1,
381
+ id: m.value
382
+ }), s.value = c, m.value++;
383
+ const y = r == null ? void 0 : r.find((A) => (A == null ? void 0 : A.key) === "header");
384
+ y != null && y.contents ? (y.contents = c, r = r == null ? void 0 : r.map((A) => ((A == null ? void 0 : A.key) === "header" && (A.contents = c), A))) : r.push({
385
+ key: "header",
386
+ contents: c
387
+ }), a.value = r;
388
+ }, E = () => {
389
+ const c = u(o.value);
390
+ let r = u(a.value);
391
+ c.push({
392
+ label: "",
393
+ type: "",
394
+ textColor: "#000000",
395
+ id: m.value
396
+ }), o.value = c, m.value++;
397
+ const y = r == null ? void 0 : r.find((A) => (A == null ? void 0 : A.key) === "rowButton");
398
+ y != null && y.contents ? (y.contents = c, r = r == null ? void 0 : r.map((A) => ((A == null ? void 0 : A.key) === "rowButton" && (A.contents = c), A))) : r.push({
399
+ key: "rowButton",
400
+ contents: c
401
+ }), a.value = r;
402
+ }, h = () => {
403
+ const c = u(d.value);
404
+ let r = u(a.value);
405
+ c.push({
406
+ label: "",
407
+ type: "",
408
+ background: "#FFFFFF",
409
+ id: m.value
410
+ }), d.value = c, m.value++;
411
+ const y = r == null ? void 0 : r.find((A) => (A == null ? void 0 : A.key) === "extraButton");
412
+ y != null && y.contents ? (y.contents = c, r = r == null ? void 0 : r.map((A) => ((A == null ? void 0 : A.key) === "extraButton" && (A.contents = c), A))) : r.push({
413
+ key: "extraButton",
414
+ contents: c
415
+ }), a.value = r;
416
+ }, f = (c) => {
417
+ const r = u(o.value);
418
+ let y = u(a.value);
419
+ o.value = r.filter((O) => O.id !== c.id);
420
+ const A = y == null ? void 0 : y.find((O) => O.key === "rowButton");
421
+ A != null && A.contents && (y = y == null ? void 0 : y.map((O) => ((O == null ? void 0 : O.key) === "rowButton" && (O.contents = r.filter((P) => P.id !== c.id)), O))), a.value = y;
422
+ }, g = (c) => {
423
+ const r = u(d.value);
424
+ let y = u(a.value);
425
+ d.value = r.filter((O) => O.id !== c.id);
426
+ const A = y == null ? void 0 : y.find((O) => O.key === "extraButton");
427
+ A != null && A.contents && (y = y == null ? void 0 : y.map((O) => ((O == null ? void 0 : O.key) === "extraButton" && (O.contents = r.filter((P) => P.id !== c.id)), O))), a.value = y;
428
+ }, k = (c) => {
429
+ const r = u(s.value);
430
+ let y = u(a.value);
431
+ s.value = r.filter((O) => O.id !== c.id);
432
+ const A = y == null ? void 0 : y.find((O) => O.key === "header");
433
+ A != null && A.contents && (y = y == null ? void 0 : y.map((O) => ((O == null ? void 0 : O.key) === "header" && (O.contents = r.filter((P) => P.id !== c.id)), O))), a.value = y;
434
+ };
435
+ return te(
436
+ () => [a.value, s.value],
437
+ () => {
438
+ let c = u(a.value);
439
+ const r = c == null ? void 0 : c.find((y) => (y == null ? void 0 : y.key) === "header");
440
+ r != null && r.contents ? (r.contents = s.value, c = c == null ? void 0 : c.map((y) => ((y == null ? void 0 : y.key) === "header" && (y.contents = s.value), y))) : c.push({
441
+ key: "header",
442
+ contents: s.value
443
+ }), l("change", c);
444
+ },
445
+ { deep: !0, immediate: !0 }
446
+ ), (c, r) => {
447
+ const y = Ve("el-button");
448
+ return Z(), q("div", ut, [
449
+ w("div", pt, [
450
+ w("div", it, [
451
+ r[1] || (r[1] = w("div", null, K("表头"), -1)),
452
+ z(y, {
453
+ class: "blue-operate-button",
454
+ icon: "ele-Plus",
455
+ onClick: C
456
+ }, {
457
+ default: ne(() => r[0] || (r[0] = [
458
+ ce(K("新建"))
459
+ ])),
460
+ _: 1,
461
+ __: [0]
462
+ })
463
+ ]),
464
+ w("div", ft, [
465
+ z(ue, {
466
+ columns: $,
467
+ isShowPagination: !1,
468
+ isShowEdit: !1,
469
+ isMoveColumn: !1,
470
+ tableData: s.value,
471
+ onDeleteRow: k
472
+ }, null, 8, ["tableData"])
473
+ ]),
474
+ w("div", dt, [
475
+ r[3] || (r[3] = w("div", null, K("行内按钮"), -1)),
476
+ z(y, {
477
+ class: "blue-operate-button",
478
+ icon: "ele-Plus",
479
+ onClick: E
480
+ }, {
481
+ default: ne(() => r[2] || (r[2] = [
482
+ ce(K("新建"))
483
+ ])),
484
+ _: 1,
485
+ __: [2]
486
+ })
487
+ ]),
488
+ w("div", ht, [
489
+ z(ue, {
490
+ columns: i.value,
491
+ isShowPagination: !1,
492
+ isShowEdit: !1,
493
+ isMoveColumn: !1,
494
+ tableData: o.value,
495
+ onDeleteRow: f
496
+ }, null, 8, ["columns", "tableData"])
497
+ ]),
498
+ w("div", yt, [
499
+ r[5] || (r[5] = w("div", null, K("表格外部按钮"), -1)),
500
+ z(y, {
501
+ class: "blue-operate-button",
502
+ icon: "ele-Plus",
503
+ onClick: h
504
+ }, {
505
+ default: ne(() => r[4] || (r[4] = [
506
+ ce(K("新建"))
507
+ ])),
508
+ _: 1,
509
+ __: [4]
510
+ })
511
+ ]),
512
+ w("div", mt, [
513
+ z(ue, {
514
+ columns: p.value,
515
+ isShowPagination: !1,
516
+ isShowEdit: !1,
517
+ isMoveColumn: !1,
518
+ tableData: d.value,
519
+ onDeleteRow: g
520
+ }, null, 8, ["columns", "tableData"])
521
+ ]),
522
+ r[6] || (r[6] = w("div", { class: "operate-title" }, [
523
+ w("div", null, K("分页"))
524
+ ], -1)),
525
+ w("div", gt, [
526
+ z(el, {
527
+ rowContents: _.value,
528
+ onChange: v
529
+ }, null, 8, ["rowContents"])
530
+ ])
531
+ ])
532
+ ]);
533
+ };
534
+ }
535
+ }, kt = /* @__PURE__ */ ge(bt, [["__scopeId", "data-v-877911eb"]]), Ct = { class: "form-operate-content" }, At = { class: "form-operate-item" }, $t = { class: "operate-title" }, Ot = { class: "operate-content" }, _t = { class: "operate-title" }, vt = { class: "operate-content" }, xt = { class: "operate-content" }, Tt = {
536
+ __name: "operate",
537
+ props: {
538
+ itemContents: {
539
+ type: Array,
540
+ default: () => []
541
+ },
542
+ originalItemContents: {
543
+ type: Array,
544
+ default: () => []
545
+ }
546
+ },
547
+ emits: ["change"],
548
+ setup(e, { emit: t }) {
549
+ const n = e, l = t, a = L([{
550
+ name: "isRowFlex",
551
+ label: "是否横向布局",
552
+ type: "Switch",
553
+ value: !0
554
+ }]), s = L([{
555
+ label: "字段名称",
556
+ prop: "label",
557
+ type: "edit"
558
+ }, {
559
+ label: "字段类型",
560
+ prop: "type",
561
+ type: "edit"
562
+ }, {
563
+ label: "字段值",
564
+ prop: "key",
565
+ type: "edit"
566
+ }, {
567
+ label: "字段选项值",
568
+ prop: "options",
569
+ type: "edit"
570
+ }, {
571
+ label: "操作",
572
+ prop: "operate",
573
+ type: "operate",
574
+ sortable: !1
575
+ }]), o = L([{
576
+ label: "字段名称",
577
+ prop: "label",
578
+ type: "edit"
579
+ }, {
580
+ label: "字段类型",
581
+ prop: "type",
582
+ type: "edit"
583
+ }, {
584
+ label: "按钮背景颜色",
585
+ prop: "background",
586
+ type: "edit",
587
+ columnType: "Color"
588
+ }, {
589
+ label: "操作",
590
+ prop: "operate",
591
+ type: "operate",
592
+ sortable: !1
593
+ }]), p = L([]), i = L([]), d = L([]), m = L(0);
594
+ te(
595
+ () => n.originalItemContents,
596
+ () => {
597
+ var h, f, g, k, c, r, y, A, O, P;
598
+ !n.originalItemContents || n.originalItemContents.length === 0 || (i.value = u(n.originalItemContents), d.value = (f = (h = i.value) == null ? void 0 : h.find((x) => (x == null ? void 0 : x.key) === "formContent")) == null ? void 0 : f.contents, p.value = (k = (g = i.value) == null ? void 0 : g.find((x) => (x == null ? void 0 : x.key) === "formButton")) == null ? void 0 : k.contents, d.value = (c = d.value) == null ? void 0 : c.map((x, U) => x = {
599
+ label: (x == null ? void 0 : x.label) ?? "",
600
+ type: (x == null ? void 0 : x.type) ?? "",
601
+ key: (x == null ? void 0 : x.key) ?? "",
602
+ options: (x == null ? void 0 : x.options) ?? "",
603
+ id: (x == null ? void 0 : x.id) ?? U
604
+ }), p.value = (r = p.value) == null ? void 0 : r.map((x, U) => x = {
605
+ label: (x == null ? void 0 : x.label) ?? "",
606
+ type: (x == null ? void 0 : x.type) ?? "",
607
+ background: (x == null ? void 0 : x.background) ?? "#000000",
608
+ id: (x == null ? void 0 : x.id) ?? U
609
+ }), a.value = (A = (y = i.value) == null ? void 0 : y.find((x) => (x == null ? void 0 : x.key) === "formFlex")) != null && A.contents ? [{
610
+ name: "isRowFlex",
611
+ label: "是否横向布局",
612
+ type: "Switch",
613
+ value: (P = (O = i.value) == null ? void 0 : O.find((x) => (x == null ? void 0 : x.key) === "formFlex")) == null ? void 0 : P.contents
614
+ }] : [{
615
+ name: "isRowFlex",
616
+ label: "是否横向布局",
617
+ type: "Switch",
618
+ value: !0
619
+ }]);
620
+ },
621
+ { deep: !0, immediate: !0 }
622
+ );
623
+ const _ = () => {
624
+ const h = u(p.value);
625
+ let f = u(i.value);
626
+ h.push({
627
+ label: "",
628
+ type: "",
629
+ background: "#000000",
630
+ id: m.value
631
+ }), p.value = h, m.value++;
632
+ const g = f == null ? void 0 : f.find((k) => (k == null ? void 0 : k.key) === "formButton");
633
+ g != null && g.contents ? (g.contents = h, f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "formButton" && (k.contents = h), k))) : f.push({
634
+ key: "formButton",
635
+ contents: h
636
+ }), i.value = f;
637
+ }, $ = () => {
638
+ const h = u(d.value);
639
+ let f = u(i.value);
640
+ h.push({
641
+ label: "",
642
+ type: "",
643
+ key: "",
644
+ options: "",
645
+ id: m.value
646
+ }), d.value = h, m.value++;
647
+ const g = f == null ? void 0 : f.find((k) => (k == null ? void 0 : k.key) === "formContent");
648
+ g != null && g.contents ? (g.contents = h, f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "formContent" && (k.contents = h), k))) : f.push({
649
+ key: "formContent",
650
+ contents: h
651
+ }), i.value = f;
652
+ }, v = (h) => {
653
+ const f = u(p.value);
654
+ let g = u(i.value);
655
+ p.value = f.filter((c) => c.id !== h.id);
656
+ const k = g == null ? void 0 : g.find((c) => c.key === "formButton");
657
+ k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formButton" && (c.contents = f.filter((r) => r.id !== h.id)), c))), i.value = g;
658
+ }, C = (h) => {
659
+ const f = u(d.value);
660
+ let g = u(i.value);
661
+ d.value = f.filter((c) => c.id !== h.id);
662
+ const k = g == null ? void 0 : g.find((c) => c.key === "formContent");
663
+ k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formContent" && (c.contents = f.filter((r) => r.id !== h.id)), c))), i.value = g;
664
+ }, E = (h) => {
665
+ let f = u(i.value);
666
+ const g = f == null ? void 0 : f.find((k) => k.key === "formFlex");
667
+ (g == null ? void 0 : g.contents) !== void 0 ? f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "formFlex" && (k.contents = h == null ? void 0 : h.isRowFlex), k)) : f.push({
668
+ key: "formFlex",
669
+ contents: h == null ? void 0 : h.isRowFlex
670
+ }), i.value = f;
671
+ };
672
+ return te(
673
+ () => [i.value, d.value],
674
+ () => {
675
+ let h = u(i.value);
676
+ const f = h == null ? void 0 : h.find((g) => (g == null ? void 0 : g.key) === "formContent");
677
+ f != null && f.contents ? (f.contents = d.value, h = h == null ? void 0 : h.map((g) => ((g == null ? void 0 : g.key) === "formContent" && (g.contents = d.value), g))) : h.push({
678
+ key: "formContent",
679
+ contents: d.value
680
+ }), l("change", h);
681
+ },
682
+ { deep: !0, immediate: !0 }
683
+ ), (h, f) => {
684
+ const g = Ve("el-button");
685
+ return Z(), q("div", Ct, [
686
+ w("div", At, [
687
+ w("div", $t, [
688
+ f[1] || (f[1] = w("div", null, K("表单信息"), -1)),
689
+ z(g, {
690
+ class: "blue-operate-button",
691
+ icon: "ele-Plus",
692
+ onClick: $
693
+ }, {
694
+ default: ne(() => f[0] || (f[0] = [
695
+ ce(K("新建"))
696
+ ])),
697
+ _: 1,
698
+ __: [0]
699
+ })
700
+ ]),
701
+ w("div", Ot, [
702
+ z(ue, {
703
+ columns: s.value,
704
+ isShowPagination: !1,
705
+ isShowEdit: !1,
706
+ isMoveColumn: !1,
707
+ tableData: d.value,
708
+ onDeleteRow: C
709
+ }, null, 8, ["columns", "tableData"])
710
+ ]),
711
+ w("div", _t, [
712
+ f[3] || (f[3] = w("div", null, K("表单按钮"), -1)),
713
+ z(g, {
714
+ class: "blue-operate-button",
715
+ icon: "ele-Plus",
716
+ onClick: _
717
+ }, {
718
+ default: ne(() => f[2] || (f[2] = [
719
+ ce(K("新建"))
720
+ ])),
721
+ _: 1,
722
+ __: [2]
723
+ })
724
+ ]),
725
+ w("div", vt, [
726
+ z(ue, {
727
+ columns: o.value,
728
+ isShowPagination: !1,
729
+ isShowEdit: !1,
730
+ isMoveColumn: !1,
731
+ tableData: p.value,
732
+ onDeleteRow: v
733
+ }, null, 8, ["columns", "tableData"])
734
+ ]),
735
+ f[4] || (f[4] = w("div", { class: "operate-title" }, [
736
+ w("div", null, K("表单布局"))
737
+ ], -1)),
738
+ w("div", xt, [
739
+ z(el, {
740
+ rowContents: a.value,
741
+ onChange: E
742
+ }, null, 8, ["rowContents"])
743
+ ])
744
+ ])
745
+ ]);
746
+ };
747
+ }
748
+ }, Et = /* @__PURE__ */ ge(Tt, [["__scopeId", "data-v-a36b8468"]]), Dt = { class: "extra-content" }, Nt = { key: 0 }, St = { key: 1 }, Pt = {
749
+ __name: "index",
750
+ props: {
751
+ itemData: {
752
+ type: Array,
753
+ default: () => []
754
+ },
755
+ childItemData: {
756
+ type: Array,
757
+ default: () => []
758
+ },
759
+ index: Number,
760
+ changedContent: {
761
+ type: Object,
762
+ default: () => {
763
+ }
764
+ }
765
+ },
766
+ emits: ["change"],
767
+ setup(e, { emit: t }) {
768
+ const n = e, l = L(0), a = L(), s = L(), o = t, p = L(!1), i = L({}), d = L({}), m = L();
769
+ te(
770
+ () => [n.itemData],
771
+ () => {
772
+ var c;
773
+ const k = u(n.itemData);
774
+ a.value = (c = u(k)) == null ? void 0 : c.map((r) => {
775
+ var y;
776
+ if (r.key === "extra") {
777
+ let A = [];
778
+ (y = r.value) == null || y.forEach((O) => {
779
+ var P;
780
+ A.push((P = Object.values(O)) == null ? void 0 : P[0]);
781
+ }), r.value = A;
782
+ }
783
+ return r;
784
+ });
785
+ },
786
+ { deep: !0, immediate: !0 }
787
+ );
788
+ const _ = (k, c, r, y) => {
789
+ var O;
790
+ let A = {};
791
+ ((O = k == null ? void 0 : k[0]) == null ? void 0 : O.contents) === "详情" && (p.value = !0, A[c] = k, s.value = k == null ? void 0 : k.filter((P) => (P == null ? void 0 : P.key) !== "tableContentName"), i.value = A, d.value = r, m.value = y.id);
792
+ }, $ = (k) => {
793
+ var P, x, U, G;
794
+ const c = (x = (P = Object.values(u(i.value))) == null ? void 0 : P[0]) == null ? void 0 : x.filter((T) => (T == null ? void 0 : T.key) === "tableContentName"), r = (G = (U = Object.values(u(i.value))) == null ? void 0 : U[0]) == null ? void 0 : G.filter((T) => (T == null ? void 0 : T.key) !== "tableContentName"), y = r == null ? void 0 : r.map((T, S) => {
795
+ var N;
796
+ return S === k.index && (T == null ? void 0 : T.comp) === "Table" && (T.compData = (N = T.compData) == null ? void 0 : N.map((D) => {
797
+ var b, B;
798
+ return (D == null ? void 0 : D.key) === "tableContents" && (D.contents = (B = (b = k.content) == null ? void 0 : b.map((j) => {
799
+ let M = {};
800
+ for (let W in j)
801
+ W !== "id" && (M[W] = j[W]);
802
+ return M;
803
+ })) == null ? void 0 : B.map((j) => Object.values(j))), D;
804
+ })), T;
805
+ });
806
+ y.unshift(c == null ? void 0 : c[0]);
807
+ let A = u(i.value), O = {};
808
+ for (let T in A)
809
+ O[T] = y;
810
+ i.value = O;
811
+ }, v = () => {
812
+ p.value = !1, i.value = {}, d.value = {}, m.value = void 0, l.value++;
813
+ }, C = (k) => {
814
+ var P, x, U, G;
815
+ const c = (x = (P = Object.values(u(i.value))) == null ? void 0 : P[0]) == null ? void 0 : x.filter((T) => (T == null ? void 0 : T.key) === "tableContentName"), r = (G = (U = Object.values(u(i.value))) == null ? void 0 : U[0]) == null ? void 0 : G.filter((T) => (T == null ? void 0 : T.key) !== "tableContentName"), y = r == null ? void 0 : r.map((T, S) => (S === k.index && (T.compData = k.contents), T));
816
+ y.unshift(c == null ? void 0 : c[0]);
817
+ let A = u(i.value), O = {};
818
+ for (let T in A)
819
+ O[T] = y;
820
+ i.value = O;
821
+ }, E = () => {
822
+ var c, r;
823
+ let k = {};
824
+ for (let y in d.value)
825
+ y === ((c = Object.keys(i.value)) == null ? void 0 : c[0]) ? k[y] = (r = Object.values(i.value)) == null ? void 0 : r[0] : k[y] = d.value[y];
826
+ o("change", {
827
+ buttonName: "编辑",
828
+ index: m.value,
829
+ singleContent: k
830
+ }, "methodData"), p.value = !1, i.value = {}, d.value = {}, m.value = void 0;
831
+ }, h = () => {
832
+ p.value = !1, i.value = {}, d.value = {}, m.value = void 0;
833
+ }, f = (k) => {
834
+ o("change", k, "methodData");
835
+ }, g = (k) => Gt(k);
836
+ return (k, c) => (Z(), q(de, null, [
837
+ w("div", Dt, [
838
+ (Z(!0), q(de, null, _e(a.value, (r, y) => (Z(), q("div", { key: l.value }, [
839
+ (r == null ? void 0 : r.key) === "extra" ? (Z(), q("div", Nt)) : (Z(), q("div", St, [
840
+ (Z(), Se(Pe(g(r.comp)), {
841
+ itemData: r == null ? void 0 : r.compData,
842
+ childItemData: r == null ? void 0 : r.itemChildData,
843
+ key: y,
844
+ index: (r == null ? void 0 : r.id) ?? y,
845
+ onContentClick: _,
846
+ onChange: f
847
+ }, null, 40, ["itemData", "childItemData", "index"]))
848
+ ]))
849
+ ]))), 128))
850
+ ]),
851
+ z(vl, {
852
+ visible: p.value,
853
+ onBeforeDestroy: h
854
+ }, {
855
+ default: ne(() => [
856
+ (Z(!0), q(de, null, _e(s.value, (r, y) => (Z(), q("div", {
857
+ key: y,
858
+ class: "extra-dialog"
859
+ }, [
860
+ (Z(), Se(Pe(g(r.comp)), {
861
+ itemData: r == null ? void 0 : r.compData,
862
+ onChange: $,
863
+ childItemData: r == null ? void 0 : r.itemChildData,
864
+ key: y,
865
+ onContentChange: C,
866
+ index: (r == null ? void 0 : r.id) ?? y,
867
+ class: "extra-component"
868
+ }, null, 40, ["itemData", "childItemData", "index"]))
869
+ ]))), 128))
870
+ ]),
871
+ footer: ne(() => [
872
+ w("div", { class: "dialog-footer" }, [
873
+ w("div", {
874
+ class: "cancel-button footer-button",
875
+ onClick: v
876
+ }, K("取消")),
877
+ w("div", {
878
+ class: "confirm-button footer-button",
879
+ onClick: E
880
+ }, K("确认"))
881
+ ])
882
+ ]),
883
+ _: 1
884
+ }, 8, ["visible"])
885
+ ], 64));
886
+ }
887
+ }, Bt = /* @__PURE__ */ ge(Pt, [["__scopeId", "data-v-e3e0f29d"]]), We = (e) => {
888
+ let t = [];
889
+ function n(a) {
890
+ a == null || a.forEach((s) => {
891
+ Array.isArray(s) || (s = [s]), s == null || s.forEach((o) => {
892
+ !(o != null && o.children) || o.children.length === 0 ? t.push(o.label) : l(o.children);
893
+ });
894
+ });
895
+ }
896
+ function l(a) {
897
+ a == null || a.forEach((s) => {
898
+ !(s != null && s.children) || s.children.length === 0 ? t.push(s.label) : l(s.children);
899
+ });
900
+ }
901
+ return n(e), t;
902
+ }, Ut = (e, t, n) => {
903
+ var a;
904
+ let l = (a = u(e)) == null ? void 0 : a.map((s) => (s = s.filter((o) => !o.id), s));
905
+ return l = l == null ? void 0 : l.map((s) => {
906
+ var o;
907
+ return s = (o = s.map((p, i) => {
908
+ let d = {};
909
+ if (n != null && n.find((m) => m === t[i]))
910
+ return d[t[i]] = p, d;
911
+ })) == null ? void 0 : o.filter((p) => p), s;
912
+ }), l;
913
+ }, jt = (e, t) => {
914
+ var o, p;
915
+ const n = u(e), l = (o = n == null ? void 0 : n.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : o.contents, a = (p = n == null ? void 0 : n.find((i) => (i == null ? void 0 : i.key) === "tableContents")) == null ? void 0 : p.contents;
916
+ return Ut(a, We(l).slice(0, We(l).length - 1), t);
917
+ }, Ft = { class: "method-content" }, Jt = ["onClick"], Lt = {
918
+ __name: "index",
919
+ props: {
920
+ itemData: {
921
+ type: Array,
922
+ default: () => []
923
+ },
924
+ childItemData: {
925
+ type: Array,
926
+ default: () => []
927
+ },
928
+ index: Number,
929
+ changedContent: {
930
+ type: Object,
931
+ default: () => {
932
+ }
933
+ }
934
+ },
935
+ setup(e) {
936
+ const t = L([]), n = e, l = ll(xe), { itemData: a } = Te(l), s = (i, d) => {
937
+ var _;
938
+ const m = (_ = d == null ? void 0 : d[0]) == null ? void 0 : _.children;
939
+ return i == null ? void 0 : i.map(($) => {
940
+ var v;
941
+ return $ = (v = $ == null ? void 0 : $.map((C, E) => {
942
+ var h;
943
+ return {
944
+ key: (h = m[E]) == null ? void 0 : h.label,
945
+ value: C
946
+ };
947
+ })) == null ? void 0 : v.filter((C) => C.key), $;
948
+ });
949
+ };
950
+ te(
951
+ () => a.value,
952
+ async () => {
953
+ await p(u(n.itemData));
954
+ },
955
+ { deep: !0 }
956
+ );
957
+ const o = async (i) => {
958
+ var g, k, c, r, y, A;
959
+ let d = {};
960
+ if ((g = u(i.content)) == null || g.forEach((O, P) => {
961
+ var x, U, G, T, S, N, D, b, B, j, M, W, Q, le, se, re, H;
962
+ if ((O == null ? void 0 : O.comp) === "Table") {
963
+ let X = (T = (G = (U = (x = O == null ? void 0 : O.compData) == null ? void 0 : x.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : U.contents) == null ? void 0 : G[0]) == null ? void 0 : T.some((R) => R == null ? void 0 : R.children), Y = (D = (N = (S = O == null ? void 0 : O.compData) == null ? void 0 : S.find((R) => (R == null ? void 0 : R.key) === "tableContents")) == null ? void 0 : N.contents) == null ? void 0 : D.map((R) => R.slice(1)), I = (W = (M = (j = (B = (b = O == null ? void 0 : O.compData) == null ? void 0 : b.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : B.contents) == null ? void 0 : j[0]) == null ? void 0 : M[0]) == null ? void 0 : W.label, V = (se = (le = (Q = O == null ? void 0 : O.compData) == null ? void 0 : Q.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : le.contents) == null ? void 0 : se[0];
964
+ if (X)
965
+ d[I] = s(Y, V);
966
+ else {
967
+ const R = [];
968
+ V = V.slice(1, V.length - 1), V == null || V.forEach((bl, kl) => {
969
+ Y == null || Y.forEach((Ne) => {
970
+ R.push({
971
+ key: bl.label + Ne[0],
972
+ value: Ne[kl + 1]
973
+ });
974
+ });
975
+ }), d["form" + P] = R;
976
+ }
977
+ } else {
978
+ const X = (H = (re = O.compData) == null ? void 0 : re.find((I) => (I == null ? void 0 : I.key) === "formContent")) == null ? void 0 : H.contents;
979
+ d.form = {};
980
+ const Y = [];
981
+ X == null || X.forEach((I) => {
982
+ I.key !== "" && (I = {
983
+ key: I == null ? void 0 : I.key,
984
+ value: I == null ? void 0 : I.value
985
+ }, Y.push(I));
986
+ }), d.form = Y;
987
+ }
988
+ }), i.api) {
989
+ const O = await El.post(i.api, {
990
+ data: d,
991
+ templateFileName: (k = i == null ? void 0 : i.extraContent) == null ? void 0 : k[0]
992
+ }, {
993
+ responseType: "blob",
994
+ // 必须设置
995
+ headers: {
996
+ "Content-Type": "application/json"
997
+ }
998
+ });
999
+ var m = new Blob([O.data], {
1000
+ type: "application/octet-stream;charset=UTF-8"
1001
+ }), _ = O.headers["content-disposition"], $ = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), v = $.exec(_), C = ((y = (r = (c = i == null ? void 0 : i.extraContent) == null ? void 0 : c[0]) == null ? void 0 : r.split(".")) == null ? void 0 : y[0]) + "." + ((A = v[1].split(".")) == null ? void 0 : A[1]), E = document.createElement("a"), h = window.URL.createObjectURL(m), f = /^["](.*)["]$/g;
1002
+ E.style.display = "none", E.href = h, E.download = decodeURI(C.replace(f, "$1")), document.body.appendChild(E), E.click(), document.body.removeChild(E), window.URL.revokeObjectURL(h);
1003
+ }
1004
+ }, p = async (i) => {
1005
+ var $;
1006
+ const d = u(i), m = d == null ? void 0 : d.map(async (v) => {
1007
+ var k, c, r, y, A, O;
1008
+ const E = (k = (await Je({
1009
+ key: {
1010
+ systemKey: sessionStorage.getItem("systemKey"),
1011
+ parentTable: "",
1012
+ type: "method",
1013
+ methodName: v.method
1014
+ }
1015
+ })).data.result) == null ? void 0 : k[0], h = await Je({
1016
+ key: {
1017
+ systemKey: sessionStorage.getItem("systemKey"),
1018
+ type: "methodData",
1019
+ tableId: E == null ? void 0 : E.id
1020
+ }
1021
+ }), f = await Cl((c = v == null ? void 0 : v.value) == null ? void 0 : c[0], sessionStorage.getItem("systemKey"), ""), g = (r = h.data.result) == null ? void 0 : r[0];
1022
+ return {
1023
+ buttonName: (y = E == null ? void 0 : E.key) == null ? void 0 : y.methodKey,
1024
+ api: (O = (A = g == null ? void 0 : g.value) == null ? void 0 : A.tableData) == null ? void 0 : O[0],
1025
+ content: f == null ? void 0 : f.filter((P) => P.comp !== "methodButton"),
1026
+ extraContent: u(v.value).slice(1)
1027
+ };
1028
+ }), _ = await Promise.all(m);
1029
+ t.value = _, ($ = t.value) == null || $.forEach((v) => {
1030
+ var C;
1031
+ v.api === "" && ((C = v.content) == null || C.forEach((E) => {
1032
+ var h;
1033
+ E.comp == "Table" && l.setExtraContents(jt(E.compData, (h = v.extraContent) == null ? void 0 : h[0]));
1034
+ }));
1035
+ });
1036
+ };
1037
+ return te(
1038
+ () => n.itemData,
1039
+ async () => {
1040
+ await p(u(n.itemData));
1041
+ },
1042
+ { immediate: !0, deep: !0 }
1043
+ ), (i, d) => (Z(), q("div", Ft, [
1044
+ (Z(!0), q(de, null, _e(t.value, (m) => (Z(), q("div", null, [
1045
+ m.api !== "" ? (Z(), q("div", {
1046
+ key: 0,
1047
+ onClick: (_) => o(m),
1048
+ class: "method-buttons"
1049
+ }, K(m.buttonName), 9, Jt)) : _l("", !0)
1050
+ ]))), 256))
1051
+ ]));
1052
+ }
1053
+ }, Rt = /* @__PURE__ */ ge(Lt, [["__scopeId", "data-v-3daae5c9"]]), Wn = L([
1054
+ {
1055
+ name: "表格",
1056
+ type: "table",
1057
+ comp: "Table",
1058
+ icon: "Grid"
1059
+ },
1060
+ {
1061
+ name: "表单",
1062
+ type: "form",
1063
+ comp: "Form",
1064
+ icon: "Film"
1065
+ },
1066
+ {
1067
+ name: "折叠",
1068
+ type: "fold",
1069
+ comp: "Fold",
1070
+ icon: "Fold"
1071
+ },
1072
+ {
1073
+ name: "头像",
1074
+ type: "avatar",
1075
+ comp: "AvatarUpload",
1076
+ icon: "Avatar"
1077
+ },
1078
+ {
1079
+ name: "签名",
1080
+ type: "signature",
1081
+ comp: "Signature",
1082
+ icon: "Signature"
1083
+ }
1084
+ ]), wt = {
1085
+ TABLE: Al,
1086
+ FORM: Ol,
1087
+ TABLEOPERATE: kt,
1088
+ FORMOPERATE: Et,
1089
+ FOLD: Tl,
1090
+ CALCULATOR: Bt,
1091
+ METHODBUTTON: Rt,
1092
+ AVATARUPLOAD: $l
1093
+ // 添加其他组件...
1094
+ };
1095
+ function Gt(e) {
1096
+ return wt[e == null ? void 0 : e.toUpperCase()] || null;
1097
+ }
1098
+ const J = [
1099
+ {
1100
+ key: "FormName",
1101
+ value: "Form"
1102
+ },
1103
+ {
1104
+ key: "TableName",
1105
+ value: "Table"
1106
+ },
1107
+ {
1108
+ key: "MenuName",
1109
+ value: "Menu"
1110
+ },
1111
+ {
1112
+ key: "GroupName",
1113
+ value: "Group"
1114
+ },
1115
+ {
1116
+ key: "SystemKey",
1117
+ value: "System"
1118
+ }
1119
+ ], F = [
1120
+ {
1121
+ key: "FormDirect",
1122
+ value: "formFlex"
1123
+ },
1124
+ {
1125
+ key: "Form",
1126
+ value: "formContent"
1127
+ },
1128
+ {
1129
+ key: "FormButton",
1130
+ value: "formButton"
1131
+ },
1132
+ {
1133
+ key: "FormFlex",
1134
+ value: "formWrap"
1135
+ },
1136
+ {
1137
+ key: "TableColumns",
1138
+ value: "header"
1139
+ },
1140
+ {
1141
+ key: "TableButton",
1142
+ value: "extraButton"
1143
+ },
1144
+ {
1145
+ key: "TableLineButton",
1146
+ value: "rowButton"
1147
+ },
1148
+ {
1149
+ key: "Table",
1150
+ value: "tableContents"
1151
+ },
1152
+ {
1153
+ key: "TableIndex",
1154
+ value: "tableIndex"
1155
+ },
1156
+ {
1157
+ key: "Menus",
1158
+ value: "menuContents"
1159
+ },
1160
+ {
1161
+ key: "GroupContents",
1162
+ value: "groupContents"
1163
+ }
1164
+ ], ae = L(0), Mt = (e) => {
1165
+ const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), a = n.replace(/^['"]|['"]$/g, "");
1166
+ return { key: l, value: a };
1167
+ }, he = (e) => {
1168
+ try {
1169
+ return JSON.parse(e), !0;
1170
+ } catch {
1171
+ return !1;
1172
+ }
1173
+ }, It = (e) => e.includes("$") && e.trim().endsWith("(") ? e + ")" : e, Ht = (e) => {
1174
+ let t = e;
1175
+ const n = [];
1176
+ let l = "";
1177
+ for (const a of t)
1178
+ a.includes("{") || l.includes("{") || a.includes("[") || l.includes("[") || a.includes("【") || l.includes("【") || a.includes("(") || l.includes("(") || a.includes("(") || l.includes("(") || a.includes("/*") || l.includes("/*") ? (l += a.trim(), u(l).split("{").length - 1 === u(l).split("}").length - 1 && u(l).split("【").length - 1 === u(l).split("】").length - 1 && u(l).split("[").length - 1 === u(l).split("]").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("/*").length - 1 === u(l).split("*/").length - 1 && (n.push(l), l = "")) : n.push(a.trim());
1179
+ return n == null ? void 0 : n.filter((a) => a.includes("{"));
1180
+ }, Wt = (e) => {
1181
+ var n;
1182
+ let t = [];
1183
+ return (n = Ht(e.slice(1, -1))) == null || n.forEach((l) => {
1184
+ var s, o, p, i;
1185
+ let a = ((o = (s = l.slice(1, -1)) == null ? void 0 : s.split(",")) == null ? void 0 : o.length) ?? 1;
1186
+ (i = (p = l.slice(1, -1)) == null ? void 0 : p.split(",")) == null || i.forEach((d) => {
1187
+ var v, C, E, h, f, g, k, c, r, y, A, O, P;
1188
+ let m = d == null ? void 0 : d.split(":"), _ = m != null && m[0] ? (m == null ? void 0 : m[1].split("$").length) - 1 === 1 ? ((v = m == null ? void 0 : m[0]) == null ? void 0 : v.replace(/^"(.*)"$/, "$1")) + ((C = m == null ? void 0 : m[1]) == null ? void 0 : C.replace(/^"(.*)"$/, "$1")) : Array.isArray((h = (E = m == null ? void 0 : m[1]) == null ? void 0 : E.replace(/^"(.*)"$/, "$1")) == null ? void 0 : h.split("(")) && ((k = (g = (f = m == null ? void 0 : m[1]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) == null ? void 0 : g.split("(")) == null ? void 0 : k.length) > 1 ? ((c = m == null ? void 0 : m[0]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) + ((A = (y = (r = m == null ? void 0 : m[1]) == null ? void 0 : r.replace(/^"(.*)"$/, "$1")) == null ? void 0 : y.split("(")) == null ? void 0 : A[0]) + "()" : (O = m == null ? void 0 : m[0]) == null ? void 0 : O.replace(/^"(.*)"$/, "$1") : "", $ = (m == null ? void 0 : m[1].split("$").length) - 1 === 0 ? (P = m == null ? void 0 : m[1]) == null ? void 0 : P.replace(/^"(.*)"$/, "$1") : "";
1189
+ ae.value++, t.push({
1190
+ id: ae.value,
1191
+ key: _,
1192
+ value: $,
1193
+ // 如果值为空,则key设为空字符串,否则保留原值
1194
+ width: a,
1195
+ extraContent: m == null ? void 0 : m[1]
1196
+ });
1197
+ });
1198
+ }), t;
1199
+ }, al = (e) => {
1200
+ var t, n;
1201
+ try {
1202
+ const l = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
1203
+ if (u(l).split("{").length - 1 > 1) {
1204
+ let a = u(l).replace(/^\{(.*)\}$/, "[$1]");
1205
+ if (he(a) && !a.includes("$") || (a = a.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), he(a)) {
1206
+ const s = JSON.parse(a);
1207
+ let o = [];
1208
+ return s == null || s.forEach((p) => {
1209
+ var i;
1210
+ (i = Object.entries(u(p))) == null || i.forEach((d) => {
1211
+ ae.value++, o.push({
1212
+ id: ae.value,
1213
+ key: (d == null ? void 0 : d[0]) ?? "",
1214
+ value: (d == null ? void 0 : d[1]) === "" ? "" : d == null ? void 0 : d[1],
1215
+ // 如果值为空,则key设为空字符串,否则保留原值
1216
+ width: Object.keys(u(p)).length
1217
+ });
1218
+ });
1219
+ }), o;
1220
+ } else
1221
+ return l.trim().startsWith("{{") ? Wt(l.trim()) : Ae(a);
1222
+ } else if (he(l)) {
1223
+ const a = JSON.parse(l);
1224
+ return Object.entries(a).map(([s, o]) => (ae.value++, {
1225
+ id: ae.value,
1226
+ key: s,
1227
+ value: o === "" ? "" : o,
1228
+ // 如果值为空,则key设为空字符串,否则保留原值
1229
+ width: 1
1230
+ }));
1231
+ } else
1232
+ return ((t = Ae(l)) == null ? void 0 : t.length) === 0 ? l : (n = Ae(l)) == null ? void 0 : n.map((a) => ({
1233
+ label: a.label,
1234
+ method: It(a.method)
1235
+ }));
1236
+ } catch (l) {
1237
+ return console.error("转换失败:", l), [];
1238
+ }
1239
+ }, Ae = (e) => {
1240
+ e = e.trim().replace(/^\{|\}$/g, "").trim();
1241
+ const t = [];
1242
+ let n = 0;
1243
+ for (; n < e.length; ) {
1244
+ const l = e.slice(n).match(/^\s*"([^"]+)"\s*:\s*/);
1245
+ if (!l) break;
1246
+ const a = l[1];
1247
+ n += l[0].length;
1248
+ let s = "", o = 0, p = !1, i = "";
1249
+ for (let d = n; d < e.length; d++) {
1250
+ const m = e[d];
1251
+ if ((m === '"' || m === "'") && !p ? (p = !0, i = m) : m === i && p && (p = !1, i = ""), !p && ((m === "{" || m === "(" || m === "[") && o++, (m === "}" || m === ")" || m === "]") && o--, m === "," && o === 0 || d === e.length - 1)) {
1252
+ s = e.slice(n, d + 1).trim(), n = d + 1;
1253
+ break;
1254
+ }
1255
+ }
1256
+ t.push({
1257
+ label: a,
1258
+ method: s
1259
+ });
1260
+ }
1261
+ return t;
1262
+ }, Zt = (e, t) => {
1263
+ try {
1264
+ if (J != null && J.find((n) => (n == null ? void 0 : n.key) === t))
1265
+ return e.replace(/['"]/g, "").trim();
1266
+ if (u(e).split("[").length - 1 > 1) {
1267
+ const n = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1268
+ return JSON.parse(n);
1269
+ } else {
1270
+ const n = u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
1271
+ if (he(n)) {
1272
+ const l = JSON.parse(n);
1273
+ return Array.isArray(l) ? l.map((a) => ({ label: a })) : l;
1274
+ } else
1275
+ return al(u(e));
1276
+ }
1277
+ } catch (n) {
1278
+ return console.error("解析失败:", n), e;
1279
+ }
1280
+ }, Kt = (e) => ({ [e == null ? void 0 : e.key]: Zt(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), qt = (e) => {
1281
+ try {
1282
+ if (u(e).split("[").length - 1 > 1) {
1283
+ const t = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1284
+ return JSON.parse(t);
1285
+ } else
1286
+ return JSON.parse(u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
1287
+ } catch (t) {
1288
+ return console.error("解析失败:", t), e;
1289
+ }
1290
+ }, zt = (e) => {
1291
+ const t = e.match(/\(([^)]+)\)/);
1292
+ return t ? t[1] : "";
1293
+ }, Qt = (e) => {
1294
+ const t = e.match(/^([^(]+)\s*\(/);
1295
+ return t ? t[1].trim() : e;
1296
+ }, Ze = (e) => e.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((t) => t.trim()).filter((t) => t).join("/"), Xt = (e) => {
1297
+ var o, p;
1298
+ let t = [], n = [];
1299
+ const l = (o = u(e)) == null ? void 0 : o.map((i) => i == null ? void 0 : i.key), a = [...new Set((p = u(l)) == null ? void 0 : p.map((i) => zt(i)))];
1300
+ a == null || a.forEach((i) => {
1301
+ let d = e == null ? void 0 : e.filter(($) => $.key.includes(i));
1302
+ d == null || d.forEach(($) => {
1303
+ $ != null && $.key.includes("Menus") && (t.push({
1304
+ key: "GroupName",
1305
+ value: Ze($ == null ? void 0 : $.value)
1306
+ }), n.push(Ze($ == null ? void 0 : $.value)));
1307
+ });
1308
+ let m = e == null ? void 0 : e.filter(($) => $.key.includes(i) && !($ != null && $.key.includes("Menus")));
1309
+ m = m == null ? void 0 : m.map(($) => ($.key = Qt($.key), $));
1310
+ const _ = {
1311
+ key: "GroupContents",
1312
+ value: m
1313
+ };
1314
+ t.push(_);
1315
+ });
1316
+ const s = {
1317
+ key: "Menus",
1318
+ value: n
1319
+ };
1320
+ return t.unshift(s), t;
1321
+ }, sl = (e) => {
1322
+ var t, n;
1323
+ if (Array.isArray(Object.keys(e)) && ((t = Object.keys(e)) == null ? void 0 : t.length) > 0) {
1324
+ let l = [];
1325
+ return (n = Object.entries(e)) == null || n.forEach(([a, s]) => {
1326
+ var p, i;
1327
+ let o = [];
1328
+ if (o.push(a), ((p = Object.keys(s)) == null ? void 0 : p.length) > 0) {
1329
+ let d = [];
1330
+ (i = sl(s)) == null || i.forEach((m) => {
1331
+ d.push(m);
1332
+ }), d == null || d.forEach((m) => {
1333
+ o.push(m);
1334
+ });
1335
+ }
1336
+ l.push(o);
1337
+ }), l;
1338
+ }
1339
+ }, Yt = (e, t) => {
1340
+ var l;
1341
+ let n = t;
1342
+ return Array.isArray(Object.keys(e)) && ((l = Object.entries(e)) == null || l.forEach(([a, s]) => {
1343
+ let o = [a];
1344
+ if (typeof s == "object" && s !== null) {
1345
+ let p = sl(s);
1346
+ p == null || p.forEach((i) => {
1347
+ o.push(i);
1348
+ });
1349
+ }
1350
+ n.push(o);
1351
+ })), n;
1352
+ }, Vt = (e) => {
1353
+ const t = {};
1354
+ return e.forEach((l) => {
1355
+ const a = l.split("/");
1356
+ let s = t;
1357
+ a.forEach((o) => {
1358
+ s[o] || (s[o] = {}), s = s[o];
1359
+ });
1360
+ }), Yt(t, []);
1361
+ }, rl = (e) => Vt(e), Zn = (e) => {
1362
+ var t, n, l, a, s, o, p, i;
1363
+ try {
1364
+ const d = De((n = (t = u(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), m = (a = (l = u(d)) == null ? void 0 : l.filter((C) => !C.includes("/*"))) == null ? void 0 : a.map((C) => Mt(C)), _ = Xt(m), $ = [];
1365
+ if (((s = _ == null ? void 0 : _.find((C) => (C == null ? void 0 : C.key) === "Menus")) == null ? void 0 : s.value.length) === 0)
1366
+ return !1;
1367
+ (o = u(_)) == null || o.forEach((C) => {
1368
+ var E, h, f, g, k;
1369
+ J != null && J.find((c) => {
1370
+ var r, y;
1371
+ return ((r = c == null ? void 0 : c.key) == null ? void 0 : r.toUpperCase()) === ((y = C == null ? void 0 : C.key) == null ? void 0 : y.toUpperCase());
1372
+ }) ? $.push({
1373
+ comp: ((E = J == null ? void 0 : J.find((c) => {
1374
+ var r, y;
1375
+ return ((r = c == null ? void 0 : c.key) == null ? void 0 : r.toUpperCase()) === ((y = C == null ? void 0 : C.key) == null ? void 0 : y.toUpperCase());
1376
+ })) == null ? void 0 : E.value) ?? "",
1377
+ name: (h = C == null ? void 0 : C.value) == null ? void 0 : h.replace(/[’]|[‘]|[']/g, ""),
1378
+ compData: []
1379
+ }) : F != null && F.find((c) => {
1380
+ var r, y;
1381
+ return ((r = c == null ? void 0 : c.key) == null ? void 0 : r.toUpperCase()) === ((y = C == null ? void 0 : C.key) == null ? void 0 : y.toUpperCase());
1382
+ }) && (($ == null ? void 0 : $.length) === 0 && (f = C.key) != null && f.includes("Menus") && $.push({
1383
+ comp: "Menu",
1384
+ name: "",
1385
+ compData: []
1386
+ }), (g = $ == null ? void 0 : $[($ == null ? void 0 : $.length) - 1]) != null && g.compData && $[($ == null ? void 0 : $.length) - 1].compData.push({
1387
+ key: (k = F == null ? void 0 : F.find((c) => {
1388
+ var r, y;
1389
+ return ((r = c == null ? void 0 : c.key) == null ? void 0 : r.toUpperCase()) === ((y = C == null ? void 0 : C.key) == null ? void 0 : y.toUpperCase());
1390
+ })) == null ? void 0 : k.value,
1391
+ contents: C == null ? void 0 : C.value
1392
+ }));
1393
+ });
1394
+ let v = (p = u($)) == null ? void 0 : p.map((C) => {
1395
+ var E;
1396
+ return C != null && C.compData && (C.compData = (E = C == null ? void 0 : C.compData) == null ? void 0 : E.map((h) => {
1397
+ var f, g, k, c, r, y, A, O, P, x, U;
1398
+ if ((h == null ? void 0 : h.key) === "formFlex")
1399
+ h.contents = ((g = (f = h.contents) == null ? void 0 : f.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : g.toUpperCase()) !== "Vertical".toUpperCase();
1400
+ else if ((h == null ? void 0 : h.key) === "groupContents")
1401
+ h.contents = (k = u(h.contents)) == null ? void 0 : k.map((G) => Kt(u(G)));
1402
+ else if (Array.isArray(h == null ? void 0 : h.contents))
1403
+ h.contents = rl(h.contents);
1404
+ else if (((r = (c = h == null ? void 0 : h.contents) == null ? void 0 : c.trim()) != null && r.startsWith("[") || (A = (y = h.contents) == null ? void 0 : y.trim()) != null && A.startsWith("【")) && ((P = (O = h.contents) == null ? void 0 : O.trim()) != null && P.endsWith("]") || (U = (x = h.contents) == null ? void 0 : x.trim()) != null && U.endsWith("】")))
1405
+ h.contents = qt(u(h.contents));
1406
+ else {
1407
+ if (!h.contents) return;
1408
+ h.contents = al(u(h.contents));
1409
+ }
1410
+ return h;
1411
+ })), C;
1412
+ });
1413
+ return v = (i = u(v)) == null ? void 0 : i.map((C) => {
1414
+ var E;
1415
+ return (C == null ? void 0 : C.comp) === "Group" && (C.compData = (E = C.compData) == null ? void 0 : E.map((h) => {
1416
+ var g;
1417
+ let f = [];
1418
+ return (g = h.contents) == null || g.forEach((k) => {
1419
+ var c, r, y, A, O, P, x, U, G, T, S, N;
1420
+ if (J != null && J.find((D) => {
1421
+ var b, B, j;
1422
+ return ((b = D == null ? void 0 : D.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
1423
+ }))
1424
+ f.push({
1425
+ comp: (c = J == null ? void 0 : J.find((D) => {
1426
+ var b, B, j;
1427
+ return ((b = D == null ? void 0 : D.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
1428
+ })) == null ? void 0 : c.value,
1429
+ name: (y = (r = Object.values(k)) == null ? void 0 : r[0]) == null ? void 0 : y.replace(/[’]|[‘]|[']/g, ""),
1430
+ compData: []
1431
+ });
1432
+ else if (F != null && F.find((D) => {
1433
+ var b, B, j;
1434
+ return ((b = D == null ? void 0 : D.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
1435
+ })) {
1436
+ if ((f == null ? void 0 : f.length) === 0) return;
1437
+ (A = f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1]) != null && A.compData && f[(f == null ? void 0 : f.length) - 1].compData.push({
1438
+ key: (O = F == null ? void 0 : F.find((D) => {
1439
+ var b, B, j;
1440
+ return ((b = D == null ? void 0 : D.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
1441
+ })) == null ? void 0 : O.value,
1442
+ contents: (P = Object.values(k)) == null ? void 0 : P[0]
1443
+ });
1444
+ } else if ((U = (x = Object.keys(k)) == null ? void 0 : x[0]) != null && U.includes("$")) {
1445
+ const D = (T = (G = Object.keys(u(k))) == null ? void 0 : G[0]) == null ? void 0 : T.split("$");
1446
+ f[(f == null ? void 0 : f.length) - 1].compData.push({
1447
+ key: (S = F == null ? void 0 : F.find((b) => {
1448
+ var B, j;
1449
+ return ((B = b == null ? void 0 : b.key) == null ? void 0 : B.toUpperCase()) === ((j = D == null ? void 0 : D[0]) == null ? void 0 : j.toUpperCase());
1450
+ })) == null ? void 0 : S.value,
1451
+ contents: (N = Object.values(k)) == null ? void 0 : N[0],
1452
+ selectLabel: D == null ? void 0 : D[1]
1453
+ });
1454
+ }
1455
+ return k;
1456
+ }), h.contents = f, h;
1457
+ })), C;
1458
+ }), v;
1459
+ } catch {
1460
+ return !1;
1461
+ }
1462
+ }, ee = (e) => {
1463
+ try {
1464
+ return JSON.parse(e), !0;
1465
+ } catch {
1466
+ return !1;
1467
+ }
1468
+ }, Kn = (e, t) => ct(e, t), Ke = L(0), ol = (e) => {
1469
+ const t = [];
1470
+ let n = null;
1471
+ for (let l = 0; l < e.length; l++) {
1472
+ const a = e[l];
1473
+ if (Array.isArray(a))
1474
+ n && (n.children = ol(a));
1475
+ else {
1476
+ const s = { label: a };
1477
+ t.push(s), n = s;
1478
+ }
1479
+ }
1480
+ return t;
1481
+ }, cl = (e) => {
1482
+ let t = 0;
1483
+ for (const n of e)
1484
+ t++, n.children && (t += cl(n.children));
1485
+ return t;
1486
+ }, ul = (e, t, n = []) => {
1487
+ let l = 0;
1488
+ for (const a of t) {
1489
+ if (l >= e.length) break;
1490
+ const s = [...e[l]];
1491
+ if (n.push(s), l++, a.children && a.children.length > 0) {
1492
+ const o = [];
1493
+ ul(
1494
+ e.slice(l),
1495
+ a.children,
1496
+ o
1497
+ ), o.length > 0 && (s.push(o), l += cl(a.children));
1498
+ }
1499
+ }
1500
+ return n;
1501
+ }, en = (e, t) => {
1502
+ let n = [];
1503
+ return e == null || e.forEach((a) => {
1504
+ a.some((s) => Array.isArray(s)) ? n.push(...a) : n.push(a);
1505
+ }), ul(n, t);
1506
+ }, ve = (e) => {
1507
+ const t = { label: e[0].trim() };
1508
+ if (e.length > 1) {
1509
+ const n = e.slice(1);
1510
+ n.length === 1 && Array.isArray(n[0]) ? t.children = n[0].map(
1511
+ (l) => Array.isArray(l) ? ve(l) : { label: l.trim() }
1512
+ ) : t.children = n.map(
1513
+ (l) => Array.isArray(l) ? ve(l) : { label: l.trim() }
1514
+ );
1515
+ }
1516
+ return t;
1517
+ }, qe = (e) => {
1518
+ let t = e.replace(/:([^{}\[\],\s]+)([,\]}])/g, ':"$1"$2');
1519
+ return t = t.replace(/:}(?=,|]|}|$)/g, ':""}'), t = t.replace(/:,(?=\s*")/g, ':"",'), t = t.replace(
1520
+ /(https?|HTTPS?):"\/\/([^"]+)"/gi,
1521
+ (n, l, a) => `"${l}://${a}"`
1522
+ ), t = t.replace(
1523
+ /(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,
1524
+ '$1"$2"$3'
1525
+ ), t;
1526
+ }, ln = (e) => {
1527
+ var n;
1528
+ return e.some((l) => !Array.isArray(l)) ? e : (n = u(e)) == null ? void 0 : n.map((l) => {
1529
+ let a = [];
1530
+ return l.some((s) => Array.isArray(s)) ? l == null || l.forEach((s) => {
1531
+ Array.isArray(s) && a.push(ve(s));
1532
+ }) : l.some((s) => s.includes("[")) ? a.push(l) : a = l.map((s) => ({ label: s.trim() })), a;
1533
+ });
1534
+ }, pl = (e, t, n) => {
1535
+ let l = e, a = n, s = t;
1536
+ return s.children && (Array.isArray(a[a.length - 1]) ? a[a.length - 1].push(l[0]) : a.push(l[0]), l.shift(), s = s.children), Array.isArray(s) && s.forEach((o) => {
1537
+ if (o.children) {
1538
+ const p = pl(l, o, a);
1539
+ a = p[0], l = p[1];
1540
+ }
1541
+ }), [a, l];
1542
+ }, tn = (e, t) => {
1543
+ let n = e, l = [];
1544
+ return t.length > 0 ? t == null || t.forEach((a) => {
1545
+ let s = n == null ? void 0 : n[0];
1546
+ n.shift();
1547
+ const o = pl(u(n), a, s);
1548
+ s = o[0], n = o[1], l.push(s);
1549
+ }) : l = n, l;
1550
+ }, Ee = (e, t) => {
1551
+ const n = ln(u(e));
1552
+ return tn(n, t);
1553
+ }, nn = (e) => {
1554
+ const t = [];
1555
+ let n = 0;
1556
+ const l = e.length;
1557
+ for (; n < l; ) {
1558
+ const a = e[n];
1559
+ a.key === "tableColumns" && n + 1 < l && e[n + 1].key === "tableContents" ? (t.push({
1560
+ comp: "Table",
1561
+ compData: [a, e[n + 1]],
1562
+ name: ""
1563
+ }), n += 2) : (t.push(a), n += 1);
1564
+ }
1565
+ return t;
1566
+ }, il = (e) => Ee([e], []), an = (e) => {
1567
+ const t = [];
1568
+ return e == null || e.forEach((n) => n == null ? void 0 : n.forEach((a) => {
1569
+ var s, o;
1570
+ Ke.value++, t.push({
1571
+ id: Ke.value,
1572
+ key: (s = Object.keys(a)) == null ? void 0 : s[0],
1573
+ value: (o = Object.values(a)) == null ? void 0 : o[0],
1574
+ // 如果值为空,则key设为空字符串,否则保留原值
1575
+ width: n.length
1576
+ });
1577
+ })), t;
1578
+ }, ze = (e) => {
1579
+ let t = nn(e);
1580
+ return t = t == null ? void 0 : t.map((n) => {
1581
+ var l, a, s;
1582
+ if (n.comp === "Table")
1583
+ (l = n.compData) != null && l.find((o) => (o == null ? void 0 : o.key) === "header") || (n.compData = (a = n.compData) == null ? void 0 : a.map((o) => (o.key === "tableColumns" ? o = {
1584
+ key: "header",
1585
+ contents: Ee(o.value, [])
1586
+ } : o = {
1587
+ key: o.key,
1588
+ contents: o.value
1589
+ }, o)), n.compData.push({
1590
+ key: "extraButton",
1591
+ contents: [{ label: "新增" }]
1592
+ }), n.compData.push({
1593
+ key: "rowButton",
1594
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
1595
+ }));
1596
+ else if (n.key === "form") {
1597
+ const o = (s = n == null ? void 0 : n.value) == null ? void 0 : s.map((p) => (Array.isArray(p) || (p = [p]), p));
1598
+ n = {
1599
+ comp: "Form",
1600
+ compData: [
1601
+ {
1602
+ key: "formFlex",
1603
+ contents: ""
1604
+ },
1605
+ {
1606
+ key: "formContent",
1607
+ contents: an(o)
1608
+ }
1609
+ ],
1610
+ name: ""
1611
+ };
1612
+ }
1613
+ return n;
1614
+ }), t;
1615
+ }, sn = (e, t) => {
1616
+ var p, i, d, m, _, $;
1617
+ const n = [], l = ol((i = (p = e == null ? void 0 : e.find((v) => v.key === "tableIndex")) == null ? void 0 : p.value) == null ? void 0 : i[0]);
1618
+ n.push({
1619
+ key: "tableIndexColumn",
1620
+ contents: t
1621
+ }), n.push({
1622
+ key: "tableIndex",
1623
+ contents: l
1624
+ });
1625
+ let a = [];
1626
+ const s = (d = e == null ? void 0 : e.find((v) => v.key === "tableColumns")) == null ? void 0 : d.value;
1627
+ s.length === 1 && !(s != null && s[0].some((v) => Array.isArray(v))) ? a = (m = s == null ? void 0 : s[0]) == null ? void 0 : m.map((v) => ({ label: v })) : a = Ee((_ = e == null ? void 0 : e.find((v) => v.key === "tableColumns")) == null ? void 0 : _.value, l), n.push({
1628
+ key: "header",
1629
+ contents: a
1630
+ });
1631
+ const o = en(($ = e == null ? void 0 : e.find((v) => v.key === "tableContents")) == null ? void 0 : $.value, l);
1632
+ return n.push({
1633
+ key: "tableContents",
1634
+ contents: o
1635
+ }), n.push({
1636
+ key: "extraButton",
1637
+ contents: [{ label: "新增" }]
1638
+ }), n.push({
1639
+ key: "rowButton",
1640
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
1641
+ }), n;
1642
+ }, fl = (e) => e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, (t, n, l) => {
1643
+ const a = fl(l);
1644
+ return `"${n}",${a}`;
1645
+ }), ie = (e) => {
1646
+ const t = e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
1647
+ return fl(t).replace(/^"(.*)"$/, "$1");
1648
+ }, rn = (e) => {
1649
+ const t = /* @__PURE__ */ new Set();
1650
+ return e.filter((n) => {
1651
+ const l = JSON.stringify(n);
1652
+ return t.has(l) ? !1 : t.add(l);
1653
+ });
1654
+ }, Qe = (e) => {
1655
+ var n;
1656
+ let t = [];
1657
+ return (n = u(e)) == null || n.forEach((l) => {
1658
+ var a;
1659
+ (a = l.contents) == null || a.forEach((s) => {
1660
+ t.push(s);
1661
+ });
1662
+ }), t = rn(t), t.push({
1663
+ label: "操作"
1664
+ }), [t];
1665
+ }, on = (e, t) => e.reduce((n, l, a) => {
1666
+ const s = Math.floor(a / t);
1667
+ return n[s] || (n[s] = []), n[s].push(l), n;
1668
+ }, []), dl = (e) => e.reduce((t, n) => n.children && n.children.length > 0 ? t + dl(n.children) : t + 1, 0), cn = (e, t) => {
1669
+ var l;
1670
+ let n = [];
1671
+ return (l = on(e, dl(t == null ? void 0 : t[0]) - 1)) == null || l.forEach((a) => {
1672
+ let s = [];
1673
+ a.forEach((o) => {
1674
+ var p;
1675
+ Array.isArray(o.contents) ? (p = o.contents) == null || p.forEach((i) => {
1676
+ s.push(i);
1677
+ }) : s.push(o.contents);
1678
+ }), n.push(s);
1679
+ }), [n];
1680
+ }, un = ["方法体", "输入", "输出"], Xe = L(1), De = (e) => {
1681
+ let t;
1682
+ e.replaceAll(" ", `\r
1683
+ `).includes(`\r
1684
+ `) ? t = e.replaceAll(" ", `\r
1685
+ `).split(`\r
1686
+ `).filter((a) => a.trim() !== "") : t = e.replaceAll(" ", `\r
1687
+ `).split(`
1688
+ `).filter((a) => a.trim() !== "");
1689
+ const n = [];
1690
+ let l = "";
1691
+ for (const a of t)
1692
+ a.includes("{") || l.includes("{") || a.includes("[") || l.includes("[") || a.includes("【") || l.includes("【") || a.includes("(") || l.includes("(") || a.includes("(") || l.includes("(") || a.includes("/*") || l.includes("/*") ? (l += a.trim(), u(l).split("{").length - 1 === u(l).split("}").length - 1 && u(l).split("【").length - 1 === u(l).split("】").length - 1 && u(l).split("[").length - 1 === u(l).split("]").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("/*").length - 1 === u(l).split("*/").length - 1 && l[l.length - 1] !== "," && (n.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : n.push(a.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1693
+ return n;
1694
+ }, pn = (e) => {
1695
+ const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), a = n.replace(/^['"]|['"]$/g, "");
1696
+ return { key: l, value: a };
1697
+ }, be = (e) => {
1698
+ let t;
1699
+ e.includes(":") ? t = e.split(":").filter((a) => a.trim() !== "") : t = e.split(":").filter((a) => a.trim() !== "");
1700
+ const n = [];
1701
+ let l = "";
1702
+ for (const a of t)
1703
+ a.includes("{") || l.includes("{") || a.includes("[") || l.includes("[") || a.includes("【") || l.includes("【") || a.includes("(") || l.includes("(") || a.includes("(") || l.includes("(") || a.includes("/*") || l.includes("/*") ? (l = l !== "" ? l + ":" + a.trim() : a.trim(), u(l).split("{").length - 1 === u(l).split("}").length - 1 && u(l).split("【").length - 1 === u(l).split("】").length - 1 && u(l).split("[").length - 1 === u(l).split("]").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("(").length - 1 === u(l).split(")").length - 1 && u(l).split("/*").length - 1 === u(l).split("*/").length - 1 && (n.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : n.push(a.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1704
+ return n;
1705
+ }, fn = (e) => /^[\x00-\x7F]*$/.test(e), dn = (e) => {
1706
+ var a;
1707
+ const t = e.map((s) => {
1708
+ var p, i;
1709
+ let o = (i = (p = s.key.split("(")) == null ? void 0 : p[1]) == null ? void 0 : i.trim();
1710
+ return o.slice(0, o.length - 1);
1711
+ }), n = t == null ? void 0 : t.map((s) => {
1712
+ var p;
1713
+ return (p = be(s)) == null ? void 0 : p.map((i) => {
1714
+ var d;
1715
+ if (i.includes("{")) {
1716
+ let m = (d = i.split(":")) == null ? void 0 : d[0];
1717
+ i = m.slice(1, m.length);
1718
+ }
1719
+ return i;
1720
+ });
1721
+ }).filter((s) => s.length !== 0), l = (a = n == null ? void 0 : n.filter((s) => s.length !== 0)) == null ? void 0 : a.map((s) => {
1722
+ let o = "";
1723
+ return s.forEach((p) => {
1724
+ p.includes("{") || (o = o === "" ? o + u(p) : o + "/" + u(p));
1725
+ }), o;
1726
+ });
1727
+ return rl([...new Set(l)]);
1728
+ }, hl = (e) => {
1729
+ var n, l, a, s, o, p, i, d;
1730
+ const t = (l = (n = e.split("(")) == null ? void 0 : n[1]) == null ? void 0 : l.trim();
1731
+ return ((a = be(t.slice(0, t.length - 1))) == null ? void 0 : a.length) > 0 ? t.slice(0, t.length - 1) : (d = (i = (p = (o = (s = e.split("(")) == null ? void 0 : s[1]) == null ? void 0 : o.trim()) == null ? void 0 : p.split(")")) == null ? void 0 : i[0]) == null ? void 0 : d.trim();
1732
+ }, hn = (e) => {
1733
+ var a;
1734
+ if (!e) return;
1735
+ const t = hl(e), n = (a = be(t)) == null ? void 0 : a.map((s) => {
1736
+ var o;
1737
+ if (s.includes("{")) {
1738
+ let p = (o = s.split(":")) == null ? void 0 : o[0];
1739
+ s = p.slice(1, p.length);
1740
+ }
1741
+ return s;
1742
+ });
1743
+ let l = "";
1744
+ return n.forEach((s) => {
1745
+ s.includes("{") || (l = l === "" ? l + u(s) : l + "/" + u(s));
1746
+ }), l;
1747
+ }, yn = (e) => {
1748
+ const t = e.match(/\[(.*)\]/s);
1749
+ if (t) {
1750
+ const n = `[${t[1]}]`;
1751
+ try {
1752
+ const l = n.replace(/([^\[\],\s]+)/g, '"$1"');
1753
+ return JSON.parse(l);
1754
+ } catch (l) {
1755
+ console.error("解析失败:", l);
1756
+ }
1757
+ }
1758
+ }, mn = (e) => {
1759
+ var s;
1760
+ if (!e) return;
1761
+ const t = hl(e);
1762
+ let n = [], l = [], a = [];
1763
+ return (s = be(t)) == null || s.forEach((o) => {
1764
+ var p;
1765
+ o.includes("[") ? n.push(yn(o)) : o.includes("{") && (fn((p = o.slice(1, o.length - 1).split(":")) == null ? void 0 : p[0]) ? a.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : ee(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) || o.includes("$") || l.push(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')));
1766
+ }), [n, l, a];
1767
+ }, gn = (e) => {
1768
+ const t = [];
1769
+ let n = "";
1770
+ for (const l of e)
1771
+ l.includes("[") || n.includes("[") || l.includes("/*") || n.includes("/*") ? (n += l.trim(), u(n).split("{").length - 1 === u(n).split("}").length - 1 && u(n).split("【").length - 1 === u(n).split("】").length - 1 && u(n).split("[").length - 1 === u(n).split("]").length - 1 && u(n).split("(").length - 1 === u(n).split(")").length - 1 && u(n).split("(").length - 1 === u(n).split(")").length - 1 && u(n).split("/*").length - 1 === u(n).split("*/").length - 1 && (t.push(n.replace(/\/\*[\s\S]*?\*\//g, "")), n = "")) : t.push(l.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1772
+ return t;
1773
+ }, Ye = (e) => {
1774
+ var o, p;
1775
+ const t = [], n = /(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/, l = e.match(n);
1776
+ if (l) {
1777
+ const i = l[1] || l[3], d = l[2] || l[4];
1778
+ if (i && d) {
1779
+ const m = `${i}/${d}`;
1780
+ t.push(m);
1781
+ }
1782
+ }
1783
+ const a = /(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i, s = e.match(a);
1784
+ return s ? t.push(s[0].replace(/\)+$/, "")) : (e == null ? void 0 : e.split(",").length) === 2 && t.push((p = (o = e == null ? void 0 : e.split(",")) == null ? void 0 : o[1]) == null ? void 0 : p.trim()), t;
1785
+ }, $e = (e) => {
1786
+ let t = e.replace(/\[\s*,\s*,/g, '[{"": ""}, {"": ""},');
1787
+ return t = t.replace(/\[\s*,/g, '[{"": ""},'), t = t.replace(/,\s*,/g, ', {"": ""},'), t = t.replace(/,\s*\]/g, ', {"": ""}]'), t = t.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,\]}])/g, (n, l, a, s, o) => a.includes("'") ? `:${l}${a}${s}${o}` : `:${l}"${a}"${s}${o}`), t = t.replace(/:\s*([,\]}])/g, ': ""$1'), t;
1788
+ }, bn = (e) => !/\[[^\]]*\{[^\]]*\]/.test(e), kn = (e) => {
1789
+ const t = u(e).match(/(\w+)\(['"]([^'"]+)['"]:\s*\{['"]([^'"]+)['"]\}\)/), n = t ? `${t[2]}/${t[3]}` : null, l = e.match(/\[\{([^}]+)\}\]/), a = l == null ? void 0 : l[1].replaceAll(":", "").replaceAll("'", '"').trim();
1790
+ let s = null;
1791
+ if (a)
1792
+ try {
1793
+ s = JSON.parse(a);
1794
+ } catch (o) {
1795
+ console.error("解析数组失败:", o);
1796
+ }
1797
+ return [n, s];
1798
+ }, Cn = (e) => {
1799
+ var p, i, d, m, _, $, v, C, E, h, f;
1800
+ let t = [], n = [], l = {}, a = [], s = e.trim(), o = [];
1801
+ if (s.trim().includes("输入") && s.trim().includes("输出")) {
1802
+ let g = [], k = e.trim();
1803
+ k = u(k).slice(1, u(k).length - 1);
1804
+ const c = /(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;
1805
+ (C = k.match(c)) == null || C.forEach((r, y) => {
1806
+ var P;
1807
+ const A = r;
1808
+ let O = [];
1809
+ (P = A.slice(1, A.length - 1).replace(":", "$:").split("$:")) == null || P.forEach((x) => {
1810
+ var U, G, T;
1811
+ if (un.find((S) => x.includes(S)))
1812
+ if (!x.includes("=="))
1813
+ O.push({ key: "tableIndexColumn", contents: x.replaceAll("'", "") });
1814
+ else {
1815
+ let S = [];
1816
+ const N = x.replaceAll("'", "").split("==");
1817
+ S.push(N == null ? void 0 : N[0]), N != null && N[1].includes("[") ? S.push(N == null ? void 0 : N[1].trim().slice(1, (N == null ? void 0 : N[1].length) - 1).split(",")) : S.push([N == null ? void 0 : N[1]]), O.push({ key: "header", contents: [(G = (U = il([S])) == null ? void 0 : U[0]) == null ? void 0 : G[0]] });
1818
+ }
1819
+ else {
1820
+ let S = x.trim().replaceAll(",", ",").replaceAll("'", '"');
1821
+ if (y % 3 === 0)
1822
+ S.slice(1, S.length - 1).includes("[") ? g.push({
1823
+ key: "tableIndex",
1824
+ contents: [{ label: S }]
1825
+ }) : g.push({
1826
+ key: "tableIndex",
1827
+ contents: [{ label: S.slice(1, S.length - 1) }]
1828
+ });
1829
+ else if ((S == null ? void 0 : S[0]) === "{") {
1830
+ let N = [];
1831
+ const D = S.slice(1, S.length - 1).split(":");
1832
+ if (D.every((b) => ee(b.trim()))) {
1833
+ N.push({ key: "tableContentName", contents: "详情" });
1834
+ let b = [];
1835
+ D.forEach((B, j) => {
1836
+ if (j === 0) {
1837
+ const M = JSON.parse(B).map((W) => ({ label: W }));
1838
+ M.push({
1839
+ label: "操作"
1840
+ }), b.push({
1841
+ key: "header",
1842
+ contents: M
1843
+ });
1844
+ } else
1845
+ b.push({
1846
+ key: "tableContents",
1847
+ contents: JSON.parse(B)
1848
+ });
1849
+ }), b.push({
1850
+ key: "extraButton",
1851
+ contents: [{ label: "新增" }]
1852
+ }), b.push({
1853
+ key: "rowButton",
1854
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
1855
+ }), N.push({
1856
+ comp: "Table",
1857
+ compData: b,
1858
+ name: ""
1859
+ }), g.push({
1860
+ key: "tableContents",
1861
+ contents: [N]
1862
+ });
1863
+ }
1864
+ } else {
1865
+ let N = S;
1866
+ N.slice(1, N.length - 1).includes("[") || N.slice(1, N.length - 1).includes("{") ? ee(qe(N.replace(/\s+/g, ""))) && ((T = JSON.parse(qe(N.replace(/\s+/g, "")))) == null || T.map((D) => {
1867
+ if (Array.isArray(D == null ? void 0 : D[0])) {
1868
+ const b = [];
1869
+ b.push({ key: "tableContentName", contents: "详情" });
1870
+ let B = [];
1871
+ D.forEach((j) => {
1872
+ j.forEach((M) => {
1873
+ var W, Q;
1874
+ Xe.value++, B.push({
1875
+ id: Xe.value,
1876
+ key: (W = Object.keys(M)) == null ? void 0 : W[0],
1877
+ value: (Q = Object.values(M)) == null ? void 0 : Q[0],
1878
+ width: j.length
1879
+ });
1880
+ });
1881
+ }), b.push({
1882
+ comp: "Form",
1883
+ compData: [{
1884
+ key: "formFlex",
1885
+ contents: ""
1886
+ }, {
1887
+ key: "formContent",
1888
+ contents: B
1889
+ }],
1890
+ name: ""
1891
+ }), g.push({
1892
+ key: "tableContents",
1893
+ contents: [b]
1894
+ });
1895
+ } else
1896
+ g.push({
1897
+ key: "tableContents",
1898
+ contents: D == null ? void 0 : D[0]
1899
+ });
1900
+ })) : g.push({
1901
+ key: "tableContents",
1902
+ contents: N.trim().slice(1, N.length - 1)
1903
+ });
1904
+ }
1905
+ }
1906
+ }), g.push(O == null ? void 0 : O[0]);
1907
+ }), o.push({
1908
+ key: "tableIndex",
1909
+ contents: (E = g == null ? void 0 : g.filter((r) => (r == null ? void 0 : r.key) === "tableIndex")) == null ? void 0 : E.map((r) => {
1910
+ var y;
1911
+ return (y = r.contents) == null ? void 0 : y[0];
1912
+ })
1913
+ }), o.push({
1914
+ key: "extraButton",
1915
+ contents: [{ label: "新增" }]
1916
+ }), o.push({
1917
+ key: "rowButton",
1918
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
1919
+ }), o.push({
1920
+ key: "tableIndexColumn",
1921
+ contents: (f = (h = g == null ? void 0 : g.filter((r) => (r == null ? void 0 : r.key) === "tableIndexColumn")) == null ? void 0 : h[0]) == null ? void 0 : f.contents
1922
+ }), o.push({
1923
+ key: "header",
1924
+ contents: Qe(g == null ? void 0 : g.filter((r) => (r == null ? void 0 : r.key) === "header"))
1925
+ }), o.push({
1926
+ key: "tableContents",
1927
+ contents: cn(g == null ? void 0 : g.filter((r) => (r == null ? void 0 : r.key) === "tableContents"), Qe(g == null ? void 0 : g.filter((r) => (r == null ? void 0 : r.key) === "header")))
1928
+ });
1929
+ } else {
1930
+ const g = (p = s.trim().split(",$")) == null ? void 0 : p[0];
1931
+ g[0] === "[" ? s = g.slice(1, g.length - 1) : s.includes(",$") && (s = (i = s.trim().split(",$")) == null ? void 0 : i[0]);
1932
+ let k;
1933
+ if (s.includes("$")) {
1934
+ s = u(s), l.method = (m = (d = u(s).trim()) == null ? void 0 : d.slice(1, s.length).split("(")) == null ? void 0 : m[0];
1935
+ let c;
1936
+ Ye(s.slice(1, s.length - 2)).length > 1 ? c = Ye(s.slice(1, s.length - 2)) : c = kn(s), l.value = c;
1937
+ } else
1938
+ ee("[" + $e(s).replaceAll("'", '"') + "]") && !bn($e(s).replaceAll("'", '"')) ? (s = JSON.parse("[" + $e(s).replaceAll("'", '"') + "]"), a = s) : k = ($ = (_ = u(s).split("}")) == null ? void 0 : _.filter((c) => c !== "")) == null ? void 0 : $.map((c) => {
1939
+ let r = c;
1940
+ return r[0] === "," ? r = r.slice(2, r.length) : r = r.slice(1, r.length), r;
1941
+ });
1942
+ (v = u(k)) == null || v.forEach((c) => {
1943
+ var r, y, A, O, P, x, U, G, T, S, N, D, b, B, j;
1944
+ if (c.includes("==")) {
1945
+ const M = (D = c == null ? void 0 : c.split(":")) == null ? void 0 : D[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), W = (b = c == null ? void 0 : c.split(":")) == null ? void 0 : b[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
1946
+ if (ee(W.trim()) ? n.push(JSON.parse(W.trim())) : n.push(JSON.parse(W.replaceAll("'", '"').trim())), M[0] !== "[") {
1947
+ let Q = [];
1948
+ ee("[" + ie(M) + "]") ? Q.push(JSON.parse("[" + ie(M) + "]")) : ee("[" + ie(M).replaceAll("==", ",") + "]") && Q.push(JSON.parse("[" + ie(M).replaceAll("==", ",") + "]"));
1949
+ const le = u(Q);
1950
+ le.push(["操作"]), t.push(le);
1951
+ } else {
1952
+ const Q = (B = M.slice(1, M.length - 1).replaceAll(",", ",|")) == null ? void 0 : B.split("|"), le = (j = gn(Q)) == null ? void 0 : j.map((H) => ((H == null ? void 0 : H[H.length - 1]) === "," && (H = H.slice(0, H.length - 1)), H));
1953
+ let se = [];
1954
+ le == null || le.forEach((H) => {
1955
+ var Y, I, V, R;
1956
+ let X = [];
1957
+ X.push((Y = H.split("==")) == null ? void 0 : Y[0].trim().replace(/^"|"$/g, "")), ((I = H.split("==")) == null ? void 0 : I[1].trim()[0]) === "[" ? X.push(JSON.parse((V = H.split("==")) == null ? void 0 : V[1].trim())) : X.push([JSON.parse((R = H.split("==")) == null ? void 0 : R[1].trim())]), se.push(X);
1958
+ });
1959
+ const re = u(se);
1960
+ re.push(["操作"]), t.push(re);
1961
+ }
1962
+ } else {
1963
+ if (ee((r = c == null ? void 0 : c.split(":")) == null ? void 0 : r[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'))) {
1964
+ let M = JSON.parse((y = c == null ? void 0 : c.split(":")) == null ? void 0 : y[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'));
1965
+ Array.isArray(M) || (M = [M]), M.push("操作"), t.push(M);
1966
+ }
1967
+ ee((P = (O = (A = c == null ? void 0 : c.split(":")) == null ? void 0 : A[1]) == null ? void 0 : O.replace(/^"|"$/g, "'")) == null ? void 0 : P.replace(/'([^']+)'/g, '"$1"')) ? n.push(JSON.parse((x = c == null ? void 0 : c.split(":")) == null ? void 0 : x[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : ee((S = (T = (G = (U = c == null ? void 0 : c.split(":")) == null ? void 0 : U[1]) == null ? void 0 : G.replace(/^"|"$/g, "'")) == null ? void 0 : T.replaceAll("'", '"')) == null ? void 0 : S.replace(/'([^']+)'/g, '"$1"')) && n.push(JSON.parse((N = c == null ? void 0 : c.split(":")) == null ? void 0 : N[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
1968
+ }
1969
+ });
1970
+ }
1971
+ return [t, n, o, l, a];
1972
+ }, An = (e) => {
1973
+ const t = [], n = hn(e == null ? void 0 : e.key), l = mn(e == null ? void 0 : e.key), a = Cn(e == null ? void 0 : e.value), s = l == null ? void 0 : l[0], o = [...l == null ? void 0 : l[1], ...a == null ? void 0 : a[4]], p = l == null ? void 0 : l[2], i = a == null ? void 0 : a[0], d = a == null ? void 0 : a[1], m = a == null ? void 0 : a[2], _ = a == null ? void 0 : a[3];
1974
+ return n && t.push({
1975
+ key: "contentPath",
1976
+ value: n
1977
+ }), (s == null ? void 0 : s.length) > 0 && t.push({
1978
+ key: "tableIndex",
1979
+ value: s
1980
+ }), _ && t.push({
1981
+ key: "extraButton",
1982
+ value: _
1983
+ }), (o == null ? void 0 : o.length) > 0 && t.push({
1984
+ key: "form",
1985
+ value: o
1986
+ }), (p == null ? void 0 : p.length) > 0 && t.push({
1987
+ key: "extra",
1988
+ value: p
1989
+ }), (m == null ? void 0 : m.length) > 0 && t.push({
1990
+ comp: "Table",
1991
+ compData: m,
1992
+ name: ""
1993
+ }), (i == null ? void 0 : i.length) > 0 && t.push({
1994
+ key: "tableColumns",
1995
+ value: i
1996
+ }), (d == null ? void 0 : d.length) > 0 && t.push({
1997
+ key: "tableContents",
1998
+ value: d
1999
+ }), t;
2000
+ }, $n = (e, t) => {
2001
+ const n = t.split("/");
2002
+ let l = [];
2003
+ return e == null || e.forEach((a) => {
2004
+ var p, i, d, m, _, $, v, C, E;
2005
+ const s = [], o = (i = (p = a.find((h) => h.key === "tableIndex")) == null ? void 0 : p.value) == null ? void 0 : i[0];
2006
+ if (o && !o.some((h) => Array.isArray(h))) {
2007
+ const h = (m = (d = a.find((f) => f.key === "tableColumns")) == null ? void 0 : d.value) == null ? void 0 : m[0];
2008
+ s.push({
2009
+ key: "tableIndexColumn",
2010
+ contents: n[n.length - 1]
2011
+ }), s.push({
2012
+ key: "tableIndex",
2013
+ contents: o == null ? void 0 : o.map((f) => ({ label: f }))
2014
+ }), s.push({
2015
+ key: "extraButton",
2016
+ contents: [{ label: "新增" }]
2017
+ }), s.push({
2018
+ key: "rowButton",
2019
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
2020
+ }), Array.isArray(h) && h.some((f) => Array.isArray(f)) ? s.push({
2021
+ key: "header",
2022
+ contents: il(h)
2023
+ }) : s.push({
2024
+ key: "header",
2025
+ contents: Array.isArray(h) ? h == null ? void 0 : h.map((f) => ({ label: f })) : [h].map((f) => ({ label: f }))
2026
+ }), s.push({
2027
+ key: "tableContents",
2028
+ contents: Array.isArray(h) ? ($ = (_ = a.find((f) => f.key === "tableContents")) == null ? void 0 : _.value) == null ? void 0 : $[0] : (E = (C = (v = a.find((f) => f.key === "tableContents")) == null ? void 0 : v.value) == null ? void 0 : C[0]) == null ? void 0 : E.map((f) => [f])
2029
+ }), l.push({
2030
+ comp: "Table",
2031
+ name: "",
2032
+ compData: s
2033
+ });
2034
+ } else o ? l.push({
2035
+ comp: "Table",
2036
+ name: "",
2037
+ compData: sn(a, n[n.length - 1])
2038
+ }) : a.some((h) => h.key === "extra") ? l.push({
2039
+ comp: "calculator",
2040
+ name: "",
2041
+ compData: ze(a)
2042
+ }) : l.push(ze(a));
2043
+ }), l;
2044
+ }, On = (e, t) => {
2045
+ var a, s;
2046
+ const n = e.map((o) => o.filter((p) => p.key !== "contentPath"));
2047
+ return {
2048
+ comp: "Group",
2049
+ compData: [{
2050
+ contents: $n(n, t),
2051
+ key: "groupContents"
2052
+ }],
2053
+ name: (s = (a = e[0]) == null ? void 0 : a.find((o) => o.key === "contentPath")) == null ? void 0 : s.value
2054
+ };
2055
+ }, _n = (e) => {
2056
+ var a;
2057
+ const t = [], n = u(e).map((s) => {
2058
+ var o;
2059
+ if (s != null && s.find((p) => (p == null ? void 0 : p.key) === "contentPath"))
2060
+ return (o = s == null ? void 0 : s.find((p) => (p == null ? void 0 : p.key) === "contentPath")) == null ? void 0 : o.value;
2061
+ }).filter((s) => s !== ""), l = [...new Set(n)];
2062
+ return (a = l == null ? void 0 : l.filter((s) => s)) == null || a.forEach((s) => {
2063
+ var o;
2064
+ t.push(On((o = u(e)) == null ? void 0 : o.filter((p) => p.find((i) => i.key === "contentPath" && i.value === s)), s));
2065
+ }), t;
2066
+ }, vn = (e) => {
2067
+ let t = [];
2068
+ t.push({
2069
+ comp: "Menu",
2070
+ compData: [{
2071
+ contents: dn(u(e)),
2072
+ key: "menuContents"
2073
+ }],
2074
+ name: ""
2075
+ });
2076
+ const n = e.map((l) => An(l)).filter((l) => l.length !== 0);
2077
+ return t = [...t, ..._n(n)], t;
2078
+ }, qn = (e) => {
2079
+ var a, s, o, p, i;
2080
+ const t = (o = De((s = (a = u(e)) == null ? void 0 : a.replace("(", "(")) == null ? void 0 : s.replace(")", ")"))) == null ? void 0 : o.filter((d) => d !== ""), n = (i = (p = u(t)) == null ? void 0 : p.filter((d) => !d.includes("/*"))) == null ? void 0 : i.map((d) => pn(d));
2081
+ return vn(n);
2082
+ }, fe = L(0), Oe = L(0), xn = (e) => {
2083
+ const t = e.trim().replace(/^'|'$/g, ""), n = /((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g, l = {};
2084
+ let a;
2085
+ for (; (a = n.exec(t)) !== null; ) {
2086
+ const s = a[1];
2087
+ let o = a[2].trim();
2088
+ (o.match(/\[/g) || []).length !== (o.match(/\]/g) || []).length && (o = o == null ? void 0 : o.replace(/]$/, "")), l[s] ? (l[s + Oe.value] && Oe.value++, l[s + Oe.value] = s + "=" + o) : l[s] = s + "=" + o;
2089
+ }
2090
+ return l;
2091
+ }, yl = (e) => {
2092
+ const [t, n] = e.split("=").map((s) => s.trim()), l = t.replace(/['"]/g, ""), a = n.replace(/^['"]|['"]$/g, "");
2093
+ return { key: l, value: a };
2094
+ }, Tn = (e) => {
2095
+ var o;
2096
+ let t = [];
2097
+ const [n, l] = e.split(/=(.+)/), a = n.replace(/['"]/g, "").trim(), s = l.replace(/^['"]|['"]$/g, "");
2098
+ return (o = Object.values(xn(s))) == null || o.forEach((p) => {
2099
+ t.push(yl(p));
2100
+ }), { key: a, value: t };
2101
+ }, ye = (e) => {
2102
+ try {
2103
+ return JSON.parse(e), !0;
2104
+ } catch {
2105
+ return !1;
2106
+ }
2107
+ }, ml = (e) => {
2108
+ try {
2109
+ const t = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
2110
+ if (u(t).split("{").length - 1 > 1) {
2111
+ let n = u(t).replace(/^\{(.*)\}$/, "[$1]");
2112
+ if (ye(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), ye(n)) {
2113
+ const l = JSON.parse(n);
2114
+ let a = [];
2115
+ return l == null || l.forEach((s) => {
2116
+ var o;
2117
+ (o = Object.entries(u(s))) == null || o.forEach((p) => {
2118
+ fe.value++, a.push({
2119
+ id: fe.value,
2120
+ key: (p == null ? void 0 : p[0]) ?? "",
2121
+ value: (p == null ? void 0 : p[1]) === "" ? "" : p == null ? void 0 : p[1],
2122
+ // 如果值为空,则key设为空字符串,否则保留原值
2123
+ width: Object.keys(u(s)).length
2124
+ });
2125
+ });
2126
+ }), a;
2127
+ } else
2128
+ return console.error("转换类型不正确:"), [];
2129
+ } else if (ye(t)) {
2130
+ const n = JSON.parse(t);
2131
+ return Object.entries(n).map(([l, a]) => (fe.value++, {
2132
+ id: fe.value,
2133
+ key: l,
2134
+ value: a === "" ? "" : a,
2135
+ // 如果值为空,则key设为空字符串,否则保留原值
2136
+ width: 1
2137
+ }));
2138
+ } else
2139
+ return t;
2140
+ } catch (t) {
2141
+ return console.error("转换失败:", t), [];
2142
+ }
2143
+ }, En = (e, t) => {
2144
+ try {
2145
+ if (J != null && J.find((n) => (n == null ? void 0 : n.key) === t))
2146
+ return JSON.parse(e.replace(/[’]|[‘]|[']/g, '"'));
2147
+ if (u(e).split("[").length - 1 > 1) {
2148
+ const n = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
2149
+ return JSON.parse(n);
2150
+ } else {
2151
+ const n = u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
2152
+ if (ye(n)) {
2153
+ const l = JSON.parse(n);
2154
+ return Array.isArray(l) ? l.map((a) => ({ label: a })) : l;
2155
+ } else
2156
+ return ml(u(e));
2157
+ }
2158
+ } catch (n) {
2159
+ return console.error("解析失败:", n), e;
2160
+ }
2161
+ }, Dn = (e) => ({ [e == null ? void 0 : e.key]: En(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), Nn = (e) => {
2162
+ try {
2163
+ if (u(e).split("[").length - 1 > 1) {
2164
+ const t = u(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
2165
+ return JSON.parse(t);
2166
+ } else
2167
+ return JSON.parse(u(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
2168
+ } catch (t) {
2169
+ return console.error("解析失败:", t), e;
2170
+ }
2171
+ }, gl = (e) => {
2172
+ var t, n, l, a, s, o;
2173
+ try {
2174
+ const p = De((n = (t = u(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), i = (l = u(p)) == null ? void 0 : l.map((_) => {
2175
+ var v, C;
2176
+ let $ = (C = (v = u(_)) == null ? void 0 : v.split("=")) == null ? void 0 : C[0];
2177
+ return $ != null && $.includes("GroupContents") ? Tn(_) : yl(_);
2178
+ }), d = [];
2179
+ (a = u(i)) == null || a.forEach((_) => {
2180
+ var $, v, C, E, h;
2181
+ J != null && J.find((f) => {
2182
+ var g, k;
2183
+ return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = _ == null ? void 0 : _.key) == null ? void 0 : k.toUpperCase());
2184
+ }) ? d.push({
2185
+ comp: (($ = J == null ? void 0 : J.find((f) => {
2186
+ var g, k;
2187
+ return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = _ == null ? void 0 : _.key) == null ? void 0 : k.toUpperCase());
2188
+ })) == null ? void 0 : $.value) ?? "",
2189
+ name: (v = _ == null ? void 0 : _.value) == null ? void 0 : v.replace(/[’]|[‘]|[']/g, ""),
2190
+ compData: []
2191
+ }) : F != null && F.find((f) => {
2192
+ var g, k;
2193
+ return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = _ == null ? void 0 : _.key) == null ? void 0 : k.toUpperCase());
2194
+ }) && ((d == null ? void 0 : d.length) === 0 && (C = _.key) != null && C.includes("Menus") && d.push({
2195
+ comp: "Menu",
2196
+ name: "",
2197
+ compData: []
2198
+ }), (E = d == null ? void 0 : d[(d == null ? void 0 : d.length) - 1]) != null && E.compData && d[(d == null ? void 0 : d.length) - 1].compData.push({
2199
+ key: (h = F == null ? void 0 : F.find((f) => {
2200
+ var g, k;
2201
+ return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = _ == null ? void 0 : _.key) == null ? void 0 : k.toUpperCase());
2202
+ })) == null ? void 0 : h.value,
2203
+ contents: _ == null ? void 0 : _.value
2204
+ }));
2205
+ }), console.log("newContents", d);
2206
+ let m = (s = u(d)) == null ? void 0 : s.map((_) => {
2207
+ var $;
2208
+ return _ != null && _.compData && (_.compData = ($ = _ == null ? void 0 : _.compData) == null ? void 0 : $.map((v) => {
2209
+ var C, E, h, f, g, k, c, r, y, A, O;
2210
+ if ((v == null ? void 0 : v.key) === "formFlex")
2211
+ v.contents = ((E = (C = v.contents) == null ? void 0 : C.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : E.toUpperCase()) !== "Vertical".toUpperCase();
2212
+ else if ((v == null ? void 0 : v.key) === "groupContents")
2213
+ v.contents = (h = u(v.contents)) == null ? void 0 : h.map((P) => Dn(u(P)));
2214
+ else if (((g = (f = v.contents) == null ? void 0 : f.trim()) != null && g.startsWith("[") || (c = (k = v.contents) == null ? void 0 : k.trim()) != null && c.startsWith("【")) && ((y = (r = v.contents) == null ? void 0 : r.trim()) != null && y.endsWith("]") || (O = (A = v.contents) == null ? void 0 : A.trim()) != null && O.endsWith("】")))
2215
+ v.contents = Nn(u(v.contents));
2216
+ else {
2217
+ if (!v.contents) return;
2218
+ v.contents = ml(u(v.contents));
2219
+ }
2220
+ return v;
2221
+ })), _;
2222
+ });
2223
+ return m = (o = u(m)) == null ? void 0 : o.map((_) => {
2224
+ var $;
2225
+ return (_ == null ? void 0 : _.comp) === "Group" && (_.compData = ($ = _.compData) == null ? void 0 : $.map((v) => {
2226
+ var E;
2227
+ let C = [];
2228
+ return (E = v.contents) == null || E.forEach((h) => {
2229
+ var f, g, k, c, r, y, A, O, P, x, U, G;
2230
+ if (J != null && J.find((T) => {
2231
+ var S, N, D;
2232
+ return ((S = T == null ? void 0 : T.key) == null ? void 0 : S.toUpperCase()) === ((D = (N = Object.keys(h)) == null ? void 0 : N[0]) == null ? void 0 : D.toUpperCase());
2233
+ }))
2234
+ C.push({
2235
+ comp: (f = J == null ? void 0 : J.find((T) => {
2236
+ var S, N, D;
2237
+ return ((S = T == null ? void 0 : T.key) == null ? void 0 : S.toUpperCase()) === ((D = (N = Object.keys(h)) == null ? void 0 : N[0]) == null ? void 0 : D.toUpperCase());
2238
+ })) == null ? void 0 : f.value,
2239
+ name: (k = (g = Object.values(h)) == null ? void 0 : g[0]) == null ? void 0 : k.replace(/[’]|[‘]|[']/g, ""),
2240
+ compData: []
2241
+ });
2242
+ else if (F != null && F.find((T) => {
2243
+ var S, N, D;
2244
+ return ((S = T == null ? void 0 : T.key) == null ? void 0 : S.toUpperCase()) === ((D = (N = Object.keys(h)) == null ? void 0 : N[0]) == null ? void 0 : D.toUpperCase());
2245
+ })) {
2246
+ if ((C == null ? void 0 : C.length) === 0) return;
2247
+ (c = C == null ? void 0 : C[(C == null ? void 0 : C.length) - 1]) != null && c.compData && C[(C == null ? void 0 : C.length) - 1].compData.push({
2248
+ key: (r = F == null ? void 0 : F.find((T) => {
2249
+ var S, N, D;
2250
+ return ((S = T == null ? void 0 : T.key) == null ? void 0 : S.toUpperCase()) === ((D = (N = Object.keys(h)) == null ? void 0 : N[0]) == null ? void 0 : D.toUpperCase());
2251
+ })) == null ? void 0 : r.value,
2252
+ contents: (y = Object.values(h)) == null ? void 0 : y[0]
2253
+ });
2254
+ } else if ((O = (A = Object.keys(h)) == null ? void 0 : A[0]) != null && O.includes("$")) {
2255
+ const T = (x = (P = Object.keys(u(h))) == null ? void 0 : P[0]) == null ? void 0 : x.split("$");
2256
+ C[(C == null ? void 0 : C.length) - 1].compData.push({
2257
+ key: (U = F == null ? void 0 : F.find((S) => {
2258
+ var N, D;
2259
+ return ((N = S == null ? void 0 : S.key) == null ? void 0 : N.toUpperCase()) === ((D = T == null ? void 0 : T[0]) == null ? void 0 : D.toUpperCase());
2260
+ })) == null ? void 0 : U.value,
2261
+ contents: (G = Object.values(h)) == null ? void 0 : G[0],
2262
+ selectLabel: T == null ? void 0 : T[1]
2263
+ });
2264
+ }
2265
+ return h;
2266
+ }), v.contents = C, v;
2267
+ })), _;
2268
+ }), m;
2269
+ } catch {
2270
+ return !1;
2271
+ }
2272
+ }, zn = (e) => gl(e), Qn = (e) => !!gl(e), Sn = ll(xe), { itemData: Xn } = Te(Sn), Pn = Dl(xe), { systemKey: Yn, activeMenuPath: Vn } = Te(Pn), oe = L(0), ea = (e) => e.reduce((n, l) => {
2273
+ var s, o;
2274
+ const a = Object.values(n);
2275
+ return (((s = Object.keys(n)) == null ? void 0 : s.length) === 0 || a[a.length - 1].length >= (l == null ? void 0 : l.width)) && (n[oe.value] = [], oe.value++), n[oe.value - 1].push(l), ((o = Object.keys(n)) == null ? void 0 : o.length) === (l == null ? void 0 : l.width) && (n[oe.value] = [], oe.value++), n;
2276
+ }, {});
2277
+ export {
2278
+ ea as a,
2279
+ Zn as b,
2280
+ qn as c,
2281
+ Kn as d,
2282
+ zn as e,
2283
+ Gt as g,
2284
+ Qn as i,
2285
+ Wn as s
2286
+ };