ss-component-new 1.1.256 → 1.1.258

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