ss-component-new 1.1.156 → 1.1.160

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 (95) hide show
  1. package/dist/array-CGHpppnk.js +2276 -0
  2. package/dist/array-DgXckCfA.cjs +7 -0
  3. package/dist/{cloneDeep-MaJ-HEsl.cjs → cloneDeep-B5dto-gk.cjs} +1 -1
  4. package/dist/{cloneDeep-DYuvtz8w.js → cloneDeep-CCy-b0IY.js} +1 -1
  5. package/dist/formToTable-Cd04iFQ6.cjs +1 -0
  6. package/dist/formToTable-CgAw3Par.js +18 -0
  7. package/dist/{index-CooBtp1Q.js → index-B3RyXYx4.js} +4 -4
  8. package/dist/index-B7M2yD60.cjs +1 -0
  9. package/dist/{index-DxEr-vrn.js → index-B97D-s4t.js} +7 -7
  10. package/dist/index-B9FPRzqU.js +35 -0
  11. package/dist/{index-CXnPhoaO.js → index-BD_qMCdC.js} +6 -7
  12. package/dist/{index-Bl-ZnXM9.js → index-BQXnYfEF.js} +1 -1
  13. package/dist/index-BVT_QpeJ.cjs +1 -0
  14. package/dist/{index-Csg3LnOQ.js → index-Bi-XV9UR.js} +1 -1
  15. package/dist/{index-BRo5E7t3.cjs → index-BtJog81O.cjs} +1 -1
  16. package/dist/{index-DUQA5f1I.js → index-BtRIT6Ae.js} +6 -6
  17. package/dist/{index-BNZ40YOQ.cjs → index-ByLp8cpz.cjs} +1 -1
  18. package/dist/{index-BplLATY1.cjs → index-C9pTderR.cjs} +1 -1
  19. package/dist/index-CDWq530B.cjs +1 -0
  20. package/dist/{index-DYXbgOOH.js → index-CDzQfiDz.js} +236 -220
  21. package/dist/index-CVfcr-R7.cjs +1 -0
  22. package/dist/index-CZDD-I5Z.cjs +1 -0
  23. package/dist/{index-n8LtwpMx.js → index-CgNEix0L.js} +6 -6
  24. package/dist/{index-firgYmxE.cjs → index-ChLpP7-o.cjs} +1 -1
  25. package/dist/{index-pjN_rAxR.js → index-CvkjxCFU.js} +7 -7
  26. package/dist/index-CzC8CDl5.js +3285 -0
  27. package/dist/{index-DKojfxG7.js → index-D2r7kzjf.js} +13 -13
  28. package/dist/{index-tg7ByrvV.js → index-D5apkcn5.js} +1 -1
  29. package/dist/index-D73pgJP6.cjs +1 -0
  30. package/dist/{index-BJxHK1HL.cjs → index-D7xRNMdQ.cjs} +1 -1
  31. package/dist/{index-CI2NIyyc.js → index-DFhE9fyQ.js} +8 -8
  32. package/dist/index-DGT6ZWc6.cjs +1 -0
  33. package/dist/{index-CyeLW-_2.js → index-DNc603JB.js} +211 -219
  34. package/dist/{index-BAsFJi4_.cjs → index-DXYG_vqx.cjs} +1 -1
  35. package/dist/index-DawvLCqx.cjs +10 -0
  36. package/dist/index-DfyN3qju.cjs +1 -0
  37. package/dist/{index-7x1z33_d.cjs → index-DggOhVP0.cjs} +1 -1
  38. package/dist/{index-DwWG8R_h.js → index-Djjj6UTt.js} +21 -21
  39. package/dist/{index-Dj1FS92v.cjs → index-Dk1VQkZ1.cjs} +1 -1
  40. package/dist/index-DmAup3p7.cjs +9 -0
  41. package/dist/{index-BeIP88FV.js → index-DmOLuCV8.js} +14 -15
  42. package/dist/{index-BHuLakDn.cjs → index-DyNEvxkD.cjs} +3 -3
  43. package/dist/{index-BWCb-uxz.js → index-dFQoZFYH.js} +386 -409
  44. package/dist/index-ocXP7HKh.js +61 -0
  45. package/dist/index-pyCx1r6E.cjs +1 -0
  46. package/dist/{index-D-ln0D7_.js → index-zrOqmTVg.js} +137 -130
  47. package/dist/index.vue_vue_type_script_setup_true_lang-Bgdcq6CT.cjs +1 -0
  48. package/dist/index.vue_vue_type_script_setup_true_lang-CZRsNsBv.js +232 -0
  49. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-BliN8uiG.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-BkHFT0yM.js} +76 -75
  50. package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-BytYU-WU.cjs +1 -0
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-B4TUKL1m.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BS9seLFj.cjs} +1 -1
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CiXz1MNX.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DSEtEP3a.js} +6 -6
  53. package/dist/login-CrDfXp-s.js +72 -0
  54. package/dist/login-DrSiL5wa.cjs +1 -0
  55. package/dist/main-Bvdmtnxu.cjs +1 -0
  56. package/dist/{main-C3uNWtGO.js → main-DLsE2nIH.js} +6 -6
  57. package/dist/{menu-XcYMZJLY.js → menu-Ba14VNfz.js} +1792 -1378
  58. package/dist/menu-Dy2zMsxX.cjs +11 -0
  59. package/dist/{modelComp-D92KnJp5.js → modelComp-2xoln0bi.js} +1 -1
  60. package/dist/{modelComp-BEbnfZgR.cjs → modelComp-Bmfim5B0.cjs} +1 -1
  61. package/dist/request-5zUpa42n.js +2083 -0
  62. package/dist/request-RlbIzVWt.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 +3 -2
  71. package/dist/array-BHyd5C3-.js +0 -2405
  72. package/dist/array-D7_c_MPG.cjs +0 -7
  73. package/dist/index-78kdleU6.cjs +0 -1
  74. package/dist/index-BAgqLldQ.cjs +0 -1
  75. package/dist/index-BdfZM0nv.cjs +0 -10
  76. package/dist/index-By8_EOJf.cjs +0 -1
  77. package/dist/index-C8WUAcoA.js +0 -232
  78. package/dist/index-CPwvdghc.js +0 -2836
  79. package/dist/index-Cl_nJKV0.cjs +0 -1
  80. package/dist/index-D0Ik3DAQ.cjs +0 -1
  81. package/dist/index-D416X2y6.cjs +0 -1
  82. package/dist/index-DC-LDNCe.cjs +0 -1
  83. package/dist/index-DEA1d9fj.cjs +0 -6
  84. package/dist/index-DOMKKwkp.js +0 -126
  85. package/dist/index-DQG-Kzuq.cjs +0 -1
  86. package/dist/index-Df181-PD.cjs +0 -1
  87. package/dist/index.vue_vue_type_script_setup_true_lang-BCvveKHi.cjs +0 -1
  88. package/dist/index.vue_vue_type_script_setup_true_lang-Db69lsDS.js +0 -44
  89. package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-Dy-Bhmqp.cjs +0 -1
  90. package/dist/login-CWl1vVST.cjs +0 -1
  91. package/dist/login-nnL9sI81.js +0 -94
  92. package/dist/main-4QQmXfsr.cjs +0 -1
  93. package/dist/menu-CxtX8L48.cjs +0 -11
  94. package/dist/request-C4FvX5Ke.js +0 -2301
  95. package/dist/request-CWorQg2v.cjs +0 -6
