ss-component-new 1.1.233 → 1.1.235

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 (111) hide show
  1. package/dist/array-DI6hm2O5.cjs +7 -0
  2. package/dist/array-XiW93OPp.js +4476 -0
  3. package/dist/{cloneDeep-E9vLiIxh.cjs → cloneDeep-CJYxvbkp.cjs} +1 -1
  4. package/dist/{cloneDeep-rq9zaa1w.js → cloneDeep-DD6IIacv.js} +1 -1
  5. package/dist/icons/svg/ChildAdd.svg +1 -0
  6. package/dist/icons/svg/ChildDelete.svg +1 -0
  7. package/dist/icons/svg/ChildFix.svg +1 -0
  8. package/dist/icons/svg/Delete.svg +1 -1
  9. package/dist/icons/svg/Edit.svg +1 -1
  10. package/dist/icons/svg/Tabs.svg +1 -0
  11. package/dist/icons/svg/emptyImg.svg +1 -0
  12. package/dist/{index-DWNFS9b5.js → index-4oU6C2JI.js} +29 -24
  13. package/dist/{index-DoCGNjQ1.js → index-BOcg5OyD.js} +1046 -1028
  14. package/dist/{index-v6Bd2aVR.js → index-BP6-wpOt.js} +3 -3
  15. package/dist/{index-DxC6YYBs.js → index-BR4fdQ1R.js} +4 -4
  16. package/dist/{index-D4B6hNFI.js → index-BRtYsist.js} +5 -5
  17. package/dist/index-BTwMwAiQ.cjs +9 -0
  18. package/dist/{index-aCDLjfK8.cjs → index-BYxKXFVW.cjs} +1 -1
  19. package/dist/{index-8PaOrNDR.cjs → index-BaXDQtLf.cjs} +1 -1
  20. package/dist/index-BeiMmjtu.js +913 -0
  21. package/dist/{index-B6jVaGs4.js → index-BfFcoIcW.js} +1 -1
  22. package/dist/{index-BnyrJQBl.cjs → index-Bg25SwqX.cjs} +1 -1
  23. package/dist/{index-p7PKGLT2.js → index-BjgJwjU0.js} +4 -4
  24. package/dist/{index-DpDTUHhk.js → index-BoGW0rHI.js} +7 -7
  25. package/dist/{index-Bv7WoEDc.cjs → index-Bs4dpkna.cjs} +1 -1
  26. package/dist/{index-DwnZLgLM.cjs → index-BvPVHCZ9.cjs} +1 -1
  27. package/dist/{index-Ct5RVdm9.js → index-BxOh6BEJ.js} +5 -5
  28. package/dist/{index-CYM-4Fce.js → index-C0dpqsuW.js} +36 -36
  29. package/dist/index-C2Yo86eF.js +225 -0
  30. package/dist/index-C31XRLFj.cjs +1 -0
  31. package/dist/{index-Qp0Ei1HO.cjs → index-C4DMm-9q.cjs} +1 -1
  32. package/dist/{index-DHpBlKW-.js → index-C6r0D7bs.js} +27 -24
  33. package/dist/{index-CJyVNY4m.cjs → index-CCJsj4V5.cjs} +1 -1
  34. package/dist/{index-DMpM6R19.cjs → index-CJCpFXP6.cjs} +1 -1
  35. package/dist/{index-C7itP7K7.js → index-CRFv3mU8.js} +4 -4
  36. package/dist/index-CZtXRS3l.js +42 -0
  37. package/dist/{index-BP5hb3Um.js → index-CbTnDm6Y.js} +7 -7
  38. package/dist/index-CnbFplgw.cjs +1 -0
  39. package/dist/{index-CBl53aQj.cjs → index-CqvUtrx4.cjs} +1 -1
  40. package/dist/index-Ctlqzbp7.cjs +1 -0
  41. package/dist/{index-CxpDmVeO.js → index-Cu4Nrk6I.js} +3 -3
  42. package/dist/{index-Cs21pF86.cjs → index-D0S1Fwnn.cjs} +1 -1
  43. package/dist/index-D5HzgxVF.cjs +1 -0
  44. package/dist/index-DBbaEqVU.cjs +1 -0
  45. package/dist/{index-BfvkRKjx.js → index-DI7LyQuc.js} +9 -9
  46. package/dist/index-DIBaD8Dz.js +25 -0
  47. package/dist/{index-B4pDkJNU.js → index-DMKQK1ps.js} +1 -1
  48. package/dist/{index-WFYNryJI.js → index-DRxCMsAf.js} +6 -6
  49. package/dist/{index-CxIxmcBL.cjs → index-DSx-_9X6.cjs} +1 -1
  50. package/dist/index-DhHo9ub3.js +222 -0
  51. package/dist/{index-CwAQ5Reh.js → index-DkotFjz2.js} +1 -1
  52. package/dist/{index-CU2d6hKG.js → index-DrDjMudp.js} +118 -108
  53. package/dist/{index-BCHKDSAB.cjs → index-Dzd-BSIy.cjs} +1 -1
  54. package/dist/{index-BMUfxqMd.js → index-Gd5o0mO3.js} +1 -1
  55. package/dist/{index-CPz8QnpI.cjs → index-ItBGckSL.cjs} +1 -1
  56. package/dist/{index-DeQ9D91f.js → index-Qvf8lEEi.js} +4 -4
  57. package/dist/index-XfC1YU_R.cjs +1 -0
  58. package/dist/{index-CZShjOok.cjs → index-Ya4rFbSY.cjs} +1 -1
  59. package/dist/{index-B37UvP2y.cjs → index-_PQG-wQ3.cjs} +1 -1
  60. package/dist/{index-BZHTZ9C5.cjs → index-lSUKeup-.cjs} +1 -1
  61. package/dist/index-pdOAGERi.cjs +1 -0
  62. package/dist/{index-V-2S_leI.cjs → index-rKrFVhox.cjs} +1 -1
  63. package/dist/{index-DEo9AxUH.cjs → index-xzKwlwN1.cjs} +162 -162
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-B8n4k43K.js → index.vue_vue_type_script_setup_true_lang-CRHsd8hz.js} +1 -1
  65. package/dist/{index.vue_vue_type_script_setup_true_lang-BUlzxTym.cjs → index.vue_vue_type_script_setup_true_lang-DUR36an7.cjs} +1 -1
  66. package/dist/index.vue_vue_type_style_index_0_scoped_11cfc8a8_lang-CND-nizm.js +304 -0
  67. package/dist/index.vue_vue_type_style_index_0_scoped_11cfc8a8_lang-DawuGbvY.cjs +1 -0
  68. package/dist/index.vue_vue_type_style_index_0_scoped_4d31b674_lang-C0YpKhME.cjs +1 -0
  69. package/dist/index.vue_vue_type_style_index_0_scoped_4d31b674_lang-C6BHHnmI.js +563 -0
  70. package/dist/{login-DwXodp2O.cjs → login-5hYAfzY7.cjs} +1 -1
  71. package/dist/{login-DQPlWdfH.js → login-C8oHBbmr.js} +2 -2
  72. package/dist/{main-BLNFjhWy.js → main-B6KpGooi.js} +6 -6
  73. package/dist/{main-B_QUEIbJ.cjs → main-BrPLM7nL.cjs} +1 -1
  74. package/dist/{menu-hvzjfJeP.cjs → menu-BCqnRbPI.cjs} +2 -2
  75. package/dist/{menu-CAjYtlXf.js → menu-G9lGQLbm.js} +83 -69
  76. package/dist/{modelComp-B2ygsfez.js → modelComp-CYG_7mmb.js} +1 -1
  77. package/dist/{modelComp-DLKJo5WV.cjs → modelComp-DWhwoJ78.cjs} +1 -1
  78. package/dist/ss-component.cjs +1 -1
  79. package/dist/ss-component.css +2 -2
  80. package/dist/ss-component.js +8 -8
  81. package/dist/ss-component3.cjs +1 -1
  82. package/dist/ss-component3.js +1 -1
  83. package/package.json +2 -1
  84. package/public/icons/svg/ChildAdd.svg +1 -0
  85. package/public/icons/svg/ChildDelete.svg +1 -0
  86. package/public/icons/svg/ChildFix.svg +1 -0
  87. package/public/icons/svg/Delete.svg +1 -1
  88. package/public/icons/svg/Edit.svg +1 -1
  89. package/public/icons/svg/Tabs.svg +1 -0
  90. package/public/icons/svg/emptyImg.svg +1 -0
  91. package/dist/array-B86yviQY.cjs +0 -7
  92. package/dist/array-cs5V7Y6_.js +0 -3652
  93. package/dist/index-2CGOpPmh.js +0 -26
  94. package/dist/index-9lPgpkGK.cjs +0 -1
  95. package/dist/index-BvEXBAUK.js +0 -683
  96. package/dist/index-C3mEVJgU.js +0 -257
  97. package/dist/index-CMSII8_z.cjs +0 -1
  98. package/dist/index-CO3-_vKi.cjs +0 -1
  99. package/dist/index-DRUzFI-f.js +0 -4
  100. package/dist/index-DbB9Xwdc.cjs +0 -1
  101. package/dist/index-DeFBG6ZK.cjs +0 -1
  102. package/dist/index-Dyw51iVc.cjs +0 -9
  103. package/dist/index-h6PQYGka.cjs +0 -1
  104. package/dist/index.vue_vue_type_script_setup_true_lang-4t6RYIAB.js +0 -191
  105. package/dist/index.vue_vue_type_script_setup_true_lang-CpSvslDx.cjs +0 -1
  106. package/dist/index.vue_vue_type_script_setup_true_lang-D0K1veK2.cjs +0 -1
  107. package/dist/index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js +0 -42
  108. package/dist/index.vue_vue_type_style_index_0_scoped_997b1786_lang-B0m5ZMmX.cjs +0 -1
  109. package/dist/index.vue_vue_type_style_index_0_scoped_997b1786_lang-D3x_OVy3.js +0 -179
  110. package/dist/index.vue_vue_type_style_index_0_scoped_cea2aaad_lang-Cw3_IH1D.js +0 -196
  111. package/dist/index.vue_vue_type_style_index_0_scoped_cea2aaad_lang-D1yEUZXC.cjs +0 -1
