ss-component-new 1.1.643 → 1.1.644

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