ss-component-new 1.1.113 → 1.1.116

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 (87) hide show
  1. package/dist/array-DLX9HpUG.js +1956 -0
  2. package/dist/array-tWsmTH5r.cjs +7 -0
  3. package/dist/{cloneDeep-BfzU0pBe.js → cloneDeep-B2CowBmY.js} +42 -48
  4. package/dist/cloneDeep-Fj9bqNcO.cjs +1 -0
  5. package/dist/index-2BSH90QR.cjs +6 -0
  6. package/dist/{index-BTt24r3U.cjs → index-B2V71oy_.cjs} +1 -1
  7. package/dist/{index-DxyREQkR.js → index-B5nXV29K.js} +78 -76
  8. package/dist/index-B6bxf0h2.js +196 -0
  9. package/dist/{index-COPrDtid.js → index-BEAnS4I-.js} +1 -1
  10. package/dist/{index-CyQkKXnK.js → index-BGhy_ENi.js} +255 -187
  11. package/dist/index-BNf8v3E7.cjs +1 -0
  12. package/dist/index-BXJIxGj9.cjs +1 -0
  13. package/dist/index-BYNM1Eo-.js +432 -0
  14. package/dist/index-B_pYEWlS.cjs +6 -0
  15. package/dist/index-Bo8JGvd0.cjs +1 -0
  16. package/dist/index-BvvxVAFa.cjs +1 -0
  17. package/dist/index-C1qnTNzC.cjs +1 -0
  18. package/dist/index-C86gx6Ye.cjs +1 -0
  19. package/dist/{index-B4WYIlOz.cjs → index-CbuB7VDV.cjs} +1 -1
  20. package/dist/{index-B3iQoZwc.js → index-CdRgYGoU.js} +631 -625
  21. package/dist/{index-BpJeYb4X.js → index-CeJMZbXG.js} +1 -1
  22. package/dist/index-D0yDjxaf.cjs +1 -0
  23. package/dist/index-DCRZ9Y1m.js +199 -0
  24. package/dist/index-DD3Jbedk.cjs +1 -0
  25. package/dist/index-DH5pTE-1.js +304 -0
  26. package/dist/index-DQ8UtE2z.js +74 -0
  27. package/dist/index-DTs391JS.js +208 -0
  28. package/dist/{index-BMLnfdpX.js → index-DYee8R31.js} +4 -3
  29. package/dist/{index-BH3F6_ql.js → index-DdiwlYxv.js} +1025 -1121
  30. package/dist/{index-ChXKNVG8.cjs → index-DjHNYg39.cjs} +1 -1
  31. package/dist/{index-b_11tfuG.js → index-DmA5-mTS.js} +6 -6
  32. package/dist/{index-DLartnmY.js → index-M_Td6T9I.js} +1 -1
  33. package/dist/index-MpVy5A_K.cjs +1 -0
  34. package/dist/index-ULdYt3Gk.js +138 -0
  35. package/dist/index-Uak9xh_Z.cjs +1 -0
  36. package/dist/index-YlTnI4EI.cjs +1 -0
  37. package/dist/{index-CqJa9o1o.cjs → index-kHFiVhmA.cjs} +1 -1
  38. package/dist/{index-DWiZqfBA.js → index-vARVx4Lc.js} +4 -4
  39. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-BKTdfLNp.cjs +1 -0
  40. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-C2CUHQVo.js +7 -0
  41. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DSLx4cvQ.js +235 -0
  42. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DlqdNpcl.cjs +1 -0
  43. package/dist/login-CBjdvGjn.js +47 -0
  44. package/dist/login-CHZ1VF7_.cjs +1 -0
  45. package/dist/main-3fUagSVX.cjs +1 -0
  46. package/dist/{main-DAPxADXM.js → main-7GSU9TqI.js} +25 -24
  47. package/dist/menu-BnTNA2Lx.cjs +1 -0
  48. package/dist/menu-DxrO5JEn.js +34 -0
  49. package/dist/{modelComp-CHWFvhCq.js → modelComp-BsNooORx.js} +1 -1
  50. package/dist/modelComp-b_KDs0lh.cjs +1 -0
  51. package/dist/pinia-8zVC1cUT.cjs +11 -0
  52. package/dist/pinia-DB5lI5eD.js +4723 -0
  53. package/dist/{request-BK6KCyS9.js → request-3QszTjDN.js} +1 -1
  54. package/dist/{request-BrHEv9dn.cjs → request-SLgezlvU.cjs} +1 -1
  55. package/dist/ss-component.cjs +1 -1
  56. package/dist/ss-component.css +1 -1
  57. package/dist/ss-component.js +6 -6
  58. package/dist/ss-component2.cjs +1 -1
  59. package/dist/ss-component2.js +1 -1
  60. package/package.json +3 -3
  61. package/dist/array-BYRvPg11.cjs +0 -7
  62. package/dist/array-DyxKeexo.js +0 -1732
  63. package/dist/cloneDeep-WwDap0fL.cjs +0 -1
  64. package/dist/index-5dGTUAu_.cjs +0 -1
  65. package/dist/index-BIRKKGuW.cjs +0 -1
  66. package/dist/index-BUxzwz5l.cjs +0 -1
  67. package/dist/index-CBHJLZo4.cjs +0 -1
  68. package/dist/index-CVBCwf2F.cjs +0 -6
  69. package/dist/index-CbphQpiC.cjs +0 -1
  70. package/dist/index-CdEEK8I0.js +0 -408
  71. package/dist/index-CumtOgAw.cjs +0 -7
  72. package/dist/index-DVEWSdUo.cjs +0 -1
  73. package/dist/index-DmoecEm1.js +0 -205
  74. package/dist/index-DzJuDGl8.cjs +0 -1
  75. package/dist/index-EIbm0jBZ.js +0 -2707
  76. package/dist/index-EQOXj03f.cjs +0 -1
  77. package/dist/index-QWm4yJ7u.js +0 -135
  78. package/dist/index-smYHb1Ta.js +0 -456
  79. package/dist/index-uMboxmjq.cjs +0 -6
  80. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-CF5e1L_i.cjs +0 -1
  81. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-DrStz9iD.js +0 -2
  82. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs +0 -1
  83. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js +0 -192
  84. package/dist/main-DS-YP1Wn.cjs +0 -1
  85. package/dist/menu-BIINB-0Y.js +0 -1013
  86. package/dist/menu-B_Az9K_F.cjs +0 -11
  87. package/dist/modelComp-DY1RniW6.cjs +0 -1
