ss-component-new 1.1.155 → 1.1.158

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