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
@@ -0,0 +1,432 @@
1
+ import { ref as T, watch as Fe, onMounted as Ie, createElementBlock as J, openBlock as P, createBlock as Me, createVNode as He, createSlots as we, withCtx as M, Fragment as Le, renderList as ea, createElementVNode as w, normalizeStyle as aa, toDisplayString as L, createCommentVNode as la } from "vue";
2
+ import { p as Re } from "./index-DCRZ9Y1m.js";
3
+ import { a as ia, b as ra, s as na } from "./index-CdRgYGoU.js";
4
+ import { d as Pe, s as $e } from "./pinia-DB5lI5eD.js";
5
+ import { c as g } from "./cloneDeep-B2CowBmY.js";
6
+ import { _ as sa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const oa = Pe("formToTableComp", {
8
+ state: () => ({
9
+ selectArray: [],
10
+ selectString: ""
11
+ }),
12
+ actions: {
13
+ setSelectArray(d) {
14
+ this.selectArray = d;
15
+ },
16
+ setSelectString(d) {
17
+ this.selectString = d;
18
+ }
19
+ }
20
+ }), da = Pe("unit", {
21
+ state: () => ({
22
+ selectIndex: "",
23
+ selectMenu: "",
24
+ selectTitle: []
25
+ }),
26
+ actions: {
27
+ setSelectIndex(d) {
28
+ this.selectIndex = d;
29
+ },
30
+ setSelectMenu(d) {
31
+ this.selectMenu = d;
32
+ },
33
+ setSelectTitle(d) {
34
+ this.selectTitle = d;
35
+ }
36
+ }
37
+ }), fa = (d, h) => {
38
+ const e = h == null ? void 0 : h.split("-");
39
+ return Ue(d, e);
40
+ }, Ue = (d, h) => {
41
+ var l;
42
+ let e = d, a = h;
43
+ return Array.isArray(e) ? e = e == null ? void 0 : e[parseInt(g(a == null ? void 0 : a[0]))] : Array.isArray(e == null ? void 0 : e.children) && (e = (l = e == null ? void 0 : e.children) == null ? void 0 : l[parseInt(g(a == null ? void 0 : a[0]))]), a == null || a.shift(), (a == null ? void 0 : a.length) > 0 && (e = Ue(e, a)), e;
44
+ }, We = (d, h) => {
45
+ let e = d, a = h;
46
+ return Array.isArray(e) && (e = e == null ? void 0 : e.map((l, o) => {
47
+ if (Array.isArray(l)) {
48
+ let A = {};
49
+ return l = l == null ? void 0 : l.forEach((D, N) => {
50
+ var O;
51
+ (O = a == null ? void 0 : a[N]) != null && O.prop ? A[a[N].prop] = D : Array.isArray(D) && (A.children = We(D, a));
52
+ }), Object.assign(A, { id: o });
53
+ } else
54
+ return l;
55
+ })), e;
56
+ }, Ge = (d, h, e) => {
57
+ let a = d, l = h;
58
+ return a = a == null ? void 0 : a.map((o, A) => {
59
+ var D, N;
60
+ return !Array.isArray(o) || !((D = l == null ? void 0 : l[A]) != null && D.label) && !e || (o.unshift(((N = l == null ? void 0 : l[A]) == null ? void 0 : N.label) ?? ""), o.some((O) => Array.isArray(O)) && (o = o == null ? void 0 : o.map((O) => {
61
+ var R;
62
+ return Array.isArray(O) && (O = Ge(O, (R = l == null ? void 0 : l[A]) == null ? void 0 : R.children, e)), O;
63
+ }))), o;
64
+ }), a;
65
+ }, ca = (d, h, e) => {
66
+ if (h === "")
67
+ return d == null ? void 0 : d.filter((a) => (a == null ? void 0 : a.id) !== e);
68
+ {
69
+ const a = h.split("-");
70
+ return ua(d, a, e);
71
+ }
72
+ }, ua = (d, h, e) => {
73
+ let a = d, l = h;
74
+ return (l == null ? void 0 : l.length) === 0 ? a = a == null ? void 0 : a.filter((o) => o.id !== e) : a = a == null ? void 0 : a.map((o) => (o.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), o = qe(o, l, e)), o)), a;
75
+ }, qe = (d, h, e) => {
76
+ var o, A;
77
+ let a = d, l = h;
78
+ return (l == null ? void 0 : l.length) === 0 ? a.children = (o = a.children) == null ? void 0 : o.filter((D) => D.id !== e) : a.children = (A = a.children) == null ? void 0 : A.map((D) => (D.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), D = qe(D, l, e)), D)), a;
79
+ }, ha = (d, h, e) => {
80
+ if (h === "")
81
+ return e;
82
+ {
83
+ const a = h.split("-");
84
+ return pa(d, a, e);
85
+ }
86
+ }, pa = (d, h, e) => {
87
+ let a = d, l = h;
88
+ return (l == null ? void 0 : l.length) === 0 ? a = e : a = a == null ? void 0 : a.map((o) => (o.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), o = Je(o, l, e)), o)), a;
89
+ }, Je = (d, h, e) => {
90
+ var o;
91
+ let a = d, l = h;
92
+ return (l == null ? void 0 : l.length) === 0 ? a.children = e : a.children = (o = a.children) == null ? void 0 : o.map((A) => (A.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), A = Je(A, l, e)), A)), a;
93
+ }, H = T(0), K = (d) => (H.value++, d == null ? void 0 : d.map((e) => Array.isArray(e) ? K(e) : {
94
+ label: (e == null ? void 0 : e.label) ?? "",
95
+ prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : (e == null ? void 0 : e.prop) ?? "a" + H.value,
96
+ width: (e == null ? void 0 : e.label) === "操作" ? "160" : e != null && e.width ? parseInt(e.width) : "",
97
+ fixed: (e == null ? void 0 : e.fixed) ?? void 0,
98
+ sortable: (e == null ? void 0 : e.sortable) ?? !1,
99
+ align: (e == null ? void 0 : e.align) ?? "center",
100
+ showOverflowTooltip: (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
101
+ isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
102
+ isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
103
+ isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
104
+ id: (e == null ? void 0 : e.id) ?? H.value,
105
+ type: (e == null ? void 0 : e.label) === "操作" ? "operate" : void 0,
106
+ formType: (e == null ? void 0 : e.formType) ?? "",
107
+ isHidden: e == null ? void 0 : e.isHidden,
108
+ options: (e == null ? void 0 : e.options) ?? [],
109
+ children: K(e.children) ?? void 0
110
+ })), ya = (d) => {
111
+ const h = [];
112
+ function e(a) {
113
+ if (Array.isArray(a))
114
+ for (const l of a)
115
+ !l.children || l.children.length === 0 ? h.push(l) : e(l.children);
116
+ }
117
+ return e(d), h;
118
+ }, ze = (d) => g(d).map((e) => (Array.isArray(e) && (e = e.map((a) => (Array.isArray(a) ? a = K(a) : (a = {
119
+ label: (a == null ? void 0 : a.label) ?? "",
120
+ prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : (a == null ? void 0 : a.prop) ?? "a" + H.value,
121
+ width: (a == null ? void 0 : a.label) === "操作" ? "160" : a != null && a.width ? parseInt(a.width) : "",
122
+ fixed: (a == null ? void 0 : a.fixed) ?? void 0,
123
+ sortable: (a == null ? void 0 : a.sortable) ?? !1,
124
+ align: (a == null ? void 0 : a.align) ?? "center",
125
+ showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
126
+ isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
127
+ isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
128
+ isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
129
+ id: (a == null ? void 0 : a.id) ?? H.value,
130
+ type: (a == null ? void 0 : a.label) === "操作" ? "operate" : void 0,
131
+ formType: (a == null ? void 0 : a.formType) ?? "",
132
+ isHidden: a == null ? void 0 : a.isHidden,
133
+ options: (a == null ? void 0 : a.options) ?? [],
134
+ children: K(a.children)
135
+ }, H.value++), a))), e)), ee = (d, h) => {
136
+ var l;
137
+ if (h.length === 0) return d;
138
+ let e = d;
139
+ const a = parseInt(h[0]);
140
+ if (isNaN(a) || a < 0 || a >= e.length)
141
+ return null;
142
+ if (e = e[a], h.length - 1 === 0) {
143
+ if (e && Array.isArray(e[e.length - 1]))
144
+ return e[e.length - 1];
145
+ if (Array.isArray(e))
146
+ return e;
147
+ }
148
+ return e && Array.isArray(e[e.length - 1]) && (h.shift(), Array.isArray((l = e[e.length - 1]) == null ? void 0 : l[0]) ? e = ee(e[e.length - 1], h) : e = ee([e[e.length - 1]], h)), e;
149
+ }, ga = { class: "table-content" }, ta = ["onClick"], Aa = {
150
+ key: 0,
151
+ class: "dialog-footer"
152
+ }, ba = {
153
+ __name: "index",
154
+ props: {
155
+ itemData: {
156
+ type: Array,
157
+ default: () => []
158
+ },
159
+ childItemData: {
160
+ type: Array,
161
+ default: () => []
162
+ },
163
+ index: Number,
164
+ changedContent: {
165
+ type: Object,
166
+ default: () => {
167
+ }
168
+ }
169
+ },
170
+ emits: ["change", "contentChange", "onButtonClick", "contentClick"],
171
+ setup(d, { emit: h }) {
172
+ const e = d, a = h, l = T([]), o = T([]), A = T(""), D = T(), N = T(!0), O = T(0), R = T(!1), $ = T(""), B = T(!1), U = T([]), Q = T(!1), S = T([]), X = T([]), ae = T(), W = T(), Ke = oa(Re), G = T(), q = da(Re), { selectIndex: le, selectMenu: E, selectTitle: Y } = $e(q), { selectString: F } = $e(Ke), Qe = T(720), Se = () => {
173
+ B.value = !1;
174
+ }, Xe = (i) => {
175
+ var f, y, r, c, b, k;
176
+ if (re(i), i != null && i.children && Array.isArray(i == null ? void 0 : i.children)) {
177
+ const p = !Array.isArray(Y.value) && ((f = Y.value) == null ? void 0 : f.key) !== "main" ? [] : Y.value;
178
+ p.push({
179
+ key: E.value === "" ? (y = i == null ? void 0 : i.id) == null ? void 0 : y.toString() : E.value + "-" + ((r = i == null ? void 0 : i.id) == null ? void 0 : r.toString()),
180
+ value: i[(c = Object.keys(i)) == null ? void 0 : c.filter((t) => t !== "index" && t !== "id")[0]]
181
+ }), q.setSelectMenu(E.value === "" ? (b = i == null ? void 0 : i.id) == null ? void 0 : b.toString() : E.value + "-" + ((k = i == null ? void 0 : i.id) == null ? void 0 : k.toString())), q.setSelectTitle(p), q.setSelectIndex(e != null && e.index || (e == null ? void 0 : e.index) === 0 ? e == null ? void 0 : e.index.toString() : "");
182
+ }
183
+ }, ie = (i) => {
184
+ var y;
185
+ const f = (y = g(e.itemData)) == null ? void 0 : y.map((r) => ((r == null ? void 0 : r.key) === "tableContents" && (r.contents = i), r));
186
+ a("contentChange", {
187
+ contents: f,
188
+ index: e.index
189
+ });
190
+ }, Ye = (i) => {
191
+ a("contentClick", i);
192
+ };
193
+ Fe(
194
+ () => e.changedContent,
195
+ () => {
196
+ var y, r;
197
+ if (!e.changedContent) return;
198
+ let i = (y = o.value) == null ? void 0 : y.map((c) => {
199
+ var b;
200
+ return c.id === ((b = e.changedContent) == null ? void 0 : b.id) && (c = {
201
+ ...e.changedContent,
202
+ id: e.changedContent.newId ? e.changedContent.newId : e.changedContent.id
203
+ }, delete c.newId), c;
204
+ });
205
+ const f = (r = e.itemData) == null ? void 0 : r.map((c) => ((c == null ? void 0 : c.key) === "tableContents" && (c.contents = i), c));
206
+ o.value = i, a("contentChange", {
207
+ contents: f,
208
+ index: e.index
209
+ }), a("change", {
210
+ content: i,
211
+ index: e == null ? void 0 : e.index,
212
+ buttonName: ""
213
+ });
214
+ },
215
+ { deep: !0, immediate: !0 }
216
+ );
217
+ const re = (i) => {
218
+ var f;
219
+ if (i != null && i.children && Array.isArray(i == null ? void 0 : i.children)) {
220
+ let y = [];
221
+ const r = g(ae.value);
222
+ (f = i == null ? void 0 : i.children) == null || f.forEach((c, b) => {
223
+ if (!Array.isArray(c))
224
+ y.push(c);
225
+ else {
226
+ let k = {};
227
+ c == null || c.forEach((p, t) => {
228
+ var z;
229
+ (z = r == null ? void 0 : r[t]) != null && z.prop ? k[r[t].prop] = p : Array.isArray(p) && (k.children = p);
230
+ }), y.push(Object.assign(k, { id: b }));
231
+ }
232
+ }), o.value = y;
233
+ }
234
+ }, ne = (i, f) => {
235
+ var y;
236
+ if (A.value = "", Q.value = !0, N.value = !0, a("onButtonClick", i, f), i === "删除") {
237
+ o.value = (y = g(o.value)) == null ? void 0 : y.filter((c) => (c == null ? void 0 : c.id) !== (f == null ? void 0 : f.id));
238
+ const r = ca(G.value, E.value, f == null ? void 0 : f.id);
239
+ ie(r), a("change", {
240
+ content: r,
241
+ singleContent: f,
242
+ index: e == null ? void 0 : e.index,
243
+ buttonName: i
244
+ });
245
+ } else i === "新增" ? ($.value = "新增", Z(""), B.value = !0) : i === "编辑" ? ($.value = "编辑", Z(f), B.value = !0) : i === "查看" && ($.value = "查看", Z(f), Q.value = !1, N.value = !1, B.value = !0);
246
+ }, Z = (i) => {
247
+ var y;
248
+ const f = [];
249
+ (y = g(l.value)) == null || y.forEach((r, c) => {
250
+ r.label !== "" && (r == null ? void 0 : r.label) !== "操作" && f.push({
251
+ label: (r == null ? void 0 : r.label) ?? "",
252
+ name: (r == null ? void 0 : r.prop) ?? "t" + c,
253
+ type: !(r != null && r.formType) || (r == null ? void 0 : r.formType) === "" ? "Input" : r == null ? void 0 : r.formType,
254
+ value: (i == null ? void 0 : i[r == null ? void 0 : r.prop]) ?? "",
255
+ id: (r == null ? void 0 : r.id) ?? c,
256
+ contents: (r == null ? void 0 : r.options) ?? [],
257
+ width: 1,
258
+ isHidden: r == null ? void 0 : r.isHidden
259
+ });
260
+ }), i === "" || !i || (A.value = i == null ? void 0 : i.id), X.value = f, console.log(111, X.value);
261
+ };
262
+ Ie(() => {
263
+ });
264
+ const Ze = () => {
265
+ let i, f = g(o.value);
266
+ A.value === "" ? (O.value++, f.push(Object.assign(W.value, { id: O.value })), i = Object.assign(W.value, { id: O.value })) : f = f == null ? void 0 : f.map((r) => ((r == null ? void 0 : r.id) === A.value && (r = Object.assign(r, W.value), i = r), r)), o.value = f;
267
+ const y = ha(G.value, E.value, f);
268
+ ie(y), B.value = !1, a("change", {
269
+ content: y,
270
+ singleContent: i,
271
+ index: e == null ? void 0 : e.index,
272
+ buttonName: $.value
273
+ });
274
+ }, Ve = (i) => {
275
+ W.value = i;
276
+ };
277
+ return Fe(
278
+ () => [e.itemData, F.value, le.value, E.value],
279
+ () => {
280
+ var z, se, oe, de, fe, ce, ue, he, pe, ye, ge, te, Ae, be, Te, ke, me, De, Oe, ve, Ce, Ee, xe, Ne, _e;
281
+ console.log(666, e.itemData);
282
+ const i = (z = g(e.itemData)) == null ? void 0 : z.filter((s) => (s == null ? void 0 : s.key) === "header"), f = (se = g(e.itemData)) == null ? void 0 : se.filter((s) => (s == null ? void 0 : s.key) === "tableIndexColumn")[0], y = (oe = g(e.itemData)) == null ? void 0 : oe.find((s) => (s == null ? void 0 : s.key) === "page"), r = (de = g(e.itemData)) == null ? void 0 : de.find((s) => (s == null ? void 0 : s.key) === "rowButton"), c = (fe = g(e.itemData)) == null ? void 0 : fe.find((s) => (s == null ? void 0 : s.key) === "extraButton"), b = (ce = g(e.itemData)) == null ? void 0 : ce.filter((s) => (s == null ? void 0 : s.key) === "tableContents"), k = (ue = g(e.itemData)) == null ? void 0 : ue.filter((s) => (s == null ? void 0 : s.key) === "tableIndex");
283
+ R.value = (y == null ? void 0 : y.contents) ?? !0;
284
+ let p = [];
285
+ F.value === "" ? p = i == null ? void 0 : i[0] : p = (i == null ? void 0 : i.find((s) => (s == null ? void 0 : s.selectLabel) === "(" + F.value + ")")) ?? (i == null ? void 0 : i.find((s) => !(s != null && s.selectLabel)));
286
+ let t = [];
287
+ if (F.value === "" ? t = k == null ? void 0 : k[0] : t = (k == null ? void 0 : k.find((s) => (s == null ? void 0 : s.selectLabel) === "(" + F.value + ")")) ?? (k == null ? void 0 : k.find((s) => !(s != null && s.selectLabel))), ((he = p == null ? void 0 : p.contents) == null ? void 0 : he.length) > 0) {
288
+ let s = [];
289
+ if (t != null && t.contents && ((pe = t == null ? void 0 : t.contents) == null ? void 0 : pe.length) !== 0 && s.push({
290
+ label: (f == null ? void 0 : f.contents) ?? "",
291
+ prop: "index",
292
+ sortable: !1
293
+ }), p != null && p.contents.some((u) => Array.isArray(u) && (u == null ? void 0 : u.find((n) => n.children)))) {
294
+ if (E.value === "")
295
+ s = (ye = ze(g(p == null ? void 0 : p.contents))[0]) == null ? void 0 : ye.filter((u) => !Array.isArray(u));
296
+ else {
297
+ const u = E.value.split("-");
298
+ s = (ge = ee(ze(g(p == null ? void 0 : p.contents)), u)) == null ? void 0 : ge.filter((n) => !Array.isArray(n));
299
+ }
300
+ s.unshift({
301
+ label: (f == null ? void 0 : f.contents) ?? "",
302
+ prop: "index",
303
+ sortable: !1
304
+ });
305
+ } else {
306
+ const u = p != null && p.contents.some((n) => Array.isArray(n)) ? (te = p == null ? void 0 : p.contents) == null ? void 0 : te[0] : p == null ? void 0 : p.contents;
307
+ u == null || u.forEach((n, j) => {
308
+ (n == null ? void 0 : n.label) !== "" && s.push({
309
+ label: (n == null ? void 0 : n.label) ?? "",
310
+ prop: (n == null ? void 0 : n.label) === "操作" ? "operate" : (n == null ? void 0 : n.prop) ?? "a" + j,
311
+ width: (n == null ? void 0 : n.label) === "操作" ? "160" : n != null && n.width ? parseInt(n.width) : "",
312
+ fixed: (n == null ? void 0 : n.fixed) ?? void 0,
313
+ sortable: (n == null ? void 0 : n.sortable) ?? !1,
314
+ align: (n == null ? void 0 : n.align) ?? "center",
315
+ showOverflowTooltip: (n == null ? void 0 : n.showOverflowTooltip) ?? !0,
316
+ isNotDrag: (n == null ? void 0 : n.isNotDrag) ?? !1,
317
+ isEditCol: (n == null ? void 0 : n.isEditCol) ?? !1,
318
+ isOperate: (n == null ? void 0 : n.isOperate) ?? !1,
319
+ id: (n == null ? void 0 : n.id) ?? j,
320
+ type: (n == null ? void 0 : n.label) === "操作" ? "operate" : void 0,
321
+ formType: (n == null ? void 0 : n.formType) ?? "",
322
+ isHidden: n == null ? void 0 : n.isHidden,
323
+ options: (n == null ? void 0 : n.options) ?? []
324
+ });
325
+ });
326
+ }
327
+ l.value = s;
328
+ let _ = (be = (Ae = ya(g(l.value))) == null ? void 0 : Ae.filter((u) => (u == null ? void 0 : u.type) !== "operate")) == null ? void 0 : be.map((u, n) => ({
329
+ prop: (u == null ? void 0 : u.prop) ?? "a" + n
330
+ }));
331
+ ae.value = _;
332
+ let m = [];
333
+ if (F.value === "" ? m = b == null ? void 0 : b[0] : m = (b == null ? void 0 : b.find((u) => (u == null ? void 0 : u.selectLabel) === "(" + F.value + ")")) ?? (b == null ? void 0 : b.find((u) => !(u != null && u.selectLabel))), ((Te = m == null ? void 0 : m.contents) == null ? void 0 : Te.length) !== 0) {
334
+ let u = Array.isArray((ke = m == null ? void 0 : m.contents) == null ? void 0 : ke[0]) && ((me = m == null ? void 0 : m.contents) != null && me[0].every((v) => Array.isArray(v))) ? (De = g(m == null ? void 0 : m.contents)) == null ? void 0 : De[0] : g(m == null ? void 0 : m.contents);
335
+ t != null && t.contents && ((Oe = t == null ? void 0 : t.contents) == null ? void 0 : Oe.length) !== 0 && (u = (ve = g(u)) == null ? void 0 : ve.map((v, je) => {
336
+ if (!Array.isArray(v)) {
337
+ let x = {};
338
+ for (let C in v)
339
+ C !== "id" && C !== "index" && (x[C] = v[C]);
340
+ v = Object.values(x);
341
+ }
342
+ return v;
343
+ }));
344
+ const n = !!((Ce = l.value) != null && Ce.find((v) => v.prop === "index"));
345
+ u = Ge(g(u), t == null ? void 0 : t.contents, n);
346
+ const j = [];
347
+ u == null || u.forEach((v, je) => {
348
+ let x = {};
349
+ Array.isArray(v) ? v == null || v.forEach((C, V) => {
350
+ var Be;
351
+ (Be = _ == null ? void 0 : _[V]) != null && Be.prop && !Array.isArray(C) ? x[_[V].prop] = C : Array.isArray(C) && (C.find((I) => (I == null ? void 0 : I.key) === "tableContentName") ? x[_[V].prop] = C : x.children = We(C, _));
352
+ }) : x = v, x.id ? j.push(x) : j.push(Object.assign(x, { id: je }));
353
+ }), o.value = j;
354
+ } else {
355
+ let u = (Ee = g(_)) == null ? void 0 : Ee.reduce((n, j) => (n[j.prop] = "测试数据", n), {});
356
+ D.value = u, o.value = [Object.assign({}, D.value, { id: O.value })];
357
+ }
358
+ } else
359
+ l.value = [], o.value = [];
360
+ if (((xe = r == null ? void 0 : r.contents) == null ? void 0 : xe.length) > 0 ? U.value = r == null ? void 0 : r.contents : U.value = [], ((Ne = c == null ? void 0 : c.contents) == null ? void 0 : Ne.length) > 0 ? S.value = c == null ? void 0 : c.contents : S.value = [], O.value = ((_e = o == null ? void 0 : o.value) == null ? void 0 : _e.length) ?? 0, le.value !== "") {
361
+ const s = fa(g(o.value), E.value);
362
+ G.value = o.value, re(s);
363
+ } else
364
+ G.value = o.value;
365
+ },
366
+ { deep: !0, immediate: !0 }
367
+ ), (i, f) => {
368
+ var y;
369
+ return P(), J("div", ga, [
370
+ (P(), Me(ia, {
371
+ columns: l.value,
372
+ key: l.value,
373
+ tableData: o.value,
374
+ isShowPagination: R.value,
375
+ isShowEdit: !1,
376
+ isShowDelete: !1,
377
+ onDbClickRow: Xe,
378
+ extraButton: S.value,
379
+ onButtonClick: f[0] || (f[0] = (r) => ne(r, "")),
380
+ onContentClick: Ye
381
+ }, we({ _: 2 }, [
382
+ ((y = U.value) == null ? void 0 : y.length) > 0 ? {
383
+ name: "actions",
384
+ fn: M(({ item: r }) => [
385
+ (P(!0), J(Le, null, ea(U.value, (c, b) => (P(), J("div", { key: b }, [
386
+ w("div", {
387
+ style: aa({ color: c == null ? void 0 : c.textColor }),
388
+ class: "extra-button-label",
389
+ onClick: (k) => ne(c == null ? void 0 : c.label, r)
390
+ }, L(c == null ? void 0 : c.label), 13, ta)
391
+ ]))), 128))
392
+ ]),
393
+ key: "0"
394
+ } : void 0
395
+ ]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
396
+ He(ra, {
397
+ title: $.value,
398
+ visible: B.value,
399
+ width: Qe.value,
400
+ onBeforeDestroy: Se
401
+ }, {
402
+ default: M(() => [
403
+ He(na, {
404
+ rowContents: X.value,
405
+ isEnableWrap: !1,
406
+ onChange: Ve,
407
+ isEdit: N.value
408
+ }, null, 8, ["rowContents", "isEdit"])
409
+ ]),
410
+ footer: M(() => [
411
+ Q.value ? (P(), J("div", Aa, [
412
+ w("div", {
413
+ onClick: f[1] || (f[1] = (r) => B.value = !1),
414
+ class: "cancel-button"
415
+ }, L("取消")),
416
+ w("div", {
417
+ class: "ok-button",
418
+ onClick: Ze
419
+ }, L("确认"))
420
+ ])) : la("", !0)
421
+ ]),
422
+ _: 1
423
+ }, 8, ["title", "visible", "width"])
424
+ ]);
425
+ };
426
+ }
427
+ }, Ca = /* @__PURE__ */ sa(ba, [["__scopeId", "data-v-0d38acd5"]]);
428
+ export {
429
+ da as a,
430
+ Ca as s,
431
+ oa as u
432
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";const o=require("vue"),bt=require("./index-2BSH90QR.cjs"),De=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),it=require("./cloneDeep-Fj9bqNcO.cjs"),Ft=require("./pinia-8zVC1cUT.cjs"),rn=require("./index-YlTnI4EI.cjs");function an(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Je={exports:{}},ln=Je.exports,$t;function sn(){return $t||($t=1,function(n,e){(function(t,r){n.exports=r()})(ln,function(){var t=1e3,r=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",g="quarter",b="year",h="date",E="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var y=["th","st","nd","rd"],m=C%100;return"["+C+(y[(m-20)%10]||y[m]||y[0])+"]"}},Y=function(C,y,m){var D=String(C);return!D||D.length>=y?C:""+Array(y+1-D.length).join(m)+C},$={s:Y,z:function(C){var y=-C.utcOffset(),m=Math.abs(y),D=Math.floor(m/60),w=m%60;return(y<=0?"+":"-")+Y(D,2,"0")+":"+Y(w,2,"0")},m:function C(y,m){if(y.date()<m.date())return-C(m,y);var D=12*(m.year()-y.year())+(m.month()-y.month()),w=y.clone().add(D,d),N=m-w<0,V=y.clone().add(D+(N?-1:1),d);return+(-(D+(m-w)/(N?w-V:V-w))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:b,w:f,d:c,D:h,h:u,m:s,s:i,ms:l,Q:g}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},H="en",F={};F[H]=R;var S="$isDayjsObject",X=function(C){return C instanceof J||!(!C||!C[S])},_=function C(y,m,D){var w;if(!y)return H;if(typeof y=="string"){var N=y.toLowerCase();F[N]&&(w=N),m&&(F[N]=m,w=N);var V=y.split("-");if(!w&&V.length>1)return C(V[0])}else{var P=y.name;F[P]=y,w=P}return!D&&w&&(H=w),w||!D&&H},x=function(C,y){if(X(C))return C.clone();var m=typeof y=="object"?y:{};return m.date=C,m.args=arguments,new J(m)},B=$;B.l=_,B.i=X,B.w=function(C,y){return x(C,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var J=function(){function C(m){this.$L=_(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[S]=!0}var y=C.prototype;return y.parse=function(m){this.$d=function(D){var w=D.date,N=D.utc;if(w===null)return new Date(NaN);if(B.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var V=w.match(p);if(V){var P=V[2]-1||0,L=(V[7]||"0").substring(0,3);return N?new Date(Date.UTC(V[1],P,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)):new Date(V[1],P,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)}}return new Date(w)}(m),this.init()},y.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},y.$utils=function(){return B},y.isValid=function(){return this.$d.toString()!==E},y.isSame=function(m,D){var w=x(m);return this.startOf(D)<=w&&w<=this.endOf(D)},y.isAfter=function(m,D){return x(m)<this.startOf(D)},y.isBefore=function(m,D){return this.endOf(D)<x(m)},y.$g=function(m,D,w){return B.u(m)?this[D]:this.set(w,m)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(m,D){var w=this,N=!!B.u(D)||D,V=B.p(m),P=function(we,ne){var ge=B.w(w.$u?Date.UTC(w.$y,ne,we):new Date(w.$y,ne,we),w);return N?ge:ge.endOf(c)},L=function(we,ne){return B.w(w.toDate()[we].apply(w.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ne)),w)},j=this.$W,Q=this.$M,ie=this.$D,Ce="set"+(this.$u?"UTC":"");switch(V){case b:return N?P(1,0):P(31,11);case d:return N?P(1,Q):P(0,Q+1);case f:var _e=this.$locale().weekStart||0,Ve=(j<_e?j+7:j)-_e;return P(N?ie-Ve:ie+(6-Ve),Q);case c:case h:return L(Ce+"Hours",0);case u:return L(Ce+"Minutes",1);case s:return L(Ce+"Seconds",2);case i:return L(Ce+"Milliseconds",3);default:return this.clone()}},y.endOf=function(m){return this.startOf(m,!1)},y.$set=function(m,D){var w,N=B.p(m),V="set"+(this.$u?"UTC":""),P=(w={},w[c]=V+"Date",w[h]=V+"Date",w[d]=V+"Month",w[b]=V+"FullYear",w[u]=V+"Hours",w[s]=V+"Minutes",w[i]=V+"Seconds",w[l]=V+"Milliseconds",w)[N],L=N===c?this.$D+(D-this.$W):D;if(N===d||N===b){var j=this.clone().set(h,1);j.$d[P](L),j.init(),this.$d=j.set(h,Math.min(this.$D,j.daysInMonth())).$d}else P&&this.$d[P](L);return this.init(),this},y.set=function(m,D){return this.clone().$set(m,D)},y.get=function(m){return this[B.p(m)]()},y.add=function(m,D){var w,N=this;m=Number(m);var V=B.p(D),P=function(Q){var ie=x(N);return B.w(ie.date(ie.date()+Math.round(Q*m)),N)};if(V===d)return this.set(d,this.$M+m);if(V===b)return this.set(b,this.$y+m);if(V===c)return P(1);if(V===f)return P(7);var L=(w={},w[s]=r,w[u]=a,w[i]=t,w)[V]||1,j=this.$d.getTime()+m*L;return B.w(j,this)},y.subtract=function(m,D){return this.add(-1*m,D)},y.format=function(m){var D=this,w=this.$locale();if(!this.isValid())return w.invalidDate||E;var N=m||"YYYY-MM-DDTHH:mm:ssZ",V=B.z(this),P=this.$H,L=this.$m,j=this.$M,Q=w.weekdays,ie=w.months,Ce=w.meridiem,_e=function(ne,ge,Ie,Ue){return ne&&(ne[ge]||ne(D,N))||Ie[ge].slice(0,Ue)},Ve=function(ne){return B.s(P%12||12,ne,"0")},we=Ce||function(ne,ge,Ie){var Ue=ne<12?"AM":"PM";return Ie?Ue.toLowerCase():Ue};return N.replace(k,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(D.$y).slice(-2);case"YYYY":return B.s(D.$y,4,"0");case"M":return j+1;case"MM":return B.s(j+1,2,"0");case"MMM":return _e(w.monthsShort,j,ie,3);case"MMMM":return _e(ie,j);case"D":return D.$D;case"DD":return B.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return _e(w.weekdaysMin,D.$W,Q,2);case"ddd":return _e(w.weekdaysShort,D.$W,Q,3);case"dddd":return Q[D.$W];case"H":return String(P);case"HH":return B.s(P,2,"0");case"h":return Ve(1);case"hh":return Ve(2);case"a":return we(P,L,!0);case"A":return we(P,L,!1);case"m":return String(L);case"mm":return B.s(L,2,"0");case"s":return String(D.$s);case"ss":return B.s(D.$s,2,"0");case"SSS":return B.s(D.$ms,3,"0");case"Z":return V}return null}(ne)||V.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(m,D,w){var N,V=this,P=B.p(D),L=x(m),j=(L.utcOffset()-this.utcOffset())*r,Q=this-L,ie=function(){return B.m(V,L)};switch(P){case b:N=ie()/12;break;case d:N=ie();break;case g:N=ie()/3;break;case f:N=(Q-j)/6048e5;break;case c:N=(Q-j)/864e5;break;case u:N=Q/a;break;case s:N=Q/r;break;case i:N=Q/t;break;default:N=Q}return w?N:B.a(N)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return F[this.$L]},y.locale=function(m,D){if(!m)return this.$L;var w=this.clone(),N=_(m,D,!0);return N&&(w.$L=N),w},y.clone=function(){return B.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},C}(),Z=J.prototype;return x.prototype=Z,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",b],["$D",h]].forEach(function(C){Z[C[1]]=function(y){return this.$g(y,C[0],C[1])}}),x.extend=function(C,y){return C.$i||(C(y,J,x),C.$i=!0),x},x.locale=_,x.isDayjs=X,x.unix=function(C){return x(1e3*C)},x.en=F[H],x.Ls=F,x.p={},x})}(Je)),Je.exports}var un=sn();const Lt=an(un);/**!
2
+ * Sortable 1.15.6
3
+ * @author RubaXa <trash@rubaxa.org>
4
+ * @author owenm <owen23355@gmail.com>
5
+ * @license MIT
6
+ */function Tt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function fe(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Tt(Object(t),!0).forEach(function(r){cn(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Tt(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Ze(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ze=function(e){return typeof e}:Ze=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(n)}function cn(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function pe(){return pe=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},pe.apply(this,arguments)}function dn(n,e){if(n==null)return{};var t={},r=Object.keys(n),a,l;for(l=0;l<r.length;l++)a=r[l],!(e.indexOf(a)>=0)&&(t[a]=n[a]);return t}function fn(n,e){if(n==null)return{};var t=dn(n,e),r,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(a=0;a<l.length;a++)r=l[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}var hn="1.15.6";function he(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var me=he(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),We=he(/Edge/i),Ot=he(/firefox/i),Pe=he(/safari/i)&&!he(/chrome/i)&&!he(/android/i),Et=he(/iP(ad|od|hone)/i),Yt=he(/chrome/i)&&he(/android/i),Ht={capture:!1,passive:!1};function A(n,e,t){n.addEventListener(e,t,!me&&Ht)}function M(n,e,t){n.removeEventListener(e,t,!me&&Ht)}function nt(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function Wt(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function ce(n,e,t,r){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&nt(n,e):nt(n,e))||r&&n===t)return n;if(n===t)break}while(n=Wt(n))}return null}var Nt=/\s+/g;function ae(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var r=(" "+n.className+" ").replace(Nt," ").replace(" "+e+" "," ");n.className=(r+(t?" "+e:"")).replace(Nt," ")}}function O(n,e,t){var r=n&&n.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=t+(typeof t=="string"?"":"px")}}function Oe(n,e){var t="";if(typeof n=="string")t=n;else do{var r=O(n,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!e&&(n=n.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(t)}function zt(n,e,t){if(n){var r=n.getElementsByTagName(e),a=0,l=r.length;if(t)for(;a<l;a++)t(r[a],a);return r}return[]}function de(){var n=document.scrollingElement;return n||document.documentElement}function q(n,e,t,r,a){if(!(!n.getBoundingClientRect&&n!==window)){var l,i,s,u,c,f,d;if(n!==window&&n.parentNode&&n!==de()?(l=n.getBoundingClientRect(),i=l.top,s=l.left,u=l.bottom,c=l.right,f=l.height,d=l.width):(i=0,s=0,u=window.innerHeight,c=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||t)&&n!==window&&(a=a||n.parentNode,!me))do if(a&&a.getBoundingClientRect&&(O(a,"transform")!=="none"||t&&O(a,"position")!=="static")){var g=a.getBoundingClientRect();i-=g.top+parseInt(O(a,"border-top-width")),s-=g.left+parseInt(O(a,"border-left-width")),u=i+l.height,c=s+l.width;break}while(a=a.parentNode);if(r&&n!==window){var b=Oe(a||n),h=b&&b.a,E=b&&b.d;b&&(i/=E,s/=h,d/=h,f/=E,u=i+f,c=s+d)}return{top:i,left:s,bottom:u,right:c,width:d,height:f}}}function Vt(n,e,t){for(var r=ye(n,!0),a=q(n)[e];r;){var l=q(r)[t],i=void 0;if(i=a>=l,!i)return r;if(r===de())break;r=ye(r,!1)}return!1}function Ne(n,e,t,r){for(var a=0,l=0,i=n.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==T.ghost&&(r||i[l]!==T.dragged)&&ce(i[l],t.draggable,n,!1)){if(a===e)return i[l];a++}l++}return null}function St(n,e){for(var t=n.lastElementChild;t&&(t===T.ghost||O(t,"display")==="none"||e&&!nt(t,e));)t=t.previousElementSibling;return t||null}function se(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==T.clone&&(!e||nt(n,e))&&t++;return t}function It(n){var e=0,t=0,r=de();if(n)do{var a=Oe(n),l=a.a,i=a.d;e+=n.scrollLeft*l,t+=n.scrollTop*i}while(n!==r&&(n=n.parentNode));return[e,t]}function pn(n,e){for(var t in n)if(n.hasOwnProperty(t)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===n[t][r])return Number(t)}return-1}function ye(n,e){if(!n||!n.getBoundingClientRect)return de();var t=n,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var a=O(t);if(t.clientWidth<t.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return de();if(r||e)return t;r=!0}}while(t=t.parentNode);return de()}function mn(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function ut(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Fe;function Ut(n,e){return function(){if(!Fe){var t=arguments,r=this;t.length===1?n.call(r,t[0]):n.apply(r,t),Fe=setTimeout(function(){Fe=void 0},e)}}}function gn(){clearTimeout(Fe),Fe=void 0}function jt(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function Xt(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}function Gt(n,e,t){var r={};return Array.from(n.children).forEach(function(a){var l,i,s,u;if(!(!ce(a,e.draggable,n,!1)||a.animated||a===t)){var c=q(a);r.left=Math.min((l=r.left)!==null&&l!==void 0?l:1/0,c.left),r.top=Math.min((i=r.top)!==null&&i!==void 0?i:1/0,c.top),r.right=Math.max((s=r.right)!==null&&s!==void 0?s:-1/0,c.right),r.bottom=Math.max((u=r.bottom)!==null&&u!==void 0?u:-1/0,c.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var re="Sortable"+new Date().getTime();function vn(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(a){if(!(O(a,"display")==="none"||a===T.ghost)){n.push({target:a,rect:q(a)});var l=fe({},n[n.length-1].rect);if(a.thisAnimationDuration){var i=Oe(a,!0);i&&(l.top-=i.f,l.left-=i.e)}a.fromRect=l}})}},addAnimationState:function(r){n.push(r)},removeAnimationState:function(r){n.splice(pn(n,{target:r}),1)},animateAll:function(r){var a=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var l=!1,i=0;n.forEach(function(s){var u=0,c=s.target,f=c.fromRect,d=q(c),g=c.prevFromRect,b=c.prevToRect,h=s.rect,E=Oe(c,!0);E&&(d.top-=E.f,d.left-=E.e),c.toRect=d,c.thisAnimationDuration&&ut(g,d)&&!ut(f,d)&&(h.top-d.top)/(h.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(u=yn(h,g,b,a.options)),ut(d,f)||(c.prevFromRect=f,c.prevToRect=d,u||(u=a.options.animation),a.animate(c,h,d,u)),u&&(l=!0,i=Math.max(i,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),l?e=setTimeout(function(){typeof r=="function"&&r()},i):typeof r=="function"&&r(),n=[]},animate:function(r,a,l,i){if(i){O(r,"transition",""),O(r,"transform","");var s=Oe(this.el),u=s&&s.a,c=s&&s.d,f=(a.left-l.left)/(u||1),d=(a.top-l.top)/(c||1);r.animatingX=!!f,r.animatingY=!!d,O(r,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=bn(r),O(r,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),O(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){O(r,"transition",""),O(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},i)}}}}function bn(n){return n.offsetWidth}function yn(n,e,t,r){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*r.animation}var xe=[],ct={initializeByDefault:!0},ze={mount:function(e){for(var t in ct)ct.hasOwnProperty(t)&&!(t in e)&&(e[t]=ct[t]);xe.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),xe.push(e)},pluginEvent:function(e,t,r){var a=this;this.eventCanceled=!1,r.cancel=function(){a.eventCanceled=!0};var l=e+"Global";xe.forEach(function(i){t[i.pluginName]&&(t[i.pluginName][l]&&t[i.pluginName][l](fe({sortable:t},r)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](fe({sortable:t},r)))})},initializePlugins:function(e,t,r,a){xe.forEach(function(s){var u=s.pluginName;if(!(!e.options[u]&&!s.initializeByDefault)){var c=new s(e,t,e.options);c.sortable=e,c.options=e.options,e[u]=c,pe(r,c.defaults)}});for(var l in e.options)if(e.options.hasOwnProperty(l)){var i=this.modifyOption(e,l,e.options[l]);typeof i<"u"&&(e.options[l]=i)}},getEventProperties:function(e,t){var r={};return xe.forEach(function(a){typeof a.eventProperties=="function"&&pe(r,a.eventProperties.call(t[a.pluginName],e))}),r},modifyOption:function(e,t,r){var a;return xe.forEach(function(l){e[l.pluginName]&&l.optionListeners&&typeof l.optionListeners[t]=="function"&&(a=l.optionListeners[t].call(e[l.pluginName],r))}),a}};function _n(n){var e=n.sortable,t=n.rootEl,r=n.name,a=n.targetEl,l=n.cloneEl,i=n.toEl,s=n.fromEl,u=n.oldIndex,c=n.newIndex,f=n.oldDraggableIndex,d=n.newDraggableIndex,g=n.originalEvent,b=n.putSortable,h=n.extraEventProperties;if(e=e||t&&t[re],!!e){var E,p=e.options,k="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!me&&!We?E=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(r,!0,!0)),E.to=i||t,E.from=s||t,E.item=a||t,E.clone=l,E.oldIndex=u,E.newIndex=c,E.oldDraggableIndex=f,E.newDraggableIndex=d,E.originalEvent=g,E.pullMode=b?b.lastPutMode:void 0;var R=fe(fe({},h),ze.getEventProperties(r,e));for(var Y in R)E[Y]=R[Y];t&&t.dispatchEvent(E),p[k]&&p[k].call(e,E)}}var wn=["evt"],oe=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r.evt,l=fn(r,wn);ze.pluginEvent.bind(T)(e,t,fe({dragEl:v,parentEl:U,ghostEl:I,rootEl:W,nextEl:Se,lastDownEl:Ke,cloneEl:z,cloneHidden:be,dragStarted:Me,putSortable:K,activeSortable:T.active,originalEvent:a,oldIndex:Te,oldDraggableIndex:Le,newIndex:le,newDraggableIndex:ve,hideGhostForTarget:Kt,unhideGhostForTarget:Qt,cloneNowHidden:function(){be=!0},cloneNowShown:function(){be=!1},dispatchSortableEvent:function(s){te({sortable:t,name:s,originalEvent:a})}},l))};function te(n){_n(fe({putSortable:K,cloneEl:z,targetEl:v,rootEl:W,oldIndex:Te,oldDraggableIndex:Le,newIndex:le,newDraggableIndex:ve},n))}var v,U,I,W,Se,Ke,z,be,Te,le,Le,ve,je,K,$e=!1,ot=!1,rt=[],ke,ue,dt,ft,Mt,At,Me,Be,Ye,He=!1,Xe=!1,Qe,ee,ht=[],yt=!1,at=[],st=typeof document<"u",Ge=Et,Rt=We||me?"cssFloat":"float",kn=st&&!Yt&&!Et&&"draggable"in document.createElement("div"),qt=function(){if(st){if(me)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Jt=function(e,t){var r=O(e),a=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),l=Ne(e,0,t),i=Ne(e,1,t),s=l&&O(l),u=i&&O(i),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+q(l).width,f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+q(i).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(l&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return l&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=a&&r[Rt]==="none"||i&&r[Rt]==="none"&&c+f>a)?"vertical":"horizontal"},En=function(e,t,r){var a=r?e.left:e.top,l=r?e.right:e.bottom,i=r?e.width:e.height,s=r?t.left:t.top,u=r?t.right:t.bottom,c=r?t.width:t.height;return a===s||l===u||a+i/2===s+c/2},Sn=function(e,t){var r;return rt.some(function(a){var l=a[re].options.emptyInsertThreshold;if(!(!l||St(a))){var i=q(a),s=e>=i.left-l&&e<=i.right+l,u=t>=i.top-l&&t<=i.bottom+l;if(s&&u)return r=a}}),r},Zt=function(e){function t(l,i){return function(s,u,c,f){var d=s.options.group.name&&u.options.group.name&&s.options.group.name===u.options.group.name;if(l==null&&(i||d))return!0;if(l==null||l===!1)return!1;if(i&&l==="clone")return l;if(typeof l=="function")return t(l(s,u,c,f),i)(s,u,c,f);var g=(i?s:u).options.group.name;return l===!0||typeof l=="string"&&l===g||l.join&&l.indexOf(g)>-1}}var r={},a=e.group;(!a||Ze(a)!="object")&&(a={name:a}),r.name=a.name,r.checkPull=t(a.pull,!0),r.checkPut=t(a.put),r.revertClone=a.revertClone,e.group=r},Kt=function(){!qt&&I&&O(I,"display","none")},Qt=function(){!qt&&I&&O(I,"display","")};st&&!Yt&&document.addEventListener("click",function(n){if(ot)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),ot=!1,!1},!0);var Ee=function(e){if(v){e=e.touches?e.touches[0]:e;var t=Sn(e.clientX,e.clientY);if(t){var r={};for(var a in e)e.hasOwnProperty(a)&&(r[a]=e[a]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[re]._onDragOver(r)}}},Dn=function(e){v&&v.parentNode[re]._isOutsideThisEl(e.target)};function T(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=pe({},e),n[re]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Jt(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,s){i.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:T.supportPointer!==!1&&"PointerEvent"in window&&(!Pe||Et),emptyInsertThreshold:5};ze.initializePlugins(this,n,t);for(var r in t)!(r in e)&&(e[r]=t[r]);Zt(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:kn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?A(n,"pointerdown",this._onTapStart):(A(n,"mousedown",this._onTapStart),A(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(n,"dragover",this),A(n,"dragenter",this)),rt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),pe(this,vn())}T.prototype={constructor:T,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Be=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,v):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,a=this.options,l=a.preventOnFilter,i=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(s||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,f=a.filter;if(Vn(r),!v&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Pe&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ce(u,a.draggable,r,!1),!(u&&u.animated)&&Ke!==u)){if(Te=se(u),Le=se(u,a.draggable),typeof f=="function"){if(f.call(this,e,u,this)){te({sortable:t,rootEl:c,name:"filter",targetEl:u,toEl:r,fromEl:r}),oe("filter",t,{evt:e}),l&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=ce(c,d.trim(),r,!1),d)return te({sortable:t,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),oe("filter",t,{evt:e}),!0}),f)){l&&e.preventDefault();return}a.handle&&!ce(c,a.handle,r,!1)||this._prepareDragStart(e,s,u)}}},_prepareDragStart:function(e,t,r){var a=this,l=a.el,i=a.options,s=l.ownerDocument,u;if(r&&!v&&r.parentNode===l){var c=q(r);if(W=l,v=r,U=v.parentNode,Se=v.nextSibling,Ke=r,je=i.group,T.dragged=v,ke={target:v,clientX:(t||e).clientX,clientY:(t||e).clientY},Mt=ke.clientX-c.left,At=ke.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,v.style["will-change"]="all",u=function(){if(oe("delayEnded",a,{evt:e}),T.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Ot&&a.nativeDraggable&&(v.draggable=!0),a._triggerDragStart(e,t),te({sortable:a,name:"choose",originalEvent:e}),ae(v,i.chosenClass,!0)},i.ignore.split(",").forEach(function(f){zt(v,f.trim(),pt)}),A(s,"dragover",Ee),A(s,"mousemove",Ee),A(s,"touchmove",Ee),i.supportPointer?(A(s,"pointerup",a._onDrop),!this.nativeDraggable&&A(s,"pointercancel",a._onDrop)):(A(s,"mouseup",a._onDrop),A(s,"touchend",a._onDrop),A(s,"touchcancel",a._onDrop)),Ot&&this.nativeDraggable&&(this.options.touchStartThreshold=4,v.draggable=!0),oe("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(We||me))){if(T.eventCanceled){this._onDrop();return}i.supportPointer?(A(s,"pointerup",a._disableDelayedDrag),A(s,"pointercancel",a._disableDelayedDrag)):(A(s,"mouseup",a._disableDelayedDrag),A(s,"touchend",a._disableDelayedDrag),A(s,"touchcancel",a._disableDelayedDrag)),A(s,"mousemove",a._delayedDragTouchMoveHandler),A(s,"touchmove",a._delayedDragTouchMoveHandler),i.supportPointer&&A(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){v&&pt(v),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;M(e,"mouseup",this._disableDelayedDrag),M(e,"touchend",this._disableDelayedDrag),M(e,"touchcancel",this._disableDelayedDrag),M(e,"pointerup",this._disableDelayedDrag),M(e,"pointercancel",this._disableDelayedDrag),M(e,"mousemove",this._delayedDragTouchMoveHandler),M(e,"touchmove",this._delayedDragTouchMoveHandler),M(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):t?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(v,"dragend",this),A(W,"dragstart",this._onDragStart));try{document.selection?et(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if($e=!1,W&&v){oe("dragStarted",this,{evt:t}),this.nativeDraggable&&A(document,"dragover",Dn);var r=this.options;!e&&ae(v,r.dragClass,!1),ae(v,r.ghostClass,!0),T.active=this,e&&this._appendGhost(),te({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ue){this._lastX=ue.clientX,this._lastY=ue.clientY,Kt();for(var e=document.elementFromPoint(ue.clientX,ue.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ue.clientX,ue.clientY),e!==t);)t=e;if(v.parentNode[re]._isOutsideThisEl(e),t)do{if(t[re]){var r=void 0;if(r=t[re]._onDragOver({clientX:ue.clientX,clientY:ue.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=Wt(t));Qt()}},_onTouchMove:function(e){if(ke){var t=this.options,r=t.fallbackTolerance,a=t.fallbackOffset,l=e.touches?e.touches[0]:e,i=I&&Oe(I,!0),s=I&&i&&i.a,u=I&&i&&i.d,c=Ge&&ee&&It(ee),f=(l.clientX-ke.clientX+a.x)/(s||1)+(c?c[0]-ht[0]:0)/(s||1),d=(l.clientY-ke.clientY+a.y)/(u||1)+(c?c[1]-ht[1]:0)/(u||1);if(!T.active&&!$e){if(r&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(I){i?(i.e+=f-(dt||0),i.f+=d-(ft||0)):i={a:1,b:0,c:0,d:1,e:f,f:d};var g="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");O(I,"webkitTransform",g),O(I,"mozTransform",g),O(I,"msTransform",g),O(I,"transform",g),dt=f,ft=d,ue=l}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!I){var e=this.options.fallbackOnBody?document.body:W,t=q(v,!0,Ge,!0,e),r=this.options;if(Ge){for(ee=e;O(ee,"position")==="static"&&O(ee,"transform")==="none"&&ee!==document;)ee=ee.parentNode;ee!==document.body&&ee!==document.documentElement?(ee===document&&(ee=de()),t.top+=ee.scrollTop,t.left+=ee.scrollLeft):ee=de(),ht=It(ee)}I=v.cloneNode(!0),ae(I,r.ghostClass,!1),ae(I,r.fallbackClass,!0),ae(I,r.dragClass,!0),O(I,"transition",""),O(I,"transform",""),O(I,"box-sizing","border-box"),O(I,"margin",0),O(I,"top",t.top),O(I,"left",t.left),O(I,"width",t.width),O(I,"height",t.height),O(I,"opacity","0.8"),O(I,"position",Ge?"absolute":"fixed"),O(I,"zIndex","100000"),O(I,"pointerEvents","none"),T.ghost=I,e.appendChild(I),O(I,"transform-origin",Mt/parseInt(I.style.width)*100+"% "+At/parseInt(I.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,a=e.dataTransfer,l=r.options;if(oe("dragStart",this,{evt:e}),T.eventCanceled){this._onDrop();return}oe("setupClone",this),T.eventCanceled||(z=Xt(v),z.removeAttribute("id"),z.draggable=!1,z.style["will-change"]="",this._hideClone(),ae(z,this.options.chosenClass,!1),T.clone=z),r.cloneId=et(function(){oe("clone",r),!T.eventCanceled&&(r.options.removeCloneOnHide||W.insertBefore(z,v),r._hideClone(),te({sortable:r,name:"clone"}))}),!t&&ae(v,l.dragClass,!0),t?(ot=!0,r._loopId=setInterval(r._emulateDragOver,50)):(M(document,"mouseup",r._onDrop),M(document,"touchend",r._onDrop),M(document,"touchcancel",r._onDrop),a&&(a.effectAllowed="move",l.setData&&l.setData.call(r,a,v)),A(document,"drop",r),O(v,"transform","translateZ(0)")),$e=!0,r._dragStartId=et(r._dragStarted.bind(r,t,e)),A(document,"selectstart",r),Me=!0,window.getSelection().removeAllRanges(),Pe&&O(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,a,l,i,s=this.options,u=s.group,c=T.active,f=je===u,d=s.sort,g=K||c,b,h=this,E=!1;if(yt)return;function p(w,N){oe(w,h,fe({evt:e,isOwner:f,axis:b?"vertical":"horizontal",revert:i,dragRect:a,targetRect:l,canSort:d,fromSortable:g,target:r,completed:R,onMove:function(P,L){return qe(W,t,v,a,P,q(P),e,L)},changed:Y},N))}function k(){p("dragOverAnimationCapture"),h.captureAnimationState(),h!==g&&g.captureAnimationState()}function R(w){return p("dragOverCompleted",{insertion:w}),w&&(f?c._hideClone():c._showClone(h),h!==g&&(ae(v,K?K.options.ghostClass:c.options.ghostClass,!1),ae(v,s.ghostClass,!0)),K!==h&&h!==T.active?K=h:h===T.active&&K&&(K=null),g===h&&(h._ignoreWhileAnimating=r),h.animateAll(function(){p("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==g&&(g.animateAll(),g._ignoreWhileAnimating=null)),(r===v&&!v.animated||r===t&&!r.animated)&&(Be=null),!s.dragoverBubble&&!e.rootEl&&r!==document&&(v.parentNode[re]._isOutsideThisEl(e.target),!w&&Ee(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),E=!0}function Y(){le=se(v),ve=se(v,s.draggable),te({sortable:h,name:"change",toEl:t,newIndex:le,newDraggableIndex:ve,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=ce(r,s.draggable,t,!0),p("dragOver"),T.eventCanceled)return E;if(v.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return R(!1);if(ot=!1,c&&!s.disabled&&(f?d||(i=U!==W):K===this||(this.lastPutMode=je.checkPull(this,c,v,e))&&u.checkPut(this,c,v,e))){if(b=this._getDirection(e,r)==="vertical",a=q(v),p("dragOverValid"),T.eventCanceled)return E;if(i)return U=W,k(),this._hideClone(),p("revert"),T.eventCanceled||(Se?W.insertBefore(v,Se):W.appendChild(v)),R(!0);var $=St(t,s.draggable);if(!$||$n(e,b,this)&&!$.animated){if($===v)return R(!1);if($&&t===e.target&&(r=$),r&&(l=q(r)),qe(W,t,v,a,r,l,e,!!r)!==!1)return k(),$&&$.nextSibling?t.insertBefore(v,$.nextSibling):t.appendChild(v),U=t,Y(),R(!0)}else if($&&Bn(e,b,this)){var H=Ne(t,0,s,!0);if(H===v)return R(!1);if(r=H,l=q(r),qe(W,t,v,a,r,l,e,!1)!==!1)return k(),t.insertBefore(v,H),U=t,Y(),R(!0)}else if(r.parentNode===t){l=q(r);var F=0,S,X=v.parentNode!==t,_=!En(v.animated&&v.toRect||a,r.animated&&r.toRect||l,b),x=b?"top":"left",B=Vt(r,"top","top")||Vt(v,"top","top"),J=B?B.scrollTop:void 0;Be!==r&&(S=l[x],He=!1,Xe=!_&&s.invertSwap||X),F=Tn(e,r,l,b,_?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Xe,Be===r);var Z;if(F!==0){var C=se(v);do C-=F,Z=U.children[C];while(Z&&(O(Z,"display")==="none"||Z===I))}if(F===0||Z===r)return R(!1);Be=r,Ye=F;var y=r.nextElementSibling,m=!1;m=F===1;var D=qe(W,t,v,a,r,l,e,m);if(D!==!1)return(D===1||D===-1)&&(m=D===1),yt=!0,setTimeout(xn,30),k(),m&&!y?t.appendChild(v):r.parentNode.insertBefore(v,m?y:r),B&&jt(B,0,J-B.scrollTop),U=v.parentNode,S!==void 0&&!Xe&&(Qe=Math.abs(S-q(r)[x])),Y(),R(!0)}if(t.contains(v))return R(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){M(document,"mousemove",this._onTouchMove),M(document,"touchmove",this._onTouchMove),M(document,"pointermove",this._onTouchMove),M(document,"dragover",Ee),M(document,"mousemove",Ee),M(document,"touchmove",Ee)},_offUpEvents:function(){var e=this.el.ownerDocument;M(e,"mouseup",this._onDrop),M(e,"touchend",this._onDrop),M(e,"pointerup",this._onDrop),M(e,"pointercancel",this._onDrop),M(e,"touchcancel",this._onDrop),M(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(le=se(v),ve=se(v,r.draggable),oe("drop",this,{evt:e}),U=v&&v.parentNode,le=se(v),ve=se(v,r.draggable),T.eventCanceled){this._nulling();return}$e=!1,Xe=!1,He=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_t(this.cloneId),_t(this._dragStartId),this.nativeDraggable&&(M(document,"drop",this),M(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Pe&&O(document.body,"user-select",""),O(v,"transform",""),e&&(Me&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),I&&I.parentNode&&I.parentNode.removeChild(I),(W===U||K&&K.lastPutMode!=="clone")&&z&&z.parentNode&&z.parentNode.removeChild(z),v&&(this.nativeDraggable&&M(v,"dragend",this),pt(v),v.style["will-change"]="",Me&&!$e&&ae(v,K?K.options.ghostClass:this.options.ghostClass,!1),ae(v,this.options.chosenClass,!1),te({sortable:this,name:"unchoose",toEl:U,newIndex:null,newDraggableIndex:null,originalEvent:e}),W!==U?(le>=0&&(te({rootEl:U,name:"add",toEl:U,fromEl:W,originalEvent:e}),te({sortable:this,name:"remove",toEl:U,originalEvent:e}),te({rootEl:U,name:"sort",toEl:U,fromEl:W,originalEvent:e}),te({sortable:this,name:"sort",toEl:U,originalEvent:e})),K&&K.save()):le!==Te&&le>=0&&(te({sortable:this,name:"update",toEl:U,originalEvent:e}),te({sortable:this,name:"sort",toEl:U,originalEvent:e})),T.active&&((le==null||le===-1)&&(le=Te,ve=Le),te({sortable:this,name:"end",toEl:U,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){oe("nulling",this),W=v=U=I=Se=z=Ke=be=ke=ue=Me=le=ve=Te=Le=Be=Ye=K=je=T.dragged=T.ghost=T.clone=T.active=null,at.forEach(function(e){e.checked=!0}),at.length=dt=ft=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":v&&(this._onDragOver(e),Cn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,a=0,l=r.length,i=this.options;a<l;a++)t=r[a],ce(t,i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Nn(t));return e},sort:function(e,t){var r={},a=this.el;this.toArray().forEach(function(l,i){var s=a.children[i];ce(s,this.options.draggable,a,!1)&&(r[l]=s)},this),t&&this.captureAnimationState(),e.forEach(function(l){r[l]&&(a.removeChild(r[l]),a.appendChild(r[l]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ce(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var a=ze.modifyOption(this,e,t);typeof a<"u"?r[e]=a:r[e]=t,e==="group"&&Zt(r)},destroy:function(){oe("destroy",this);var e=this.el;e[re]=null,M(e,"mousedown",this._onTapStart),M(e,"touchstart",this._onTapStart),M(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(M(e,"dragover",this),M(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),rt.splice(rt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!be){if(oe("hideClone",this),T.eventCanceled)return;O(z,"display","none"),this.options.removeCloneOnHide&&z.parentNode&&z.parentNode.removeChild(z),be=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(be){if(oe("showClone",this),T.eventCanceled)return;v.parentNode==W&&!this.options.group.revertClone?W.insertBefore(z,v):Se?W.insertBefore(z,Se):W.appendChild(z),this.options.group.revertClone&&this.animate(v,z),O(z,"display",""),be=!1}}};function Cn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function qe(n,e,t,r,a,l,i,s){var u,c=n[re],f=c.options.onMove,d;return window.CustomEvent&&!me&&!We?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=n,u.dragged=t,u.draggedRect=r,u.related=a||e,u.relatedRect=l||q(e),u.willInsertAfter=s,u.originalEvent=i,n.dispatchEvent(u),f&&(d=f.call(c,u,i)),d}function pt(n){n.draggable=!1}function xn(){yt=!1}function Bn(n,e,t){var r=q(Ne(t.el,0,t.options,!0)),a=Gt(t.el,t.options,I),l=10;return e?n.clientX<a.left-l||n.clientY<r.top&&n.clientX<r.right:n.clientY<a.top-l||n.clientY<r.bottom&&n.clientX<r.left}function $n(n,e,t){var r=q(St(t.el,t.options.draggable)),a=Gt(t.el,t.options,I),l=10;return e?n.clientX>a.right+l||n.clientY>r.bottom&&n.clientX>r.left:n.clientY>a.bottom+l||n.clientX>r.right&&n.clientY>r.top}function Tn(n,e,t,r,a,l,i,s){var u=r?n.clientY:n.clientX,c=r?t.height:t.width,f=r?t.top:t.left,d=r?t.bottom:t.right,g=!1;if(!i){if(s&&Qe<c*a){if(!He&&(Ye===1?u>f+c*l/2:u<d-c*l/2)&&(He=!0),He)g=!0;else if(Ye===1?u<f+Qe:u>d-Qe)return-Ye}else if(u>f+c*(1-a)/2&&u<d-c*(1-a)/2)return On(e)}return g=g||i,g&&(u<f+c*l/2||u>d-c*l/2)?u>f+c/2?1:-1:0}function On(n){return se(v)<se(n)?1:-1}function Nn(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,r=0;t--;)r+=e.charCodeAt(t);return r.toString(36)}function Vn(n){at.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&at.push(r)}}function et(n){return setTimeout(n,0)}function _t(n){return clearTimeout(n)}st&&A(document,"touchmove",function(n){(T.active||$e)&&n.cancelable&&n.preventDefault()});T.utils={on:A,off:M,css:O,find:zt,is:function(e,t){return!!ce(e,t,e,!1)},extend:mn,throttle:Ut,closest:ce,toggleClass:ae,clone:Xt,index:se,nextTick:et,cancelNextTick:_t,detectDirection:Jt,getChild:Ne,expando:re};T.get=function(n){return n[re]};T.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(T.utils=fe(fe({},T.utils),r.utils)),ze.mount(r)})};T.create=function(n,e){return new T(n,e)};T.version=hn;var G=[],Ae,wt,kt=!1,mt,gt,lt,Re;function In(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):r.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?M(document,"dragover",this._handleAutoScroll):(M(document,"pointermove",this._handleFallbackAutoScroll),M(document,"touchmove",this._handleFallbackAutoScroll),M(document,"mousemove",this._handleFallbackAutoScroll)),Pt(),tt(),gn()},nulling:function(){lt=wt=Ae=kt=Re=mt=gt=null,G.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var a=this,l=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(l,i);if(lt=t,r||this.options.forceAutoScrollFallback||We||me||Pe){vt(t,this.options,s,r);var u=ye(s,!0);kt&&(!Re||l!==mt||i!==gt)&&(Re&&Pt(),Re=setInterval(function(){var c=ye(document.elementFromPoint(l,i),!0);c!==u&&(u=c,tt()),vt(t,a.options,c,r)},10),mt=l,gt=i)}else{if(!this.options.bubbleScroll||ye(s,!0)===de()){tt();return}vt(t,this.options,ye(s,!1),!1)}}},pe(n,{pluginName:"scroll",initializeByDefault:!0})}function tt(){G.forEach(function(n){clearInterval(n.pid)}),G=[]}function Pt(){clearInterval(Re)}var vt=Ut(function(n,e,t,r){if(e.scroll){var a=(n.touches?n.touches[0]:n).clientX,l=(n.touches?n.touches[0]:n).clientY,i=e.scrollSensitivity,s=e.scrollSpeed,u=de(),c=!1,f;wt!==t&&(wt=t,tt(),Ae=e.scroll,f=e.scrollFn,Ae===!0&&(Ae=ye(t,!0)));var d=0,g=Ae;do{var b=g,h=q(b),E=h.top,p=h.bottom,k=h.left,R=h.right,Y=h.width,$=h.height,H=void 0,F=void 0,S=b.scrollWidth,X=b.scrollHeight,_=O(b),x=b.scrollLeft,B=b.scrollTop;b===u?(H=Y<S&&(_.overflowX==="auto"||_.overflowX==="scroll"||_.overflowX==="visible"),F=$<X&&(_.overflowY==="auto"||_.overflowY==="scroll"||_.overflowY==="visible")):(H=Y<S&&(_.overflowX==="auto"||_.overflowX==="scroll"),F=$<X&&(_.overflowY==="auto"||_.overflowY==="scroll"));var J=H&&(Math.abs(R-a)<=i&&x+Y<S)-(Math.abs(k-a)<=i&&!!x),Z=F&&(Math.abs(p-l)<=i&&B+$<X)-(Math.abs(E-l)<=i&&!!B);if(!G[d])for(var C=0;C<=d;C++)G[C]||(G[C]={});(G[d].vx!=J||G[d].vy!=Z||G[d].el!==b)&&(G[d].el=b,G[d].vx=J,G[d].vy=Z,clearInterval(G[d].pid),(J!=0||Z!=0)&&(c=!0,G[d].pid=setInterval((function(){r&&this.layer===0&&T.active._onTouchMove(lt);var y=G[this.layer].vy?G[this.layer].vy*s:0,m=G[this.layer].vx?G[this.layer].vx*s:0;typeof f=="function"&&f.call(T.dragged.parentNode[re],m,y,n,lt,G[this.layer].el)!=="continue"||jt(G[this.layer].el,m,y)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&g!==u&&(g=ye(g,!1)));kt=c}},30),en=function(e){var t=e.originalEvent,r=e.putSortable,a=e.dragEl,l=e.activeSortable,i=e.dispatchSortableEvent,s=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(t){var c=r||l;s();var f=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(f.clientX,f.clientY);u(),c&&!c.el.contains(d)&&(i("spill"),this.onSpill({dragEl:a,putSortable:r}))}};function Dt(){}Dt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var a=Ne(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:en};pe(Dt,{pluginName:"revertOnSpill"});function Ct(){}Ct.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,a=r||this.sortable;a.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),a.animateAll()},drop:en};pe(Ct,{pluginName:"removeOnSpill"});T.mount(new In);T.mount(Ct,Dt);const Mn={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:Number,default:200}},setup(n){const e=n,t=o.ref(null),r=o.ref(!1),a=o.ref(null);return o.watch(()=>e==null?void 0:e.isVisible,()=>{r.value=e==null?void 0:e.isVisible},{deep:!0,immediate:!0}),o.watch(()=>a.value,()=>{o.nextTick(()=>{var l,i;(i=(l=t.value)==null?void 0:l.updatePopper)==null||i.call(l)})},{deep:!0,immediate:!0}),(l,i)=>{const s=o.resolveComponent("el-popover");return o.openBlock(),o.createBlock(s,{visible:r.value,placement:"bottom",title:e==null?void 0:e.title,width:e==null?void 0:e.width,ref_key:"popOverRef",ref:t},{reference:o.withCtx(()=>[o.createElementVNode("div",null,[o.renderSlot(l.$slots,"reference",{ref_key:"referenceRef",ref:a})])]),default:o.withCtx(()=>[o.createElementVNode("div",null,[o.renderSlot(l.$slots,"content")])]),_:3},8,["visible","title","width"])}}},An={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(e.value);return(r,a)=>{const l=o.resolveComponent("el-switch");return o.openBlock(),o.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},Rn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(e.value);return(r,a)=>{const l=o.resolveComponent("el-input");return o.openBlock(),o.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},Pn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(e.value);return(r,a)=>{const l=o.resolveComponent("el-color-picker");return o.openBlock(),o.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),"show-alpha":""},null,8,["modelValue"])}}},Fn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(e.value);return(r,a)=>{const l=o.resolveComponent("el-input");return o.openBlock(),o.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Ln={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n;return(t,r)=>{var a,l,i,s,u,c;return o.openBlock(),o.createBlock(Bt,{rowContents:((a=e==null?void 0:e.content)==null?void 0:a.rowContents)??[],buttonValue:((l=e==null?void 0:e.content)==null?void 0:l.buttonValue)??[],isEnableWrap:(i=e==null?void 0:e.content)==null?void 0:i.isEnableWrap,isRowFlex:(s=e==null?void 0:e.content)==null?void 0:s.isRowFlex,isButtonRow:(u=e==null?void 0:e.content)==null?void 0:u.isButtonRow,rowValues:((c=e==null?void 0:e.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Yn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(e.value);return(r,a)=>{const l=o.resolveComponent("el-radio"),i=o.resolveComponent("el-radio-group");return o.openBlock(),o.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=s=>t.value=s),style:{height:"100%"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.content,(s,u)=>(o.openBlock(),o.createBlock(l,{key:u,label:s.label},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s==null?void 0:s.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},Hn=["onDblclick"],Wn={key:1,class:"tabs-label"},zn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(n,{emit:e}){var c;const t=n,r=e,a=o.ref([]),l=o.ref((c=t==null?void 0:t.tabsContents[0])==null?void 0:c.value),i=f=>xt(f),s=f=>{r("dblClick",f)},u=f=>{r("dbChange",f)};return o.watch(()=>t.tabsContents,()=>{a.value=it.cloneDeep(t.tabsContents)},{deep:!0,immediate:!0}),(f,d)=>{const g=o.resolveComponent("el-tab-pane"),b=o.resolveComponent("el-tabs");return o.openBlock(),o.createBlock(b,{type:"card",modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=h=>l.value=h)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(h,E)=>(o.openBlock(),o.createBlock(g,{key:E,name:h==null?void 0:h.value},{label:o.withCtx(()=>{var p;return[h!=null&&h.label?(o.openBlock(),o.createElementBlock("div",{key:0,onDblclick:k=>s(h)},o.toDisplayString(h==null?void 0:h.label),41,Hn)):o.createCommentVNode("",!0),h!=null&&h.contents&&((p=h==null?void 0:h.contents)==null?void 0:p.length)>0?(o.openBlock(),o.createElementBlock("div",Wn,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h==null?void 0:h.contents,(k,R)=>(o.openBlock(),o.createElementBlock("div",{key:R,class:"tabs-children"},[k!=null&&k.value||(k==null?void 0:k.value)===""?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i(k==null?void 0:k.type)),{key:0,modelValue:k.value,"onUpdate:modelValue":Y=>k.value=Y,content:(k==null?void 0:k.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):o.createCommentVNode("",!0)]))),128))])):o.createCommentVNode("",!0),o.renderSlot(f.$slots,`${(h==null?void 0:h.value)??""}_header`,{},void 0,!0)]}),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h==null?void 0:h.children,(p,k)=>(o.openBlock(),o.createElementBlock("div",{key:k,class:"tabs-contents"},[o.renderSlot(f.$slots,`${(p==null?void 0:p.value)??""}_operateButtons`,{},void 0,!0),p!=null&&p.value||(p==null?void 0:p.value)===""?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i(p==null?void 0:p.type)),{key:0,modelValue:p.value,"onUpdate:modelValue":R=>p.value=R,onDbChange:u,content:p==null?void 0:p.content},o.createSlots({_:2},[o.renderList(f.$slots,(R,Y)=>({name:Y,fn:o.withCtx($=>[o.renderSlot(f.$slots,Y,o.mergeProps({ref_for:!0},$||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):o.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},tn=De._export_sfc(zn,[["__scopeId","data-v-c1c693d0"]]),Un=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"})),jn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n;return o.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(r=>{r.style.display="block"})}),(t,r)=>{var a;return o.openBlock(),o.createBlock(tn,{tabsContents:((a=e==null?void 0:e.content)==null?void 0:a.tabsContents)??[]},o.createSlots({_:2},[o.renderList(t.$slots,(l,i)=>({name:i,fn:o.withCtx(s=>[o.renderSlot(t.$slots,i,o.normalizeProps(o.guardReactiveProps(s||{})))])}))]),1032,["tabsContents"])}}},Xn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["dbChange"],setup(n,{emit:e}){const t=n,r=o.ref([]);o.watch(()=>{var i;return(i=t==null?void 0:t.content)==null?void 0:i.tableData},()=>{var i,s,u,c;((s=(i=t==null?void 0:t.content)==null?void 0:i.tableData)==null?void 0:s.length)===0||!((u=t==null?void 0:t.content)!=null&&u.tableData)||(r.value=it.cloneDeep((c=t==null?void 0:t.content)==null?void 0:c.tableData))},{deep:!0,immediate:!0});const a=e,l=i=>{var f,d,g,b;if(((f=t==null?void 0:t.content)==null?void 0:f.dbType)!=="edit"||!r.value||((d=r.value)==null?void 0:d.length)===0)return;let s=r.value,u=[];((g=s==null?void 0:s.filter(h=>(h==null?void 0:h.tableEditType)==="edit"))==null?void 0:g.length)!==(((b=t==null?void 0:t.content)==null?void 0:b.editNumber)??1)&&(s=s==null?void 0:s.map(h=>((h==null?void 0:h.id)===(i==null?void 0:i.id)&&(h.tableEditType="edit",u.push(h)),h)),a("dbChange",{content:s,item:u}))};return(i,s)=>{var u,c,f,d,g,b,h;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(i.$slots,`${(u=t==null?void 0:t.content)==null?void 0:u.value}_tableHeader`),(o.openBlock(),o.createBlock(on,{columns:((c=t==null?void 0:t.content)==null?void 0:c.columns)??[],tableData:r.value??[],currentPage:(f=t==null?void 0:t.content)==null?void 0:f.currentPage,total:(d=t==null?void 0:t.content)==null?void 0:d.total,pageSize:(g=t==null?void 0:t.content)==null?void 0:g.pageSize,isShowPagination:(b=t==null?void 0:t.content)==null?void 0:b.isShowPagination,isShowEdit:!1,isMoveColumn:(h=t==null?void 0:t.content)==null?void 0:h.isMoveColumn,isShowDelete:!1,onDoClickRow:l,key:r.value??[]},{actions:o.withCtx(({item:E})=>{var p;return[o.renderSlot(i.$slots,`${(p=t==null?void 0:t.content)==null?void 0:p.value}_action`,{item:E})]}),_:3},8,["columns","tableData","currentPage","total","pageSize","isShowPagination","isMoveColumn"]))],64)}}},Gn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(e.value);return(r,a)=>{const l=o.resolveComponent("el-option"),i=o.resolveComponent("el-select");return o.openBlock(),o.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=s=>t.value=s),clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e==null?void 0:e.content,s=>(o.openBlock(),o.createBlock(l,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},qn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(e.value);return(r,a)=>{const l=o.resolveComponent("el-option"),i=o.resolveComponent("el-select");return o.openBlock(),o.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=s=>t.value=s),multiple:"",clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e==null?void 0:e.content,s=>(o.openBlock(),o.createBlock(l,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},Jn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(e.value);return(r,a)=>{const l=o.resolveComponent("el-date-picker");return o.openBlock(),o.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),type:"date",placeholder:"请选择日期",format:"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])}}},Zn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=o.ref(e.value);return(r,a)=>{const l=o.resolveComponent("el-input");return o.openBlock(),o.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),type:"textarea",disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},Kn=De._export_sfc(Zn,[["__scopeId","data-v-917c453d"]]),Qn={class:"dialog-title"},eo={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:Number,default:600},visible:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(n,{emit:e}){const t=n,r=e,a=o.ref(!1),l=()=>{r("beforeDestroy")};return o.watch(()=>t==null?void 0:t.visible,()=>{a.value=t==null?void 0:t.visible},{deep:!0,immediate:!0}),(i,s)=>{const u=o.resolveComponent("el-dialog");return o.openBlock(),o.createBlock(u,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=c=>a.value=c),width:t==null?void 0:t.dialogWidth,"before-close":l},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default",{},void 0,!0)]),header:o.withCtx(()=>[o.createElementVNode("div",Qn,o.toDisplayString(t==null?void 0:t.title),1)]),footer:o.withCtx(()=>[o.renderSlot(i.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width"])}}},nn=De._export_sfc(eo,[["__scopeId","data-v-5547662c"]]),to={class:"upload"},no={class:"upload-icon"},oo={class:"dialog-footer"},ro={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["uploadContents"],setup(n,{emit:e}){const t=n,r=e;o.ref(t.value);const a=o.ref([]),l=o.ref(!1),i=()=>{l.value=!0},s=async()=>{l.value=!1,Ft.ElMessage.success("上传成功"),r("uploadContents",a.value),a.value=[]},u=()=>{l.value=!1,a.value=[]},c=(f,d)=>{d.value=d};return(f,d)=>{const g=o.resolveComponent("el-button"),b=o.resolveComponent("el-icon"),h=o.resolveComponent("el-upload");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",null,[o.createVNode(g,{type:"primary",onClick:i},{default:o.withCtx(()=>[o.createElementVNode("div",to,[d[1]||(d[1]=o.createElementVNode("div",{class:"upload-word"},o.toDisplayString("上传"),-1)),o.createElementVNode("div",no,[o.createVNode(o.unref(bt.upload_filled_default))])])]),_:1})]),o.createVNode(nn,{visible:l.value,onBeforeDestroy:u,title:"上传文件"},{default:o.withCtx(()=>[o.createVNode(h,{"file-list":a.value,"onUpdate:fileList":d[0]||(d[0]=E=>a.value=E),multiple:"",drag:"",action:"","auto-upload":!1,limit:1,"on-change":c},{tip:o.withCtx(()=>d[2]||(d[2]=[o.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传大小不超过10MB的文件 ",-1)])),default:o.withCtx(()=>[o.createVNode(b,{class:"el-icon--upload"},{default:o.withCtx(()=>[o.createVNode(o.unref(bt.upload_filled_default))]),_:1}),d[3]||(d[3]=o.createElementVNode("div",{class:"el-upload__text"},[o.createTextVNode(" 将文件拖到此处或"),o.createElementVNode("em",null,"点击上传")],-1))]),_:1,__:[3]},8,["file-list"])]),footer:o.withCtx(()=>[o.createElementVNode("div",oo,[o.createVNode(g,{onClick:u},{default:o.withCtx(()=>d[4]||(d[4]=[o.createTextVNode(o.toDisplayString("取消"))])),_:1,__:[4]}),o.createVNode(g,{type:"primary",onClick:s},{default:o.withCtx(()=>d[5]||(d[5]=[o.createTextVNode(o.toDisplayString("确认"))])),_:1,__:[5]})])]),_:1},8,["visible"])],64)}}},ao=De._export_sfc(ro,[["__scopeId","data-v-3e08e20d"]]),lo={SWITCH:An,INPUT:Rn,COLOR:Pn,NUMBER:Fn,FORM:Ln,RADIO:Yn,TAB:jn,TABLE:Xn,SELECT:Gn,MULTISELECT:qn,SSMenu:rn.default,DATE:Jn,TEXTAREA:Kn,UPLOAD:ao};function xt(n){return lo[n==null?void 0:n.toUpperCase()]||null}const io=n=>n.match(/\((.*)\)/)[1],so=n=>{try{return Lt(n).format("YYYY-MM-DD")!=="Invalid Date"}catch{return!1}},uo={class:"form-content-view"},co=["onClick"],fo=["onClick"],ho=["onClick"],po={__name:"index",props:{rowContents:Array,buttonValue:Array,isEnableWrap:{default:!0,type:Boolean},isRowFlex:{default:!0,type:Boolean},isButtonRow:{default:!0,type:Boolean},rowValues:Array,isEdit:{type:Boolean,default:!0},isStartJustify:{type:Boolean,default:!0}},emits:["change","onButtonClick"],setup(n,{emit:e}){const t=n;o.onMounted(()=>{console.log("表单",t)});const r=e,a=o.ref(null),l=o.ref(null),i=o.ref(),s=o.ref(),u=f=>xt(f);o.watch(()=>t==null?void 0:t.rowContents,()=>{var d,g;if(((d=t==null?void 0:t.rowContents)==null?void 0:d.length)===0)return;const f={};(g=it.cloneDeep(t==null?void 0:t.rowContents))==null||g.forEach(b=>{f[b.name]=(b==null?void 0:b.type)!=="date"?b==null?void 0:b.value:b!=null&&b.value?so(b==null?void 0:b.value)?Lt(b==null?void 0:b.value):b==null?void 0:b.value:""}),i.value=f,s.value=f,console.log("rowContents",t==null?void 0:t.rowContents)},{deep:!0,immediate:!0});const c=f=>{r("onButtonClick",{content:s.value,buttonName:f})};return o.watch(()=>s.value,()=>{r("change",s.value)},{deep:!0,immediate:!0}),(f,d)=>{var h;const g=o.resolveComponent("el-form-item"),b=o.resolveComponent("el-form");return o.openBlock(),o.createElementBlock("div",{class:"form-content",style:o.normalizeStyle({flexDirection:n.isButtonRow?"row":"column"})},[o.createElementVNode("div",uo,[t.isEnableWrap?(o.openBlock(),o.createBlock(b,{ref_key:"formWrapRef",ref:a,model:i.value,class:"form-data",key:t.isRowFlex},{default:o.withCtx(()=>{var E,p;return[(E=f.item)!=null&&E.isHidden?o.createCommentVNode("",!0):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(t==null?void 0:t.rowContents,(k,R)=>(o.openBlock(),o.createBlock(g,{key:R,class:"form-item",style:o.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto"})},o.createSlots({default:o.withCtx(()=>[k!=null&&k.isHidden?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(u((k==null?void 0:k.type)??"Input")),{key:0,modelValue:s.value[k.name],"onUpdate:modelValue":Y=>s.value[k.name]=Y,content:(k==null?void 0:k.contents)??[],isEdit:t==null?void 0:t.isEdit},null,8,["modelValue","onUpdate:modelValue","content","isEdit"]))]),_:2},[k!=null&&k.isHidden?void 0:{name:"label",fn:o.withCtx(()=>[k!=null&&k.label?(o.openBlock(),o.createElementBlock("div",{key:0,class:"from-item-label",style:o.normalizeStyle({width:n.isRowFlex?"72px":"260px",minWidth:n.isRowFlex?"72px":"260px"})},o.toDisplayString(k==null?void 0:k.label),5)):o.createCommentVNode("",!0)]),key:"0"}]),1032,["style"]))),128)),((p=t.buttonValue)==null?void 0:p.length)>0&&n.isButtonRow?(o.openBlock(),o.createElementBlock("div",{key:1,class:"form-button",style:o.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t==null?void 0:t.buttonValue,(k,R)=>(o.openBlock(),o.createElementBlock("div",{key:R,class:"form-button-content"},[k?(o.openBlock(),o.createElementBlock("div",{key:0,class:"form-button-item",style:o.normalizeStyle({background:(k==null?void 0:k.background)??"var(--ssComponent-primary-color)"}),onClick:Y=>c(k==null?void 0:k.label)},o.toDisplayString(k==null?void 0:k.label),13,co)):o.createCommentVNode("",!0)]))),128))],4)):o.createCommentVNode("",!0)]}),_:1},8,["model"])):(o.openBlock(),o.createBlock(b,{key:1,ref_key:"formRef",ref:l,model:s.value,class:"form-noRegular-data"},{default:o.withCtx(()=>{var E;return[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t==null?void 0:t.rowContents,(p,k)=>(o.openBlock(),o.createBlock(g,{key:k,class:o.normalizeClass(["form-item",{"form-row-content":!n.isRowFlex}]),style:o.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto",width:`calc((100% / ${(p==null?void 0:p.width)??1}) - 12px)`,minWidth:`calc((100% / ${(p==null?void 0:p.width)??1}) - 12px)`})},o.createSlots({default:o.withCtx(()=>[p!=null&&p.isHidden?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(u((p==null?void 0:p.type)??"Input")),{key:0,modelValue:s.value[p.name],"onUpdate:modelValue":R=>s.value[p.name]=R,isEdit:t==null?void 0:t.isEdit,content:(p==null?void 0:p.contents)??[]},null,8,["modelValue","onUpdate:modelValue","isEdit","content"]))]),_:2},[p!=null&&p.isHidden?void 0:{name:"label",fn:o.withCtx(()=>[p!=null&&p.label?(o.openBlock(),o.createElementBlock("div",{key:0,class:"from-item-label",style:o.normalizeStyle({width:n.isRowFlex?"72px":"auto",minWidth:n.isRowFlex?"72px":`calc((100% / ${(p==null?void 0:p.width)??1}) - 8px)`})},o.toDisplayString(p==null?void 0:p.label),5)):o.createCommentVNode("",!0)]),key:"0"}]),1032,["class","style"]))),128)),((E=t.buttonValue)==null?void 0:E.length)>0&&n.isButtonRow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"form-button",style:o.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t==null?void 0:t.buttonValue,(p,k)=>(o.openBlock(),o.createElementBlock("div",{key:k,class:"form-button-content"},[p?(o.openBlock(),o.createElementBlock("div",{key:0,class:"form-button-item",style:o.normalizeStyle({background:(p==null?void 0:p.background)??"var(--ssComponent-primary-color)"}),onClick:R=>c(p==null?void 0:p.label)},o.toDisplayString(p==null?void 0:p.label),13,fo)):o.createCommentVNode("",!0)]))),128))],4)):o.createCommentVNode("",!0)]}),_:1},8,["model"]))]),((h=t.buttonValue)==null?void 0:h.length)>0&&!n.isButtonRow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"form-button",style:o.normalizeStyle({justifyContent:n.isStartJustify?"start":"end"})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t==null?void 0:t.buttonValue,(E,p)=>(o.openBlock(),o.createElementBlock("div",{key:p,class:"form-button-content",onClick:k=>c(E)},[E?(o.openBlock(),o.createElementBlock("div",{key:0,class:"form-button-item",style:o.normalizeStyle({background:(E==null?void 0:E.background)??"var(--ssComponent-primary-color)"})},o.toDisplayString(E==null?void 0:E.label),5)):o.createCommentVNode("",!0)],8,ho))),128))],4)):o.createCommentVNode("",!0)],4)}}},Bt=De._export_sfc(po,[["__scopeId","data-v-8892f0f4"]]),mo={class:"extra-button-content"},go={key:0,class:"extra-header"},vo=["onClick"],bo={class:"extra-button-filter"},yo={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(n,{emit:e}){const t=e,r=n,a=o.ref(!1),l=o.ref([]),i=o.ref([{label:"取消"},{label:"确认"}]),s=f=>{t("buttonClick",f)},u=f=>{var d;l.value=(d=f==null?void 0:f.filter(g=>(g==null?void 0:g.label)!==""&&(g==null?void 0:g.label)!=="操作"))==null?void 0:d.map(g=>({label:(g==null?void 0:g.label)??"",value:"",name:(g==null?void 0:g.prop)??""}))},c=f=>{a.value=!1};return o.onMounted(()=>{u(r.columns)}),o.watch(()=>r.columns,()=>{u(r.columns)},{deep:!0,immediate:!0}),(f,d)=>{var b;const g=o.resolveComponent("el-tooltip");return o.openBlock(),o.createElementBlock("div",mo,[r!=null&&r.buttons&&((b=r==null?void 0:r.buttons)==null?void 0:b.length)>0?(o.openBlock(),o.createElementBlock("div",go,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r==null?void 0:r.buttons,(h,E)=>(o.openBlock(),o.createElementBlock("div",{class:"extra-contents",key:E},[o.createElementVNode("div",{class:"extra-content",style:o.normalizeStyle({background:(h==null?void 0:h.background)??"var(--ssComponent-primary-color)",color:"white"}),onClick:p=>s(h==null?void 0:h.label)},o.toDisplayString(h==null?void 0:h.label),13,vo)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",bo,[o.createVNode(Mn,{title:"筛选数据",width:500,isVisible:a.value},{reference:o.withCtx(()=>[o.createVNode(g,{content:"筛选",placement:"top-start"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"button-style",onClick:d[0]||(d[0]=h=>a.value=!a.value)},[o.createVNode(o.unref(bt.filter_default))])]),_:1})]),content:o.withCtx(()=>[(o.openBlock(),o.createBlock(Bt,{rowContents:l.value,buttonValue:i.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:i.value,isStartJustify:!1,onOnButtonClick:c},null,8,["rowContents","buttonValue"]))]),_:1},8,["isVisible"])])])}}},_o=De._export_sfc(yo,[["__scopeId","data-v-1d46278f"]]),wo=o.defineComponent({__name:"recurseCol",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var l,i,s,u,c,f,d;const r=o.resolveComponent("RecurseCol",!0),a=o.resolveComponent("el-table-column");return n.column.isHidden?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(a,{key:0,label:n.column.label,prop:n.column.prop,fixed:(l=n.column)==null?void 0:l.fixed,align:((i=n.column)==null?void 0:i.align)??"center",sortable:((s=n.column)==null?void 0:s.sortable)??!0,"show-overflow-tooltip":((u=n.column)==null?void 0:u.showOverflowTooltip)??!0,width:(c=n.column)!=null&&c.width?parseInt(n.column.width):void 0,"min-width":(f=n.column)!=null&&f.width?parseInt(n.column.width):void 0,"class-name":(((d=n.column)==null?void 0:d.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{default:o.withCtx(g=>[o.renderSlot(e.$slots,"content",{row:g.row,column:g.column,$index:g.$index}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.column.children,(b,h)=>(o.openBlock(),o.createBlock(r,{key:h,column:b},o.createSlots({_:2},[o.renderList(e.$slots,(E,p)=>({name:p,fn:o.withCtx(k=>[o.renderSlot(e.$slots,p,o.mergeProps({ref_for:!0},k,{slotData:k,row:g.row,item:{child:b}}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),ko=o.defineComponent({__name:"index",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var a,l,i,s,u,c,f,d;const r=o.resolveComponent("el-table-column");return n.column.isHidden?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(r,{key:0,label:n.column.label,prop:n.column.prop,fixed:(a=n.column)==null?void 0:a.fixed,align:((l=n.column)==null?void 0:l.align)??"center",sortable:((i=n.column)==null?void 0:i.sortable)??!0,"show-overflow-tooltip":((s=n.column)==null?void 0:s.showOverflowTooltip)??!0,width:(u=n.column)!=null&&u.width?parseInt(n.column.width):void 0,"min-width":(c=n.column)!=null&&c.width?parseInt(n.column.width):void 0,"class-name":((f=n.column)==null?void 0:f.prop)==="operate"?"action":(((d=n.column)==null?void 0:d.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{default:o.withCtx(g=>[o.renderSlot(e.$slots,"content",{row:g.row,column:g.column,$index:g.$index}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.column.children,(b,h)=>(o.openBlock(),o.createBlock(wo,{key:h,column:b},o.createSlots({_:2},[o.renderList(e.$slots,(E,p)=>({name:p,fn:o.withCtx(({row:k,slotData:R,item:Y})=>[o.renderSlot(e.$slots,p,o.mergeProps({ref_for:!0},R??k,{item:Y??b,slotData:R??k}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Eo={class:"table-content-show"},So=["onClick"],Do=["onClick"],Co=["onClick"],xo={key:2,style:{"font-size":"14px","font-weight":"400"}},Bo={__name:"index",props:{columns:Array,tableData:Array,currentPage:Number,total:Number,pageSize:Number,extraButton:{type:Array,default:()=>[]},isShowPagination:{type:Boolean,default:!0},isShowEdit:{type:Boolean,default:!0},isMoveColumn:{type:Boolean,default:!0},isShowDelete:{type:Boolean,default:!0}},emits:["dbClickRow","fixRow","deleteRow","doSizeChange","doCurrentChange","buttonClick","contentClick"],setup(n,{emit:e}){const t=n,r=o.ref([]),a=o.ref([]),l=o.ref(0),i=o.ref(null),s=o.ref(null),u=e;o.onMounted(()=>{r.value=t==null?void 0:t.columns,console.log(123,r.value),a.value=t==null?void 0:t.tableData,t.isMoveColumn&&E(),p()});const c=$=>{u("buttonClick",$)};o.watch(()=>t==null?void 0:t.tableData,()=>{a.value=t==null?void 0:t.tableData},{deep:!0});const f=$=>xt($),d=($,H)=>{u("dbClickRow",$)},g=$=>{u("fixRow",$)},b=$=>{u("deleteRow",$)},h=$=>{u("contentClick",$)},E=()=>{var H;const $=(H=i.value)==null?void 0:H.$el.querySelector(".el-table__header-wrapper tr");!$||!t.isMoveColumn||T.create($,{animation:180,delay:0,handle:".is-drag .cell",onMove:F=>!F.related.classList.contains("is-not-drag"),onEnd:F=>{l.value++;const S=F.oldIndex,X=F.newIndex,_=r.value.splice(S,1)[0];r.value.splice(X,0,_),t.isMoveColumn&&o.nextTick(()=>{E(),p()})}})};o.watch(()=>t.isMoveColumn,()=>{t.isMoveColumn&&o.nextTick(()=>{E(),p()})});const p=()=>{var H;const $=(H=i.value)==null?void 0:H.$el.querySelector(".el-table__body-wrapper tbody");$&&new T($,{animation:150,handle:".el-table__row",ghostClass:"sortable-ghost",onEnd:({newIndex:F,oldIndex:S})=>{const X=[...a.value],[_]=X.splice(S,1);X.splice(F,0,_),a.value=X,o.nextTick(()=>{p()})}})},k=$=>{$.preventDefault();try{const F=($.clipboardData||(window==null?void 0:window.clipboardData)).getData("text/plain");if(!F)return;const S=R(F);if(!S.length)return;const{rowIndex:X,columnIndex:_}=s.value||{rowIndex:0,columnIndex:0},x=[];if(S==null||S.forEach(B=>{x.push(B.length+_)}),(x==null?void 0:x.filter(B=>{var J;return B>Object.keys((J=a.value)==null?void 0:J[0]).length}).length)>0){Ft.ElMessage({type:"warning",message:"所剩列数不够"});return}for(let B=0;B<S.length;B++){const J=S[B],Z=a.value[X+B],C=it.cloneDeep(r.value).map(y=>y.prop);for(let y=0;y<J.length&&_+y<C.length;y++){const m=C[_+y];Z[m]=J[y]||""}}}catch(H){console.error("粘贴失败:",H)}},R=$=>$.trim().split(/\r\n|\n|\r/).map(S=>S.trim()?S.split(" ").map(X=>X.replace(/^"(.*)"$/,"$1")):[""]),Y=$=>{$&&(s.value={rowIndex:$==null?void 0:$.$index,columnIndex:$==null?void 0:$.cellIndex,columnProp:$.column.property})};return($,H)=>{const F=o.resolveComponent("el-table");return o.openBlock(),o.createElementBlock("div",Eo,[o.createVNode(_o,{buttons:t==null?void 0:t.extraButton,onButtonClick:c,columns:r.value},null,8,["buttons","columns"]),(o.openBlock(),o.createBlock(F,{border:!0,class:"table-wrap",data:a.value,stripe:"",style:{width:"100%"},"max-height":"600",ref_key:"tableRef",ref:i,"empty-text":"暂无数据",onSelectionChange:$.handleTableSelectChange,onRowDblclick:d,key:l.value,onPaste:k},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(S,X)=>(o.openBlock(),o.createBlock(ko,{column:S},{content:o.withCtx(({row:_,item:x,slotData:B})=>{var J,Z,C,y,m,D,w,N,V,P;return[((S==null?void 0:S.type)??"text")==="text"&&((_==null?void 0:_.tableEditType)??"text")==="text"?(o.openBlock(),o.createElementBlock("span",{key:0,style:o.normalizeStyle([{"font-size":"14px","font-weight":"400"},{cursor:_!=null&&_.children?"pointer":"default"}]),onClick:L=>{var j;return h(_!=null&&_[S==null?void 0:S.prop]?_==null?void 0:_[S==null?void 0:S.prop]:(_==null?void 0:_[x==null?void 0:x.prop])??(B==null?void 0:B[x==null?void 0:x.prop])??(_==null?void 0:_[(j=x==null?void 0:x.child)==null?void 0:j.prop]))}},o.toDisplayString(_!=null&&_[S==null?void 0:S.prop]?((Z=(J=_==null?void 0:_[S==null?void 0:S.prop])==null?void 0:J[0])==null?void 0:Z.contents)??(_==null?void 0:_[S==null?void 0:S.prop]):((y=(C=_==null?void 0:_[x==null?void 0:x.prop])==null?void 0:C[0])==null?void 0:y.contents)??(_==null?void 0:_[x==null?void 0:x.prop])??((D=(m=B==null?void 0:B[x==null?void 0:x.prop])==null?void 0:m[0])==null?void 0:D.contents)??(B==null?void 0:B[x==null?void 0:x.prop])??((V=(N=_==null?void 0:_[(w=x==null?void 0:x.child)==null?void 0:w.prop])==null?void 0:N[0])==null?void 0:V.contents)??(_==null?void 0:_[(P=x==null?void 0:x.child)==null?void 0:P.prop])),13,So)):o.createCommentVNode("",!0),((S==null?void 0:S.type)??"text")==="operate"?(o.openBlock(),o.createElementBlock("span",{key:1,class:"table-operate",style:o.normalizeStyle({justifyContent:n.isShowEdit&&n.isShowDelete?"space-between":"center"})},[o.renderSlot($.$slots,"actions",{item:_},void 0,!0),n.isShowEdit?(o.openBlock(),o.createElementBlock("span",{key:0,onClick:L=>g(_),class:"blue-table-operate table-operate-content"},"编辑",8,Do)):o.createCommentVNode("",!0),n.isShowDelete?(o.openBlock(),o.createElementBlock("span",{key:1,onClick:L=>b(_),class:"red-table-operate table-operate-content"},"删除",8,Co)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),((S==null?void 0:S.type)??"text")==="edit"&&((_==null?void 0:_.tableEditType)??"text")!=="edit"||((S==null?void 0:S.type)??"text")==="text"&&((_==null?void 0:_.tableEditType)??"text")==="edit"?(o.openBlock(),o.createElementBlock("span",xo,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(f((S==null?void 0:S.columnType)??"Input")),{modelValue:_[S.prop],"onUpdate:modelValue":L=>_[S.prop]=L,style:{height:"100%"},onFocus:L=>Y(_),content:(S==null?void 0:S.contents)??[]},null,40,["modelValue","onUpdate:modelValue","onFocus","content"]))])):o.createCommentVNode("",!0)]}),_:2},1032,["column"]))),256))]),_:3},8,["data","onSelectionChange"]))])}}},on=De._export_sfc(Bo,[["__scopeId","data-v-f0ada86a"]]);exports.formGetOptions=io;exports.index=Un;exports.ssDialog=nn;exports.ssForm=Bt;exports.ssTable=on;