@@ -1,1732 +0,0 @@
1
- import { u as Ge, p as de, s as Le } from "./index-smYHb1Ta.js";
2
- import { ref as R, watch as q, createElementBlock as M, openBlock as Z, createVNode as W, resolveComponent as _e, createElementVNode as G, toDisplayString as z, withCtx as ee, createTextVNode as le, Fragment as $e, renderList as Ae, createCommentVNode as We, createBlock as ze, resolveDynamicComponent as Ze } from "vue";
3
- import { s as ye, f as Me, a as te } from "./index-B3iQoZwc.js";
4
- import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { c as r } from "./cloneDeep-BfzU0pBe.js";
6
- import { _ as He } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
7
- import { s as xe, u as qe } from "./menu-BIINB-0Y.js";
8
- import "./request-BK6KCyS9.js";
9
- import { u as Qe } from "./modelComp-CHWFvhCq.js";
10
- const ne = [
11
- {
12
- key: "单选",
13
- value: "Select"
14
- },
15
- {
16
- key: "日期",
17
- value: "Date"
18
- },
19
- {
20
- key: "长文本",
21
- value: "TextArea"
22
- },
23
- {
24
- key: "上传",
25
- value: "Upload"
26
- }
27
- ], Xe = { class: "form-content" }, Ye = {
28
- __name: "index",
29
- props: {
30
- itemData: {
31
- type: Array,
32
- default: () => []
33
- },
34
- childItemData: {
35
- type: Array,
36
- default: () => []
37
- },
38
- index: Number
39
- },
40
- emits: ["change", "contentChange"],
41
- setup(t, { emit: s }) {
42
- const l = t, e = s, n = R([]), a = R(!1), o = R([]), y = Ge(de), O = R(), b = (d) => {
43
- var u, c, p, g;
44
- const $ = (c = (u = r(l.itemData)) == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "formContent")) == null ? void 0 : c.contents, x = r(d.content);
45
- let k = {};
46
- x && ((p = Object.values(x)) == null ? void 0 : p.length) > 0 && ((g = Object.values(x)) == null || g.forEach((i, f) => {
47
- k[$[f].key] = i;
48
- }));
49
- const S = {
50
- content: k,
51
- index: l == null ? void 0 : l.index,
52
- buttonName: d == null ? void 0 : d.buttonName
53
- };
54
- e("change", S);
55
- }, C = (d) => {
56
- var k, S;
57
- if (!d) return;
58
- if (((k = Object.values(r(d))) == null ? void 0 : k.length) > 0) {
59
- const u = (S = Object.values(r(d))) == null ? void 0 : S.map((p) => p);
60
- let c = "";
61
- u == null || u.forEach((p) => {
62
- p !== "" && p !== void 0 && (c = c === "" ? p : c + "/" + p);
63
- }), y.setSelectArray(u), y.setSelectString(c);
64
- }
65
- const $ = r(l.itemData), x = $ == null ? void 0 : $.map((u) => {
66
- var c;
67
- return (u == null ? void 0 : u.key) === "formContent" && ((c = u.contents) == null || c.map((p, g) => {
68
- var i, f, h, A, T, D, _, j, E, F, U, v, N, m;
69
- return p.type = p != null && p.type ? p.type : (h = (f = (i = p == null ? void 0 : p.key.split("$")) == null ? void 0 : i[1]) == null ? void 0 : f.split("(")) != null && h[0] ? (A = ne == null ? void 0 : ne.find((P) => {
70
- var L, K, V;
71
- return (P == null ? void 0 : P.key) === ((V = (K = (L = p == null ? void 0 : p.key.split("$")) == null ? void 0 : L[1]) == null ? void 0 : K.split("(")) == null ? void 0 : V[0]);
72
- })) == null ? void 0 : A.value : "Input", p.options = p != null && p.options ? p.options : ((D = (T = p == null ? void 0 : p.key.split("$")) == null ? void 0 : T[1]) == null ? void 0 : D.length) > 0 ? (E = (j = Me((_ = p == null ? void 0 : p.key.split("$")) == null ? void 0 : _[1])) == null ? void 0 : j.split(",")) == null ? void 0 : E.map((P) => ({
73
- label: P,
74
- value: P
75
- })) : [], p != null && p.key.includes("$") && (p.key = (F = p == null ? void 0 : p.key.split("$")) == null ? void 0 : F[0]), p.value = p != null && p.value ? p.value : Array.isArray((U = Object.values(d)) == null ? void 0 : U[g]) ? (N = (v = Object.values(d)) == null ? void 0 : v[g]) == null ? void 0 : N[0] : (m = Object.values(d)) == null ? void 0 : m[g], p;
76
- })), u;
77
- });
78
- e("contentChange", {
79
- contents: x,
80
- index: l.index
81
- });
82
- };
83
- return q(
84
- () => l.itemData,
85
- () => {
86
- var S, u, c, p, g, i, f, h, A, T;
87
- const d = (S = r(l.itemData)) == null ? void 0 : S.find((D) => (D == null ? void 0 : D.key) === "formContent"), $ = (u = r(l.itemData)) == null ? void 0 : u.find((D) => (D == null ? void 0 : D.key) === "formButton"), x = (c = r(l.itemData)) == null ? void 0 : c.find((D) => (D == null ? void 0 : D.key) === "formFlex"), k = (p = r(l.itemData)) == null ? void 0 : p.find((D) => (D == null ? void 0 : D.key) === "formWrap");
88
- if ((k == null ? void 0 : k.contents) === "纵向" ? a.value = !1 : a.value = !0, O.value = typeof (x == null ? void 0 : x.contents) != "boolean" ? !(!(x != null && x.contents) === "" || ((g = x == null ? void 0 : x.contents) == null ? void 0 : g.toUpperCase()) === "VERTICAL") : x == null ? void 0 : x.contents, ((i = d == null ? void 0 : d.contents) == null ? void 0 : i.length) > 0 && Array.isArray(d == null ? void 0 : d.contents)) {
89
- const D = [];
90
- (f = d == null ? void 0 : d.contents) == null || f.forEach((E, F) => {
91
- var U, v, N, m, P, L, K, V, ge;
92
- if ((E == null ? void 0 : E.label) !== "") {
93
- let Ce = (E == null ? void 0 : E.key) ?? "", ce = (E == null ? void 0 : E.type) ?? "", H = (E == null ? void 0 : E.options) ?? [];
94
- if (E != null && E.key.includes("$") && (Ce = (U = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : U[0], ((N = (v = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : v[1]) == null ? void 0 : N.length) > 0)) {
95
- const [Re, Q] = (P = (m = r(E == null ? void 0 : E.key).split("$")) == null ? void 0 : m[1]) == null ? void 0 : P.split(/[()]/);
96
- ce = ((L = ne.find((X) => (X == null ? void 0 : X.key) === Re)) == null ? void 0 : L.value) ?? "", ((K = Q == null ? void 0 : Q.split(",")) == null ? void 0 : K.length) > 0 && (H = (V = Q == null ? void 0 : Q.split(",")) == null ? void 0 : V.map((X) => ({
97
- label: X,
98
- value: X
99
- })));
100
- }
101
- D.push({
102
- label: Ce ?? "",
103
- name: "t" + F,
104
- type: ce === "" ? "Input" : ce,
105
- value: E != null && E.value ? E.value : (H == null ? void 0 : H.length) > 0 ? (ge = H == null ? void 0 : H[0]) == null ? void 0 : ge.value : (E == null ? void 0 : E.value) ?? "",
106
- id: (E == null ? void 0 : E.id) ?? F,
107
- contents: H ?? [],
108
- width: (E == null ? void 0 : E.width) ?? 1
109
- });
110
- }
111
- });
112
- const _ = (h = r(D)) == null ? void 0 : h.map((E) => E.value);
113
- let j = "";
114
- _ == null || _.forEach((E) => {
115
- E !== "" && E !== void 0 && (j = j === "" ? E : j + "/" + E);
116
- }), y.setSelectArray(_), y.setSelectString(j), n.value = D;
117
- } else
118
- n.value = [];
119
- if (((A = $ == null ? void 0 : $.contents) == null ? void 0 : A.length) > 0) {
120
- const D = [];
121
- (T = $ == null ? void 0 : $.contents) == null || T.forEach((_, j) => {
122
- (_ == null ? void 0 : _.label) !== "" && D.push({
123
- label: (_ == null ? void 0 : _.label) ?? "",
124
- id: (_ == null ? void 0 : _.id) ?? j,
125
- type: (_ == null ? void 0 : _.type) ?? "",
126
- background: _ == null ? void 0 : _.background
127
- });
128
- }), o.value = D;
129
- } else
130
- o.value = [];
131
- },
132
- { deep: !0, immediate: !0 }
133
- ), (d, $) => (Z(), M("div", Xe, [
134
- W(ye, {
135
- rowContents: n.value,
136
- buttonValue: o.value,
137
- isRowFlex: O.value,
138
- isEnableWrap: !1,
139
- onOnButtonClick: b,
140
- onChange: C,
141
- isButtonRow: a.value
142
- }, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
143
- ]));
144
- }
145
- }, we = /* @__PURE__ */ oe(Ye, [["__scopeId", "data-v-156885e4"]]), Ke = { class: "table-operate-content" }, Ve = { class: "table-operate-item" }, Ie = { class: "operate-title" }, el = { class: "operate-content" }, ll = { class: "operate-title" }, tl = { class: "operate-content" }, nl = { class: "operate-title" }, sl = { class: "operate-content" }, al = { class: "operate-content" }, rl = {
146
- __name: "operate",
147
- props: {
148
- itemContents: {
149
- type: Array,
150
- default: () => []
151
- },
152
- originalItemContents: {
153
- type: Array,
154
- default: () => []
155
- }
156
- },
157
- emits: ["change"],
158
- setup(t, { emit: s }) {
159
- const l = t, e = s, n = R([]), a = R([]), o = R([]), y = R([{
160
- label: "按钮名称",
161
- prop: "label",
162
- type: "edit"
163
- }, {
164
- label: "按钮类型",
165
- prop: "type",
166
- type: "edit"
167
- }, {
168
- label: "按钮背景颜色",
169
- prop: "background",
170
- type: "edit",
171
- columnType: "Color"
172
- }, {
173
- label: "操作",
174
- prop: "operate",
175
- type: "operate",
176
- sortable: !1
177
- }]), O = R([{
178
- label: "标签名称",
179
- prop: "label",
180
- type: "edit"
181
- }, {
182
- label: "标签类型",
183
- prop: "type",
184
- type: "edit"
185
- }, {
186
- label: "按钮文字颜色",
187
- prop: "textColor",
188
- type: "edit",
189
- columnType: "Color"
190
- }, {
191
- label: "操作",
192
- prop: "operate",
193
- type: "operate",
194
- sortable: !1
195
- }]), b = R([]), C = R(0), d = R([{
196
- name: "isPagination",
197
- label: "是否显示分页",
198
- type: "Switch",
199
- value: !0
200
- }]), $ = [{
201
- label: "标签名",
202
- prop: "label",
203
- type: "edit"
204
- }, {
205
- label: "属性名",
206
- prop: "prop",
207
- type: "edit"
208
- }, {
209
- label: "宽度",
210
- prop: "width",
211
- type: "edit",
212
- columnType: "Number"
213
- }, {
214
- label: "是否固定列",
215
- prop: "fixed",
216
- type: "edit",
217
- columnType: "Radio",
218
- contents: [{
219
- label: "left",
220
- value: "左"
221
- }, {
222
- label: "right",
223
- value: "右"
224
- }]
225
- }, {
226
- label: "是否支持排序",
227
- prop: "sortable",
228
- type: "edit",
229
- columnType: "Switch"
230
- }, {
231
- label: "文本所在位置",
232
- prop: "align",
233
- type: "edit",
234
- columnType: "Radio",
235
- contents: [{
236
- label: "left",
237
- value: "左"
238
- }, {
239
- label: "center",
240
- value: "中"
241
- }, {
242
- label: "right",
243
- value: "右"
244
- }]
245
- }, {
246
- label: "溢出悬浮文字",
247
- prop: "showOverflowTooltip",
248
- type: "edit",
249
- columnType: "Switch"
250
- }, {
251
- label: "是否不可拖动",
252
- prop: "isNotDrag",
253
- type: "edit",
254
- columnType: "Switch"
255
- }, {
256
- label: "是否可编辑列名",
257
- //暂不支持
258
- prop: "isEditCol",
259
- type: "edit",
260
- columnType: "Switch"
261
- }, {
262
- label: "是否出现在附属界面",
263
- //暂不支持
264
- prop: "isOperate",
265
- type: "edit",
266
- columnType: "Switch"
267
- }, {
268
- label: "操作",
269
- prop: "operate",
270
- type: "operate",
271
- sortable: !1
272
- }], x = (i) => {
273
- let f = r(n.value);
274
- const h = f == null ? void 0 : f.find((A) => A.key === "page");
275
- (h == null ? void 0 : h.contents) !== void 0 ? f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "page" && (A.contents = i == null ? void 0 : i.isPagination), A)) : f.push({
276
- key: "page",
277
- contents: i == null ? void 0 : i.isPagination
278
- }), n.value = f;
279
- };
280
- q(
281
- () => l.originalItemContents,
282
- () => {
283
- var i, f, h, A, T, D, _, j, E, F, U, v, N;
284
- !l.originalItemContents || l.originalItemContents.length === 0 || (n.value = r(l.originalItemContents), a.value = (f = (i = n.value) == null ? void 0 : i.find((m) => (m == null ? void 0 : m.key) === "header")) == null ? void 0 : f.contents, o.value = (A = (h = n.value) == null ? void 0 : h.find((m) => (m == null ? void 0 : m.key) === "rowButton")) == null ? void 0 : A.contents, y.value = (D = (T = n.value) == null ? void 0 : T.find((m) => (m == null ? void 0 : m.key) === "extraButton")) == null ? void 0 : D.contents, d.value = (j = (_ = n.value) == null ? void 0 : _.find((m) => (m == null ? void 0 : m.key) === "page")) != null && j.contents ? [{
285
- name: "isPagination",
286
- label: "是否显示分页",
287
- type: "Switch",
288
- value: (F = (E = n.value) == null ? void 0 : E.find((m) => (m == null ? void 0 : m.key) === "page")) == null ? void 0 : F.contents
289
- }] : [{
290
- name: "isPagination",
291
- label: "是否显示分页",
292
- type: "Switch",
293
- value: !0
294
- }], a.value = (U = a.value) == null ? void 0 : U.map((m, P) => m = {
295
- label: (m == null ? void 0 : m.label) ?? "",
296
- prop: (m == null ? void 0 : m.label) === "操作" ? "operate" : m == null ? void 0 : m.prop,
297
- width: m != null && m.width ? parseInt(m.width) : "",
298
- fixed: (m == null ? void 0 : m.fixed) ?? void 0,
299
- sortable: (m == null ? void 0 : m.sortable) ?? !1,
300
- align: (m == null ? void 0 : m.align) ?? "center",
301
- showOverflowTooltip: (m == null ? void 0 : m.showOverflowTooltip) ?? !0,
302
- isNotDrag: (m == null ? void 0 : m.isNotDrag) ?? !1,
303
- isEditCol: (m == null ? void 0 : m.isEditCol) ?? !1,
304
- isOperate: (m == null ? void 0 : m.isOperate) ?? !1,
305
- id: (m == null ? void 0 : m.id) ?? P
306
- }), o.value = (v = o.value) == null ? void 0 : v.map((m, P) => m = {
307
- label: (m == null ? void 0 : m.label) ?? "",
308
- type: (m == null ? void 0 : m.type) ?? "",
309
- textColor: (m == null ? void 0 : m.textColor) ?? "#000000",
310
- id: (m == null ? void 0 : m.id) ?? P
311
- }), y.value = (N = y.value) == null ? void 0 : N.map((m, P) => m = {
312
- label: (m == null ? void 0 : m.label) ?? "",
313
- type: (m == null ? void 0 : m.type) ?? "",
314
- background: (m == null ? void 0 : m.textColor) ?? "#FFFFFF",
315
- id: (m == null ? void 0 : m.id) ?? P
316
- }));
317
- },
318
- { deep: !0, immediate: !0 }
319
- ), q(
320
- () => d.value,
321
- () => {
322
- var h;
323
- let i = r(n.value);
324
- const f = i == null ? void 0 : i.find((A) => A.key === "page");
325
- f != null && f.contents ? i = i == null ? void 0 : i.map((A) => {
326
- var T;
327
- return (A == null ? void 0 : A.key) === "page" && (A.contents = (T = d.value) == null ? void 0 : T[0].value), A;
328
- }) : i.push({
329
- key: "page",
330
- contents: (h = d.value) == null ? void 0 : h[0].value
331
- }), n.value = i;
332
- },
333
- { immediate: !0, deep: !0 }
334
- );
335
- const k = () => {
336
- const i = r(a.value);
337
- let f = r(n.value);
338
- i.push({
339
- label: "",
340
- prop: "",
341
- width: "",
342
- fixed: void 0,
343
- sortable: !1,
344
- align: "center",
345
- showOverflowTooltip: !0,
346
- isNotDrag: !1,
347
- isEditCol: !1,
348
- isOperate: !1,
349
- id: C.value
350
- }), a.value = i, C.value++;
351
- const h = f == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "header");
352
- h != null && h.contents ? (h.contents = i, f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "header" && (A.contents = i), A))) : f.push({
353
- key: "header",
354
- contents: i
355
- }), n.value = f;
356
- }, S = () => {
357
- const i = r(o.value);
358
- let f = r(n.value);
359
- i.push({
360
- label: "",
361
- type: "",
362
- textColor: "#000000",
363
- id: C.value
364
- }), o.value = i, C.value++;
365
- const h = f == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "rowButton");
366
- h != null && h.contents ? (h.contents = i, f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "rowButton" && (A.contents = i), A))) : f.push({
367
- key: "rowButton",
368
- contents: i
369
- }), n.value = f;
370
- }, u = () => {
371
- const i = r(b.value);
372
- let f = r(n.value);
373
- i.push({
374
- label: "",
375
- type: "",
376
- background: "#FFFFFF",
377
- id: C.value
378
- }), b.value = i, C.value++;
379
- const h = f == null ? void 0 : f.find((A) => (A == null ? void 0 : A.key) === "extraButton");
380
- h != null && h.contents ? (h.contents = i, f = f == null ? void 0 : f.map((A) => ((A == null ? void 0 : A.key) === "extraButton" && (A.contents = i), A))) : f.push({
381
- key: "extraButton",
382
- contents: i
383
- }), n.value = f;
384
- }, c = (i) => {
385
- const f = r(o.value);
386
- let h = r(n.value);
387
- o.value = f.filter((T) => T.id !== i.id);
388
- const A = h == null ? void 0 : h.find((T) => T.key === "rowButton");
389
- A != null && A.contents && (h = h == null ? void 0 : h.map((T) => ((T == null ? void 0 : T.key) === "rowButton" && (T.contents = f.filter((D) => D.id !== i.id)), T))), n.value = h;
390
- }, p = (i) => {
391
- const f = r(b.value);
392
- let h = r(n.value);
393
- b.value = f.filter((T) => T.id !== i.id);
394
- const A = h == null ? void 0 : h.find((T) => T.key === "extraButton");
395
- A != null && A.contents && (h = h == null ? void 0 : h.map((T) => ((T == null ? void 0 : T.key) === "extraButton" && (T.contents = f.filter((D) => D.id !== i.id)), T))), n.value = h;
396
- }, g = (i) => {
397
- const f = r(a.value);
398
- let h = r(n.value);
399
- a.value = f.filter((T) => T.id !== i.id);
400
- const A = h == null ? void 0 : h.find((T) => T.key === "header");
401
- A != null && A.contents && (h = h == null ? void 0 : h.map((T) => ((T == null ? void 0 : T.key) === "header" && (T.contents = f.filter((D) => D.id !== i.id)), T))), n.value = h;
402
- };
403
- return q(
404
- () => [n.value, a.value],
405
- () => {
406
- let i = r(n.value);
407
- const f = i == null ? void 0 : i.find((h) => (h == null ? void 0 : h.key) === "header");
408
- f != null && f.contents ? (f.contents = a.value, i = i == null ? void 0 : i.map((h) => ((h == null ? void 0 : h.key) === "header" && (h.contents = a.value), h))) : i.push({
409
- key: "header",
410
- contents: a.value
411
- }), e("change", i);
412
- },
413
- { deep: !0, immediate: !0 }
414
- ), (i, f) => {
415
- const h = _e("el-button");
416
- return Z(), M("div", Ke, [
417
- G("div", Ve, [
418
- G("div", Ie, [
419
- f[1] || (f[1] = G("div", null, z("表头"), -1)),
420
- W(h, {
421
- class: "blue-operate-button",
422
- icon: "ele-Plus",
423
- onClick: k
424
- }, {
425
- default: ee(() => f[0] || (f[0] = [
426
- le(z("新建"))
427
- ])),
428
- _: 1,
429
- __: [0]
430
- })
431
- ]),
432
- G("div", el, [
433
- W(te, {
434
- columns: $,
435
- isShowPagination: !1,
436
- isShowEdit: !1,
437
- isMoveColumn: !1,
438
- tableData: a.value,
439
- onDeleteRow: g
440
- }, null, 8, ["tableData"])
441
- ]),
442
- G("div", ll, [
443
- f[3] || (f[3] = G("div", null, z("行内按钮"), -1)),
444
- W(h, {
445
- class: "blue-operate-button",
446
- icon: "ele-Plus",
447
- onClick: S
448
- }, {
449
- default: ee(() => f[2] || (f[2] = [
450
- le(z("新建"))
451
- ])),
452
- _: 1,
453
- __: [2]
454
- })
455
- ]),
456
- G("div", tl, [
457
- W(te, {
458
- columns: O.value,
459
- isShowPagination: !1,
460
- isShowEdit: !1,
461
- isMoveColumn: !1,
462
- tableData: o.value,
463
- onDeleteRow: c
464
- }, null, 8, ["columns", "tableData"])
465
- ]),
466
- G("div", nl, [
467
- f[5] || (f[5] = G("div", null, z("表格外部按钮"), -1)),
468
- W(h, {
469
- class: "blue-operate-button",
470
- icon: "ele-Plus",
471
- onClick: u
472
- }, {
473
- default: ee(() => f[4] || (f[4] = [
474
- le(z("新建"))
475
- ])),
476
- _: 1,
477
- __: [4]
478
- })
479
- ]),
480
- G("div", sl, [
481
- W(te, {
482
- columns: y.value,
483
- isShowPagination: !1,
484
- isShowEdit: !1,
485
- isMoveColumn: !1,
486
- tableData: b.value,
487
- onDeleteRow: p
488
- }, null, 8, ["columns", "tableData"])
489
- ]),
490
- f[6] || (f[6] = G("div", { class: "operate-title" }, [
491
- G("div", null, z("分页"))
492
- ], -1)),
493
- G("div", al, [
494
- W(ye, {
495
- rowContents: d.value,
496
- onChange: x
497
- }, null, 8, ["rowContents"])
498
- ])
499
- ])
500
- ]);
501
- };
502
- }
503
- }, ol = /* @__PURE__ */ oe(rl, [["__scopeId", "data-v-877911eb"]]), cl = { class: "form-operate-content" }, pl = { class: "form-operate-item" }, ul = { class: "operate-title" }, il = { class: "operate-content" }, fl = { class: "operate-title" }, dl = { class: "operate-content" }, yl = { class: "operate-content" }, hl = {
504
- __name: "operate",
505
- props: {
506
- itemContents: {
507
- type: Array,
508
- default: () => []
509
- },
510
- originalItemContents: {
511
- type: Array,
512
- default: () => []
513
- }
514
- },
515
- emits: ["change"],
516
- setup(t, { emit: s }) {
517
- const l = t, e = s, n = R([{
518
- name: "isRowFlex",
519
- label: "是否横向布局",
520
- type: "Switch",
521
- value: !0
522
- }]), a = R([{
523
- label: "字段名称",
524
- prop: "label",
525
- type: "edit"
526
- }, {
527
- label: "字段类型",
528
- prop: "type",
529
- type: "edit"
530
- }, {
531
- label: "字段值",
532
- prop: "key",
533
- type: "edit"
534
- }, {
535
- label: "字段选项值",
536
- prop: "options",
537
- type: "edit"
538
- }, {
539
- label: "操作",
540
- prop: "operate",
541
- type: "operate",
542
- sortable: !1
543
- }]), o = R([{
544
- label: "字段名称",
545
- prop: "label",
546
- type: "edit"
547
- }, {
548
- label: "字段类型",
549
- prop: "type",
550
- type: "edit"
551
- }, {
552
- label: "按钮背景颜色",
553
- prop: "background",
554
- type: "edit",
555
- columnType: "Color"
556
- }, {
557
- label: "操作",
558
- prop: "operate",
559
- type: "operate",
560
- sortable: !1
561
- }]), y = R([]), O = R([]), b = R([]), C = R(0);
562
- q(
563
- () => l.originalItemContents,
564
- () => {
565
- var u, c, p, g, i, f, h, A, T, D;
566
- !l.originalItemContents || l.originalItemContents.length === 0 || (O.value = r(l.originalItemContents), b.value = (c = (u = O.value) == null ? void 0 : u.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : c.contents, y.value = (g = (p = O.value) == null ? void 0 : p.find((_) => (_ == null ? void 0 : _.key) === "formButton")) == null ? void 0 : g.contents, b.value = (i = b.value) == null ? void 0 : i.map((_, j) => _ = {
567
- label: (_ == null ? void 0 : _.label) ?? "",
568
- type: (_ == null ? void 0 : _.type) ?? "",
569
- key: (_ == null ? void 0 : _.key) ?? "",
570
- options: (_ == null ? void 0 : _.options) ?? "",
571
- id: (_ == null ? void 0 : _.id) ?? j
572
- }), y.value = (f = y.value) == null ? void 0 : f.map((_, j) => _ = {
573
- label: (_ == null ? void 0 : _.label) ?? "",
574
- type: (_ == null ? void 0 : _.type) ?? "",
575
- background: (_ == null ? void 0 : _.background) ?? "#000000",
576
- id: (_ == null ? void 0 : _.id) ?? j
577
- }), n.value = (A = (h = O.value) == null ? void 0 : h.find((_) => (_ == null ? void 0 : _.key) === "formFlex")) != null && A.contents ? [{
578
- name: "isRowFlex",
579
- label: "是否横向布局",
580
- type: "Switch",
581
- value: (D = (T = O.value) == null ? void 0 : T.find((_) => (_ == null ? void 0 : _.key) === "formFlex")) == null ? void 0 : D.contents
582
- }] : [{
583
- name: "isRowFlex",
584
- label: "是否横向布局",
585
- type: "Switch",
586
- value: !0
587
- }]);
588
- },
589
- { deep: !0, immediate: !0 }
590
- );
591
- const d = () => {
592
- const u = r(y.value);
593
- let c = r(O.value);
594
- u.push({
595
- label: "",
596
- type: "",
597
- background: "#000000",
598
- id: C.value
599
- }), y.value = u, C.value++;
600
- const p = c == null ? void 0 : c.find((g) => (g == null ? void 0 : g.key) === "formButton");
601
- p != null && p.contents ? (p.contents = u, c = c == null ? void 0 : c.map((g) => ((g == null ? void 0 : g.key) === "formButton" && (g.contents = u), g))) : c.push({
602
- key: "formButton",
603
- contents: u
604
- }), O.value = c;
605
- }, $ = () => {
606
- const u = r(b.value);
607
- let c = r(O.value);
608
- u.push({
609
- label: "",
610
- type: "",
611
- key: "",
612
- options: "",
613
- id: C.value
614
- }), b.value = u, C.value++;
615
- const p = c == null ? void 0 : c.find((g) => (g == null ? void 0 : g.key) === "formContent");
616
- p != null && p.contents ? (p.contents = u, c = c == null ? void 0 : c.map((g) => ((g == null ? void 0 : g.key) === "formContent" && (g.contents = u), g))) : c.push({
617
- key: "formContent",
618
- contents: u
619
- }), O.value = c;
620
- }, x = (u) => {
621
- const c = r(y.value);
622
- let p = r(O.value);
623
- y.value = c.filter((i) => i.id !== u.id);
624
- const g = p == null ? void 0 : p.find((i) => i.key === "formButton");
625
- g != null && g.contents && (p = p == null ? void 0 : p.map((i) => ((i == null ? void 0 : i.key) === "formButton" && (i.contents = c.filter((f) => f.id !== u.id)), i))), O.value = p;
626
- }, k = (u) => {
627
- const c = r(b.value);
628
- let p = r(O.value);
629
- b.value = c.filter((i) => i.id !== u.id);
630
- const g = p == null ? void 0 : p.find((i) => i.key === "formContent");
631
- g != null && g.contents && (p = p == null ? void 0 : p.map((i) => ((i == null ? void 0 : i.key) === "formContent" && (i.contents = c.filter((f) => f.id !== u.id)), i))), O.value = p;
632
- }, S = (u) => {
633
- let c = r(O.value);
634
- const p = c == null ? void 0 : c.find((g) => g.key === "formFlex");
635
- (p == null ? void 0 : p.contents) !== void 0 ? c = c == null ? void 0 : c.map((g) => ((g == null ? void 0 : g.key) === "formFlex" && (g.contents = u == null ? void 0 : u.isRowFlex), g)) : c.push({
636
- key: "formFlex",
637
- contents: u == null ? void 0 : u.isRowFlex
638
- }), O.value = c;
639
- };
640
- return q(
641
- () => [O.value, b.value],
642
- () => {
643
- let u = r(O.value);
644
- const c = u == null ? void 0 : u.find((p) => (p == null ? void 0 : p.key) === "formContent");
645
- c != null && c.contents ? (c.contents = b.value, u = u == null ? void 0 : u.map((p) => ((p == null ? void 0 : p.key) === "formContent" && (p.contents = b.value), p))) : u.push({
646
- key: "formContent",
647
- contents: b.value
648
- }), e("change", u);
649
- },
650
- { deep: !0, immediate: !0 }
651
- ), (u, c) => {
652
- const p = _e("el-button");
653
- return Z(), M("div", cl, [
654
- G("div", pl, [
655
- G("div", ul, [
656
- c[1] || (c[1] = G("div", null, z("表单信息"), -1)),
657
- W(p, {
658
- class: "blue-operate-button",
659
- icon: "ele-Plus",
660
- onClick: $
661
- }, {
662
- default: ee(() => c[0] || (c[0] = [
663
- le(z("新建"))
664
- ])),
665
- _: 1,
666
- __: [0]
667
- })
668
- ]),
669
- G("div", il, [
670
- W(te, {
671
- columns: a.value,
672
- isShowPagination: !1,
673
- isShowEdit: !1,
674
- isMoveColumn: !1,
675
- tableData: b.value,
676
- onDeleteRow: k
677
- }, null, 8, ["columns", "tableData"])
678
- ]),
679
- G("div", fl, [
680
- c[3] || (c[3] = G("div", null, z("表单按钮"), -1)),
681
- W(p, {
682
- class: "blue-operate-button",
683
- icon: "ele-Plus",
684
- onClick: d
685
- }, {
686
- default: ee(() => c[2] || (c[2] = [
687
- le(z("新建"))
688
- ])),
689
- _: 1,
690
- __: [2]
691
- })
692
- ]),
693
- G("div", dl, [
694
- W(te, {
695
- columns: o.value,
696
- isShowPagination: !1,
697
- isShowEdit: !1,
698
- isMoveColumn: !1,
699
- tableData: y.value,
700
- onDeleteRow: x
701
- }, null, 8, ["columns", "tableData"])
702
- ]),
703
- c[4] || (c[4] = G("div", { class: "operate-title" }, [
704
- G("div", null, z("表单布局"))
705
- ], -1)),
706
- G("div", yl, [
707
- W(ye, {
708
- rowContents: n.value,
709
- onChange: S
710
- }, null, 8, ["rowContents"])
711
- ])
712
- ])
713
- ]);
714
- };
715
- }
716
- }, ml = /* @__PURE__ */ oe(hl, [["__scopeId", "data-v-a36b8468"]]), bl = { class: "extra-content" }, kl = { key: 0 }, gl = {
717
- key: 0,
718
- class: "extra-button-item"
719
- }, Cl = { key: 1 }, $l = {
720
- __name: "index",
721
- props: {
722
- itemData: {
723
- type: Array,
724
- default: () => []
725
- },
726
- childItemData: {
727
- type: Array,
728
- default: () => []
729
- },
730
- index: Number,
731
- changedContent: {
732
- type: Object,
733
- default: () => {
734
- }
735
- }
736
- },
737
- setup(t) {
738
- const s = t, l = R();
739
- q(
740
- () => [s.itemData],
741
- () => {
742
- var a;
743
- const n = r(s.itemData);
744
- l.value = (a = r(n)) == null ? void 0 : a.map((o) => {
745
- var y;
746
- if (o.key === "extra") {
747
- let O = [];
748
- (y = o.value) == null || y.forEach((b) => {
749
- var C;
750
- O.push((C = Object.values(b)) == null ? void 0 : C[0]);
751
- }), o.value = O;
752
- }
753
- return o;
754
- });
755
- },
756
- { deep: !0, immediate: !0 }
757
- );
758
- const e = (n) => _l(n);
759
- return (n, a) => (Z(), M("div", bl, [
760
- (Z(!0), M($e, null, Ae(l.value, (o, y) => (Z(), M("div", { key: y }, [
761
- (o == null ? void 0 : o.key) === "extra" ? (Z(), M("div", kl, [
762
- (Z(!0), M($e, null, Ae(o.value, (O, b) => (Z(), M("div", {
763
- key: b,
764
- class: "extra-button"
765
- }, [
766
- O ? (Z(), M("div", gl, z(O), 1)) : We("", !0)
767
- ]))), 128))
768
- ])) : (Z(), M("div", Cl, [
769
- (Z(), ze(Ze(e(o.comp)), {
770
- itemData: o == null ? void 0 : o.compData,
771
- childItemData: o == null ? void 0 : o.itemChildData,
772
- key: y,
773
- index: y
774
- }, null, 8, ["itemData", "childItemData", "index"]))
775
- ]))
776
- ]))), 128))
777
- ]));
778
- }
779
- }, Al = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-9a96eb90"]]), kt = R([
780
- {
781
- name: "表格",
782
- type: "table",
783
- comp: "Table",
784
- icon: "Grid"
785
- },
786
- {
787
- name: "表单",
788
- type: "form",
789
- comp: "Form",
790
- icon: "Film"
791
- },
792
- {
793
- name: "折叠",
794
- type: "fold",
795
- comp: "Fold",
796
- icon: "Fold"
797
- }
798
- ]), Ol = {
799
- TABLE: Le,
800
- FORM: we,
801
- TableOperate: ol,
802
- FormOperate: ml,
803
- FOLD: He,
804
- CALCULATOR: Al
805
- // 添加其他组件...
806
- };
807
- function _l(t) {
808
- return Ol[t == null ? void 0 : t.toUpperCase()] || null;
809
- }
810
- const J = [
811
- {
812
- key: "FormName",
813
- value: "Form"
814
- },
815
- {
816
- key: "TableName",
817
- value: "Table"
818
- },
819
- {
820
- key: "MenuName",
821
- value: "Menu"
822
- },
823
- {
824
- key: "GroupName",
825
- value: "Group"
826
- },
827
- {
828
- key: "SystemKey",
829
- value: "System"
830
- }
831
- ], B = [
832
- {
833
- key: "FormDirect",
834
- value: "formFlex"
835
- },
836
- {
837
- key: "Form",
838
- value: "formContent"
839
- },
840
- {
841
- key: "FormButton",
842
- value: "formButton"
843
- },
844
- {
845
- key: "FormFlex",
846
- value: "formWrap"
847
- },
848
- {
849
- key: "TableColumns",
850
- value: "header"
851
- },
852
- {
853
- key: "TableButton",
854
- value: "extraButton"
855
- },
856
- {
857
- key: "TableLineButton",
858
- value: "rowButton"
859
- },
860
- {
861
- key: "Table",
862
- value: "tableContents"
863
- },
864
- {
865
- key: "TableIndex",
866
- value: "tableIndex"
867
- },
868
- {
869
- key: "Menus",
870
- value: "menuContents"
871
- },
872
- {
873
- key: "GroupContents",
874
- value: "groupContents"
875
- }
876
- ], w = R(0), xl = (t) => {
877
- const [s, l] = t.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), n = l.replace(/^['"]|['"]$/g, "");
878
- return { key: e, value: n };
879
- }, ae = (t) => {
880
- try {
881
- return JSON.parse(t), !0;
882
- } catch {
883
- return !1;
884
- }
885
- }, Tl = (t) => t.includes("$") && t.trim().endsWith("(") ? t + ")" : t, El = (t) => {
886
- let s = t;
887
- const l = [];
888
- let e = "";
889
- for (const n of s)
890
- 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(), r(e).split("{").length - 1 === r(e).split("}").length - 1 && r(e).split("【").length - 1 === r(e).split("】").length - 1 && r(e).split("[").length - 1 === r(e).split("]").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("/*").length - 1 === r(e).split("*/").length - 1 && (l.push(e), e = "")) : l.push(n.trim());
891
- return l == null ? void 0 : l.filter((n) => n.includes("{"));
892
- }, Dl = (t) => {
893
- var l;
894
- let s = [];
895
- return (l = El(t.slice(1, -1))) == null || l.forEach((e) => {
896
- var a, o, y, O;
897
- let n = ((o = (a = e.slice(1, -1)) == null ? void 0 : a.split(",")) == null ? void 0 : o.length) ?? 1;
898
- (O = (y = e.slice(1, -1)) == null ? void 0 : y.split(",")) == null || O.forEach((b) => {
899
- var x, k, S, u, c, p, g, i, f, h, A, T, D;
900
- let C = b == null ? void 0 : b.split(":"), d = C != null && C[0] ? (C == null ? void 0 : C[1].split("$").length) - 1 === 1 ? ((x = C == null ? void 0 : C[0]) == null ? void 0 : x.replace(/^"(.*)"$/, "$1")) + ((k = C == null ? void 0 : C[1]) == null ? void 0 : k.replace(/^"(.*)"$/, "$1")) : Array.isArray((u = (S = C == null ? void 0 : C[1]) == null ? void 0 : S.replace(/^"(.*)"$/, "$1")) == null ? void 0 : u.split("(")) && ((g = (p = (c = C == null ? void 0 : C[1]) == null ? void 0 : c.replace(/^"(.*)"$/, "$1")) == null ? void 0 : p.split("(")) == null ? void 0 : g.length) > 1 ? ((i = C == null ? void 0 : C[0]) == null ? void 0 : i.replace(/^"(.*)"$/, "$1")) + ((A = (h = (f = C == null ? void 0 : C[1]) == null ? void 0 : f.replace(/^"(.*)"$/, "$1")) == null ? void 0 : h.split("(")) == null ? void 0 : A[0]) + "()" : (T = C == null ? void 0 : C[0]) == null ? void 0 : T.replace(/^"(.*)"$/, "$1") : "", $ = (C == null ? void 0 : C[1].split("$").length) - 1 === 0 ? (D = C == null ? void 0 : C[1]) == null ? void 0 : D.replace(/^"(.*)"$/, "$1") : "";
901
- w.value++, s.push({
902
- id: w.value,
903
- key: d,
904
- value: $,
905
- // 如果值为空,则key设为空字符串,否则保留原值
906
- width: n,
907
- extraContent: C == null ? void 0 : C[1]
908
- });
909
- });
910
- }), s;
911
- }, Te = (t) => {
912
- var s, l;
913
- try {
914
- const e = t.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
915
- if (r(e).split("{").length - 1 > 1) {
916
- let n = r(e).replace(/^\{(.*)\}$/, "[$1]");
917
- if (ae(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), ae(n)) {
918
- const a = JSON.parse(n);
919
- let o = [];
920
- return a == null || a.forEach((y) => {
921
- var O;
922
- (O = Object.entries(r(y))) == null || O.forEach((b) => {
923
- w.value++, o.push({
924
- id: w.value,
925
- key: (b == null ? void 0 : b[0]) ?? "",
926
- value: (b == null ? void 0 : b[1]) === "" ? "" : b == null ? void 0 : b[1],
927
- // 如果值为空,则key设为空字符串,否则保留原值
928
- width: Object.keys(r(y)).length
929
- });
930
- });
931
- }), o;
932
- } else
933
- return e.trim().startsWith("{{") ? Dl(e.trim()) : pe(n);
934
- } else if (ae(e)) {
935
- const n = JSON.parse(e);
936
- return Object.entries(n).map(([a, o]) => (w.value++, {
937
- id: w.value,
938
- key: a,
939
- value: o === "" ? "" : o,
940
- // 如果值为空,则key设为空字符串,否则保留原值
941
- width: 1
942
- }));
943
- } else
944
- return ((s = pe(e)) == null ? void 0 : s.length) === 0 ? e : (l = pe(e)) == null ? void 0 : l.map((n) => ({
945
- label: n.label,
946
- method: Tl(n.method)
947
- }));
948
- } catch (e) {
949
- return console.error("转换失败:", e), [];
950
- }
951
- }, pe = (t) => {
952
- t = t.trim().replace(/^\{|\}$/g, "").trim();
953
- const s = [];
954
- let l = 0;
955
- for (; l < t.length; ) {
956
- const e = t.slice(l).match(/^\s*"([^"]+)"\s*:\s*/);
957
- if (!e) break;
958
- const n = e[1];
959
- l += e[0].length;
960
- let a = "", o = 0, y = !1, O = "";
961
- for (let b = l; b < t.length; b++) {
962
- const C = t[b];
963
- if ((C === '"' || C === "'") && !y ? (y = !0, O = C) : C === O && y && (y = !1, O = ""), !y && ((C === "{" || C === "(" || C === "[") && o++, (C === "}" || C === ")" || C === "]") && o--, C === "," && o === 0 || b === t.length - 1)) {
964
- a = t.slice(l, b + 1).trim(), l = b + 1;
965
- break;
966
- }
967
- }
968
- s.push({
969
- label: n,
970
- method: a
971
- });
972
- }
973
- return s;
974
- }, Nl = (t, s) => {
975
- try {
976
- if (J != null && J.find((l) => (l == null ? void 0 : l.key) === s))
977
- return t.replace(/['"]/g, "").trim();
978
- if (r(t).split("[").length - 1 > 1) {
979
- const l = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
980
- return JSON.parse(l);
981
- } else {
982
- const l = r(t).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
983
- if (ae(l)) {
984
- const e = JSON.parse(l);
985
- return Array.isArray(e) ? e.map((n) => ({ label: n })) : e;
986
- } else
987
- return Te(r(t));
988
- }
989
- } catch (l) {
990
- return console.error("解析失败:", l), t;
991
- }
992
- }, jl = (t) => ({ [t == null ? void 0 : t.key]: Nl(t == null ? void 0 : t.value, t == null ? void 0 : t.key) }), Sl = (t) => {
993
- try {
994
- if (r(t).split("[").length - 1 > 1) {
995
- const s = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
996
- return JSON.parse(s);
997
- } else
998
- return JSON.parse(r(t).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((l) => ({ label: l }));
999
- } catch (s) {
1000
- return console.error("解析失败:", s), t;
1001
- }
1002
- }, Fl = (t) => {
1003
- const s = t.match(/\(([^)]+)\)/);
1004
- return s ? s[1] : "";
1005
- }, Ul = (t) => {
1006
- const s = t.match(/^([^(]+)\s*\(/);
1007
- return s ? s[1].trim() : t;
1008
- }, Oe = (t) => t.replace(/'/g, "").replace(/"/g, "").replace(/{|}/g, "").split(":").map((s) => s.trim()).filter((s) => s).join("/"), Pl = (t) => {
1009
- var o, y;
1010
- let s = [], l = [];
1011
- const e = (o = r(t)) == null ? void 0 : o.map((O) => O == null ? void 0 : O.key), n = [...new Set((y = r(e)) == null ? void 0 : y.map((O) => Fl(O)))];
1012
- n == null || n.forEach((O) => {
1013
- let b = t == null ? void 0 : t.filter(($) => $.key.includes(O));
1014
- b == null || b.forEach(($) => {
1015
- $ != null && $.key.includes("Menus") && (s.push({
1016
- key: "GroupName",
1017
- value: Oe($ == null ? void 0 : $.value)
1018
- }), l.push(Oe($ == null ? void 0 : $.value)));
1019
- });
1020
- let C = t == null ? void 0 : t.filter(($) => $.key.includes(O) && !($ != null && $.key.includes("Menus")));
1021
- C = C == null ? void 0 : C.map(($) => ($.key = Ul($.key), $));
1022
- const d = {
1023
- key: "GroupContents",
1024
- value: C
1025
- };
1026
- s.push(d);
1027
- });
1028
- const a = {
1029
- key: "Menus",
1030
- value: l
1031
- };
1032
- return s.unshift(a), s;
1033
- }, Ee = (t) => {
1034
- var s, l;
1035
- if (Array.isArray(Object.keys(t)) && ((s = Object.keys(t)) == null ? void 0 : s.length) > 0) {
1036
- let e = [];
1037
- return (l = Object.entries(t)) == null || l.forEach(([n, a]) => {
1038
- var y, O;
1039
- let o = [];
1040
- if (o.push(n), ((y = Object.keys(a)) == null ? void 0 : y.length) > 0) {
1041
- let b = [];
1042
- b.push((O = Ee(a)) == null ? void 0 : O[0]), o.push(b == null ? void 0 : b[0]);
1043
- }
1044
- e.push(o);
1045
- }), e;
1046
- }
1047
- }, Bl = (t, s) => {
1048
- var e;
1049
- let l = s;
1050
- return Array.isArray(Object.keys(t)) && ((e = Object.entries(t)) == null || e.forEach(([n, a]) => {
1051
- let o = [n];
1052
- if (typeof a == "object" && a !== null) {
1053
- let y = Ee(a);
1054
- y == null || y.forEach((O) => {
1055
- o.push(O);
1056
- });
1057
- }
1058
- l.push(o);
1059
- })), l;
1060
- }, Jl = (t) => {
1061
- const s = {};
1062
- return t.forEach((e) => {
1063
- const n = e.split("/");
1064
- let a = s;
1065
- n.forEach((o) => {
1066
- a[o] || (a[o] = {}), a = a[o];
1067
- });
1068
- }), Bl(s, []);
1069
- }, De = (t) => Jl(t), gt = (t) => {
1070
- var s, l, e, n, a, o, y, O;
1071
- try {
1072
- const b = me((l = (s = r(t)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), C = (n = (e = r(b)) == null ? void 0 : e.filter((k) => !k.includes("/*"))) == null ? void 0 : n.map((k) => xl(k)), d = Pl(C), $ = [];
1073
- if (((a = d == null ? void 0 : d.find((k) => (k == null ? void 0 : k.key) === "Menus")) == null ? void 0 : a.value.length) === 0)
1074
- return !1;
1075
- (o = r(d)) == null || o.forEach((k) => {
1076
- var S, u, c, p, g;
1077
- J != null && J.find((i) => {
1078
- var f, h;
1079
- return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
1080
- }) ? $.push({
1081
- comp: ((S = J == null ? void 0 : J.find((i) => {
1082
- var f, h;
1083
- return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
1084
- })) == null ? void 0 : S.value) ?? "",
1085
- name: (u = k == null ? void 0 : k.value) == null ? void 0 : u.replace(/[’]|[‘]|[']/g, ""),
1086
- compData: []
1087
- }) : B != null && B.find((i) => {
1088
- var f, h;
1089
- return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
1090
- }) && (($ == null ? void 0 : $.length) === 0 && (c = k.key) != null && c.includes("Menus") && $.push({
1091
- comp: "Menu",
1092
- name: "",
1093
- compData: []
1094
- }), (p = $ == null ? void 0 : $[($ == null ? void 0 : $.length) - 1]) != null && p.compData && $[($ == null ? void 0 : $.length) - 1].compData.push({
1095
- key: (g = B == null ? void 0 : B.find((i) => {
1096
- var f, h;
1097
- return ((f = i == null ? void 0 : i.key) == null ? void 0 : f.toUpperCase()) === ((h = k == null ? void 0 : k.key) == null ? void 0 : h.toUpperCase());
1098
- })) == null ? void 0 : g.value,
1099
- contents: k == null ? void 0 : k.value
1100
- }));
1101
- });
1102
- let x = (y = r($)) == null ? void 0 : y.map((k) => {
1103
- var S;
1104
- return k != null && k.compData && (k.compData = (S = k == null ? void 0 : k.compData) == null ? void 0 : S.map((u) => {
1105
- var c, p, g, i, f, h, A, T, D, _, j;
1106
- if ((u == null ? void 0 : u.key) === "formFlex")
1107
- u.contents = ((p = (c = u.contents) == null ? void 0 : c.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : p.toUpperCase()) !== "Vertical".toUpperCase();
1108
- else if ((u == null ? void 0 : u.key) === "groupContents")
1109
- u.contents = (g = r(u.contents)) == null ? void 0 : g.map((E) => jl(r(E)));
1110
- else if (Array.isArray(u == null ? void 0 : u.contents))
1111
- u.contents = De(u.contents);
1112
- else if (((f = (i = u == null ? void 0 : u.contents) == null ? void 0 : i.trim()) != null && f.startsWith("[") || (A = (h = u.contents) == null ? void 0 : h.trim()) != null && A.startsWith("【")) && ((D = (T = u.contents) == null ? void 0 : T.trim()) != null && D.endsWith("]") || (j = (_ = u.contents) == null ? void 0 : _.trim()) != null && j.endsWith("】")))
1113
- u.contents = Sl(r(u.contents));
1114
- else {
1115
- if (!u.contents) return;
1116
- u.contents = Te(r(u.contents));
1117
- }
1118
- return u;
1119
- })), k;
1120
- });
1121
- return x = (O = r(x)) == null ? void 0 : O.map((k) => {
1122
- var S;
1123
- return (k == null ? void 0 : k.comp) === "Group" && (k.compData = (S = k.compData) == null ? void 0 : S.map((u) => {
1124
- var p;
1125
- let c = [];
1126
- return (p = u.contents) == null || p.forEach((g) => {
1127
- var i, f, h, A, T, D, _, j, E, F, U, v;
1128
- if (J != null && J.find((N) => {
1129
- var m, P, L;
1130
- return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1131
- }))
1132
- c.push({
1133
- comp: (i = J == null ? void 0 : J.find((N) => {
1134
- var m, P, L;
1135
- return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1136
- })) == null ? void 0 : i.value,
1137
- name: (h = (f = Object.values(g)) == null ? void 0 : f[0]) == null ? void 0 : h.replace(/[’]|[‘]|[']/g, ""),
1138
- compData: []
1139
- });
1140
- else if (B != null && B.find((N) => {
1141
- var m, P, L;
1142
- return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1143
- })) {
1144
- if ((c == null ? void 0 : c.length) === 0) return;
1145
- (A = c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1]) != null && A.compData && c[(c == null ? void 0 : c.length) - 1].compData.push({
1146
- key: (T = B == null ? void 0 : B.find((N) => {
1147
- var m, P, L;
1148
- return ((m = N == null ? void 0 : N.key) == null ? void 0 : m.toUpperCase()) === ((L = (P = Object.keys(g)) == null ? void 0 : P[0]) == null ? void 0 : L.toUpperCase());
1149
- })) == null ? void 0 : T.value,
1150
- contents: (D = Object.values(g)) == null ? void 0 : D[0]
1151
- });
1152
- } else if ((j = (_ = Object.keys(g)) == null ? void 0 : _[0]) != null && j.includes("$")) {
1153
- const N = (F = (E = Object.keys(r(g))) == null ? void 0 : E[0]) == null ? void 0 : F.split("$");
1154
- c[(c == null ? void 0 : c.length) - 1].compData.push({
1155
- key: (U = B == null ? void 0 : B.find((m) => {
1156
- var P, L;
1157
- return ((P = m == null ? void 0 : m.key) == null ? void 0 : P.toUpperCase()) === ((L = N == null ? void 0 : N[0]) == null ? void 0 : L.toUpperCase());
1158
- })) == null ? void 0 : U.value,
1159
- contents: (v = Object.values(g)) == null ? void 0 : v[0],
1160
- selectLabel: N == null ? void 0 : N[1]
1161
- });
1162
- }
1163
- return g;
1164
- }), u.contents = c, u;
1165
- })), k;
1166
- }), x;
1167
- } catch {
1168
- return !1;
1169
- }
1170
- }, Y = (t) => {
1171
- try {
1172
- return JSON.parse(t), !0;
1173
- } catch {
1174
- return !1;
1175
- }
1176
- }, Ne = (t) => {
1177
- const s = [];
1178
- let l = null;
1179
- for (let e = 0; e < t.length; e++) {
1180
- const n = t[e];
1181
- if (Array.isArray(n))
1182
- l && (l.children = Ne(n));
1183
- else {
1184
- const a = { label: n };
1185
- s.push(a), l = a;
1186
- }
1187
- }
1188
- return s;
1189
- }, je = (t) => {
1190
- let s = 0;
1191
- for (const l of t)
1192
- s++, l.children && (s += je(l.children));
1193
- return s;
1194
- }, Se = (t, s, l = []) => {
1195
- let e = 0;
1196
- for (const n of s) {
1197
- if (e >= t.length) break;
1198
- const a = [...t[e]];
1199
- if (l.push(a), e++, n.children && n.children.length > 0) {
1200
- const o = [];
1201
- Se(
1202
- t.slice(e),
1203
- n.children,
1204
- o
1205
- ), o.length > 0 && (a.push(o), e += je(n.children));
1206
- }
1207
- }
1208
- return l;
1209
- }, vl = (t, s) => {
1210
- let l = [];
1211
- return t == null || t.forEach((n) => {
1212
- n.some((a) => Array.isArray(a)) ? l.push(...n) : l.push(n);
1213
- }), Se(l, s);
1214
- }, fe = (t) => {
1215
- const s = { label: t[0] };
1216
- if (t.length > 1) {
1217
- const l = t.slice(1);
1218
- l.length === 1 && Array.isArray(l[0]) ? s.children = l[0].map(
1219
- (e) => Array.isArray(e) ? fe(e) : { label: e }
1220
- ) : s.children = l.map(
1221
- (e) => Array.isArray(e) ? fe(e) : { label: e }
1222
- );
1223
- }
1224
- return s;
1225
- }, Rl = (t) => {
1226
- var l;
1227
- return t.some((e) => !Array.isArray(e)) ? t : (l = r(t)) == null ? void 0 : l.map((e) => {
1228
- let n = [];
1229
- return e.some((a) => Array.isArray(a)) ? e == null || e.forEach((a) => {
1230
- Array.isArray(a) && n.push(fe(a));
1231
- }) : e.some((a) => a.includes("[")) ? n.push(e) : n = e.map((a) => ({ label: a })), n;
1232
- });
1233
- }, Fe = (t, s, l) => {
1234
- let e = t, n = l, a = s;
1235
- return a.children && (Array.isArray(n[n.length - 1]) ? n[n.length - 1].push(e[0]) : n.push(e[0]), e.shift(), a = a.children), Array.isArray(a) && a.forEach((o) => {
1236
- if (o.children) {
1237
- const y = Fe(e, o, n);
1238
- n = y[0], e = y[1];
1239
- }
1240
- }), [n, e];
1241
- }, Gl = (t, s) => {
1242
- let l = t, e = [];
1243
- return s.length > 0 ? s == null || s.forEach((n) => {
1244
- let a = l == null ? void 0 : l[0];
1245
- l.shift();
1246
- const o = Fe(r(l), n, a);
1247
- a = o[0], l = o[1], e.push(a);
1248
- }) : e = l, e;
1249
- }, he = (t, s) => {
1250
- const l = Rl(r(t));
1251
- return Gl(l, s);
1252
- }, Ll = (t) => {
1253
- const s = [];
1254
- let l = 0;
1255
- const e = t.length;
1256
- for (; l < e; ) {
1257
- const n = t[l];
1258
- n.key === "tableColumns" && l + 1 < e && t[l + 1].key === "tableContents" ? (s.push({
1259
- comp: "Table",
1260
- compData: [n, t[l + 1]],
1261
- name: ""
1262
- }), l += 2) : (s.push(n), l += 1);
1263
- }
1264
- return s;
1265
- }, Wl = (t) => he([t], []), zl = (t) => {
1266
- let s = Ll(t);
1267
- return s = s == null ? void 0 : s.map((l) => {
1268
- var e;
1269
- return l.comp === "Table" ? l.compData = (e = l.compData) == null ? void 0 : e.map((n) => (n.key === "tableColumns" ? n = {
1270
- key: "header",
1271
- contents: he(n.value, [])
1272
- } : n = {
1273
- key: n.key,
1274
- contents: n.value
1275
- }, n)) : l.key === "form" && (l = {
1276
- comp: "Form",
1277
- compData: [],
1278
- name: ""
1279
- }), l;
1280
- }), s;
1281
- }, Zl = (t, s) => {
1282
- var y, O, b, C, d, $;
1283
- const l = [], e = Ne((O = (y = t == null ? void 0 : t.find((x) => x.key === "tableIndex")) == null ? void 0 : y.value) == null ? void 0 : O[0]);
1284
- l.push({
1285
- key: "tableIndexColumn",
1286
- contents: s
1287
- }), l.push({
1288
- key: "tableIndex",
1289
- contents: e
1290
- });
1291
- let n = [];
1292
- const a = (b = t == null ? void 0 : t.find((x) => x.key === "tableColumns")) == null ? void 0 : b.value;
1293
- a.length === 1 && !(a != null && a[0].some((x) => Array.isArray(x))) ? n = (C = a == null ? void 0 : a[0]) == null ? void 0 : C.map((x) => ({ label: x })) : n = he((d = t == null ? void 0 : t.find((x) => x.key === "tableColumns")) == null ? void 0 : d.value, e), l.push({
1294
- key: "header",
1295
- contents: n
1296
- });
1297
- const o = vl(($ = t == null ? void 0 : t.find((x) => x.key === "tableContents")) == null ? void 0 : $.value, e);
1298
- return l.push({
1299
- key: "tableContents",
1300
- contents: o
1301
- }), l;
1302
- }, Ue = (t) => t.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, (s, l, e) => {
1303
- const n = Ue(e);
1304
- return `"${l}",${n}`;
1305
- }), ue = (t) => {
1306
- const s = t.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g, '"$1",$2');
1307
- return Ue(s).replace(/^"(.*)"$/, "$1");
1308
- }, me = (t) => {
1309
- let s;
1310
- t.replaceAll(" ", `\r
1311
- `).includes(`\r
1312
- `) ? s = t.replaceAll(" ", `\r
1313
- `).split(`\r
1314
- `).filter((n) => n.trim() !== "") : s = t.replaceAll(" ", `\r
1315
- `).split(`
1316
- `).filter((n) => n.trim() !== "");
1317
- const l = [];
1318
- let e = "";
1319
- for (const n of s)
1320
- 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(), r(e).split("{").length - 1 === r(e).split("}").length - 1 && r(e).split("【").length - 1 === r(e).split("】").length - 1 && r(e).split("[").length - 1 === r(e).split("]").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("/*").length - 1 === r(e).split("*/").length - 1 && e[e.length - 1] !== "," && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(n.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1321
- return l;
1322
- }, Ml = (t) => {
1323
- const [s, l] = t.split(/=(.+)/), e = s.replace(/['"]/g, "").trim(), n = l.replace(/^['"]|['"]$/g, "");
1324
- return { key: e, value: n };
1325
- }, be = (t) => {
1326
- let s;
1327
- t.includes(":") ? s = t.split(":").filter((n) => n.trim() !== "") : s = t.split(":").filter((n) => n.trim() !== "");
1328
- const l = [];
1329
- let e = "";
1330
- for (const n of s)
1331
- 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(), r(e).split("{").length - 1 === r(e).split("}").length - 1 && r(e).split("【").length - 1 === r(e).split("】").length - 1 && r(e).split("[").length - 1 === r(e).split("]").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("(").length - 1 === r(e).split(")").length - 1 && r(e).split("/*").length - 1 === r(e).split("*/").length - 1 && (l.push(e.replace(/\/\*[\s\S]*?\*\//g, "")), e = "")) : l.push(n.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1332
- return l;
1333
- }, ke = (t) => /^[\x00-\x7F]*$/.test(t), Hl = (t) => {
1334
- var n;
1335
- const s = t.map((a) => {
1336
- var y, O;
1337
- let o = (O = (y = a.key.split("(")) == null ? void 0 : y[1]) == null ? void 0 : O.trim();
1338
- return o.slice(0, o.length - 1);
1339
- }), l = s == null ? void 0 : s.map((a) => {
1340
- var y;
1341
- return (y = be(a)) == null ? void 0 : y.map((O) => {
1342
- var b;
1343
- if (O.includes("{")) {
1344
- let C = (b = O.split(":")) == null ? void 0 : b[0];
1345
- O = C.slice(1, C.length);
1346
- }
1347
- return O;
1348
- });
1349
- }), e = (n = l == null ? void 0 : l.filter((a) => a.length !== 0)) == null ? void 0 : n.map((a) => {
1350
- let o = "";
1351
- return a.forEach((y) => {
1352
- !ke(y) && !y.includes("{") && (o = o === "" ? o + r(y) : o + "/" + r(y));
1353
- }), o;
1354
- });
1355
- return De([...new Set(e)]);
1356
- }, Pe = (t) => {
1357
- var l, e;
1358
- const s = (e = (l = t.split("(")) == null ? void 0 : l[1]) == null ? void 0 : e.trim();
1359
- return s.slice(0, s.length - 1);
1360
- }, ql = (t) => {
1361
- var n;
1362
- if (!t) return;
1363
- const s = Pe(t), l = (n = be(s)) == null ? void 0 : n.map((a) => {
1364
- var o;
1365
- if (a.includes("{")) {
1366
- let y = (o = a.split(":")) == null ? void 0 : o[0];
1367
- a = y.slice(1, y.length);
1368
- }
1369
- return a;
1370
- });
1371
- let e = "";
1372
- return l.forEach((a) => {
1373
- ke(a) || (e = e === "" ? e + r(a) : e + "/" + r(a));
1374
- }), e;
1375
- }, Ql = (t) => {
1376
- const s = t.match(/\[(.*)\]/s);
1377
- if (s) {
1378
- const l = `[${s[1]}]`;
1379
- try {
1380
- const e = l.replace(/([^\[\],\s]+)/g, '"$1"');
1381
- return JSON.parse(e);
1382
- } catch (e) {
1383
- console.error("解析失败:", e);
1384
- }
1385
- }
1386
- }, Xl = (t) => {
1387
- var a;
1388
- if (!t) return;
1389
- const s = Pe(t);
1390
- let l = [], e = [], n = [];
1391
- return (a = be(s)) == null || a.forEach((o) => {
1392
- var y;
1393
- o.includes("[") ? l.push(Ql(o)) : o.includes("{") && (ke((y = o.slice(1, o.length - 1).split(":")) == null ? void 0 : y[0]) ? n.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : Y(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')) ? e.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3'))) : o.includes("$") || e.push(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g, '$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g, '$1"$2"$3')));
1394
- }), [l, e, n];
1395
- }, Yl = (t) => {
1396
- const s = [];
1397
- let l = "";
1398
- for (const e of t)
1399
- e.includes("[") || l.includes("[") || e.includes("/*") || l.includes("/*") ? (l += e.trim(), r(l).split("{").length - 1 === r(l).split("}").length - 1 && r(l).split("【").length - 1 === r(l).split("】").length - 1 && r(l).split("[").length - 1 === r(l).split("]").length - 1 && r(l).split("(").length - 1 === r(l).split(")").length - 1 && r(l).split("(").length - 1 === r(l).split(")").length - 1 && r(l).split("/*").length - 1 === r(l).split("*/").length - 1 && (s.push(l.replace(/\/\*[\s\S]*?\*\//g, "")), l = "")) : s.push(e.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
1400
- return s;
1401
- }, wl = (t) => {
1402
- var n, a, o, y, O;
1403
- let s = [], l = [], e = t.trim();
1404
- if (!(e.trim().includes("输入") && e.trim().includes("输出"))) {
1405
- const b = (n = e.trim().split(",$")) == null ? void 0 : n[0];
1406
- b[0] === "[" ? e = b.slice(1, b.length - 1) : e.includes(",$") && (e = (a = e.trim().split(",$")) == null ? void 0 : a[0]);
1407
- let C;
1408
- e.includes("$") ? e = r(e) : C = (y = (o = r(e).split("}")) == null ? void 0 : o.filter((d) => d !== "")) == null ? void 0 : y.map((d) => {
1409
- let $ = d;
1410
- return $[0] === "," ? $ = $.slice(2, $.length) : $ = $.slice(1, $.length), $;
1411
- }), (O = r(C)) == null || O.forEach((d) => {
1412
- var $, x, k, S, u, c, p, g, i, f;
1413
- if (!d.includes("=="))
1414
- Y(($ = d == null ? void 0 : d.split(":")) == null ? void 0 : $[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) && s.push(JSON.parse((x = d == null ? void 0 : d.split(":")) == null ? void 0 : x[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))), Y((k = d == null ? void 0 : d.split(":")) == null ? void 0 : k[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"')) ? l.push(JSON.parse((S = d == null ? void 0 : d.split(":")) == null ? void 0 : S[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'))) : Y((u = d == null ? void 0 : d.split(":")) == null ? void 0 : u[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')) && l.push(JSON.parse((c = d == null ? void 0 : d.split(":")) == null ? void 0 : c[1].replace(/^"|"$/g, "'").replaceAll("'", '"').replace(/'([^']+)'/g, '"$1"')));
1415
- else {
1416
- const h = (p = d == null ? void 0 : d.split(":")) == null ? void 0 : p[0].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"'), A = (g = d == null ? void 0 : d.split(":")) == null ? void 0 : g[1].replace(/^"|"$/g, "'").replace(/'([^']+)'/g, '"$1"');
1417
- if (Y(A.trim()) ? l.push(JSON.parse(A.trim())) : l.push(JSON.parse(A.replaceAll("'", '"').trim())), h[0] !== "[") {
1418
- let T = [];
1419
- Y("[" + ue(h) + "]") ? T.push(JSON.parse("[" + ue(h) + "]")) : T.push("[" + ue(h) + "]"), s.push(T);
1420
- } else {
1421
- const T = (i = h.slice(1, h.length - 1).replaceAll(",", ",|")) == null ? void 0 : i.split("|"), D = (f = Yl(T)) == null ? void 0 : f.map((j) => ((j == null ? void 0 : j[j.length - 1]) === "," && (j = j.slice(0, j.length - 1)), j));
1422
- let _ = [];
1423
- D == null || D.forEach((j) => {
1424
- var F, U, v, N;
1425
- let E = [];
1426
- E.push((F = j.split("==")) == null ? void 0 : F[0].trim().replace(/^"|"$/g, "")), ((U = j.split("==")) == null ? void 0 : U[1].trim()[0]) === "[" ? E.push(JSON.parse((v = j.split("==")) == null ? void 0 : v[1].trim())) : E.push([JSON.parse((N = j.split("==")) == null ? void 0 : N[1].trim())]), _.push(E);
1427
- }), s.push(_);
1428
- }
1429
- }
1430
- });
1431
- }
1432
- return [s, l];
1433
- }, Kl = (t) => {
1434
- const s = [], l = ql(t == null ? void 0 : t.key), e = Xl(t == null ? void 0 : t.key), n = wl(t == null ? void 0 : t.value), a = e == null ? void 0 : e[0], o = e == null ? void 0 : e[1], y = e == null ? void 0 : e[2], O = n == null ? void 0 : n[0], b = n == null ? void 0 : n[1];
1435
- return l && s.push({
1436
- key: "contentPath",
1437
- value: l
1438
- }), (a == null ? void 0 : a.length) > 0 && s.push({
1439
- key: "tableIndex",
1440
- value: a
1441
- }), (o == null ? void 0 : o.length) > 0 && s.push({
1442
- key: "form",
1443
- value: o
1444
- }), (y == null ? void 0 : y.length) > 0 && s.push({
1445
- key: "extra",
1446
- value: y
1447
- }), (O == null ? void 0 : O.length) > 0 && s.push({
1448
- key: "tableColumns",
1449
- value: O
1450
- }), (b == null ? void 0 : b.length) > 0 && s.push({
1451
- key: "tableContents",
1452
- value: b
1453
- }), s;
1454
- }, Vl = (t, s) => {
1455
- const l = s.split("/"), e = [];
1456
- return t == null || t.forEach((n) => {
1457
- var y, O, b, C, d, $, x, k, S;
1458
- const a = [], o = (O = (y = n.find((u) => u.key === "tableIndex")) == null ? void 0 : y.value) == null ? void 0 : O[0];
1459
- if (o && !o.some((u) => Array.isArray(u))) {
1460
- const u = (C = (b = n.find((c) => c.key === "tableColumns")) == null ? void 0 : b.value) == null ? void 0 : C[0];
1461
- a.push({
1462
- key: "tableIndexColumn",
1463
- contents: l[l.length - 1]
1464
- }), a.push({
1465
- key: "tableIndex",
1466
- contents: o == null ? void 0 : o.map((c) => ({ label: c }))
1467
- }), Array.isArray(u) && u.some((c) => Array.isArray(c)) ? a.push({
1468
- key: "header",
1469
- contents: Wl(u)
1470
- }) : a.push({
1471
- key: "header",
1472
- contents: Array.isArray(u) ? u == null ? void 0 : u.map((c) => ({ label: c })) : [u].map((c) => ({ label: c }))
1473
- }), a.push({
1474
- key: "tableContents",
1475
- contents: Array.isArray(u) ? ($ = (d = n.find((c) => c.key === "tableContents")) == null ? void 0 : d.value) == null ? void 0 : $[0] : (S = (k = (x = n.find((c) => c.key === "tableContents")) == null ? void 0 : x.value) == null ? void 0 : k[0]) == null ? void 0 : S.map((c) => [c])
1476
- }), e.push({
1477
- comp: "Table",
1478
- name: "",
1479
- compData: a
1480
- });
1481
- } else o ? e.push({
1482
- comp: "Table",
1483
- name: "",
1484
- compData: Zl(n, l[l.length - 1])
1485
- }) : e.push({
1486
- comp: "calculator",
1487
- name: "",
1488
- compData: zl(n)
1489
- });
1490
- }), e;
1491
- }, Il = (t, s) => {
1492
- var n, a;
1493
- const l = t.map((o) => o.filter((y) => y.key !== "contentPath"));
1494
- return {
1495
- comp: "Group",
1496
- compData: [{
1497
- contents: Vl(l, s),
1498
- key: "groupContents"
1499
- }],
1500
- name: (a = (n = t[0]) == null ? void 0 : n.find((o) => o.key === "contentPath")) == null ? void 0 : a.value
1501
- };
1502
- }, et = (t) => {
1503
- var n;
1504
- const s = [], l = r(t).map((a) => {
1505
- var o;
1506
- if (a != null && a.find((y) => (y == null ? void 0 : y.key) === "contentPath"))
1507
- return (o = a == null ? void 0 : a.find((y) => (y == null ? void 0 : y.key) === "contentPath")) == null ? void 0 : o.value;
1508
- }).filter((a) => a !== ""), e = [...new Set(l)];
1509
- return (n = e == null ? void 0 : e.filter((a) => a)) == null || n.forEach((a) => {
1510
- var o;
1511
- s.push(Il((o = r(t)) == null ? void 0 : o.filter((y) => y.find((O) => O.key === "contentPath" && O.value === a)), a));
1512
- }), s;
1513
- }, lt = (t) => {
1514
- let s = [];
1515
- s.push({
1516
- comp: "Menu",
1517
- compData: [{
1518
- contents: Hl(r(t)),
1519
- key: "menuContents"
1520
- }],
1521
- name: ""
1522
- });
1523
- const l = t.map((e) => Kl(e));
1524
- return s = [...s, ...et(l)], s;
1525
- }, Ct = (t) => {
1526
- var n, a, o, y, O;
1527
- const s = (o = me((a = (n = r(t)) == null ? void 0 : n.replace("(", "(")) == null ? void 0 : a.replace(")", ")"))) == null ? void 0 : o.filter((b) => b !== ""), l = (O = (y = r(s)) == null ? void 0 : y.filter((b) => !b.includes("/*"))) == null ? void 0 : O.map((b) => Ml(b));
1528
- return lt(l);
1529
- }, se = R(0), ie = R(0), tt = (t) => {
1530
- const s = t.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 = {};
1531
- let n;
1532
- for (; (n = l.exec(s)) !== null; ) {
1533
- const a = n[1];
1534
- let o = n[2].trim();
1535
- (o.match(/\[/g) || []).length !== (o.match(/\]/g) || []).length && (o = o == null ? void 0 : o.replace(/]$/, "")), e[a] ? (e[a + ie.value] && ie.value++, e[a + ie.value] = a + "=" + o) : e[a] = a + "=" + o;
1536
- }
1537
- return e;
1538
- }, Be = (t) => {
1539
- const [s, l] = t.split("=").map((a) => a.trim()), e = s.replace(/['"]/g, ""), n = l.replace(/^['"]|['"]$/g, "");
1540
- return { key: e, value: n };
1541
- }, nt = (t) => {
1542
- var o;
1543
- let s = [];
1544
- const [l, e] = t.split(/=(.+)/), n = l.replace(/['"]/g, "").trim(), a = e.replace(/^['"]|['"]$/g, "");
1545
- return (o = Object.values(tt(a))) == null || o.forEach((y) => {
1546
- s.push(Be(y));
1547
- }), { key: n, value: s };
1548
- }, re = (t) => {
1549
- try {
1550
- return JSON.parse(t), !0;
1551
- } catch {
1552
- return !1;
1553
- }
1554
- }, Je = (t) => {
1555
- try {
1556
- const s = t.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
1557
- if (r(s).split("{").length - 1 > 1) {
1558
- let l = r(s).replace(/^\{(.*)\}$/, "[$1]");
1559
- if (re(l) && !l.includes("$") || (l = l.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), re(l)) {
1560
- const e = JSON.parse(l);
1561
- let n = [];
1562
- return e == null || e.forEach((a) => {
1563
- var o;
1564
- (o = Object.entries(r(a))) == null || o.forEach((y) => {
1565
- se.value++, n.push({
1566
- id: se.value,
1567
- key: (y == null ? void 0 : y[0]) ?? "",
1568
- value: (y == null ? void 0 : y[1]) === "" ? "" : y == null ? void 0 : y[1],
1569
- // 如果值为空,则key设为空字符串,否则保留原值
1570
- width: Object.keys(r(a)).length
1571
- });
1572
- });
1573
- }), n;
1574
- } else
1575
- return console.error("转换类型不正确:"), [];
1576
- } else if (re(s)) {
1577
- const l = JSON.parse(s);
1578
- return Object.entries(l).map(([e, n]) => (se.value++, {
1579
- id: se.value,
1580
- key: e,
1581
- value: n === "" ? "" : n,
1582
- // 如果值为空,则key设为空字符串,否则保留原值
1583
- width: 1
1584
- }));
1585
- } else
1586
- return s;
1587
- } catch (s) {
1588
- return console.error("转换失败:", s), [];
1589
- }
1590
- }, st = (t, s) => {
1591
- try {
1592
- if (J != null && J.find((l) => (l == null ? void 0 : l.key) === s))
1593
- return JSON.parse(t.replace(/[’]|[‘]|[']/g, '"'));
1594
- if (r(t).split("[").length - 1 > 1) {
1595
- const l = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1596
- return JSON.parse(l);
1597
- } else {
1598
- const l = r(t).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
1599
- if (re(l)) {
1600
- const e = JSON.parse(l);
1601
- return Array.isArray(e) ? e.map((n) => ({ label: n })) : e;
1602
- } else
1603
- return Je(r(t));
1604
- }
1605
- } catch (l) {
1606
- return console.error("解析失败:", l), t;
1607
- }
1608
- }, at = (t) => ({ [t == null ? void 0 : t.key]: st(t == null ? void 0 : t.value, t == null ? void 0 : t.key) }), rt = (t) => {
1609
- try {
1610
- if (r(t).split("[").length - 1 > 1) {
1611
- const s = r(t).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1612
- return JSON.parse(s);
1613
- } else
1614
- return JSON.parse(r(t).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((l) => ({ label: l }));
1615
- } catch (s) {
1616
- return console.error("解析失败:", s), t;
1617
- }
1618
- }, ve = (t) => {
1619
- var s, l, e, n, a, o;
1620
- try {
1621
- const y = me((l = (s = r(t)) == null ? void 0 : s.replace("(", "(")) == null ? void 0 : l.replace(")", ")")), O = (e = r(y)) == null ? void 0 : e.map((d) => {
1622
- var x, k;
1623
- let $ = (k = (x = r(d)) == null ? void 0 : x.split("=")) == null ? void 0 : k[0];
1624
- return $ != null && $.includes("GroupContents") ? nt(d) : Be(d);
1625
- }), b = [];
1626
- (n = r(O)) == null || n.forEach((d) => {
1627
- var $, x, k, S, u;
1628
- J != null && J.find((c) => {
1629
- var p, g;
1630
- return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
1631
- }) ? b.push({
1632
- comp: (($ = J == null ? void 0 : J.find((c) => {
1633
- var p, g;
1634
- return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
1635
- })) == null ? void 0 : $.value) ?? "",
1636
- name: (x = d == null ? void 0 : d.value) == null ? void 0 : x.replace(/[’]|[‘]|[']/g, ""),
1637
- compData: []
1638
- }) : B != null && B.find((c) => {
1639
- var p, g;
1640
- return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
1641
- }) && ((b == null ? void 0 : b.length) === 0 && (k = d.key) != null && k.includes("Menus") && b.push({
1642
- comp: "Menu",
1643
- name: "",
1644
- compData: []
1645
- }), (S = b == null ? void 0 : b[(b == null ? void 0 : b.length) - 1]) != null && S.compData && b[(b == null ? void 0 : b.length) - 1].compData.push({
1646
- key: (u = B == null ? void 0 : B.find((c) => {
1647
- var p, g;
1648
- return ((p = c == null ? void 0 : c.key) == null ? void 0 : p.toUpperCase()) === ((g = d == null ? void 0 : d.key) == null ? void 0 : g.toUpperCase());
1649
- })) == null ? void 0 : u.value,
1650
- contents: d == null ? void 0 : d.value
1651
- }));
1652
- }), console.log("newContents", b);
1653
- let C = (a = r(b)) == null ? void 0 : a.map((d) => {
1654
- var $;
1655
- return d != null && d.compData && (d.compData = ($ = d == null ? void 0 : d.compData) == null ? void 0 : $.map((x) => {
1656
- var k, S, u, c, p, g, i, f, h, A, T;
1657
- if ((x == null ? void 0 : x.key) === "formFlex")
1658
- x.contents = ((S = (k = x.contents) == null ? void 0 : k.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : S.toUpperCase()) !== "Vertical".toUpperCase();
1659
- else if ((x == null ? void 0 : x.key) === "groupContents")
1660
- x.contents = (u = r(x.contents)) == null ? void 0 : u.map((D) => at(r(D)));
1661
- else if (((p = (c = x.contents) == null ? void 0 : c.trim()) != null && p.startsWith("[") || (i = (g = x.contents) == null ? void 0 : g.trim()) != null && i.startsWith("【")) && ((h = (f = x.contents) == null ? void 0 : f.trim()) != null && h.endsWith("]") || (T = (A = x.contents) == null ? void 0 : A.trim()) != null && T.endsWith("】")))
1662
- x.contents = rt(r(x.contents));
1663
- else {
1664
- if (!x.contents) return;
1665
- x.contents = Je(r(x.contents));
1666
- }
1667
- return x;
1668
- })), d;
1669
- });
1670
- return C = (o = r(C)) == null ? void 0 : o.map((d) => {
1671
- var $;
1672
- return (d == null ? void 0 : d.comp) === "Group" && (d.compData = ($ = d.compData) == null ? void 0 : $.map((x) => {
1673
- var S;
1674
- let k = [];
1675
- return (S = x.contents) == null || S.forEach((u) => {
1676
- var c, p, g, i, f, h, A, T, D, _, j, E;
1677
- if (J != null && J.find((F) => {
1678
- var U, v, N;
1679
- return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1680
- }))
1681
- k.push({
1682
- comp: (c = J == null ? void 0 : J.find((F) => {
1683
- var U, v, N;
1684
- return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1685
- })) == null ? void 0 : c.value,
1686
- name: (g = (p = Object.values(u)) == null ? void 0 : p[0]) == null ? void 0 : g.replace(/[’]|[‘]|[']/g, ""),
1687
- compData: []
1688
- });
1689
- else if (B != null && B.find((F) => {
1690
- var U, v, N;
1691
- return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1692
- })) {
1693
- if ((k == null ? void 0 : k.length) === 0) return;
1694
- (i = k == null ? void 0 : k[(k == null ? void 0 : k.length) - 1]) != null && i.compData && k[(k == null ? void 0 : k.length) - 1].compData.push({
1695
- key: (f = B == null ? void 0 : B.find((F) => {
1696
- var U, v, N;
1697
- return ((U = F == null ? void 0 : F.key) == null ? void 0 : U.toUpperCase()) === ((N = (v = Object.keys(u)) == null ? void 0 : v[0]) == null ? void 0 : N.toUpperCase());
1698
- })) == null ? void 0 : f.value,
1699
- contents: (h = Object.values(u)) == null ? void 0 : h[0]
1700
- });
1701
- } else if ((T = (A = Object.keys(u)) == null ? void 0 : A[0]) != null && T.includes("$")) {
1702
- const F = (_ = (D = Object.keys(r(u))) == null ? void 0 : D[0]) == null ? void 0 : _.split("$");
1703
- k[(k == null ? void 0 : k.length) - 1].compData.push({
1704
- key: (j = B == null ? void 0 : B.find((U) => {
1705
- var v, N;
1706
- return ((v = U == null ? void 0 : U.key) == null ? void 0 : v.toUpperCase()) === ((N = F == null ? void 0 : F[0]) == null ? void 0 : N.toUpperCase());
1707
- })) == null ? void 0 : j.value,
1708
- contents: (E = Object.values(u)) == null ? void 0 : E[0],
1709
- selectLabel: F == null ? void 0 : F[1]
1710
- });
1711
- }
1712
- return u;
1713
- }), x.contents = k, x;
1714
- })), d;
1715
- }), C;
1716
- } catch {
1717
- return !1;
1718
- }
1719
- }, $t = (t) => ve(t), At = (t) => !!ve(t), ot = Qe(de), { itemData: Ot } = xe(ot), ct = qe(de), { systemKey: _t, activeMenuPath: xt } = xe(ct), I = R(0), Tt = (t) => t.reduce((l, e) => {
1720
- var a, o;
1721
- const n = Object.values(l);
1722
- return (((a = Object.keys(l)) == null ? void 0 : a.length) === 0 || n[n.length - 1].length >= (e == null ? void 0 : e.width)) && (l[I.value] = [], I.value++), l[I.value - 1].push(e), ((o = Object.keys(l)) == null ? void 0 : o.length) === (e == null ? void 0 : e.width) && (l[I.value] = [], I.value++), l;
1723
- }, {});
1724
- export {
1725
- Tt as a,
1726
- gt as b,
1727
- Ct as c,
1728
- $t as e,
1729
- _l as g,
1730
- At as i,
1731
- kt as s
1732
- };