@@ -0,0 +1,4476 @@
1
+ import { u as Fl, g as Sl, m as Ll, s as jl, I as ke } from "./index-C6r0D7bs.js";
2
+ import { ref as U, watch as ye, createElementBlock as Z, openBlock as V, createBlock as ue, resolveComponent as re, createVNode as G, Fragment as ie, renderList as pe, createElementVNode as w, createCommentVNode as Oe, toDisplayString as Q, withCtx as X, defineComponent as we, reactive as He, createTextVNode as ve, resolveDynamicComponent as Me, computed as Ul, renderSlot as Le, createSlots as Pl, mergeProps as Rl } from "vue";
3
+ import { p as Je, g as nl, a as Jl } from "./index-Gd5o0mO3.js";
4
+ import { s as he, a as ge, b as dl, g as Vl, c as Wl } from "./index-BOcg5OyD.js";
5
+ import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import { c } from "./cloneDeep-DD6IIacv.js";
7
+ import { d as zl, s as Ke, E as $e } from "./menu-G9lGQLbm.js";
8
+ import { E as Ae } from "./index-Cu4Nrk6I.js";
9
+ import { u as Gl } from "./modelComp-CYG_7mmb.js";
10
+ import { s as Ml, a as Zl } from "./index-DhHo9ub3.js";
11
+ const Hl = (n) => n.match(/\((.*)\)/)[1], Ne = [
12
+ {
13
+ key: "单选",
14
+ value: "Select"
15
+ },
16
+ {
17
+ key: "日期",
18
+ value: "Date"
19
+ },
20
+ {
21
+ key: "长文本",
22
+ value: "TextArea"
23
+ },
24
+ {
25
+ key: "上传",
26
+ value: "Upload"
27
+ }
28
+ ], Be = [
29
+ {
30
+ label: "输入框",
31
+ value: "Input"
32
+ },
33
+ {
34
+ label: "单选框",
35
+ value: "Select"
36
+ },
37
+ {
38
+ label: "日期选择器",
39
+ value: "Date"
40
+ },
41
+ {
42
+ label: "长文本",
43
+ value: "TextArea"
44
+ },
45
+ {
46
+ label: "附件选择器",
47
+ value: "Upload"
48
+ }
49
+ ], Kl = [
50
+ {
51
+ key: "label",
52
+ label: "标签名",
53
+ type: "Input"
54
+ },
55
+ {
56
+ key: "type",
57
+ label: "类型",
58
+ type: "Select",
59
+ options: Be
60
+ },
61
+ {
62
+ key: "originalContent",
63
+ label: "初始值",
64
+ type: "Input"
65
+ },
66
+ {
67
+ key: "value",
68
+ label: "固定值",
69
+ type: "Input"
70
+ }
71
+ ], ql = [
72
+ {
73
+ key: "label",
74
+ label: "标签名",
75
+ type: "Input"
76
+ },
77
+ {
78
+ key: "type",
79
+ label: "类型",
80
+ type: "Select",
81
+ options: Be
82
+ },
83
+ {
84
+ key: "originalContent",
85
+ label: "初始值",
86
+ type: "Select"
87
+ },
88
+ {
89
+ key: "contents",
90
+ label: "选项值",
91
+ type: "Input"
92
+ }
93
+ ], Ql = [
94
+ {
95
+ key: "label",
96
+ label: "标签名",
97
+ type: "Input"
98
+ },
99
+ {
100
+ key: "type",
101
+ label: "类型",
102
+ type: "Select",
103
+ options: Be
104
+ },
105
+ {
106
+ key: "originalContent",
107
+ label: "初始值",
108
+ type: "Date"
109
+ }
110
+ ], Xl = [
111
+ {
112
+ key: "label",
113
+ label: "标签名",
114
+ type: "Input"
115
+ },
116
+ {
117
+ key: "type",
118
+ label: "类型",
119
+ type: "Select",
120
+ options: Be
121
+ },
122
+ {
123
+ key: "originalContent",
124
+ label: "初始值",
125
+ type: "Input"
126
+ }
127
+ ], Yl = [
128
+ {
129
+ key: "label",
130
+ label: "标签名",
131
+ type: "Input"
132
+ },
133
+ {
134
+ key: "type",
135
+ label: "类型",
136
+ type: "Select",
137
+ options: Be
138
+ }
139
+ ], be = [
140
+ {
141
+ key: "Input",
142
+ value: Kl
143
+ },
144
+ {
145
+ key: "Select",
146
+ value: ql
147
+ },
148
+ {
149
+ key: "Date",
150
+ value: Ql
151
+ },
152
+ {
153
+ key: "TextArea",
154
+ value: Xl
155
+ },
156
+ {
157
+ key: "Upload",
158
+ value: Yl
159
+ }
160
+ ], en = [
161
+ {
162
+ value: "normal",
163
+ label: "自定义"
164
+ },
165
+ {
166
+ value: "add",
167
+ label: "新增"
168
+ },
169
+ {
170
+ value: "fix",
171
+ label: "修改"
172
+ },
173
+ {
174
+ value: "view",
175
+ label: "查看"
176
+ },
177
+ {
178
+ value: "delete",
179
+ label: "删除"
180
+ }
181
+ ], Ce = [
182
+ {
183
+ key: "label",
184
+ label: "按钮名",
185
+ type: "Input"
186
+ },
187
+ {
188
+ key: "type",
189
+ label: "类型",
190
+ type: "Select",
191
+ options: en
192
+ },
193
+ {
194
+ key: "background",
195
+ label: "颜色",
196
+ type: "Color"
197
+ }
198
+ ], ln = { class: "form-content" }, nn = {
199
+ __name: "index",
200
+ props: {
201
+ formRules: Object,
202
+ itemData: {
203
+ type: Array,
204
+ default: () => []
205
+ },
206
+ childItemData: {
207
+ type: Array,
208
+ default: () => []
209
+ },
210
+ index: Number
211
+ },
212
+ emits: ["change", "contentChange"],
213
+ setup(n, { emit: s }) {
214
+ const l = n, e = s, a = U([]), o = U(!1), r = U([]), p = Fl(Je), g = U(!1), h = U(), f = (C) => {
215
+ var v, k, t, i;
216
+ const T = (k = (v = c(l.itemData)) == null ? void 0 : v.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : k.contents, m = c(C.content);
217
+ let N = {};
218
+ m && ((t = Object.values(m)) == null ? void 0 : t.length) > 0 && ((i = Object.values(m)) == null || i.forEach((u, y) => {
219
+ N[T[y].key] = u;
220
+ }));
221
+ const d = {
222
+ content: N,
223
+ index: l == null ? void 0 : l.index,
224
+ buttonName: C == null ? void 0 : C.buttonName
225
+ };
226
+ e("change", d);
227
+ }, _ = (C) => {
228
+ var N, d;
229
+ if (!C) return;
230
+ if (((N = Object.values(c(C))) == null ? void 0 : N.length) > 0) {
231
+ const v = (d = Object.values(c(C))) == null ? void 0 : d.map((t) => t);
232
+ let k = "";
233
+ v == null || v.forEach((t) => {
234
+ t !== "" && t !== void 0 && (k = k === "" ? t : k + "/" + t);
235
+ }), p.setSelectArray(v), p.setSelectString(k);
236
+ }
237
+ const T = c(l.itemData), m = T == null ? void 0 : T.map((v) => {
238
+ var k;
239
+ return (v == null ? void 0 : v.key) === "formContent" && ((k = v.contents) == null || k.map((t, i) => {
240
+ var u, y, P, J, R, I, F, B, b, L, $, S, E, K, W, ee, ne, oe, ce;
241
+ return t.type = t != null && t.type ? t.type : (J = (P = (y = (u = t == null ? void 0 : t.key) == null ? void 0 : u.split("$")) == null ? void 0 : y[1]) == null ? void 0 : P.split("(")) != null && J[0] ? (R = Ne == null ? void 0 : Ne.find((de) => {
242
+ var me, A, x, O;
243
+ return (de == null ? void 0 : de.key) === ((O = (x = (A = (me = t == null ? void 0 : t.key) == null ? void 0 : me.split("$")) == null ? void 0 : A[1]) == null ? void 0 : x.split("(")) == null ? void 0 : O[0]);
244
+ })) == null ? void 0 : R.value : "Input", t.options = t != null && t.options ? t.options : ((B = (F = (I = t == null ? void 0 : t.key) == null ? void 0 : I.split("$")) == null ? void 0 : F[1]) == null ? void 0 : B.length) > 0 ? (S = ($ = Hl((L = (b = t == null ? void 0 : t.key) == null ? void 0 : b.split("$")) == null ? void 0 : L[1])) == null ? void 0 : $.split(",")) == null ? void 0 : S.map((de) => ({
245
+ label: de,
246
+ value: de
247
+ })) : [], (E = t == null ? void 0 : t.key) != null && E.includes("$") && (t.key = (W = (K = t == null ? void 0 : t.key) == null ? void 0 : K.split("$")) == null ? void 0 : W[0]), t.value = Array.isArray((ee = Object.values(C)) == null ? void 0 : ee[i]) ? (oe = (ne = Object.values(C)) == null ? void 0 : ne[i]) == null ? void 0 : oe[0] : (ce = Object.values(C)) == null ? void 0 : ce[i], t;
248
+ })), v;
249
+ });
250
+ e("contentChange", {
251
+ contents: m,
252
+ index: l.index
253
+ });
254
+ };
255
+ return ye(
256
+ () => l.itemData,
257
+ () => {
258
+ var v, k, t, i, u, y, P, J, R, I, F;
259
+ const C = (v = c(l.itemData)) == null ? void 0 : v.find((B) => (B == null ? void 0 : B.key) === "formContent"), T = (k = c(l.itemData)) == null ? void 0 : k.find((B) => (B == null ? void 0 : B.key) === "formButton"), m = (t = c(l.itemData)) == null ? void 0 : t.find((B) => (B == null ? void 0 : B.key) === "formFlex"), N = (i = c(l.itemData)) == null ? void 0 : i.find((B) => (B == null ? void 0 : B.key) === "formWrap"), d = (u = c(l.itemData)) == null ? void 0 : u.find((B) => (B == null ? void 0 : B.key) === "enableWrap");
260
+ if ((N == null ? void 0 : N.contents) === "纵向" ? o.value = !1 : o.value = !0, g.value = (d == null ? void 0 : d.contents) === void 0 ? !1 : d == null ? void 0 : d.contents, h.value = typeof (m == null ? void 0 : m.contents) != "boolean" ? !(!(m != null && m.contents) === "" || ((y = m == null ? void 0 : m.contents) == null ? void 0 : y.toUpperCase()) === "VERTICAL") : m == null ? void 0 : m.contents, ((P = C == null ? void 0 : C.contents) == null ? void 0 : P.length) > 0 && Array.isArray(C == null ? void 0 : C.contents)) {
261
+ const B = [];
262
+ (J = C == null ? void 0 : C.contents) == null || J.forEach(($, S) => {
263
+ var E, K, W, ee, ne, oe, ce, de, me, A;
264
+ if (($ == null ? void 0 : $.label) !== "") {
265
+ let x = ($ == null ? void 0 : $.label) ?? ($ == null ? void 0 : $.key) ?? "", O = ($ == null ? void 0 : $.type) ?? "", D = ($ == null ? void 0 : $.options) ?? [];
266
+ if ((E = $ == null ? void 0 : $.key) != null && E.includes("$") && (x = (K = c($ == null ? void 0 : $.key).split("$")) == null ? void 0 : K[0], ((ee = (W = c($ == null ? void 0 : $.key).split("$")) == null ? void 0 : W[1]) == null ? void 0 : ee.length) > 0)) {
267
+ const [H, M] = (oe = (ne = c($ == null ? void 0 : $.key).split("$")) == null ? void 0 : ne[1]) == null ? void 0 : oe.split(/[()]/);
268
+ O = ((ce = Ne.find((Y) => (Y == null ? void 0 : Y.key) === H)) == null ? void 0 : ce.value) ?? "", ((de = M == null ? void 0 : M.split(",")) == null ? void 0 : de.length) > 0 && (D = (me = M == null ? void 0 : M.split(",")) == null ? void 0 : me.map((Y) => ({
269
+ label: Y,
270
+ value: Y
271
+ })));
272
+ }
273
+ B.push({
274
+ label: x ?? "",
275
+ name: "t" + S,
276
+ type: O === "" ? "Input" : O,
277
+ value: $ != null && $.value ? $.value : (D == null ? void 0 : D.length) > 0 ? (A = D == null ? void 0 : D[0]) == null ? void 0 : A.value : ($ == null ? void 0 : $.value) ?? "",
278
+ id: ($ == null ? void 0 : $.id) ?? S,
279
+ contents: D ?? [],
280
+ width: ($ == null ? void 0 : $.width) ?? 1
281
+ });
282
+ }
283
+ });
284
+ const b = (R = c(B)) == null ? void 0 : R.map(($) => $.value);
285
+ let L = "";
286
+ b == null || b.forEach(($) => {
287
+ $ !== "" && $ !== void 0 && (L = L === "" ? $ : L + "/" + $);
288
+ }), p.setSelectArray(b), p.setSelectString(L), a.value = B;
289
+ } else
290
+ a.value = [];
291
+ if (((I = T == null ? void 0 : T.contents) == null ? void 0 : I.length) > 0) {
292
+ const B = [];
293
+ (F = T == null ? void 0 : T.contents) == null || F.forEach((b, L) => {
294
+ (b == null ? void 0 : b.label) !== "" && B.push({
295
+ label: (b == null ? void 0 : b.label) ?? "",
296
+ id: (b == null ? void 0 : b.id) ?? L,
297
+ type: (b == null ? void 0 : b.type) ?? "",
298
+ background: b == null ? void 0 : b.background
299
+ });
300
+ }), r.value = B;
301
+ } else
302
+ r.value = [];
303
+ },
304
+ { deep: !0, immediate: !0 }
305
+ ), (C, T) => (V(), Z("div", ln, [
306
+ (V(), ue(he, {
307
+ rowContents: a.value,
308
+ formRules: n.formRules,
309
+ buttonValue: r.value,
310
+ isRowFlex: h.value,
311
+ isEnableWrap: g.value,
312
+ onOnButtonClick: f,
313
+ onChange: _,
314
+ isButtonRow: o.value,
315
+ key: l.itemData
316
+ }, null, 8, ["rowContents", "formRules", "buttonValue", "isRowFlex", "isEnableWrap", "isButtonRow"]))
317
+ ]));
318
+ }
319
+ }, al = /* @__PURE__ */ fe(nn, [["__scopeId", "data-v-63ad44fd"]]), Pe = U(0), fl = (n) => {
320
+ var s;
321
+ return !n || (n == null ? void 0 : n.length) === 0 ? [] : (s = c(n)) == null ? void 0 : s.map((e) => (Pe.value++, e = {
322
+ label: (e == null ? void 0 : e.label) ?? "",
323
+ prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : e == null ? void 0 : e.prop,
324
+ width: e != null && e.width ? parseInt(e.width) : "",
325
+ fixed: (e == null ? void 0 : e.fixed) ?? void 0,
326
+ sortable: (e == null ? void 0 : e.sortable) ?? !1,
327
+ align: (e == null ? void 0 : e.align) ?? "center",
328
+ showOverflowTooltip: (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
329
+ isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
330
+ isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
331
+ isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
332
+ id: (e == null ? void 0 : e.id) ?? Pe.value,
333
+ children: fl(e == null ? void 0 : e.children)
334
+ }, e));
335
+ }, an = (n) => {
336
+ var l;
337
+ return (l = c(n)) == null ? void 0 : l.map((e) => (Pe.value++, e = {
338
+ label: (e == null ? void 0 : e.label) ?? "",
339
+ prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : e == null ? void 0 : e.prop,
340
+ width: e != null && e.width ? parseInt(e.width) : "",
341
+ fixed: (e == null ? void 0 : e.fixed) ?? void 0,
342
+ sortable: (e == null ? void 0 : e.sortable) ?? !1,
343
+ align: (e == null ? void 0 : e.align) ?? "center",
344
+ showOverflowTooltip: (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
345
+ isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
346
+ isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
347
+ isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
348
+ id: (e == null ? void 0 : e.id) ?? Pe.value,
349
+ children: fl(e == null ? void 0 : e.children)
350
+ }, e));
351
+ }, hl = (n, s) => {
352
+ var l;
353
+ return n != null && n.find((e) => (e == null ? void 0 : e.id) === s) ? (l = c(n)) == null ? void 0 : l.filter((a) => (a == null ? void 0 : a.id) !== s) : (n = n == null ? void 0 : n.map((e) => (e.children = hl(e == null ? void 0 : e.children, s), e)), n);
354
+ }, yl = (n, s) => {
355
+ var l;
356
+ return n != null && n.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l = c(n)) == null ? void 0 : l.map((a) => ((a == null ? void 0 : a.id) === (s == null ? void 0 : s.id) && (a = s), a)) : (n = n == null ? void 0 : n.map((e) => (e.children = yl(e == null ? void 0 : e.children, s), e)), n);
357
+ }, ml = (n, s) => {
358
+ var l;
359
+ return n != null && n.find((e) => {
360
+ var a;
361
+ return (e == null ? void 0 : e.id) === ((a = s == null ? void 0 : s.contents) == null ? void 0 : a.id);
362
+ }) ? (l = c(n)) == null ? void 0 : l.map((a) => {
363
+ var o;
364
+ return (a == null ? void 0 : a.id) === ((o = s == null ? void 0 : s.contents) == null ? void 0 : o.id) && (a = s == null ? void 0 : s.contents), a;
365
+ }) : (n = n == null ? void 0 : n.map((e) => (e.children = ml(e == null ? void 0 : e.children, s), e)), n);
366
+ }, vl = (n, s) => {
367
+ var l;
368
+ return n != null && n.find((e) => (e == null ? void 0 : e.id) === (s == null ? void 0 : s.id)) ? (l = c(n)) == null ? void 0 : l.map((a) => ((a == null ? void 0 : a.id) === (s == null ? void 0 : s.id) && (a != null && a.children || (a.children = []), a.children.push(s.contents)), a)) : (n = n == null ? void 0 : n.map((e) => (e.children = vl(e == null ? void 0 : e.children, s), e)), n);
369
+ }, le = [
370
+ {
371
+ key: "label",
372
+ label: "标签名",
373
+ type: "Input"
374
+ },
375
+ {
376
+ key: "prop",
377
+ label: "属性名",
378
+ type: "Input"
379
+ },
380
+ {
381
+ key: "width",
382
+ label: "宽度",
383
+ type: "Input"
384
+ },
385
+ {
386
+ key: "sortable",
387
+ label: "是否支持排序",
388
+ type: "Switch"
389
+ },
390
+ {
391
+ key: "align",
392
+ label: "文本所在位置",
393
+ type: "Radio",
394
+ options: [
395
+ {
396
+ label: "left",
397
+ value: "左"
398
+ },
399
+ {
400
+ label: "center",
401
+ value: "中"
402
+ },
403
+ {
404
+ label: "right",
405
+ value: "右"
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ key: "fixed",
411
+ label: "是否固定列",
412
+ type: "Switch"
413
+ }
414
+ ], sn = [
415
+ {
416
+ label: "view",
417
+ value: "查看"
418
+ },
419
+ {
420
+ label: "fix",
421
+ value: "修改"
422
+ },
423
+ {
424
+ label: "delete",
425
+ value: "删除"
426
+ }
427
+ ], on = [
428
+ {
429
+ label: "add",
430
+ value: "新增"
431
+ }
432
+ ], _e = [
433
+ {
434
+ key: "label",
435
+ label: "按钮名",
436
+ type: "Input"
437
+ },
438
+ {
439
+ key: "type",
440
+ label: "类型",
441
+ type: "Select",
442
+ options: on
443
+ },
444
+ {
445
+ key: "background",
446
+ label: "按钮背景色",
447
+ type: "Color"
448
+ }
449
+ ], xe = [
450
+ {
451
+ key: "label",
452
+ label: "按钮名",
453
+ type: "Input"
454
+ },
455
+ {
456
+ key: "type",
457
+ label: "类型",
458
+ type: "Select",
459
+ options: sn
460
+ },
461
+ {
462
+ key: "textColor",
463
+ label: "按钮颜色",
464
+ type: "Color"
465
+ }
466
+ ], bl = zl("modelTableComp", {
467
+ state: () => ({
468
+ tableIndex: 0
469
+ }),
470
+ actions: {
471
+ setTableIndex(n) {
472
+ this.tableIndex = n;
473
+ }
474
+ }
475
+ }), tn = { class: "table-header-child" }, rn = { class: "table-header-child-main" }, un = { class: "table-header-child-content" }, cn = { class: "table-header-child-content-item" }, pn = { class: "fix-button" }, dn = { key: 0 }, fn = { class: "form-content" }, hn = {
476
+ __name: "tableNewChild",
477
+ props: {
478
+ tableChildContents: Array
479
+ },
480
+ emits: ["fixChange", "deleteChange"],
481
+ setup(n, { emit: s }) {
482
+ const l = n, e = s, a = U(!1), o = U(""), r = bl(Je), { tableIndex: p } = Ke(r);
483
+ U(0);
484
+ const g = U(""), h = U([]), f = U([]), _ = (t) => {
485
+ var u;
486
+ a.value = !0;
487
+ let i = [];
488
+ le == null || le.forEach((y) => {
489
+ let P = c(p.value) + 1;
490
+ r.setTableIndex(P), i.push({
491
+ label: y == null ? void 0 : y.label,
492
+ name: y == null ? void 0 : y.label,
493
+ type: y.type,
494
+ value: t[y.key],
495
+ id: p.value,
496
+ contents: y == null ? void 0 : y.options
497
+ });
498
+ }), t != null && t.children && ((u = t == null ? void 0 : t.children) == null ? void 0 : u.length) > 0 && i.push({
499
+ children: t == null ? void 0 : t.children,
500
+ isFormColHidden: !0
501
+ }), g.value = t == null ? void 0 : t.id, h.value = i, f.value = i;
502
+ }, C = (t) => {
503
+ e("fixChange", c(t));
504
+ }, T = (t) => {
505
+ e("deleteChange", c(t));
506
+ }, m = (t) => {
507
+ a.value = !0;
508
+ let i = [];
509
+ le == null || le.forEach((u) => {
510
+ let y = c(p.value) + 1;
511
+ r.setTableIndex(y), i.push({
512
+ label: u == null ? void 0 : u.label,
513
+ name: u == null ? void 0 : u.label,
514
+ type: u.type,
515
+ value: "",
516
+ id: p.value,
517
+ contents: u == null ? void 0 : u.options
518
+ });
519
+ }), o.value = t == null ? void 0 : t.id, h.value = i, f.value = i;
520
+ }, N = (t) => {
521
+ let i = c(f.value);
522
+ i = i == null ? void 0 : i.map((u) => (u.children || (u.value = t == null ? void 0 : t[u.name]), u)), f.value = i;
523
+ }, d = () => {
524
+ var i, u;
525
+ h.value = f.value;
526
+ let t = {};
527
+ if (g.value !== "")
528
+ t.id = g.value, (i = h.value) == null || i.forEach((y) => {
529
+ const P = le == null ? void 0 : le.find((J) => (J == null ? void 0 : J.label) === (y == null ? void 0 : y.label));
530
+ P ? t[P.key] = y.value : y != null && y.children && y.children.length > 0 && (t.children = y.children);
531
+ }), a.value = !1, e("fixChange", {
532
+ contents: c(t),
533
+ id: o.value,
534
+ type: "fix"
535
+ });
536
+ else {
537
+ let y = c(p.value) + 1;
538
+ r.setTableIndex(y), t.id = "id" + p.value, (u = h.value) == null || u.forEach((P) => {
539
+ const J = le == null ? void 0 : le.find((R) => (R == null ? void 0 : R.label) === (P == null ? void 0 : P.label));
540
+ J ? t[J.key] = P.value : P != null && P.children && P.children.length > 0 && (t.children = P.children);
541
+ }), a.value = !1, e("fixChange", {
542
+ contents: c(t),
543
+ id: o.value,
544
+ type: "add"
545
+ });
546
+ }
547
+ g.value = "", h.value = [], f.value = [];
548
+ }, v = () => {
549
+ a.value = !1, g.value = "", o.value = "", h.value = [], f.value = [];
550
+ }, k = (t) => {
551
+ Ae.confirm("是否确认要删除", "", {
552
+ confirmButtonText: "确认",
553
+ cancelButtonText: "取消",
554
+ type: "warning"
555
+ }).then(
556
+ () => {
557
+ e("deleteChange", t), $e({
558
+ type: "success",
559
+ message: "删除成功"
560
+ });
561
+ }
562
+ ).catch(() => {
563
+ });
564
+ };
565
+ return (t, i) => {
566
+ const u = re("svg-icon");
567
+ return V(), Z("div", tn, [
568
+ (V(!0), Z(ie, null, pe(l == null ? void 0 : l.tableChildContents, (y, P) => (V(), Z("div", rn, [
569
+ w("div", un, [
570
+ w("div", cn, Q(y.label), 1),
571
+ w("div", pn, [
572
+ G(u, {
573
+ name: "ChildAdd",
574
+ class: "svg-icon-content",
575
+ style: { width: "24px", height: "24px" },
576
+ onClick: (J) => m(y)
577
+ }, null, 8, ["onClick"]),
578
+ G(u, {
579
+ name: "ChildFix",
580
+ class: "svg-icon-content",
581
+ style: { width: "24px", height: "24px" },
582
+ onClick: (J) => _(y)
583
+ }, null, 8, ["onClick"]),
584
+ G(u, {
585
+ name: "ChildDelete",
586
+ class: "svg-icon-content",
587
+ style: { width: "24px", height: "24px" },
588
+ onClick: (J) => k(y)
589
+ }, null, 8, ["onClick"])
590
+ ])
591
+ ]),
592
+ y != null && y.children && y.children.length > 0 ? (V(), Z("div", dn, [
593
+ G(gl, {
594
+ tableChildContents: y == null ? void 0 : y.children,
595
+ onDeleteChange: T,
596
+ onFixChange: C
597
+ }, null, 8, ["tableChildContents"])
598
+ ])) : Oe("", !0)
599
+ ]))), 256)),
600
+ G(ge, {
601
+ visible: a.value,
602
+ onBeforeDestroy: v,
603
+ width: 840
604
+ }, {
605
+ default: X(() => [
606
+ w("div", fn, [
607
+ (V(), ue(he, {
608
+ rowContents: h.value,
609
+ key: h.value,
610
+ isEnableWrap: !0,
611
+ onChange: N
612
+ }, null, 8, ["rowContents"]))
613
+ ])
614
+ ]),
615
+ footer: X(() => [
616
+ w("div", { class: "dialog-footer" }, [
617
+ w("div", {
618
+ onClick: v,
619
+ class: "cancel-button button"
620
+ }, Q("取消")),
621
+ w("div", {
622
+ class: "ok-button button",
623
+ onClick: d
624
+ }, Q("确认"))
625
+ ])
626
+ ]),
627
+ _: 1
628
+ }, 8, ["visible"])
629
+ ]);
630
+ };
631
+ }
632
+ }, yn = /* @__PURE__ */ fe(hn, [["__scopeId", "data-v-e0fef72d"]]), mn = { class: "table-header-child" }, vn = { class: "table-header-child-main" }, bn = { class: "table-header-child-content" }, gn = { class: "table-header-child-content-item" }, kn = { class: "fix-button" }, Cn = { key: 0 }, _n = { class: "form-content" }, xn = {
633
+ __name: "tableChildren",
634
+ props: {
635
+ tableChildContents: Array
636
+ },
637
+ emits: ["fixChange", "deleteChange"],
638
+ setup(n, { emit: s }) {
639
+ const l = n, e = s, a = U(!1), o = U(""), r = bl(Je), { tableIndex: p } = Ke(r), g = U(""), h = U([]), f = U([]), _ = (t) => {
640
+ e("fixChange", c(t));
641
+ }, C = (t) => {
642
+ var u;
643
+ a.value = !0;
644
+ let i = [];
645
+ le == null || le.forEach((y) => {
646
+ let P = c(p.value) + 1;
647
+ r.setTableIndex(P), i.push({
648
+ label: y == null ? void 0 : y.label,
649
+ name: y == null ? void 0 : y.label,
650
+ type: y.type,
651
+ value: t[y.key],
652
+ id: p.value,
653
+ contents: y == null ? void 0 : y.options
654
+ });
655
+ }), t != null && t.children && ((u = t == null ? void 0 : t.children) == null ? void 0 : u.length) > 0 && i.push({
656
+ children: t == null ? void 0 : t.children,
657
+ isFormColHidden: !0
658
+ }), g.value = t == null ? void 0 : t.id, h.value = i, f.value = i;
659
+ }, T = (t) => {
660
+ a.value = !0;
661
+ let i = [];
662
+ le == null || le.forEach((u) => {
663
+ let y = c(p.value) + 1;
664
+ r.setTableIndex(y), i.push({
665
+ label: u == null ? void 0 : u.label,
666
+ name: u == null ? void 0 : u.label,
667
+ type: u.type,
668
+ value: "",
669
+ id: p.value,
670
+ contents: u == null ? void 0 : u.options
671
+ });
672
+ }), o.value = t == null ? void 0 : t.id, h.value = i, f.value = i;
673
+ }, m = (t) => {
674
+ let i = c(f.value);
675
+ i = i == null ? void 0 : i.map((u) => (u.children || (u.value = t == null ? void 0 : t[u.name]), u)), f.value = i;
676
+ }, N = () => {
677
+ var i, u;
678
+ h.value = f.value;
679
+ let t = {};
680
+ if (g.value !== "")
681
+ t.id = g.value, (i = h.value) == null || i.forEach((y) => {
682
+ const P = le == null ? void 0 : le.find((J) => (J == null ? void 0 : J.label) === (y == null ? void 0 : y.label));
683
+ P ? t[P.key] = y.value : y != null && y.children && y.children.length > 0 && (t.children = y.children);
684
+ }), a.value = !1, e("fixChange", {
685
+ contents: c(t),
686
+ id: o.value,
687
+ type: "fix"
688
+ });
689
+ else {
690
+ let y = c(p.value) + 1;
691
+ r.setTableIndex(y), t.id = "idChild" + p.value, (u = h.value) == null || u.forEach((P) => {
692
+ const J = le == null ? void 0 : le.find((R) => (R == null ? void 0 : R.label) === (P == null ? void 0 : P.label));
693
+ J ? t[J.key] = P.value : P != null && P.children && P.children.length > 0 && (t.children = P.children);
694
+ }), a.value = !1, e("fixChange", {
695
+ contents: c(t),
696
+ id: o.value,
697
+ type: "add"
698
+ });
699
+ }
700
+ g.value = "", h.value = [], f.value = [];
701
+ }, d = () => {
702
+ a.value = !1, g.value = "", o.value = "", h.value = [], f.value = [];
703
+ }, v = (t) => {
704
+ Ae.confirm("是否确认要删除", "", {
705
+ confirmButtonText: "确认",
706
+ cancelButtonText: "取消",
707
+ type: "warning"
708
+ }).then(
709
+ () => {
710
+ e("deleteChange", t), $e({
711
+ type: "success",
712
+ message: "删除成功"
713
+ });
714
+ }
715
+ ).catch(() => {
716
+ });
717
+ }, k = (t) => {
718
+ e("deleteChange", t);
719
+ };
720
+ return (t, i) => {
721
+ const u = re("svg-icon");
722
+ return V(), Z("div", mn, [
723
+ (V(!0), Z(ie, null, pe(l == null ? void 0 : l.tableChildContents, (y, P) => (V(), Z("div", vn, [
724
+ w("div", bn, [
725
+ w("div", gn, Q(y.label), 1),
726
+ w("div", kn, [
727
+ G(u, {
728
+ name: "ChildAdd",
729
+ class: "svg-icon-content",
730
+ style: { width: "24px", height: "24px" },
731
+ onClick: (J) => T(y)
732
+ }, null, 8, ["onClick"]),
733
+ G(u, {
734
+ name: "ChildFix",
735
+ class: "svg-icon-content",
736
+ style: { width: "24px", height: "24px" },
737
+ onClick: (J) => C(y)
738
+ }, null, 8, ["onClick"]),
739
+ G(u, {
740
+ name: "ChildDelete",
741
+ class: "svg-icon-content",
742
+ style: { width: "24px", height: "24px" },
743
+ onClick: (J) => v(y)
744
+ }, null, 8, ["onClick"])
745
+ ])
746
+ ]),
747
+ y != null && y.children && y.children.length > 0 ? (V(), Z("div", Cn, [
748
+ G(yn, {
749
+ tableChildContents: y == null ? void 0 : y.children,
750
+ onDeleteChange: k,
751
+ onFixChange: _
752
+ }, null, 8, ["tableChildContents"])
753
+ ])) : Oe("", !0)
754
+ ]))), 256)),
755
+ G(ge, {
756
+ visible: a.value,
757
+ onBeforeDestroy: d,
758
+ width: 840
759
+ }, {
760
+ default: X(() => [
761
+ w("div", _n, [
762
+ (V(), ue(he, {
763
+ rowContents: h.value,
764
+ key: h.value,
765
+ isEnableWrap: !0,
766
+ onChange: m
767
+ }, null, 8, ["rowContents"]))
768
+ ])
769
+ ]),
770
+ footer: X(() => [
771
+ w("div", { class: "dialog-footer" }, [
772
+ w("div", {
773
+ onClick: d,
774
+ class: "cancel-button button"
775
+ }, Q("取消")),
776
+ w("div", {
777
+ class: "ok-button button",
778
+ onClick: N
779
+ }, Q("确认"))
780
+ ])
781
+ ]),
782
+ _: 1
783
+ }, 8, ["visible"])
784
+ ]);
785
+ };
786
+ }
787
+ }, gl = /* @__PURE__ */ fe(xn, [["__scopeId", "data-v-cc311a5f"]]), $n = { class: "table-operate-content" }, An = { class: "table-operate-item" }, wn = { class: "operate-title" }, In = { class: "operate-content" }, Tn = { class: "fix-content" }, En = { class: "fix-content-label" }, Dn = { class: "fix-button" }, On = { key: 0 }, Bn = { class: "operate-title" }, Nn = { class: "operate-content" }, Fn = { class: "fix-content" }, Sn = { class: "fix-content-label" }, Ln = { class: "fix-button" }, jn = { class: "operate-title" }, Un = { class: "operate-content" }, Pn = { class: "fix-content" }, Rn = { class: "fix-content-label" }, Jn = { class: "fix-button" }, Vn = { class: "operate-content" }, Wn = { style: { display: "flex", "justify-content": "space-between" } }, zn = { class: "form-content" }, Gn = { class: "form-content" }, Mn = { class: "form-content" }, Zn = {
788
+ __name: "operate",
789
+ props: {
790
+ itemContents: {
791
+ type: Array,
792
+ default: () => []
793
+ },
794
+ originalItemContents: {
795
+ type: Array,
796
+ default: () => []
797
+ }
798
+ },
799
+ emits: ["change"],
800
+ setup(n, { emit: s }) {
801
+ const l = n, e = s, a = U([]), o = U(!1), r = U([]), p = U(!1), g = U([]), h = U(!1), f = U([]), _ = U(""), C = U(""), T = U([]), m = U([]), N = U([]), d = U([]), v = U(!1), k = U([]), t = U([]), i = U(0), u = () => {
802
+ v.value = !0;
803
+ let A = [];
804
+ _e == null || _e.forEach((x) => {
805
+ i.value++, A.push({
806
+ label: x == null ? void 0 : x.label,
807
+ name: x == null ? void 0 : x.label,
808
+ type: x.type,
809
+ value: (x == null ? void 0 : x.key) === "background" ? "var(--ssComponent-primary-color)" : "",
810
+ id: i.value,
811
+ contents: x == null ? void 0 : x.options
812
+ });
813
+ }), k.value = A, t.value = A;
814
+ }, y = (A) => {
815
+ v.value = !0;
816
+ let x = [];
817
+ _e == null || _e.forEach((O) => {
818
+ i.value++, x.push({
819
+ label: O == null ? void 0 : O.label,
820
+ name: O == null ? void 0 : O.label,
821
+ type: O.type,
822
+ value: A[O.key],
823
+ id: i.value,
824
+ contents: O == null ? void 0 : O.options
825
+ });
826
+ }), _.value = A == null ? void 0 : A.id, k.value = x, t.value = x;
827
+ };
828
+ ye(
829
+ () => h.value,
830
+ () => {
831
+ var x, O;
832
+ let A = c(l.originalItemContents);
833
+ (x = c(l.originalItemContents)) != null && x.find((D) => (D == null ? void 0 : D.key) === "page") ? A = (O = c(l.originalItemContents)) == null ? void 0 : O.map((D) => ((D == null ? void 0 : D.key) === "page" && (D.contents = h.value), D)) : A.push({
834
+ key: "page",
835
+ contents: h.value
836
+ }), e("change", A);
837
+ },
838
+ { deep: !0 }
839
+ );
840
+ const P = (A) => {
841
+ Ae.confirm("是否确认要删除", "", {
842
+ confirmButtonText: "确认",
843
+ cancelButtonText: "取消",
844
+ type: "warning"
845
+ }).then(
846
+ () => {
847
+ var x, O;
848
+ m.value = (x = c(m.value)) == null ? void 0 : x.filter((D) => (D == null ? void 0 : D.id) !== (A == null ? void 0 : A.id)), e("change", (O = c(l.originalItemContents)) == null ? void 0 : O.map((D) => ((D == null ? void 0 : D.key) === "extraButton" && (D.contents = m.value), D))), $e({
849
+ type: "success",
850
+ message: "删除成功"
851
+ });
852
+ }
853
+ ).catch(() => {
854
+ });
855
+ }, J = () => {
856
+ var O, D, H, M, Y;
857
+ k.value = t.value;
858
+ let A = {};
859
+ if (_.value !== "" ? A.id = _.value : (i.value++, A.id = "id" + i.value), (O = k.value) == null || O.forEach((z) => {
860
+ const q = _e == null ? void 0 : _e.find((te) => (te == null ? void 0 : te.label) === (z == null ? void 0 : z.label));
861
+ q ? A[q.key] = z.value : z != null && z.children && z.children.length > 0 && (A.children = z.children);
862
+ }), (D = m.value) != null && D.find((z) => z.id === A.id))
863
+ m.value = (H = m.value) == null ? void 0 : H.map((z) => (z.id === A.id && (z = A), z));
864
+ else {
865
+ let z = c(m.value);
866
+ z.push(A), m.value = z;
867
+ }
868
+ v.value = !1, _.value = "";
869
+ let x = c(l.originalItemContents);
870
+ (M = c(l.originalItemContents)) != null && M.find((z) => (z == null ? void 0 : z.key) === "extraButton") ? x = (Y = c(l.originalItemContents)) == null ? void 0 : Y.map((z) => ((z == null ? void 0 : z.key) === "extraButton" && (z.contents = m.value), z)) : x.push({
871
+ key: "extraButton",
872
+ contents: m.value
873
+ }), e("change", x);
874
+ }, R = (A) => {
875
+ let x = c(t.value);
876
+ x = x == null ? void 0 : x.map((O) => (O.children || (O.value = A == null ? void 0 : A[O.name]), O)), t.value = x;
877
+ }, I = () => {
878
+ v.value = !1, k.value = [], _.value = "";
879
+ }, F = (A) => {
880
+ p.value = !0;
881
+ let x = [];
882
+ xe == null || xe.forEach((O) => {
883
+ i.value++, x.push({
884
+ label: O == null ? void 0 : O.label,
885
+ name: O == null ? void 0 : O.label,
886
+ type: O.type,
887
+ value: A[O.key],
888
+ id: i.value,
889
+ contents: O == null ? void 0 : O.options
890
+ });
891
+ }), _.value = A == null ? void 0 : A.id, N.value = x, d.value = x;
892
+ }, B = (A) => {
893
+ Ae.confirm("是否确认要删除", "", {
894
+ confirmButtonText: "确认",
895
+ cancelButtonText: "取消",
896
+ type: "warning"
897
+ }).then(
898
+ () => {
899
+ var x, O;
900
+ T.value = (x = c(T.value)) == null ? void 0 : x.filter((D) => (D == null ? void 0 : D.id) !== (A == null ? void 0 : A.id)), e("change", (O = c(l.originalItemContents)) == null ? void 0 : O.map((D) => ((D == null ? void 0 : D.key) === "rowButton" && (D.contents = T.value), D))), $e({
901
+ type: "success",
902
+ message: "删除成功"
903
+ });
904
+ }
905
+ ).catch(() => {
906
+ });
907
+ }, b = () => {
908
+ o.value = !0;
909
+ let A = [];
910
+ le == null || le.forEach((x) => {
911
+ i.value++, A.push({
912
+ label: x == null ? void 0 : x.label,
913
+ name: x == null ? void 0 : x.label,
914
+ type: x.type,
915
+ value: "",
916
+ id: i.value,
917
+ contents: x == null ? void 0 : x.options
918
+ });
919
+ }), g.value = A, f.value = A;
920
+ }, L = () => {
921
+ p.value = !0;
922
+ let A = [];
923
+ xe == null || xe.forEach((x) => {
924
+ i.value++, A.push({
925
+ label: x == null ? void 0 : x.label,
926
+ name: x == null ? void 0 : x.label,
927
+ type: x.type,
928
+ value: "",
929
+ id: i.value,
930
+ contents: x == null ? void 0 : x.options
931
+ });
932
+ }), N.value = A, d.value = A;
933
+ }, $ = (A) => {
934
+ let x = c(d.value);
935
+ x = x == null ? void 0 : x.map((O) => (O.children || (O.value = A == null ? void 0 : A[O.name]), O)), d.value = x;
936
+ }, S = () => {
937
+ var O, D, H, M, Y;
938
+ N.value = d.value;
939
+ let A = {};
940
+ if (_.value !== "" ? A.id = _.value : (i.value++, A.id = "id" + i.value), (O = N.value) == null || O.forEach((z) => {
941
+ const q = xe == null ? void 0 : xe.find((te) => (te == null ? void 0 : te.label) === (z == null ? void 0 : z.label));
942
+ q ? A[q.key] = z.value : z != null && z.children && z.children.length > 0 && (A.children = z.children);
943
+ }), (D = T.value) != null && D.find((z) => z.id === A.id))
944
+ T.value = (H = T.value) == null ? void 0 : H.map((z) => (z.id === A.id && (z = A), z));
945
+ else {
946
+ let z = c(T.value);
947
+ z.push(A), T.value = z;
948
+ }
949
+ p.value = !1, _.value = "";
950
+ let x = c(l.originalItemContents);
951
+ (M = c(l.originalItemContents)) != null && M.find((z) => (z == null ? void 0 : z.key) === "rowButton") ? x = (Y = c(l.originalItemContents)) == null ? void 0 : Y.map((z) => ((z == null ? void 0 : z.key) === "rowButton" && (z.contents = T.value), z)) : x.push({
952
+ key: "rowButton",
953
+ contents: T.value
954
+ }), e("change", x);
955
+ }, E = () => {
956
+ p.value = !1, _.value = "", d.value = [], N.value = [];
957
+ }, K = (A) => {
958
+ o.value = !0;
959
+ let x = [];
960
+ le == null || le.forEach((O) => {
961
+ i.value++, x.push({
962
+ label: O == null ? void 0 : O.label,
963
+ name: O == null ? void 0 : O.label,
964
+ type: O.type,
965
+ value: "",
966
+ id: i.value,
967
+ contents: O == null ? void 0 : O.options
968
+ });
969
+ }), g.value = x, C.value = A == null ? void 0 : A.id, f.value = x;
970
+ }, W = (A) => {
971
+ var x;
972
+ r.value = hl(c(r.value), A == null ? void 0 : A.id), e("change", (x = c(l.originalItemContents)) == null ? void 0 : x.map((O) => {
973
+ var D;
974
+ return (O == null ? void 0 : O.key) === "header" && (O.contents = (D = r.value) != null && D.some((H) => H == null ? void 0 : H.children) ? [r.value] : r.value), O;
975
+ }));
976
+ }, ee = (A) => {
977
+ var O, D, H;
978
+ A.type === "fix" ? A.id !== "" ? r.value = ml(r.value, A) : r.value = yl(r.value, A == null ? void 0 : A.contents) : r.value = vl(r.value, A), r.value = (O = r.value) != null && O.some((M) => M == null ? void 0 : M.children) ? [r.value] : r.value, _.value = "";
979
+ let x = c(l.originalItemContents);
980
+ (D = c(l.originalItemContents)) != null && D.find((M) => (M == null ? void 0 : M.key) === "header") ? x = (H = c(l.originalItemContents)) == null ? void 0 : H.map((M) => ((M == null ? void 0 : M.key) === "header" && (M.contents = r.value), M)) : x.push({
981
+ key: "header",
982
+ contents: r.value
983
+ }), e("change", x);
984
+ }, ne = (A) => {
985
+ var O;
986
+ o.value = !0;
987
+ let x = [];
988
+ le == null || le.forEach((D) => {
989
+ i.value++, x.push({
990
+ label: D == null ? void 0 : D.label,
991
+ name: D == null ? void 0 : D.label,
992
+ type: D.type,
993
+ value: A[D.key],
994
+ id: i.value,
995
+ contents: D == null ? void 0 : D.options
996
+ });
997
+ }), A != null && A.children && ((O = A == null ? void 0 : A.children) == null ? void 0 : O.length) > 0 && x.push({
998
+ children: A == null ? void 0 : A.children,
999
+ isFormColHidden: !0
1000
+ }), _.value = A == null ? void 0 : A.id, C.value = "", g.value = x, f.value = x;
1001
+ }, oe = (A) => {
1002
+ let x = c(f.value);
1003
+ x = x == null ? void 0 : x.map((O) => (O.children || (O.value = A == null ? void 0 : A[O.name]), O)), f.value = x;
1004
+ }, ce = () => {
1005
+ o.value = !1, _.value = "", C.value = "", f.value = [];
1006
+ }, de = () => {
1007
+ var O, D, H, M, Y, z;
1008
+ g.value = f.value;
1009
+ let A = {};
1010
+ if (_.value !== "" ? A.id = _.value : (i.value++, A.id = "id" + i.value), (O = g.value) == null || O.forEach((q) => {
1011
+ const te = le == null ? void 0 : le.find((Ie) => (Ie == null ? void 0 : Ie.label) === (q == null ? void 0 : q.label));
1012
+ te ? A[te.key] = q.value : q != null && q.children && q.children.length > 0 && (A.children = q.children);
1013
+ }), (D = r.value) != null && D.find((q) => q.id === A.id))
1014
+ r.value = (H = r.value) == null ? void 0 : H.map((q) => (q.id === A.id && (q = A), q));
1015
+ else {
1016
+ let q = c(r.value) ?? [];
1017
+ C.value === "" ? q.push(A) : q = q == null ? void 0 : q.map((te) => (te.id === C.value && (te.children || (te.children = []), te.children.push(A)), te)), r.value = q;
1018
+ }
1019
+ r.value = (M = r.value) != null && M.some((q) => q == null ? void 0 : q.children) ? [r.value] : r.value, o.value = !1, _.value = "", C.value = "";
1020
+ let x = c(l.originalItemContents);
1021
+ (Y = c(l.originalItemContents)) != null && Y.find((q) => (q == null ? void 0 : q.key) === "header") ? x = (z = c(l.originalItemContents)) == null ? void 0 : z.map((q) => ((q == null ? void 0 : q.key) === "header" && (q.contents = r.value), q)) : x.push({
1022
+ key: "header",
1023
+ contents: r.value
1024
+ }), e("change", x);
1025
+ }, me = (A) => {
1026
+ Ae.confirm("是否确认要删除", "", {
1027
+ confirmButtonText: "确认",
1028
+ cancelButtonText: "取消",
1029
+ type: "warning"
1030
+ }).then(
1031
+ () => {
1032
+ var x, O;
1033
+ r.value = (x = c(r.value)) == null ? void 0 : x.filter((D) => (D == null ? void 0 : D.id) !== (A == null ? void 0 : A.id)), e("change", (O = c(l.originalItemContents)) == null ? void 0 : O.map((D) => {
1034
+ var H;
1035
+ return (D == null ? void 0 : D.key) === "header" && (D.contents = (H = r.value) != null && H.some((M) => M == null ? void 0 : M.children) ? [r.value] : r.value), D;
1036
+ })), $e({
1037
+ type: "success",
1038
+ message: "删除成功"
1039
+ });
1040
+ }
1041
+ ).catch(() => {
1042
+ });
1043
+ };
1044
+ return ye(
1045
+ () => l.originalItemContents,
1046
+ () => {
1047
+ var A, x, O, D, H, M, Y, z, q, te, Ie, Xe, Ye, el, ll;
1048
+ !l.originalItemContents || l.originalItemContents.length === 0 || (a.value = c(l.originalItemContents), r.value = (x = (A = a.value) == null ? void 0 : A.find((j) => (j == null ? void 0 : j.key) === "header")) == null ? void 0 : x.contents, T.value = (D = (O = a.value) == null ? void 0 : O.find((j) => (j == null ? void 0 : j.key) === "rowButton")) == null ? void 0 : D.contents, m.value = (M = (H = a.value) == null ? void 0 : H.find((j) => (j == null ? void 0 : j.key) === "extraButton")) == null ? void 0 : M.contents, h.value = (z = (Y = a.value) == null ? void 0 : Y.find((j) => (j == null ? void 0 : j.key) === "page")) != null && z.contents ? !!((te = (q = a.value) == null ? void 0 : q.find((j) => (j == null ? void 0 : j.key) === "page")) != null && te.contents) : !1, r.value = (Ie = r.value) == null ? void 0 : Ie.map((j, Ee) => (Array.isArray(j) ? j = an(j) : j = {
1049
+ label: (j == null ? void 0 : j.label) ?? "",
1050
+ prop: (j == null ? void 0 : j.label) === "操作" ? "operate" : j == null ? void 0 : j.prop,
1051
+ width: j != null && j.width ? parseInt(j.width) : "",
1052
+ fixed: (j == null ? void 0 : j.fixed) ?? void 0,
1053
+ sortable: (j == null ? void 0 : j.sortable) ?? !1,
1054
+ align: (j == null ? void 0 : j.align) ?? "center",
1055
+ showOverflowTooltip: (j == null ? void 0 : j.showOverflowTooltip) ?? !0,
1056
+ isNotDrag: (j == null ? void 0 : j.isNotDrag) ?? !1,
1057
+ isEditCol: (j == null ? void 0 : j.isEditCol) ?? !1,
1058
+ isOperate: (j == null ? void 0 : j.isOperate) ?? !1,
1059
+ id: (j == null ? void 0 : j.id) ?? Ee
1060
+ }, j)), r.value = (Xe = r.value) != null && Xe.every((j) => Array.isArray(j)) ? (Ye = r.value) == null ? void 0 : Ye[0] : r.value, T.value = (el = T.value) == null ? void 0 : el.map((j, Ee) => j = {
1061
+ label: (j == null ? void 0 : j.label) ?? "",
1062
+ type: (j == null ? void 0 : j.type) ?? "",
1063
+ textColor: (j == null ? void 0 : j.textColor) ?? "#000000",
1064
+ id: (j == null ? void 0 : j.id) ?? Ee
1065
+ }), m.value = (ll = m.value) == null ? void 0 : ll.map((j, Ee) => j = {
1066
+ label: (j == null ? void 0 : j.label) ?? "",
1067
+ type: (j == null ? void 0 : j.type) ?? "",
1068
+ background: (j == null ? void 0 : j.background) ?? "var(--ssComponent-primary-color)",
1069
+ id: (j == null ? void 0 : j.id) ?? Ee
1070
+ }));
1071
+ },
1072
+ { deep: !0, immediate: !0 }
1073
+ ), (A, x) => {
1074
+ const O = re("svg-icon");
1075
+ return V(), Z("div", $n, [
1076
+ w("div", An, [
1077
+ w("div", wn, [
1078
+ x[2] || (x[2] = w("div", null, Q("表头"), -1)),
1079
+ w("div", {
1080
+ class: "icon-content",
1081
+ onClick: b
1082
+ }, [
1083
+ G(O, {
1084
+ name: "Plus",
1085
+ class: "icon-size"
1086
+ }),
1087
+ x[1] || (x[1] = w("div", null, Q("新增"), -1))
1088
+ ])
1089
+ ]),
1090
+ w("div", In, [
1091
+ (V(!0), Z(ie, null, pe(r.value, (D, H) => (V(), Z("div", { key: H }, [
1092
+ w("div", Tn, [
1093
+ w("div", En, Q(D == null ? void 0 : D.label), 1),
1094
+ w("div", Dn, [
1095
+ G(O, {
1096
+ name: "ChildAdd",
1097
+ class: "svg-icon-content",
1098
+ style: { width: "24px", height: "24px" },
1099
+ onClick: (M) => K(D)
1100
+ }, null, 8, ["onClick"]),
1101
+ G(O, {
1102
+ name: "ChildFix",
1103
+ class: "svg-icon-content",
1104
+ style: { width: "24px", height: "24px" },
1105
+ onClick: (M) => ne(D)
1106
+ }, null, 8, ["onClick"]),
1107
+ G(O, {
1108
+ name: "ChildDelete",
1109
+ class: "svg-icon-content",
1110
+ style: { width: "24px", height: "24px" },
1111
+ onClick: (M) => me(D)
1112
+ }, null, 8, ["onClick"])
1113
+ ])
1114
+ ]),
1115
+ D != null && D.children && D.children.length > 0 ? (V(), Z("div", On, [
1116
+ G(gl, {
1117
+ tableChildContents: D == null ? void 0 : D.children,
1118
+ onDeleteChange: W,
1119
+ onFixChange: ee
1120
+ }, null, 8, ["tableChildContents"])
1121
+ ])) : Oe("", !0)
1122
+ ]))), 128))
1123
+ ]),
1124
+ w("div", Bn, [
1125
+ x[4] || (x[4] = w("div", null, Q("行内按钮"), -1)),
1126
+ w("div", {
1127
+ class: "icon-content",
1128
+ onClick: L
1129
+ }, [
1130
+ G(O, {
1131
+ name: "Plus",
1132
+ class: "icon-size"
1133
+ }),
1134
+ x[3] || (x[3] = w("div", null, Q("新增"), -1))
1135
+ ])
1136
+ ]),
1137
+ w("div", Nn, [
1138
+ (V(!0), Z(ie, null, pe(T.value, (D, H) => (V(), Z("div", { key: H }, [
1139
+ w("div", Fn, [
1140
+ w("div", Sn, Q(D == null ? void 0 : D.label), 1),
1141
+ w("div", Ln, [
1142
+ G(O, {
1143
+ name: "ChildFix",
1144
+ style: { width: "24px", height: "24px" },
1145
+ class: "svg-icon-content",
1146
+ onClick: (M) => F(D)
1147
+ }, null, 8, ["onClick"]),
1148
+ G(O, {
1149
+ name: "ChildDelete",
1150
+ class: "svg-icon-content",
1151
+ style: { width: "24px", height: "24px" },
1152
+ onClick: (M) => B(D)
1153
+ }, null, 8, ["onClick"])
1154
+ ])
1155
+ ])
1156
+ ]))), 128))
1157
+ ]),
1158
+ w("div", jn, [
1159
+ x[6] || (x[6] = w("div", null, Q("表外按钮"), -1)),
1160
+ w("div", {
1161
+ class: "icon-content",
1162
+ onClick: u
1163
+ }, [
1164
+ G(O, {
1165
+ name: "Plus",
1166
+ class: "icon-size"
1167
+ }),
1168
+ x[5] || (x[5] = w("div", null, Q("新增"), -1))
1169
+ ])
1170
+ ]),
1171
+ w("div", Un, [
1172
+ (V(!0), Z(ie, null, pe(m.value, (D, H) => (V(), Z("div", { key: H }, [
1173
+ w("div", Pn, [
1174
+ w("div", Rn, Q(D == null ? void 0 : D.label), 1),
1175
+ w("div", Jn, [
1176
+ G(O, {
1177
+ name: "ChildFix",
1178
+ style: { width: "24px", height: "24px" },
1179
+ class: "svg-icon-content",
1180
+ onClick: (M) => y(D)
1181
+ }, null, 8, ["onClick"]),
1182
+ G(O, {
1183
+ name: "ChildDelete",
1184
+ class: "svg-icon-content",
1185
+ style: { width: "24px", height: "24px" },
1186
+ onClick: (M) => P(D)
1187
+ }, null, 8, ["onClick"])
1188
+ ])
1189
+ ])
1190
+ ]))), 128))
1191
+ ]),
1192
+ x[8] || (x[8] = w("div", { class: "operate-title" }, [
1193
+ w("div", null, Q("分页"))
1194
+ ], -1)),
1195
+ w("div", Vn, [
1196
+ w("div", Wn, [
1197
+ x[7] || (x[7] = w("div", { class: "operate-center-content" }, Q("是否分页"), -1)),
1198
+ G(dl, {
1199
+ modelValue: h.value,
1200
+ "onUpdate:modelValue": x[0] || (x[0] = (D) => h.value = D)
1201
+ }, null, 8, ["modelValue"])
1202
+ ])
1203
+ ])
1204
+ ]),
1205
+ G(ge, {
1206
+ visible: o.value,
1207
+ onBeforeDestroy: ce,
1208
+ width: 840
1209
+ }, {
1210
+ default: X(() => [
1211
+ w("div", zn, [
1212
+ (V(), ue(he, {
1213
+ rowContents: g.value,
1214
+ key: g.value,
1215
+ isEnableWrap: !0,
1216
+ onChange: oe
1217
+ }, null, 8, ["rowContents"]))
1218
+ ])
1219
+ ]),
1220
+ footer: X(() => [
1221
+ w("div", { class: "dialog-footer" }, [
1222
+ w("div", {
1223
+ onClick: ce,
1224
+ class: "cancel-button button"
1225
+ }, Q("取消")),
1226
+ w("div", {
1227
+ class: "ok-button button",
1228
+ onClick: de
1229
+ }, Q("确认"))
1230
+ ])
1231
+ ]),
1232
+ _: 1
1233
+ }, 8, ["visible"]),
1234
+ G(ge, {
1235
+ visible: p.value,
1236
+ onBeforeDestroy: E,
1237
+ width: 840
1238
+ }, {
1239
+ default: X(() => [
1240
+ w("div", Gn, [
1241
+ (V(), ue(he, {
1242
+ rowContents: N.value,
1243
+ key: N.value,
1244
+ isEnableWrap: !0,
1245
+ onChange: $
1246
+ }, null, 8, ["rowContents"]))
1247
+ ])
1248
+ ]),
1249
+ footer: X(() => [
1250
+ w("div", { class: "dialog-footer" }, [
1251
+ w("div", {
1252
+ onClick: E,
1253
+ class: "cancel-button button"
1254
+ }, Q("取消")),
1255
+ w("div", {
1256
+ class: "ok-button button",
1257
+ onClick: S
1258
+ }, Q("确认"))
1259
+ ])
1260
+ ]),
1261
+ _: 1
1262
+ }, 8, ["visible"]),
1263
+ G(ge, {
1264
+ visible: v.value,
1265
+ onBeforeDestroy: I,
1266
+ width: 840
1267
+ }, {
1268
+ default: X(() => [
1269
+ w("div", Mn, [
1270
+ (V(), ue(he, {
1271
+ rowContents: k.value,
1272
+ key: k.value,
1273
+ isEnableWrap: !0,
1274
+ onChange: R
1275
+ }, null, 8, ["rowContents"]))
1276
+ ])
1277
+ ]),
1278
+ footer: X(() => [
1279
+ w("div", { class: "dialog-footer" }, [
1280
+ w("div", {
1281
+ onClick: I,
1282
+ class: "cancel-button button"
1283
+ }, Q("取消")),
1284
+ w("div", {
1285
+ class: "ok-button button",
1286
+ onClick: J
1287
+ }, Q("确认"))
1288
+ ])
1289
+ ]),
1290
+ _: 1
1291
+ }, 8, ["visible"])
1292
+ ]);
1293
+ };
1294
+ }
1295
+ }, Hn = /* @__PURE__ */ fe(Zn, [["__scopeId", "data-v-0ce6666d"]]), Kn = { class: "form-operate-content" }, qn = { class: "form-operate-item" }, Qn = { class: "operate-title" }, Xn = { class: "operate-content" }, Yn = { class: "fix-content" }, ea = { class: "fix-button" }, la = { class: "operate-title" }, na = { class: "operate-content" }, aa = { class: "fix-content" }, sa = { class: "fix-button" }, oa = { style: { display: "flex", "justify-content": "space-between" } }, ta = { class: "form-content" }, ra = { class: "form-content" }, ia = {
1296
+ __name: "operate",
1297
+ props: {
1298
+ itemContents: {
1299
+ type: Array,
1300
+ default: () => []
1301
+ },
1302
+ originalItemContents: {
1303
+ type: Array,
1304
+ default: () => []
1305
+ }
1306
+ },
1307
+ emits: ["change"],
1308
+ setup(n, { emit: s }) {
1309
+ const l = n, e = s, a = U(!1), o = U([]), r = U([]), p = U(!1), g = U([]), h = U([]), f = U(""), _ = U(!1), C = U(0), T = U([]), m = U([]), N = (I) => {
1310
+ var B, b;
1311
+ a.value = !0;
1312
+ let F = [];
1313
+ (b = (B = be == null ? void 0 : be.find((L) => (L == null ? void 0 : L.key) === ((I == null ? void 0 : I.type) === "" ? "Input" : I == null ? void 0 : I.type))) == null ? void 0 : B.value) == null || b.forEach((L) => {
1314
+ C.value++, F.push({
1315
+ label: L == null ? void 0 : L.label,
1316
+ name: L == null ? void 0 : L.label,
1317
+ type: L.type,
1318
+ value: (L == null ? void 0 : L.label) === "类型" && I[L.key] === "" ? "Input" : I[L.key],
1319
+ id: C.value,
1320
+ contents: L == null ? void 0 : L.options
1321
+ });
1322
+ }), f.value = I == null ? void 0 : I.id, o.value = F, r.value = F;
1323
+ }, d = (I) => {
1324
+ p.value = !0;
1325
+ let F = [];
1326
+ Ce == null || Ce.forEach((B) => {
1327
+ C.value++, F.push({
1328
+ label: B == null ? void 0 : B.label,
1329
+ name: B == null ? void 0 : B.label,
1330
+ type: B.type,
1331
+ value: (B == null ? void 0 : B.label) === "类型" && I[B.key] === "" ? "normal" : I[B.key],
1332
+ id: C.value,
1333
+ contents: B == null ? void 0 : B.options
1334
+ });
1335
+ }), T.value = F, m.value = F, f.value = I == null ? void 0 : I.id;
1336
+ };
1337
+ ye(
1338
+ () => _.value,
1339
+ () => {
1340
+ var F, B;
1341
+ let I = c(l.originalItemContents);
1342
+ (F = c(l.originalItemContents)) != null && F.find((b) => (b == null ? void 0 : b.key) === "enableWrap") ? I = (B = c(l.originalItemContents)) == null ? void 0 : B.map((b) => ((b == null ? void 0 : b.key) === "enableWrap" && (b.contents = !_.value), b)) : I.push({
1343
+ key: "enableWrap",
1344
+ contents: !_.value
1345
+ }), e("change", I);
1346
+ },
1347
+ { deep: !0 }
1348
+ );
1349
+ const v = () => {
1350
+ var B, b, L, $, S;
1351
+ T.value = m.value;
1352
+ let I = {};
1353
+ if (f.value !== "" ? I.id = f.value : (C.value++, I.id = "id" + C.value), (B = T.value) == null || B.forEach((E) => {
1354
+ const K = Ce == null ? void 0 : Ce.find((W) => (W == null ? void 0 : W.label) === (E == null ? void 0 : E.label));
1355
+ K && (I[K.key] = E.value);
1356
+ }), (b = g.value) != null && b.find((E) => E.id === I.id))
1357
+ g.value = (L = g.value) == null ? void 0 : L.map((E) => (E.id === I.id && (E = I), E));
1358
+ else {
1359
+ let E = c(g.value);
1360
+ g.value || (g.value = []), E.push(I), g.value = E;
1361
+ }
1362
+ p.value = !1, f.value = "";
1363
+ let F = c(l.originalItemContents);
1364
+ ($ = c(l.originalItemContents)) != null && $.find((E) => (E == null ? void 0 : E.key) === "formButton") ? F = (S = c(l.originalItemContents)) == null ? void 0 : S.map((E) => ((E == null ? void 0 : E.key) === "formButton" && (E.contents = g.value), E)) : F.push({
1365
+ key: "formButton",
1366
+ contents: g.value
1367
+ }), e("change", F);
1368
+ }, k = (I) => {
1369
+ Ae.confirm("是否确认要删除", "", {
1370
+ confirmButtonText: "确认",
1371
+ cancelButtonText: "取消",
1372
+ type: "warning"
1373
+ }).then(
1374
+ () => {
1375
+ var F, B;
1376
+ h.value = (F = c(h.value)) == null ? void 0 : F.filter((b) => (b == null ? void 0 : b.id) !== (I == null ? void 0 : I.id)), e("change", (B = c(l.originalItemContents)) == null ? void 0 : B.map((b) => ((b == null ? void 0 : b.key) === "formContent" && (b.contents = h.value), b))), $e({
1377
+ type: "success",
1378
+ message: "删除成功"
1379
+ });
1380
+ }
1381
+ ).catch(() => {
1382
+ });
1383
+ }, t = (I) => {
1384
+ Ae.confirm("是否确认要删除", "", {
1385
+ confirmButtonText: "确认",
1386
+ cancelButtonText: "取消",
1387
+ type: "warning"
1388
+ }).then(
1389
+ () => {
1390
+ var F, B;
1391
+ g.value = (F = c(g.value)) == null ? void 0 : F.filter((b) => (b == null ? void 0 : b.id) !== (I == null ? void 0 : I.id)), e("change", (B = c(l.originalItemContents)) == null ? void 0 : B.map((b) => ((b == null ? void 0 : b.key) === "formButton" && (b.contents = g.value), b))), $e({
1392
+ type: "success",
1393
+ message: "删除成功"
1394
+ });
1395
+ }
1396
+ ).catch(() => {
1397
+ });
1398
+ }, i = () => {
1399
+ p.value = !0;
1400
+ let I = [];
1401
+ Ce == null || Ce.forEach((F) => {
1402
+ C.value++, I.push({
1403
+ label: F == null ? void 0 : F.label,
1404
+ name: F == null ? void 0 : F.label,
1405
+ type: F.type,
1406
+ value: (F == null ? void 0 : F.label) === "类型" ? "normal" : "",
1407
+ id: C.value,
1408
+ contents: F == null ? void 0 : F.options
1409
+ });
1410
+ }), T.value = I, m.value = I;
1411
+ }, u = () => {
1412
+ var F, B;
1413
+ a.value = !0;
1414
+ let I = [];
1415
+ (B = (F = be == null ? void 0 : be.find((b) => (b == null ? void 0 : b.key) === "Input")) == null ? void 0 : F.value) == null || B.forEach((b) => {
1416
+ C.value++, I.push({
1417
+ label: b == null ? void 0 : b.label,
1418
+ name: b == null ? void 0 : b.label,
1419
+ type: b.type,
1420
+ value: (b == null ? void 0 : b.label) === "类型" ? "Input" : "",
1421
+ id: C.value,
1422
+ contents: b == null ? void 0 : b.options
1423
+ });
1424
+ }), o.value = I, r.value = I;
1425
+ }, y = (I) => {
1426
+ let F = c(m.value);
1427
+ F = F == null ? void 0 : F.map((B) => (B.value = I == null ? void 0 : I[B.name], B)), m.value = F;
1428
+ }, P = (I) => {
1429
+ var F, B, b, L;
1430
+ if ((I == null ? void 0 : I.类型) !== ((B = (F = r.value) == null ? void 0 : F.find(($) => ($ == null ? void 0 : $.label) === "类型")) == null ? void 0 : B.value)) {
1431
+ let $ = [];
1432
+ (L = (b = be == null ? void 0 : be.find((S) => (S == null ? void 0 : S.key) === ((I == null ? void 0 : I.类型) === "" ? "Input" : I == null ? void 0 : I.类型))) == null ? void 0 : b.value) == null || L.forEach((S) => {
1433
+ C.value++, $.push({
1434
+ label: S == null ? void 0 : S.label,
1435
+ name: S == null ? void 0 : S.label,
1436
+ type: S.type,
1437
+ value: (I == null ? void 0 : I[S.label]) ?? "",
1438
+ id: C.value,
1439
+ contents: S == null ? void 0 : S.options
1440
+ });
1441
+ }), r.value = $, o.value = $;
1442
+ } else {
1443
+ let $ = c(r.value);
1444
+ $ = $ == null ? void 0 : $.map((S) => (S.value = I == null ? void 0 : I[S.name], S)), r.value = $;
1445
+ }
1446
+ }, J = () => {
1447
+ var b, L, $, S, E, K;
1448
+ o.value = r.value;
1449
+ let I = {};
1450
+ f.value !== "" ? I.id = f.value : (C.value++, I.id = "id" + C.value);
1451
+ let F = (b = be == null ? void 0 : be.find((W) => {
1452
+ var ee, ne;
1453
+ return (W == null ? void 0 : W.key) === (((ne = (ee = o.value) == null ? void 0 : ee.find((oe) => (oe == null ? void 0 : oe.label) === "类型")) == null ? void 0 : ne.value) ?? "label");
1454
+ })) == null ? void 0 : b.value;
1455
+ if ((L = o.value) == null || L.forEach((W) => {
1456
+ const ee = F == null ? void 0 : F.find((ne) => (ne == null ? void 0 : ne.label) === (W == null ? void 0 : W.label));
1457
+ ee && (I[ee.key] = W.value);
1458
+ }), I.width = 1, ($ = h.value) != null && $.find((W) => W.id === I.id))
1459
+ h.value = (S = h.value) == null ? void 0 : S.map((W) => (W.id === I.id && (W = I), W));
1460
+ else {
1461
+ let W = c(h.value);
1462
+ W.push(I), h.value = W;
1463
+ }
1464
+ a.value = !1, f.value = "";
1465
+ let B = c(l.originalItemContents);
1466
+ (E = c(l.originalItemContents)) != null && E.find((W) => (W == null ? void 0 : W.key) === "formContent") ? B = (K = c(l.originalItemContents)) == null ? void 0 : K.map((W) => ((W == null ? void 0 : W.key) === "formContent" && (W.contents = h.value), W)) : B.push({
1467
+ key: "formContent",
1468
+ contents: h.value
1469
+ }), e("change", B);
1470
+ }, R = () => {
1471
+ a.value = !1, p.value = !1, f.value = "", r.value = [], m.value = [];
1472
+ };
1473
+ return ye(
1474
+ () => l.originalItemContents,
1475
+ () => {
1476
+ var F, B, b, L, $, S;
1477
+ if (!l.originalItemContents || l.originalItemContents.length === 0) return;
1478
+ const I = c(l.originalItemContents);
1479
+ h.value = ((F = I == null ? void 0 : I.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : F.contents) ?? [], g.value = ((B = I == null ? void 0 : I.find((E) => (E == null ? void 0 : E.key) === "formButton")) == null ? void 0 : B.contents) ?? [], _.value = (b = I == null ? void 0 : I.find((E) => (E == null ? void 0 : E.key) === "enableWrap")) != null && b.contents ? !((L = I == null ? void 0 : I.find((E) => (E == null ? void 0 : E.key) === "enableWrap")) != null && L.contents) : !0, h.value = ($ = c(h.value)) == null ? void 0 : $.map((E, K) => E = {
1480
+ label: (E == null ? void 0 : E.key) ?? (E == null ? void 0 : E.label) ?? "",
1481
+ type: (E == null ? void 0 : E.type) ?? "",
1482
+ contents: (E == null ? void 0 : E.options) ?? "",
1483
+ id: (E == null ? void 0 : E.id) ?? K,
1484
+ value: (E == null ? void 0 : E.value) ?? ""
1485
+ }), g.value = (S = g.value) == null ? void 0 : S.map((E, K) => E = {
1486
+ label: (E == null ? void 0 : E.label) ?? "",
1487
+ type: (E == null ? void 0 : E.type) ?? "",
1488
+ background: (E == null ? void 0 : E.background) ?? "var(--ssComponent-primary-color)",
1489
+ id: (E == null ? void 0 : E.id) ?? K
1490
+ });
1491
+ },
1492
+ { deep: !0, immediate: !0 }
1493
+ ), (I, F) => {
1494
+ const B = re("svg-icon");
1495
+ return V(), Z("div", Kn, [
1496
+ w("div", qn, [
1497
+ w("div", Qn, [
1498
+ F[2] || (F[2] = w("div", null, Q("表单内容"), -1)),
1499
+ w("div", {
1500
+ class: "icon-content",
1501
+ onClick: u
1502
+ }, [
1503
+ G(B, {
1504
+ name: "Plus",
1505
+ class: "icon-size"
1506
+ }),
1507
+ F[1] || (F[1] = w("div", null, Q("新增"), -1))
1508
+ ])
1509
+ ]),
1510
+ w("div", Xn, [
1511
+ (V(!0), Z(ie, null, pe(h.value, (b, L) => (V(), Z("div", { key: L }, [
1512
+ w("div", Yn, [
1513
+ w("div", null, Q(b.label), 1),
1514
+ w("div", ea, [
1515
+ G(B, {
1516
+ name: "ChildFix",
1517
+ class: "svg-icon-content",
1518
+ style: { width: "24px", height: "24px" },
1519
+ onClick: ($) => N(b)
1520
+ }, null, 8, ["onClick"]),
1521
+ G(B, {
1522
+ name: "ChildDelete",
1523
+ class: "svg-icon-content",
1524
+ style: { width: "24px", height: "24px" },
1525
+ onClick: ($) => k(b)
1526
+ }, null, 8, ["onClick"])
1527
+ ])
1528
+ ])
1529
+ ]))), 128))
1530
+ ]),
1531
+ w("div", la, [
1532
+ F[4] || (F[4] = w("div", null, Q("表单按钮"), -1)),
1533
+ w("div", {
1534
+ class: "icon-content",
1535
+ onClick: i
1536
+ }, [
1537
+ G(B, {
1538
+ name: "Plus",
1539
+ class: "icon-size"
1540
+ }),
1541
+ F[3] || (F[3] = w("div", null, Q("新增"), -1))
1542
+ ])
1543
+ ]),
1544
+ w("div", na, [
1545
+ (V(!0), Z(ie, null, pe(g.value, (b, L) => (V(), Z("div", { key: L }, [
1546
+ w("div", aa, [
1547
+ w("div", null, Q(b.label), 1),
1548
+ w("div", sa, [
1549
+ G(B, {
1550
+ name: "ChildFix",
1551
+ class: "svg-icon-content",
1552
+ style: { width: "24px", height: "24px" },
1553
+ onClick: ($) => d(b)
1554
+ }, null, 8, ["onClick"]),
1555
+ G(B, {
1556
+ name: "ChildDelete",
1557
+ class: "svg-icon-content",
1558
+ style: { width: "24px", height: "24px" },
1559
+ onClick: ($) => t(b)
1560
+ }, null, 8, ["onClick"])
1561
+ ])
1562
+ ])
1563
+ ]))), 128))
1564
+ ]),
1565
+ F[6] || (F[6] = w("div", { class: "operate-title" }, [
1566
+ w("div", null, Q("表单布局"))
1567
+ ], -1)),
1568
+ w("div", oa, [
1569
+ F[5] || (F[5] = w("div", { class: "operate-center-content" }, Q("是否自动撑宽"), -1)),
1570
+ G(dl, {
1571
+ modelValue: _.value,
1572
+ "onUpdate:modelValue": F[0] || (F[0] = (b) => _.value = b)
1573
+ }, null, 8, ["modelValue"])
1574
+ ])
1575
+ ]),
1576
+ G(ge, {
1577
+ visible: a.value,
1578
+ onBeforeDestroy: R,
1579
+ width: 840
1580
+ }, {
1581
+ default: X(() => [
1582
+ w("div", ta, [
1583
+ (V(), ue(he, {
1584
+ rowContents: o.value,
1585
+ key: o.value,
1586
+ isEnableWrap: !0,
1587
+ onChange: P
1588
+ }, null, 8, ["rowContents"]))
1589
+ ])
1590
+ ]),
1591
+ footer: X(() => [
1592
+ w("div", { class: "dialog-footer" }, [
1593
+ w("div", {
1594
+ onClick: R,
1595
+ class: "cancel-button button"
1596
+ }, Q("取消")),
1597
+ w("div", {
1598
+ class: "ok-button button",
1599
+ onClick: J
1600
+ }, Q("确认"))
1601
+ ])
1602
+ ]),
1603
+ _: 1
1604
+ }, 8, ["visible"]),
1605
+ G(ge, {
1606
+ visible: p.value,
1607
+ onBeforeDestroy: R,
1608
+ width: 840
1609
+ }, {
1610
+ default: X(() => [
1611
+ w("div", ra, [
1612
+ (V(), ue(he, {
1613
+ rowContents: T.value,
1614
+ key: T.value,
1615
+ isEnableWrap: !0,
1616
+ onChange: y
1617
+ }, null, 8, ["rowContents"]))
1618
+ ])
1619
+ ]),
1620
+ footer: X(() => [
1621
+ w("div", { class: "dialog-footer" }, [
1622
+ w("div", {
1623
+ onClick: R,
1624
+ class: "cancel-button button"
1625
+ }, Q("取消")),
1626
+ w("div", {
1627
+ class: "ok-button button",
1628
+ onClick: v
1629
+ }, Q("确认"))
1630
+ ])
1631
+ ]),
1632
+ _: 1
1633
+ }, 8, ["visible"])
1634
+ ]);
1635
+ };
1636
+ }
1637
+ }, sl = /* @__PURE__ */ fe(ia, [["__scopeId", "data-v-7904b0dd"]]), ua = { class: "step-module content" }, ca = { class: "module-data" }, pa = { class: "step-module layout" }, da = { class: "form-content" }, fa = /* @__PURE__ */ we({
1638
+ __name: "operate",
1639
+ props: {
1640
+ itemContents: {
1641
+ type: Array,
1642
+ default: () => []
1643
+ },
1644
+ originalItemContents: {
1645
+ type: Array,
1646
+ default: () => []
1647
+ }
1648
+ },
1649
+ emits: ["change"],
1650
+ setup(n, { emit: s }) {
1651
+ const l = n, e = s, a = U([
1652
+ {
1653
+ label: "方向:",
1654
+ prop: "direction",
1655
+ type: "RADIO",
1656
+ contents: [
1657
+ {
1658
+ label: "水平",
1659
+ value: "horizontal"
1660
+ },
1661
+ {
1662
+ label: "垂直",
1663
+ value: "vertical"
1664
+ }
1665
+ ],
1666
+ value: "horizontal"
1667
+ },
1668
+ {
1669
+ label: "是否居中:",
1670
+ prop: "alignCenter",
1671
+ type: "RADIO",
1672
+ contents: [
1673
+ {
1674
+ label: "是",
1675
+ value: !0
1676
+ },
1677
+ {
1678
+ label: "否",
1679
+ value: !1
1680
+ }
1681
+ ],
1682
+ value: !0
1683
+ },
1684
+ // {
1685
+ // label: '是否交互',
1686
+ // prop: 'allowTrigger',
1687
+ // type: 'RADIO',
1688
+ // contents: [
1689
+ // {
1690
+ // label: '是',
1691
+ // value: true,
1692
+ // }, {
1693
+ // label: '否',
1694
+ // value: false,
1695
+ // },
1696
+ // ],
1697
+ // value: 'horizontal'
1698
+ // },
1699
+ {
1700
+ label: "应用简洁风格",
1701
+ prop: "simple",
1702
+ type: "RADIO",
1703
+ contents: [
1704
+ {
1705
+ label: "是",
1706
+ value: !0
1707
+ },
1708
+ {
1709
+ label: "否",
1710
+ value: !1
1711
+ }
1712
+ ],
1713
+ value: !1
1714
+ }
1715
+ ]), o = U([
1716
+ {
1717
+ label: "",
1718
+ prop: "index",
1719
+ type: "input",
1720
+ value: "",
1721
+ isFormColHidden: !0
1722
+ },
1723
+ {
1724
+ label: "标题",
1725
+ prop: "title",
1726
+ type: "input",
1727
+ value: ""
1728
+ },
1729
+ {
1730
+ label: "描述",
1731
+ prop: "description",
1732
+ type: "input",
1733
+ value: ""
1734
+ }
1735
+ ]), r = U([
1736
+ {
1737
+ label: "取消",
1738
+ background: "#c0c4cc"
1739
+ },
1740
+ {
1741
+ label: "确认",
1742
+ background: "#436aaf"
1743
+ }
1744
+ ]), p = He({
1745
+ visible: !1,
1746
+ width: "40%",
1747
+ title: "步骤条"
1748
+ }), g = U("create"), h = U({}), f = U([]), _ = (d) => {
1749
+ var v;
1750
+ h.value = d, e("change", (v = m()) == null ? void 0 : v.compData);
1751
+ }, C = (d, v) => {
1752
+ var k, t;
1753
+ switch (d) {
1754
+ case "create":
1755
+ (k = o.value) == null || k.forEach((i) => {
1756
+ i.value = "";
1757
+ }), g.value = "create", p.visible = !0;
1758
+ break;
1759
+ case "update":
1760
+ (t = o.value) == null || t.forEach((i) => {
1761
+ i.value = v[i == null ? void 0 : i.prop];
1762
+ }), g.value = "update", p.visible = !0;
1763
+ break;
1764
+ case "delete":
1765
+ f.value.splice(v, 1), g.value = "delete";
1766
+ break;
1767
+ }
1768
+ }, T = (d) => {
1769
+ var v, k, t;
1770
+ if ((d == null ? void 0 : d.buttonName) === "确认") {
1771
+ const i = c(d == null ? void 0 : d.content);
1772
+ switch (Object.keys(i).forEach((u) => {
1773
+ i[u] === "" && delete i[u];
1774
+ }), g.value) {
1775
+ case "create":
1776
+ f.value.push({
1777
+ ...i,
1778
+ index: ((v = f.value) == null ? void 0 : v.length) + 1
1779
+ });
1780
+ break;
1781
+ case "update":
1782
+ f.value = (k = f.value) == null ? void 0 : k.map((u) => u.index === (i == null ? void 0 : i.index) ? {
1783
+ ...u,
1784
+ title: i == null ? void 0 : i.title,
1785
+ description: i == null ? void 0 : i.description
1786
+ } : u);
1787
+ break;
1788
+ }
1789
+ e("change", (t = m()) == null ? void 0 : t.compData), p.visible = !1;
1790
+ } else
1791
+ p.visible = !1;
1792
+ }, m = () => ({
1793
+ comp: "Step",
1794
+ compData: [
1795
+ {
1796
+ key: "stepList",
1797
+ contents: f.value
1798
+ },
1799
+ {
1800
+ key: "stepConfig",
1801
+ contents: h.value
1802
+ }
1803
+ ]
1804
+ }), N = () => {
1805
+ p.visible = !1;
1806
+ };
1807
+ return ye(() => l == null ? void 0 : l.itemContents, (d) => {
1808
+ var v, k;
1809
+ d && (h.value = ((v = d == null ? void 0 : d.find((t) => t.key === "stepConfig")) == null ? void 0 : v.contents) ?? {}, f.value = ((k = d == null ? void 0 : d.find((t) => t.key === "stepList")) == null ? void 0 : k.contents) ?? []);
1810
+ }, { immediate: !0 }), (d, v) => {
1811
+ const k = re("svg-icon"), t = re("el-button");
1812
+ return V(), Z(ie, null, [
1813
+ w("div", null, [
1814
+ w("div", ua, [
1815
+ v[2] || (v[2] = w("h4", { class: "module-title" }, "内容", -1)),
1816
+ w("div", {
1817
+ class: "module-icon",
1818
+ onClick: v[0] || (v[0] = (i) => C("create"))
1819
+ }, [
1820
+ G(k, {
1821
+ name: "Plus",
1822
+ class: "icon-size"
1823
+ }),
1824
+ v[1] || (v[1] = w("div", null, "新增", -1))
1825
+ ])
1826
+ ]),
1827
+ w("div", ca, [
1828
+ (V(!0), Z(ie, null, pe(f.value, (i, u) => (V(), Z("div", {
1829
+ class: "module-data-item",
1830
+ key: u
1831
+ }, [
1832
+ w("span", null, Q(i == null ? void 0 : i.title), 1),
1833
+ w("div", null, [
1834
+ G(t, {
1835
+ type: "primary",
1836
+ size: "small",
1837
+ onClick: (y) => C("update", { ...i, index: u + 1 })
1838
+ }, {
1839
+ default: X(() => v[3] || (v[3] = [
1840
+ ve("修改")
1841
+ ])),
1842
+ _: 2,
1843
+ __: [3]
1844
+ }, 1032, ["onClick"]),
1845
+ G(t, {
1846
+ type: "danger",
1847
+ size: "small",
1848
+ onClick: (y) => C("delete", u)
1849
+ }, {
1850
+ default: X(() => v[4] || (v[4] = [
1851
+ ve("删除")
1852
+ ])),
1853
+ _: 2,
1854
+ __: [4]
1855
+ }, 1032, ["onClick"])
1856
+ ])
1857
+ ]))), 128))
1858
+ ]),
1859
+ w("div", pa, [
1860
+ v[5] || (v[5] = w("div", { class: "module-title" }, "布局", -1)),
1861
+ G(he, {
1862
+ rowContents: a.value,
1863
+ onChange: _
1864
+ }, null, 8, ["rowContents"])
1865
+ ])
1866
+ ]),
1867
+ G(ge, {
1868
+ visible: p.visible,
1869
+ title: p.title,
1870
+ onBeforeDestroy: N,
1871
+ width: p.width
1872
+ }, {
1873
+ default: X(() => [
1874
+ w("div", da, [
1875
+ (V(), ue(he, {
1876
+ rowContents: o.value,
1877
+ key: o.value,
1878
+ isEnableWrap: !1,
1879
+ isButtonRow: !1,
1880
+ isStartJustify: !1,
1881
+ buttonValue: r.value,
1882
+ onOnButtonClick: T
1883
+ }, null, 8, ["rowContents", "buttonValue"]))
1884
+ ])
1885
+ ]),
1886
+ _: 1
1887
+ }, 8, ["visible", "title", "width"])
1888
+ ], 64);
1889
+ };
1890
+ }
1891
+ }), ha = /* @__PURE__ */ fe(fa, [["__scopeId", "data-v-47438605"]]), ya = { class: "step-module content" }, ma = { class: "module-data" }, va = { class: "step-module layout" }, ba = { class: "form-content" }, ga = /* @__PURE__ */ we({
1892
+ __name: "operate",
1893
+ props: {
1894
+ itemContents: {
1895
+ type: Array,
1896
+ default: () => []
1897
+ },
1898
+ originalItemContents: {
1899
+ type: Array,
1900
+ default: () => []
1901
+ }
1902
+ },
1903
+ emits: ["change"],
1904
+ setup(n, { emit: s }) {
1905
+ const l = n, e = s, a = U("create"), o = U({}), r = U([]), p = U([
1906
+ {
1907
+ label: "方向:",
1908
+ prop: "placement",
1909
+ type: "radio",
1910
+ contents: [
1911
+ {
1912
+ label: "底部",
1913
+ value: "bottom"
1914
+ },
1915
+ {
1916
+ label: "顶部",
1917
+ value: "top"
1918
+ }
1919
+ ],
1920
+ value: "bottom"
1921
+ },
1922
+ {
1923
+ label: "节点类型:",
1924
+ prop: "type",
1925
+ type: "select",
1926
+ contents: [
1927
+ {
1928
+ label: "primary",
1929
+ value: "primary"
1930
+ },
1931
+ {
1932
+ label: "success",
1933
+ value: "success"
1934
+ },
1935
+ {
1936
+ label: "warning",
1937
+ value: "warning"
1938
+ },
1939
+ {
1940
+ label: "danger",
1941
+ value: "danger"
1942
+ },
1943
+ {
1944
+ label: "info",
1945
+ value: "info"
1946
+ }
1947
+ ],
1948
+ value: "primary"
1949
+ },
1950
+ {
1951
+ label: "颜色:",
1952
+ prop: "color",
1953
+ type: "color",
1954
+ value: ""
1955
+ },
1956
+ {
1957
+ label: "尺寸:",
1958
+ prop: "size",
1959
+ type: "radio",
1960
+ contents: [
1961
+ {
1962
+ label: "normal",
1963
+ value: "normal"
1964
+ },
1965
+ {
1966
+ label: "large",
1967
+ value: "large"
1968
+ }
1969
+ ],
1970
+ value: "normal"
1971
+ },
1972
+ {
1973
+ label: "是否空心",
1974
+ prop: "isHollow",
1975
+ type: "RADIO",
1976
+ contents: [
1977
+ {
1978
+ label: "是",
1979
+ value: !0
1980
+ },
1981
+ {
1982
+ label: "否",
1983
+ value: !1
1984
+ }
1985
+ ],
1986
+ value: !0
1987
+ },
1988
+ {
1989
+ label: "是否居中",
1990
+ prop: "isCenter",
1991
+ type: "RADIO",
1992
+ contents: [
1993
+ {
1994
+ label: "是",
1995
+ value: !0
1996
+ },
1997
+ {
1998
+ label: "否",
1999
+ value: !1
2000
+ }
2001
+ ],
2002
+ value: !0
2003
+ }
2004
+ ]), g = U([
2005
+ {
2006
+ label: "",
2007
+ prop: "index",
2008
+ type: "input",
2009
+ value: "",
2010
+ isFormColHidden: !0
2011
+ },
2012
+ {
2013
+ label: "内容",
2014
+ prop: "content",
2015
+ type: "input",
2016
+ value: ""
2017
+ },
2018
+ {
2019
+ label: "时间戳",
2020
+ prop: "timestamp",
2021
+ type: "datetime",
2022
+ value: ""
2023
+ }
2024
+ ]), h = U([
2025
+ {
2026
+ label: "取消",
2027
+ background: "#c0c4cc"
2028
+ },
2029
+ {
2030
+ label: "确认",
2031
+ background: "#436aaf"
2032
+ }
2033
+ ]), f = He({
2034
+ visible: !1,
2035
+ width: "40%",
2036
+ title: "时间线"
2037
+ }), _ = (d) => {
2038
+ var v;
2039
+ o.value = d, console.log(1212, d), e("change", (v = m()) == null ? void 0 : v.compData);
2040
+ }, C = (d, v) => {
2041
+ var k, t;
2042
+ switch (d) {
2043
+ case "create":
2044
+ (k = g.value) == null || k.forEach((i) => {
2045
+ i.value = "";
2046
+ }), a.value = "create", f.visible = !0;
2047
+ break;
2048
+ case "update":
2049
+ (t = g.value) == null || t.forEach((i) => {
2050
+ i.value = v[i == null ? void 0 : i.prop];
2051
+ }), a.value = "update", f.visible = !0;
2052
+ break;
2053
+ case "delete":
2054
+ r.value.splice(v, 1), a.value = "delete";
2055
+ break;
2056
+ }
2057
+ }, T = (d) => {
2058
+ var v, k, t, i;
2059
+ if ((d == null ? void 0 : d.buttonName) === "确认") {
2060
+ const u = c(d == null ? void 0 : d.content);
2061
+ switch (Object.keys(u).forEach((y) => {
2062
+ u[y] === "" && delete u[y];
2063
+ }), a.value) {
2064
+ case "create":
2065
+ console.log(1335, r.value, u), (k = r.value) == null || k.push({
2066
+ ...u,
2067
+ index: ((v = r.value) == null ? void 0 : v.length) + 1
2068
+ });
2069
+ break;
2070
+ case "update":
2071
+ r.value = (t = r.value) == null ? void 0 : t.map((y) => y.index === (u == null ? void 0 : u.index) ? {
2072
+ ...y,
2073
+ content: u == null ? void 0 : u.content,
2074
+ timestamp: u == null ? void 0 : u.timestamp
2075
+ } : y);
2076
+ break;
2077
+ }
2078
+ e("change", (i = m()) == null ? void 0 : i.compData), f.visible = !1;
2079
+ } else
2080
+ f.visible = !1;
2081
+ }, m = () => ({
2082
+ comp: "TimeLine",
2083
+ compData: [
2084
+ {
2085
+ key: "timeLineList",
2086
+ contents: r.value
2087
+ },
2088
+ {
2089
+ key: "timeLineConfig",
2090
+ contents: o.value
2091
+ }
2092
+ ]
2093
+ }), N = () => {
2094
+ f.visible = !1;
2095
+ };
2096
+ return ye(() => l == null ? void 0 : l.itemContents, (d) => {
2097
+ var v, k;
2098
+ d && (o.value = ((v = d == null ? void 0 : d.find((t) => t.key === "timeLineConfig")) == null ? void 0 : v.contents) ?? {}, r.value = ((k = d == null ? void 0 : d.find((t) => t.key === "timeLineList")) == null ? void 0 : k.contents) ?? []);
2099
+ }, { immediate: !0 }), (d, v) => {
2100
+ const k = re("svg-icon"), t = re("el-button");
2101
+ return V(), Z(ie, null, [
2102
+ w("div", null, [
2103
+ w("div", ya, [
2104
+ v[2] || (v[2] = w("h4", { class: "module-title" }, "内容", -1)),
2105
+ w("div", {
2106
+ class: "module-icon",
2107
+ onClick: v[0] || (v[0] = (i) => C("create"))
2108
+ }, [
2109
+ G(k, {
2110
+ name: "Plus",
2111
+ class: "icon-size"
2112
+ }),
2113
+ v[1] || (v[1] = w("div", null, "新增", -1))
2114
+ ])
2115
+ ]),
2116
+ w("div", ma, [
2117
+ (V(!0), Z(ie, null, pe(r.value, (i, u) => (V(), Z("div", {
2118
+ class: "module-data-item",
2119
+ key: u
2120
+ }, [
2121
+ w("span", null, Q(i == null ? void 0 : i.content), 1),
2122
+ w("div", null, [
2123
+ G(t, {
2124
+ type: "primary",
2125
+ size: "small",
2126
+ onClick: (y) => C("update", { ...i, index: u + 1 })
2127
+ }, {
2128
+ default: X(() => v[3] || (v[3] = [
2129
+ ve("修改")
2130
+ ])),
2131
+ _: 2,
2132
+ __: [3]
2133
+ }, 1032, ["onClick"]),
2134
+ G(t, {
2135
+ type: "danger",
2136
+ size: "small",
2137
+ onClick: (y) => C("delete", u)
2138
+ }, {
2139
+ default: X(() => v[4] || (v[4] = [
2140
+ ve("删除")
2141
+ ])),
2142
+ _: 2,
2143
+ __: [4]
2144
+ }, 1032, ["onClick"])
2145
+ ])
2146
+ ]))), 128))
2147
+ ]),
2148
+ w("div", va, [
2149
+ v[5] || (v[5] = w("div", { class: "module-title" }, "布局", -1)),
2150
+ G(he, {
2151
+ rowContents: p.value,
2152
+ onChange: _
2153
+ }, null, 8, ["rowContents"])
2154
+ ])
2155
+ ]),
2156
+ G(ge, {
2157
+ visible: f.visible,
2158
+ title: f.title,
2159
+ onBeforeDestroy: N,
2160
+ width: f.width
2161
+ }, {
2162
+ default: X(() => [
2163
+ w("div", ba, [
2164
+ (V(), ue(he, {
2165
+ rowContents: g.value,
2166
+ key: g.value,
2167
+ isEnableWrap: !1,
2168
+ isButtonRow: !1,
2169
+ isStartJustify: !1,
2170
+ buttonValue: h.value,
2171
+ onOnButtonClick: T
2172
+ }, null, 8, ["rowContents", "buttonValue"]))
2173
+ ])
2174
+ ]),
2175
+ _: 1
2176
+ }, 8, ["visible", "title", "width"])
2177
+ ], 64);
2178
+ };
2179
+ }
2180
+ }), ka = /* @__PURE__ */ fe(ga, [["__scopeId", "data-v-40aea043"]]), Ca = {};
2181
+ function _a(n, s) {
2182
+ return V(), Z("div");
2183
+ }
2184
+ const xa = /* @__PURE__ */ fe(Ca, [["render", _a]]), $a = { class: "extra-content" }, Aa = { key: 0 }, wa = { key: 1 }, Ia = {
2185
+ __name: "index",
2186
+ props: {
2187
+ itemData: {
2188
+ type: Array,
2189
+ default: () => []
2190
+ },
2191
+ childItemData: {
2192
+ type: Array,
2193
+ default: () => []
2194
+ },
2195
+ index: Number,
2196
+ changedContent: {
2197
+ type: Object,
2198
+ default: () => {
2199
+ }
2200
+ }
2201
+ },
2202
+ emits: ["change"],
2203
+ setup(n, { emit: s }) {
2204
+ const l = n, e = U(0), a = U(), o = U(), r = s, p = U(!1), g = U({}), h = U({}), f = U();
2205
+ ye(
2206
+ () => [l.itemData],
2207
+ () => {
2208
+ var i;
2209
+ const t = c(l.itemData);
2210
+ a.value = (i = c(t)) == null ? void 0 : i.map((u) => {
2211
+ var y;
2212
+ if (u.key === "extra") {
2213
+ let P = [];
2214
+ (y = u.value) == null || y.forEach((J) => {
2215
+ var R;
2216
+ P.push((R = Object.values(J)) == null ? void 0 : R[0]);
2217
+ }), u.value = P;
2218
+ }
2219
+ return u;
2220
+ });
2221
+ },
2222
+ { deep: !0, immediate: !0 }
2223
+ );
2224
+ const _ = (t, i, u, y) => {
2225
+ var J;
2226
+ let P = {};
2227
+ ((J = t == null ? void 0 : t[0]) == null ? void 0 : J.contents) === "详情" && (p.value = !0, P[i] = t, o.value = t == null ? void 0 : t.filter((R) => (R == null ? void 0 : R.key) !== "tableContentName"), g.value = P, h.value = u, f.value = y.id);
2228
+ }, C = (t) => {
2229
+ var R, I, F, B;
2230
+ const i = (I = (R = Object.values(c(g.value))) == null ? void 0 : R[0]) == null ? void 0 : I.filter((b) => (b == null ? void 0 : b.key) === "tableContentName"), u = (B = (F = Object.values(c(g.value))) == null ? void 0 : F[0]) == null ? void 0 : B.filter((b) => (b == null ? void 0 : b.key) !== "tableContentName"), y = u == null ? void 0 : u.map((b, L) => {
2231
+ var $;
2232
+ return L === t.index && (b == null ? void 0 : b.comp) === "Table" && (b.compData = ($ = b.compData) == null ? void 0 : $.map((S) => {
2233
+ var E, K;
2234
+ return (S == null ? void 0 : S.key) === "tableContents" && (S.contents = (K = (E = t.content) == null ? void 0 : E.map((W) => {
2235
+ let ee = {};
2236
+ for (let ne in W)
2237
+ ne !== "id" && (ee[ne] = W[ne]);
2238
+ return ee;
2239
+ })) == null ? void 0 : K.map((W) => Object.values(W))), S;
2240
+ })), b;
2241
+ });
2242
+ y.unshift(i == null ? void 0 : i[0]);
2243
+ let P = c(g.value), J = {};
2244
+ for (let b in P)
2245
+ J[b] = y;
2246
+ g.value = J;
2247
+ }, T = () => {
2248
+ p.value = !1, g.value = {}, h.value = {}, f.value = void 0, e.value++;
2249
+ }, m = (t) => {
2250
+ var R, I, F, B;
2251
+ const i = (I = (R = Object.values(c(g.value))) == null ? void 0 : R[0]) == null ? void 0 : I.filter((b) => (b == null ? void 0 : b.key) === "tableContentName"), u = (B = (F = Object.values(c(g.value))) == null ? void 0 : F[0]) == null ? void 0 : B.filter((b) => (b == null ? void 0 : b.key) !== "tableContentName"), y = u == null ? void 0 : u.map((b, L) => (L === t.index && (b.compData = t.contents), b));
2252
+ y.unshift(i == null ? void 0 : i[0]);
2253
+ let P = c(g.value), J = {};
2254
+ for (let b in P)
2255
+ J[b] = y;
2256
+ g.value = J;
2257
+ }, N = () => {
2258
+ var i, u;
2259
+ let t = {};
2260
+ for (let y in h.value)
2261
+ y === ((i = Object.keys(g.value)) == null ? void 0 : i[0]) ? t[y] = (u = Object.values(g.value)) == null ? void 0 : u[0] : t[y] = h.value[y];
2262
+ r("change", {
2263
+ buttonName: "编辑",
2264
+ index: f.value,
2265
+ singleContent: t
2266
+ }, "methodData"), p.value = !1, g.value = {}, h.value = {}, f.value = void 0;
2267
+ }, d = () => {
2268
+ p.value = !1, g.value = {}, h.value = {}, f.value = void 0;
2269
+ }, v = (t) => {
2270
+ r("change", t, "methodData");
2271
+ }, k = (t) => rs(t);
2272
+ return (t, i) => (V(), Z("div", $a, [
2273
+ (V(!0), Z(ie, null, pe(a.value, (u, y) => (V(), Z("div", { key: e.value }, [
2274
+ (u == null ? void 0 : u.key) === "extra" ? (V(), Z("div", Aa)) : (V(), Z("div", wa, [
2275
+ (V(), ue(Me(k(u.comp)), {
2276
+ itemData: u == null ? void 0 : u.compData,
2277
+ childItemData: u == null ? void 0 : u.itemChildData,
2278
+ key: y,
2279
+ index: (u == null ? void 0 : u.id) ?? y,
2280
+ onContentClick: _,
2281
+ onChange: v
2282
+ }, null, 40, ["itemData", "childItemData", "index"]))
2283
+ ]))
2284
+ ]))), 128)),
2285
+ G(ge, {
2286
+ visible: p.value,
2287
+ onBeforeDestroy: d
2288
+ }, {
2289
+ default: X(() => [
2290
+ (V(!0), Z(ie, null, pe(o.value, (u, y) => (V(), Z("div", {
2291
+ key: y,
2292
+ class: "extra-dialog"
2293
+ }, [
2294
+ (V(), ue(Me(k(u.comp)), {
2295
+ itemData: u == null ? void 0 : u.compData,
2296
+ onChange: C,
2297
+ childItemData: u == null ? void 0 : u.itemChildData,
2298
+ key: y,
2299
+ onContentChange: m,
2300
+ index: (u == null ? void 0 : u.id) ?? y,
2301
+ class: "extra-component"
2302
+ }, null, 40, ["itemData", "childItemData", "index"]))
2303
+ ]))), 128))
2304
+ ]),
2305
+ footer: X(() => [
2306
+ w("div", { class: "dialog-footer" }, [
2307
+ w("div", {
2308
+ class: "cancel-button footer-button",
2309
+ onClick: T
2310
+ }, Q("取消")),
2311
+ w("div", {
2312
+ class: "confirm-button footer-button",
2313
+ onClick: N
2314
+ }, Q("确认"))
2315
+ ])
2316
+ ]),
2317
+ _: 1
2318
+ }, 8, ["visible"])
2319
+ ]));
2320
+ }
2321
+ }, Ta = /* @__PURE__ */ fe(Ia, [["__scopeId", "data-v-b0b2f71f"]]), Ea = { class: "method-content" }, Da = ["onClick"], Oa = {
2322
+ __name: "index",
2323
+ props: {
2324
+ itemData: {
2325
+ type: Array,
2326
+ default: () => []
2327
+ },
2328
+ childItemData: {
2329
+ type: Array,
2330
+ default: () => []
2331
+ },
2332
+ index: Number,
2333
+ changedContent: {
2334
+ type: Object,
2335
+ default: () => {
2336
+ }
2337
+ }
2338
+ },
2339
+ setup(n) {
2340
+ const s = U([]), l = n, e = Gl(Je), { itemData: a, isEdit: o } = Ke(e), r = (h, f) => {
2341
+ var C;
2342
+ const _ = (C = f == null ? void 0 : f[0]) == null ? void 0 : C.children;
2343
+ return h == null ? void 0 : h.map((T) => {
2344
+ var m;
2345
+ return T = (m = T == null ? void 0 : T.map((N, d) => {
2346
+ var v;
2347
+ return {
2348
+ key: (v = _[d]) == null ? void 0 : v.label,
2349
+ value: N
2350
+ };
2351
+ })) == null ? void 0 : m.filter((N) => N.key), T;
2352
+ });
2353
+ };
2354
+ ye(
2355
+ () => a.value,
2356
+ async () => {
2357
+ o.value == "view" && await g(c(l.itemData));
2358
+ },
2359
+ { deep: !0 }
2360
+ );
2361
+ const p = async (h) => {
2362
+ var t, i, u, y, P, J;
2363
+ let f = {};
2364
+ if ((t = c(h.content)) == null || t.forEach((R, I) => {
2365
+ var F, B, b, L, $, S, E, K, W, ee, ne, oe, ce, de, me, A, x;
2366
+ if ((R == null ? void 0 : R.comp) === "Table") {
2367
+ let O = (L = (b = (B = (F = R == null ? void 0 : R.compData) == null ? void 0 : F.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : B.contents) == null ? void 0 : b[0]) == null ? void 0 : L.some((Y) => Y == null ? void 0 : Y.children), D = (E = (S = ($ = R == null ? void 0 : R.compData) == null ? void 0 : $.find((Y) => (Y == null ? void 0 : Y.key) === "tableContents")) == null ? void 0 : S.contents) == null ? void 0 : E.map((Y) => Y.slice(1)), H = (oe = (ne = (ee = (W = (K = R == null ? void 0 : R.compData) == null ? void 0 : K.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : W.contents) == null ? void 0 : ee[0]) == null ? void 0 : ne[0]) == null ? void 0 : oe.label, M = (me = (de = (ce = R == null ? void 0 : R.compData) == null ? void 0 : ce.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : de.contents) == null ? void 0 : me[0];
2368
+ if (O)
2369
+ f[H] = r(D, M);
2370
+ else {
2371
+ const Y = [];
2372
+ M = M.slice(1, M.length - 1), M == null || M.forEach((z, q) => {
2373
+ D == null || D.forEach((te) => {
2374
+ Y.push({
2375
+ key: z.label + te[0],
2376
+ value: te[q + 1]
2377
+ });
2378
+ });
2379
+ }), f["form" + I] = Y;
2380
+ }
2381
+ } else {
2382
+ const O = (x = (A = R.compData) == null ? void 0 : A.find((H) => (H == null ? void 0 : H.key) === "formContent")) == null ? void 0 : x.contents;
2383
+ f.form = {};
2384
+ const D = [];
2385
+ O == null || O.forEach((H) => {
2386
+ H.key !== "" && (H = {
2387
+ key: H == null ? void 0 : H.key,
2388
+ value: H == null ? void 0 : H.value
2389
+ }, D.push(H));
2390
+ }), f.form = D;
2391
+ }
2392
+ }), h.api) {
2393
+ const R = await Jl.post(h.api, {
2394
+ data: f,
2395
+ templateFileName: (i = h == null ? void 0 : h.extraContent) == null ? void 0 : i[0]
2396
+ }, {
2397
+ responseType: "blob",
2398
+ // 必须设置
2399
+ headers: {
2400
+ "Content-Type": "application/json"
2401
+ }
2402
+ });
2403
+ var _ = new Blob([R.data], {
2404
+ type: "application/octet-stream;charset=UTF-8"
2405
+ }), C = R.headers["content-disposition"], T = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), m = T.exec(C), N = ((P = (y = (u = h == null ? void 0 : h.extraContent) == null ? void 0 : u[0]) == null ? void 0 : y.split(".")) == null ? void 0 : P[0]) + "." + ((J = m[1].split(".")) == null ? void 0 : J[1]), d = document.createElement("a"), v = window.URL.createObjectURL(_), k = /^["](.*)["]$/g;
2406
+ d.style.display = "none", d.href = v, d.download = decodeURI(N.replace(k, "$1")), document.body.appendChild(d), d.click(), document.body.removeChild(d), window.URL.revokeObjectURL(v);
2407
+ }
2408
+ }, g = async (h) => {
2409
+ var T;
2410
+ const f = c(h), _ = f == null ? void 0 : f.map(async (m) => {
2411
+ var i, u, y, P, J, R, I;
2412
+ const d = (i = (await nl({
2413
+ key: {
2414
+ systemKey: sessionStorage.getItem("systemKey"),
2415
+ parentTable: "",
2416
+ type: "method",
2417
+ methodName: m.method
2418
+ }
2419
+ })).data.result) == null ? void 0 : i[0], v = await nl({
2420
+ key: {
2421
+ systemKey: sessionStorage.getItem("systemKey"),
2422
+ type: "methodData",
2423
+ tableId: d == null ? void 0 : d.id
2424
+ }
2425
+ }), k = await Sl((u = m == null ? void 0 : m.value) == null ? void 0 : u[0], sessionStorage.getItem("systemKey"), ""), t = (y = v.data.result) == null ? void 0 : y[0];
2426
+ return {
2427
+ buttonName: (P = d == null ? void 0 : d.key) == null ? void 0 : P.methodKey,
2428
+ api: (R = (J = t == null ? void 0 : t.value) == null ? void 0 : J.tableData) == null ? void 0 : R[0],
2429
+ content: k == null ? void 0 : k.filter((F) => F.comp !== "methodButton"),
2430
+ extraContent: (I = c(m.value)) == null ? void 0 : I.slice(1)
2431
+ };
2432
+ }), C = await Promise.all(_);
2433
+ s.value = C == null ? void 0 : C.filter((m) => m == null ? void 0 : m.extraContent), (T = s.value) == null || T.forEach((m) => {
2434
+ var N;
2435
+ m.api === "" && ((N = m.content) == null || N.forEach((d) => {
2436
+ var v;
2437
+ d.comp == "Table" && e.setExtraContents(Ll(d.compData, (v = m.extraContent) == null ? void 0 : v[0]));
2438
+ }));
2439
+ });
2440
+ };
2441
+ return ye(
2442
+ () => l.itemData,
2443
+ async () => {
2444
+ o.value == "view" && await g(c(l.itemData));
2445
+ },
2446
+ { immediate: !0, deep: !0 }
2447
+ ), (h, f) => (V(), Z("div", Ea, [
2448
+ (V(!0), Z(ie, null, pe(s.value, (_) => (V(), Z("div", null, [
2449
+ _.api !== "" ? (V(), Z("div", {
2450
+ key: 0,
2451
+ onClick: (C) => p(_),
2452
+ class: "method-buttons"
2453
+ }, Q(_.buttonName), 9, Da)) : Oe("", !0)
2454
+ ]))), 256))
2455
+ ]));
2456
+ }
2457
+ }, Ba = /* @__PURE__ */ fe(Oa, [["__scopeId", "data-v-9df085f9"]]), Na = {};
2458
+ function Fa(n, s) {
2459
+ return " 567 ";
2460
+ }
2461
+ const Sa = /* @__PURE__ */ fe(Na, [["render", Fa]]), La = { class: "module content" }, ja = { class: "module data" }, Ua = { class: "module layout" }, Pa = { class: "form-content" }, Ra = /* @__PURE__ */ we({
2462
+ __name: "operate",
2463
+ props: {
2464
+ itemContents: {
2465
+ type: Array,
2466
+ default: () => []
2467
+ },
2468
+ originalItemContents: {
2469
+ type: Array,
2470
+ default: () => []
2471
+ }
2472
+ },
2473
+ emits: ["change"],
2474
+ setup(n, { emit: s }) {
2475
+ const l = s, e = He({
2476
+ visible: !1,
2477
+ width: "40%",
2478
+ title: "签名配置"
2479
+ }), a = U("create"), o = U([
2480
+ {
2481
+ label: "取消",
2482
+ background: "#c0c4cc"
2483
+ },
2484
+ {
2485
+ label: "确认",
2486
+ background: "#436aaf"
2487
+ }
2488
+ ]), r = U([
2489
+ {
2490
+ label: "宽度(%):",
2491
+ prop: "signPadWidth",
2492
+ type: "number",
2493
+ value: "30"
2494
+ },
2495
+ {
2496
+ label: "弹窗名称:",
2497
+ prop: "dialogTitle",
2498
+ type: "input",
2499
+ value: ""
2500
+ },
2501
+ {
2502
+ label: "弹窗宽度(%):",
2503
+ prop: "dialogWidth",
2504
+ type: "number",
2505
+ value: "30"
2506
+ },
2507
+ {
2508
+ label: "弹窗显示:",
2509
+ prop: "dialogShow",
2510
+ type: "radio",
2511
+ contents: [
2512
+ {
2513
+ label: "显示",
2514
+ value: !0
2515
+ },
2516
+ {
2517
+ label: "隐藏",
2518
+ value: !1
2519
+ }
2520
+ ],
2521
+ value: !1,
2522
+ isFormColHidden: !0
2523
+ },
2524
+ {
2525
+ label: "路径:",
2526
+ prop: "url",
2527
+ type: "input",
2528
+ value: "",
2529
+ isFormColHidden: !0
2530
+ }
2531
+ ]), p = U([
2532
+ {
2533
+ label: "",
2534
+ prop: "index",
2535
+ type: "input",
2536
+ value: "",
2537
+ isFormColHidden: !0
2538
+ },
2539
+ {
2540
+ label: "类型:",
2541
+ prop: "label",
2542
+ type: "select",
2543
+ contents: [
2544
+ {
2545
+ label: "电子签名",
2546
+ value: "电子签名"
2547
+ },
2548
+ {
2549
+ label: "签字版",
2550
+ value: "签字版"
2551
+ },
2552
+ {
2553
+ label: "上传签名",
2554
+ value: "上传签名"
2555
+ }
2556
+ ],
2557
+ value: ""
2558
+ },
2559
+ {
2560
+ label: "图标",
2561
+ prop: "icon",
2562
+ type: "input",
2563
+ value: ""
2564
+ }
2565
+ // {
2566
+ // label: '是否禁用',
2567
+ // prop: 'disabled',
2568
+ // type: 'radio',
2569
+ // contents: [
2570
+ // {
2571
+ // label: '是',
2572
+ // value: true,
2573
+ // },
2574
+ // {
2575
+ // label: '否',
2576
+ // value: false,
2577
+ // }
2578
+ // ],
2579
+ // value: false
2580
+ // },
2581
+ ]), g = U({}), h = U([]), f = () => ({
2582
+ comp: "Signature",
2583
+ compData: [
2584
+ {
2585
+ key: "signTypeList",
2586
+ contents: h.value
2587
+ },
2588
+ {
2589
+ key: "signConfig",
2590
+ contents: g.value
2591
+ }
2592
+ ]
2593
+ }), _ = (N) => {
2594
+ var d;
2595
+ g.value = c(N), l("change", (d = f()) == null ? void 0 : d.compData);
2596
+ }, C = (N) => {
2597
+ var d, v;
2598
+ if ((N == null ? void 0 : N.buttonName) === "确认") {
2599
+ const k = c(N == null ? void 0 : N.content);
2600
+ switch (console.log(1212, N), Object.keys(k).forEach((t) => {
2601
+ k[t] === "" && delete k[t];
2602
+ }), a.value) {
2603
+ case "create":
2604
+ h.value.push({
2605
+ ...k,
2606
+ index: ((d = h.value) == null ? void 0 : d.length) + 1
2607
+ });
2608
+ break;
2609
+ case "update":
2610
+ console.log(1213, h.value);
2611
+ break;
2612
+ }
2613
+ l("change", (v = f()) == null ? void 0 : v.compData), e.visible = !1;
2614
+ } else
2615
+ e.visible = !1;
2616
+ }, T = (N, d) => {
2617
+ var v, k;
2618
+ switch (N) {
2619
+ case "create":
2620
+ (v = p.value) == null || v.forEach((t) => {
2621
+ t.value = "";
2622
+ }), a.value = "create", e.visible = !0;
2623
+ break;
2624
+ case "update":
2625
+ (k = p.value) == null || k.forEach((t) => {
2626
+ t.value = d[t == null ? void 0 : t.prop];
2627
+ }), console.log(345, d), a.value = "update", e.visible = !0;
2628
+ break;
2629
+ case "delete":
2630
+ h.value.splice(d, 1), a.value = "delete";
2631
+ break;
2632
+ }
2633
+ }, m = () => {
2634
+ e.visible = !1;
2635
+ };
2636
+ return (N, d) => {
2637
+ const v = re("svg-icon"), k = re("el-button");
2638
+ return V(), Z(ie, null, [
2639
+ w("div", null, [
2640
+ w("div", La, [
2641
+ d[2] || (d[2] = w("h4", { class: "module-title" }, "签名类型", -1)),
2642
+ w("div", {
2643
+ class: "module-icon",
2644
+ onClick: d[0] || (d[0] = (t) => T("create"))
2645
+ }, [
2646
+ w("div", null, [
2647
+ G(v, {
2648
+ name: "Plus",
2649
+ class: "icon-size"
2650
+ }),
2651
+ d[1] || (d[1] = w("span", null, "新增", -1))
2652
+ ])
2653
+ ])
2654
+ ]),
2655
+ w("div", ja, [
2656
+ (V(!0), Z(ie, null, pe(h.value, (t, i) => (V(), Z("div", {
2657
+ class: "module-data-item",
2658
+ key: i
2659
+ }, [
2660
+ w("span", null, Q(t == null ? void 0 : t.label), 1),
2661
+ w("div", null, [
2662
+ G(k, {
2663
+ type: "primary",
2664
+ size: "small",
2665
+ onClick: (u) => T("update", { ...t, index: i + 1 })
2666
+ }, {
2667
+ default: X(() => d[3] || (d[3] = [
2668
+ ve("修改")
2669
+ ])),
2670
+ _: 2,
2671
+ __: [3]
2672
+ }, 1032, ["onClick"]),
2673
+ G(k, {
2674
+ type: "danger",
2675
+ size: "small",
2676
+ onClick: (u) => T("delete", i)
2677
+ }, {
2678
+ default: X(() => d[4] || (d[4] = [
2679
+ ve("删除")
2680
+ ])),
2681
+ _: 2,
2682
+ __: [4]
2683
+ }, 1032, ["onClick"])
2684
+ ])
2685
+ ]))), 128))
2686
+ ]),
2687
+ w("div", Ua, [
2688
+ G(he, {
2689
+ rowContents: r.value,
2690
+ onChange: _
2691
+ }, null, 8, ["rowContents"])
2692
+ ])
2693
+ ]),
2694
+ G(ge, {
2695
+ visible: e.visible,
2696
+ title: e.title,
2697
+ onBeforeDestroy: m,
2698
+ width: e.width
2699
+ }, {
2700
+ default: X(() => [
2701
+ w("div", Pa, [
2702
+ (V(), ue(he, {
2703
+ rowContents: p.value,
2704
+ key: p.value,
2705
+ isEnableWrap: !1,
2706
+ isButtonRow: !1,
2707
+ isStartJustify: !1,
2708
+ buttonValue: o.value,
2709
+ onOnButtonClick: C
2710
+ }, null, 8, ["rowContents", "buttonValue"]))
2711
+ ])
2712
+ ]),
2713
+ _: 1
2714
+ }, 8, ["visible", "title", "width"])
2715
+ ], 64);
2716
+ };
2717
+ }
2718
+ }), Ja = /* @__PURE__ */ fe(Ra, [["__scopeId", "data-v-01849996"]]), Va = /* @__PURE__ */ we({
2719
+ __name: "index",
2720
+ props: {
2721
+ stepConfig: {
2722
+ type: Object,
2723
+ default: {}
2724
+ },
2725
+ stepList: {
2726
+ type: Array,
2727
+ default: () => []
2728
+ }
2729
+ },
2730
+ emits: ["clickStep", "clickTrigger", "changeTrigger"],
2731
+ setup(n, { emit: s }) {
2732
+ const l = n, e = s, a = U(1), o = Ul(() => {
2733
+ var _, C;
2734
+ return (_ = l == null ? void 0 : l.stepConfig) != null && _.allowTrigger ? a.value : (C = l == null ? void 0 : l.stepConfig) == null ? void 0 : C.active;
2735
+ }), r = (_, C) => {
2736
+ a.value = C, e("clickStep", _, C);
2737
+ }, p = (_) => Vl(_), g = () => {
2738
+ var C;
2739
+ const _ = (C = l == null ? void 0 : l.stepList) == null ? void 0 : C.find((T, m) => m + 1 === o.value);
2740
+ return console.log("findStep", _), _ ? _ == null ? void 0 : _.children : [];
2741
+ }, h = (_) => {
2742
+ e("clickTrigger", _);
2743
+ }, f = (_) => {
2744
+ e("changeTrigger", _);
2745
+ };
2746
+ return (_, C) => {
2747
+ var N, d, v, k, t;
2748
+ const T = re("el-step"), m = re("el-steps");
2749
+ return V(), Z(ie, null, [
2750
+ G(m, {
2751
+ direction: (N = n.stepConfig) == null ? void 0 : N.direction,
2752
+ active: o.value,
2753
+ "finish-status": "success",
2754
+ simple: (d = n.stepConfig) == null ? void 0 : d.simple,
2755
+ "align-center": (v = n.stepConfig) == null ? void 0 : v.alignCenter
2756
+ }, {
2757
+ default: X(() => [
2758
+ (V(!0), Z(ie, null, pe(n.stepList, (i, u) => (V(), ue(T, {
2759
+ key: u,
2760
+ class: "step-item",
2761
+ onClick: (y) => r(i, u + 1)
2762
+ }, {
2763
+ title: X(() => [
2764
+ Le(_.$slots, "title", {
2765
+ title: i == null ? void 0 : i.title
2766
+ }, void 0, !0)
2767
+ ]),
2768
+ description: X(() => [
2769
+ Le(_.$slots, "description", {
2770
+ description: i == null ? void 0 : i.description
2771
+ }, void 0, !0)
2772
+ ]),
2773
+ _: 2
2774
+ }, 1032, ["onClick"]))), 128))
2775
+ ]),
2776
+ _: 3
2777
+ }, 8, ["direction", "active", "simple", "align-center"]),
2778
+ (k = n.stepConfig) != null && k.allowTrigger && ((t = n.stepConfig) != null && t.active) ? (V(!0), Z(ie, { key: 0 }, pe(g(), (i, u) => (V(), Z("div", {
2779
+ key: u,
2780
+ class: "step-cont-wrap"
2781
+ }, [
2782
+ (V(), ue(Me(p(i == null ? void 0 : i.type)), {
2783
+ modelValue: i.value,
2784
+ "onUpdate:modelValue": (y) => i.value = y,
2785
+ onClickTrigger: h,
2786
+ onChangeTrigger: f,
2787
+ content: i == null ? void 0 : i.content
2788
+ }, Pl({ _: 2 }, [
2789
+ pe(_.$slots, (y, P) => ({
2790
+ name: P,
2791
+ fn: X((J) => [
2792
+ Le(_.$slots, P, Rl({ ref_for: !0 }, J || {}), void 0, !0)
2793
+ ])
2794
+ }))
2795
+ ]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
2796
+ ]))), 128)) : Oe("", !0)
2797
+ ], 64);
2798
+ };
2799
+ }
2800
+ }), Wa = /* @__PURE__ */ fe(Va, [["__scopeId", "data-v-003d9390"]]), za = /* @__PURE__ */ we({
2801
+ __name: "index",
2802
+ props: {
2803
+ itemData: {
2804
+ type: Array,
2805
+ default: () => []
2806
+ },
2807
+ childItemData: {
2808
+ type: Array,
2809
+ default: () => []
2810
+ }
2811
+ },
2812
+ emits: ["clickStep"],
2813
+ setup(n, { emit: s }) {
2814
+ const l = n, e = s, a = U({}), o = U([]), r = (p, g) => {
2815
+ e("clickStep", p, g);
2816
+ };
2817
+ return ye(() => l == null ? void 0 : l.itemData, (p) => {
2818
+ var g, h;
2819
+ o.value = (g = p == null ? void 0 : p.find((f) => (f == null ? void 0 : f.key) === "stepList")) == null ? void 0 : g.contents, a.value = (h = p == null ? void 0 : p.find((f) => (f == null ? void 0 : f.key) === "stepConfig")) == null ? void 0 : h.contents;
2820
+ }, {
2821
+ immediate: !0
2822
+ }), (p, g) => {
2823
+ const h = re("svg-icon");
2824
+ return V(), ue(Wa, {
2825
+ stepConfig: a.value,
2826
+ stepList: o.value,
2827
+ onClickStep: r
2828
+ }, {
2829
+ icon: X(() => [
2830
+ G(h, { name: "import" })
2831
+ ]),
2832
+ title: X(({ title: f }) => [
2833
+ ve(Q(f), 1)
2834
+ ]),
2835
+ description: X(({ description: f }) => [
2836
+ ve(Q(f), 1)
2837
+ ]),
2838
+ _: 1
2839
+ }, 8, ["stepConfig", "stepList"]);
2840
+ };
2841
+ }
2842
+ }), Ga = /* @__PURE__ */ we({
2843
+ __name: "index",
2844
+ props: {
2845
+ activities: {
2846
+ type: Array,
2847
+ default: () => []
2848
+ },
2849
+ timeLineConfig: {
2850
+ type: Object,
2851
+ default: () => {
2852
+ }
2853
+ }
2854
+ },
2855
+ setup(n) {
2856
+ return (s, l) => {
2857
+ const e = re("el-timeline-item"), a = re("el-timeline");
2858
+ return V(), ue(a, null, {
2859
+ default: X(() => [
2860
+ (V(!0), Z(ie, null, pe(n.activities, (o, r) => (V(), ue(e, {
2861
+ key: r,
2862
+ timestamp: o.timestamp,
2863
+ placement: n.timeLineConfig.placement,
2864
+ center: n.timeLineConfig.isCenter,
2865
+ "hide-timestamp": !0,
2866
+ type: n.timeLineConfig.type,
2867
+ color: n.timeLineConfig.color,
2868
+ size: n.timeLineConfig.size,
2869
+ icon: n.timeLineConfig.icon,
2870
+ hollow: n.timeLineConfig.isHollow
2871
+ }, {
2872
+ default: X(() => [
2873
+ Le(s.$slots, "content", {
2874
+ content: o == null ? void 0 : o.content,
2875
+ timestamp: o == null ? void 0 : o.timestamp
2876
+ }, void 0, !0)
2877
+ ]),
2878
+ _: 2
2879
+ }, 1032, ["timestamp", "placement", "center", "type", "color", "size", "icon", "hollow"]))), 128))
2880
+ ]),
2881
+ _: 3
2882
+ });
2883
+ };
2884
+ }
2885
+ }), Ma = /* @__PURE__ */ fe(Ga, [["__scopeId", "data-v-4172a886"]]), Za = { class: "line-content" }, Ha = { class: "line-time" }, Ka = /* @__PURE__ */ we({
2886
+ __name: "index",
2887
+ props: {
2888
+ itemData: {
2889
+ type: Array,
2890
+ default: () => []
2891
+ }
2892
+ },
2893
+ setup(n) {
2894
+ const s = n, l = U({}), e = U([]);
2895
+ return ye(() => s == null ? void 0 : s.itemData, (a) => {
2896
+ var o, r;
2897
+ e.value = (o = a == null ? void 0 : a.find((p) => (p == null ? void 0 : p.key) === "timeLineList")) == null ? void 0 : o.contents, l.value = (r = a == null ? void 0 : a.find((p) => (p == null ? void 0 : p.key) === "timeLineConfig")) == null ? void 0 : r.contents;
2898
+ }, {
2899
+ immediate: !0
2900
+ }), (a, o) => (V(), ue(Ma, {
2901
+ activities: e.value,
2902
+ timeLineConfig: l.value
2903
+ }, {
2904
+ content: X(({ content: r, timestamp: p }) => [
2905
+ w("span", Za, Q(r), 1),
2906
+ w("span", Ha, Q(p), 1)
2907
+ ]),
2908
+ _: 1
2909
+ }, 8, ["activities", "timeLineConfig"]));
2910
+ }
2911
+ }), qa = /* @__PURE__ */ fe(Ka, [["__scopeId", "data-v-b4d9deed"]]), Qa = { class: "tabs-content" }, Xa = {
2912
+ __name: "index",
2913
+ props: {
2914
+ itemData: {
2915
+ type: Array,
2916
+ default: () => []
2917
+ },
2918
+ childItemData: {
2919
+ type: Array,
2920
+ default: () => []
2921
+ },
2922
+ index: Number
2923
+ },
2924
+ setup(n) {
2925
+ const s = n, l = U([]);
2926
+ return ye(
2927
+ () => s == null ? void 0 : s.itemData,
2928
+ (e) => {
2929
+ const a = e.find((o) => (o == null ? void 0 : o.key) == "stepList");
2930
+ a && (l.value = a.contents.map((o) => ({
2931
+ value: o.value || o.title,
2932
+ label: o.label || o.title,
2933
+ children: o.children || []
2934
+ // 关键:传递子内容
2935
+ })));
2936
+ },
2937
+ { immediate: !0, deep: !0 }
2938
+ ), (e, a) => (V(), Z("div", Qa, [
2939
+ G(Wl, { tabsContents: l.value }, null, 8, ["tabsContents"])
2940
+ ]));
2941
+ }
2942
+ }, Ya = /* @__PURE__ */ fe(Xa, [["__scopeId", "data-v-d3bb10b7"]]), es = { class: "tabs-header" }, ls = { class: "tabs-list" }, ns = { class: "tab-name" }, as = { class: "tab-actions" }, ss = {
2943
+ __name: "operate",
2944
+ props: {
2945
+ itemContents: {
2946
+ type: Array,
2947
+ default: () => []
2948
+ }
2949
+ },
2950
+ emits: ["change"],
2951
+ setup(n, { emit: s }) {
2952
+ const l = n, e = s, a = U([]), o = U(!1), r = U(""), p = U({ title: "" }), g = U(-1), h = () => {
2953
+ r.value = "新增标签页", p.value.title = "", g.value = -1, o.value = !0;
2954
+ }, f = (m) => {
2955
+ r.value = "修改标签页", p.value.title = a.value[m].title, g.value = m, o.value = !0;
2956
+ }, _ = (m) => {
2957
+ a.value.splice(m, 1), T();
2958
+ }, C = () => {
2959
+ p.value.title.trim() && (g.value === -1 ? a.value.push({
2960
+ title: p.value.title,
2961
+ value: p.value.title,
2962
+ label: p.value.title,
2963
+ children: []
2964
+ }) : (a.value[g.value].title = p.value.title, a.value[g.value].value = p.value.title, a.value[g.value].label = p.value.title), o.value = !1, T());
2965
+ }, T = () => {
2966
+ const m = [
2967
+ {
2968
+ key: "stepList",
2969
+ contents: a.value
2970
+ }
2971
+ ];
2972
+ e("change", m);
2973
+ };
2974
+ return ye(
2975
+ () => l.itemContents,
2976
+ (m) => {
2977
+ if (m && m.length > 0) {
2978
+ const N = m.find((d) => d.key === "stepList");
2979
+ N && N.contents && (a.value = N.contents.map((d) => ({
2980
+ title: d.title || "",
2981
+ value: d.value || d.title || "",
2982
+ label: d.label || d.title || "",
2983
+ children: d.children || []
2984
+ })));
2985
+ }
2986
+ },
2987
+ { immediate: !0 }
2988
+ ), (m, N) => {
2989
+ const d = re("svg-icon"), v = re("el-button"), k = re("el-input"), t = re("el-form-item"), i = re("el-form"), u = re("el-dialog");
2990
+ return V(), Z("div", null, [
2991
+ w("div", es, [
2992
+ N[4] || (N[4] = w("h4", null, "标签页管理", -1)),
2993
+ G(v, {
2994
+ type: "primary",
2995
+ size: "small",
2996
+ onClick: h
2997
+ }, {
2998
+ default: X(() => [
2999
+ G(d, {
3000
+ name: "Plus",
3001
+ style: { width: "14px", height: "14px", "margin-right": "4px" }
3002
+ }),
3003
+ N[3] || (N[3] = ve(" 新增标签页 "))
3004
+ ]),
3005
+ _: 1,
3006
+ __: [3]
3007
+ })
3008
+ ]),
3009
+ w("div", ls, [
3010
+ (V(!0), Z(ie, null, pe(a.value, (y, P) => (V(), Z("div", {
3011
+ class: "tab-item",
3012
+ key: P
3013
+ }, [
3014
+ w("span", ns, Q(y.title), 1),
3015
+ w("div", as, [
3016
+ G(v, {
3017
+ type: "primary",
3018
+ size: "small",
3019
+ onClick: (J) => f(P)
3020
+ }, {
3021
+ default: X(() => N[5] || (N[5] = [
3022
+ ve("修改")
3023
+ ])),
3024
+ _: 2,
3025
+ __: [5]
3026
+ }, 1032, ["onClick"]),
3027
+ G(v, {
3028
+ type: "danger",
3029
+ size: "small",
3030
+ onClick: (J) => _(P)
3031
+ }, {
3032
+ default: X(() => N[6] || (N[6] = [
3033
+ ve("删除")
3034
+ ])),
3035
+ _: 2,
3036
+ __: [6]
3037
+ }, 1032, ["onClick"])
3038
+ ])
3039
+ ]))), 128))
3040
+ ]),
3041
+ G(u, {
3042
+ modelValue: o.value,
3043
+ "onUpdate:modelValue": N[2] || (N[2] = (y) => o.value = y),
3044
+ title: r.value
3045
+ }, {
3046
+ footer: X(() => [
3047
+ G(v, {
3048
+ onClick: N[1] || (N[1] = (y) => o.value = !1)
3049
+ }, {
3050
+ default: X(() => N[7] || (N[7] = [
3051
+ ve("取消")
3052
+ ])),
3053
+ _: 1,
3054
+ __: [7]
3055
+ }),
3056
+ G(v, {
3057
+ type: "primary",
3058
+ onClick: C
3059
+ }, {
3060
+ default: X(() => N[8] || (N[8] = [
3061
+ ve("确定")
3062
+ ])),
3063
+ _: 1,
3064
+ __: [8]
3065
+ })
3066
+ ]),
3067
+ default: X(() => [
3068
+ G(i, {
3069
+ model: p.value,
3070
+ "label-width": "80px"
3071
+ }, {
3072
+ default: X(() => [
3073
+ G(t, {
3074
+ label: "标签名称",
3075
+ required: ""
3076
+ }, {
3077
+ default: X(() => [
3078
+ G(k, {
3079
+ modelValue: p.value.title,
3080
+ "onUpdate:modelValue": N[0] || (N[0] = (y) => p.value.title = y),
3081
+ placeholder: "请输入标签页名称"
3082
+ }, null, 8, ["modelValue"])
3083
+ ]),
3084
+ _: 1
3085
+ })
3086
+ ]),
3087
+ _: 1
3088
+ }, 8, ["model"])
3089
+ ]),
3090
+ _: 1
3091
+ }, 8, ["modelValue", "title"])
3092
+ ]);
3093
+ };
3094
+ }
3095
+ }, os = /* @__PURE__ */ fe(ss, [["__scopeId", "data-v-a26b1c22"]]), to = U([
3096
+ {
3097
+ name: "表格",
3098
+ type: "table",
3099
+ comp: "Table",
3100
+ icon: "Table"
3101
+ },
3102
+ {
3103
+ name: "表单",
3104
+ type: "form",
3105
+ comp: "Form",
3106
+ icon: "Form"
3107
+ },
3108
+ {
3109
+ name: "折叠",
3110
+ type: "fold",
3111
+ comp: "Fold",
3112
+ icon: "Fold"
3113
+ },
3114
+ {
3115
+ name: "头像",
3116
+ type: "avatar",
3117
+ comp: "AvatarUpload",
3118
+ icon: "Avatar"
3119
+ },
3120
+ {
3121
+ name: "签名",
3122
+ type: "signature",
3123
+ comp: "Signature",
3124
+ icon: "Signature"
3125
+ },
3126
+ {
3127
+ name: "步骤条",
3128
+ type: "step",
3129
+ comp: "Step",
3130
+ icon: "Step"
3131
+ },
3132
+ {
3133
+ name: "时间线",
3134
+ type: "timeLine",
3135
+ comp: "TimeLine",
3136
+ icon: "TimeLine"
3137
+ },
3138
+ {
3139
+ name: "标签页",
3140
+ type: "tabs",
3141
+ comp: "Tabs",
3142
+ icon: "Tabs"
3143
+ }
3144
+ ]), ts = {
3145
+ TABLE: jl,
3146
+ FORM: al,
3147
+ TABLEOPERATE: Hn,
3148
+ FORMOPERATE: sl,
3149
+ FOLD: xa,
3150
+ CALCULATOR: Ta,
3151
+ METHODBUTTON: Ba,
3152
+ AVATARUPLOAD: Zl,
3153
+ SIGNATURE: Ml,
3154
+ FORMTOP: al,
3155
+ STEP: za,
3156
+ STEPOPERATE: ha,
3157
+ TIMELINE: qa,
3158
+ TIMELINEOPERATE: ka,
3159
+ FORMTOPOPERATE: sl,
3160
+ SIGNATUREOPERATE: Ja,
3161
+ AVATARUPLOADOPERATE: Sa,
3162
+ TABS: Ya,
3163
+ TABSOPERATE: os
3164
+ // 添加其他组件...
3165
+ };
3166
+ function rs(n) {
3167
+ return ts[n == null ? void 0 : n.toUpperCase()] || null;
3168
+ }
3169
+ const se = [
3170
+ {
3171
+ key: "FormName",
3172
+ value: "Form"
3173
+ },
3174
+ {
3175
+ key: "TableName",
3176
+ value: "Table"
3177
+ },
3178
+ {
3179
+ key: "MenuName",
3180
+ value: "Menu"
3181
+ },
3182
+ {
3183
+ key: "GroupName",
3184
+ value: "Group"
3185
+ },
3186
+ {
3187
+ key: "SystemKey",
3188
+ value: "System"
3189
+ }
3190
+ ], ae = [
3191
+ {
3192
+ key: "FormDirect",
3193
+ value: "formFlex"
3194
+ },
3195
+ {
3196
+ key: "Form",
3197
+ value: "formContent"
3198
+ },
3199
+ {
3200
+ key: "FormButton",
3201
+ value: "formButton"
3202
+ },
3203
+ {
3204
+ key: "FormFlex",
3205
+ value: "formWrap"
3206
+ },
3207
+ {
3208
+ key: "TableColumns",
3209
+ value: "header"
3210
+ },
3211
+ {
3212
+ key: "TableButton",
3213
+ value: "extraButton"
3214
+ },
3215
+ {
3216
+ key: "TableLineButton",
3217
+ value: "rowButton"
3218
+ },
3219
+ {
3220
+ key: "Table",
3221
+ value: "tableContents"
3222
+ },
3223
+ {
3224
+ key: "TableIndex",
3225
+ value: "tableIndex"
3226
+ },
3227
+ {
3228
+ key: "Menus",
3229
+ value: "menuContents"
3230
+ },
3231
+ {
3232
+ key: "GroupContents",
3233
+ value: "groupContents"
3234
+ }
3235
+ ], Te = U(0), is = (n) => {
3236
+ const [s, l] = n.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), a = l.replace(/^['"]|['"]$/g, "");
3237
+ return { key: e, value: a };
3238
+ }, je = (n) => {
3239
+ try {
3240
+ return JSON.parse(n), !0;
3241
+ } catch {
3242
+ return !1;
3243
+ }
3244
+ }, us = (n) => n.includes("$") && n.trim().endsWith("(") ? n + ")" : n, cs = (n) => {
3245
+ let s = n;
3246
+ const l = [];
3247
+ let e = "";
3248
+ for (const a of s)
3249
+ a.includes("{") || e.includes("{") || a.includes("[") || e.includes("[") || a.includes("【") || e.includes("【") || a.includes("(") || e.includes("(") || a.includes("(") || e.includes("(") || a.includes("/*") || e.includes("/*") ? (e += a.trim(), c(e).split("{").length - 1 === c(e).split("}").length - 1 && c(e).split("【").length - 1 === c(e).split("】").length - 1 && c(e).split("[").length - 1 === c(e).split("]").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("/*").length - 1 === c(e).split("*/").length - 1 && (l.push(e), e = "")) : l.push(a.trim());
3250
+ return l == null ? void 0 : l.filter((a) => a.includes("{"));
3251
+ }, ps = (n) => {
3252
+ var l;
3253
+ let s = [];
3254
+ return (l = cs(n.slice(1, -1))) == null || l.forEach((e) => {
3255
+ var o, r, p, g;
3256
+ let a = ((r = (o = e.slice(1, -1)) == null ? void 0 : o.split(",")) == null ? void 0 : r.length) ?? 1;
3257
+ (g = (p = e.slice(1, -1)) == null ? void 0 : p.split(",")) == null || g.forEach((h) => {
3258
+ var T, m, N, d, v, k, t, i, u, y, P, J, R;
3259
+ let f = h == null ? void 0 : h.split(":"), _ = f != null && f[0] ? (f == null ? void 0 : f[1].split("$").length) - 1 === 1 ? ((T = f == null ? void 0 : f[0]) == null ? void 0 : T.replace(/^"(.*)"$/, "$1")) + ((m = f == null ? void 0 : f[1]) == null ? void 0 : m.replace(/^"(.*)"$/, "$1")) : Array.isArray((d = (N = f == null ? void 0 : f[1]) == null ? void 0 : N.replace(/^"(.*)"$/, "$1")) == null ? void 0 : d.split("(")) && ((t = (k = (v = f == null ? void 0 : f[1]) == null ? void 0 : v.replace(/^"(.*)"$/, "$1")) == null ? void 0 : k.split("(")) == null ? void 0 : t.length) > 1 ? ((i = f == null ? void 0 : f[0]) == null ? void 0 : i.replace(/^"(.*)"$/, "$1")) + ((P = (y = (u = f == null ? void 0 : f[1]) == null ? void 0 : u.replace(/^"(.*)"$/, "$1")) == null ? void 0 : y.split("(")) == null ? void 0 : P[0]) + "()" : (J = f == null ? void 0 : f[0]) == null ? void 0 : J.replace(/^"(.*)"$/, "$1") : "", C = (f == null ? void 0 : f[1].split("$").length) - 1 === 0 ? (R = f == null ? void 0 : f[1]) == null ? void 0 : R.replace(/^"(.*)"$/, "$1") : "";
3260
+ Te.value++, s.push({
3261
+ id: Te.value,
3262
+ key: _,
3263
+ value: C,
3264
+ // 如果值为空,则key设为空字符串,否则保留原值
3265
+ width: a,
3266
+ extraContent: f == null ? void 0 : f[1]
3267
+ });
3268
+ });
3269
+ }), s;
3270
+ }, kl = (n) => {
3271
+ var s, l;
3272
+ try {
3273
+ const e = n.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
3274
+ if (c(e).split("{").length - 1 > 1) {
3275
+ let a = c(e).replace(/^\{(.*)\}$/, "[$1]");
3276
+ if (je(a) && !a.includes("$") || (a = a.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), je(a)) {
3277
+ const o = JSON.parse(a);
3278
+ let r = [];
3279
+ return o == null || o.forEach((p) => {
3280
+ var g;
3281
+ (g = Object.entries(c(p))) == null || g.forEach((h) => {
3282
+ Te.value++, r.push({
3283
+ id: Te.value,
3284
+ key: (h == null ? void 0 : h[0]) ?? "",
3285
+ value: (h == null ? void 0 : h[1]) === "" ? "" : h == null ? void 0 : h[1],
3286
+ // 如果值为空,则key设为空字符串,否则保留原值
3287
+ width: Object.keys(c(p)).length
3288
+ });
3289
+ });
3290
+ }), r;
3291
+ } else
3292
+ return e.trim().startsWith("{{") ? ps(e.trim()) : We(a);
3293
+ } else if (je(e)) {
3294
+ const a = JSON.parse(e);
3295
+ return Object.entries(a).map(([o, r]) => (Te.value++, {
3296
+ id: Te.value,
3297
+ key: o,
3298
+ value: r === "" ? "" : r,
3299
+ // 如果值为空,则key设为空字符串,否则保留原值
3300
+ width: 1
3301
+ }));
3302
+ } else
3303
+ return ((s = We(e)) == null ? void 0 : s.length) === 0 ? e : (l = We(e)) == null ? void 0 : l.map((a) => ({
3304
+ label: a.label,
3305
+ method: us(a.method)
3306
+ }));
3307
+ } catch (e) {
3308
+ return console.error("转换失败:", e), [];
3309
+ }
3310
+ }, We = (n) => {
3311
+ n = n.trim().replace(/^\{|\}$/g, "").trim();
3312
+ const s = [];
3313
+ let l = 0;
3314
+ for (; l < n.length; ) {
3315
+ const e = n.slice(l).match(/^\s*"([^"]+)"\s*:\s*/);
3316
+ if (!e) break;
3317
+ const a = e[1];
3318
+ l += e[0].length;
3319
+ let o = "", r = 0, p = !1, g = "";
3320
+ for (let h = l; h < n.length; h++) {
3321
+ const f = n[h];
3322
+ if ((f === '"' || f === "'") && !p ? (p = !0, g = f) : f === g && p && (p = !1, g = ""), !p && ((f === "{" || f === "(" || f === "[") && r++, (f === "}" || f === ")" || f === "]") && r--, f === "," && r === 0 || h === n.length - 1)) {
3323
+ o = n.slice(l, h + 1).trim(), l = h + 1;
3324
+ break;
3325
+ }
3326
+ }
3327
+ s.push({
3328
+ label: a,
3329
+ method: o
3330
+ });
3331
+ }
3332
+ return s;
3333
+ }, ds = (n, s) => {
3334
+ try {
3335
+ if (se != null && se.find((l) => (l == null ? void 0 : l.key) === s))
3336
+ return n.replace(/['"]/g, "").trim();
3337
+ if (c(n).split("[").length - 1 > 1) {
3338
+ const l = c(n).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
3339
+ return JSON.parse(l);
3340
+ } else {
3341
+ const l = c(n).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
3342
+ if (je(l)) {
3343
+ const e = JSON.parse(l);
3344
+ return Array.isArray(e) ? e.map((a) => ({ label: a })) : e;
3345
+ } else
3346
+ return kl(c(n));
3347
+ }
3348
+ } catch (l) {
3349
+ return console.error("解析失败:", l), n;
3350
+ }
3351
+ }, fs = (n) => ({ [n == null ? void 0 : n.key]: ds(n == null ? void 0 : n.value, n == null ? void 0 : n.key) }), hs = (n) => {
3352
+ try {
3353
+ if (c(n).split("[").length - 1 > 1) {
3354
+ const s = c(n).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
3355
+ return JSON.parse(s);
3356
+ } else
3357
+ return JSON.parse(c(n).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((l) => ({ label: l }));
3358
+ } catch (s) {
3359
+ return console.error("解析失败:", s), n;
3360
+ }
3361
+ }, ys = (n) => {
3362
+ const s = n.match(/\(([^)]+)\)/);
3363
+ return s ? s[1] : "";
3364
+ }, ms = (n) => {
3365
+ const s = n.match(/^([^(]+)\s*\(/);
3366
+ return s ? s[1].trim() : n;
3367
+ }, ol = (n) => n.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((s) => s.trim()).filter((s) => s).join("/"), vs = (n) => {
3368
+ var r, p;
3369
+ let s = [], l = [];
3370
+ const e = (r = c(n)) == null ? void 0 : r.map((g) => g == null ? void 0 : g.key), a = [...new Set((p = c(e)) == null ? void 0 : p.map((g) => ys(g)))];
3371
+ a == null || a.forEach((g) => {
3372
+ let h = n == null ? void 0 : n.filter((C) => C.key.includes(g));
3373
+ h == null || h.forEach((C) => {
3374
+ C != null && C.key.includes("Menus") && (s.push({
3375
+ key: "GroupName",
3376
+ value: ol(C == null ? void 0 : C.value)
3377
+ }), l.push(ol(C == null ? void 0 : C.value)));
3378
+ });
3379
+ let f = n == null ? void 0 : n.filter((C) => C.key.includes(g) && !(C != null && C.key.includes("Menus")));
3380
+ f = f == null ? void 0 : f.map((C) => (C.key = ms(C.key), C));
3381
+ const _ = {
3382
+ key: "GroupContents",
3383
+ value: f
3384
+ };
3385
+ s.push(_);
3386
+ });
3387
+ const o = {
3388
+ key: "Menus",
3389
+ value: l
3390
+ };
3391
+ return s.unshift(o), s;
3392
+ }, Cl = (n) => {
3393
+ var s, l;
3394
+ if (Array.isArray(Object.keys(n)) && ((s = Object.keys(n)) == null ? void 0 : s.length) > 0) {
3395
+ let e = [];
3396
+ return (l = Object.entries(n)) == null || l.forEach(([a, o]) => {
3397
+ var p, g;
3398
+ let r = [];
3399
+ if (r.push(a), ((p = Object.keys(o)) == null ? void 0 : p.length) > 0) {
3400
+ let h = [];
3401
+ (g = Cl(o)) == null || g.forEach((f) => {
3402
+ h.push(f);
3403
+ }), h == null || h.forEach((f) => {
3404
+ r.push(f);
3405
+ });
3406
+ }
3407
+ e.push(r);
3408
+ }), e;
3409
+ }
3410
+ }, bs = (n, s) => {
3411
+ var e;
3412
+ let l = s;
3413
+ return Array.isArray(Object.keys(n)) && ((e = Object.entries(n)) == null || e.forEach(([a, o]) => {
3414
+ let r = [a];
3415
+ if (typeof o == "object" && o !== null) {
3416
+ let p = Cl(o);
3417
+ p == null || p.forEach((g) => {
3418
+ r.push(g);
3419
+ });
3420
+ }
3421
+ l.push(r);
3422
+ })), l;
3423
+ }, gs = (n) => {
3424
+ const s = {};
3425
+ return n.forEach((e) => {
3426
+ const a = e.split("/");
3427
+ let o = s;
3428
+ a.forEach((r) => {
3429
+ o[r] || (o[r] = {}), o = o[r];
3430
+ });
3431
+ }), bs(s, []);
3432
+ }, _l = (n) => gs(n), ro = (n) => {
3433
+ var s, l, e, a, o, r, p, g;
3434
+ try {
3435
+ const h = Qe((l = (s = c(n)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), f = (a = (e = c(h)) == null ? void 0 : e.filter((m) => !m.includes("/*"))) == null ? void 0 : a.map((m) => is(m)), _ = vs(f), C = [];
3436
+ if (((o = _ == null ? void 0 : _.find((m) => (m == null ? void 0 : m.key) === "Menus")) == null ? void 0 : o.value.length) === 0)
3437
+ return !1;
3438
+ (r = c(_)) == null || r.forEach((m) => {
3439
+ var N, d, v, k, t;
3440
+ se != null && se.find((i) => {
3441
+ var u, y;
3442
+ return ((u = i == null ? void 0 : i.key) == null ? void 0 : u.toUpperCase()) === ((y = m == null ? void 0 : m.key) == null ? void 0 : y.toUpperCase());
3443
+ }) ? C.push({
3444
+ comp: ((N = se == null ? void 0 : se.find((i) => {
3445
+ var u, y;
3446
+ return ((u = i == null ? void 0 : i.key) == null ? void 0 : u.toUpperCase()) === ((y = m == null ? void 0 : m.key) == null ? void 0 : y.toUpperCase());
3447
+ })) == null ? void 0 : N.value) ?? "",
3448
+ name: (d = m == null ? void 0 : m.value) == null ? void 0 : d.replace(/[’]|[‘]|[']/g, ""),
3449
+ compData: []
3450
+ }) : ae != null && ae.find((i) => {
3451
+ var u, y;
3452
+ return ((u = i == null ? void 0 : i.key) == null ? void 0 : u.toUpperCase()) === ((y = m == null ? void 0 : m.key) == null ? void 0 : y.toUpperCase());
3453
+ }) && ((C == null ? void 0 : C.length) === 0 && (v = m.key) != null && v.includes("Menus") && C.push({
3454
+ comp: "Menu",
3455
+ name: "",
3456
+ compData: []
3457
+ }), (k = C == null ? void 0 : C[(C == null ? void 0 : C.length) - 1]) != null && k.compData && C[(C == null ? void 0 : C.length) - 1].compData.push({
3458
+ key: (t = ae == null ? void 0 : ae.find((i) => {
3459
+ var u, y;
3460
+ return ((u = i == null ? void 0 : i.key) == null ? void 0 : u.toUpperCase()) === ((y = m == null ? void 0 : m.key) == null ? void 0 : y.toUpperCase());
3461
+ })) == null ? void 0 : t.value,
3462
+ contents: m == null ? void 0 : m.value
3463
+ }));
3464
+ });
3465
+ let T = (p = c(C)) == null ? void 0 : p.map((m) => {
3466
+ var N;
3467
+ return m != null && m.compData && (m.compData = (N = m == null ? void 0 : m.compData) == null ? void 0 : N.map((d) => {
3468
+ var v, k, t, i, u, y, P, J, R, I, F;
3469
+ if ((d == null ? void 0 : d.key) === "formFlex")
3470
+ d.contents = ((k = (v = d.contents) == null ? void 0 : v.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : k.toUpperCase()) !== "Vertical".toUpperCase();
3471
+ else if ((d == null ? void 0 : d.key) === "groupContents")
3472
+ d.contents = (t = c(d.contents)) == null ? void 0 : t.map((B) => fs(c(B)));
3473
+ else if (Array.isArray(d == null ? void 0 : d.contents))
3474
+ d.contents = _l(d.contents);
3475
+ else if (((u = (i = d == null ? void 0 : d.contents) == null ? void 0 : i.trim()) != null && u.startsWith("[") || (P = (y = d.contents) == null ? void 0 : y.trim()) != null && P.startsWith("【")) && ((R = (J = d.contents) == null ? void 0 : J.trim()) != null && R.endsWith("]") || (F = (I = d.contents) == null ? void 0 : I.trim()) != null && F.endsWith("】")))
3476
+ d.contents = hs(c(d.contents));
3477
+ else {
3478
+ if (!d.contents) return;
3479
+ d.contents = kl(c(d.contents));
3480
+ }
3481
+ return d;
3482
+ })), m;
3483
+ });
3484
+ return T = (g = c(T)) == null ? void 0 : g.map((m) => {
3485
+ var N;
3486
+ return (m == null ? void 0 : m.comp) === "Group" && (m.compData = (N = m.compData) == null ? void 0 : N.map((d) => {
3487
+ var k;
3488
+ let v = [];
3489
+ return (k = d.contents) == null || k.forEach((t) => {
3490
+ var i, u, y, P, J, R, I, F, B, b, L, $;
3491
+ if (se != null && se.find((S) => {
3492
+ var E, K, W;
3493
+ return ((E = S == null ? void 0 : S.key) == null ? void 0 : E.toUpperCase()) === ((W = (K = Object.keys(t)) == null ? void 0 : K[0]) == null ? void 0 : W.toUpperCase());
3494
+ }))
3495
+ v.push({
3496
+ comp: (i = se == null ? void 0 : se.find((S) => {
3497
+ var E, K, W;
3498
+ return ((E = S == null ? void 0 : S.key) == null ? void 0 : E.toUpperCase()) === ((W = (K = Object.keys(t)) == null ? void 0 : K[0]) == null ? void 0 : W.toUpperCase());
3499
+ })) == null ? void 0 : i.value,
3500
+ name: (y = (u = Object.values(t)) == null ? void 0 : u[0]) == null ? void 0 : y.replace(/[’]|[‘]|[']/g, ""),
3501
+ compData: []
3502
+ });
3503
+ else if (ae != null && ae.find((S) => {
3504
+ var E, K, W;
3505
+ return ((E = S == null ? void 0 : S.key) == null ? void 0 : E.toUpperCase()) === ((W = (K = Object.keys(t)) == null ? void 0 : K[0]) == null ? void 0 : W.toUpperCase());
3506
+ })) {
3507
+ if ((v == null ? void 0 : v.length) === 0) return;
3508
+ (P = v == null ? void 0 : v[(v == null ? void 0 : v.length) - 1]) != null && P.compData && v[(v == null ? void 0 : v.length) - 1].compData.push({
3509
+ key: (J = ae == null ? void 0 : ae.find((S) => {
3510
+ var E, K, W;
3511
+ return ((E = S == null ? void 0 : S.key) == null ? void 0 : E.toUpperCase()) === ((W = (K = Object.keys(t)) == null ? void 0 : K[0]) == null ? void 0 : W.toUpperCase());
3512
+ })) == null ? void 0 : J.value,
3513
+ contents: (R = Object.values(t)) == null ? void 0 : R[0]
3514
+ });
3515
+ } else if ((F = (I = Object.keys(t)) == null ? void 0 : I[0]) != null && F.includes("$")) {
3516
+ const S = (b = (B = Object.keys(c(t))) == null ? void 0 : B[0]) == null ? void 0 : b.split("$");
3517
+ v[(v == null ? void 0 : v.length) - 1].compData.push({
3518
+ key: (L = ae == null ? void 0 : ae.find((E) => {
3519
+ var K, W;
3520
+ return ((K = E == null ? void 0 : E.key) == null ? void 0 : K.toUpperCase()) === ((W = S == null ? void 0 : S[0]) == null ? void 0 : W.toUpperCase());
3521
+ })) == null ? void 0 : L.value,
3522
+ contents: ($ = Object.values(t)) == null ? void 0 : $[0],
3523
+ selectLabel: S == null ? void 0 : S[1]
3524
+ });
3525
+ }
3526
+ return t;
3527
+ }), d.contents = v, d;
3528
+ })), m;
3529
+ }), T;
3530
+ } catch {
3531
+ return !1;
3532
+ }
3533
+ }, tl = U(0), xl = (n) => {
3534
+ const s = [];
3535
+ let l = null;
3536
+ for (let e = 0; e < n.length; e++) {
3537
+ const a = n[e];
3538
+ if (Array.isArray(a))
3539
+ l && (l.children = xl(a));
3540
+ else {
3541
+ const o = { label: a };
3542
+ s.push(o), l = o;
3543
+ }
3544
+ }
3545
+ return s;
3546
+ }, $l = (n) => {
3547
+ let s = 0;
3548
+ for (const l of n)
3549
+ s++, l.children && (s += $l(l.children));
3550
+ return s;
3551
+ }, Al = (n, s, l = []) => {
3552
+ let e = 0;
3553
+ for (const a of s) {
3554
+ if (e >= n.length) break;
3555
+ const o = [...n[e]];
3556
+ if (l.push(o), e++, a.children && a.children.length > 0) {
3557
+ const r = [];
3558
+ Al(
3559
+ n.slice(e),
3560
+ a.children,
3561
+ r
3562
+ ), r.length > 0 && (o.push(r), e += $l(a.children));
3563
+ }
3564
+ }
3565
+ return l;
3566
+ }, ks = (n, s) => {
3567
+ let l = [];
3568
+ return n == null || n.forEach((a) => {
3569
+ a.some((o) => Array.isArray(o)) ? l.push(...a) : l.push(a);
3570
+ }), Al(l, s);
3571
+ }, Ze = (n) => {
3572
+ const s = { label: n[0].trim() };
3573
+ if (n.length > 1) {
3574
+ const l = n.slice(1);
3575
+ l.length === 1 && Array.isArray(l[0]) ? s.children = l[0].map(
3576
+ (e) => Array.isArray(e) ? Ze(e) : { label: e.trim() }
3577
+ ) : s.children = l.map(
3578
+ (e) => Array.isArray(e) ? Ze(e) : { label: e.trim() }
3579
+ );
3580
+ }
3581
+ return s;
3582
+ }, rl = (n) => {
3583
+ let s = n.replace(/:([^{}\[\],\s]+)([,\]}])/g, ':"$1"$2');
3584
+ return s = s.replace(/:}(?=,|]|}|$)/g, ':""}'), s = s.replace(/:,(?=\s*")/g, ':"",'), s = s.replace(
3585
+ /(https?|HTTPS?):"\/\/([^"]+)"/gi,
3586
+ (l, e, a) => `"${e}://${a}"`
3587
+ ), s = s.replace(
3588
+ /(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,
3589
+ '$1"$2"$3'
3590
+ ), s;
3591
+ }, Cs = (n) => {
3592
+ var l;
3593
+ return n.some((e) => !Array.isArray(e)) ? n : (l = c(n)) == null ? void 0 : l.map((e) => {
3594
+ let a = [];
3595
+ return e.some((o) => Array.isArray(o)) ? e == null || e.forEach((o) => {
3596
+ Array.isArray(o) && a.push(Ze(o));
3597
+ }) : e.some((o) => o.includes("[")) ? a.push(e) : a = e.map((o) => ({ label: o.trim() })), a;
3598
+ });
3599
+ }, wl = (n, s, l) => {
3600
+ let e = n, a = l, o = s;
3601
+ return o.children && (Array.isArray(a[a.length - 1]) ? a[a.length - 1].push(e[0]) : a.push(e[0]), e.shift(), o = o.children), Array.isArray(o) && o.forEach((r) => {
3602
+ if (r.children) {
3603
+ const p = wl(e, r, a);
3604
+ a = p[0], e = p[1];
3605
+ }
3606
+ }), [a, e];
3607
+ }, _s = (n, s) => {
3608
+ let l = n, e = [];
3609
+ return s.length > 0 ? s == null || s.forEach((a) => {
3610
+ let o = l == null ? void 0 : l[0];
3611
+ l.shift();
3612
+ const r = wl(c(l), a, o);
3613
+ o = r[0], l = r[1], e.push(o);
3614
+ }) : e = l, e;
3615
+ }, qe = (n, s) => {
3616
+ const l = Cs(c(n));
3617
+ return _s(l, s);
3618
+ }, xs = (n) => {
3619
+ const s = [];
3620
+ let l = 0;
3621
+ const e = n.length;
3622
+ for (; l < e; ) {
3623
+ const a = n[l];
3624
+ a.key === "tableColumns" && l + 1 < e && n[l + 1].key === "tableContents" ? (s.push({
3625
+ comp: "Table",
3626
+ compData: [a, n[l + 1]],
3627
+ name: ""
3628
+ }), l += 2) : (s.push(a), l += 1);
3629
+ }
3630
+ return s;
3631
+ }, Il = (n) => qe([n], []), Re = (n) => {
3632
+ const s = [];
3633
+ return n == null || n.forEach((l) => l == null ? void 0 : l.forEach((a) => {
3634
+ var o, r;
3635
+ tl.value++, s.push({
3636
+ id: tl.value,
3637
+ key: (o = Object.keys(a)) == null ? void 0 : o[0],
3638
+ value: (r = Object.values(a)) == null ? void 0 : r[0],
3639
+ // 如果值为空,则key设为空字符串,否则保留原值
3640
+ width: l.length
3641
+ });
3642
+ })), s;
3643
+ }, il = (n) => {
3644
+ let s = xs(n);
3645
+ return s = s == null ? void 0 : s.map((l) => {
3646
+ var e, a, o, r;
3647
+ if (l.comp === "Table")
3648
+ (e = l.compData) != null && e.find((p) => (p == null ? void 0 : p.key) === "header") || (l.compData = (a = l.compData) == null ? void 0 : a.map((p) => (p.key === "tableColumns" ? p = {
3649
+ key: "header",
3650
+ contents: qe(p.value, [])
3651
+ } : p = {
3652
+ key: p.key,
3653
+ contents: p.value
3654
+ }, p)), l.compData.push({
3655
+ key: "extraButton",
3656
+ contents: [{ label: "新增" }]
3657
+ }), l.compData.push({
3658
+ key: "rowButton",
3659
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
3660
+ }));
3661
+ else if (l.key === "form") {
3662
+ const p = (o = l == null ? void 0 : l.value) == null ? void 0 : o.map((g) => (Array.isArray(g) || (g = [g]), g));
3663
+ l = {
3664
+ comp: "Form",
3665
+ compData: [
3666
+ {
3667
+ key: "formFlex",
3668
+ contents: ""
3669
+ },
3670
+ {
3671
+ key: "formContent",
3672
+ contents: Re(p)
3673
+ }
3674
+ ],
3675
+ name: ""
3676
+ };
3677
+ } else if (l.key === "formTop") {
3678
+ const p = (r = l == null ? void 0 : l.value) == null ? void 0 : r.map((g) => (Array.isArray(g) || (g = [g]), g));
3679
+ l = {
3680
+ comp: "FormTop",
3681
+ compData: [
3682
+ {
3683
+ key: "formFlex",
3684
+ contents: ""
3685
+ },
3686
+ {
3687
+ key: "formContent",
3688
+ contents: Re(p)
3689
+ },
3690
+ {
3691
+ key: "enableWrap",
3692
+ contents: !0
3693
+ },
3694
+ {
3695
+ key: "formButton",
3696
+ contents: [{
3697
+ label: "查询"
3698
+ }, {
3699
+ label: "重置"
3700
+ }]
3701
+ }
3702
+ ],
3703
+ name: ""
3704
+ };
3705
+ }
3706
+ return l;
3707
+ }), s;
3708
+ }, $s = (n, s) => {
3709
+ var p, g, h, f, _, C;
3710
+ const l = [], e = xl((g = (p = n == null ? void 0 : n.find((T) => T.key === "tableIndex")) == null ? void 0 : p.value) == null ? void 0 : g[0]);
3711
+ l.push({
3712
+ key: "tableIndexColumn",
3713
+ contents: s
3714
+ }), l.push({
3715
+ key: "tableIndex",
3716
+ contents: e
3717
+ });
3718
+ let a = [];
3719
+ const o = (h = n == null ? void 0 : n.find((T) => T.key === "tableColumns")) == null ? void 0 : h.value;
3720
+ o.length === 1 && !(o != null && o[0].some((T) => Array.isArray(T))) ? a = (f = o == null ? void 0 : o[0]) == null ? void 0 : f.map((T) => ({ label: T })) : a = qe((_ = n == null ? void 0 : n.find((T) => T.key === "tableColumns")) == null ? void 0 : _.value, e), l.push({
3721
+ key: "header",
3722
+ contents: a
3723
+ });
3724
+ const r = ks((C = n == null ? void 0 : n.find((T) => T.key === "tableContents")) == null ? void 0 : C.value, e);
3725
+ return l.push({
3726
+ key: "tableContents",
3727
+ contents: r
3728
+ }), l.push({
3729
+ key: "extraButton",
3730
+ contents: [{ label: "新增" }]
3731
+ }), l.push({
3732
+ key: "rowButton",
3733
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
3734
+ }), l;
3735
+ }, Tl = (n) => n.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, (s, l, e) => {
3736
+ const a = Tl(e);
3737
+ return `"${l}",${a}`;
3738
+ }), Fe = (n) => {
3739
+ const s = n.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
3740
+ return Tl(s).replace(/^"(.*)"$/, "$1");
3741
+ }, As = (n) => {
3742
+ const s = /* @__PURE__ */ new Set();
3743
+ return n.filter((l) => {
3744
+ const e = JSON.stringify(l);
3745
+ return s.has(e) ? !1 : s.add(e);
3746
+ });
3747
+ }, ul = (n) => {
3748
+ var l;
3749
+ let s = [];
3750
+ return (l = c(n)) == null || l.forEach((e) => {
3751
+ var a;
3752
+ (a = e.contents) == null || a.forEach((o) => {
3753
+ s.push(o);
3754
+ });
3755
+ }), s = As(s), s.push({
3756
+ label: "操作"
3757
+ }), [s];
3758
+ }, ws = (n, s) => n.reduce((l, e, a) => {
3759
+ const o = Math.floor(a / s);
3760
+ return l[o] || (l[o] = []), l[o].push(e), l;
3761
+ }, []), El = (n) => n.reduce((s, l) => l.children && l.children.length > 0 ? s + El(l.children) : s + 1, 0), Is = (n, s) => {
3762
+ var e;
3763
+ let l = [];
3764
+ return (e = ws(n, El(s == null ? void 0 : s[0]) - 1)) == null || e.forEach((a) => {
3765
+ let o = [];
3766
+ a.forEach((r) => {
3767
+ var p;
3768
+ Array.isArray(r.contents) ? (p = r.contents) == null || p.forEach((g) => {
3769
+ o.push(g);
3770
+ }) : o.push(r.contents);
3771
+ }), l.push(o);
3772
+ }), [l];
3773
+ }, Ts = ["方法体", "输入", "输出"], cl = U(1), Qe = (n) => {
3774
+ let s;
3775
+ n.replaceAll(" ", `\r
3776
+ `).includes(`\r
3777
+ `) ? s = n.replaceAll(" ", `\r
3778
+ `).split(`\r
3779
+ `).filter((a) => a.trim() !== "") : s = n.replaceAll(" ", `\r
3780
+ `).split(`
3781
+ `).filter((a) => a.trim() !== "");
3782
+ const l = [];
3783
+ let e = "";
3784
+ for (const a of s)
3785
+ a.includes("{") || e.includes("{") || a.includes("[") || e.includes("[") || a.includes("【") || e.includes("【") || a.includes("(") || e.includes("(") || a.includes("(") || e.includes("(") || a.includes("/*") || e.includes("/*") ? (e += a.trim(), c(e).split("{").length - 1 === c(e).split("}").length - 1 && c(e).split("【").length - 1 === c(e).split("】").length - 1 && c(e).split("[").length - 1 === c(e).split("]").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("/*").length - 1 === c(e).split("*/").length - 1 && e[e.length - 1] !== "," && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(a.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
3786
+ return l;
3787
+ }, Es = (n) => {
3788
+ const [s, l] = n.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), a = l.replace(/^['"]|['"]$/g, "");
3789
+ return { key: e, value: a };
3790
+ }, Ve = (n) => {
3791
+ let s;
3792
+ n != null && n.includes(":") ? s = n.split(":").filter((a) => a.trim() !== "") : s = n == null ? void 0 : n.split(":").filter((a) => a.trim() !== "");
3793
+ const l = [];
3794
+ let e = "";
3795
+ for (const a of s)
3796
+ a.includes("{") || e.includes("{") || a.includes("[") || e.includes("[") || a.includes("【") || e.includes("【") || a.includes("(") || e.includes("(") || a.includes("(") || e.includes("(") || a.includes("/*") || e.includes("/*") ? (e = e !== "" ? e + ":" + a.trim() : a.trim(), c(e).split("{").length - 1 === c(e).split("}").length - 1 && c(e).split("【").length - 1 === c(e).split("】").length - 1 && c(e).split("[").length - 1 === c(e).split("]").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("(").length - 1 === c(e).split(")").length - 1 && c(e).split("/*").length - 1 === c(e).split("*/").length - 1 && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(a.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
3797
+ return l;
3798
+ }, Ds = (n) => /^[\x00-\x7F]*$/.test(n), Os = (n) => {
3799
+ var a, o;
3800
+ const s = (a = n.map((r) => {
3801
+ var g, h;
3802
+ let p = (h = (g = r.key.split("(")) == null ? void 0 : g[1]) == null ? void 0 : h.trim();
3803
+ return p == null ? void 0 : p.slice(0, p.length - 1);
3804
+ })) == null ? void 0 : a.filter((r) => r), l = s == null ? void 0 : s.map((r) => {
3805
+ var g;
3806
+ return (g = Ve(r)) == null ? void 0 : g.map((h) => {
3807
+ var f;
3808
+ if (h.includes("{")) {
3809
+ let _ = (f = h.split(":")) == null ? void 0 : f[0];
3810
+ h = _.slice(1, _.length);
3811
+ }
3812
+ return h;
3813
+ });
3814
+ }).filter((r) => r.length !== 0), e = (o = l == null ? void 0 : l.filter((r) => r.length !== 0)) == null ? void 0 : o.map((r) => {
3815
+ let p = "";
3816
+ return r.forEach((g) => {
3817
+ g.includes("{") || (p = p === "" ? p + c(g) : p + "/" + c(g));
3818
+ }), p;
3819
+ });
3820
+ return _l([...new Set(e)]);
3821
+ }, Dl = (n) => {
3822
+ var l, e, a, o, r, p, g, h;
3823
+ const s = (e = (l = n.split("(")) == null ? void 0 : l[1]) == null ? void 0 : e.trim();
3824
+ return ((a = Ve(s.slice(0, s.length - 1))) == null ? void 0 : a.length) > 0 ? s.slice(0, s.length - 1) : (h = (g = (p = (r = (o = n.split("(")) == null ? void 0 : o[1]) == null ? void 0 : r.trim()) == null ? void 0 : p.split(")")) == null ? void 0 : g[0]) == null ? void 0 : h.trim();
3825
+ }, Bs = (n) => {
3826
+ var a;
3827
+ if (!n) return;
3828
+ const s = Dl(n), l = (a = Ve(s)) == null ? void 0 : a.map((o) => {
3829
+ var r;
3830
+ if (o.includes("{")) {
3831
+ let p = (r = o.split(":")) == null ? void 0 : r[0];
3832
+ o = p.slice(1, p.length);
3833
+ }
3834
+ return o;
3835
+ });
3836
+ let e = "";
3837
+ return l.forEach((o) => {
3838
+ o.includes("{") || (e = e === "" ? e + c(o) : e + "/" + c(o));
3839
+ }), e;
3840
+ }, Ns = (n) => {
3841
+ const s = n.match(/\[(.*)\]/s);
3842
+ if (s) {
3843
+ const l = `[${s[1]}]`;
3844
+ try {
3845
+ const e = l.replace(/([^\[\],\s]+)/g, '"$1"');
3846
+ return JSON.parse(e);
3847
+ } catch {
3848
+ return JSON.parse(l.replace(/\[(\s*)(,|])/g, '[""$2').replace(/([^\[\],\s]+)/g, '"$1"').replace(/""/g, '"'));
3849
+ }
3850
+ }
3851
+ }, Fs = (n) => {
3852
+ var o;
3853
+ if (!n) return;
3854
+ const s = Dl(n);
3855
+ let l = [], e = [], a = [];
3856
+ return (o = Ve(s)) == null || o.forEach((r) => {
3857
+ var p;
3858
+ r.includes("[") ? l.push(Ns(r)) : r.includes("{") && (Ds((p = r.slice(1, r.length - 1).split(":")) == null ? void 0 : p[0]) ? a.push(JSON.parse(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : ke(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) ? e.push(JSON.parse(r.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : r.includes("$"));
3859
+ }), [l, e, a];
3860
+ }, Ss = (n) => {
3861
+ const s = [];
3862
+ let l = "";
3863
+ for (const e of n)
3864
+ e.includes("[") || l.includes("[") || e.includes("/*") || l.includes("/*") ? (l += e.trim(), c(l).split("{").length - 1 === c(l).split("}").length - 1 && c(l).split("【").length - 1 === c(l).split("】").length - 1 && c(l).split("[").length - 1 === c(l).split("]").length - 1 && c(l).split("(").length - 1 === c(l).split(")").length - 1 && c(l).split("(").length - 1 === c(l).split(")").length - 1 && c(l).split("/*").length - 1 === c(l).split("*/").length - 1 && (s.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : s.push(e.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
3865
+ return s;
3866
+ }, pl = (n) => {
3867
+ var r, p;
3868
+ const s = [], l = /(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/, e = n.match(l);
3869
+ if (e) {
3870
+ const g = e[1] || e[3], h = e[2] || e[4];
3871
+ if (g && h) {
3872
+ const f = `${g}/${h}`;
3873
+ s.push(f);
3874
+ }
3875
+ }
3876
+ const a = /(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i, o = n.match(a);
3877
+ return o ? s.push(o[0].replace(/\)+$/, "")) : (n == null ? void 0 : n.split(",").length) === 2 && s.push((p = (r = n == null ? void 0 : n.split(",")) == null ? void 0 : r[1]) == null ? void 0 : p.trim()), s;
3878
+ }, ze = (n) => {
3879
+ let s = n.replace(/\[\s*,\s*,/g, '[{"": ""}, {"": ""},');
3880
+ return s = s.replace(/\[\s*,/g, '[{"": ""},'), s = s.replace(/,\s*,/g, ', {"": ""},'), s = s.replace(/,\s*\]/g, ', {"": ""}]'), s = s.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,\]}])/g, (l, e, a, o, r) => a.includes("'") ? `:${e}${a}${o}${r}` : `:${e}"${a}"${o}${r}`), s = s.replace(/:\s*([,\]}])/g, ': ""$1'), s;
3881
+ }, Ls = (n) => !/\[[^\]]*\{[^\]]*\]/.test(n), js = (n) => {
3882
+ const s = c(n).match(/(\w+)\(['"]([^'"]+)['"]:\s*\{['"]([^'"]+)['"]\}\)/), l = s ? `${s[2]}/${s[3]}` : null, e = n.match(/\[\{([^}]+)\}\]/), a = e == null ? void 0 : e[1].replaceAll(":", "").replaceAll("'", '"').trim();
3883
+ let o = null;
3884
+ if (a)
3885
+ try {
3886
+ o = JSON.parse(a);
3887
+ } catch (r) {
3888
+ console.error("解析数组失败:", r);
3889
+ }
3890
+ return [l, o];
3891
+ }, Us = (n) => {
3892
+ var p, g, h, f, _, C, T, m, N, d, v;
3893
+ let s = [], l = [], e = {}, a = [], o = n.trim(), r = [];
3894
+ if (o.trim().includes("输入") && o.trim().includes("输出")) {
3895
+ let k = [], t = n.trim();
3896
+ t = c(t).slice(1, c(t).length - 1);
3897
+ const i = /(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;
3898
+ (m = t.match(i)) == null || m.forEach((u, y) => {
3899
+ var R;
3900
+ const P = u;
3901
+ let J = [];
3902
+ (R = P.slice(1, P.length - 1).replace(":", "$:").split("$:")) == null || R.forEach((I) => {
3903
+ var F, B, b;
3904
+ if (Ts.find((L) => I.includes(L)))
3905
+ if (!I.includes("=="))
3906
+ J.push({ key: "tableIndexColumn", contents: I.replaceAll("'", "") });
3907
+ else {
3908
+ let L = [];
3909
+ const $ = I.replaceAll("'", "").split("==");
3910
+ L.push($ == null ? void 0 : $[0]), $ != null && $[1].includes("[") ? L.push($ == null ? void 0 : $[1].trim().slice(1, ($ == null ? void 0 : $[1].length) - 1).split(",")) : L.push([$ == null ? void 0 : $[1]]), J.push({ key: "header", contents: [(B = (F = Il([L])) == null ? void 0 : F[0]) == null ? void 0 : B[0]] });
3911
+ }
3912
+ else {
3913
+ let L = I.trim().replaceAll(",", ",").replaceAll("'", '"');
3914
+ if (y % 3 === 0)
3915
+ L.slice(1, L.length - 1).includes("[") ? k.push({
3916
+ key: "tableIndex",
3917
+ contents: [{ label: L }]
3918
+ }) : k.push({
3919
+ key: "tableIndex",
3920
+ contents: [{ label: L.slice(1, L.length - 1) }]
3921
+ });
3922
+ else if ((L == null ? void 0 : L[0]) === "{") {
3923
+ let $ = [];
3924
+ const S = L.slice(1, L.length - 1).split(":");
3925
+ if (S.every((E) => ke(E.trim()))) {
3926
+ $.push({ key: "tableContentName", contents: "详情" });
3927
+ let E = [];
3928
+ S.forEach((K, W) => {
3929
+ if (W === 0) {
3930
+ const ee = JSON.parse(K).map((ne) => ({ label: ne }));
3931
+ ee.push({
3932
+ label: "操作"
3933
+ }), E.push({
3934
+ key: "header",
3935
+ contents: ee
3936
+ });
3937
+ } else
3938
+ E.push({
3939
+ key: "tableContents",
3940
+ contents: JSON.parse(K)
3941
+ });
3942
+ }), E.push({
3943
+ key: "extraButton",
3944
+ contents: [{ label: "新增" }]
3945
+ }), E.push({
3946
+ key: "rowButton",
3947
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
3948
+ }), $.push({
3949
+ comp: "Table",
3950
+ compData: E,
3951
+ name: ""
3952
+ }), k.push({
3953
+ key: "tableContents",
3954
+ contents: [$]
3955
+ });
3956
+ }
3957
+ } else {
3958
+ let $ = L;
3959
+ $.slice(1, $.length - 1).includes("[") || $.slice(1, $.length - 1).includes("{") ? ke(rl($.replace(/\s+/g, ""))) && ((b = JSON.parse(rl($.replace(/\s+/g, "")))) == null || b.map((S) => {
3960
+ if (Array.isArray(S == null ? void 0 : S[0])) {
3961
+ const E = [];
3962
+ E.push({ key: "tableContentName", contents: "详情" });
3963
+ let K = [];
3964
+ S.forEach((W) => {
3965
+ W.forEach((ee) => {
3966
+ var ne, oe;
3967
+ cl.value++, K.push({
3968
+ id: cl.value,
3969
+ key: (ne = Object.keys(ee)) == null ? void 0 : ne[0],
3970
+ value: (oe = Object.values(ee)) == null ? void 0 : oe[0],
3971
+ width: W.length
3972
+ });
3973
+ });
3974
+ }), E.push({
3975
+ comp: "Form",
3976
+ compData: [{
3977
+ key: "formFlex",
3978
+ contents: ""
3979
+ }, {
3980
+ key: "formContent",
3981
+ contents: K
3982
+ }],
3983
+ name: ""
3984
+ }), k.push({
3985
+ key: "tableContents",
3986
+ contents: [E]
3987
+ });
3988
+ } else
3989
+ k.push({
3990
+ key: "tableContents",
3991
+ contents: S == null ? void 0 : S[0]
3992
+ });
3993
+ })) : k.push({
3994
+ key: "tableContents",
3995
+ contents: $.trim().slice(1, $.length - 1)
3996
+ });
3997
+ }
3998
+ }
3999
+ }), k.push(J == null ? void 0 : J[0]);
4000
+ }), r.push({
4001
+ key: "tableIndex",
4002
+ contents: (N = k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "tableIndex")) == null ? void 0 : N.map((u) => {
4003
+ var y;
4004
+ return (y = u.contents) == null ? void 0 : y[0];
4005
+ })
4006
+ }), r.push({
4007
+ key: "extraButton",
4008
+ contents: [{ label: "新增" }]
4009
+ }), r.push({
4010
+ key: "rowButton",
4011
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
4012
+ }), r.push({
4013
+ key: "tableIndexColumn",
4014
+ contents: (v = (d = k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "tableIndexColumn")) == null ? void 0 : d[0]) == null ? void 0 : v.contents
4015
+ }), r.push({
4016
+ key: "header",
4017
+ contents: ul(k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "header"))
4018
+ }), r.push({
4019
+ key: "tableContents",
4020
+ contents: Is(k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "tableContents"), ul(k == null ? void 0 : k.filter((u) => (u == null ? void 0 : u.key) === "header")))
4021
+ });
4022
+ } else {
4023
+ const k = (p = o.trim().split(",$")) == null ? void 0 : p[0];
4024
+ k[0] === "[" ? o = k.slice(1, k.length - 1) : o.includes(",$") && (o = (g = o.trim().split(",$")) == null ? void 0 : g[0]);
4025
+ let t;
4026
+ if (o.includes("$")) {
4027
+ o = c(o), e.method = (f = (h = c(o).trim()) == null ? void 0 : h.slice(1, o.length).split("(")) == null ? void 0 : f[0];
4028
+ let i;
4029
+ pl(o.slice(1, o.length - 2)).length > 1 ? i = pl(o.slice(1, o.length - 2)) : i = js(o), e.value = i;
4030
+ } else
4031
+ ke("[" + ze(o).replaceAll("'", '"') + "]") && !Ls(ze(o).replaceAll("'", '"')) ? (o = JSON.parse("[" + ze(o).replaceAll("'", '"') + "]"), a = o) : t = (C = (_ = c(o).split("}")) == null ? void 0 : _.filter((i) => i !== "")) == null ? void 0 : C.map((i) => {
4032
+ let u = i;
4033
+ return u[0] === "," ? u = u.slice(2, u.length) : u = u.slice(1, u.length), u;
4034
+ });
4035
+ (T = c(t)) == null || T.forEach((i) => {
4036
+ var u, y, P, J, R, I, F, B, b, L, $, S, E, K, W;
4037
+ if (i.includes("==")) {
4038
+ const ee = (S = i == null ? void 0 : i.split(":")) == null ? void 0 : S[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'), ne = (E = i == null ? void 0 : i.split(":")) == null ? void 0 : E[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
4039
+ if (ke(ne.trim()) ? l.push(JSON.parse(ne.trim())) : l.push(JSON.parse(ne.replaceAll("'", '"').trim())), ee[0] !== "[") {
4040
+ let oe = [];
4041
+ ke("[" + Fe(ee) + "]") ? oe.push(JSON.parse("[" + Fe(ee) + "]")) : ke("[" + Fe(ee).replaceAll("==", ",") + "]") && oe.push(JSON.parse("[" + Fe(ee).replaceAll("==", ",") + "]"));
4042
+ const ce = c(oe);
4043
+ ce.push(["操作"]), s.push(ce);
4044
+ } else {
4045
+ const oe = (K = ee.slice(1, ee.length - 1).replaceAll(",", ",|")) == null ? void 0 : K.split("|"), ce = (W = Ss(oe)) == null ? void 0 : W.map((A) => ((A == null ? void 0 : A[A.length - 1]) === "," && (A = A.slice(0, A.length - 1)), A));
4046
+ let de = [];
4047
+ ce == null || ce.forEach((A) => {
4048
+ var O, D, H, M;
4049
+ let x = [];
4050
+ x.push((O = A.split("==")) == null ? void 0 : O[0].trim().replace(/^"|"$/g, "")), ((D = A.split("==")) == null ? void 0 : D[1].trim()[0]) === "[" ? x.push(JSON.parse((H = A.split("==")) == null ? void 0 : H[1].trim())) : x.push([JSON.parse((M = A.split("==")) == null ? void 0 : M[1].trim())]), de.push(x);
4051
+ });
4052
+ const me = c(de);
4053
+ me.push(["操作"]), s.push(me);
4054
+ }
4055
+ } else {
4056
+ if (ke((u = i == null ? void 0 : i.split(":")) == null ? void 0 : u[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'))) {
4057
+ let ee = JSON.parse((y = i == null ? void 0 : i.split(":")) == null ? void 0 : y[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"').replaceAll("'", '"'));
4058
+ Array.isArray(ee) || (ee = [ee]), ee.push("操作"), s.push(ee);
4059
+ }
4060
+ ke((R = (J = (P = i == null ? void 0 : i.split(":")) == null ? void 0 : P[1]) == null ? void 0 : J.replace(/^"|"$/g, "'")) == null ? void 0 : R.replace(/'([^']+)'/g, '"$1"')) ? l.push(JSON.parse((I = i == null ? void 0 : i.split(":")) == null ? void 0 : I[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : ke((L = (b = (B = (F = i == null ? void 0 : i.split(":")) == null ? void 0 : F[1]) == null ? void 0 : B.replace(/^"|"$/g, "'")) == null ? void 0 : b.replaceAll("'", '"')) == null ? void 0 : L.replace(/'([^']+)'/g, '"$1"')) && l.push(JSON.parse(($ = i == null ? void 0 : i.split(":")) == null ? void 0 : $[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
4061
+ }
4062
+ });
4063
+ }
4064
+ return [s, l, r, e, a];
4065
+ }, Ps = (n) => {
4066
+ const s = [], l = Bs(n == null ? void 0 : n.key), e = Fs(n == null ? void 0 : n.key), a = Us(n == null ? void 0 : n.value), o = e == null ? void 0 : e[0], r = a == null ? void 0 : a[4], p = e == null ? void 0 : e[1], g = e == null ? void 0 : e[2], h = a == null ? void 0 : a[0], f = a == null ? void 0 : a[1], _ = a == null ? void 0 : a[2], C = a == null ? void 0 : a[3];
4067
+ return l && s.push({
4068
+ key: "contentPath",
4069
+ value: l
4070
+ }), (o == null ? void 0 : o.length) > 0 && s.push({
4071
+ key: "tableIndex",
4072
+ value: o
4073
+ }), C && s.push({
4074
+ key: "extraButton",
4075
+ value: C
4076
+ }), (r == null ? void 0 : r.length) > 0 && s.push({
4077
+ key: "form",
4078
+ value: r
4079
+ }), (p == null ? void 0 : p.length) > 0 && s.push({
4080
+ key: "formTop",
4081
+ value: p
4082
+ }), (g == null ? void 0 : g.length) > 0 && s.push({
4083
+ key: "extra",
4084
+ value: g
4085
+ }), (_ == null ? void 0 : _.length) > 0 && s.push({
4086
+ comp: "Table",
4087
+ compData: _,
4088
+ name: ""
4089
+ }), (h == null ? void 0 : h.length) > 0 && s.push({
4090
+ key: "tableColumns",
4091
+ value: h
4092
+ }), (f == null ? void 0 : f.length) > 0 && s.push({
4093
+ key: "tableContents",
4094
+ value: f
4095
+ }), s;
4096
+ }, Rs = (n) => {
4097
+ let s = [], l = [];
4098
+ n == null || n.forEach((a) => {
4099
+ Array.isArray(a) && (a == null || a.forEach((o) => {
4100
+ var r;
4101
+ o.comp === "FormTop" && ((r = o.compData) == null || r.forEach((p) => {
4102
+ (p == null ? void 0 : p.key) === "formContent" && (l = [...l, ...p.contents]);
4103
+ }));
4104
+ }));
4105
+ });
4106
+ const e = l.reduce((a, o) => a.find((p) => (p == null ? void 0 : p.key) === (o == null ? void 0 : o.key)) ? a : a.concat([o]), []);
4107
+ return e.length !== 0 && s.push([{
4108
+ comp: "FormTop",
4109
+ compData: [{
4110
+ key: "formFlex",
4111
+ contents: ""
4112
+ }, {
4113
+ key: "formContent",
4114
+ contents: e
4115
+ }, {
4116
+ key: "enableWrap",
4117
+ contents: !0
4118
+ }, {
4119
+ key: "formButton",
4120
+ contents: [{
4121
+ label: "查询"
4122
+ }, {
4123
+ label: "重置"
4124
+ }]
4125
+ }]
4126
+ }]), n == null || n.forEach((a) => {
4127
+ if (Array.isArray(a)) {
4128
+ const o = a.filter((r) => r.comp !== "FormTop");
4129
+ s.push(o);
4130
+ } else
4131
+ a.comp !== "FormTop" && s.push(a);
4132
+ }), s;
4133
+ }, Js = (n, s) => {
4134
+ const l = s.split("/");
4135
+ let e = [];
4136
+ return n == null || n.forEach((a) => {
4137
+ var p, g, h, f, _, C, T, m, N, d, v;
4138
+ const o = [], r = (g = (p = a.find((k) => k.key === "tableIndex")) == null ? void 0 : p.value) == null ? void 0 : g[0];
4139
+ if (r && !r.some((k) => Array.isArray(k))) {
4140
+ const k = (f = (h = a.find((t) => t.key === "tableColumns")) == null ? void 0 : h.value) == null ? void 0 : f[0];
4141
+ o.push({
4142
+ key: "tableIndexColumn",
4143
+ contents: l[l.length - 1]
4144
+ }), o.push({
4145
+ key: "tableIndex",
4146
+ contents: r == null ? void 0 : r.map((t) => ({ label: t }))
4147
+ }), o.push({
4148
+ key: "extraButton",
4149
+ contents: [{ label: "新增" }]
4150
+ }), o.push({
4151
+ key: "rowButton",
4152
+ contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
4153
+ }), Array.isArray(k) && k.some((t) => Array.isArray(t)) ? o.push({
4154
+ key: "header",
4155
+ contents: Il(k)
4156
+ }) : o.push({
4157
+ key: "header",
4158
+ contents: Array.isArray(k) ? k == null ? void 0 : k.map((t) => ({ label: t })) : [k].map((t) => ({ label: t }))
4159
+ }), o.push({
4160
+ key: "tableContents",
4161
+ contents: Array.isArray(k) ? (C = (_ = a.find((t) => t.key === "tableContents")) == null ? void 0 : _.value) == null ? void 0 : C[0] : (N = (m = (T = a.find((t) => t.key === "tableContents")) == null ? void 0 : T.value) == null ? void 0 : m[0]) == null ? void 0 : N.map((t) => [t])
4162
+ }), e.push({
4163
+ comp: "Table",
4164
+ name: "",
4165
+ compData: o
4166
+ }), a != null && a.find((t) => (t == null ? void 0 : t.key) === "formTop") && e.push({
4167
+ comp: "FormTop",
4168
+ compData: [
4169
+ {
4170
+ key: "formFlex",
4171
+ contents: ""
4172
+ },
4173
+ {
4174
+ key: "formContent",
4175
+ contents: Re([(d = a == null ? void 0 : a.find((t) => (t == null ? void 0 : t.key) === "formTop")) == null ? void 0 : d.value])
4176
+ },
4177
+ {
4178
+ key: "enableWrap",
4179
+ contents: !0
4180
+ },
4181
+ {
4182
+ key: "formButton",
4183
+ contents: [{
4184
+ label: "查询"
4185
+ }, {
4186
+ label: "重置"
4187
+ }]
4188
+ }
4189
+ ],
4190
+ name: ""
4191
+ });
4192
+ } else r ? (e.push({
4193
+ comp: "Table",
4194
+ name: "",
4195
+ compData: $s(a, l[l.length - 1])
4196
+ }), a != null && a.find((k) => (k == null ? void 0 : k.key) === "formTop") && e.push({
4197
+ comp: "FormTop",
4198
+ compData: [
4199
+ {
4200
+ key: "formFlex",
4201
+ contents: ""
4202
+ },
4203
+ {
4204
+ key: "formContent",
4205
+ contents: Re([(v = a == null ? void 0 : a.find((k) => (k == null ? void 0 : k.key) === "formTop")) == null ? void 0 : v.value])
4206
+ },
4207
+ {
4208
+ key: "enableWrap",
4209
+ contents: !0
4210
+ },
4211
+ {
4212
+ key: "formButton",
4213
+ contents: [{
4214
+ label: "查询"
4215
+ }, {
4216
+ label: "重置"
4217
+ }]
4218
+ }
4219
+ ],
4220
+ name: ""
4221
+ })) : a.some((k) => k.key === "extra") ? e.push({
4222
+ comp: "calculator",
4223
+ name: "",
4224
+ compData: il(a)
4225
+ }) : e.push(il(a));
4226
+ }), Rs(e);
4227
+ }, Vs = (n, s) => {
4228
+ var a, o;
4229
+ const l = n.map((r) => r.filter((p) => p.key !== "contentPath"));
4230
+ return {
4231
+ comp: "Group",
4232
+ compData: [{
4233
+ contents: Js(l, s),
4234
+ key: "groupContents"
4235
+ }],
4236
+ name: (o = (a = n[0]) == null ? void 0 : a.find((r) => r.key === "contentPath")) == null ? void 0 : o.value
4237
+ };
4238
+ }, Ws = (n) => {
4239
+ var a;
4240
+ const s = [], l = c(n).map((o) => {
4241
+ var r;
4242
+ if (o != null && o.find((p) => (p == null ? void 0 : p.key) === "contentPath"))
4243
+ return (r = o == null ? void 0 : o.find((p) => (p == null ? void 0 : p.key) === "contentPath")) == null ? void 0 : r.value;
4244
+ }).filter((o) => o !== ""), e = [...new Set(l)];
4245
+ return (a = e == null ? void 0 : e.filter((o) => o)) == null || a.forEach((o) => {
4246
+ var r;
4247
+ s.push(Vs((r = c(n)) == null ? void 0 : r.filter((p) => p.find((g) => g.key === "contentPath" && g.value === o)), o));
4248
+ }), s;
4249
+ }, zs = (n) => {
4250
+ let s = [];
4251
+ s.push({
4252
+ comp: "Menu",
4253
+ compData: [{
4254
+ contents: Os(c(n)),
4255
+ key: "menuContents"
4256
+ }],
4257
+ name: ""
4258
+ });
4259
+ const l = n.map((e) => Ps(e)).filter((e) => e.length !== 0);
4260
+ return s = [...s, ...Ws(l)], s;
4261
+ }, io = (n) => {
4262
+ var s, l, e, a, o;
4263
+ try {
4264
+ const r = (e = Qe((l = (s = c(n)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")"))) == null ? void 0 : e.filter((h) => h !== ""), p = (o = (a = c(r)) == null ? void 0 : a.filter((h) => !h.includes("/*"))) == null ? void 0 : o.map((h) => Es(h));
4265
+ return zs(p);
4266
+ } catch {
4267
+ return !1;
4268
+ }
4269
+ }, Se = U(0), Ge = U(0), Gs = (n) => {
4270
+ const s = n.trim().replace(/^'|'$/g, ""), l = /((?:\$?[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, e = {};
4271
+ let a;
4272
+ for (; (a = l.exec(s)) !== null; ) {
4273
+ const o = a[1];
4274
+ let r = a[2].trim();
4275
+ (r.match(/\[/g) || []).length !== (r.match(/\]/g) || []).length && (r = r == null ? void 0 : r.replace(/]$/, "")), e[o] ? (e[o + Ge.value] && Ge.value++, e[o + Ge.value] = o + "=" + r) : e[o] = o + "=" + r;
4276
+ }
4277
+ return e;
4278
+ }, Ol = (n) => {
4279
+ const [s, l] = n.split("=").map((o) => o.trim()), e = s.replace(/['"]/g, ""), a = l.replace(/^['"]|['"]$/g, "");
4280
+ return { key: e, value: a };
4281
+ }, Ms = (n) => {
4282
+ var r;
4283
+ let s = [];
4284
+ const [l, e] = n.split(/=(.+)/), a = l.replace(/['"]/g, "").trim(), o = e.replace(/^['"]|['"]$/g, "");
4285
+ return (r = Object.values(Gs(o))) == null || r.forEach((p) => {
4286
+ s.push(Ol(p));
4287
+ }), { key: a, value: s };
4288
+ }, Ue = (n) => {
4289
+ try {
4290
+ return JSON.parse(n), !0;
4291
+ } catch {
4292
+ return !1;
4293
+ }
4294
+ }, Bl = (n) => {
4295
+ try {
4296
+ const s = n.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
4297
+ if (c(s).split("{").length - 1 > 1) {
4298
+ let l = c(s).replace(/^\{(.*)\}$/, "[$1]");
4299
+ if (Ue(l) && !l.includes("$") || (l = l.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), Ue(l)) {
4300
+ const e = JSON.parse(l);
4301
+ let a = [];
4302
+ return e == null || e.forEach((o) => {
4303
+ var r;
4304
+ (r = Object.entries(c(o))) == null || r.forEach((p) => {
4305
+ Se.value++, a.push({
4306
+ id: Se.value,
4307
+ key: (p == null ? void 0 : p[0]) ?? "",
4308
+ value: (p == null ? void 0 : p[1]) === "" ? "" : p == null ? void 0 : p[1],
4309
+ // 如果值为空,则key设为空字符串,否则保留原值
4310
+ width: Object.keys(c(o)).length
4311
+ });
4312
+ });
4313
+ }), a;
4314
+ } else
4315
+ return console.error("转换类型不正确:"), [];
4316
+ } else if (Ue(s)) {
4317
+ const l = JSON.parse(s);
4318
+ return Object.entries(l).map(([e, a]) => (Se.value++, {
4319
+ id: Se.value,
4320
+ key: e,
4321
+ value: a === "" ? "" : a,
4322
+ // 如果值为空,则key设为空字符串,否则保留原值
4323
+ width: 1
4324
+ }));
4325
+ } else
4326
+ return s;
4327
+ } catch (s) {
4328
+ return console.error("转换失败:", s), [];
4329
+ }
4330
+ }, Zs = (n, s) => {
4331
+ try {
4332
+ if (se != null && se.find((l) => (l == null ? void 0 : l.key) === s))
4333
+ return JSON.parse(n.replace(/[’]|[‘]|[']/g, '"'));
4334
+ if (c(n).split("[").length - 1 > 1) {
4335
+ const l = c(n).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
4336
+ return JSON.parse(l);
4337
+ } else {
4338
+ const l = c(n).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
4339
+ if (Ue(l)) {
4340
+ const e = JSON.parse(l);
4341
+ return Array.isArray(e) ? e.map((a) => ({ label: a })) : e;
4342
+ } else
4343
+ return Bl(c(n));
4344
+ }
4345
+ } catch (l) {
4346
+ return console.error("解析失败:", l), n;
4347
+ }
4348
+ }, Hs = (n) => ({ [n == null ? void 0 : n.key]: Zs(n == null ? void 0 : n.value, n == null ? void 0 : n.key) }), Ks = (n) => {
4349
+ try {
4350
+ if (c(n).split("[").length - 1 > 1) {
4351
+ const s = c(n).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
4352
+ return JSON.parse(s);
4353
+ } else
4354
+ return JSON.parse(c(n).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((l) => ({ label: l }));
4355
+ } catch (s) {
4356
+ return console.error("解析失败:", s), n;
4357
+ }
4358
+ }, Nl = (n) => {
4359
+ var s, l, e, a, o, r;
4360
+ try {
4361
+ const p = Qe((l = (s = c(n)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), g = (e = c(p)) == null ? void 0 : e.map((_) => {
4362
+ var T, m;
4363
+ let C = (m = (T = c(_)) == null ? void 0 : T.split("=")) == null ? void 0 : m[0];
4364
+ return C != null && C.includes("GroupContents") ? Ms(_) : Ol(_);
4365
+ }), h = [];
4366
+ (a = c(g)) == null || a.forEach((_) => {
4367
+ var C, T, m, N, d;
4368
+ se != null && se.find((v) => {
4369
+ var k, t;
4370
+ return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t = _ == null ? void 0 : _.key) == null ? void 0 : t.toUpperCase());
4371
+ }) ? h.push({
4372
+ comp: ((C = se == null ? void 0 : se.find((v) => {
4373
+ var k, t;
4374
+ return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t = _ == null ? void 0 : _.key) == null ? void 0 : t.toUpperCase());
4375
+ })) == null ? void 0 : C.value) ?? "",
4376
+ name: (T = _ == null ? void 0 : _.value) == null ? void 0 : T.replace(/[’]|[‘]|[']/g, ""),
4377
+ compData: []
4378
+ }) : ae != null && ae.find((v) => {
4379
+ var k, t;
4380
+ return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t = _ == null ? void 0 : _.key) == null ? void 0 : t.toUpperCase());
4381
+ }) && ((h == null ? void 0 : h.length) === 0 && (m = _.key) != null && m.includes("Menus") && h.push({
4382
+ comp: "Menu",
4383
+ name: "",
4384
+ compData: []
4385
+ }), (N = h == null ? void 0 : h[(h == null ? void 0 : h.length) - 1]) != null && N.compData && h[(h == null ? void 0 : h.length) - 1].compData.push({
4386
+ key: (d = ae == null ? void 0 : ae.find((v) => {
4387
+ var k, t;
4388
+ return ((k = v == null ? void 0 : v.key) == null ? void 0 : k.toUpperCase()) === ((t = _ == null ? void 0 : _.key) == null ? void 0 : t.toUpperCase());
4389
+ })) == null ? void 0 : d.value,
4390
+ contents: _ == null ? void 0 : _.value
4391
+ }));
4392
+ }), console.log("newContents", h);
4393
+ let f = (o = c(h)) == null ? void 0 : o.map((_) => {
4394
+ var C;
4395
+ return _ != null && _.compData && (_.compData = (C = _ == null ? void 0 : _.compData) == null ? void 0 : C.map((T) => {
4396
+ var m, N, d, v, k, t, i, u, y, P, J;
4397
+ if ((T == null ? void 0 : T.key) === "formFlex")
4398
+ T.contents = ((N = (m = T.contents) == null ? void 0 : m.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : N.toUpperCase()) !== "Vertical".toUpperCase();
4399
+ else if ((T == null ? void 0 : T.key) === "groupContents")
4400
+ T.contents = (d = c(T.contents)) == null ? void 0 : d.map((R) => Hs(c(R)));
4401
+ else if (((k = (v = T.contents) == null ? void 0 : v.trim()) != null && k.startsWith("[") || (i = (t = T.contents) == null ? void 0 : t.trim()) != null && i.startsWith("【")) && ((y = (u = T.contents) == null ? void 0 : u.trim()) != null && y.endsWith("]") || (J = (P = T.contents) == null ? void 0 : P.trim()) != null && J.endsWith("】")))
4402
+ T.contents = Ks(c(T.contents));
4403
+ else {
4404
+ if (!T.contents) return;
4405
+ T.contents = Bl(c(T.contents));
4406
+ }
4407
+ return T;
4408
+ })), _;
4409
+ });
4410
+ return f = (r = c(f)) == null ? void 0 : r.map((_) => {
4411
+ var C;
4412
+ return (_ == null ? void 0 : _.comp) === "Group" && (_.compData = (C = _.compData) == null ? void 0 : C.map((T) => {
4413
+ var N;
4414
+ let m = [];
4415
+ return (N = T.contents) == null || N.forEach((d) => {
4416
+ var v, k, t, i, u, y, P, J, R, I, F, B;
4417
+ if (se != null && se.find((b) => {
4418
+ var L, $, S;
4419
+ return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = ($ = Object.keys(d)) == null ? void 0 : $[0]) == null ? void 0 : S.toUpperCase());
4420
+ }))
4421
+ m.push({
4422
+ comp: (v = se == null ? void 0 : se.find((b) => {
4423
+ var L, $, S;
4424
+ return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = ($ = Object.keys(d)) == null ? void 0 : $[0]) == null ? void 0 : S.toUpperCase());
4425
+ })) == null ? void 0 : v.value,
4426
+ name: (t = (k = Object.values(d)) == null ? void 0 : k[0]) == null ? void 0 : t.replace(/[’]|[‘]|[']/g, ""),
4427
+ compData: []
4428
+ });
4429
+ else if (ae != null && ae.find((b) => {
4430
+ var L, $, S;
4431
+ return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = ($ = Object.keys(d)) == null ? void 0 : $[0]) == null ? void 0 : S.toUpperCase());
4432
+ })) {
4433
+ if ((m == null ? void 0 : m.length) === 0) return;
4434
+ (i = m == null ? void 0 : m[(m == null ? void 0 : m.length) - 1]) != null && i.compData && m[(m == null ? void 0 : m.length) - 1].compData.push({
4435
+ key: (u = ae == null ? void 0 : ae.find((b) => {
4436
+ var L, $, S;
4437
+ return ((L = b == null ? void 0 : b.key) == null ? void 0 : L.toUpperCase()) === ((S = ($ = Object.keys(d)) == null ? void 0 : $[0]) == null ? void 0 : S.toUpperCase());
4438
+ })) == null ? void 0 : u.value,
4439
+ contents: (y = Object.values(d)) == null ? void 0 : y[0]
4440
+ });
4441
+ } else if ((J = (P = Object.keys(d)) == null ? void 0 : P[0]) != null && J.includes("$")) {
4442
+ const b = (I = (R = Object.keys(c(d))) == null ? void 0 : R[0]) == null ? void 0 : I.split("$");
4443
+ m[(m == null ? void 0 : m.length) - 1].compData.push({
4444
+ key: (F = ae == null ? void 0 : ae.find((L) => {
4445
+ var $, S;
4446
+ return (($ = L == null ? void 0 : L.key) == null ? void 0 : $.toUpperCase()) === ((S = b == null ? void 0 : b[0]) == null ? void 0 : S.toUpperCase());
4447
+ })) == null ? void 0 : F.value,
4448
+ contents: (B = Object.values(d)) == null ? void 0 : B[0],
4449
+ selectLabel: b == null ? void 0 : b[1]
4450
+ });
4451
+ }
4452
+ return d;
4453
+ }), T.contents = m, T;
4454
+ })), _;
4455
+ }), f;
4456
+ } catch {
4457
+ return !1;
4458
+ }
4459
+ }, uo = (n) => Nl(n), co = (n) => !!Nl(n), De = U(0), po = (n) => n.reduce((l, e) => {
4460
+ var o, r;
4461
+ const a = Object.values(l);
4462
+ return (((o = Object.keys(l)) == null ? void 0 : o.length) === 0 || a[a.length - 1].length >= (e == null ? void 0 : e.width)) && (l[De.value] = [], De.value++), l[De.value - 1].push(e), ((r = Object.keys(l)) == null ? void 0 : r.length) === (e == null ? void 0 : e.width) && (l[De.value] = [], De.value++), l;
4463
+ }, {});
4464
+ export {
4465
+ po as a,
4466
+ Dl as b,
4467
+ Qe as c,
4468
+ ro as d,
4469
+ uo as e,
4470
+ io as f,
4471
+ rs as g,
4472
+ co as i,
4473
+ _l as m,
4474
+ Es as p,
4475
+ to as s
4476
+ };