ss-component-new 1.1.644 → 1.1.646

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