ss-component-new 1.1.668 → 1.1.669

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