@@ -0,0 +1,2276 @@
1
+ import { g as bl, s as kl } from "./index-DNc603JB.js";
2
+ import { _ as Cl, s as Al } from "./index.vue_vue_type_script_setup_true_lang-CZRsNsBv.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-CzC8CDl5.js";
5
+ import { _ as ge } 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-CCy-b0IY.js";
7
+ import { _ as vl } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
8
+ import { g as Fe } from "./index-B9FPRzqU.js";
9
+ import { p as xe, a as xl } from "./request-5zUpa42n.js";
10
+ import { u as el } from "./modelComp-2xoln0bi.js";
11
+ import { M as Tl, S as Je, e as El, i as Le, b as Re } from "./index-Djjj6UTt.js";
12
+ import { s as ll, u as Dl } from "./menu-Ba14VNfz.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, g) {
57
+ if (!Ul(_, g) && (C === f || a(C, f, n, l, s)))
58
+ return _.push(g);
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], g = t[A];
136
+ if (l)
137
+ var k = r ? l(g, f, A, t, e, s) : l(f, g, A, e, t, s);
138
+ if (!(k === void 0 ? f === g || a(f, g, 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((b) => (b == null ? void 0 : b.key) === "header")) == null ? void 0 : o.contents, r.value = ($ = (i = a.value) == null ? void 0 : i.find((b) => (b == null ? void 0 : b.key) === "rowButton")) == null ? void 0 : $.contents, u.value = (P = (v = a.value) == null ? void 0 : v.find((b) => (b == null ? void 0 : b.key) === "extraButton")) == null ? void 0 : P.contents, O.value = (U = (x = a.value) == null ? void 0 : x.find((b) => (b == null ? void 0 : b.key) === "page")) != null && U.contents ? [{
317
+ name: "isPagination",
318
+ label: "是否显示分页",
319
+ type: "Switch",
320
+ value: (T = (G = a.value) == null ? void 0 : G.find((b) => (b == null ? void 0 : b.key) === "page")) == null ? void 0 : T.contents
321
+ }] : [{
322
+ name: "isPagination",
323
+ label: "是否显示分页",
324
+ type: "Switch",
325
+ value: !0
326
+ }], s.value = (S = s.value) == null ? void 0 : S.map((b, B) => b = {
327
+ label: (b == null ? void 0 : b.label) ?? "",
328
+ prop: (b == null ? void 0 : b.label) === "操作" ? "operate" : b == null ? void 0 : b.prop,
329
+ width: b != null && b.width ? parseInt(b.width) : "",
330
+ fixed: (b == null ? void 0 : b.fixed) ?? void 0,
331
+ sortable: (b == null ? void 0 : b.sortable) ?? !1,
332
+ align: (b == null ? void 0 : b.align) ?? "center",
333
+ showOverflowTooltip: (b == null ? void 0 : b.showOverflowTooltip) ?? !0,
334
+ isNotDrag: (b == null ? void 0 : b.isNotDrag) ?? !1,
335
+ isEditCol: (b == null ? void 0 : b.isEditCol) ?? !1,
336
+ isOperate: (b == null ? void 0 : b.isOperate) ?? !1,
337
+ id: (b == null ? void 0 : b.id) ?? B
338
+ }), r.value = (D = r.value) == null ? void 0 : D.map((b, B) => b = {
339
+ label: (b == null ? void 0 : b.label) ?? "",
340
+ type: (b == null ? void 0 : b.type) ?? "",
341
+ textColor: (b == null ? void 0 : b.textColor) ?? "#000000",
342
+ id: (b == null ? void 0 : b.id) ?? B
343
+ }), u.value = (E = u.value) == null ? void 0 : E.map((b, B) => b = {
344
+ label: (b == null ? void 0 : b.label) ?? "",
345
+ type: (b == null ? void 0 : b.type) ?? "",
346
+ background: (b == null ? void 0 : b.textColor) ?? "#FFFFFF",
347
+ id: (b == null ? void 0 : b.id) ?? B
348
+ }));
349
+ },
350
+ { deep: !0, immediate: !0 }
351
+ ), 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
+ }, g = (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: g
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
+ }, gt = /* @__PURE__ */ ge(mt, [["__scopeId", "data-v-877911eb"]]), bt = { 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, g, 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 = (g = d.value) == null ? void 0 : g.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 g = f == null ? void 0 : f.find((k) => (k == null ? void 0 : k.key) === "formButton");
633
+ g != null && g.contents ? (g.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 g = f == null ? void 0 : f.find((k) => (k == null ? void 0 : k.key) === "formContent");
648
+ g != null && g.contents ? (g.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 g = p(d.value);
655
+ u.value = f.filter((c) => c.id !== m.id);
656
+ const k = g == null ? void 0 : g.find((c) => c.key === "formButton");
657
+ k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formButton" && (c.contents = f.filter((o) => o.id !== m.id)), c))), d.value = g;
658
+ }, C = (m) => {
659
+ const f = p(y.value);
660
+ let g = p(d.value);
661
+ y.value = f.filter((c) => c.id !== m.id);
662
+ const k = g == null ? void 0 : g.find((c) => c.key === "formContent");
663
+ k != null && k.contents && (g = g == null ? void 0 : g.map((c) => ((c == null ? void 0 : c.key) === "formContent" && (c.contents = f.filter((o) => o.id !== m.id)), c))), d.value = g;
664
+ }, N = (m) => {
665
+ let f = p(d.value);
666
+ const g = f == null ? void 0 : f.find((k) => k.key === "formFlex");
667
+ (g == null ? void 0 : g.contents) !== void 0 ? f = f == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "formFlex" && (k.contents = 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((g) => (g == null ? void 0 : g.key) === "formContent");
677
+ f != null && f.contents ? (f.contents = y.value, m = m == null ? void 0 : m.map((g) => ((g == null ? void 0 : g.key) === "formContent" && (g.contents = y.value), g))) : m.push({
678
+ key: "formContent",
679
+ contents: y.value
680
+ }), l("change", m);
681
+ },
682
+ { deep: !0, immediate: !0 }
683
+ ), (m, f) => {
684
+ const g = Ye("el-button");
685
+ return Z(), q("div", bt, [
686
+ w("div", kt, [
687
+ w("div", Ct, [
688
+ f[1] || (f[1] = w("div", null, K("表单信息"), -1)),
689
+ z(g, {
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(g, {
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__ */ ge(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 b, B;
798
+ return (E == null ? void 0 : E.key) === "tableContents" && (E.contents = (B = (b = k.content) == null ? void 0 : b.map((j) => {
799
+ let M = {};
800
+ for (let W in j)
801
+ W !== "id" && (M[W] = j[W]);
802
+ return M;
803
+ })) == null ? void 0 : B.map((j) => Object.values(j))), 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
+ }, g = (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(g(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(g(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__ */ ge(Nt, [["__scopeId", "data-v-e3e0f29d"]]), Ie = (e) => {
888
+ let t = [];
889
+ function n(a) {
890
+ a == null || a.forEach((s) => {
891
+ Array.isArray(s) || (s = [s]), 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, g, 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, b, 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 = (b = (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 : b[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 = (g = r == null ? void 0 : r.extraContent) == null ? void 0 : g[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, g, 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 == null ? void 0 : A.id
1015
+ }
1016
+ }), C = await bl((f = h == null ? void 0 : h.value) == null ? void 0 : f[0], sessionStorage.getItem("systemKey"), ""), N = (g = _.data.result) == null ? void 0 : g[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__ */ ge(Ft, [["__scopeId", "data-v-f53410db"]]), 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: "AvatarUpload",
1066
+ icon: "Avatar"
1067
+ },
1068
+ {
1069
+ name: "签名",
1070
+ type: "signature",
1071
+ comp: "Signature",
1072
+ icon: "Signature"
1073
+ }
1074
+ ]), Lt = {
1075
+ TABLE: kl,
1076
+ FORM: Al,
1077
+ TABLEOPERATE: gt,
1078
+ FORMOPERATE: xt,
1079
+ FOLD: vl,
1080
+ CALCULATOR: St,
1081
+ METHODBUTTON: Jt,
1082
+ AVATARUPLOAD: Cl
1083
+ // 添加其他组件...
1084
+ };
1085
+ function Rt(e) {
1086
+ return Lt[e == null ? void 0 : e.toUpperCase()] || null;
1087
+ }
1088
+ const J = [
1089
+ {
1090
+ key: "FormName",
1091
+ value: "Form"
1092
+ },
1093
+ {
1094
+ key: "TableName",
1095
+ value: "Table"
1096
+ },
1097
+ {
1098
+ key: "MenuName",
1099
+ value: "Menu"
1100
+ },
1101
+ {
1102
+ key: "GroupName",
1103
+ value: "Group"
1104
+ },
1105
+ {
1106
+ key: "SystemKey",
1107
+ value: "System"
1108
+ }
1109
+ ], F = [
1110
+ {
1111
+ key: "FormDirect",
1112
+ value: "formFlex"
1113
+ },
1114
+ {
1115
+ key: "Form",
1116
+ value: "formContent"
1117
+ },
1118
+ {
1119
+ key: "FormButton",
1120
+ value: "formButton"
1121
+ },
1122
+ {
1123
+ key: "FormFlex",
1124
+ value: "formWrap"
1125
+ },
1126
+ {
1127
+ key: "TableColumns",
1128
+ value: "header"
1129
+ },
1130
+ {
1131
+ key: "TableButton",
1132
+ value: "extraButton"
1133
+ },
1134
+ {
1135
+ key: "TableLineButton",
1136
+ value: "rowButton"
1137
+ },
1138
+ {
1139
+ key: "Table",
1140
+ value: "tableContents"
1141
+ },
1142
+ {
1143
+ key: "TableIndex",
1144
+ value: "tableIndex"
1145
+ },
1146
+ {
1147
+ key: "Menus",
1148
+ value: "menuContents"
1149
+ },
1150
+ {
1151
+ key: "GroupContents",
1152
+ value: "groupContents"
1153
+ }
1154
+ ], ne = L(0), wt = (e) => {
1155
+ const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), a = n.replace(/^['"]|['"]$/g, "");
1156
+ return { key: l, value: a };
1157
+ }, he = (e) => {
1158
+ try {
1159
+ return JSON.parse(e), !0;
1160
+ } catch {
1161
+ return !1;
1162
+ }
1163
+ }, Gt = (e) => e.includes("$") && e.trim().endsWith("(") ? e + ")" : e, Mt = (e) => {
1164
+ let t = e;
1165
+ const n = [];
1166
+ let l = "";
1167
+ for (const a of t)
1168
+ 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());
1169
+ return n == null ? void 0 : n.filter((a) => a.includes("{"));
1170
+ }, Ht = (e) => {
1171
+ var n;
1172
+ let t = [];
1173
+ return (n = Mt(e.slice(1, -1))) == null || n.forEach((l) => {
1174
+ var s, r, u, d;
1175
+ let a = ((r = (s = l.slice(1, -1)) == null ? void 0 : s.split(",")) == null ? void 0 : r.length) ?? 1;
1176
+ (d = (u = l.slice(1, -1)) == null ? void 0 : u.split(",")) == null || d.forEach((y) => {
1177
+ var _, C, N, m, f, g, k, c, o, i, $, v, P;
1178
+ 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 = (g = (f = h == null ? void 0 : h[1]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) == null ? void 0 : g.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") : "";
1179
+ ne.value++, t.push({
1180
+ id: ne.value,
1181
+ key: O,
1182
+ value: A,
1183
+ // 如果值为空,则key设为空字符串,否则保留原值
1184
+ width: a,
1185
+ extraContent: h == null ? void 0 : h[1]
1186
+ });
1187
+ });
1188
+ }), t;
1189
+ }, al = (e) => {
1190
+ var t, n;
1191
+ try {
1192
+ const l = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
1193
+ if (p(l).split("{").length - 1 > 1) {
1194
+ let a = p(l).replace(/^\{(.*)\}$/, "[$1]");
1195
+ if (he(a) && !a.includes("$") || (a = a.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), he(a)) {
1196
+ const s = JSON.parse(a);
1197
+ let r = [];
1198
+ return s == null || s.forEach((u) => {
1199
+ var d;
1200
+ (d = Object.entries(p(u))) == null || d.forEach((y) => {
1201
+ ne.value++, r.push({
1202
+ id: ne.value,
1203
+ key: (y == null ? void 0 : y[0]) ?? "",
1204
+ value: (y == null ? void 0 : y[1]) === "" ? "" : y == null ? void 0 : y[1],
1205
+ // 如果值为空,则key设为空字符串,否则保留原值
1206
+ width: Object.keys(p(u)).length
1207
+ });
1208
+ });
1209
+ }), r;
1210
+ } else
1211
+ return l.trim().startsWith("{{") ? Ht(l.trim()) : Ae(a);
1212
+ } else if (he(l)) {
1213
+ const a = JSON.parse(l);
1214
+ return Object.entries(a).map(([s, r]) => (ne.value++, {
1215
+ id: ne.value,
1216
+ key: s,
1217
+ value: r === "" ? "" : r,
1218
+ // 如果值为空,则key设为空字符串,否则保留原值
1219
+ width: 1
1220
+ }));
1221
+ } else
1222
+ return ((t = Ae(l)) == null ? void 0 : t.length) === 0 ? l : (n = Ae(l)) == null ? void 0 : n.map((a) => ({
1223
+ label: a.label,
1224
+ method: Gt(a.method)
1225
+ }));
1226
+ } catch (l) {
1227
+ return console.error("转换失败:", l), [];
1228
+ }
1229
+ }, Ae = (e) => {
1230
+ e = e.trim().replace(/^\{|\}$/g, "").trim();
1231
+ const t = [];
1232
+ let n = 0;
1233
+ for (; n < e.length; ) {
1234
+ const l = e.slice(n).match(/^\s*"([^"]+)"\s*:\s*/);
1235
+ if (!l) break;
1236
+ const a = l[1];
1237
+ n += l[0].length;
1238
+ let s = "", r = 0, u = !1, d = "";
1239
+ for (let y = n; y < e.length; y++) {
1240
+ const h = e[y];
1241
+ 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)) {
1242
+ s = e.slice(n, y + 1).trim(), n = y + 1;
1243
+ break;
1244
+ }
1245
+ }
1246
+ t.push({
1247
+ label: a,
1248
+ method: s
1249
+ });
1250
+ }
1251
+ return t;
1252
+ }, It = (e, t) => {
1253
+ try {
1254
+ if (J != null && J.find((n) => (n == null ? void 0 : n.key) === t))
1255
+ return e.replace(/['"]/g, "").trim();
1256
+ if (p(e).split("[").length - 1 > 1) {
1257
+ const n = p(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1258
+ return JSON.parse(n);
1259
+ } else {
1260
+ const n = p(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
1261
+ if (he(n)) {
1262
+ const l = JSON.parse(n);
1263
+ return Array.isArray(l) ? l.map((a) => ({ label: a })) : l;
1264
+ } else
1265
+ return al(p(e));
1266
+ }
1267
+ } catch (n) {
1268
+ return console.error("解析失败:", n), e;
1269
+ }
1270
+ }, Wt = (e) => ({ [e == null ? void 0 : e.key]: It(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), Zt = (e) => {
1271
+ try {
1272
+ if (p(e).split("[").length - 1 > 1) {
1273
+ const t = p(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1274
+ return JSON.parse(t);
1275
+ } else
1276
+ return JSON.parse(p(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
1277
+ } catch (t) {
1278
+ return console.error("解析失败:", t), e;
1279
+ }
1280
+ }, Kt = (e) => {
1281
+ const t = e.match(/\(([^)]+)\)/);
1282
+ return t ? t[1] : "";
1283
+ }, qt = (e) => {
1284
+ const t = e.match(/^([^(]+)\s*\(/);
1285
+ return t ? t[1].trim() : e;
1286
+ }, We = (e) => e.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((t) => t.trim()).filter((t) => t).join("/"), zt = (e) => {
1287
+ var r, u;
1288
+ let t = [], n = [];
1289
+ 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)))];
1290
+ a == null || a.forEach((d) => {
1291
+ let y = e == null ? void 0 : e.filter((A) => A.key.includes(d));
1292
+ y == null || y.forEach((A) => {
1293
+ A != null && A.key.includes("Menus") && (t.push({
1294
+ key: "GroupName",
1295
+ value: We(A == null ? void 0 : A.value)
1296
+ }), n.push(We(A == null ? void 0 : A.value)));
1297
+ });
1298
+ let h = e == null ? void 0 : e.filter((A) => A.key.includes(d) && !(A != null && A.key.includes("Menus")));
1299
+ h = h == null ? void 0 : h.map((A) => (A.key = qt(A.key), A));
1300
+ const O = {
1301
+ key: "GroupContents",
1302
+ value: h
1303
+ };
1304
+ t.push(O);
1305
+ });
1306
+ const s = {
1307
+ key: "Menus",
1308
+ value: n
1309
+ };
1310
+ return t.unshift(s), t;
1311
+ }, sl = (e) => {
1312
+ var t, n;
1313
+ if (Array.isArray(Object.keys(e)) && ((t = Object.keys(e)) == null ? void 0 : t.length) > 0) {
1314
+ let l = [];
1315
+ return (n = Object.entries(e)) == null || n.forEach(([a, s]) => {
1316
+ var u, d;
1317
+ let r = [];
1318
+ if (r.push(a), ((u = Object.keys(s)) == null ? void 0 : u.length) > 0) {
1319
+ let y = [];
1320
+ (d = sl(s)) == null || d.forEach((h) => {
1321
+ y.push(h);
1322
+ }), y == null || y.forEach((h) => {
1323
+ r.push(h);
1324
+ });
1325
+ }
1326
+ l.push(r);
1327
+ }), l;
1328
+ }
1329
+ }, Qt = (e, t) => {
1330
+ var l;
1331
+ let n = t;
1332
+ return Array.isArray(Object.keys(e)) && ((l = Object.entries(e)) == null || l.forEach(([a, s]) => {
1333
+ let r = [a];
1334
+ if (typeof s == "object" && s !== null) {
1335
+ let u = sl(s);
1336
+ u == null || u.forEach((d) => {
1337
+ r.push(d);
1338
+ });
1339
+ }
1340
+ n.push(r);
1341
+ })), n;
1342
+ }, Xt = (e) => {
1343
+ const t = {};
1344
+ return e.forEach((l) => {
1345
+ const a = l.split("/");
1346
+ let s = t;
1347
+ a.forEach((r) => {
1348
+ s[r] || (s[r] = {}), s = s[r];
1349
+ });
1350
+ }), Qt(t, []);
1351
+ }, rl = (e) => Xt(e), In = (e) => {
1352
+ var t, n, l, a, s, r, u, d;
1353
+ try {
1354
+ 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 = [];
1355
+ if (((s = O == null ? void 0 : O.find((C) => (C == null ? void 0 : C.key) === "Menus")) == null ? void 0 : s.value.length) === 0)
1356
+ return !1;
1357
+ (r = p(O)) == null || r.forEach((C) => {
1358
+ var N, m, f, g, k;
1359
+ J != null && J.find((c) => {
1360
+ var o, i;
1361
+ 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());
1362
+ }) ? A.push({
1363
+ comp: ((N = J == null ? void 0 : J.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
+ })) == null ? void 0 : N.value) ?? "",
1367
+ name: (m = C == null ? void 0 : C.value) == null ? void 0 : m.replace(/[’]|[‘]|[']/g, ""),
1368
+ compData: []
1369
+ }) : F != null && F.find((c) => {
1370
+ var o, i;
1371
+ 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());
1372
+ }) && ((A == null ? void 0 : A.length) === 0 && (f = C.key) != null && f.includes("Menus") && A.push({
1373
+ comp: "Menu",
1374
+ name: "",
1375
+ compData: []
1376
+ }), (g = A == null ? void 0 : A[(A == null ? void 0 : A.length) - 1]) != null && g.compData && A[(A == null ? void 0 : A.length) - 1].compData.push({
1377
+ key: (k = F == null ? void 0 : F.find((c) => {
1378
+ var o, i;
1379
+ 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());
1380
+ })) == null ? void 0 : k.value,
1381
+ contents: C == null ? void 0 : C.value
1382
+ }));
1383
+ });
1384
+ let _ = (u = p(A)) == null ? void 0 : u.map((C) => {
1385
+ var N;
1386
+ return C != null && C.compData && (C.compData = (N = C == null ? void 0 : C.compData) == null ? void 0 : N.map((m) => {
1387
+ var f, g, k, c, o, i, $, v, P, x, U;
1388
+ if ((m == null ? void 0 : m.key) === "formFlex")
1389
+ m.contents = ((g = (f = m.contents) == null ? void 0 : f.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : g.toUpperCase()) !== "Vertical".toUpperCase();
1390
+ else if ((m == null ? void 0 : m.key) === "groupContents")
1391
+ m.contents = (k = p(m.contents)) == null ? void 0 : k.map((G) => Wt(p(G)));
1392
+ else if (Array.isArray(m == null ? void 0 : m.contents))
1393
+ m.contents = rl(m.contents);
1394
+ 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("】")))
1395
+ m.contents = Zt(p(m.contents));
1396
+ else {
1397
+ if (!m.contents) return;
1398
+ m.contents = al(p(m.contents));
1399
+ }
1400
+ return m;
1401
+ })), C;
1402
+ });
1403
+ return _ = (d = p(_)) == null ? void 0 : d.map((C) => {
1404
+ var N;
1405
+ return (C == null ? void 0 : C.comp) === "Group" && (C.compData = (N = C.compData) == null ? void 0 : N.map((m) => {
1406
+ var g;
1407
+ let f = [];
1408
+ return (g = m.contents) == null || g.forEach((k) => {
1409
+ var c, o, i, $, v, P, x, U, G, T, S, D;
1410
+ if (J != null && J.find((E) => {
1411
+ var b, B, j;
1412
+ return ((b = E == null ? void 0 : E.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
1413
+ }))
1414
+ f.push({
1415
+ comp: (c = J == null ? void 0 : J.find((E) => {
1416
+ var b, B, j;
1417
+ return ((b = E == null ? void 0 : E.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
1418
+ })) == null ? void 0 : c.value,
1419
+ name: (i = (o = Object.values(k)) == null ? void 0 : o[0]) == null ? void 0 : i.replace(/[’]|[‘]|[']/g, ""),
1420
+ compData: []
1421
+ });
1422
+ else if (F != null && F.find((E) => {
1423
+ var b, B, j;
1424
+ return ((b = E == null ? void 0 : E.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
1425
+ })) {
1426
+ if ((f == null ? void 0 : f.length) === 0) return;
1427
+ ($ = f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1]) != null && $.compData && f[(f == null ? void 0 : f.length) - 1].compData.push({
1428
+ key: (v = F == null ? void 0 : F.find((E) => {
1429
+ var b, B, j;
1430
+ return ((b = E == null ? void 0 : E.key) == null ? void 0 : b.toUpperCase()) === ((j = (B = Object.keys(k)) == null ? void 0 : B[0]) == null ? void 0 : j.toUpperCase());
1431
+ })) == null ? void 0 : v.value,
1432
+ contents: (P = Object.values(k)) == null ? void 0 : P[0]
1433
+ });
1434
+ } else if ((U = (x = Object.keys(k)) == null ? void 0 : x[0]) != null && U.includes("$")) {
1435
+ const E = (T = (G = Object.keys(p(k))) == null ? void 0 : G[0]) == null ? void 0 : T.split("$");
1436
+ f[(f == null ? void 0 : f.length) - 1].compData.push({
1437
+ key: (S = F == null ? void 0 : F.find((b) => {
1438
+ var B, j;
1439
+ return ((B = b == null ? void 0 : b.key) == null ? void 0 : B.toUpperCase()) === ((j = E == null ? void 0 : E[0]) == null ? void 0 : j.toUpperCase());
1440
+ })) == null ? void 0 : S.value,
1441
+ contents: (D = Object.values(k)) == null ? void 0 : D[0],
1442
+ selectLabel: E == null ? void 0 : E[1]
1443
+ });
1444
+ }
1445
+ return k;
1446
+ }), m.contents = f, m;
1447
+ })), C;
1448
+ }), _;
1449
+ } catch {
1450
+ return !1;
1451
+ }
1452
+ }, Y = (e) => {
1453
+ try {
1454
+ return JSON.parse(e), !0;
1455
+ } catch {
1456
+ return !1;
1457
+ }
1458
+ }, Wn = (e, t) => rt(e, t), Ze = L(0), ol = (e) => {
1459
+ const t = [];
1460
+ let n = null;
1461
+ for (let l = 0; l < e.length; l++) {
1462
+ const a = e[l];
1463
+ if (Array.isArray(a))
1464
+ n && (n.children = ol(a));
1465
+ else {
1466
+ const s = { label: a };
1467
+ t.push(s), n = s;
1468
+ }
1469
+ }
1470
+ return t;
1471
+ }, cl = (e) => {
1472
+ let t = 0;
1473
+ for (const n of e)
1474
+ t++, n.children && (t += cl(n.children));
1475
+ return t;
1476
+ }, ul = (e, t, n = []) => {
1477
+ let l = 0;
1478
+ for (const a of t) {
1479
+ if (l >= e.length) break;
1480
+ const s = [...e[l]];
1481
+ if (n.push(s), l++, a.children && a.children.length > 0) {
1482
+ const r = [];
1483
+ ul(
1484
+ e.slice(l),
1485
+ a.children,
1486
+ r
1487
+ ), r.length > 0 && (s.push(r), l += cl(a.children));
1488
+ }
1489
+ }
1490
+ return n;
1491
+ }, Yt = (e, t) => {
1492
+ let n = [];
1493
+ return e == null || e.forEach((a) => {
1494
+ a.some((s) => Array.isArray(s)) ? n.push(...a) : n.push(a);
1495
+ }), ul(n, t);
1496
+ }, ve = (e) => {
1497
+ const t = { label: e[0].trim() };
1498
+ if (e.length > 1) {
1499
+ const n = e.slice(1);
1500
+ n.length === 1 && Array.isArray(n[0]) ? t.children = n[0].map(
1501
+ (l) => Array.isArray(l) ? ve(l) : { label: l.trim() }
1502
+ ) : t.children = n.map(
1503
+ (l) => Array.isArray(l) ? ve(l) : { label: l.trim() }
1504
+ );
1505
+ }
1506
+ return t;
1507
+ }, Ke = (e) => {
1508
+ let t = e.replace(/:([^{}\[\],\s]+)([,\]}])/g, ':"$1"$2');
1509
+ return t = t.replace(/:}(?=,|]|}|$)/g, ':""}'), t = t.replace(/:,(?=\s*")/g, ':"",'), t = t.replace(
1510
+ /(https?|HTTPS?):"\/\/([^"]+)"/gi,
1511
+ (n, l, a) => `"${l}://${a}"`
1512
+ ), t = t.replace(
1513
+ /(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,
1514
+ '$1"$2"$3'
1515
+ ), t;
1516
+ }, Vt = (e) => {
1517
+ var n;
1518
+ return e.some((l) => !Array.isArray(l)) ? e : (n = p(e)) == null ? void 0 : n.map((l) => {
1519
+ let a = [];
1520
+ return l.some((s) => Array.isArray(s)) ? l == null || l.forEach((s) => {
1521
+ Array.isArray(s) && a.push(ve(s));
1522
+ }) : l.some((s) => s.includes("[")) ? a.push(l) : a = l.map((s) => ({ label: s.trim() })), a;
1523
+ });
1524
+ }, pl = (e, t, n) => {
1525
+ let l = e, a = n, s = t;
1526
+ 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) => {
1527
+ if (r.children) {
1528
+ const u = pl(l, r, a);
1529
+ a = u[0], l = u[1];
1530
+ }
1531
+ }), [a, l];
1532
+ }, en = (e, t) => {
1533
+ let n = e, l = [];
1534
+ return t.length > 0 ? t == null || t.forEach((a) => {
1535
+ let s = n == null ? void 0 : n[0];
1536
+ n.shift();
1537
+ const r = pl(p(n), a, s);
1538
+ s = r[0], n = r[1], l.push(s);
1539
+ }) : l = n, l;
1540
+ }, Te = (e, t) => {
1541
+ const n = Vt(p(e));
1542
+ return en(n, t);
1543
+ }, ln = (e) => {
1544
+ const t = [];
1545
+ let n = 0;
1546
+ const l = e.length;
1547
+ for (; n < l; ) {
1548
+ const a = e[n];
1549
+ a.key === "tableColumns" && n + 1 < l && e[n + 1].key === "tableContents" ? (t.push({
1550
+ comp: "Table",
1551
+ compData: [a, e[n + 1]],
1552
+ name: ""
1553
+ }), n += 2) : (t.push(a), n += 1);
1554
+ }
1555
+ return t;
1556
+ }, il = (e) => Te([e], []), tn = (e) => {
1557
+ const t = [];
1558
+ return e == null || e.forEach((n) => n == null ? void 0 : n.forEach((a) => {
1559
+ var s, r;
1560
+ Ze.value++, t.push({
1561
+ id: Ze.value,
1562
+ key: (s = Object.keys(a)) == null ? void 0 : s[0],
1563
+ value: (r = Object.values(a)) == null ? void 0 : r[0],
1564
+ // 如果值为空,则key设为空字符串,否则保留原值
1565
+ width: n.length
1566
+ });
1567
+ })), t;
1568
+ }, qe = (e) => {
1569
+ let t = ln(e);
1570
+ return t = t == null ? void 0 : t.map((n) => {
1571
+ var l, a, s;
1572
+ if (n.comp === "Table")
1573
+ (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 = {
1574
+ key: "header",
1575
+ contents: Te(r.value, [])
1576
+ } : r = {
1577
+ key: r.key,
1578
+ contents: r.value
1579
+ }, r)), n.compData.push({
1580
+ key: "extraButton",
1581
+ contents: [{ label: "新增" }]
1582
+ }), n.compData.push({
1583
+ key: "rowButton",
1584
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
1585
+ }));
1586
+ else if (n.key === "form") {
1587
+ const r = (s = n == null ? void 0 : n.value) == null ? void 0 : s.map((u) => (Array.isArray(u) || (u = [u]), u));
1588
+ n = {
1589
+ comp: "Form",
1590
+ compData: [
1591
+ {
1592
+ key: "formFlex",
1593
+ contents: ""
1594
+ },
1595
+ {
1596
+ key: "formContent",
1597
+ contents: tn(r)
1598
+ }
1599
+ ],
1600
+ name: ""
1601
+ };
1602
+ }
1603
+ return n;
1604
+ }), t;
1605
+ }, nn = (e, t) => {
1606
+ var u, d, y, h, O, A;
1607
+ const n = [], l = ol((d = (u = e == null ? void 0 : e.find((_) => _.key === "tableIndex")) == null ? void 0 : u.value) == null ? void 0 : d[0]);
1608
+ n.push({
1609
+ key: "tableIndexColumn",
1610
+ contents: t
1611
+ }), n.push({
1612
+ key: "tableIndex",
1613
+ contents: l
1614
+ });
1615
+ let a = [];
1616
+ const s = (y = e == null ? void 0 : e.find((_) => _.key === "tableColumns")) == null ? void 0 : y.value;
1617
+ 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({
1618
+ key: "header",
1619
+ contents: a
1620
+ });
1621
+ const r = Yt((A = e == null ? void 0 : e.find((_) => _.key === "tableContents")) == null ? void 0 : A.value, l);
1622
+ return n.push({
1623
+ key: "tableContents",
1624
+ contents: r
1625
+ }), n.push({
1626
+ key: "extraButton",
1627
+ contents: [{ label: "新增" }]
1628
+ }), n.push({
1629
+ key: "rowButton",
1630
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
1631
+ }), n;
1632
+ }, fl = (e) => e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, (t, n, l) => {
1633
+ const a = fl(l);
1634
+ return `"${n}",${a}`;
1635
+ }), ie = (e) => {
1636
+ const t = e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
1637
+ return fl(t).replace(/^"(.*)"$/, "$1");
1638
+ }, an = (e) => {
1639
+ const t = /* @__PURE__ */ new Set();
1640
+ return e.filter((n) => {
1641
+ const l = JSON.stringify(n);
1642
+ return t.has(l) ? !1 : t.add(l);
1643
+ });
1644
+ }, ze = (e) => {
1645
+ var n;
1646
+ let t = [];
1647
+ return (n = p(e)) == null || n.forEach((l) => {
1648
+ var a;
1649
+ (a = l.contents) == null || a.forEach((s) => {
1650
+ t.push(s);
1651
+ });
1652
+ }), t = an(t), t.push({
1653
+ label: "操作"
1654
+ }), [t];
1655
+ }, sn = (e, t) => e.reduce((n, l, a) => {
1656
+ const s = Math.floor(a / t);
1657
+ return n[s] || (n[s] = []), n[s].push(l), n;
1658
+ }, []), dl = (e) => e.reduce((t, n) => n.children && n.children.length > 0 ? t + dl(n.children) : t + 1, 0), rn = (e, t) => {
1659
+ var l;
1660
+ let n = [];
1661
+ return (l = sn(e, dl(t == null ? void 0 : t[0]) - 1)) == null || l.forEach((a) => {
1662
+ let s = [];
1663
+ a.forEach((r) => {
1664
+ var u;
1665
+ Array.isArray(r.contents) ? (u = r.contents) == null || u.forEach((d) => {
1666
+ s.push(d);
1667
+ }) : s.push(r.contents);
1668
+ }), n.push(s);
1669
+ }), [n];
1670
+ }, on = ["方法体", "输入", "输出"], Qe = L(1), Ee = (e) => {
1671
+ let t;
1672
+ e.replaceAll(" ", `\r
1673
+ `).includes(`\r
1674
+ `) ? t = e.replaceAll(" ", `\r
1675
+ `).split(`\r
1676
+ `).filter((a) => a.trim() !== "") : t = e.replaceAll(" ", `\r
1677
+ `).split(`
1678
+ `).filter((a) => a.trim() !== "");
1679
+ const n = [];
1680
+ let l = "";
1681
+ for (const a of t)
1682
+ 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, ""));
1683
+ return n;
1684
+ }, cn = (e) => {
1685
+ const [t, n] = e.split(/=(.+)/), l = t.replace(/['"]/g, "").trim(), a = n.replace(/^['"]|['"]$/g, "");
1686
+ return { key: l, value: a };
1687
+ }, be = (e) => {
1688
+ let t;
1689
+ e.includes(":") ? t = e.split(":").filter((a) => a.trim() !== "") : t = e.split(":").filter((a) => a.trim() !== "");
1690
+ const n = [];
1691
+ let l = "";
1692
+ for (const a of t)
1693
+ 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, ""));
1694
+ return n;
1695
+ }, un = (e) => /^[\x00-\x7F]*$/.test(e), pn = (e) => {
1696
+ var a;
1697
+ const t = e.map((s) => {
1698
+ var u, d;
1699
+ let r = (d = (u = s.key.split("(")) == null ? void 0 : u[1]) == null ? void 0 : d.trim();
1700
+ return r.slice(0, r.length - 1);
1701
+ }), n = t == null ? void 0 : t.map((s) => {
1702
+ var u;
1703
+ return (u = be(s)) == null ? void 0 : u.map((d) => {
1704
+ var y;
1705
+ if (d.includes("{")) {
1706
+ let h = (y = d.split(":")) == null ? void 0 : y[0];
1707
+ d = h.slice(1, h.length);
1708
+ }
1709
+ return d;
1710
+ });
1711
+ }).filter((s) => s.length !== 0), l = (a = n == null ? void 0 : n.filter((s) => s.length !== 0)) == null ? void 0 : a.map((s) => {
1712
+ let r = "";
1713
+ return s.forEach((u) => {
1714
+ u.includes("{") || (r = r === "" ? r + p(u) : r + "/" + p(u));
1715
+ }), r;
1716
+ });
1717
+ return rl([...new Set(l)]);
1718
+ }, hl = (e) => {
1719
+ var n, l, a, s, r, u, d, y;
1720
+ const t = (l = (n = e.split("(")) == null ? void 0 : n[1]) == null ? void 0 : l.trim();
1721
+ return ((a = be(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();
1722
+ }, fn = (e) => {
1723
+ var a;
1724
+ if (!e) return;
1725
+ const t = hl(e), n = (a = be(t)) == null ? void 0 : a.map((s) => {
1726
+ var r;
1727
+ if (s.includes("{")) {
1728
+ let u = (r = s.split(":")) == null ? void 0 : r[0];
1729
+ s = u.slice(1, u.length);
1730
+ }
1731
+ return s;
1732
+ });
1733
+ let l = "";
1734
+ return n.forEach((s) => {
1735
+ s.includes("{") || (l = l === "" ? l + p(s) : l + "/" + p(s));
1736
+ }), l;
1737
+ }, dn = (e) => {
1738
+ const t = e.match(/\[(.*)\]/s);
1739
+ if (t) {
1740
+ const n = `[${t[1]}]`;
1741
+ try {
1742
+ const l = n.replace(/([^\[\],\s]+)/g, '"$1"');
1743
+ return JSON.parse(l);
1744
+ } catch (l) {
1745
+ console.error("解析失败:", l);
1746
+ }
1747
+ }
1748
+ }, hn = (e) => {
1749
+ var s;
1750
+ if (!e) return;
1751
+ const t = hl(e);
1752
+ let n = [], l = [], a = [];
1753
+ return (s = be(t)) == null || s.forEach((r) => {
1754
+ var u;
1755
+ 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')));
1756
+ }), [n, l, a];
1757
+ }, yn = (e) => {
1758
+ const t = [];
1759
+ let n = "";
1760
+ for (const l of e)
1761
+ 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, ""));
1762
+ return t;
1763
+ }, Xe = (e) => {
1764
+ var r, u;
1765
+ const t = [], n = /(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/, l = e.match(n);
1766
+ if (l) {
1767
+ const d = l[1] || l[3], y = l[2] || l[4];
1768
+ if (d && y) {
1769
+ const h = `${d}/${y}`;
1770
+ t.push(h);
1771
+ }
1772
+ }
1773
+ const a = /(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i, s = e.match(a);
1774
+ 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;
1775
+ }, $e = (e) => {
1776
+ let t = e.replace(/\[\s*,\s*,/g, '[{"": ""}, {"": ""},');
1777
+ 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;
1778
+ }, mn = (e) => !/\[[^\]]*\{[^\]]*\]/.test(e), gn = (e) => {
1779
+ 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();
1780
+ let s = null;
1781
+ if (a)
1782
+ try {
1783
+ s = JSON.parse(a);
1784
+ } catch (r) {
1785
+ console.error("解析数组失败:", r);
1786
+ }
1787
+ return [n, s];
1788
+ }, bn = (e) => {
1789
+ var u, d, y, h, O, A, _, C, N, m, f;
1790
+ let t = [], n = [], l = {}, a = [], s = e.trim(), r = [];
1791
+ if (s.trim().includes("输入") && s.trim().includes("输出")) {
1792
+ let g = [], k = e.trim();
1793
+ k = p(k).slice(1, p(k).length - 1);
1794
+ const c = /(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;
1795
+ (C = k.match(c)) == null || C.forEach((o, i) => {
1796
+ var P;
1797
+ const $ = o;
1798
+ let v = [];
1799
+ (P = $.slice(1, $.length - 1).replace(":", "$:").split("$:")) == null || P.forEach((x) => {
1800
+ var U, G, T;
1801
+ if (on.find((S) => x.includes(S)))
1802
+ if (!x.includes("=="))
1803
+ v.push({ key: "tableIndexColumn", contents: x.replaceAll("'", "") });
1804
+ else {
1805
+ let S = [];
1806
+ const D = x.replaceAll("'", "").split("==");
1807
+ 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]] });
1808
+ }
1809
+ else {
1810
+ let S = x.trim().replaceAll(",", ",").replaceAll("'", '"');
1811
+ if (i % 3 === 0)
1812
+ S.slice(1, S.length - 1).includes("[") ? g.push({
1813
+ key: "tableIndex",
1814
+ contents: [{ label: S }]
1815
+ }) : g.push({
1816
+ key: "tableIndex",
1817
+ contents: [{ label: S.slice(1, S.length - 1) }]
1818
+ });
1819
+ else if ((S == null ? void 0 : S[0]) === "{") {
1820
+ let D = [];
1821
+ const E = S.slice(1, S.length - 1).split(":");
1822
+ if (E.every((b) => Y(b.trim()))) {
1823
+ D.push({ key: "tableContentName", contents: "详情" });
1824
+ let b = [];
1825
+ E.forEach((B, j) => {
1826
+ if (j === 0) {
1827
+ const M = JSON.parse(B).map((W) => ({ label: W }));
1828
+ M.push({
1829
+ label: "操作"
1830
+ }), b.push({
1831
+ key: "header",
1832
+ contents: M
1833
+ });
1834
+ } else
1835
+ b.push({
1836
+ key: "tableContents",
1837
+ contents: JSON.parse(B)
1838
+ });
1839
+ }), b.push({
1840
+ key: "extraButton",
1841
+ contents: [{ label: "新增" }]
1842
+ }), b.push({
1843
+ key: "rowButton",
1844
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
1845
+ }), D.push({
1846
+ comp: "Table",
1847
+ compData: b,
1848
+ name: ""
1849
+ }), g.push({
1850
+ key: "tableContents",
1851
+ contents: [D]
1852
+ });
1853
+ }
1854
+ } else {
1855
+ let D = S;
1856
+ 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) => {
1857
+ if (Array.isArray(E == null ? void 0 : E[0])) {
1858
+ const b = [];
1859
+ b.push({ key: "tableContentName", contents: "详情" });
1860
+ let B = [];
1861
+ E.forEach((j) => {
1862
+ j.forEach((M) => {
1863
+ var W, Q;
1864
+ Qe.value++, B.push({
1865
+ id: Qe.value,
1866
+ key: (W = Object.keys(M)) == null ? void 0 : W[0],
1867
+ value: (Q = Object.values(M)) == null ? void 0 : Q[0],
1868
+ width: j.length
1869
+ });
1870
+ });
1871
+ }), b.push({
1872
+ comp: "Form",
1873
+ compData: [{
1874
+ key: "formFlex",
1875
+ contents: ""
1876
+ }, {
1877
+ key: "formContent",
1878
+ contents: B
1879
+ }],
1880
+ name: ""
1881
+ }), g.push({
1882
+ key: "tableContents",
1883
+ contents: [b]
1884
+ });
1885
+ } else
1886
+ g.push({
1887
+ key: "tableContents",
1888
+ contents: E == null ? void 0 : E[0]
1889
+ });
1890
+ })) : g.push({
1891
+ key: "tableContents",
1892
+ contents: D.trim().slice(1, D.length - 1)
1893
+ });
1894
+ }
1895
+ }
1896
+ }), g.push(v == null ? void 0 : v[0]);
1897
+ }), r.push({
1898
+ key: "tableIndex",
1899
+ contents: (N = g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "tableIndex")) == null ? void 0 : N.map((o) => {
1900
+ var i;
1901
+ return (i = o.contents) == null ? void 0 : i[0];
1902
+ })
1903
+ }), r.push({
1904
+ key: "extraButton",
1905
+ contents: [{ label: "新增" }]
1906
+ }), r.push({
1907
+ key: "rowButton",
1908
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
1909
+ }), r.push({
1910
+ key: "tableIndexColumn",
1911
+ contents: (f = (m = g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "tableIndexColumn")) == null ? void 0 : m[0]) == null ? void 0 : f.contents
1912
+ }), r.push({
1913
+ key: "header",
1914
+ contents: ze(g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "header"))
1915
+ }), r.push({
1916
+ key: "tableContents",
1917
+ contents: rn(g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "tableContents"), ze(g == null ? void 0 : g.filter((o) => (o == null ? void 0 : o.key) === "header")))
1918
+ });
1919
+ } else {
1920
+ const g = (u = s.trim().split(",$")) == null ? void 0 : u[0];
1921
+ g[0] === "[" ? s = g.slice(1, g.length - 1) : s.includes(",$") && (s = (d = s.trim().split(",$")) == null ? void 0 : d[0]);
1922
+ let k;
1923
+ if (s.includes("$")) {
1924
+ s = p(s), l.method = (h = (y = p(s).trim()) == null ? void 0 : y.slice(1, s.length).split("(")) == null ? void 0 : h[0];
1925
+ let c;
1926
+ Xe(s.slice(1, s.length - 2)).length > 1 ? c = Xe(s.slice(1, s.length - 2)) : c = gn(s), l.value = c;
1927
+ } else
1928
+ 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) => {
1929
+ let o = c;
1930
+ return o[0] === "," ? o = o.slice(2, o.length) : o = o.slice(1, o.length), o;
1931
+ });
1932
+ (_ = p(k)) == null || _.forEach((c) => {
1933
+ var o, i, $, v, P, x, U, G, T, S, D, E, b, B, j;
1934
+ if (c.includes("==")) {
1935
+ const M = (E = c == null ? void 0 : c.split(":")) == null ? void 0 : E[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), W = (b = c == null ? void 0 : c.split(":")) == null ? void 0 : b[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
1936
+ if (Y(W.trim()) ? n.push(JSON.parse(W.trim())) : n.push(JSON.parse(W.replaceAll("'", '"').trim())), M[0] !== "[") {
1937
+ let Q = [];
1938
+ Y("[" + ie(M) + "]") ? Q.push(JSON.parse("[" + ie(M) + "]")) : Y("[" + ie(M).replaceAll("==", ",") + "]") && Q.push(JSON.parse("[" + ie(M).replaceAll("==", ",") + "]"));
1939
+ const V = p(Q);
1940
+ V.push(["操作"]), t.push(V);
1941
+ } else {
1942
+ 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));
1943
+ let ae = [];
1944
+ V == null || V.forEach((H) => {
1945
+ var X, R, ce, ue;
1946
+ let I = [];
1947
+ 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);
1948
+ });
1949
+ const ee = p(ae);
1950
+ ee.push(["操作"]), t.push(ee);
1951
+ }
1952
+ } else {
1953
+ if (Y((o = c == null ? void 0 : c.split(":")) == null ? void 0 : o[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'))) {
1954
+ let M = JSON.parse((i = c == null ? void 0 : c.split(":")) == null ? void 0 : i[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'));
1955
+ Array.isArray(M) || (M = [M]), M.push("操作"), t.push(M);
1956
+ }
1957
+ 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"')));
1958
+ }
1959
+ });
1960
+ }
1961
+ return [t, n, r, l, a];
1962
+ }, kn = (e) => {
1963
+ const t = [], n = fn(e == null ? void 0 : e.key), l = hn(e == null ? void 0 : e.key), a = bn(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];
1964
+ return n && t.push({
1965
+ key: "contentPath",
1966
+ value: n
1967
+ }), (s == null ? void 0 : s.length) > 0 && t.push({
1968
+ key: "tableIndex",
1969
+ value: s
1970
+ }), O && t.push({
1971
+ key: "extraButton",
1972
+ value: O
1973
+ }), (r == null ? void 0 : r.length) > 0 && t.push({
1974
+ key: "form",
1975
+ value: r
1976
+ }), (u == null ? void 0 : u.length) > 0 && t.push({
1977
+ key: "extra",
1978
+ value: u
1979
+ }), (h == null ? void 0 : h.length) > 0 && t.push({
1980
+ comp: "Table",
1981
+ compData: h,
1982
+ name: ""
1983
+ }), (d == null ? void 0 : d.length) > 0 && t.push({
1984
+ key: "tableColumns",
1985
+ value: d
1986
+ }), (y == null ? void 0 : y.length) > 0 && t.push({
1987
+ key: "tableContents",
1988
+ value: y
1989
+ }), t;
1990
+ }, Cn = (e, t) => {
1991
+ const n = t.split("/");
1992
+ let l = [];
1993
+ return e == null || e.forEach((a) => {
1994
+ var u, d, y, h, O, A, _, C, N;
1995
+ const s = [], r = (d = (u = a.find((m) => m.key === "tableIndex")) == null ? void 0 : u.value) == null ? void 0 : d[0];
1996
+ if (r && !r.some((m) => Array.isArray(m))) {
1997
+ const m = (h = (y = a.find((f) => f.key === "tableColumns")) == null ? void 0 : y.value) == null ? void 0 : h[0];
1998
+ s.push({
1999
+ key: "tableIndexColumn",
2000
+ contents: n[n.length - 1]
2001
+ }), s.push({
2002
+ key: "tableIndex",
2003
+ contents: r == null ? void 0 : r.map((f) => ({ label: f }))
2004
+ }), s.push({
2005
+ key: "extraButton",
2006
+ contents: [{ label: "新增" }]
2007
+ }), s.push({
2008
+ key: "rowButton",
2009
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
2010
+ }), Array.isArray(m) && m.some((f) => Array.isArray(f)) ? s.push({
2011
+ key: "header",
2012
+ contents: il(m)
2013
+ }) : s.push({
2014
+ key: "header",
2015
+ contents: Array.isArray(m) ? m == null ? void 0 : m.map((f) => ({ label: f })) : [m].map((f) => ({ label: f }))
2016
+ }), s.push({
2017
+ key: "tableContents",
2018
+ 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])
2019
+ }), l.push({
2020
+ comp: "Table",
2021
+ name: "",
2022
+ compData: s
2023
+ });
2024
+ } else r ? l.push({
2025
+ comp: "Table",
2026
+ name: "",
2027
+ compData: nn(a, n[n.length - 1])
2028
+ }) : a.some((m) => m.key === "extra") ? l.push({
2029
+ comp: "calculator",
2030
+ name: "",
2031
+ compData: qe(a)
2032
+ }) : l.push(qe(a));
2033
+ }), l;
2034
+ }, An = (e, t) => {
2035
+ var a, s;
2036
+ const n = e.map((r) => r.filter((u) => u.key !== "contentPath"));
2037
+ return {
2038
+ comp: "Group",
2039
+ compData: [{
2040
+ contents: Cn(n, t),
2041
+ key: "groupContents"
2042
+ }],
2043
+ name: (s = (a = e[0]) == null ? void 0 : a.find((r) => r.key === "contentPath")) == null ? void 0 : s.value
2044
+ };
2045
+ }, $n = (e) => {
2046
+ var a;
2047
+ const t = [], n = p(e).map((s) => {
2048
+ var r;
2049
+ if (s != null && s.find((u) => (u == null ? void 0 : u.key) === "contentPath"))
2050
+ return (r = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "contentPath")) == null ? void 0 : r.value;
2051
+ }).filter((s) => s !== ""), l = [...new Set(n)];
2052
+ return (a = l == null ? void 0 : l.filter((s) => s)) == null || a.forEach((s) => {
2053
+ var r;
2054
+ t.push(An((r = p(e)) == null ? void 0 : r.filter((u) => u.find((d) => d.key === "contentPath" && d.value === s)), s));
2055
+ }), t;
2056
+ }, On = (e) => {
2057
+ let t = [];
2058
+ t.push({
2059
+ comp: "Menu",
2060
+ compData: [{
2061
+ contents: pn(p(e)),
2062
+ key: "menuContents"
2063
+ }],
2064
+ name: ""
2065
+ });
2066
+ const n = e.map((l) => kn(l)).filter((l) => l.length !== 0);
2067
+ return t = [...t, ...$n(n)], t;
2068
+ }, Zn = (e) => {
2069
+ var a, s, r, u, d;
2070
+ 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));
2071
+ return On(n);
2072
+ }, fe = L(0), Oe = L(0), _n = (e) => {
2073
+ 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 = {};
2074
+ let a;
2075
+ for (; (a = n.exec(t)) !== null; ) {
2076
+ const s = a[1];
2077
+ let r = a[2].trim();
2078
+ (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;
2079
+ }
2080
+ return l;
2081
+ }, yl = (e) => {
2082
+ const [t, n] = e.split("=").map((s) => s.trim()), l = t.replace(/['"]/g, ""), a = n.replace(/^['"]|['"]$/g, "");
2083
+ return { key: l, value: a };
2084
+ }, vn = (e) => {
2085
+ var r;
2086
+ let t = [];
2087
+ const [n, l] = e.split(/=(.+)/), a = n.replace(/['"]/g, "").trim(), s = l.replace(/^['"]|['"]$/g, "");
2088
+ return (r = Object.values(_n(s))) == null || r.forEach((u) => {
2089
+ t.push(yl(u));
2090
+ }), { key: a, value: t };
2091
+ }, ye = (e) => {
2092
+ try {
2093
+ return JSON.parse(e), !0;
2094
+ } catch {
2095
+ return !1;
2096
+ }
2097
+ }, ml = (e) => {
2098
+ try {
2099
+ const t = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
2100
+ if (p(t).split("{").length - 1 > 1) {
2101
+ let n = p(t).replace(/^\{(.*)\}$/, "[$1]");
2102
+ if (ye(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), ye(n)) {
2103
+ const l = JSON.parse(n);
2104
+ let a = [];
2105
+ return l == null || l.forEach((s) => {
2106
+ var r;
2107
+ (r = Object.entries(p(s))) == null || r.forEach((u) => {
2108
+ fe.value++, a.push({
2109
+ id: fe.value,
2110
+ key: (u == null ? void 0 : u[0]) ?? "",
2111
+ value: (u == null ? void 0 : u[1]) === "" ? "" : u == null ? void 0 : u[1],
2112
+ // 如果值为空,则key设为空字符串,否则保留原值
2113
+ width: Object.keys(p(s)).length
2114
+ });
2115
+ });
2116
+ }), a;
2117
+ } else
2118
+ return console.error("转换类型不正确:"), [];
2119
+ } else if (ye(t)) {
2120
+ const n = JSON.parse(t);
2121
+ return Object.entries(n).map(([l, a]) => (fe.value++, {
2122
+ id: fe.value,
2123
+ key: l,
2124
+ value: a === "" ? "" : a,
2125
+ // 如果值为空,则key设为空字符串,否则保留原值
2126
+ width: 1
2127
+ }));
2128
+ } else
2129
+ return t;
2130
+ } catch (t) {
2131
+ return console.error("转换失败:", t), [];
2132
+ }
2133
+ }, xn = (e, t) => {
2134
+ try {
2135
+ if (J != null && J.find((n) => (n == null ? void 0 : n.key) === t))
2136
+ return JSON.parse(e.replace(/[’]|[‘]|[']/g, '"'));
2137
+ if (p(e).split("[").length - 1 > 1) {
2138
+ const n = p(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
2139
+ return JSON.parse(n);
2140
+ } else {
2141
+ const n = p(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
2142
+ if (ye(n)) {
2143
+ const l = JSON.parse(n);
2144
+ return Array.isArray(l) ? l.map((a) => ({ label: a })) : l;
2145
+ } else
2146
+ return ml(p(e));
2147
+ }
2148
+ } catch (n) {
2149
+ return console.error("解析失败:", n), e;
2150
+ }
2151
+ }, Tn = (e) => ({ [e == null ? void 0 : e.key]: xn(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), En = (e) => {
2152
+ try {
2153
+ if (p(e).split("[").length - 1 > 1) {
2154
+ const t = p(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
2155
+ return JSON.parse(t);
2156
+ } else
2157
+ return JSON.parse(p(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
2158
+ } catch (t) {
2159
+ return console.error("解析失败:", t), e;
2160
+ }
2161
+ }, gl = (e) => {
2162
+ var t, n, l, a, s, r;
2163
+ try {
2164
+ 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) => {
2165
+ var _, C;
2166
+ let A = (C = (_ = p(O)) == null ? void 0 : _.split("=")) == null ? void 0 : C[0];
2167
+ return A != null && A.includes("GroupContents") ? vn(O) : yl(O);
2168
+ }), y = [];
2169
+ (a = p(d)) == null || a.forEach((O) => {
2170
+ var A, _, C, N, m;
2171
+ J != null && J.find((f) => {
2172
+ var g, k;
2173
+ return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = O == null ? void 0 : O.key) == null ? void 0 : k.toUpperCase());
2174
+ }) ? y.push({
2175
+ comp: ((A = J == null ? void 0 : J.find((f) => {
2176
+ var g, k;
2177
+ return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = O == null ? void 0 : O.key) == null ? void 0 : k.toUpperCase());
2178
+ })) == null ? void 0 : A.value) ?? "",
2179
+ name: (_ = O == null ? void 0 : O.value) == null ? void 0 : _.replace(/[’]|[‘]|[']/g, ""),
2180
+ compData: []
2181
+ }) : F != null && F.find((f) => {
2182
+ var g, k;
2183
+ return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = O == null ? void 0 : O.key) == null ? void 0 : k.toUpperCase());
2184
+ }) && ((y == null ? void 0 : y.length) === 0 && (C = O.key) != null && C.includes("Menus") && y.push({
2185
+ comp: "Menu",
2186
+ name: "",
2187
+ compData: []
2188
+ }), (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({
2189
+ key: (m = F == null ? void 0 : F.find((f) => {
2190
+ var g, k;
2191
+ return ((g = f == null ? void 0 : f.key) == null ? void 0 : g.toUpperCase()) === ((k = O == null ? void 0 : O.key) == null ? void 0 : k.toUpperCase());
2192
+ })) == null ? void 0 : m.value,
2193
+ contents: O == null ? void 0 : O.value
2194
+ }));
2195
+ }), console.log("newContents", y);
2196
+ let h = (s = p(y)) == null ? void 0 : s.map((O) => {
2197
+ var A;
2198
+ return O != null && O.compData && (O.compData = (A = O == null ? void 0 : O.compData) == null ? void 0 : A.map((_) => {
2199
+ var C, N, m, f, g, k, c, o, i, $, v;
2200
+ if ((_ == null ? void 0 : _.key) === "formFlex")
2201
+ _.contents = ((N = (C = _.contents) == null ? void 0 : C.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : N.toUpperCase()) !== "Vertical".toUpperCase();
2202
+ else if ((_ == null ? void 0 : _.key) === "groupContents")
2203
+ _.contents = (m = p(_.contents)) == null ? void 0 : m.map((P) => Tn(p(P)));
2204
+ else if (((g = (f = _.contents) == null ? void 0 : f.trim()) != null && g.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("】")))
2205
+ _.contents = En(p(_.contents));
2206
+ else {
2207
+ if (!_.contents) return;
2208
+ _.contents = ml(p(_.contents));
2209
+ }
2210
+ return _;
2211
+ })), O;
2212
+ });
2213
+ return h = (r = p(h)) == null ? void 0 : r.map((O) => {
2214
+ var A;
2215
+ return (O == null ? void 0 : O.comp) === "Group" && (O.compData = (A = O.compData) == null ? void 0 : A.map((_) => {
2216
+ var N;
2217
+ let C = [];
2218
+ return (N = _.contents) == null || N.forEach((m) => {
2219
+ var f, g, k, c, o, i, $, v, P, x, U, G;
2220
+ if (J != null && J.find((T) => {
2221
+ var S, D, E;
2222
+ 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());
2223
+ }))
2224
+ C.push({
2225
+ comp: (f = J == null ? void 0 : J.find((T) => {
2226
+ var S, D, E;
2227
+ 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());
2228
+ })) == null ? void 0 : f.value,
2229
+ name: (k = (g = Object.values(m)) == null ? void 0 : g[0]) == null ? void 0 : k.replace(/[’]|[‘]|[']/g, ""),
2230
+ compData: []
2231
+ });
2232
+ else if (F != null && 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
+ })) {
2236
+ if ((C == null ? void 0 : C.length) === 0) return;
2237
+ (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({
2238
+ key: (o = F == null ? void 0 : F.find((T) => {
2239
+ var S, D, E;
2240
+ 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());
2241
+ })) == null ? void 0 : o.value,
2242
+ contents: (i = Object.values(m)) == null ? void 0 : i[0]
2243
+ });
2244
+ } else if ((v = ($ = Object.keys(m)) == null ? void 0 : $[0]) != null && v.includes("$")) {
2245
+ const T = (x = (P = Object.keys(p(m))) == null ? void 0 : P[0]) == null ? void 0 : x.split("$");
2246
+ C[(C == null ? void 0 : C.length) - 1].compData.push({
2247
+ key: (U = F == null ? void 0 : F.find((S) => {
2248
+ var D, E;
2249
+ 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());
2250
+ })) == null ? void 0 : U.value,
2251
+ contents: (G = Object.values(m)) == null ? void 0 : G[0],
2252
+ selectLabel: T == null ? void 0 : T[1]
2253
+ });
2254
+ }
2255
+ return m;
2256
+ }), _.contents = C, _;
2257
+ })), O;
2258
+ }), h;
2259
+ } catch {
2260
+ return !1;
2261
+ }
2262
+ }, Kn = (e) => gl(e), qn = (e) => !!gl(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) => {
2263
+ var s, r;
2264
+ const a = Object.values(n);
2265
+ 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;
2266
+ }, {});
2267
+ export {
2268
+ Yn as a,
2269
+ In as b,
2270
+ Zn as c,
2271
+ Wn as d,
2272
+ Kn as e,
2273
+ Rt as g,
2274
+ qn as i,
2275
+ Hn as s
2276
+ };