ss-component-new 1.1.253 → 1.1.255

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 (98) hide show
  1. package/dist/array-D0ksMxBm.js +4732 -0
  2. package/dist/array-FnDBAqr_.cjs +7 -0
  3. package/dist/{cloneDeep-BDzOfpB7.cjs → cloneDeep-C-pGUQKf.cjs} +1 -1
  4. package/dist/{cloneDeep-B7ARrx0h.js → cloneDeep-Dyt41_L-.js} +1 -1
  5. package/dist/index-1L58FxXE.cjs +1 -0
  6. package/dist/{index-CNPDa2xp.js → index-4QOp-GFW.js} +7 -7
  7. package/dist/{index-nZMqLfXg.cjs → index-4zv-tITd.cjs} +1 -1
  8. package/dist/{index-BpfCH5My.cjs → index-AmZEXNoQ.cjs} +1 -1
  9. package/dist/{index-BCOnsiBC.js → index-BCY2xvgA.js} +1 -1
  10. package/dist/{index-CGQDlgX-.cjs → index-BHBz_g9I.cjs} +1 -1
  11. package/dist/{index-Ds_5NHNT.js → index-BJGqjruN.js} +1 -1
  12. package/dist/index-BKvrNIq2.js +4199 -0
  13. package/dist/index-BLMAsu2L.cjs +1 -0
  14. package/dist/{index-BVn9XisQ.js → index-BPhMb7pK.js} +4 -4
  15. package/dist/{index-DRPDOftk.js → index-BT1bqIxy.js} +4 -4
  16. package/dist/{index-D6mFL7s6.js → index-BZCF6V6l.js} +30 -30
  17. package/dist/index-Bb-62WPF.cjs +1 -0
  18. package/dist/{index-3ncadd-n.cjs → index-Bb_UeGKJ.cjs} +1 -1
  19. package/dist/index-BeYOMEs2.js +674 -0
  20. package/dist/index-BipikeGR.js +199 -0
  21. package/dist/index-BjjXJSlm.cjs +1 -0
  22. package/dist/index-BqgOQWUB.js +300 -0
  23. package/dist/{index-B6RdCQU4.js → index-Bs2mNVJb.js} +3 -3
  24. package/dist/{index-DcaaSs_a.js → index-Bvff3Rjc.js} +5 -5
  25. package/dist/{index-djVN5_Sf.cjs → index-ByA8EBvo.cjs} +1 -1
  26. package/dist/{index-CDbcB1Fw.js → index-C9zbvQ_u.js} +23 -24
  27. package/dist/{index-D3inZGZu.js → index-CJz4osvs.js} +6 -6
  28. package/dist/{index-BKFkrbgp.js → index-CNw33JR-.js} +32 -33
  29. package/dist/{index-B1lESzpk.cjs → index-CXnqXm6c.cjs} +1 -1
  30. package/dist/{index-yR6R78G3.js → index-CgreBJdF.js} +20 -21
  31. package/dist/index-ChBbyPw-.cjs +1 -0
  32. package/dist/{index-BNiX-tj2.cjs → index-ChC7cQXw.cjs} +1 -1
  33. package/dist/{index-DbZbUOub.cjs → index-ChLhaUgK.cjs} +175 -175
  34. package/dist/{index-DHfQsoC3.cjs → index-D2mqkg4c.cjs} +1 -1
  35. package/dist/{index-CXAsYcYF.cjs → index-D2pc-BzQ.cjs} +1 -1
  36. package/dist/{index-BoOojDw-.js → index-D5Bz4nyQ.js} +1 -1
  37. package/dist/index-DALSlEkV.cjs +1 -0
  38. package/dist/{index-Duop-clY.js → index-DFaF-8_G.js} +9 -9
  39. package/dist/index-DRIDbmGM.cjs +1 -0
  40. package/dist/{index-DjCaZ8Zl.js → index-DV6L8VsR.js} +5 -5
  41. package/dist/{index-DOr4o5ev.js → index-DVg2yzki.js} +1 -1
  42. package/dist/{index-DzBceCbY.cjs → index-DVpKjSNf.cjs} +1 -1
  43. package/dist/{index-3NzfXDhk.js → index-DY1Iv1Nz.js} +8 -8
  44. package/dist/{index-Cp-JwN0E.js → index-D_zly77U.js} +2037 -2090
  45. package/dist/index-DeUj3yRd.cjs +9 -0
  46. package/dist/{index-DqQjcgXo.js → index-DmOEedex.js} +12 -13
  47. package/dist/{index-C5RHQr0o.cjs → index-DokJCYVc.cjs} +1 -1
  48. package/dist/{index-BxkFK6dD.cjs → index-DsP7FB21.cjs} +1 -1
  49. package/dist/index-Dxbc5WoF.cjs +1 -0
  50. package/dist/index-HW8r5PRa.cjs +1 -0
  51. package/dist/{index-B92_MojW.cjs → index-Hiw-v6tJ.cjs} +1 -1
  52. package/dist/index-JN1a_LH1.cjs +1 -0
  53. package/dist/{index-LGlIxzMg.cjs → index-VEIBSb0L.cjs} +1 -1
  54. package/dist/{index-BASoYcrU.js → index-XqdyrkBW.js} +7 -8
  55. package/dist/{index-DCFR7U_b.js → index-ZO1MQu0A.js} +4 -4
  56. package/dist/{index-DqYY8LS-.js → index-exmBUjmZ.js} +5 -5
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-Bs-qy0pK.cjs → index.vue_vue_type_script_setup_true_lang-BJKLFe1B.cjs} +1 -1
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-CBfDRFHN.js → index.vue_vue_type_script_setup_true_lang-DKt1jWSZ.js} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DIYf7qx2.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-B7wukF06.cjs} +1 -1
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DRxEC4eG.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BJ_xZq3T.js} +6 -6
  61. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-ByetdKK8.cjs +1 -0
  62. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CUy9QkFH.js +908 -0
  63. package/dist/login-Bps4AQ46.cjs +1 -0
  64. package/dist/{login-CxadfjHD.js → login-l8Wv_G2i.js} +6 -6
  65. package/dist/{main-BVVwVykl.js → main-AjMVz5uU.js} +6 -6
  66. package/dist/{main-BTJBYczL.cjs → main-WNNH9wBa.cjs} +1 -1
  67. package/dist/menu-BEvMDEbJ.js +6783 -0
  68. package/dist/menu-Cj-UKXED.cjs +16 -0
  69. package/dist/{modelComp-BsKtMeM7.js → modelComp-CxFffZnZ.js} +1 -1
  70. package/dist/{modelComp-Im8BtgFY.cjs → modelComp-CyktectM.cjs} +1 -1
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +1 -1
  73. package/dist/ss-component.js +16 -16
  74. package/dist/ss-component3.cjs +1 -1
  75. package/dist/ss-component3.js +1 -1
  76. package/package.json +1 -1
  77. package/dist/array-CWm2LBmk.js +0 -4774
  78. package/dist/array-DyMFtlR4.cjs +0 -7
  79. package/dist/index-B5Fm5mr1.cjs +0 -9
  80. package/dist/index-Bp-Vqgkz.cjs +0 -1
  81. package/dist/index-BsGfXgSZ.js +0 -665
  82. package/dist/index-BtrCLtfp.cjs +0 -1
  83. package/dist/index-CIthfbvr.cjs +0 -1
  84. package/dist/index-CTtglK3w.cjs +0 -1
  85. package/dist/index-Cd6eKBt6.js +0 -3761
  86. package/dist/index-CdCwMRa1.js +0 -2115
  87. package/dist/index-D1dTAKxV.cjs +0 -1
  88. package/dist/index-D2c04gRc.cjs +0 -1
  89. package/dist/index-DANHTRnF.js +0 -228
  90. package/dist/index-DZSlvnaa.cjs +0 -1
  91. package/dist/index-Dp4TFbqD.cjs +0 -1
  92. package/dist/index-ZTdcBfL7.cjs +0 -6
  93. package/dist/index-ip4VAMkK.cjs +0 -1
  94. package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CZVR2xnq.js +0 -896
  95. package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-jMr9WVDb.cjs +0 -1
  96. package/dist/login-D9nwQPXh.cjs +0 -1
  97. package/dist/menu-BqjJVKx7.js +0 -4855
  98. package/dist/menu-BuVFL_u8.cjs +0 -11
@@ -0,0 +1,4199 @@
1
+ import { ref as L, resolveComponent as j, createBlock as U, openBlock as b, defineComponent as Qe, onMounted as et, withCtx as R, createVNode as re, createElementVNode as ae, createElementBlock as B, Fragment as ce, renderList as le, createTextVNode as Ue, toDisplayString as Se, watch as De, renderSlot as ue, createCommentVNode as ee, resolveDynamicComponent as ht, createSlots as Je, mergeProps as Jt, normalizeProps as Gn, guardReactiveProps as Yn, nextTick as qe, normalizeStyle as we, computed as jt, unref as Gt, h as rn, reactive as En, onBeforeUnmount as qn, toRefs as Xn, withDirectives as ln, vShow as sn, normalizeClass as Kn } from "vue";
2
+ import { S as cn } from "./index-BHtNKL1L.js";
3
+ import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { c as me } from "./cloneDeep-Dyt41_L-.js";
5
+ import { E as Cn, g as Zt } from "./menu-BEvMDEbJ.js";
6
+ import Jn from "./index-BJGqjruN.js";
7
+ import { _ as Zn } from "./index.vue_vue_type_script_setup_true_lang-DKt1jWSZ.js";
8
+ import { c as un } from "./index-DY1Iv1Nz.js";
9
+ function Qn(o) {
10
+ return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
11
+ }
12
+ var _t = { exports: {} }, e2 = _t.exports, dn;
13
+ function t2() {
14
+ return dn || (dn = 1, function(o, t) {
15
+ (function(e, n) {
16
+ o.exports = n();
17
+ })(e2, function() {
18
+ var e = 1e3, n = 6e4, a = 36e5, i = "millisecond", r = "second", l = "minute", c = "hour", s = "day", d = "week", h = "month", v = "quarter", m = "year", f = "date", _ = "Invalid Date", x = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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, N = { 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(k) {
19
+ var w = ["th", "st", "nd", "rd"], g = k % 100;
20
+ return "[" + k + (w[(g - 20) % 10] || w[g] || w[0]) + "]";
21
+ } }, F = function(k, w, g) {
22
+ var C = String(k);
23
+ return !C || C.length >= w ? k : "" + Array(w + 1 - C.length).join(g) + k;
24
+ }, Z = { s: F, z: function(k) {
25
+ var w = -k.utcOffset(), g = Math.abs(w), C = Math.floor(g / 60), S = g % 60;
26
+ return (w <= 0 ? "+" : "-") + F(C, 2, "0") + ":" + F(S, 2, "0");
27
+ }, m: function k(w, g) {
28
+ if (w.date() < g.date()) return -k(g, w);
29
+ var C = 12 * (g.year() - w.year()) + (g.month() - w.month()), S = w.clone().add(C, h), I = g - S < 0, $ = w.clone().add(C + (I ? -1 : 1), h);
30
+ return +(-(C + (g - S) / (I ? S - $ : $ - S)) || 0);
31
+ }, a: function(k) {
32
+ return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
33
+ }, p: function(k) {
34
+ return { M: h, y: m, w: d, d: s, D: f, h: c, m: l, s: r, ms: i, Q: v }[k] || String(k || "").toLowerCase().replace(/s$/, "");
35
+ }, u: function(k) {
36
+ return k === void 0;
37
+ } }, E = "en", u = {};
38
+ u[E] = N;
39
+ var M = "$isDayjsObject", z = function(k) {
40
+ return k instanceof P || !(!k || !k[M]);
41
+ }, D = function k(w, g, C) {
42
+ var S;
43
+ if (!w) return E;
44
+ if (typeof w == "string") {
45
+ var I = w.toLowerCase();
46
+ u[I] && (S = I), g && (u[I] = g, S = I);
47
+ var $ = w.split("-");
48
+ if (!S && $.length > 1) return k($[0]);
49
+ } else {
50
+ var Y = w.name;
51
+ u[Y] = w, S = Y;
52
+ }
53
+ return !C && S && (E = S), S || !C && E;
54
+ }, G = function(k, w) {
55
+ if (z(k)) return k.clone();
56
+ var g = typeof w == "object" ? w : {};
57
+ return g.date = k, g.args = arguments, new P(g);
58
+ }, p = Z;
59
+ p.l = D, p.i = z, p.w = function(k, w) {
60
+ return G(k, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
61
+ };
62
+ var P = function() {
63
+ function k(g) {
64
+ this.$L = D(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[M] = !0;
65
+ }
66
+ var w = k.prototype;
67
+ return w.parse = function(g) {
68
+ this.$d = function(C) {
69
+ var S = C.date, I = C.utc;
70
+ if (S === null) return /* @__PURE__ */ new Date(NaN);
71
+ if (p.u(S)) return /* @__PURE__ */ new Date();
72
+ if (S instanceof Date) return new Date(S);
73
+ if (typeof S == "string" && !/Z$/i.test(S)) {
74
+ var $ = S.match(x);
75
+ if ($) {
76
+ var Y = $[2] - 1 || 0, X = ($[7] || "0").substring(0, 3);
77
+ return I ? new Date(Date.UTC($[1], Y, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, X)) : new Date($[1], Y, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, X);
78
+ }
79
+ }
80
+ return new Date(S);
81
+ }(g), this.init();
82
+ }, w.init = function() {
83
+ var g = this.$d;
84
+ this.$y = g.getFullYear(), this.$M = g.getMonth(), this.$D = g.getDate(), this.$W = g.getDay(), this.$H = g.getHours(), this.$m = g.getMinutes(), this.$s = g.getSeconds(), this.$ms = g.getMilliseconds();
85
+ }, w.$utils = function() {
86
+ return p;
87
+ }, w.isValid = function() {
88
+ return this.$d.toString() !== _;
89
+ }, w.isSame = function(g, C) {
90
+ var S = G(g);
91
+ return this.startOf(C) <= S && S <= this.endOf(C);
92
+ }, w.isAfter = function(g, C) {
93
+ return G(g) < this.startOf(C);
94
+ }, w.isBefore = function(g, C) {
95
+ return this.endOf(C) < G(g);
96
+ }, w.$g = function(g, C, S) {
97
+ return p.u(g) ? this[C] : this.set(S, g);
98
+ }, w.unix = function() {
99
+ return Math.floor(this.valueOf() / 1e3);
100
+ }, w.valueOf = function() {
101
+ return this.$d.getTime();
102
+ }, w.startOf = function(g, C) {
103
+ var S = this, I = !!p.u(C) || C, $ = p.p(g), Y = function(Re, pe) {
104
+ var Ie = p.w(S.$u ? Date.UTC(S.$y, pe, Re) : new Date(S.$y, pe, Re), S);
105
+ return I ? Ie : Ie.endOf(s);
106
+ }, X = function(Re, pe) {
107
+ return p.w(S.toDate()[Re].apply(S.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(pe)), S);
108
+ }, te = this.$W, ne = this.$M, he = this.$D, He = "set" + (this.$u ? "UTC" : "");
109
+ switch ($) {
110
+ case m:
111
+ return I ? Y(1, 0) : Y(31, 11);
112
+ case h:
113
+ return I ? Y(1, ne) : Y(0, ne + 1);
114
+ case d:
115
+ var Be = this.$locale().weekStart || 0, tt = (te < Be ? te + 7 : te) - Be;
116
+ return Y(I ? he - tt : he + (6 - tt), ne);
117
+ case s:
118
+ case f:
119
+ return X(He + "Hours", 0);
120
+ case c:
121
+ return X(He + "Minutes", 1);
122
+ case l:
123
+ return X(He + "Seconds", 2);
124
+ case r:
125
+ return X(He + "Milliseconds", 3);
126
+ default:
127
+ return this.clone();
128
+ }
129
+ }, w.endOf = function(g) {
130
+ return this.startOf(g, !1);
131
+ }, w.$set = function(g, C) {
132
+ var S, I = p.p(g), $ = "set" + (this.$u ? "UTC" : ""), Y = (S = {}, S[s] = $ + "Date", S[f] = $ + "Date", S[h] = $ + "Month", S[m] = $ + "FullYear", S[c] = $ + "Hours", S[l] = $ + "Minutes", S[r] = $ + "Seconds", S[i] = $ + "Milliseconds", S)[I], X = I === s ? this.$D + (C - this.$W) : C;
133
+ if (I === h || I === m) {
134
+ var te = this.clone().set(f, 1);
135
+ te.$d[Y](X), te.init(), this.$d = te.set(f, Math.min(this.$D, te.daysInMonth())).$d;
136
+ } else Y && this.$d[Y](X);
137
+ return this.init(), this;
138
+ }, w.set = function(g, C) {
139
+ return this.clone().$set(g, C);
140
+ }, w.get = function(g) {
141
+ return this[p.p(g)]();
142
+ }, w.add = function(g, C) {
143
+ var S, I = this;
144
+ g = Number(g);
145
+ var $ = p.p(C), Y = function(ne) {
146
+ var he = G(I);
147
+ return p.w(he.date(he.date() + Math.round(ne * g)), I);
148
+ };
149
+ if ($ === h) return this.set(h, this.$M + g);
150
+ if ($ === m) return this.set(m, this.$y + g);
151
+ if ($ === s) return Y(1);
152
+ if ($ === d) return Y(7);
153
+ var X = (S = {}, S[l] = n, S[c] = a, S[r] = e, S)[$] || 1, te = this.$d.getTime() + g * X;
154
+ return p.w(te, this);
155
+ }, w.subtract = function(g, C) {
156
+ return this.add(-1 * g, C);
157
+ }, w.format = function(g) {
158
+ var C = this, S = this.$locale();
159
+ if (!this.isValid()) return S.invalidDate || _;
160
+ var I = g || "YYYY-MM-DDTHH:mm:ssZ", $ = p.z(this), Y = this.$H, X = this.$m, te = this.$M, ne = S.weekdays, he = S.months, He = S.meridiem, Be = function(pe, Ie, nt, vt) {
161
+ return pe && (pe[Ie] || pe(C, I)) || nt[Ie].slice(0, vt);
162
+ }, tt = function(pe) {
163
+ return p.s(Y % 12 || 12, pe, "0");
164
+ }, Re = He || function(pe, Ie, nt) {
165
+ var vt = pe < 12 ? "AM" : "PM";
166
+ return nt ? vt.toLowerCase() : vt;
167
+ };
168
+ return I.replace(T, function(pe, Ie) {
169
+ return Ie || function(nt) {
170
+ switch (nt) {
171
+ case "YY":
172
+ return String(C.$y).slice(-2);
173
+ case "YYYY":
174
+ return p.s(C.$y, 4, "0");
175
+ case "M":
176
+ return te + 1;
177
+ case "MM":
178
+ return p.s(te + 1, 2, "0");
179
+ case "MMM":
180
+ return Be(S.monthsShort, te, he, 3);
181
+ case "MMMM":
182
+ return Be(he, te);
183
+ case "D":
184
+ return C.$D;
185
+ case "DD":
186
+ return p.s(C.$D, 2, "0");
187
+ case "d":
188
+ return String(C.$W);
189
+ case "dd":
190
+ return Be(S.weekdaysMin, C.$W, ne, 2);
191
+ case "ddd":
192
+ return Be(S.weekdaysShort, C.$W, ne, 3);
193
+ case "dddd":
194
+ return ne[C.$W];
195
+ case "H":
196
+ return String(Y);
197
+ case "HH":
198
+ return p.s(Y, 2, "0");
199
+ case "h":
200
+ return tt(1);
201
+ case "hh":
202
+ return tt(2);
203
+ case "a":
204
+ return Re(Y, X, !0);
205
+ case "A":
206
+ return Re(Y, X, !1);
207
+ case "m":
208
+ return String(X);
209
+ case "mm":
210
+ return p.s(X, 2, "0");
211
+ case "s":
212
+ return String(C.$s);
213
+ case "ss":
214
+ return p.s(C.$s, 2, "0");
215
+ case "SSS":
216
+ return p.s(C.$ms, 3, "0");
217
+ case "Z":
218
+ return $;
219
+ }
220
+ return null;
221
+ }(pe) || $.replace(":", "");
222
+ });
223
+ }, w.utcOffset = function() {
224
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
225
+ }, w.diff = function(g, C, S) {
226
+ var I, $ = this, Y = p.p(C), X = G(g), te = (X.utcOffset() - this.utcOffset()) * n, ne = this - X, he = function() {
227
+ return p.m($, X);
228
+ };
229
+ switch (Y) {
230
+ case m:
231
+ I = he() / 12;
232
+ break;
233
+ case h:
234
+ I = he();
235
+ break;
236
+ case v:
237
+ I = he() / 3;
238
+ break;
239
+ case d:
240
+ I = (ne - te) / 6048e5;
241
+ break;
242
+ case s:
243
+ I = (ne - te) / 864e5;
244
+ break;
245
+ case c:
246
+ I = ne / a;
247
+ break;
248
+ case l:
249
+ I = ne / n;
250
+ break;
251
+ case r:
252
+ I = ne / e;
253
+ break;
254
+ default:
255
+ I = ne;
256
+ }
257
+ return S ? I : p.a(I);
258
+ }, w.daysInMonth = function() {
259
+ return this.endOf(h).$D;
260
+ }, w.$locale = function() {
261
+ return u[this.$L];
262
+ }, w.locale = function(g, C) {
263
+ if (!g) return this.$L;
264
+ var S = this.clone(), I = D(g, C, !0);
265
+ return I && (S.$L = I), S;
266
+ }, w.clone = function() {
267
+ return p.w(this.$d, this);
268
+ }, w.toDate = function() {
269
+ return new Date(this.valueOf());
270
+ }, w.toJSON = function() {
271
+ return this.isValid() ? this.toISOString() : null;
272
+ }, w.toISOString = function() {
273
+ return this.$d.toISOString();
274
+ }, w.toString = function() {
275
+ return this.$d.toUTCString();
276
+ }, k;
277
+ }(), q = P.prototype;
278
+ return G.prototype = q, [["$ms", i], ["$s", r], ["$m", l], ["$H", c], ["$W", s], ["$M", h], ["$y", m], ["$D", f]].forEach(function(k) {
279
+ q[k[1]] = function(w) {
280
+ return this.$g(w, k[0], k[1]);
281
+ };
282
+ }), G.extend = function(k, w) {
283
+ return k.$i || (k(w, P, G), k.$i = !0), G;
284
+ }, G.locale = D, G.isDayjs = z, G.unix = function(k) {
285
+ return G(1e3 * k);
286
+ }, G.en = u[E], G.Ls = u, G.p = {}, G;
287
+ });
288
+ }(_t)), _t.exports;
289
+ }
290
+ var n2 = t2();
291
+ const hn = /* @__PURE__ */ Qn(n2), o2 = {
292
+ __name: "index",
293
+ props: {
294
+ value: String,
295
+ content: {
296
+ type: Array,
297
+ default: () => []
298
+ },
299
+ isEdit: {
300
+ type: Boolean,
301
+ default: !0
302
+ }
303
+ },
304
+ setup(o) {
305
+ const e = L(o.value);
306
+ return (n, a) => {
307
+ const i = j("el-switch");
308
+ return b(), U(i, {
309
+ modelValue: e.value,
310
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r),
311
+ "active-color": "#13ce66",
312
+ "inactive-color": "#ff4949"
313
+ }, null, 8, ["modelValue"]);
314
+ };
315
+ }
316
+ }, a2 = {
317
+ __name: "index",
318
+ props: {
319
+ value: String,
320
+ content: {
321
+ type: Array,
322
+ default: () => []
323
+ },
324
+ isEdit: {
325
+ type: Boolean,
326
+ default: !0
327
+ }
328
+ },
329
+ setup(o) {
330
+ const t = o, e = L(t.value);
331
+ return (n, a) => {
332
+ const i = j("el-input");
333
+ return b(), U(i, {
334
+ modelValue: e.value,
335
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r),
336
+ disabled: !(t != null && t.isEdit),
337
+ clearable: ""
338
+ }, null, 8, ["modelValue", "disabled"]);
339
+ };
340
+ }
341
+ }, i2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407294483'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13930'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M925.866667%20797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667%200-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2%2029.866667-76.8%2055.466666-106.666666%208.533333-8.533333%2017.066667-21.333333%2025.6-29.866667%2029.866667-42.666667%2034.133333-89.6%2034.133334-98.133333%200-8.533333%200-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333%200-12.8%204.266667-21.333333%204.266667-29.866667%200-21.333333%204.266667-55.466667-4.266667-89.6%200-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667%200-17.066667%200-25.6%204.266667-21.333333%204.266667-38.4%2021.333333-42.666667%2042.666666v21.333334c-8.533333%208.533333-55.466667%2051.2-55.466667%20102.4-4.266667%2034.133333-4.266667%2085.333333%200%20123.733333-8.533333%208.533333-17.066667%2021.333333-12.8%2042.666667%200%2012.8%204.266667%2055.466667%2034.133334%2098.133333%208.533333%208.533333%2017.066667%2017.066667%2025.6%2029.866667%2025.6%2029.866667%2051.2%2055.466667%2055.466666%20106.666666v17.066667c-4.266667%204.266667-17.066667%208.533333-38.4%2012.8-29.866667%208.533333-59.733333%2012.8-64%2012.8-46.933333%208.533333-85.333333%2021.333333-115.2%2042.666667-25.6%2017.066667-46.933333%2038.4-64%2064-25.6%2038.4-25.6%2076.8-25.6%2085.333333v21.333333c0%2025.6%2021.333333%2046.933333%2046.933334%2046.933334H896c25.6%200%2046.933333-21.333333%2046.933333-46.933334v-17.066666c8.533333-12.8%208.533333-51.2-17.066666-89.6z%20m-546.133334-128c0%204.266667%200%204.266667%200%200v4.266666c-4.266667%200-4.266667%200%200-4.266666z%20m503.466667%20213.333333l-742.4%204.266667v-4.266667s0-25.6%2012.8-51.2c8.533333-17.066667%2025.6-29.866667%2042.666667-42.666667%2025.6-17.066667%2055.466667-25.6%2089.6-34.133333%204.266667%200%2034.133333-4.266667%2068.266666-12.8%2051.2-12.8%2076.8-29.866667%2085.333334-46.933333%200-4.266667%200-4.266667%204.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667%208.533333-8.533333c4.266667-17.066667%200-25.6%200-29.866667-4.266667-34.133333-4.266667-81.066667%200-119.466667%200-29.866667%2029.866667-55.466667%2029.866667-55.466666%208.533333-4.266667%2017.066667-12.8%2021.333333-21.333334%200-4.266667%204.266667-4.266667%204.266667-8.533333v-25.6H465.066667c140.8%208.533333%20192%2059.733333%20192%2059.733333%208.533333%2012.8%2017.066667%2025.6%2021.333333%2042.666667%204.266667%204.266667%204.266667%208.533333%204.266667%2012.8%204.266667%2029.866667%204.266667%2055.466667%204.266666%2076.8%200%2012.8%200%2021.333333-4.266666%2038.4%200%2012.8%200%2025.6%208.533333%2029.866667l4.266667%204.266666%204.266666%204.266667s0%2034.133333-21.333333%2064c-4.266667%208.533333-12.8%2012.8-21.333333%2021.333333-29.866667%2029.866667-64%2072.533333-72.533334%20145.066667v42.666667c0%204.266667%200%204.266667%204.266667%208.533333%208.533333%2021.333333%2034.133333%2034.133333%2085.333333%2046.933333%2034.133333%208.533333%2064%2012.8%2068.266667%2012.8%2038.4%208.533333%2068.266667%2017.066667%2093.866667%2034.133334%2017.066667%2012.8%2034.133333%2025.6%2042.666666%2042.666666%208.533333%2025.6%208.533333%2051.2%204.266667%2055.466667z'%20p-id='13931'%3e%3c/path%3e%3c/svg%3e", r2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
342
+ __proto__: null,
343
+ default: i2
344
+ }, Symbol.toStringTag, { value: "Module" })), l2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642267995'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='15790'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='15791'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='15792'%3e%3c/path%3e%3c/svg%3e", s2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
345
+ __proto__: null,
346
+ default: l2
347
+ }, Symbol.toStringTag, { value: "Module" })), c2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816526374'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9498'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9499'%3e%3c/path%3e%3cpath%20d='M695.7%20469.2h-139v-139c0-23.6-19.3-43-43-43-23.6%200-43%2019.3-43%2043v139h-139c-23.6%200-43%2019.3-43%2043s19.3%2043%2043%2043h139v139c0%2023.7%2019.3%2043%2043%2043%2023.6%200%2043-19.3%2043-43v-139h139c23.6%200%2043-19.3%2043-43s-19.4-43-43-43z'%20p-id='9500'%3e%3c/path%3e%3c/svg%3e", u2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
348
+ __proto__: null,
349
+ default: c2
350
+ }, Symbol.toStringTag, { value: "Module" })), d2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816329545'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9351'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9352'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='9353'%3e%3c/path%3e%3c/svg%3e", h2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
351
+ __proto__: null,
352
+ default: d2
353
+ }, Symbol.toStringTag, { value: "Module" })), f2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815766948'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9204'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M923.9%20335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2%2074.1%20337%2097.5c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3C75.3%20391%2063.5%20449.7%2063.5%20510.1c0%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c35.9-15.2%2069.3-34.8%2099.8-58.5l-0.1-0.1c9.1-7.4%2014.8-18.6%2014.8-31.2%200-22.3-18-40.3-40.3-40.3-9.2%200-17.7%203.1-24.5%208.3l-0.2-0.3c-62%2047.9-139.7%2076.4-223.9%2076.4-202.3%200-366.9-164.6-366.9-366.9s164.7-366.9%20367-366.9%20366.9%20164.6%20366.9%20366.9c0%2066.2-17.6%20128.3-48.4%20182l0.4%200.2c-4.4%206.5-7%2014.2-7%2022.6%200%2022.3%2018%2040.3%2040.3%2040.3%2016%200%2029.8-9.3%2036.3-22.8l0.2%200.1c8.9-15.5%2016.8-31.5%2023.8-48.1%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.7-119.1-35.1-174.3z'%20p-id='9205'%3e%3c/path%3e%3cpath%20d='M693.7%20626.5H507.6l-57.1%2066.1h243.2zM663.2%20411.4c7.5-7.6%207.5-23.5%200-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4%200l-45.7%2046.8%2076.1%2078.1%2045.4-46.8zM328.8%20614.5v78.1h76.1l197.5-218.7-76-77.9z'%20p-id='9206'%3e%3c/path%3e%3c/svg%3e", p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
354
+ __proto__: null,
355
+ default: f2
356
+ }, Symbol.toStringTag, { value: "Module" })), g2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815629946'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9058'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M78.768011%20168.230165c0-30.999918%2024.230644-56.076722%2054.15419-56.076722L403.692131%20112.153443%20403.692131%2056.076722c0-30.999918%2024.230644-56.076722%2054.15419-56.076722l108.306335%200c29.923546%200%2054.155214%2025.076803%2054.155214%2056.076722l0%2056.077745%20270.768906%200c29.923546%200%2054.15419%2025.076803%2054.15419%2056.076722l0%2056.076722L78.768011%20224.307909%2078.768011%20168.230165zM891.076776%20336.461352l0%20112.153443%200%20519.30746c0%2030.923181-24.231667%2056.077745-54.153167%2056.077745L187.076392%201024c-29.923546%200-54.15419-25.154564-54.15419-56.077745L132.922201%20448.614796%20132.922201%20336.461352l0-56.077745%20758.154574%200L891.076776%20336.461352zM349.53794%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L349.53794%20448.614796zM566.153679%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L566.153679%20448.614796zM782.770441%20448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419%2025.153541-54.15419%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.15419%2056.077745s54.155214-25.154564%2054.155214-56.077745L782.770441%20448.614796z'%20p-id='9059'%3e%3c/path%3e%3c/svg%3e", v2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
357
+ __proto__: null,
358
+ default: g2
359
+ }, Symbol.toStringTag, { value: "Module" })), m2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815488055'%20class='icon'%20viewBox='0%200%201025%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8912'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200.1953125'%20height='200'%3e%3cpath%20d='M127.110228%20701.648461q0%2026.438928%2018.812314%2045.251241t46.268123%2018.812314l253.203575%200%200%20128.12711-318.284012%200q-26.438928%200-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928%209.660377-49.82721t26.947368-40.675273%2040.675273-27.455809%2049.82721-10.168818l766.728898%200q26.438928%200%2049.82721%2010.168818t40.675273%2027.455809%2027.455809%2040.675273%2010.168818%2049.82721l0%20187.106256-128.12711%201.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906%200q-27.455809%200-46.268123%2018.812314t-18.812314%2045.251241l0%20382.347567zM1016.881827%20501.322741q6.101291%209.151936%207.626614%2023.388282t-10.677259%2028.472691q-11.1857%2014.236346-18.303873%2021.354518l-8.135055%208.135055-105.75571-95.586892q5.084409-6.101291%2014.236346-14.744786t14.236346-13.727905q14.236346-14.236346%2030.506455-12.711023t27.455809%206.609732q12.202582%205.084409%2026.438928%2018.812314t22.3714%2029.998014zM613.179742%20789.100298q3.050645-3.050645%2014.236346-16.270109t27.96425-32.540218%2037.116187-42.200596%2040.675273-46.268123q48.810328-54.911619%20108.806356-122.025819l107.789474%2095.586892q-59.996028%2068.131082-108.806356%20123.042701-20.337637%2023.388282-40.675273%2046.268123t-37.116187%2041.183714-27.455809%2029.998014-12.711023%2013.727905q-9.151936%2012.202582-25.422046%2020.337637-7.118173%205.084409-21.354518%2011.1857t-29.998014%2012.202582-29.489573%2010.677259-20.846077%205.59285q-26.438928%205.084409-23.388282-22.3714%201.016882-7.118173%204.067527-21.862959t6.609732-30.506455%207.118173-28.981132%205.59285-18.303873q5.084409-13.219464%2017.286991-28.472691z'%20p-id='8913'%3e%3c/path%3e%3c/svg%3e", y2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
360
+ __proto__: null,
361
+ default: m2
362
+ }, Symbol.toStringTag, { value: "Module" })), b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407346075'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14076'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14077'%3e%3c/path%3e%3cpath%20d='M510.464%20639.488l207.872-254.976H302.08z'%20p-id='14078'%3e%3c/path%3e%3c/svg%3e", w2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
363
+ __proto__: null,
364
+ default: b2
365
+ }, Symbol.toStringTag, { value: "Module" })), _2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407433101'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14223'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.88%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384H122.88c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14224'%3e%3c/path%3e%3cpath%20d='M244.224%20279.04h142.848v49.152H244.224zM244.224%20425.472h142.848v49.152H244.224zM436.736%20279.04h342.528v49.152H436.736zM436.736%20425.472h342.528v49.152H436.736zM244.224%20572.416h142.848v49.152H244.224zM436.736%20572.416h342.528v172.544H436.736z'%20p-id='14225'%3e%3c/path%3e%3c/svg%3e", S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
366
+ __proto__: null,
367
+ default: _2
368
+ }, Symbol.toStringTag, { value: "Module" })), x2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750411679824'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='35651'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M474%20152m8%200l60%200q8%200%208%208l0%20704q0%208-8%208l-60%200q-8%200-8-8l0-704q0-8%208-8Z'%20p-id='35652'%3e%3c/path%3e%3cpath%20d='M168%20474m8%200l672%200q8%200%208%208l0%2060q0%208-8%208l-672%200q-8%200-8-8l0-60q0-8%208-8Z'%20p-id='35653'%3e%3c/path%3e%3c/svg%3e", D2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
369
+ __proto__: null,
370
+ default: x2
371
+ }, Symbol.toStringTag, { value: "Module" })), E2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750643434994'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16376'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='16377'%3e%3c/path%3e%3cpath%20d='M715.6%20371.6c-15.7-15.7-41.4-15.7-57%200l-196%20196-95.9-95.9c-15.7-15.7-41.4-15.7-57%200-15.7%2015.7-15.7%2041.4%200%2057l124.5%20124.5c15.7%2015.7%2041.4%2015.7%2057%200l224.5-224.5c15.6-15.7%2015.6-41.4-0.1-57.1z'%20p-id='16378'%3e%3c/path%3e%3c/svg%3e", C2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
372
+ __proto__: null,
373
+ default: E2
374
+ }, Symbol.toStringTag, { value: "Module" })), T2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406704613'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13783'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='13784'%3e%3c/path%3e%3cpath%20d='M573.44%20646.656l-3.072%206.144c-8.192%2012.288-14.336%2025.088-19.456%2038.912-6.656%2018.944-3.072%2036.352%2016.896%2043.008%2034.816%2011.264%2072.704%209.216%20106.496-4.608%209.216-3.072%2011.264-4.096%2034.304-12.8%2016.384-6.656%2033.792-12.8%2051.2-17.408%201.024%200%202.048-0.512%203.072-1.024%2010.24-2.048%206.656-5.632%2016.896%201.024%203.584%203.072%208.704%204.096%2013.312%203.072%204.608-1.024%205.632-3.072%208.192-7.68%205.632-8.192%203.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536%200.512-3.072%200.512-4.096%201.024-18.944%205.12-37.376%2011.264-55.808%2018.432-22.016%208.704-24.064%209.728-32.768%2012.288-24.576%2010.24-52.224%2012.8-78.336%206.144%204.608-11.264%2010.24-22.016%2016.896-32.256%201.536-2.048%202.56-4.096%203.584-6.144%208.704-13.824%2015.36-29.184%2018.432-45.056%204.096-19.456-7.68-38.4-27.136-42.496-0.512%200-1.536-0.512-2.048-0.512-27.648-6.656-59.392%203.072-148.992%2037.888-81.92%2032.256-117.76%2041.984-129.024%2035.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728%202.56-15.36%2012.8-12.8%2022.016%201.024%204.608%204.096%208.192%208.192%2010.752%2023.04%208.704%2048.64%207.68%2071.168-2.048%2029.696-9.216%2059.392-19.456%2088.064-32.256%2077.824-30.72%20111.104-40.448%20126.976-36.352%203.072%201.024%203.072%200%202.56%203.072-2.56%2012.288-7.168%2023.552-13.312%2033.792zM665.088%20235.52c-19.456-17.92-49.664-17.408-68.608%201.024L312.32%20519.68c-2.048%202.048-3.584%204.608-4.608%207.68l-22.528%2080.896c-2.56%209.728%203.072%2019.456%2012.8%2021.504%203.584%201.024%207.68%200.512%2011.264-0.512l71.168-29.696c5.632-2.56%2010.752-5.632%2015.36-10.24l283.648-269.824%202.56-2.56c18.432-19.456%2017.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z'%20p-id='13785'%3e%3c/path%3e%3c/svg%3e", k2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
375
+ __proto__: null,
376
+ default: T2
377
+ }, Symbol.toStringTag, { value: "Module" })), M2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642902470'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16229'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M0%200h1024v1024H0z'%20fill='%23FFFFFF'%20fill-opacity='0'%20p-id='16230'%3e%3c/path%3e%3cpath%20d='M204%20372c66.31%200%20121.852%2046.1%20136.326%20108h137.53c12.901-33.907%2045.71-58%2084.144-58%2038.435%200%2071.243%2024.093%2084.145%2058h139.71c12.902-33.907%2045.71-58%2084.145-58%2049.706%200%2090%2040.294%2090%2090s-40.294%2090-90%2090c-38.434%200-71.242-24.092-84.144-57.998H646.144C633.242%20577.908%20600.434%20602%20562%20602c-38.434%200-71.242-24.092-84.144-57.998h-137.53C325.852%20605.9%20270.309%20652%20204%20652c-77.32%200-140-62.68-140-140s62.68-140%20140-140z%20m0%2064c-41.974%200-76%2034.026-76%2076s34.026%2076%2076%2076%2076-34.026%2076-76-34.026-76-76-76z%20m358%2050c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z%20m308%200c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z'%20p-id='16231'%3e%3c/path%3e%3c/svg%3e", P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
378
+ __proto__: null,
379
+ default: M2
380
+ }, Symbol.toStringTag, { value: "Module" })), O2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750667945909'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16523'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M778.7%2097.2H247.3C165%2097.2%2098%20164.3%2098%20246.7v532.2c0%2082.4%2067%20149.4%20149.3%20149.4h531.5c82.3%200%20149.3-67%20149.3-149.4V246.7C928%20164.3%20861%2097.2%20778.7%2097.2z%20m-452.2%2079.9h373.1v83.7H331.9c-2.9%200-5.5-2.6-5.5-5.5v-78.2z%20m373%20671.3h-373v-225h373.1v225z%20m148.7-69.6c0%2038.1-30.8%2069.2-68.8%2069.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2%200-69.3%2031.1-69.3%2069.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1%2030.8-69.2%2068.8-69.5v78.2c0%2047.1%2038.3%2085.4%2085.3%2085.4h378c38.2%200%2069.3-31.1%2069.3-69.4v-94.2c38%200.3%2068.8%2031.4%2068.8%2069.5v532.1z'%20p-id='16524'%3e%3c/path%3e%3c/svg%3e", A2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
381
+ __proto__: null,
382
+ default: O2
383
+ }, Symbol.toStringTag, { value: "Module" })), I2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407459145'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14370'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14371'%3e%3c/path%3e%3cpath%20d='M249.344%20347.648h49.152v499.2h-49.152zM584.704%20347.648h49.152v499.2h-49.152zM137.728%20165.888h746.496v181.76H137.728z'%20p-id='14372'%3e%3c/path%3e%3cpath%20d='M137.728%20481.792h746.496v49.152H137.728zM137.728%20664.576h746.496v49.152H137.728z'%20p-id='14373'%3e%3c/path%3e%3c/svg%3e", $2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
384
+ __proto__: null,
385
+ default: I2
386
+ }, Symbol.toStringTag, { value: "Module" })), V2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750813714349'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4271'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M376.6%20494.8c5.1%204.8%207.9%2011.7%207.6%2018.7%200.4%207.1-2.5%2014-7.6%2018.7-5.3%204.7-12.3%207.2-19.3%206.9h-69.6v235.1c0.2%207.4-2.9%2014.4-8.4%2019.1-5.5%205.4-12.9%208.3-20.5%208.1-7.6%200.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2%200.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7%202.5-13.7%207.6-18.3%205.3-4.8%2012.2-7.3%2019.3-7h198.4c6.3%200%2012.4%202.5%2017.2%206.9z%20m215.7%2070.1c5.2%205.1%208%2012.2%207.7%2019.6v189.9c0.3%207.2-2.5%2014.2-7.7%2019.1-4.8%205.3-11.7%208.3-18.9%208.1-7.1%200.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18%2019.5-42.9%2030.8-69.2%2031.4-19.7%200.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6%200-128%208.9-18.4%2022.9-33.8%2040.3-44.4%2016-10.5%2034.8-16.1%2053.9-15.9%2026.3-0.1%2051.8%209.8%2071.2%2027.7-0.2-7.3%202.6-14.4%207.7-19.6%2010.6-10.2%2027.2-10.2%2037.8%200l-0.5-0.8z%20m-61.2%20168.7c24.1-31.6%2024.1-75.6%200-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1%207.4-46.3%2021.6-12.1%2015-18.5%2034-18.1%2053.4-0.6%2019.5%205.7%2038.6%2017.7%2053.8%2011.6%2013.9%2028.8%2021.7%2046.7%2021.2%2018.1%200.4%2035.3-7.4%2047.1-21.2zM835.4%20573c17.1%2010.7%2031%2025.9%2040.3%2044%209.9%2019.8%2014.9%2041.8%2014.5%2064%200.4%2022.3-4.6%2044.4-14.5%2064.4-9%2018.3-23%2033.7-40.3%2044.4-16%2010.6-34.8%2016.1-53.9%2015.9-13.9%200.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2%207.2-2.5%2014.2-7.5%2019.4-5%205.1-11.9%208-19.1%207.9-7.1%200.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3%202.5-14.4%207.6-19.6%2010.6-10.3%2027.2-10.3%2037.8%200%205.1%205.2%207.9%2012.2%207.6%2019.6v93.3c8-9.8%2018-17.7%2029.4-23.2%2012.4-6.8%2026.2-10.3%2040.3-10.2%2019.7-0.2%2039%205.3%2055.6%2015.9z%20m-15.7%20163c12.2-15.1%2018.6-34.3%2018.1-53.8%200.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9%207.7-46.9%2021.1c-24.1%2031.6-24.1%2075.6%200%20107.2%2011.6%2014.1%2029%2022.1%2047.1%2021.6%2018.3-0.2%2035.4-9.1%2046.3-24v2.4zM708.1%20253.5c-15.5%200-28-12.5-28-28V113.4c-0.1-8%200-15.9%200-23.8V77.9c0-15.5%2012.5-28%2028-28H886c17%200%2032.9%206.6%2045%2018.6%2011.3%2011.3%2017.8%2026%2018.6%2041.8%200.1%200.7%200.1%201.4%200.1%202.1v113.2c0%2015.5-12.5%2028-28%2028H708.1z%20m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9%20254.6c-15.5%200-28-12.5-28-28V78.9c0-15.4%2012.5-27.9%2027.9-28l213.4-1.1h0.1c17%200%2032.9%206.6%2045%2018.6%2012%2012.1%2018.6%2028%2018.6%2045v113.2c0%2015.5-12.5%2028-28%2028h-249z%20m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5%200.9v91.9z'%20p-id='4272'%3e%3c/path%3e%3cpath%20d='M72.4%20974.2c-17.3%200-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2%2029-63.8%2064.6-63.8h169c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028.1%2018.9%2045.1V283c0%202%200.8%203.9%202.3%205.4%201.5%201.4%203.4%202.2%205.4%202.2h637.9c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028%2018.9%2045.1v556c0%2017.1-6.7%2033.1-18.9%2045.1s-28.4%2018.7-45.7%2018.7H72.4z%20m7.7-860.6c-4.3%200-7.7%203.4-7.7%207.6v788.7c0%202%200.8%204%202.3%205.4%201.4%201.4%203.4%202.2%205.4%202.2h871.5c2.1%200%204-0.8%205.4-2.2%201.5-1.4%202.3-3.3%202.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3%200-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z'%20p-id='4273'%3e%3c/path%3e%3c/svg%3e", z2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
387
+ __proto__: null,
388
+ default: V2
389
+ }, Symbol.toStringTag, { value: "Module" })), B2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750482237209'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2084'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M171.52%20924.16v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-322.56v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-394.24v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z'%20p-id='2085'%3e%3c/path%3e%3cpath%20d='M350.72%20350.72c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m143.36%20430.08c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m716.8-286.72h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z%20m284.672%20250.88h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z'%20p-id='2086'%3e%3c/path%3e%3c/svg%3e", R2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
390
+ __proto__: null,
391
+ default: B2
392
+ }, Symbol.toStringTag, { value: "Module" })), N2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750819285235'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5686'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M804.571429%20511.890286A219.428571%20219.428571%200%200%201%201024%20731.428571a219.428571%20219.428571%200%201%201-219.428571-219.501714z%20m131.291428%20139.885714l-210.176%20210.212571a155.026286%20155.026286%200%200%200%2078.884572%2021.394286c85.101714%200%20154.112-68.022857%20154.112-151.990857%200-29.184-8.338286-56.466286-22.784-79.616zM804.571429%20579.364571c-85.101714%200-154.112%2068.059429-154.112%20152.027429%200%2029.184%208.338286%2056.429714%2022.784%2079.579429l210.176-210.212572A155.026286%20155.026286%200%200%200%20804.571429%20579.364571zM804.498286%2073.142857c36.754286%200%2072.813714%2036.315429%2072.813714%2073.069714v315.757715a254.171429%20254.171429%200%200%200-72.667429-21.796572V146.212571H72.704l-0.036571%20487.716572%20248.978285-249.417143%20193.353143%20195.510857%2033.536-37.449143v19.2a254.646857%20254.646857%200%200%200-36.205714%20119.369143l-190.902857-193.097143-243.529143%20243.931429h437.028571c3.84%2025.782857%2011.556571%2050.285714%2022.491429%2072.96H72.96C36.534857%20804.937143%200%20768.475429%200%20731.940571V146.212571C0%20110.006857%2036.352%2073.142857%2072.96%2073.142857h731.538286zM581.851429%20256c40.155429%200%2072.704%2032.804571%2072.704%2073.216%200%2040.448-32.548571%2073.252571-72.704%2073.252571a72.96%2072.96%200%200%201-72.777143-73.252571c0-40.411429%2032.585143-73.216%2072.777143-73.216z'%20p-id='5687'%3e%3c/path%3e%3c/svg%3e", F2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
393
+ __proto__: null,
394
+ default: N2
395
+ }, Symbol.toStringTag, { value: "Module" })), L2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750387251918'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9358'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M764.9%2064H225.4l1.4%20224.2%2064-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4%20224.2H960V277.7L764.9%2064z%20m-27.6%2064.7L882.8%20288H737.3V128.7z'%20p-id='9359'%3e%3c/path%3e%3cpath%20d='M356.5%20224h255.9v64H356.5z'%20p-id='9360'%3e%3c/path%3e%3cpath%20d='M576.4%20416h255.9v64H576.4zM512.5%20576h319.8v64H512.5zM384.5%20736h447.8v64H384.5z'%20p-id='9361'%3e%3c/path%3e%3cpath%20d='M336.9%20349H198.6l98.9%2098.9H64v128.2h233.5L198.6%20675h138.3l162.9-163z'%20p-id='9362'%3e%3c/path%3e%3c/svg%3e", U2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
396
+ __proto__: null,
397
+ default: L2
398
+ }, Symbol.toStringTag, { value: "Module" })), H2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406004238'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9507'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M896%20128H128c-25.6%200-42.666667%2017.066667-42.666667%2042.666667v682.666666c0%2025.6%2017.066667%2042.666667%2042.666667%2042.666667h768c25.6%200%2042.666667-17.066667%2042.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667%20213.333333h298.666666v341.333334H170.666667V213.333333z%20m0%20597.333334v-170.666667h298.666666v170.666667H170.666667z%20m682.666666%200h-298.666666v-341.333334h298.666666v341.333334z%20m0-426.666667h-298.666666V213.333333h298.666666v170.666667z'%20p-id='9508'%3e%3c/path%3e%3c/svg%3e", W2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
399
+ __proto__: null,
400
+ default: H2
401
+ }, Symbol.toStringTag, { value: "Module" }));
402
+ function j2() {
403
+ const o = /* @__PURE__ */ Object.assign({ "/public/icons/svg/Avatar.svg": r2, "/public/icons/svg/Cancel.svg": s2, "/public/icons/svg/ChildAdd.svg": u2, "/public/icons/svg/ChildDelete.svg": h2, "/public/icons/svg/ChildFix.svg": p2, "/public/icons/svg/Delete.svg": v2, "/public/icons/svg/Edit.svg": y2, "/public/icons/svg/Fold.svg": w2, "/public/icons/svg/Form.svg": S2, "/public/icons/svg/Plus.svg": D2, "/public/icons/svg/Save.svg": C2, "/public/icons/svg/Signature.svg": k2, "/public/icons/svg/Step.svg": P2, "/public/icons/svg/Store.svg": A2, "/public/icons/svg/Table.svg": $2, "/public/icons/svg/Tabs.svg": z2, "/public/icons/svg/TimeLine.svg": R2, "/public/icons/svg/emptyImg.svg": F2, "/public/icons/svg/import.svg": U2, "/public/icons/svg/write.svg": W2 });
404
+ return Object.keys(o).map((t) => ({
405
+ value: t.split("/").pop().replace(".svg", ""),
406
+ path: o[t].default
407
+ }));
408
+ }
409
+ const G2 = { class: "icon-popover" }, Y2 = ["onClick"], q2 = /* @__PURE__ */ Qe({
410
+ __name: "index",
411
+ props: {
412
+ modelValue: String,
413
+ content: {
414
+ type: Array,
415
+ default: () => []
416
+ },
417
+ isEdit: {
418
+ type: Boolean,
419
+ default: !0
420
+ }
421
+ },
422
+ emits: ["update:modelValue"],
423
+ setup(o, { emit: t }) {
424
+ const e = o, n = t, a = L(e.modelValue), i = L(!1), r = L([]), l = () => {
425
+ i.value = !0;
426
+ }, c = () => {
427
+ i.value = !1;
428
+ }, s = (d) => {
429
+ a.value = d.value, n("update:modelValue", d.value);
430
+ };
431
+ return et(() => {
432
+ r.value = j2();
433
+ }), (d, h) => {
434
+ const v = j("el-input"), m = j("el-popover");
435
+ return b(), U(m, {
436
+ width: "400",
437
+ visible: i.value,
438
+ title: "图标",
439
+ placement: "bottom"
440
+ }, {
441
+ default: R(() => [
442
+ ae("div", G2, [
443
+ (b(!0), B(ce, null, le(r.value, (f, _) => (b(), B("div", {
444
+ key: _,
445
+ class: "icon-wrap",
446
+ onClick: (x) => s(f)
447
+ }, [
448
+ re(cn, {
449
+ name: f == null ? void 0 : f.value,
450
+ style: { width: "20px", height: "20px" }
451
+ }, null, 8, ["name"])
452
+ ], 8, Y2))), 128))
453
+ ])
454
+ ]),
455
+ reference: R(() => [
456
+ re(v, {
457
+ modelValue: a.value,
458
+ "onUpdate:modelValue": h[0] || (h[0] = (f) => a.value = f),
459
+ placeholder: "请输入",
460
+ disabled: !(e != null && e.isEdit),
461
+ clearable: "",
462
+ onFocus: l,
463
+ onBlur: c
464
+ }, {
465
+ prepend: R(() => [
466
+ re(cn, {
467
+ name: a.value,
468
+ style: { width: "20px", height: "20px" }
469
+ }, null, 8, ["name"])
470
+ ]),
471
+ _: 1
472
+ }, 8, ["modelValue", "disabled"])
473
+ ]),
474
+ _: 1
475
+ }, 8, ["visible"]);
476
+ };
477
+ }
478
+ }), X2 = /* @__PURE__ */ Oe(q2, [["__scopeId", "data-v-d9981dd9"]]), K2 = {
479
+ __name: "index",
480
+ props: {
481
+ value: String,
482
+ content: {
483
+ type: Array,
484
+ default: () => []
485
+ },
486
+ isEdit: {
487
+ type: Boolean,
488
+ default: !0
489
+ }
490
+ },
491
+ setup(o) {
492
+ const t = o, e = L(t.value);
493
+ return (n, a) => {
494
+ const i = j("el-input");
495
+ return b(), U(i, {
496
+ modelValue: e.value,
497
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r),
498
+ disabled: !(t != null && t.isEdit),
499
+ type: "password",
500
+ "show-password": "",
501
+ clearable: ""
502
+ }, null, 8, ["modelValue", "disabled"]);
503
+ };
504
+ }
505
+ }, J2 = {
506
+ __name: "index",
507
+ props: {
508
+ value: String,
509
+ content: {
510
+ type: Array,
511
+ default: () => []
512
+ },
513
+ isEdit: {
514
+ type: Boolean,
515
+ default: !0
516
+ }
517
+ },
518
+ setup(o) {
519
+ const e = L(o.value);
520
+ return (n, a) => {
521
+ const i = j("el-color-picker");
522
+ return b(), U(i, {
523
+ modelValue: e.value,
524
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r),
525
+ "show-alpha": ""
526
+ }, null, 8, ["modelValue"]);
527
+ };
528
+ }
529
+ }, Z2 = {
530
+ __name: "index",
531
+ props: {
532
+ value: String,
533
+ content: {
534
+ type: Array,
535
+ default: () => []
536
+ },
537
+ isEdit: {
538
+ type: Boolean,
539
+ default: !0
540
+ }
541
+ },
542
+ setup(o) {
543
+ const e = L(o.value);
544
+ return (n, a) => {
545
+ const i = j("el-input");
546
+ return b(), U(i, {
547
+ modelValue: e.value,
548
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r),
549
+ style: { height: "100%" },
550
+ type: "number"
551
+ }, null, 8, ["modelValue"]);
552
+ };
553
+ }
554
+ }, Q2 = {
555
+ __name: "index",
556
+ props: {
557
+ value: String,
558
+ formRules: {
559
+ type: Object,
560
+ default: () => {
561
+ }
562
+ },
563
+ content: {
564
+ type: Array,
565
+ default: () => []
566
+ },
567
+ isEdit: {
568
+ type: Boolean,
569
+ default: !0
570
+ }
571
+ },
572
+ emits: ["clickTrigger", "changeTrigger"],
573
+ setup(o, { emit: t }) {
574
+ const e = o, n = t, a = (r) => {
575
+ n("clickTrigger", r);
576
+ }, i = (r) => {
577
+ n("changeTrigger", r);
578
+ };
579
+ return (r, l) => {
580
+ var c, s, d, h, v, m, f;
581
+ return b(), U(Na, {
582
+ rowContents: ((c = e == null ? void 0 : e.content) == null ? void 0 : c.rowContents) ?? [],
583
+ formRules: (s = e == null ? void 0 : e.content) == null ? void 0 : s.formRules,
584
+ buttonValue: ((d = e == null ? void 0 : e.content) == null ? void 0 : d.buttonValue) ?? [],
585
+ isEnableWrap: (h = e == null ? void 0 : e.content) == null ? void 0 : h.isEnableWrap,
586
+ isRowFlex: (v = e == null ? void 0 : e.content) == null ? void 0 : v.isRowFlex,
587
+ isButtonRow: (m = e == null ? void 0 : e.content) == null ? void 0 : m.isButtonRow,
588
+ rowValues: ((f = e == null ? void 0 : e.content) == null ? void 0 : f.rowValues) ?? [],
589
+ onOnButtonClick: a,
590
+ onChange: i
591
+ }, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isRowFlex", "isButtonRow", "rowValues"]);
592
+ };
593
+ }
594
+ }, eo = {
595
+ __name: "index",
596
+ props: {
597
+ value: String,
598
+ content: {
599
+ type: Array,
600
+ default: () => []
601
+ },
602
+ isEdit: {
603
+ type: Boolean,
604
+ default: !0
605
+ }
606
+ },
607
+ setup(o) {
608
+ const t = o, e = L(t.value);
609
+ return (n, a) => {
610
+ const i = j("el-radio"), r = j("el-radio-group");
611
+ return b(), U(r, {
612
+ modelValue: e.value,
613
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => e.value = l),
614
+ style: { height: "100%" }
615
+ }, {
616
+ default: R(() => [
617
+ (b(!0), B(ce, null, le(t.content, (l, c) => (b(), U(i, {
618
+ key: c,
619
+ label: l.value
620
+ }, {
621
+ default: R(() => [
622
+ Ue(Se(l == null ? void 0 : l.label), 1)
623
+ ]),
624
+ _: 2
625
+ }, 1032, ["label"]))), 128))
626
+ ]),
627
+ _: 1
628
+ }, 8, ["modelValue"]);
629
+ };
630
+ }
631
+ }, to = ["onDblclick"], no = {
632
+ key: 1,
633
+ class: "tabs-label"
634
+ }, oo = {
635
+ __name: "index",
636
+ props: {
637
+ tabsContents: {
638
+ type: Array,
639
+ default: () => []
640
+ },
641
+ tabPosition: {
642
+ type: String,
643
+ default: "top"
644
+ }
645
+ },
646
+ emits: ["dblClick", "clickTrigger", "changeTrigger"],
647
+ setup(o, { emit: t }) {
648
+ const e = o, n = t, a = L([]), i = L(""), r = (d) => an(d), l = (d) => {
649
+ n("dblClick", d);
650
+ }, c = (d) => {
651
+ n("clickTrigger", d);
652
+ }, s = (d) => {
653
+ n("changeTrigger", d);
654
+ };
655
+ return De(
656
+ () => e.tabsContents,
657
+ () => {
658
+ var d;
659
+ a.value = me(e.tabsContents), i.value = (d = a.value[0]) == null ? void 0 : d.value;
660
+ },
661
+ { deep: !0, immediate: !0 }
662
+ ), (d, h) => {
663
+ const v = j("el-tab-pane"), m = j("el-tabs");
664
+ return b(), U(m, {
665
+ type: "card",
666
+ modelValue: i.value,
667
+ "onUpdate:modelValue": h[0] || (h[0] = (f) => i.value = f),
668
+ "tab-position": e == null ? void 0 : e.tabPosition
669
+ }, {
670
+ default: R(() => [
671
+ (b(!0), B(ce, null, le(a.value, (f, _) => (b(), U(v, {
672
+ key: _,
673
+ name: f == null ? void 0 : f.value
674
+ }, {
675
+ label: R(() => {
676
+ var x;
677
+ return [
678
+ f != null && f.label ? (b(), B("div", {
679
+ key: 0,
680
+ onDblclick: (T) => l(f)
681
+ }, Se(f == null ? void 0 : f.label), 41, to)) : ee("", !0),
682
+ f != null && f.contents && ((x = f == null ? void 0 : f.contents) == null ? void 0 : x.length) > 0 ? (b(), B("div", no, [
683
+ (b(!0), B(ce, null, le(f == null ? void 0 : f.contents, (T, N) => (b(), B("div", {
684
+ key: N,
685
+ class: "tabs-children"
686
+ }, [
687
+ T != null && T.value || (T == null ? void 0 : T.value) === "" ? (b(), U(ht(r(T == null ? void 0 : T.type)), {
688
+ key: 0,
689
+ modelValue: T.value,
690
+ "onUpdate:modelValue": (F) => T.value = F,
691
+ content: (T == null ? void 0 : T.contents) ?? []
692
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) : ee("", !0)
693
+ ]))), 128))
694
+ ])) : ee("", !0),
695
+ ue(d.$slots, `${(f == null ? void 0 : f.value) ?? ""}_header`, {}, void 0, !0)
696
+ ];
697
+ }),
698
+ default: R(() => [
699
+ (b(!0), B(ce, null, le(f == null ? void 0 : f.children, (x, T) => (b(), B("div", {
700
+ key: T,
701
+ class: "tabs-contents"
702
+ }, [
703
+ ue(d.$slots, `${(x == null ? void 0 : x.value) ?? ""}_operateButtons`, {}, void 0, !0),
704
+ x != null && x.value || (x == null ? void 0 : x.value) === "" ? (b(), U(ht(r(x == null ? void 0 : x.type)), {
705
+ key: 0,
706
+ modelValue: x.value,
707
+ "onUpdate:modelValue": (N) => x.value = N,
708
+ onClickTrigger: c,
709
+ onChangeTrigger: s,
710
+ content: x == null ? void 0 : x.content
711
+ }, Je({ _: 2 }, [
712
+ name ? {
713
+ name,
714
+ fn: R((N) => [
715
+ ue(d.$slots, name, Jt({ ref_for: !0 }, N || {}), void 0, !0)
716
+ ]),
717
+ key: "0"
718
+ } : void 0
719
+ ]), 1064, ["modelValue", "onUpdate:modelValue", "content"])) : ee("", !0)
720
+ ]))), 128))
721
+ ]),
722
+ _: 2
723
+ }, 1032, ["name"]))), 128))
724
+ ]),
725
+ _: 3
726
+ }, 8, ["modelValue", "tab-position"]);
727
+ };
728
+ }
729
+ }, Tn = /* @__PURE__ */ Oe(oo, [["__scopeId", "data-v-0f027c8c"]]), qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
730
+ __proto__: null,
731
+ default: Tn
732
+ }, Symbol.toStringTag, { value: "Module" })), ao = {
733
+ __name: "index",
734
+ props: {
735
+ value: String,
736
+ content: {
737
+ type: Array,
738
+ default: () => []
739
+ },
740
+ isEdit: {
741
+ type: Boolean,
742
+ default: !0
743
+ }
744
+ },
745
+ setup(o) {
746
+ const t = o;
747
+ return et(() => {
748
+ document.querySelectorAll(".el-tab-pane").forEach((n) => {
749
+ n.style.display = "block";
750
+ });
751
+ }), (e, n) => {
752
+ var a;
753
+ return b(), U(Tn, {
754
+ tabsContents: ((a = t == null ? void 0 : t.content) == null ? void 0 : a.tabsContents) ?? []
755
+ }, Je({ _: 2 }, [
756
+ le(e.$slots, (i, r) => ({
757
+ name: r,
758
+ fn: R((l) => [
759
+ ue(e.$slots, r, Gn(Yn(l || {})))
760
+ ])
761
+ }))
762
+ ]), 1032, ["tabsContents"]);
763
+ };
764
+ }
765
+ }, io = /* @__PURE__ */ Qe({
766
+ __name: "index",
767
+ props: {
768
+ modelValue: String,
769
+ content: {
770
+ type: Array,
771
+ default: () => []
772
+ },
773
+ isEdit: {
774
+ type: Boolean,
775
+ default: !0
776
+ }
777
+ },
778
+ emits: ["clickTrigger"],
779
+ setup(o, { emit: t }) {
780
+ const n = L(o.modelValue), a = t, i = (r) => {
781
+ a("clickTrigger", r);
782
+ };
783
+ return (r, l) => {
784
+ const c = j("el-button");
785
+ return b(), U(c, {
786
+ type: "primary",
787
+ onClick: l[0] || (l[0] = (s) => i(n.value))
788
+ }, {
789
+ default: R(() => [
790
+ Ue(Se(n.value), 1)
791
+ ]),
792
+ _: 1
793
+ });
794
+ };
795
+ }
796
+ });
797
+ /**!
798
+ * Sortable 1.15.6
799
+ * @author RubaXa <trash@rubaxa.org>
800
+ * @author owenm <owen23355@gmail.com>
801
+ * @license MIT
802
+ */
803
+ function fn(o, t) {
804
+ var e = Object.keys(o);
805
+ if (Object.getOwnPropertySymbols) {
806
+ var n = Object.getOwnPropertySymbols(o);
807
+ t && (n = n.filter(function(a) {
808
+ return Object.getOwnPropertyDescriptor(o, a).enumerable;
809
+ })), e.push.apply(e, n);
810
+ }
811
+ return e;
812
+ }
813
+ function ke(o) {
814
+ for (var t = 1; t < arguments.length; t++) {
815
+ var e = arguments[t] != null ? arguments[t] : {};
816
+ t % 2 ? fn(Object(e), !0).forEach(function(n) {
817
+ ro(o, n, e[n]);
818
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(e)) : fn(Object(e)).forEach(function(n) {
819
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(e, n));
820
+ });
821
+ }
822
+ return o;
823
+ }
824
+ function St(o) {
825
+ "@babel/helpers - typeof";
826
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? St = function(t) {
827
+ return typeof t;
828
+ } : St = function(t) {
829
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
830
+ }, St(o);
831
+ }
832
+ function ro(o, t, e) {
833
+ return t in o ? Object.defineProperty(o, t, {
834
+ value: e,
835
+ enumerable: !0,
836
+ configurable: !0,
837
+ writable: !0
838
+ }) : o[t] = e, o;
839
+ }
840
+ function Pe() {
841
+ return Pe = Object.assign || function(o) {
842
+ for (var t = 1; t < arguments.length; t++) {
843
+ var e = arguments[t];
844
+ for (var n in e)
845
+ Object.prototype.hasOwnProperty.call(e, n) && (o[n] = e[n]);
846
+ }
847
+ return o;
848
+ }, Pe.apply(this, arguments);
849
+ }
850
+ function lo(o, t) {
851
+ if (o == null) return {};
852
+ var e = {}, n = Object.keys(o), a, i;
853
+ for (i = 0; i < n.length; i++)
854
+ a = n[i], !(t.indexOf(a) >= 0) && (e[a] = o[a]);
855
+ return e;
856
+ }
857
+ function so(o, t) {
858
+ if (o == null) return {};
859
+ var e = lo(o, t), n, a;
860
+ if (Object.getOwnPropertySymbols) {
861
+ var i = Object.getOwnPropertySymbols(o);
862
+ for (a = 0; a < i.length; a++)
863
+ n = i[a], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(o, n) && (e[n] = o[n]);
864
+ }
865
+ return e;
866
+ }
867
+ var co = "1.15.6";
868
+ function Me(o) {
869
+ if (typeof window < "u" && window.navigator)
870
+ return !!/* @__PURE__ */ navigator.userAgent.match(o);
871
+ }
872
+ var Ae = Me(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ft = Me(/Edge/i), pn = Me(/firefox/i), rt = Me(/safari/i) && !Me(/chrome/i) && !Me(/android/i), Qt = Me(/iP(ad|od|hone)/i), kn = Me(/chrome/i) && Me(/android/i), Mn = {
873
+ capture: !1,
874
+ passive: !1
875
+ };
876
+ function W(o, t, e) {
877
+ o.addEventListener(t, e, !Ae && Mn);
878
+ }
879
+ function H(o, t, e) {
880
+ o.removeEventListener(t, e, !Ae && Mn);
881
+ }
882
+ function Tt(o, t) {
883
+ if (t) {
884
+ if (t[0] === ">" && (t = t.substring(1)), o)
885
+ try {
886
+ if (o.matches)
887
+ return o.matches(t);
888
+ if (o.msMatchesSelector)
889
+ return o.msMatchesSelector(t);
890
+ if (o.webkitMatchesSelector)
891
+ return o.webkitMatchesSelector(t);
892
+ } catch {
893
+ return !1;
894
+ }
895
+ return !1;
896
+ }
897
+ }
898
+ function Pn(o) {
899
+ return o.host && o !== document && o.host.nodeType ? o.host : o.parentNode;
900
+ }
901
+ function Ce(o, t, e, n) {
902
+ if (o) {
903
+ e = e || document;
904
+ do {
905
+ if (t != null && (t[0] === ">" ? o.parentNode === e && Tt(o, t) : Tt(o, t)) || n && o === e)
906
+ return o;
907
+ if (o === e) break;
908
+ } while (o = Pn(o));
909
+ }
910
+ return null;
911
+ }
912
+ var gn = /\s+/g;
913
+ function be(o, t, e) {
914
+ if (o && t)
915
+ if (o.classList)
916
+ o.classList[e ? "add" : "remove"](t);
917
+ else {
918
+ var n = (" " + o.className + " ").replace(gn, " ").replace(" " + t + " ", " ");
919
+ o.className = (n + (e ? " " + t : "")).replace(gn, " ");
920
+ }
921
+ }
922
+ function A(o, t, e) {
923
+ var n = o && o.style;
924
+ if (n) {
925
+ if (e === void 0)
926
+ return document.defaultView && document.defaultView.getComputedStyle ? e = document.defaultView.getComputedStyle(o, "") : o.currentStyle && (e = o.currentStyle), t === void 0 ? e : e[t];
927
+ !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = e + (typeof e == "string" ? "" : "px");
928
+ }
929
+ }
930
+ function Xe(o, t) {
931
+ var e = "";
932
+ if (typeof o == "string")
933
+ e = o;
934
+ else
935
+ do {
936
+ var n = A(o, "transform");
937
+ n && n !== "none" && (e = n + " " + e);
938
+ } while (!t && (o = o.parentNode));
939
+ var a = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
940
+ return a && new a(e);
941
+ }
942
+ function On(o, t, e) {
943
+ if (o) {
944
+ var n = o.getElementsByTagName(t), a = 0, i = n.length;
945
+ if (e)
946
+ for (; a < i; a++)
947
+ e(n[a], a);
948
+ return n;
949
+ }
950
+ return [];
951
+ }
952
+ function Te() {
953
+ var o = document.scrollingElement;
954
+ return o || document.documentElement;
955
+ }
956
+ function ie(o, t, e, n, a) {
957
+ if (!(!o.getBoundingClientRect && o !== window)) {
958
+ var i, r, l, c, s, d, h;
959
+ if (o !== window && o.parentNode && o !== Te() ? (i = o.getBoundingClientRect(), r = i.top, l = i.left, c = i.bottom, s = i.right, d = i.height, h = i.width) : (r = 0, l = 0, c = window.innerHeight, s = window.innerWidth, d = window.innerHeight, h = window.innerWidth), (t || e) && o !== window && (a = a || o.parentNode, !Ae))
960
+ do
961
+ if (a && a.getBoundingClientRect && (A(a, "transform") !== "none" || e && A(a, "position") !== "static")) {
962
+ var v = a.getBoundingClientRect();
963
+ r -= v.top + parseInt(A(a, "border-top-width")), l -= v.left + parseInt(A(a, "border-left-width")), c = r + i.height, s = l + i.width;
964
+ break;
965
+ }
966
+ while (a = a.parentNode);
967
+ if (n && o !== window) {
968
+ var m = Xe(a || o), f = m && m.a, _ = m && m.d;
969
+ m && (r /= _, l /= f, h /= f, d /= _, c = r + d, s = l + h);
970
+ }
971
+ return {
972
+ top: r,
973
+ left: l,
974
+ bottom: c,
975
+ right: s,
976
+ width: h,
977
+ height: d
978
+ };
979
+ }
980
+ }
981
+ function vn(o, t, e) {
982
+ for (var n = ze(o, !0), a = ie(o)[t]; n; ) {
983
+ var i = ie(n)[e], r = void 0;
984
+ if (r = a >= i, !r) return n;
985
+ if (n === Te()) break;
986
+ n = ze(n, !1);
987
+ }
988
+ return !1;
989
+ }
990
+ function Ze(o, t, e, n) {
991
+ for (var a = 0, i = 0, r = o.children; i < r.length; ) {
992
+ if (r[i].style.display !== "none" && r[i] !== O.ghost && (n || r[i] !== O.dragged) && Ce(r[i], e.draggable, o, !1)) {
993
+ if (a === t)
994
+ return r[i];
995
+ a++;
996
+ }
997
+ i++;
998
+ }
999
+ return null;
1000
+ }
1001
+ function en(o, t) {
1002
+ for (var e = o.lastElementChild; e && (e === O.ghost || A(e, "display") === "none" || t && !Tt(e, t)); )
1003
+ e = e.previousElementSibling;
1004
+ return e || null;
1005
+ }
1006
+ function xe(o, t) {
1007
+ var e = 0;
1008
+ if (!o || !o.parentNode)
1009
+ return -1;
1010
+ for (; o = o.previousElementSibling; )
1011
+ o.nodeName.toUpperCase() !== "TEMPLATE" && o !== O.clone && (!t || Tt(o, t)) && e++;
1012
+ return e;
1013
+ }
1014
+ function mn(o) {
1015
+ var t = 0, e = 0, n = Te();
1016
+ if (o)
1017
+ do {
1018
+ var a = Xe(o), i = a.a, r = a.d;
1019
+ t += o.scrollLeft * i, e += o.scrollTop * r;
1020
+ } while (o !== n && (o = o.parentNode));
1021
+ return [t, e];
1022
+ }
1023
+ function uo(o, t) {
1024
+ for (var e in o)
1025
+ if (o.hasOwnProperty(e)) {
1026
+ for (var n in t)
1027
+ if (t.hasOwnProperty(n) && t[n] === o[e][n]) return Number(e);
1028
+ }
1029
+ return -1;
1030
+ }
1031
+ function ze(o, t) {
1032
+ if (!o || !o.getBoundingClientRect) return Te();
1033
+ var e = o, n = !1;
1034
+ do
1035
+ if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
1036
+ var a = A(e);
1037
+ if (e.clientWidth < e.scrollWidth && (a.overflowX == "auto" || a.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (a.overflowY == "auto" || a.overflowY == "scroll")) {
1038
+ if (!e.getBoundingClientRect || e === document.body) return Te();
1039
+ if (n || t) return e;
1040
+ n = !0;
1041
+ }
1042
+ }
1043
+ while (e = e.parentNode);
1044
+ return Te();
1045
+ }
1046
+ function ho(o, t) {
1047
+ if (o && t)
1048
+ for (var e in t)
1049
+ t.hasOwnProperty(e) && (o[e] = t[e]);
1050
+ return o;
1051
+ }
1052
+ function zt(o, t) {
1053
+ return Math.round(o.top) === Math.round(t.top) && Math.round(o.left) === Math.round(t.left) && Math.round(o.height) === Math.round(t.height) && Math.round(o.width) === Math.round(t.width);
1054
+ }
1055
+ var lt;
1056
+ function An(o, t) {
1057
+ return function() {
1058
+ if (!lt) {
1059
+ var e = arguments, n = this;
1060
+ e.length === 1 ? o.call(n, e[0]) : o.apply(n, e), lt = setTimeout(function() {
1061
+ lt = void 0;
1062
+ }, t);
1063
+ }
1064
+ };
1065
+ }
1066
+ function fo() {
1067
+ clearTimeout(lt), lt = void 0;
1068
+ }
1069
+ function In(o, t, e) {
1070
+ o.scrollLeft += t, o.scrollTop += e;
1071
+ }
1072
+ function $n(o) {
1073
+ var t = window.Polymer, e = window.jQuery || window.Zepto;
1074
+ return t && t.dom ? t.dom(o).cloneNode(!0) : e ? e(o).clone(!0)[0] : o.cloneNode(!0);
1075
+ }
1076
+ function Vn(o, t, e) {
1077
+ var n = {};
1078
+ return Array.from(o.children).forEach(function(a) {
1079
+ var i, r, l, c;
1080
+ if (!(!Ce(a, t.draggable, o, !1) || a.animated || a === e)) {
1081
+ var s = ie(a);
1082
+ n.left = Math.min((i = n.left) !== null && i !== void 0 ? i : 1 / 0, s.left), n.top = Math.min((r = n.top) !== null && r !== void 0 ? r : 1 / 0, s.top), n.right = Math.max((l = n.right) !== null && l !== void 0 ? l : -1 / 0, s.right), n.bottom = Math.max((c = n.bottom) !== null && c !== void 0 ? c : -1 / 0, s.bottom);
1083
+ }
1084
+ }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
1085
+ }
1086
+ var ye = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
1087
+ function po() {
1088
+ var o = [], t;
1089
+ return {
1090
+ captureAnimationState: function() {
1091
+ if (o = [], !!this.options.animation) {
1092
+ var n = [].slice.call(this.el.children);
1093
+ n.forEach(function(a) {
1094
+ if (!(A(a, "display") === "none" || a === O.ghost)) {
1095
+ o.push({
1096
+ target: a,
1097
+ rect: ie(a)
1098
+ });
1099
+ var i = ke({}, o[o.length - 1].rect);
1100
+ if (a.thisAnimationDuration) {
1101
+ var r = Xe(a, !0);
1102
+ r && (i.top -= r.f, i.left -= r.e);
1103
+ }
1104
+ a.fromRect = i;
1105
+ }
1106
+ });
1107
+ }
1108
+ },
1109
+ addAnimationState: function(n) {
1110
+ o.push(n);
1111
+ },
1112
+ removeAnimationState: function(n) {
1113
+ o.splice(uo(o, {
1114
+ target: n
1115
+ }), 1);
1116
+ },
1117
+ animateAll: function(n) {
1118
+ var a = this;
1119
+ if (!this.options.animation) {
1120
+ clearTimeout(t), typeof n == "function" && n();
1121
+ return;
1122
+ }
1123
+ var i = !1, r = 0;
1124
+ o.forEach(function(l) {
1125
+ var c = 0, s = l.target, d = s.fromRect, h = ie(s), v = s.prevFromRect, m = s.prevToRect, f = l.rect, _ = Xe(s, !0);
1126
+ _ && (h.top -= _.f, h.left -= _.e), s.toRect = h, s.thisAnimationDuration && zt(v, h) && !zt(d, h) && // Make sure animatingRect is on line between toRect & fromRect
1127
+ (f.top - h.top) / (f.left - h.left) === (d.top - h.top) / (d.left - h.left) && (c = vo(f, v, m, a.options)), zt(h, d) || (s.prevFromRect = d, s.prevToRect = h, c || (c = a.options.animation), a.animate(s, f, h, c)), c && (i = !0, r = Math.max(r, c), clearTimeout(s.animationResetTimer), s.animationResetTimer = setTimeout(function() {
1128
+ s.animationTime = 0, s.prevFromRect = null, s.fromRect = null, s.prevToRect = null, s.thisAnimationDuration = null;
1129
+ }, c), s.thisAnimationDuration = c);
1130
+ }), clearTimeout(t), i ? t = setTimeout(function() {
1131
+ typeof n == "function" && n();
1132
+ }, r) : typeof n == "function" && n(), o = [];
1133
+ },
1134
+ animate: function(n, a, i, r) {
1135
+ if (r) {
1136
+ A(n, "transition", ""), A(n, "transform", "");
1137
+ var l = Xe(this.el), c = l && l.a, s = l && l.d, d = (a.left - i.left) / (c || 1), h = (a.top - i.top) / (s || 1);
1138
+ n.animatingX = !!d, n.animatingY = !!h, A(n, "transform", "translate3d(" + d + "px," + h + "px,0)"), this.forRepaintDummy = go(n), A(n, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), A(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
1139
+ A(n, "transition", ""), A(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
1140
+ }, r);
1141
+ }
1142
+ }
1143
+ };
1144
+ }
1145
+ function go(o) {
1146
+ return o.offsetWidth;
1147
+ }
1148
+ function vo(o, t, e, n) {
1149
+ return Math.sqrt(Math.pow(t.top - o.top, 2) + Math.pow(t.left - o.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * n.animation;
1150
+ }
1151
+ var We = [], Bt = {
1152
+ initializeByDefault: !0
1153
+ }, pt = {
1154
+ mount: function(t) {
1155
+ for (var e in Bt)
1156
+ Bt.hasOwnProperty(e) && !(e in t) && (t[e] = Bt[e]);
1157
+ We.forEach(function(n) {
1158
+ if (n.pluginName === t.pluginName)
1159
+ throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
1160
+ }), We.push(t);
1161
+ },
1162
+ pluginEvent: function(t, e, n) {
1163
+ var a = this;
1164
+ this.eventCanceled = !1, n.cancel = function() {
1165
+ a.eventCanceled = !0;
1166
+ };
1167
+ var i = t + "Global";
1168
+ We.forEach(function(r) {
1169
+ e[r.pluginName] && (e[r.pluginName][i] && e[r.pluginName][i](ke({
1170
+ sortable: e
1171
+ }, n)), e.options[r.pluginName] && e[r.pluginName][t] && e[r.pluginName][t](ke({
1172
+ sortable: e
1173
+ }, n)));
1174
+ });
1175
+ },
1176
+ initializePlugins: function(t, e, n, a) {
1177
+ We.forEach(function(l) {
1178
+ var c = l.pluginName;
1179
+ if (!(!t.options[c] && !l.initializeByDefault)) {
1180
+ var s = new l(t, e, t.options);
1181
+ s.sortable = t, s.options = t.options, t[c] = s, Pe(n, s.defaults);
1182
+ }
1183
+ });
1184
+ for (var i in t.options)
1185
+ if (t.options.hasOwnProperty(i)) {
1186
+ var r = this.modifyOption(t, i, t.options[i]);
1187
+ typeof r < "u" && (t.options[i] = r);
1188
+ }
1189
+ },
1190
+ getEventProperties: function(t, e) {
1191
+ var n = {};
1192
+ return We.forEach(function(a) {
1193
+ typeof a.eventProperties == "function" && Pe(n, a.eventProperties.call(e[a.pluginName], t));
1194
+ }), n;
1195
+ },
1196
+ modifyOption: function(t, e, n) {
1197
+ var a;
1198
+ return We.forEach(function(i) {
1199
+ t[i.pluginName] && i.optionListeners && typeof i.optionListeners[e] == "function" && (a = i.optionListeners[e].call(t[i.pluginName], n));
1200
+ }), a;
1201
+ }
1202
+ };
1203
+ function mo(o) {
1204
+ var t = o.sortable, e = o.rootEl, n = o.name, a = o.targetEl, i = o.cloneEl, r = o.toEl, l = o.fromEl, c = o.oldIndex, s = o.newIndex, d = o.oldDraggableIndex, h = o.newDraggableIndex, v = o.originalEvent, m = o.putSortable, f = o.extraEventProperties;
1205
+ if (t = t || e && e[ye], !!t) {
1206
+ var _, x = t.options, T = "on" + n.charAt(0).toUpperCase() + n.substr(1);
1207
+ window.CustomEvent && !Ae && !ft ? _ = new CustomEvent(n, {
1208
+ bubbles: !0,
1209
+ cancelable: !0
1210
+ }) : (_ = document.createEvent("Event"), _.initEvent(n, !0, !0)), _.to = r || e, _.from = l || e, _.item = a || e, _.clone = i, _.oldIndex = c, _.newIndex = s, _.oldDraggableIndex = d, _.newDraggableIndex = h, _.originalEvent = v, _.pullMode = m ? m.lastPutMode : void 0;
1211
+ var N = ke(ke({}, f), pt.getEventProperties(n, t));
1212
+ for (var F in N)
1213
+ _[F] = N[F];
1214
+ e && e.dispatchEvent(_), x[T] && x[T].call(t, _);
1215
+ }
1216
+ }
1217
+ var yo = ["evt"], ge = function(t, e) {
1218
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = n.evt, i = so(n, yo);
1219
+ pt.pluginEvent.bind(O)(t, e, ke({
1220
+ dragEl: y,
1221
+ parentEl: Q,
1222
+ ghostEl: V,
1223
+ rootEl: K,
1224
+ nextEl: Le,
1225
+ lastDownEl: xt,
1226
+ cloneEl: J,
1227
+ cloneHidden: Ve,
1228
+ dragStarted: ot,
1229
+ putSortable: se,
1230
+ activeSortable: O.active,
1231
+ originalEvent: a,
1232
+ oldIndex: Ye,
1233
+ oldDraggableIndex: st,
1234
+ newIndex: _e,
1235
+ newDraggableIndex: $e,
1236
+ hideGhostForTarget: Nn,
1237
+ unhideGhostForTarget: Fn,
1238
+ cloneNowHidden: function() {
1239
+ Ve = !0;
1240
+ },
1241
+ cloneNowShown: function() {
1242
+ Ve = !1;
1243
+ },
1244
+ dispatchSortableEvent: function(l) {
1245
+ fe({
1246
+ sortable: e,
1247
+ name: l,
1248
+ originalEvent: a
1249
+ });
1250
+ }
1251
+ }, i));
1252
+ };
1253
+ function fe(o) {
1254
+ mo(ke({
1255
+ putSortable: se,
1256
+ cloneEl: J,
1257
+ targetEl: y,
1258
+ rootEl: K,
1259
+ oldIndex: Ye,
1260
+ oldDraggableIndex: st,
1261
+ newIndex: _e,
1262
+ newDraggableIndex: $e
1263
+ }, o));
1264
+ }
1265
+ var y, Q, V, K, Le, xt, J, Ve, Ye, _e, st, $e, mt, se, Ge = !1, kt = !1, Mt = [], Ne, Ee, Rt, Nt, yn, bn, ot, je, ct, ut = !1, yt = !1, Dt, de, Ft = [], Yt = !1, Pt = [], Vt = typeof document < "u", bt = Qt, wn = ft || Ae ? "cssFloat" : "float", bo = Vt && !kn && !Qt && "draggable" in document.createElement("div"), zn = function() {
1266
+ if (Vt) {
1267
+ if (Ae)
1268
+ return !1;
1269
+ var o = document.createElement("x");
1270
+ return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
1271
+ }
1272
+ }(), Bn = function(t, e) {
1273
+ var n = A(t), a = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ze(t, 0, e), r = Ze(t, 1, e), l = i && A(i), c = r && A(r), s = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + ie(i).width, d = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + ie(r).width;
1274
+ if (n.display === "flex")
1275
+ return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
1276
+ if (n.display === "grid")
1277
+ return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
1278
+ if (i && l.float && l.float !== "none") {
1279
+ var h = l.float === "left" ? "left" : "right";
1280
+ return r && (c.clear === "both" || c.clear === h) ? "vertical" : "horizontal";
1281
+ }
1282
+ return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || s >= a && n[wn] === "none" || r && n[wn] === "none" && s + d > a) ? "vertical" : "horizontal";
1283
+ }, wo = function(t, e, n) {
1284
+ var a = n ? t.left : t.top, i = n ? t.right : t.bottom, r = n ? t.width : t.height, l = n ? e.left : e.top, c = n ? e.right : e.bottom, s = n ? e.width : e.height;
1285
+ return a === l || i === c || a + r / 2 === l + s / 2;
1286
+ }, _o = function(t, e) {
1287
+ var n;
1288
+ return Mt.some(function(a) {
1289
+ var i = a[ye].options.emptyInsertThreshold;
1290
+ if (!(!i || en(a))) {
1291
+ var r = ie(a), l = t >= r.left - i && t <= r.right + i, c = e >= r.top - i && e <= r.bottom + i;
1292
+ if (l && c)
1293
+ return n = a;
1294
+ }
1295
+ }), n;
1296
+ }, Rn = function(t) {
1297
+ function e(i, r) {
1298
+ return function(l, c, s, d) {
1299
+ var h = l.options.group.name && c.options.group.name && l.options.group.name === c.options.group.name;
1300
+ if (i == null && (r || h))
1301
+ return !0;
1302
+ if (i == null || i === !1)
1303
+ return !1;
1304
+ if (r && i === "clone")
1305
+ return i;
1306
+ if (typeof i == "function")
1307
+ return e(i(l, c, s, d), r)(l, c, s, d);
1308
+ var v = (r ? l : c).options.group.name;
1309
+ return i === !0 || typeof i == "string" && i === v || i.join && i.indexOf(v) > -1;
1310
+ };
1311
+ }
1312
+ var n = {}, a = t.group;
1313
+ (!a || St(a) != "object") && (a = {
1314
+ name: a
1315
+ }), n.name = a.name, n.checkPull = e(a.pull, !0), n.checkPut = e(a.put), n.revertClone = a.revertClone, t.group = n;
1316
+ }, Nn = function() {
1317
+ !zn && V && A(V, "display", "none");
1318
+ }, Fn = function() {
1319
+ !zn && V && A(V, "display", "");
1320
+ };
1321
+ Vt && !kn && document.addEventListener("click", function(o) {
1322
+ if (kt)
1323
+ return o.preventDefault(), o.stopPropagation && o.stopPropagation(), o.stopImmediatePropagation && o.stopImmediatePropagation(), kt = !1, !1;
1324
+ }, !0);
1325
+ var Fe = function(t) {
1326
+ if (y) {
1327
+ t = t.touches ? t.touches[0] : t;
1328
+ var e = _o(t.clientX, t.clientY);
1329
+ if (e) {
1330
+ var n = {};
1331
+ for (var a in t)
1332
+ t.hasOwnProperty(a) && (n[a] = t[a]);
1333
+ n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[ye]._onDragOver(n);
1334
+ }
1335
+ }
1336
+ }, So = function(t) {
1337
+ y && y.parentNode[ye]._isOutsideThisEl(t.target);
1338
+ };
1339
+ function O(o, t) {
1340
+ if (!(o && o.nodeType && o.nodeType === 1))
1341
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));
1342
+ this.el = o, this.options = t = Pe({}, t), o[ye] = this;
1343
+ var e = {
1344
+ group: null,
1345
+ sort: !0,
1346
+ disabled: !1,
1347
+ store: null,
1348
+ handle: null,
1349
+ draggable: /^[uo]l$/i.test(o.nodeName) ? ">li" : ">*",
1350
+ swapThreshold: 1,
1351
+ // percentage; 0 <= x <= 1
1352
+ invertSwap: !1,
1353
+ // invert always
1354
+ invertedSwapThreshold: null,
1355
+ // will be set to same as swapThreshold if default
1356
+ removeCloneOnHide: !0,
1357
+ direction: function() {
1358
+ return Bn(o, this.options);
1359
+ },
1360
+ ghostClass: "sortable-ghost",
1361
+ chosenClass: "sortable-chosen",
1362
+ dragClass: "sortable-drag",
1363
+ ignore: "a, img",
1364
+ filter: null,
1365
+ preventOnFilter: !0,
1366
+ animation: 0,
1367
+ easing: null,
1368
+ setData: function(r, l) {
1369
+ r.setData("Text", l.textContent);
1370
+ },
1371
+ dropBubble: !1,
1372
+ dragoverBubble: !1,
1373
+ dataIdAttr: "data-id",
1374
+ delay: 0,
1375
+ delayOnTouchOnly: !1,
1376
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
1377
+ forceFallback: !1,
1378
+ fallbackClass: "sortable-fallback",
1379
+ fallbackOnBody: !1,
1380
+ fallbackTolerance: 0,
1381
+ fallbackOffset: {
1382
+ x: 0,
1383
+ y: 0
1384
+ },
1385
+ // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1386
+ supportPointer: O.supportPointer !== !1 && "PointerEvent" in window && (!rt || Qt),
1387
+ emptyInsertThreshold: 5
1388
+ };
1389
+ pt.initializePlugins(this, o, e);
1390
+ for (var n in e)
1391
+ !(n in t) && (t[n] = e[n]);
1392
+ Rn(t);
1393
+ for (var a in this)
1394
+ a.charAt(0) === "_" && typeof this[a] == "function" && (this[a] = this[a].bind(this));
1395
+ this.nativeDraggable = t.forceFallback ? !1 : bo, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? W(o, "pointerdown", this._onTapStart) : (W(o, "mousedown", this._onTapStart), W(o, "touchstart", this._onTapStart)), this.nativeDraggable && (W(o, "dragover", this), W(o, "dragenter", this)), Mt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Pe(this, po());
1396
+ }
1397
+ O.prototype = /** @lends Sortable.prototype */
1398
+ {
1399
+ constructor: O,
1400
+ _isOutsideThisEl: function(t) {
1401
+ !this.el.contains(t) && t !== this.el && (je = null);
1402
+ },
1403
+ _getDirection: function(t, e) {
1404
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, y) : this.options.direction;
1405
+ },
1406
+ _onTapStart: function(t) {
1407
+ if (t.cancelable) {
1408
+ var e = this, n = this.el, a = this.options, i = a.preventOnFilter, r = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, c = (l || t).target, s = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || c, d = a.filter;
1409
+ if (Po(n), !y && !(/mousedown|pointerdown/.test(r) && t.button !== 0 || a.disabled) && !s.isContentEditable && !(!this.nativeDraggable && rt && c && c.tagName.toUpperCase() === "SELECT") && (c = Ce(c, a.draggable, n, !1), !(c && c.animated) && xt !== c)) {
1410
+ if (Ye = xe(c), st = xe(c, a.draggable), typeof d == "function") {
1411
+ if (d.call(this, t, c, this)) {
1412
+ fe({
1413
+ sortable: e,
1414
+ rootEl: s,
1415
+ name: "filter",
1416
+ targetEl: c,
1417
+ toEl: n,
1418
+ fromEl: n
1419
+ }), ge("filter", e, {
1420
+ evt: t
1421
+ }), i && t.preventDefault();
1422
+ return;
1423
+ }
1424
+ } else if (d && (d = d.split(",").some(function(h) {
1425
+ if (h = Ce(s, h.trim(), n, !1), h)
1426
+ return fe({
1427
+ sortable: e,
1428
+ rootEl: h,
1429
+ name: "filter",
1430
+ targetEl: c,
1431
+ fromEl: n,
1432
+ toEl: n
1433
+ }), ge("filter", e, {
1434
+ evt: t
1435
+ }), !0;
1436
+ }), d)) {
1437
+ i && t.preventDefault();
1438
+ return;
1439
+ }
1440
+ a.handle && !Ce(s, a.handle, n, !1) || this._prepareDragStart(t, l, c);
1441
+ }
1442
+ }
1443
+ },
1444
+ _prepareDragStart: function(t, e, n) {
1445
+ var a = this, i = a.el, r = a.options, l = i.ownerDocument, c;
1446
+ if (n && !y && n.parentNode === i) {
1447
+ var s = ie(n);
1448
+ if (K = i, y = n, Q = y.parentNode, Le = y.nextSibling, xt = n, mt = r.group, O.dragged = y, Ne = {
1449
+ target: y,
1450
+ clientX: (e || t).clientX,
1451
+ clientY: (e || t).clientY
1452
+ }, yn = Ne.clientX - s.left, bn = Ne.clientY - s.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, y.style["will-change"] = "all", c = function() {
1453
+ if (ge("delayEnded", a, {
1454
+ evt: t
1455
+ }), O.eventCanceled) {
1456
+ a._onDrop();
1457
+ return;
1458
+ }
1459
+ a._disableDelayedDragEvents(), !pn && a.nativeDraggable && (y.draggable = !0), a._triggerDragStart(t, e), fe({
1460
+ sortable: a,
1461
+ name: "choose",
1462
+ originalEvent: t
1463
+ }), be(y, r.chosenClass, !0);
1464
+ }, r.ignore.split(",").forEach(function(d) {
1465
+ On(y, d.trim(), Lt);
1466
+ }), W(l, "dragover", Fe), W(l, "mousemove", Fe), W(l, "touchmove", Fe), r.supportPointer ? (W(l, "pointerup", a._onDrop), !this.nativeDraggable && W(l, "pointercancel", a._onDrop)) : (W(l, "mouseup", a._onDrop), W(l, "touchend", a._onDrop), W(l, "touchcancel", a._onDrop)), pn && this.nativeDraggable && (this.options.touchStartThreshold = 4, y.draggable = !0), ge("delayStart", this, {
1467
+ evt: t
1468
+ }), r.delay && (!r.delayOnTouchOnly || e) && (!this.nativeDraggable || !(ft || Ae))) {
1469
+ if (O.eventCanceled) {
1470
+ this._onDrop();
1471
+ return;
1472
+ }
1473
+ r.supportPointer ? (W(l, "pointerup", a._disableDelayedDrag), W(l, "pointercancel", a._disableDelayedDrag)) : (W(l, "mouseup", a._disableDelayedDrag), W(l, "touchend", a._disableDelayedDrag), W(l, "touchcancel", a._disableDelayedDrag)), W(l, "mousemove", a._delayedDragTouchMoveHandler), W(l, "touchmove", a._delayedDragTouchMoveHandler), r.supportPointer && W(l, "pointermove", a._delayedDragTouchMoveHandler), a._dragStartTimer = setTimeout(c, r.delay);
1474
+ } else
1475
+ c();
1476
+ }
1477
+ },
1478
+ _delayedDragTouchMoveHandler: function(t) {
1479
+ var e = t.touches ? t.touches[0] : t;
1480
+ Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
1481
+ },
1482
+ _disableDelayedDrag: function() {
1483
+ y && Lt(y), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
1484
+ },
1485
+ _disableDelayedDragEvents: function() {
1486
+ var t = this.el.ownerDocument;
1487
+ H(t, "mouseup", this._disableDelayedDrag), H(t, "touchend", this._disableDelayedDrag), H(t, "touchcancel", this._disableDelayedDrag), H(t, "pointerup", this._disableDelayedDrag), H(t, "pointercancel", this._disableDelayedDrag), H(t, "mousemove", this._delayedDragTouchMoveHandler), H(t, "touchmove", this._delayedDragTouchMoveHandler), H(t, "pointermove", this._delayedDragTouchMoveHandler);
1488
+ },
1489
+ _triggerDragStart: function(t, e) {
1490
+ e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? W(document, "pointermove", this._onTouchMove) : e ? W(document, "touchmove", this._onTouchMove) : W(document, "mousemove", this._onTouchMove) : (W(y, "dragend", this), W(K, "dragstart", this._onDragStart));
1491
+ try {
1492
+ document.selection ? Et(function() {
1493
+ document.selection.empty();
1494
+ }) : window.getSelection().removeAllRanges();
1495
+ } catch {
1496
+ }
1497
+ },
1498
+ _dragStarted: function(t, e) {
1499
+ if (Ge = !1, K && y) {
1500
+ ge("dragStarted", this, {
1501
+ evt: e
1502
+ }), this.nativeDraggable && W(document, "dragover", So);
1503
+ var n = this.options;
1504
+ !t && be(y, n.dragClass, !1), be(y, n.ghostClass, !0), O.active = this, t && this._appendGhost(), fe({
1505
+ sortable: this,
1506
+ name: "start",
1507
+ originalEvent: e
1508
+ });
1509
+ } else
1510
+ this._nulling();
1511
+ },
1512
+ _emulateDragOver: function() {
1513
+ if (Ee) {
1514
+ this._lastX = Ee.clientX, this._lastY = Ee.clientY, Nn();
1515
+ for (var t = document.elementFromPoint(Ee.clientX, Ee.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(Ee.clientX, Ee.clientY), t !== e); )
1516
+ e = t;
1517
+ if (y.parentNode[ye]._isOutsideThisEl(t), e)
1518
+ do {
1519
+ if (e[ye]) {
1520
+ var n = void 0;
1521
+ if (n = e[ye]._onDragOver({
1522
+ clientX: Ee.clientX,
1523
+ clientY: Ee.clientY,
1524
+ target: t,
1525
+ rootEl: e
1526
+ }), n && !this.options.dragoverBubble)
1527
+ break;
1528
+ }
1529
+ t = e;
1530
+ } while (e = Pn(e));
1531
+ Fn();
1532
+ }
1533
+ },
1534
+ _onTouchMove: function(t) {
1535
+ if (Ne) {
1536
+ var e = this.options, n = e.fallbackTolerance, a = e.fallbackOffset, i = t.touches ? t.touches[0] : t, r = V && Xe(V, !0), l = V && r && r.a, c = V && r && r.d, s = bt && de && mn(de), d = (i.clientX - Ne.clientX + a.x) / (l || 1) + (s ? s[0] - Ft[0] : 0) / (l || 1), h = (i.clientY - Ne.clientY + a.y) / (c || 1) + (s ? s[1] - Ft[1] : 0) / (c || 1);
1537
+ if (!O.active && !Ge) {
1538
+ if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
1539
+ return;
1540
+ this._onDragStart(t, !0);
1541
+ }
1542
+ if (V) {
1543
+ r ? (r.e += d - (Rt || 0), r.f += h - (Nt || 0)) : r = {
1544
+ a: 1,
1545
+ b: 0,
1546
+ c: 0,
1547
+ d: 1,
1548
+ e: d,
1549
+ f: h
1550
+ };
1551
+ var v = "matrix(".concat(r.a, ",").concat(r.b, ",").concat(r.c, ",").concat(r.d, ",").concat(r.e, ",").concat(r.f, ")");
1552
+ A(V, "webkitTransform", v), A(V, "mozTransform", v), A(V, "msTransform", v), A(V, "transform", v), Rt = d, Nt = h, Ee = i;
1553
+ }
1554
+ t.cancelable && t.preventDefault();
1555
+ }
1556
+ },
1557
+ _appendGhost: function() {
1558
+ if (!V) {
1559
+ var t = this.options.fallbackOnBody ? document.body : K, e = ie(y, !0, bt, !0, t), n = this.options;
1560
+ if (bt) {
1561
+ for (de = t; A(de, "position") === "static" && A(de, "transform") === "none" && de !== document; )
1562
+ de = de.parentNode;
1563
+ de !== document.body && de !== document.documentElement ? (de === document && (de = Te()), e.top += de.scrollTop, e.left += de.scrollLeft) : de = Te(), Ft = mn(de);
1564
+ }
1565
+ V = y.cloneNode(!0), be(V, n.ghostClass, !1), be(V, n.fallbackClass, !0), be(V, n.dragClass, !0), A(V, "transition", ""), A(V, "transform", ""), A(V, "box-sizing", "border-box"), A(V, "margin", 0), A(V, "top", e.top), A(V, "left", e.left), A(V, "width", e.width), A(V, "height", e.height), A(V, "opacity", "0.8"), A(V, "position", bt ? "absolute" : "fixed"), A(V, "zIndex", "100000"), A(V, "pointerEvents", "none"), O.ghost = V, t.appendChild(V), A(V, "transform-origin", yn / parseInt(V.style.width) * 100 + "% " + bn / parseInt(V.style.height) * 100 + "%");
1566
+ }
1567
+ },
1568
+ _onDragStart: function(t, e) {
1569
+ var n = this, a = t.dataTransfer, i = n.options;
1570
+ if (ge("dragStart", this, {
1571
+ evt: t
1572
+ }), O.eventCanceled) {
1573
+ this._onDrop();
1574
+ return;
1575
+ }
1576
+ ge("setupClone", this), O.eventCanceled || (J = $n(y), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), be(J, this.options.chosenClass, !1), O.clone = J), n.cloneId = Et(function() {
1577
+ ge("clone", n), !O.eventCanceled && (n.options.removeCloneOnHide || K.insertBefore(J, y), n._hideClone(), fe({
1578
+ sortable: n,
1579
+ name: "clone"
1580
+ }));
1581
+ }), !e && be(y, i.dragClass, !0), e ? (kt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (H(document, "mouseup", n._onDrop), H(document, "touchend", n._onDrop), H(document, "touchcancel", n._onDrop), a && (a.effectAllowed = "move", i.setData && i.setData.call(n, a, y)), W(document, "drop", n), A(y, "transform", "translateZ(0)")), Ge = !0, n._dragStartId = Et(n._dragStarted.bind(n, e, t)), W(document, "selectstart", n), ot = !0, window.getSelection().removeAllRanges(), rt && A(document.body, "user-select", "none");
1582
+ },
1583
+ // Returns true - if no further action is needed (either inserted or another condition)
1584
+ _onDragOver: function(t) {
1585
+ var e = this.el, n = t.target, a, i, r, l = this.options, c = l.group, s = O.active, d = mt === c, h = l.sort, v = se || s, m, f = this, _ = !1;
1586
+ if (Yt) return;
1587
+ function x(S, I) {
1588
+ ge(S, f, ke({
1589
+ evt: t,
1590
+ isOwner: d,
1591
+ axis: m ? "vertical" : "horizontal",
1592
+ revert: r,
1593
+ dragRect: a,
1594
+ targetRect: i,
1595
+ canSort: h,
1596
+ fromSortable: v,
1597
+ target: n,
1598
+ completed: N,
1599
+ onMove: function(Y, X) {
1600
+ return wt(K, e, y, a, Y, ie(Y), t, X);
1601
+ },
1602
+ changed: F
1603
+ }, I));
1604
+ }
1605
+ function T() {
1606
+ x("dragOverAnimationCapture"), f.captureAnimationState(), f !== v && v.captureAnimationState();
1607
+ }
1608
+ function N(S) {
1609
+ return x("dragOverCompleted", {
1610
+ insertion: S
1611
+ }), S && (d ? s._hideClone() : s._showClone(f), f !== v && (be(y, se ? se.options.ghostClass : s.options.ghostClass, !1), be(y, l.ghostClass, !0)), se !== f && f !== O.active ? se = f : f === O.active && se && (se = null), v === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
1612
+ x("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
1613
+ }), f !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (n === y && !y.animated || n === e && !n.animated) && (je = null), !l.dragoverBubble && !t.rootEl && n !== document && (y.parentNode[ye]._isOutsideThisEl(t.target), !S && Fe(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), _ = !0;
1614
+ }
1615
+ function F() {
1616
+ _e = xe(y), $e = xe(y, l.draggable), fe({
1617
+ sortable: f,
1618
+ name: "change",
1619
+ toEl: e,
1620
+ newIndex: _e,
1621
+ newDraggableIndex: $e,
1622
+ originalEvent: t
1623
+ });
1624
+ }
1625
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = Ce(n, l.draggable, e, !0), x("dragOver"), O.eventCanceled) return _;
1626
+ if (y.contains(t.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
1627
+ return N(!1);
1628
+ if (kt = !1, s && !l.disabled && (d ? h || (r = Q !== K) : se === this || (this.lastPutMode = mt.checkPull(this, s, y, t)) && c.checkPut(this, s, y, t))) {
1629
+ if (m = this._getDirection(t, n) === "vertical", a = ie(y), x("dragOverValid"), O.eventCanceled) return _;
1630
+ if (r)
1631
+ return Q = K, T(), this._hideClone(), x("revert"), O.eventCanceled || (Le ? K.insertBefore(y, Le) : K.appendChild(y)), N(!0);
1632
+ var Z = en(e, l.draggable);
1633
+ if (!Z || Co(t, m, this) && !Z.animated) {
1634
+ if (Z === y)
1635
+ return N(!1);
1636
+ if (Z && e === t.target && (n = Z), n && (i = ie(n)), wt(K, e, y, a, n, i, t, !!n) !== !1)
1637
+ return T(), Z && Z.nextSibling ? e.insertBefore(y, Z.nextSibling) : e.appendChild(y), Q = e, F(), N(!0);
1638
+ } else if (Z && Eo(t, m, this)) {
1639
+ var E = Ze(e, 0, l, !0);
1640
+ if (E === y)
1641
+ return N(!1);
1642
+ if (n = E, i = ie(n), wt(K, e, y, a, n, i, t, !1) !== !1)
1643
+ return T(), e.insertBefore(y, E), Q = e, F(), N(!0);
1644
+ } else if (n.parentNode === e) {
1645
+ i = ie(n);
1646
+ var u = 0, M, z = y.parentNode !== e, D = !wo(y.animated && y.toRect || a, n.animated && n.toRect || i, m), G = m ? "top" : "left", p = vn(n, "top", "top") || vn(y, "top", "top"), P = p ? p.scrollTop : void 0;
1647
+ je !== n && (M = i[G], ut = !1, yt = !D && l.invertSwap || z), u = To(t, n, i, m, D ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, yt, je === n);
1648
+ var q;
1649
+ if (u !== 0) {
1650
+ var k = xe(y);
1651
+ do
1652
+ k -= u, q = Q.children[k];
1653
+ while (q && (A(q, "display") === "none" || q === V));
1654
+ }
1655
+ if (u === 0 || q === n)
1656
+ return N(!1);
1657
+ je = n, ct = u;
1658
+ var w = n.nextElementSibling, g = !1;
1659
+ g = u === 1;
1660
+ var C = wt(K, e, y, a, n, i, t, g);
1661
+ if (C !== !1)
1662
+ return (C === 1 || C === -1) && (g = C === 1), Yt = !0, setTimeout(Do, 30), T(), g && !w ? e.appendChild(y) : n.parentNode.insertBefore(y, g ? w : n), p && In(p, 0, P - p.scrollTop), Q = y.parentNode, M !== void 0 && !yt && (Dt = Math.abs(M - ie(n)[G])), F(), N(!0);
1663
+ }
1664
+ if (e.contains(y))
1665
+ return N(!1);
1666
+ }
1667
+ return !1;
1668
+ },
1669
+ _ignoreWhileAnimating: null,
1670
+ _offMoveEvents: function() {
1671
+ H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", Fe), H(document, "mousemove", Fe), H(document, "touchmove", Fe);
1672
+ },
1673
+ _offUpEvents: function() {
1674
+ var t = this.el.ownerDocument;
1675
+ H(t, "mouseup", this._onDrop), H(t, "touchend", this._onDrop), H(t, "pointerup", this._onDrop), H(t, "pointercancel", this._onDrop), H(t, "touchcancel", this._onDrop), H(document, "selectstart", this);
1676
+ },
1677
+ _onDrop: function(t) {
1678
+ var e = this.el, n = this.options;
1679
+ if (_e = xe(y), $e = xe(y, n.draggable), ge("drop", this, {
1680
+ evt: t
1681
+ }), Q = y && y.parentNode, _e = xe(y), $e = xe(y, n.draggable), O.eventCanceled) {
1682
+ this._nulling();
1683
+ return;
1684
+ }
1685
+ Ge = !1, yt = !1, ut = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), qt(this.cloneId), qt(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), rt && A(document.body, "user-select", ""), A(y, "transform", ""), t && (ot && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), V && V.parentNode && V.parentNode.removeChild(V), (K === Q || se && se.lastPutMode !== "clone") && J && J.parentNode && J.parentNode.removeChild(J), y && (this.nativeDraggable && H(y, "dragend", this), Lt(y), y.style["will-change"] = "", ot && !Ge && be(y, se ? se.options.ghostClass : this.options.ghostClass, !1), be(y, this.options.chosenClass, !1), fe({
1686
+ sortable: this,
1687
+ name: "unchoose",
1688
+ toEl: Q,
1689
+ newIndex: null,
1690
+ newDraggableIndex: null,
1691
+ originalEvent: t
1692
+ }), K !== Q ? (_e >= 0 && (fe({
1693
+ rootEl: Q,
1694
+ name: "add",
1695
+ toEl: Q,
1696
+ fromEl: K,
1697
+ originalEvent: t
1698
+ }), fe({
1699
+ sortable: this,
1700
+ name: "remove",
1701
+ toEl: Q,
1702
+ originalEvent: t
1703
+ }), fe({
1704
+ rootEl: Q,
1705
+ name: "sort",
1706
+ toEl: Q,
1707
+ fromEl: K,
1708
+ originalEvent: t
1709
+ }), fe({
1710
+ sortable: this,
1711
+ name: "sort",
1712
+ toEl: Q,
1713
+ originalEvent: t
1714
+ })), se && se.save()) : _e !== Ye && _e >= 0 && (fe({
1715
+ sortable: this,
1716
+ name: "update",
1717
+ toEl: Q,
1718
+ originalEvent: t
1719
+ }), fe({
1720
+ sortable: this,
1721
+ name: "sort",
1722
+ toEl: Q,
1723
+ originalEvent: t
1724
+ })), O.active && ((_e == null || _e === -1) && (_e = Ye, $e = st), fe({
1725
+ sortable: this,
1726
+ name: "end",
1727
+ toEl: Q,
1728
+ originalEvent: t
1729
+ }), this.save()))), this._nulling();
1730
+ },
1731
+ _nulling: function() {
1732
+ ge("nulling", this), K = y = Q = V = Le = J = xt = Ve = Ne = Ee = ot = _e = $e = Ye = st = je = ct = se = mt = O.dragged = O.ghost = O.clone = O.active = null, Pt.forEach(function(t) {
1733
+ t.checked = !0;
1734
+ }), Pt.length = Rt = Nt = 0;
1735
+ },
1736
+ handleEvent: function(t) {
1737
+ switch (t.type) {
1738
+ case "drop":
1739
+ case "dragend":
1740
+ this._onDrop(t);
1741
+ break;
1742
+ case "dragenter":
1743
+ case "dragover":
1744
+ y && (this._onDragOver(t), xo(t));
1745
+ break;
1746
+ case "selectstart":
1747
+ t.preventDefault();
1748
+ break;
1749
+ }
1750
+ },
1751
+ /**
1752
+ * Serializes the item into an array of string.
1753
+ * @returns {String[]}
1754
+ */
1755
+ toArray: function() {
1756
+ for (var t = [], e, n = this.el.children, a = 0, i = n.length, r = this.options; a < i; a++)
1757
+ e = n[a], Ce(e, r.draggable, this.el, !1) && t.push(e.getAttribute(r.dataIdAttr) || Mo(e));
1758
+ return t;
1759
+ },
1760
+ /**
1761
+ * Sorts the elements according to the array.
1762
+ * @param {String[]} order order of the items
1763
+ */
1764
+ sort: function(t, e) {
1765
+ var n = {}, a = this.el;
1766
+ this.toArray().forEach(function(i, r) {
1767
+ var l = a.children[r];
1768
+ Ce(l, this.options.draggable, a, !1) && (n[i] = l);
1769
+ }, this), e && this.captureAnimationState(), t.forEach(function(i) {
1770
+ n[i] && (a.removeChild(n[i]), a.appendChild(n[i]));
1771
+ }), e && this.animateAll();
1772
+ },
1773
+ /**
1774
+ * Save the current sorting
1775
+ */
1776
+ save: function() {
1777
+ var t = this.options.store;
1778
+ t && t.set && t.set(this);
1779
+ },
1780
+ /**
1781
+ * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
1782
+ * @param {HTMLElement} el
1783
+ * @param {String} [selector] default: `options.draggable`
1784
+ * @returns {HTMLElement|null}
1785
+ */
1786
+ closest: function(t, e) {
1787
+ return Ce(t, e || this.options.draggable, this.el, !1);
1788
+ },
1789
+ /**
1790
+ * Set/get option
1791
+ * @param {string} name
1792
+ * @param {*} [value]
1793
+ * @returns {*}
1794
+ */
1795
+ option: function(t, e) {
1796
+ var n = this.options;
1797
+ if (e === void 0)
1798
+ return n[t];
1799
+ var a = pt.modifyOption(this, t, e);
1800
+ typeof a < "u" ? n[t] = a : n[t] = e, t === "group" && Rn(n);
1801
+ },
1802
+ /**
1803
+ * Destroy
1804
+ */
1805
+ destroy: function() {
1806
+ ge("destroy", this);
1807
+ var t = this.el;
1808
+ t[ye] = null, H(t, "mousedown", this._onTapStart), H(t, "touchstart", this._onTapStart), H(t, "pointerdown", this._onTapStart), this.nativeDraggable && (H(t, "dragover", this), H(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
1809
+ e.removeAttribute("draggable");
1810
+ }), this._onDrop(), this._disableDelayedDragEvents(), Mt.splice(Mt.indexOf(this.el), 1), this.el = t = null;
1811
+ },
1812
+ _hideClone: function() {
1813
+ if (!Ve) {
1814
+ if (ge("hideClone", this), O.eventCanceled) return;
1815
+ A(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), Ve = !0;
1816
+ }
1817
+ },
1818
+ _showClone: function(t) {
1819
+ if (t.lastPutMode !== "clone") {
1820
+ this._hideClone();
1821
+ return;
1822
+ }
1823
+ if (Ve) {
1824
+ if (ge("showClone", this), O.eventCanceled) return;
1825
+ y.parentNode == K && !this.options.group.revertClone ? K.insertBefore(J, y) : Le ? K.insertBefore(J, Le) : K.appendChild(J), this.options.group.revertClone && this.animate(y, J), A(J, "display", ""), Ve = !1;
1826
+ }
1827
+ }
1828
+ };
1829
+ function xo(o) {
1830
+ o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
1831
+ }
1832
+ function wt(o, t, e, n, a, i, r, l) {
1833
+ var c, s = o[ye], d = s.options.onMove, h;
1834
+ return window.CustomEvent && !Ae && !ft ? c = new CustomEvent("move", {
1835
+ bubbles: !0,
1836
+ cancelable: !0
1837
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = o, c.dragged = e, c.draggedRect = n, c.related = a || t, c.relatedRect = i || ie(t), c.willInsertAfter = l, c.originalEvent = r, o.dispatchEvent(c), d && (h = d.call(s, c, r)), h;
1838
+ }
1839
+ function Lt(o) {
1840
+ o.draggable = !1;
1841
+ }
1842
+ function Do() {
1843
+ Yt = !1;
1844
+ }
1845
+ function Eo(o, t, e) {
1846
+ var n = ie(Ze(e.el, 0, e.options, !0)), a = Vn(e.el, e.options, V), i = 10;
1847
+ return t ? o.clientX < a.left - i || o.clientY < n.top && o.clientX < n.right : o.clientY < a.top - i || o.clientY < n.bottom && o.clientX < n.left;
1848
+ }
1849
+ function Co(o, t, e) {
1850
+ var n = ie(en(e.el, e.options.draggable)), a = Vn(e.el, e.options, V), i = 10;
1851
+ return t ? o.clientX > a.right + i || o.clientY > n.bottom && o.clientX > n.left : o.clientY > a.bottom + i || o.clientX > n.right && o.clientY > n.top;
1852
+ }
1853
+ function To(o, t, e, n, a, i, r, l) {
1854
+ var c = n ? o.clientY : o.clientX, s = n ? e.height : e.width, d = n ? e.top : e.left, h = n ? e.bottom : e.right, v = !1;
1855
+ if (!r) {
1856
+ if (l && Dt < s * a) {
1857
+ if (!ut && (ct === 1 ? c > d + s * i / 2 : c < h - s * i / 2) && (ut = !0), ut)
1858
+ v = !0;
1859
+ else if (ct === 1 ? c < d + Dt : c > h - Dt)
1860
+ return -ct;
1861
+ } else if (c > d + s * (1 - a) / 2 && c < h - s * (1 - a) / 2)
1862
+ return ko(t);
1863
+ }
1864
+ return v = v || r, v && (c < d + s * i / 2 || c > h - s * i / 2) ? c > d + s / 2 ? 1 : -1 : 0;
1865
+ }
1866
+ function ko(o) {
1867
+ return xe(y) < xe(o) ? 1 : -1;
1868
+ }
1869
+ function Mo(o) {
1870
+ for (var t = o.tagName + o.className + o.src + o.href + o.textContent, e = t.length, n = 0; e--; )
1871
+ n += t.charCodeAt(e);
1872
+ return n.toString(36);
1873
+ }
1874
+ function Po(o) {
1875
+ Pt.length = 0;
1876
+ for (var t = o.getElementsByTagName("input"), e = t.length; e--; ) {
1877
+ var n = t[e];
1878
+ n.checked && Pt.push(n);
1879
+ }
1880
+ }
1881
+ function Et(o) {
1882
+ return setTimeout(o, 0);
1883
+ }
1884
+ function qt(o) {
1885
+ return clearTimeout(o);
1886
+ }
1887
+ Vt && W(document, "touchmove", function(o) {
1888
+ (O.active || Ge) && o.cancelable && o.preventDefault();
1889
+ });
1890
+ O.utils = {
1891
+ on: W,
1892
+ off: H,
1893
+ css: A,
1894
+ find: On,
1895
+ is: function(t, e) {
1896
+ return !!Ce(t, e, t, !1);
1897
+ },
1898
+ extend: ho,
1899
+ throttle: An,
1900
+ closest: Ce,
1901
+ toggleClass: be,
1902
+ clone: $n,
1903
+ index: xe,
1904
+ nextTick: Et,
1905
+ cancelNextTick: qt,
1906
+ detectDirection: Bn,
1907
+ getChild: Ze,
1908
+ expando: ye
1909
+ };
1910
+ O.get = function(o) {
1911
+ return o[ye];
1912
+ };
1913
+ O.mount = function() {
1914
+ for (var o = arguments.length, t = new Array(o), e = 0; e < o; e++)
1915
+ t[e] = arguments[e];
1916
+ t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
1917
+ if (!n.prototype || !n.prototype.constructor)
1918
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
1919
+ n.utils && (O.utils = ke(ke({}, O.utils), n.utils)), pt.mount(n);
1920
+ });
1921
+ };
1922
+ O.create = function(o, t) {
1923
+ return new O(o, t);
1924
+ };
1925
+ O.version = co;
1926
+ var oe = [], at, Xt, Kt = !1, Ut, Ht, Ot, it;
1927
+ function Oo() {
1928
+ function o() {
1929
+ this.defaults = {
1930
+ scroll: !0,
1931
+ forceAutoScrollFallback: !1,
1932
+ scrollSensitivity: 30,
1933
+ scrollSpeed: 10,
1934
+ bubbleScroll: !0
1935
+ };
1936
+ for (var t in this)
1937
+ t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
1938
+ }
1939
+ return o.prototype = {
1940
+ dragStarted: function(e) {
1941
+ var n = e.originalEvent;
1942
+ this.sortable.nativeDraggable ? W(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? W(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? W(document, "touchmove", this._handleFallbackAutoScroll) : W(document, "mousemove", this._handleFallbackAutoScroll);
1943
+ },
1944
+ dragOverCompleted: function(e) {
1945
+ var n = e.originalEvent;
1946
+ !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
1947
+ },
1948
+ drop: function() {
1949
+ this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), _n(), Ct(), fo();
1950
+ },
1951
+ nulling: function() {
1952
+ Ot = Xt = at = Kt = it = Ut = Ht = null, oe.length = 0;
1953
+ },
1954
+ _handleFallbackAutoScroll: function(e) {
1955
+ this._handleAutoScroll(e, !0);
1956
+ },
1957
+ _handleAutoScroll: function(e, n) {
1958
+ var a = this, i = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, l = document.elementFromPoint(i, r);
1959
+ if (Ot = e, n || this.options.forceAutoScrollFallback || ft || Ae || rt) {
1960
+ Wt(e, this.options, l, n);
1961
+ var c = ze(l, !0);
1962
+ Kt && (!it || i !== Ut || r !== Ht) && (it && _n(), it = setInterval(function() {
1963
+ var s = ze(document.elementFromPoint(i, r), !0);
1964
+ s !== c && (c = s, Ct()), Wt(e, a.options, s, n);
1965
+ }, 10), Ut = i, Ht = r);
1966
+ } else {
1967
+ if (!this.options.bubbleScroll || ze(l, !0) === Te()) {
1968
+ Ct();
1969
+ return;
1970
+ }
1971
+ Wt(e, this.options, ze(l, !1), !1);
1972
+ }
1973
+ }
1974
+ }, Pe(o, {
1975
+ pluginName: "scroll",
1976
+ initializeByDefault: !0
1977
+ });
1978
+ }
1979
+ function Ct() {
1980
+ oe.forEach(function(o) {
1981
+ clearInterval(o.pid);
1982
+ }), oe = [];
1983
+ }
1984
+ function _n() {
1985
+ clearInterval(it);
1986
+ }
1987
+ var Wt = An(function(o, t, e, n) {
1988
+ if (t.scroll) {
1989
+ var a = (o.touches ? o.touches[0] : o).clientX, i = (o.touches ? o.touches[0] : o).clientY, r = t.scrollSensitivity, l = t.scrollSpeed, c = Te(), s = !1, d;
1990
+ Xt !== e && (Xt = e, Ct(), at = t.scroll, d = t.scrollFn, at === !0 && (at = ze(e, !0)));
1991
+ var h = 0, v = at;
1992
+ do {
1993
+ var m = v, f = ie(m), _ = f.top, x = f.bottom, T = f.left, N = f.right, F = f.width, Z = f.height, E = void 0, u = void 0, M = m.scrollWidth, z = m.scrollHeight, D = A(m), G = m.scrollLeft, p = m.scrollTop;
1994
+ m === c ? (E = F < M && (D.overflowX === "auto" || D.overflowX === "scroll" || D.overflowX === "visible"), u = Z < z && (D.overflowY === "auto" || D.overflowY === "scroll" || D.overflowY === "visible")) : (E = F < M && (D.overflowX === "auto" || D.overflowX === "scroll"), u = Z < z && (D.overflowY === "auto" || D.overflowY === "scroll"));
1995
+ var P = E && (Math.abs(N - a) <= r && G + F < M) - (Math.abs(T - a) <= r && !!G), q = u && (Math.abs(x - i) <= r && p + Z < z) - (Math.abs(_ - i) <= r && !!p);
1996
+ if (!oe[h])
1997
+ for (var k = 0; k <= h; k++)
1998
+ oe[k] || (oe[k] = {});
1999
+ (oe[h].vx != P || oe[h].vy != q || oe[h].el !== m) && (oe[h].el = m, oe[h].vx = P, oe[h].vy = q, clearInterval(oe[h].pid), (P != 0 || q != 0) && (s = !0, oe[h].pid = setInterval((function() {
2000
+ n && this.layer === 0 && O.active._onTouchMove(Ot);
2001
+ var w = oe[this.layer].vy ? oe[this.layer].vy * l : 0, g = oe[this.layer].vx ? oe[this.layer].vx * l : 0;
2002
+ typeof d == "function" && d.call(O.dragged.parentNode[ye], g, w, o, Ot, oe[this.layer].el) !== "continue" || In(oe[this.layer].el, g, w);
2003
+ }).bind({
2004
+ layer: h
2005
+ }), 24))), h++;
2006
+ } while (t.bubbleScroll && v !== c && (v = ze(v, !1)));
2007
+ Kt = s;
2008
+ }
2009
+ }, 30), Ln = function(t) {
2010
+ var e = t.originalEvent, n = t.putSortable, a = t.dragEl, i = t.activeSortable, r = t.dispatchSortableEvent, l = t.hideGhostForTarget, c = t.unhideGhostForTarget;
2011
+ if (e) {
2012
+ var s = n || i;
2013
+ l();
2014
+ var d = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, h = document.elementFromPoint(d.clientX, d.clientY);
2015
+ c(), s && !s.el.contains(h) && (r("spill"), this.onSpill({
2016
+ dragEl: a,
2017
+ putSortable: n
2018
+ }));
2019
+ }
2020
+ };
2021
+ function tn() {
2022
+ }
2023
+ tn.prototype = {
2024
+ startIndex: null,
2025
+ dragStart: function(t) {
2026
+ var e = t.oldDraggableIndex;
2027
+ this.startIndex = e;
2028
+ },
2029
+ onSpill: function(t) {
2030
+ var e = t.dragEl, n = t.putSortable;
2031
+ this.sortable.captureAnimationState(), n && n.captureAnimationState();
2032
+ var a = Ze(this.sortable.el, this.startIndex, this.options);
2033
+ a ? this.sortable.el.insertBefore(e, a) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll();
2034
+ },
2035
+ drop: Ln
2036
+ };
2037
+ Pe(tn, {
2038
+ pluginName: "revertOnSpill"
2039
+ });
2040
+ function nn() {
2041
+ }
2042
+ nn.prototype = {
2043
+ onSpill: function(t) {
2044
+ var e = t.dragEl, n = t.putSortable, a = n || this.sortable;
2045
+ a.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), a.animateAll();
2046
+ },
2047
+ drop: Ln
2048
+ };
2049
+ Pe(nn, {
2050
+ pluginName: "removeOnSpill"
2051
+ });
2052
+ O.mount(new Oo());
2053
+ O.mount(nn, tn);
2054
+ const Ao = { class: "extra-button-content" }, Io = {
2055
+ __name: "header",
2056
+ props: {
2057
+ buttons: {
2058
+ type: Array,
2059
+ default: () => []
2060
+ },
2061
+ columns: {
2062
+ type: Array,
2063
+ default: () => []
2064
+ }
2065
+ },
2066
+ emits: ["buttonClick"],
2067
+ setup(o, { emit: t }) {
2068
+ const e = o;
2069
+ L(!1);
2070
+ const n = L([]);
2071
+ L([{ label: "取消" }, { label: "确认" }]);
2072
+ const a = (i) => {
2073
+ var r;
2074
+ n.value = (r = i == null ? void 0 : i.filter((l) => (l == null ? void 0 : l.label) !== "" && (l == null ? void 0 : l.label) !== "操作")) == null ? void 0 : r.map((l) => ({
2075
+ label: (l == null ? void 0 : l.label) ?? "",
2076
+ value: "",
2077
+ name: (l == null ? void 0 : l.prop) ?? ""
2078
+ }));
2079
+ };
2080
+ return et(() => {
2081
+ a(e.columns);
2082
+ }), De(
2083
+ () => e.columns,
2084
+ () => {
2085
+ a(e.columns);
2086
+ },
2087
+ { deep: !0, immediate: !0 }
2088
+ ), (i, r) => (b(), B("div", Ao, [
2089
+ ue(i.$slots, "headerButton", {}, void 0, !0)
2090
+ ]));
2091
+ }
2092
+ }, $o = /* @__PURE__ */ Oe(Io, [["__scopeId", "data-v-9727dc88"]]), Vo = /* @__PURE__ */ Qe({
2093
+ __name: "recurseCol",
2094
+ props: {
2095
+ column: {
2096
+ type: Object,
2097
+ default: {}
2098
+ }
2099
+ },
2100
+ setup(o) {
2101
+ return (t, e) => {
2102
+ var i, r, l, c, s, d, h;
2103
+ const n = j("RecurseCol", !0), a = j("el-table-column");
2104
+ return o.column.isHidden ? ee("", !0) : (b(), U(a, {
2105
+ key: 0,
2106
+ label: o.column.label,
2107
+ prop: o.column.prop,
2108
+ fixed: (i = o.column) == null ? void 0 : i.fixed,
2109
+ align: ((r = o.column) == null ? void 0 : r.align) ?? "center",
2110
+ sortable: ((l = o.column) == null ? void 0 : l.sortable) ?? !0,
2111
+ "show-overflow-tooltip": ((c = o.column) == null ? void 0 : c.showOverflowTooltip) ?? !0,
2112
+ width: (s = o.column) != null && s.width ? parseInt(o.column.width) : void 0,
2113
+ "min-width": (d = o.column) != null && d.width ? parseInt(o.column.width) : void 0,
2114
+ "class-name": (((h = o.column) == null ? void 0 : h.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
2115
+ }, {
2116
+ default: R((v) => [
2117
+ ue(t.$slots, "content", {
2118
+ row: v.row,
2119
+ column: v.column,
2120
+ $index: v.$index
2121
+ }),
2122
+ (b(!0), B(ce, null, le(o.column.children, (m, f) => (b(), U(n, {
2123
+ key: f,
2124
+ column: m
2125
+ }, Je({ _: 2 }, [
2126
+ le(t.$slots, (_, x) => ({
2127
+ name: x,
2128
+ fn: R((T) => [
2129
+ ue(t.$slots, x, Jt({ ref_for: !0 }, T, {
2130
+ slotData: T,
2131
+ row: v.row,
2132
+ item: { child: m }
2133
+ }))
2134
+ ])
2135
+ }))
2136
+ ]), 1032, ["column"]))), 128))
2137
+ ]),
2138
+ _: 3
2139
+ }, 8, ["label", "prop", "fixed", "align", "sortable", "show-overflow-tooltip", "width", "min-width", "class-name"]));
2140
+ };
2141
+ }
2142
+ }), zo = /* @__PURE__ */ Qe({
2143
+ __name: "index",
2144
+ props: {
2145
+ column: {
2146
+ type: Object,
2147
+ default: {}
2148
+ }
2149
+ },
2150
+ setup(o) {
2151
+ return (t, e) => {
2152
+ var a, i, r, l, c, s, d, h;
2153
+ const n = j("el-table-column");
2154
+ return o.column.isTableColHidden ? ee("", !0) : (b(), U(n, {
2155
+ key: 0,
2156
+ label: o.column.label,
2157
+ prop: o.column.prop,
2158
+ fixed: (a = o.column) == null ? void 0 : a.fixed,
2159
+ align: ((i = o.column) == null ? void 0 : i.align) ?? "center",
2160
+ sortable: ((r = o.column) == null ? void 0 : r.sortable) ?? !0,
2161
+ "show-overflow-tooltip": ((l = o.column) == null ? void 0 : l.showOverflowTooltip) ?? !0,
2162
+ width: (c = o.column) != null && c.width ? parseInt(o.column.width) : void 0,
2163
+ "min-width": (s = o.column) != null && s.width ? parseInt(o.column.width) : void 0,
2164
+ "class-name": ((d = o.column) == null ? void 0 : d.prop) === "operate" ? "action" : (((h = o.column) == null ? void 0 : h.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
2165
+ }, {
2166
+ default: R((v) => [
2167
+ ue(t.$slots, "content", {
2168
+ row: v.row,
2169
+ column: v.column,
2170
+ $index: v.$index
2171
+ }),
2172
+ (b(!0), B(ce, null, le(o.column.children, (m, f) => (b(), U(Vo, {
2173
+ key: f,
2174
+ column: m
2175
+ }, Je({ _: 2 }, [
2176
+ le(t.$slots, (_, x) => ({
2177
+ name: x,
2178
+ fn: R(({ row: T, slotData: N, item: F }) => [
2179
+ ue(t.$slots, x, Jt({ ref_for: !0 }, N ?? T, {
2180
+ item: F ?? m,
2181
+ slotData: N ?? T
2182
+ }))
2183
+ ])
2184
+ }))
2185
+ ]), 1032, ["column"]))), 128))
2186
+ ]),
2187
+ _: 3
2188
+ }, 8, ["label", "prop", "fixed", "align", "sortable", "show-overflow-tooltip", "width", "min-width", "class-name"]));
2189
+ };
2190
+ }
2191
+ }), Bo = { class: "table-content-show" }, Ro = ["onClick"], No = ["onClick"], Fo = ["onClick"], Lo = {
2192
+ key: 2,
2193
+ style: { "font-size": "14px", "font-weight": "400" }
2194
+ }, Uo = {
2195
+ __name: "index",
2196
+ props: {
2197
+ columns: Array,
2198
+ tableData: Array,
2199
+ currentPage: Number,
2200
+ total: Number,
2201
+ pageSize: Number,
2202
+ extraButton: {
2203
+ type: Array,
2204
+ default: () => []
2205
+ },
2206
+ isShowPagination: {
2207
+ type: Boolean,
2208
+ default: !0
2209
+ },
2210
+ isShowEdit: {
2211
+ type: Boolean,
2212
+ default: !0
2213
+ },
2214
+ isMoveColumn: {
2215
+ type: Boolean,
2216
+ default: !0
2217
+ },
2218
+ isShowDelete: {
2219
+ type: Boolean,
2220
+ default: !0
2221
+ }
2222
+ },
2223
+ emits: ["dbClickRow", "fixRow", "deleteRow", "doSizeChange", "doCurrentChange", "buttonClick", "contentClick"],
2224
+ setup(o, { emit: t }) {
2225
+ const e = o, n = L([]), a = L([]), i = L(0), r = L(null), l = L(null), c = t;
2226
+ et(() => {
2227
+ n.value = e == null ? void 0 : e.columns, a.value = e == null ? void 0 : e.tableData, e.isMoveColumn && T(), N();
2228
+ });
2229
+ const s = (E) => {
2230
+ c("buttonClick", E);
2231
+ };
2232
+ De(
2233
+ () => e == null ? void 0 : e.tableData,
2234
+ () => {
2235
+ a.value = e == null ? void 0 : e.tableData;
2236
+ },
2237
+ { deep: !0 }
2238
+ );
2239
+ const d = (E) => an(E), h = (E) => {
2240
+ c("doCurrentChange", E);
2241
+ }, v = (E, u) => {
2242
+ c("dbClickRow", E);
2243
+ }, m = (E) => {
2244
+ c("doSizeChange", E);
2245
+ }, f = (E) => {
2246
+ c("fixRow", E);
2247
+ }, _ = (E) => {
2248
+ c("deleteRow", E);
2249
+ }, x = (E, u, M) => {
2250
+ c("contentClick", E, u, M);
2251
+ }, T = () => {
2252
+ var u;
2253
+ const E = (u = r.value) == null ? void 0 : u.$el.querySelector(".el-table__header-wrapper tr");
2254
+ !E || !e.isMoveColumn || O.create(E, {
2255
+ animation: 180,
2256
+ delay: 0,
2257
+ handle: ".is-drag .cell",
2258
+ // 可拖拽区域为单元格
2259
+ onMove: (M) => !M.related.classList.contains("is-not-drag"),
2260
+ onEnd: (M) => {
2261
+ i.value++;
2262
+ const z = M.oldIndex, D = M.newIndex, G = n.value.splice(z, 1)[0];
2263
+ n.value.splice(D, 0, G), e.isMoveColumn && qe(() => {
2264
+ T(), N();
2265
+ });
2266
+ }
2267
+ });
2268
+ };
2269
+ De(
2270
+ () => e.isMoveColumn,
2271
+ () => {
2272
+ e.isMoveColumn && qe(() => {
2273
+ T(), N();
2274
+ });
2275
+ }
2276
+ );
2277
+ const N = () => {
2278
+ var u;
2279
+ const E = (u = r.value) == null ? void 0 : u.$el.querySelector(".el-table__body-wrapper tbody");
2280
+ E && new O(E, {
2281
+ animation: 150,
2282
+ handle: ".el-table__row",
2283
+ // 拖动整行
2284
+ ghostClass: "sortable-ghost",
2285
+ // 拖拽时的样式
2286
+ onEnd: ({ newIndex: M, oldIndex: z }) => {
2287
+ const D = [...a.value], [G] = D.splice(z, 1);
2288
+ D.splice(M, 0, G), a.value = D, qe(() => {
2289
+ N();
2290
+ });
2291
+ }
2292
+ });
2293
+ }, F = (E) => {
2294
+ E.preventDefault();
2295
+ try {
2296
+ const M = (E.clipboardData || (window == null ? void 0 : window.clipboardData)).getData("text/plain");
2297
+ if (!M) return;
2298
+ const z = Z(M);
2299
+ if (!z.length) return;
2300
+ const { rowIndex: D, columnIndex: G } = l.value || { rowIndex: 0, columnIndex: 0 }, p = [];
2301
+ if (z == null || z.forEach((P) => {
2302
+ p.push(P.length + G);
2303
+ }), (p == null ? void 0 : p.filter((P) => {
2304
+ var q;
2305
+ return P > Object.keys((q = a.value) == null ? void 0 : q[0]).length;
2306
+ }).length) > 0) {
2307
+ Cn({
2308
+ type: "warning",
2309
+ message: "所剩列数不够"
2310
+ });
2311
+ return;
2312
+ }
2313
+ for (let P = 0; P < z.length; P++) {
2314
+ const q = z[P], k = a.value[D + P], w = me(n.value).map((g) => g.prop);
2315
+ for (let g = 0; g < q.length && G + g < w.length; g++) {
2316
+ const C = w[G + g];
2317
+ k[C] = q[g] || "";
2318
+ }
2319
+ }
2320
+ } catch (u) {
2321
+ console.error("粘贴失败:", u);
2322
+ }
2323
+ }, Z = (E) => E.trim().split(/\r\n|\n|\r/).map((z) => z.trim() ? z.split(" ").map((D) => D.replace(/^"(.*)"$/, "$1")) : [""]);
2324
+ return (E, u) => {
2325
+ const M = j("el-table"), z = j("el-pagination");
2326
+ return b(), B("div", Bo, [
2327
+ re($o, {
2328
+ buttons: e == null ? void 0 : e.extraButton,
2329
+ onButtonClick: s,
2330
+ columns: n.value
2331
+ }, {
2332
+ headerButton: R(() => [
2333
+ ue(E.$slots, "headerButton", {
2334
+ buttons: e == null ? void 0 : e.extraButton,
2335
+ columns: n.value
2336
+ }, void 0, !0)
2337
+ ]),
2338
+ _: 3
2339
+ }, 8, ["buttons", "columns"]),
2340
+ (b(), U(M, {
2341
+ border: !0,
2342
+ class: "table-wrap",
2343
+ data: a.value,
2344
+ stripe: "",
2345
+ style: { width: "100%" },
2346
+ "max-height": "600",
2347
+ ref_key: "tableRef",
2348
+ ref: r,
2349
+ "empty-text": "暂无数据",
2350
+ onSelectionChange: E.handleTableSelectChange,
2351
+ onRowDblclick: v,
2352
+ key: i.value,
2353
+ onPaste: F
2354
+ }, {
2355
+ default: R(() => [
2356
+ (b(!0), B(ce, null, le(n.value, (D, G) => (b(), U(zo, { column: D }, {
2357
+ content: R(({ row: p, item: P, slotData: q }) => {
2358
+ var k, w, g, C, S, I, $, Y, X, te;
2359
+ return [
2360
+ ((D == null ? void 0 : D.type) ?? "text") === "text" && ((p == null ? void 0 : p.tableEditType) ?? "text") === "text" ? (b(), B("span", {
2361
+ key: 0,
2362
+ style: we([{ "font-size": "14px", "font-weight": "400" }, { cursor: p != null && p.children ? "pointer" : "default" }]),
2363
+ onClick: (ne) => {
2364
+ var he;
2365
+ return x(p != null && p[D == null ? void 0 : D.prop] ? p == null ? void 0 : p[D == null ? void 0 : D.prop] : (p == null ? void 0 : p[P == null ? void 0 : P.prop]) ?? (q == null ? void 0 : q[P == null ? void 0 : P.prop]) ?? (p == null ? void 0 : p[(he = P == null ? void 0 : P.child) == null ? void 0 : he.prop]), P == null ? void 0 : P.prop, p ?? q);
2366
+ }
2367
+ }, Se(p != null && p[D == null ? void 0 : D.prop] ? ((w = (k = p == null ? void 0 : p[D == null ? void 0 : D.prop]) == null ? void 0 : k[0]) == null ? void 0 : w.contents) ?? (p == null ? void 0 : p[D == null ? void 0 : D.prop]) : ((C = (g = p == null ? void 0 : p[P == null ? void 0 : P.prop]) == null ? void 0 : g[0]) == null ? void 0 : C.contents) ?? (p == null ? void 0 : p[P == null ? void 0 : P.prop]) ?? ((I = (S = q == null ? void 0 : q[P == null ? void 0 : P.prop]) == null ? void 0 : S[0]) == null ? void 0 : I.contents) ?? (q == null ? void 0 : q[P == null ? void 0 : P.prop]) ?? ((X = (Y = p == null ? void 0 : p[($ = P == null ? void 0 : P.child) == null ? void 0 : $.prop]) == null ? void 0 : Y[0]) == null ? void 0 : X.contents) ?? (p == null ? void 0 : p[(te = P == null ? void 0 : P.child) == null ? void 0 : te.prop])), 13, Ro)) : ee("", !0),
2368
+ ((D == null ? void 0 : D.type) ?? "text") === "operate" ? (b(), B("span", {
2369
+ key: 1,
2370
+ class: "table-operate",
2371
+ style: we({
2372
+ justifyContent: o.isShowEdit && o.isShowDelete ? "space-between" : "center"
2373
+ })
2374
+ }, [
2375
+ ue(E.$slots, "actions", { item: p }, void 0, !0),
2376
+ o.isShowEdit ? (b(), B("span", {
2377
+ key: 0,
2378
+ onClick: (ne) => f(p),
2379
+ class: "blue-table-operate table-operate-content"
2380
+ }, "编辑", 8, No)) : ee("", !0),
2381
+ o.isShowDelete ? (b(), B("span", {
2382
+ key: 1,
2383
+ onClick: (ne) => _(p),
2384
+ class: "red-table-operate table-operate-content"
2385
+ }, "删除", 8, Fo)) : ee("", !0)
2386
+ ], 4)) : ee("", !0),
2387
+ ((D == null ? void 0 : D.type) ?? "text") === "edit" && ((p == null ? void 0 : p.tableEditType) ?? "text") !== "edit" || ((D == null ? void 0 : D.type) ?? "text") === "text" && ((p == null ? void 0 : p.tableEditType) ?? "text") === "edit" ? (b(), B("span", Lo, [
2388
+ (b(), U(ht(d((D == null ? void 0 : D.columnType) ?? "Input")), {
2389
+ modelValue: p[D.prop],
2390
+ "onUpdate:modelValue": (ne) => p[D.prop] = ne,
2391
+ style: { height: "100%" },
2392
+ content: (D == null ? void 0 : D.contents) ?? []
2393
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "content"]))
2394
+ ])) : ee("", !0)
2395
+ ];
2396
+ }),
2397
+ _: 2
2398
+ }, 1032, ["column"]))), 256))
2399
+ ]),
2400
+ _: 3
2401
+ }, 8, ["data", "onSelectionChange"])),
2402
+ (e == null ? void 0 : e.isShowPagination) ?? !1 ? (b(), U(z, {
2403
+ key: 0,
2404
+ onSizeChange: m,
2405
+ onCurrentChange: h,
2406
+ "current-page": (e == null ? void 0 : e.currentPage) ?? 1,
2407
+ "page-sizes": [5, 10, 20, 50, 100],
2408
+ "page-size": (e == null ? void 0 : e.pageSize) ?? 10,
2409
+ layout: "total, sizes, prev, pager, next, jumper",
2410
+ total: (e == null ? void 0 : e.total) ?? 0
2411
+ }, null, 8, ["current-page", "page-size", "total"])) : ee("", !0)
2412
+ ]);
2413
+ };
2414
+ }
2415
+ }, Ho = /* @__PURE__ */ Oe(Uo, [["__scopeId", "data-v-4b3d7a83"]]), Wo = {
2416
+ __name: "index",
2417
+ props: {
2418
+ value: String,
2419
+ content: {
2420
+ type: Array,
2421
+ default: () => []
2422
+ },
2423
+ isEdit: {
2424
+ type: Boolean,
2425
+ default: !0
2426
+ }
2427
+ },
2428
+ emits: ["dbChange"],
2429
+ setup(o, { emit: t }) {
2430
+ const e = o, n = L([]);
2431
+ De(
2432
+ () => {
2433
+ var r;
2434
+ return (r = e == null ? void 0 : e.content) == null ? void 0 : r.tableData;
2435
+ },
2436
+ () => {
2437
+ var r, l, c, s;
2438
+ ((l = (r = e == null ? void 0 : e.content) == null ? void 0 : r.tableData) == null ? void 0 : l.length) === 0 || !((c = e == null ? void 0 : e.content) != null && c.tableData) || (n.value = me((s = e == null ? void 0 : e.content) == null ? void 0 : s.tableData));
2439
+ },
2440
+ { deep: !0, immediate: !0 }
2441
+ );
2442
+ const a = t, i = (r) => {
2443
+ var d, h, v, m;
2444
+ if (((d = e == null ? void 0 : e.content) == null ? void 0 : d.dbType) !== "edit" || !n.value || ((h = n.value) == null ? void 0 : h.length) === 0) return;
2445
+ let l = n.value, c = [];
2446
+ ((v = l == null ? void 0 : l.filter((f) => (f == null ? void 0 : f.tableEditType) === "edit")) == null ? void 0 : v.length) !== (((m = e == null ? void 0 : e.content) == null ? void 0 : m.editNumber) ?? 1) && (l = l == null ? void 0 : l.map((f) => ((f == null ? void 0 : f.id) === (r == null ? void 0 : r.id) && (f.tableEditType = "edit", c.push(f)), f)), a("dbChange", {
2447
+ content: l,
2448
+ item: c
2449
+ }));
2450
+ };
2451
+ return (r, l) => {
2452
+ var c, s, d, h, v, m, f;
2453
+ return b(), B(ce, null, [
2454
+ ue(r.$slots, `${(c = e == null ? void 0 : e.content) == null ? void 0 : c.value}_tableHeader`),
2455
+ (b(), U(Ho, {
2456
+ columns: ((s = e == null ? void 0 : e.content) == null ? void 0 : s.columns) ?? [],
2457
+ tableData: n.value ?? [],
2458
+ currentPage: (d = e == null ? void 0 : e.content) == null ? void 0 : d.currentPage,
2459
+ total: (h = e == null ? void 0 : e.content) == null ? void 0 : h.total,
2460
+ pageSize: (v = e == null ? void 0 : e.content) == null ? void 0 : v.pageSize,
2461
+ isShowPagination: (m = e == null ? void 0 : e.content) == null ? void 0 : m.isShowPagination,
2462
+ isShowEdit: !1,
2463
+ isMoveColumn: (f = e == null ? void 0 : e.content) == null ? void 0 : f.isMoveColumn,
2464
+ isShowDelete: !1,
2465
+ onDoClickRow: i,
2466
+ key: n.value ?? []
2467
+ }, {
2468
+ actions: R(({ item: _ }) => {
2469
+ var x;
2470
+ return [
2471
+ ue(r.$slots, `${(x = e == null ? void 0 : e.content) == null ? void 0 : x.value}_action`, { item: _ })
2472
+ ];
2473
+ }),
2474
+ _: 3
2475
+ }, 8, ["columns", "tableData", "currentPage", "total", "pageSize", "isShowPagination", "isMoveColumn"]))
2476
+ ], 64);
2477
+ };
2478
+ }
2479
+ }, Ke = L(0), At = (o) => o == null ? void 0 : o.map((e) => (Ke.value++, Array.isArray(e) ? At(e) : {
2480
+ label: (e == null ? void 0 : e.label) ?? "",
2481
+ prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : (e == null ? void 0 : e.prop) ?? "a" + Ke.value,
2482
+ width: (e == null ? void 0 : e.label) === "操作" ? "200" : e != null && e.width ? parseInt(e.width) : "",
2483
+ fixed: (e == null ? void 0 : e.fixed) ?? void 0,
2484
+ sortable: (e == null ? void 0 : e.sortable) ?? !1,
2485
+ align: (e == null ? void 0 : e.align) ?? "center",
2486
+ showOverflowTooltip: (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
2487
+ isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
2488
+ isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
2489
+ isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
2490
+ id: (e == null ? void 0 : e.id) ?? Ke.value,
2491
+ type: (e == null ? void 0 : e.label) === "操作" ? "operate" : void 0,
2492
+ formType: (e == null ? void 0 : e.formType) ?? "",
2493
+ isHidden: e == null ? void 0 : e.isHidden,
2494
+ options: (e == null ? void 0 : e.options) ?? [],
2495
+ children: At(e.children) ?? void 0
2496
+ })), Xa = (o) => {
2497
+ const t = [];
2498
+ function e(n) {
2499
+ if (Array.isArray(n))
2500
+ for (const a of n)
2501
+ !a.children || a.children.length === 0 ? t.push(a) : e(a.children);
2502
+ }
2503
+ return e(o), t;
2504
+ }, Ka = (o) => me(o).map((e) => (Array.isArray(e) && (e = e.map((n) => (Array.isArray(n) ? n = At(n) : (n = {
2505
+ label: (n == null ? void 0 : n.label) ?? "",
2506
+ prop: (n == null ? void 0 : n.label) === "操作" ? "operate" : (n == null ? void 0 : n.prop) ?? "a" + Ke.value,
2507
+ width: (n == null ? void 0 : n.label) === "操作" ? "200" : n != null && n.width ? parseInt(n.width) : "",
2508
+ fixed: (n == null ? void 0 : n.fixed) ?? void 0,
2509
+ sortable: (n == null ? void 0 : n.sortable) ?? !1,
2510
+ align: (n == null ? void 0 : n.align) ?? "center",
2511
+ showOverflowTooltip: (n == null ? void 0 : n.showOverflowTooltip) ?? !0,
2512
+ isNotDrag: (n == null ? void 0 : n.isNotDrag) ?? !1,
2513
+ isEditCol: (n == null ? void 0 : n.isEditCol) ?? !1,
2514
+ isOperate: (n == null ? void 0 : n.isOperate) ?? !1,
2515
+ id: (n == null ? void 0 : n.id) ?? Ke.value,
2516
+ type: (n == null ? void 0 : n.label) === "操作" ? "operate" : void 0,
2517
+ formType: (n == null ? void 0 : n.formType) ?? "",
2518
+ isHidden: n == null ? void 0 : n.isHidden,
2519
+ options: (n == null ? void 0 : n.options) ?? [],
2520
+ children: At(n.children)
2521
+ }, Ke.value++), n))), e)), jo = (o) => {
2522
+ function t(e, n = []) {
2523
+ if (!e || e.length === 0) return [];
2524
+ let a = n;
2525
+ return Array.isArray(e) && (e == null || e.forEach((i) => {
2526
+ var r;
2527
+ i != null && i.children && ((r = i.children) == null ? void 0 : r.length) > 0 ? a = t(i == null ? void 0 : i.children, a) : a.push(i);
2528
+ })), a;
2529
+ }
2530
+ return t(o);
2531
+ }, Go = (o) => o == null ? void 0 : o.map((e) => (e = Wn(e), e)), Un = async () => {
2532
+ var e, n, a, i, r, l, c, s, d, h, v, m;
2533
+ let o;
2534
+ const t = await Zt({
2535
+ key: {
2536
+ type: "structure",
2537
+ pageKey: "menu",
2538
+ systemKey: sessionStorage.getItem("systemKey")
2539
+ }
2540
+ });
2541
+ return (l = (r = (i = (a = (n = (e = t.data.result) == null ? void 0 : e[0]) == null ? void 0 : n.value) == null ? void 0 : a.pageData) == null ? void 0 : i.compData) == null ? void 0 : r[0]) != null && l.contents && (o = Go((m = (v = (h = (d = (s = (c = t.data.result) == null ? void 0 : c[0]) == null ? void 0 : s.value) == null ? void 0 : d.pageData) == null ? void 0 : h.compData) == null ? void 0 : v[0]) == null ? void 0 : m.contents)), o;
2542
+ }, Yo = (o) => {
2543
+ var n, a, i;
2544
+ const t = (a = (n = o == null ? void 0 : o.compData) == null ? void 0 : n.find((r) => (r == null ? void 0 : r.key) === "header")) == null ? void 0 : a.contents;
2545
+ return {
2546
+ label: o == null ? void 0 : o.name,
2547
+ value: o == null ? void 0 : o.name,
2548
+ children: t != null && t.every((r) => !Array.isArray(r)) ? t == null ? void 0 : t.map((r) => ({
2549
+ label: r == null ? void 0 : r.label,
2550
+ value: r == null ? void 0 : r.label
2551
+ })) : (i = jo(t == null ? void 0 : t[0])) == null ? void 0 : i.map((r) => ({
2552
+ label: r == null ? void 0 : r.label,
2553
+ value: r == null ? void 0 : r.label
2554
+ }))
2555
+ };
2556
+ }, Hn = async (o) => {
2557
+ var n;
2558
+ let t = "";
2559
+ return (n = me(o)) == null || n.forEach((a) => {
2560
+ t = t === "" ? t + a : t + "/" + a;
2561
+ }), await Zt({
2562
+ key: {
2563
+ type: "structure",
2564
+ pageKey: t,
2565
+ systemKey: sessionStorage.getItem("systemKey"),
2566
+ parentTable: ""
2567
+ }
2568
+ });
2569
+ }, Ja = async (o) => {
2570
+ var n, a, i;
2571
+ const t = await Hn(o);
2572
+ let e = [];
2573
+ return ((n = t == null ? void 0 : t.data) == null ? void 0 : n.type) === "success" && (e = (i = (a = t.data.result) == null ? void 0 : a.map((r) => r.value.pageData)) == null ? void 0 : i.filter((r) => (r == null ? void 0 : r.comp) === "Table"), e = e == null ? void 0 : e.map((r) => Yo(r))), e;
2574
+ }, Za = [
2575
+ {
2576
+ key: "单选",
2577
+ value: "Select"
2578
+ },
2579
+ {
2580
+ key: "日期",
2581
+ value: "Date"
2582
+ },
2583
+ {
2584
+ key: "长文本",
2585
+ value: "TextArea"
2586
+ },
2587
+ {
2588
+ key: "上传",
2589
+ value: "Upload"
2590
+ }
2591
+ ], gt = [
2592
+ {
2593
+ label: "输入框",
2594
+ value: "Input"
2595
+ },
2596
+ {
2597
+ label: "单选框",
2598
+ value: "Select"
2599
+ },
2600
+ {
2601
+ label: "日期选择器",
2602
+ value: "Date"
2603
+ },
2604
+ {
2605
+ label: "长文本",
2606
+ value: "TextArea"
2607
+ },
2608
+ {
2609
+ label: "附件选择器",
2610
+ value: "Upload"
2611
+ }
2612
+ ], qo = [
2613
+ {
2614
+ key: "label",
2615
+ label: "标签名",
2616
+ type: "Input"
2617
+ },
2618
+ {
2619
+ key: "type",
2620
+ label: "类型",
2621
+ type: "Select",
2622
+ options: gt
2623
+ },
2624
+ {
2625
+ key: "originalContent",
2626
+ label: "初始值",
2627
+ type: "Input"
2628
+ },
2629
+ {
2630
+ key: "value",
2631
+ label: "固定值",
2632
+ type: "Input"
2633
+ }
2634
+ ], Xo = async () => {
2635
+ const o = await Un();
2636
+ return [
2637
+ {
2638
+ key: "label",
2639
+ label: "标签名",
2640
+ type: "Input"
2641
+ },
2642
+ {
2643
+ key: "type",
2644
+ label: "类型",
2645
+ type: "Select",
2646
+ options: gt
2647
+ },
2648
+ {
2649
+ key: "originalContent",
2650
+ label: "初始值",
2651
+ type: "Select"
2652
+ },
2653
+ {
2654
+ key: "selectRelateType",
2655
+ label: "下拉绑定类型",
2656
+ type: "Select",
2657
+ options: [
2658
+ {
2659
+ label: "关联绑定列",
2660
+ value: "关联绑定列"
2661
+ },
2662
+ {
2663
+ label: "自定义绑定",
2664
+ value: "自定义绑定"
2665
+ }
2666
+ ]
2667
+ },
2668
+ {
2669
+ key: "menuSelect",
2670
+ label: "菜单选项",
2671
+ type: "cascader",
2672
+ options: o
2673
+ },
2674
+ {
2675
+ key: "groupSelect",
2676
+ label: "组信息选项",
2677
+ type: "cascader",
2678
+ options: []
2679
+ },
2680
+ {
2681
+ key: "contents",
2682
+ label: "选项值",
2683
+ type: "Input"
2684
+ }
2685
+ ];
2686
+ }, Ko = async () => [
2687
+ {
2688
+ value: "",
2689
+ id: "v1",
2690
+ label: "菜单选项",
2691
+ name: "菜单选项",
2692
+ type: "cascader",
2693
+ contents: await Un()
2694
+ },
2695
+ {
2696
+ value: "",
2697
+ id: "v2",
2698
+ label: "组信息选项",
2699
+ name: "组信息选项",
2700
+ type: "cascader",
2701
+ contents: []
2702
+ },
2703
+ {
2704
+ value: "",
2705
+ id: "v2",
2706
+ label: "选项值",
2707
+ name: "选项值",
2708
+ type: "Input",
2709
+ contents: []
2710
+ }
2711
+ ], Jo = jt(async () => await Xo()), Zo = [
2712
+ {
2713
+ key: "label",
2714
+ label: "标签名",
2715
+ type: "Input"
2716
+ },
2717
+ {
2718
+ key: "type",
2719
+ label: "类型",
2720
+ type: "Select",
2721
+ options: gt
2722
+ },
2723
+ {
2724
+ key: "originalContent",
2725
+ label: "初始值",
2726
+ type: "Date"
2727
+ }
2728
+ ], Qo = [
2729
+ {
2730
+ key: "label",
2731
+ label: "标签名",
2732
+ type: "Input"
2733
+ },
2734
+ {
2735
+ key: "type",
2736
+ label: "类型",
2737
+ type: "Select",
2738
+ options: gt
2739
+ },
2740
+ {
2741
+ key: "originalContent",
2742
+ label: "初始值",
2743
+ type: "Input"
2744
+ }
2745
+ ], ea = [
2746
+ {
2747
+ key: "label",
2748
+ label: "标签名",
2749
+ type: "Input"
2750
+ },
2751
+ {
2752
+ key: "type",
2753
+ label: "类型",
2754
+ type: "Select",
2755
+ options: gt
2756
+ }
2757
+ ], Qa = [
2758
+ {
2759
+ key: "Input",
2760
+ value: qo
2761
+ },
2762
+ {
2763
+ key: "Select",
2764
+ value: Jo
2765
+ },
2766
+ {
2767
+ key: "Date",
2768
+ value: Zo
2769
+ },
2770
+ {
2771
+ key: "TextArea",
2772
+ value: Qo
2773
+ },
2774
+ {
2775
+ key: "Upload",
2776
+ value: ea
2777
+ }
2778
+ ], ta = [
2779
+ {
2780
+ value: "normal",
2781
+ label: "自定义"
2782
+ },
2783
+ {
2784
+ value: "add",
2785
+ label: "新增"
2786
+ },
2787
+ {
2788
+ value: "fix",
2789
+ label: "修改"
2790
+ },
2791
+ {
2792
+ value: "view",
2793
+ label: "查看"
2794
+ },
2795
+ {
2796
+ value: "delete",
2797
+ label: "删除"
2798
+ }
2799
+ ], e0 = [
2800
+ {
2801
+ key: "label",
2802
+ label: "按钮名",
2803
+ type: "Input"
2804
+ },
2805
+ {
2806
+ key: "type",
2807
+ label: "类型",
2808
+ type: "Select",
2809
+ options: ta
2810
+ },
2811
+ {
2812
+ key: "background",
2813
+ label: "颜色",
2814
+ type: "Color"
2815
+ }
2816
+ ], t0 = (o) => {
2817
+ var e, n, a, i, r, l, c, s;
2818
+ let t = me(o);
2819
+ if (((e = t == null ? void 0 : t.find((d) => (d == null ? void 0 : d.name) === "类型")) == null ? void 0 : e.type) === "Select" && ((i = (a = (n = me(t)) == null ? void 0 : n.find((d) => (d == null ? void 0 : d.name) === "选项值")) == null ? void 0 : a.value) == null ? void 0 : i.length) > 0) {
2820
+ const d = (s = (c = (l = (r = me(t)) == null ? void 0 : r.find((h) => (h == null ? void 0 : h.name) === "选项值")) == null ? void 0 : l.value) == null ? void 0 : c.split(",")) == null ? void 0 : s.map((h) => ({
2821
+ label: h,
2822
+ value: h
2823
+ }));
2824
+ t = t == null ? void 0 : t.map((h) => ((h == null ? void 0 : h.name) === "初始值" && (h.contents = d, h.value = (h == null ? void 0 : h.value) ?? ""), h));
2825
+ }
2826
+ return t;
2827
+ }, Wn = (o) => {
2828
+ var a;
2829
+ let t = {};
2830
+ const e = (a = o == null ? void 0 : o.filter((i) => !Array.isArray(i))) == null ? void 0 : a[0];
2831
+ t.label = e, t.value = e;
2832
+ const n = o == null ? void 0 : o.filter((i) => Array.isArray(i));
2833
+ return n && (n == null ? void 0 : n.length) > 0 && (t.children = n == null ? void 0 : n.map((i) => Wn(i))), t;
2834
+ }, n0 = async (o) => {
2835
+ var i, r, l, c;
2836
+ let t = me(o);
2837
+ const e = (i = o == null ? void 0 : o.find((s) => (s == null ? void 0 : s.name) === "下拉绑定类型")) == null ? void 0 : i.value, n = (r = o == null ? void 0 : o.find((s) => (s == null ? void 0 : s.name) === "类型")) == null ? void 0 : r.value, a = await Ko();
2838
+ return n === "Select" && e === "" ? t = t == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.name) !== "菜单选项" && (s == null ? void 0 : s.name) !== "组信息选项" && (s == null ? void 0 : s.name) !== "选项值") : n === "Select" && e === "关联绑定列" ? t != null && t.find((s) => (s == null ? void 0 : s.name) === "菜单选项" || (s == null ? void 0 : s.name) === "组信息选项") ? t = (l = me(t)) == null ? void 0 : l.filter((s) => (s == null ? void 0 : s.name) !== "选项值") : t = [...me(t), ...a].filter((s) => (s == null ? void 0 : s.name) !== "选项值") : n === "Select" && e === "自定义绑定" && (t != null && t.find((s) => (s == null ? void 0 : s.name) === "选项值") ? t = (c = me(t)) == null ? void 0 : c.filter((s) => (s == null ? void 0 : s.name) !== "菜单选项" && (s == null ? void 0 : s.name) !== "组信息选项") : t = [...me(t), ...a].filter((s) => (s == null ? void 0 : s.name) !== "菜单选项" && (s == null ? void 0 : s.name) !== "组信息选项")), t;
2839
+ }, na = async (o) => {
2840
+ var n, a, i;
2841
+ const t = await Zt({
2842
+ key: {
2843
+ pageKey: o == null ? void 0 : o.path,
2844
+ tableId: o == null ? void 0 : o.id,
2845
+ type: "data",
2846
+ systemKey: sessionStorage.getItem("systemKey")
2847
+ }
2848
+ });
2849
+ let e = [];
2850
+ return ((n = t == null ? void 0 : t.data) == null ? void 0 : n.type) === "success" && (e = (i = (a = t == null ? void 0 : t.data) == null ? void 0 : a.result) == null ? void 0 : i.map((r) => {
2851
+ var l;
2852
+ return (l = r == null ? void 0 : r.value) == null ? void 0 : l.tableData;
2853
+ })), e = e == null ? void 0 : e.map((r) => ({
2854
+ label: r == null ? void 0 : r[o == null ? void 0 : o.columnType],
2855
+ value: r == null ? void 0 : r[o == null ? void 0 : o.columnType]
2856
+ })), e;
2857
+ }, oa = async (o) => {
2858
+ var a, i, r, l, c;
2859
+ let t = "", e = [];
2860
+ (a = o == null ? void 0 : o.menuSelect) == null || a.forEach((s) => {
2861
+ t = t === "" ? t + s : t + "/" + s;
2862
+ });
2863
+ let n = "";
2864
+ return (l = (r = (i = await Hn(o == null ? void 0 : o.menuSelect)) == null ? void 0 : i.data) == null ? void 0 : r.result) == null || l.forEach((s) => {
2865
+ var d, h, v;
2866
+ ((h = (d = s == null ? void 0 : s.value) == null ? void 0 : d.pageData) == null ? void 0 : h.name) === (((v = o == null ? void 0 : o.groupSelect) == null ? void 0 : v[0]) ?? "") && (n = s == null ? void 0 : s.id);
2867
+ }), n !== "" && (e = na({
2868
+ path: t,
2869
+ id: n,
2870
+ columnType: (c = o == null ? void 0 : o.groupSelect) == null ? void 0 : c[1]
2871
+ })), e;
2872
+ }, aa = {
2873
+ __name: "index",
2874
+ props: {
2875
+ value: String,
2876
+ content: {
2877
+ type: Array,
2878
+ default: () => []
2879
+ },
2880
+ isEdit: {
2881
+ type: Boolean,
2882
+ default: !0
2883
+ },
2884
+ optionUrl: {
2885
+ type: Object,
2886
+ default: () => {
2887
+ }
2888
+ }
2889
+ },
2890
+ emits: ["blurChange"],
2891
+ setup(o, { emit: t }) {
2892
+ const e = o, n = t, a = L(e.value), i = L();
2893
+ et(() => {
2894
+ i.value = e == null ? void 0 : e.content;
2895
+ });
2896
+ const r = () => {
2897
+ n("blurChange");
2898
+ };
2899
+ return De(
2900
+ () => e.optionUrl,
2901
+ async () => {
2902
+ var l, c;
2903
+ ((c = (l = e.optionUrl) == null ? void 0 : l.menuSelect) == null ? void 0 : c.length) > 0 && (i.value = await oa(e.optionUrl));
2904
+ },
2905
+ { immediate: !0, deep: !0 }
2906
+ ), (l, c) => {
2907
+ const s = j("el-option"), d = j("el-select");
2908
+ return b(), U(d, {
2909
+ modelValue: a.value,
2910
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => a.value = h),
2911
+ clearable: "",
2912
+ placeholder: "请选择下拉内容...",
2913
+ style: { width: "100%" }
2914
+ }, {
2915
+ default: R(() => [
2916
+ (b(!0), B(ce, null, le(i.value, (h) => (b(), U(s, {
2917
+ key: h.value,
2918
+ label: h.label,
2919
+ value: h.value,
2920
+ onBlur: r
2921
+ }, null, 8, ["label", "value"]))), 128))
2922
+ ]),
2923
+ _: 1
2924
+ }, 8, ["modelValue"]);
2925
+ };
2926
+ }
2927
+ }, ia = /* @__PURE__ */ Qe({
2928
+ __name: "index",
2929
+ props: {
2930
+ value: String,
2931
+ config: Object,
2932
+ content: {
2933
+ type: Array,
2934
+ default: () => []
2935
+ },
2936
+ isEdit: {
2937
+ type: Boolean,
2938
+ default: !0
2939
+ }
2940
+ },
2941
+ emits: ["changeVisible"],
2942
+ setup(o, { emit: t }) {
2943
+ const e = o, n = L(e.value), a = t, i = L({
2944
+ checkStrictly: !0
2945
+ }), r = (l) => {
2946
+ a("changeVisible", l);
2947
+ };
2948
+ return (l, c) => {
2949
+ const s = j("el-cascader");
2950
+ return b(), U(s, {
2951
+ modelValue: n.value,
2952
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => n.value = d),
2953
+ clearable: "",
2954
+ props: i.value,
2955
+ options: e == null ? void 0 : e.content,
2956
+ style: { width: "100%" },
2957
+ onVisibleChange: r
2958
+ }, null, 8, ["modelValue", "props", "options"]);
2959
+ };
2960
+ }
2961
+ }), ra = {
2962
+ __name: "index",
2963
+ props: {
2964
+ value: String,
2965
+ content: {
2966
+ type: Array,
2967
+ default: () => []
2968
+ },
2969
+ isEdit: {
2970
+ type: Boolean,
2971
+ default: !0
2972
+ }
2973
+ },
2974
+ setup(o) {
2975
+ const t = o, e = L(t.value);
2976
+ return (n, a) => {
2977
+ const i = j("el-option"), r = j("el-select");
2978
+ return b(), U(r, {
2979
+ modelValue: e.value,
2980
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => e.value = l),
2981
+ multiple: "",
2982
+ clearable: "",
2983
+ placeholder: "请选择下拉内容...",
2984
+ style: { width: "100%" }
2985
+ }, {
2986
+ default: R(() => [
2987
+ (b(!0), B(ce, null, le(t == null ? void 0 : t.content, (l) => (b(), U(i, {
2988
+ key: l.value,
2989
+ label: l.label,
2990
+ value: l.value
2991
+ }, null, 8, ["label", "value"]))), 128))
2992
+ ]),
2993
+ _: 1
2994
+ }, 8, ["modelValue"]);
2995
+ };
2996
+ }
2997
+ }, la = {
2998
+ __name: "index",
2999
+ props: {
3000
+ value: String,
3001
+ content: {
3002
+ type: Array,
3003
+ default: () => []
3004
+ },
3005
+ isEdit: {
3006
+ type: Boolean,
3007
+ default: !0
3008
+ }
3009
+ },
3010
+ setup(o) {
3011
+ const e = L(o.value);
3012
+ return (n, a) => {
3013
+ const i = j("el-date-picker");
3014
+ return b(), U(i, {
3015
+ modelValue: e.value,
3016
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r),
3017
+ type: "date",
3018
+ placeholder: "请选择日期",
3019
+ format: "YYYY-MM-DD",
3020
+ style: { width: "100%" }
3021
+ }, null, 8, ["modelValue"]);
3022
+ };
3023
+ }
3024
+ }, sa = {
3025
+ __name: "index",
3026
+ props: {
3027
+ value: String,
3028
+ content: {
3029
+ type: Array,
3030
+ default: () => []
3031
+ },
3032
+ isEdit: {
3033
+ type: Boolean,
3034
+ default: !0
3035
+ }
3036
+ },
3037
+ setup(o) {
3038
+ const e = L(o.value);
3039
+ return (n, a) => {
3040
+ const i = j("el-date-picker");
3041
+ return b(), U(i, {
3042
+ modelValue: e.value,
3043
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r),
3044
+ type: "datetime",
3045
+ placeholder: "请选择时间",
3046
+ format: "YYYY-MM-DD HH:mm:ss",
3047
+ style: { width: "100%" }
3048
+ }, null, 8, ["modelValue"]);
3049
+ };
3050
+ }
3051
+ }, ca = {
3052
+ __name: "index",
3053
+ props: {
3054
+ value: String,
3055
+ content: {
3056
+ type: Array,
3057
+ default: () => []
3058
+ },
3059
+ isEdit: {
3060
+ type: Boolean,
3061
+ default: !0
3062
+ }
3063
+ },
3064
+ setup(o) {
3065
+ const t = o, e = L(t.value);
3066
+ return (n, a) => {
3067
+ const i = j("el-input");
3068
+ return b(), U(i, {
3069
+ modelValue: e.value,
3070
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => e.value = r),
3071
+ type: "textarea",
3072
+ disabled: !(t != null && t.isEdit)
3073
+ }, null, 8, ["modelValue", "disabled"]);
3074
+ };
3075
+ }
3076
+ }, ua = /* @__PURE__ */ Oe(ca, [["__scopeId", "data-v-917c453d"]]), da = { class: "dialog-title" }, ha = {
3077
+ __name: "index",
3078
+ props: {
3079
+ title: {
3080
+ type: String,
3081
+ default: ""
3082
+ },
3083
+ dialogWidth: {
3084
+ type: Number,
3085
+ default: 600
3086
+ },
3087
+ visible: {
3088
+ type: Boolean,
3089
+ default: !1
3090
+ },
3091
+ fullScreen: {
3092
+ type: Boolean,
3093
+ default: !1
3094
+ }
3095
+ },
3096
+ emits: ["beforeDestroy"],
3097
+ setup(o, { emit: t }) {
3098
+ const e = o, n = t, a = L(!1), i = () => {
3099
+ n("beforeDestroy");
3100
+ };
3101
+ return De(
3102
+ () => e == null ? void 0 : e.visible,
3103
+ () => {
3104
+ a.value = e == null ? void 0 : e.visible;
3105
+ },
3106
+ { deep: !0, immediate: !0 }
3107
+ ), (r, l) => {
3108
+ const c = j("el-dialog");
3109
+ return b(), U(c, {
3110
+ modelValue: a.value,
3111
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => a.value = s),
3112
+ width: e == null ? void 0 : e.dialogWidth,
3113
+ "before-close": i,
3114
+ draggable: "",
3115
+ fullscreen: e == null ? void 0 : e.fullScreen,
3116
+ "destroy-on-close": !0
3117
+ }, {
3118
+ default: R(() => [
3119
+ ue(r.$slots, "default", {}, void 0, !0)
3120
+ ]),
3121
+ header: R(() => [
3122
+ ae("div", da, Se(e == null ? void 0 : e.title), 1)
3123
+ ]),
3124
+ footer: R(() => [
3125
+ ue(r.$slots, "footer", {}, void 0, !0)
3126
+ ]),
3127
+ _: 3
3128
+ }, 8, ["modelValue", "width", "fullscreen"]);
3129
+ };
3130
+ }
3131
+ }, jn = /* @__PURE__ */ Oe(ha, [["__scopeId", "data-v-bc27a102"]]), fa = { class: "upload" }, pa = { class: "upload-icon" }, ga = { class: "dialog-footer" }, va = {
3132
+ __name: "index",
3133
+ props: {
3134
+ value: String,
3135
+ content: {
3136
+ type: Array,
3137
+ default: () => []
3138
+ },
3139
+ isEdit: {
3140
+ type: Boolean,
3141
+ default: !0
3142
+ }
3143
+ },
3144
+ emits: ["uploadContents"],
3145
+ setup(o, { emit: t }) {
3146
+ const e = o, n = t;
3147
+ L(e.value);
3148
+ const a = L([]), i = L(!1), r = () => {
3149
+ i.value = !0;
3150
+ }, l = async () => {
3151
+ i.value = !1, Cn.success("上传成功"), n("uploadContents", a.value), a.value = [];
3152
+ }, c = () => {
3153
+ i.value = !1, a.value = [];
3154
+ }, s = (d, h) => {
3155
+ h.value = h;
3156
+ };
3157
+ return (d, h) => {
3158
+ const v = j("el-button"), m = j("el-icon"), f = j("el-upload");
3159
+ return b(), B("div", null, [
3160
+ re(v, {
3161
+ type: "primary",
3162
+ onClick: r
3163
+ }, {
3164
+ default: R(() => [
3165
+ ae("div", fa, [
3166
+ h[1] || (h[1] = ae("div", { class: "upload-word" }, Se("上传"), -1)),
3167
+ ae("div", pa, [
3168
+ re(Gt(un))
3169
+ ])
3170
+ ])
3171
+ ]),
3172
+ _: 1
3173
+ }),
3174
+ re(jn, {
3175
+ visible: i.value,
3176
+ onBeforeDestroy: c,
3177
+ title: "上传文件"
3178
+ }, {
3179
+ default: R(() => [
3180
+ re(f, {
3181
+ "file-list": a.value,
3182
+ "onUpdate:fileList": h[0] || (h[0] = (_) => a.value = _),
3183
+ multiple: "",
3184
+ drag: "",
3185
+ action: "",
3186
+ "auto-upload": !1,
3187
+ limit: 1,
3188
+ "on-change": s
3189
+ }, {
3190
+ tip: R(() => h[2] || (h[2] = [
3191
+ ae("div", { class: "el-upload__tip tip-content" }, " 请上传大小不超过10MB的文件 ", -1)
3192
+ ])),
3193
+ default: R(() => [
3194
+ re(m, { class: "el-icon--upload" }, {
3195
+ default: R(() => [
3196
+ re(Gt(un))
3197
+ ]),
3198
+ _: 1
3199
+ }),
3200
+ h[3] || (h[3] = ae("div", { class: "el-upload__text" }, [
3201
+ Ue(" 将文件拖到此处或"),
3202
+ ae("em", null, "点击上传")
3203
+ ], -1))
3204
+ ]),
3205
+ _: 1,
3206
+ __: [3]
3207
+ }, 8, ["file-list"])
3208
+ ]),
3209
+ footer: R(() => [
3210
+ ae("div", ga, [
3211
+ re(v, { onClick: c }, {
3212
+ default: R(() => h[4] || (h[4] = [
3213
+ Ue(Se("取消"))
3214
+ ])),
3215
+ _: 1,
3216
+ __: [4]
3217
+ }),
3218
+ re(v, {
3219
+ type: "primary",
3220
+ onClick: l
3221
+ }, {
3222
+ default: R(() => h[5] || (h[5] = [
3223
+ Ue(Se("确认"))
3224
+ ])),
3225
+ _: 1,
3226
+ __: [5]
3227
+ })
3228
+ ])
3229
+ ]),
3230
+ _: 1
3231
+ }, 8, ["visible"])
3232
+ ]);
3233
+ };
3234
+ }
3235
+ }, ma = /* @__PURE__ */ Oe(va, [["__scopeId", "data-v-9a2c5627"]]);
3236
+ /*!
3237
+ * Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad
3238
+ * (c) 2020 Szymon Nowak | Released under the MIT license
3239
+ */
3240
+ class It {
3241
+ constructor(t, e, n) {
3242
+ this.x = t, this.y = e, this.time = n || Date.now();
3243
+ }
3244
+ distanceTo(t) {
3245
+ return Math.sqrt(Math.pow(this.x - t.x, 2) + Math.pow(this.y - t.y, 2));
3246
+ }
3247
+ equals(t) {
3248
+ return this.x === t.x && this.y === t.y && this.time === t.time;
3249
+ }
3250
+ velocityFrom(t) {
3251
+ return this.time !== t.time ? this.distanceTo(t) / (this.time - t.time) : 0;
3252
+ }
3253
+ }
3254
+ class on {
3255
+ constructor(t, e, n, a, i, r) {
3256
+ this.startPoint = t, this.control2 = e, this.control1 = n, this.endPoint = a, this.startWidth = i, this.endWidth = r;
3257
+ }
3258
+ static fromPoints(t, e) {
3259
+ const n = this.calculateControlPoints(t[0], t[1], t[2]).c2, a = this.calculateControlPoints(t[1], t[2], t[3]).c1;
3260
+ return new on(t[1], n, a, t[2], e.start, e.end);
3261
+ }
3262
+ static calculateControlPoints(t, e, n) {
3263
+ const a = t.x - e.x, i = t.y - e.y, r = e.x - n.x, l = e.y - n.y, c = { x: (t.x + e.x) / 2, y: (t.y + e.y) / 2 }, s = { x: (e.x + n.x) / 2, y: (e.y + n.y) / 2 }, d = Math.sqrt(a * a + i * i), h = Math.sqrt(r * r + l * l), v = c.x - s.x, m = c.y - s.y, f = h / (d + h), _ = { x: s.x + v * f, y: s.y + m * f }, x = e.x - _.x, T = e.y - _.y;
3264
+ return {
3265
+ c1: new It(c.x + x, c.y + T),
3266
+ c2: new It(s.x + x, s.y + T)
3267
+ };
3268
+ }
3269
+ length() {
3270
+ let e = 0, n, a;
3271
+ for (let i = 0; i <= 10; i += 1) {
3272
+ const r = i / 10, l = this.point(r, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), c = this.point(r, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
3273
+ if (i > 0) {
3274
+ const s = l - n, d = c - a;
3275
+ e += Math.sqrt(s * s + d * d);
3276
+ }
3277
+ n = l, a = c;
3278
+ }
3279
+ return e;
3280
+ }
3281
+ point(t, e, n, a, i) {
3282
+ return e * (1 - t) * (1 - t) * (1 - t) + 3 * n * (1 - t) * (1 - t) * t + 3 * a * (1 - t) * t * t + i * t * t * t;
3283
+ }
3284
+ }
3285
+ function ya(o, t = 250) {
3286
+ let e = 0, n = null, a, i, r;
3287
+ const l = () => {
3288
+ e = Date.now(), n = null, a = o.apply(i, r), n || (i = null, r = []);
3289
+ };
3290
+ return function(...s) {
3291
+ const d = Date.now(), h = t - (d - e);
3292
+ return i = this, r = s, h <= 0 || h > t ? (n && (clearTimeout(n), n = null), e = d, a = o.apply(i, r), n || (i = null, r = [])) : n || (n = window.setTimeout(l, h)), a;
3293
+ };
3294
+ }
3295
+ class $t {
3296
+ constructor(t, e = {}) {
3297
+ this.canvas = t, this.options = e, this._handleMouseDown = (n) => {
3298
+ n.which === 1 && (this._mouseButtonDown = !0, this._strokeBegin(n));
3299
+ }, this._handleMouseMove = (n) => {
3300
+ this._mouseButtonDown && this._strokeMoveUpdate(n);
3301
+ }, this._handleMouseUp = (n) => {
3302
+ n.which === 1 && this._mouseButtonDown && (this._mouseButtonDown = !1, this._strokeEnd(n));
3303
+ }, this._handleTouchStart = (n) => {
3304
+ if (n.preventDefault(), n.targetTouches.length === 1) {
3305
+ const a = n.changedTouches[0];
3306
+ this._strokeBegin(a);
3307
+ }
3308
+ }, this._handleTouchMove = (n) => {
3309
+ n.preventDefault();
3310
+ const a = n.targetTouches[0];
3311
+ this._strokeMoveUpdate(a);
3312
+ }, this._handleTouchEnd = (n) => {
3313
+ if (n.target === this.canvas) {
3314
+ n.preventDefault();
3315
+ const i = n.changedTouches[0];
3316
+ this._strokeEnd(i);
3317
+ }
3318
+ }, this.velocityFilterWeight = e.velocityFilterWeight || 0.7, this.minWidth = e.minWidth || 0.5, this.maxWidth = e.maxWidth || 2.5, this.throttle = "throttle" in e ? e.throttle : 16, this.minDistance = "minDistance" in e ? e.minDistance : 5, this.dotSize = e.dotSize || function() {
3319
+ return (this.minWidth + this.maxWidth) / 2;
3320
+ }, this.penColor = e.penColor || "black", this.backgroundColor = e.backgroundColor || "rgba(0,0,0,0)", this.onBegin = e.onBegin, this.onEnd = e.onEnd, this._strokeMoveUpdate = this.throttle ? ya($t.prototype._strokeUpdate, this.throttle) : $t.prototype._strokeUpdate, this._ctx = t.getContext("2d"), this.clear(), this.on();
3321
+ }
3322
+ clear() {
3323
+ const { _ctx: t, canvas: e } = this;
3324
+ t.fillStyle = this.backgroundColor, t.clearRect(0, 0, e.width, e.height), t.fillRect(0, 0, e.width, e.height), this._data = [], this._reset(), this._isEmpty = !0;
3325
+ }
3326
+ fromDataURL(t, e = {}, n) {
3327
+ const a = new Image(), i = e.ratio || window.devicePixelRatio || 1, r = e.width || this.canvas.width / i, l = e.height || this.canvas.height / i;
3328
+ this._reset(), a.onload = () => {
3329
+ this._ctx.drawImage(a, 0, 0, r, l), n && n();
3330
+ }, a.onerror = (c) => {
3331
+ n && n(c);
3332
+ }, a.src = t, this._isEmpty = !1;
3333
+ }
3334
+ toDataURL(t = "image/png", e) {
3335
+ switch (t) {
3336
+ case "image/svg+xml":
3337
+ return this._toSVG();
3338
+ default:
3339
+ return this.canvas.toDataURL(t, e);
3340
+ }
3341
+ }
3342
+ on() {
3343
+ this.canvas.style.touchAction = "none", this.canvas.style.msTouchAction = "none", window.PointerEvent ? this._handlePointerEvents() : (this._handleMouseEvents(), "ontouchstart" in window && this._handleTouchEvents());
3344
+ }
3345
+ off() {
3346
+ this.canvas.style.touchAction = "auto", this.canvas.style.msTouchAction = "auto", this.canvas.removeEventListener("pointerdown", this._handleMouseDown), this.canvas.removeEventListener("pointermove", this._handleMouseMove), document.removeEventListener("pointerup", this._handleMouseUp), this.canvas.removeEventListener("mousedown", this._handleMouseDown), this.canvas.removeEventListener("mousemove", this._handleMouseMove), document.removeEventListener("mouseup", this._handleMouseUp), this.canvas.removeEventListener("touchstart", this._handleTouchStart), this.canvas.removeEventListener("touchmove", this._handleTouchMove), this.canvas.removeEventListener("touchend", this._handleTouchEnd);
3347
+ }
3348
+ isEmpty() {
3349
+ return this._isEmpty;
3350
+ }
3351
+ fromData(t) {
3352
+ this.clear(), this._fromData(t, ({ color: e, curve: n }) => this._drawCurve({ color: e, curve: n }), ({ color: e, point: n }) => this._drawDot({ color: e, point: n })), this._data = t;
3353
+ }
3354
+ toData() {
3355
+ return this._data;
3356
+ }
3357
+ _strokeBegin(t) {
3358
+ const e = {
3359
+ color: this.penColor,
3360
+ points: []
3361
+ };
3362
+ typeof this.onBegin == "function" && this.onBegin(t), this._data.push(e), this._reset(), this._strokeUpdate(t);
3363
+ }
3364
+ _strokeUpdate(t) {
3365
+ if (this._data.length === 0) {
3366
+ this._strokeBegin(t);
3367
+ return;
3368
+ }
3369
+ const e = t.clientX, n = t.clientY, a = this._createPoint(e, n), i = this._data[this._data.length - 1], r = i.points, l = r.length > 0 && r[r.length - 1], c = l ? a.distanceTo(l) <= this.minDistance : !1, s = i.color;
3370
+ if (!l || !(l && c)) {
3371
+ const d = this._addPoint(a);
3372
+ l ? d && this._drawCurve({ color: s, curve: d }) : this._drawDot({ color: s, point: a }), r.push({
3373
+ time: a.time,
3374
+ x: a.x,
3375
+ y: a.y
3376
+ });
3377
+ }
3378
+ }
3379
+ _strokeEnd(t) {
3380
+ this._strokeUpdate(t), typeof this.onEnd == "function" && this.onEnd(t);
3381
+ }
3382
+ _handlePointerEvents() {
3383
+ this._mouseButtonDown = !1, this.canvas.addEventListener("pointerdown", this._handleMouseDown), this.canvas.addEventListener("pointermove", this._handleMouseMove), document.addEventListener("pointerup", this._handleMouseUp);
3384
+ }
3385
+ _handleMouseEvents() {
3386
+ this._mouseButtonDown = !1, this.canvas.addEventListener("mousedown", this._handleMouseDown), this.canvas.addEventListener("mousemove", this._handleMouseMove), document.addEventListener("mouseup", this._handleMouseUp);
3387
+ }
3388
+ _handleTouchEvents() {
3389
+ this.canvas.addEventListener("touchstart", this._handleTouchStart), this.canvas.addEventListener("touchmove", this._handleTouchMove), this.canvas.addEventListener("touchend", this._handleTouchEnd);
3390
+ }
3391
+ _reset() {
3392
+ this._lastPoints = [], this._lastVelocity = 0, this._lastWidth = (this.minWidth + this.maxWidth) / 2, this._ctx.fillStyle = this.penColor;
3393
+ }
3394
+ _createPoint(t, e) {
3395
+ const n = this.canvas.getBoundingClientRect();
3396
+ return new It(t - n.left, e - n.top, (/* @__PURE__ */ new Date()).getTime());
3397
+ }
3398
+ _addPoint(t) {
3399
+ const { _lastPoints: e } = this;
3400
+ if (e.push(t), e.length > 2) {
3401
+ e.length === 3 && e.unshift(e[0]);
3402
+ const n = this._calculateCurveWidths(e[1], e[2]), a = on.fromPoints(e, n);
3403
+ return e.shift(), a;
3404
+ }
3405
+ return null;
3406
+ }
3407
+ _calculateCurveWidths(t, e) {
3408
+ const n = this.velocityFilterWeight * e.velocityFrom(t) + (1 - this.velocityFilterWeight) * this._lastVelocity, a = this._strokeWidth(n), i = {
3409
+ end: a,
3410
+ start: this._lastWidth
3411
+ };
3412
+ return this._lastVelocity = n, this._lastWidth = a, i;
3413
+ }
3414
+ _strokeWidth(t) {
3415
+ return Math.max(this.maxWidth / (t + 1), this.minWidth);
3416
+ }
3417
+ _drawCurveSegment(t, e, n) {
3418
+ const a = this._ctx;
3419
+ a.moveTo(t, e), a.arc(t, e, n, 0, 2 * Math.PI, !1), this._isEmpty = !1;
3420
+ }
3421
+ _drawCurve({ color: t, curve: e }) {
3422
+ const n = this._ctx, a = e.endWidth - e.startWidth, i = Math.floor(e.length()) * 2;
3423
+ n.beginPath(), n.fillStyle = t;
3424
+ for (let r = 0; r < i; r += 1) {
3425
+ const l = r / i, c = l * l, s = c * l, d = 1 - l, h = d * d, v = h * d;
3426
+ let m = v * e.startPoint.x;
3427
+ m += 3 * h * l * e.control1.x, m += 3 * d * c * e.control2.x, m += s * e.endPoint.x;
3428
+ let f = v * e.startPoint.y;
3429
+ f += 3 * h * l * e.control1.y, f += 3 * d * c * e.control2.y, f += s * e.endPoint.y;
3430
+ const _ = Math.min(e.startWidth + s * a, this.maxWidth);
3431
+ this._drawCurveSegment(m, f, _);
3432
+ }
3433
+ n.closePath(), n.fill();
3434
+ }
3435
+ _drawDot({ color: t, point: e }) {
3436
+ const n = this._ctx, a = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
3437
+ n.beginPath(), this._drawCurveSegment(e.x, e.y, a), n.closePath(), n.fillStyle = t, n.fill();
3438
+ }
3439
+ _fromData(t, e, n) {
3440
+ for (const a of t) {
3441
+ const { color: i, points: r } = a;
3442
+ if (r.length > 1)
3443
+ for (let l = 0; l < r.length; l += 1) {
3444
+ const c = r[l], s = new It(c.x, c.y, c.time);
3445
+ this.penColor = i, l === 0 && this._reset();
3446
+ const d = this._addPoint(s);
3447
+ d && e({ color: i, curve: d });
3448
+ }
3449
+ else
3450
+ this._reset(), n({
3451
+ color: i,
3452
+ point: r[0]
3453
+ });
3454
+ }
3455
+ }
3456
+ _toSVG() {
3457
+ const t = this._data, e = Math.max(window.devicePixelRatio || 1, 1), n = 0, a = 0, i = this.canvas.width / e, r = this.canvas.height / e, l = document.createElementNS("http://www.w3.org/2000/svg", "svg");
3458
+ l.setAttribute("width", this.canvas.width.toString()), l.setAttribute("height", this.canvas.height.toString()), this._fromData(t, ({ color: m, curve: f }) => {
3459
+ const _ = document.createElement("path");
3460
+ if (!isNaN(f.control1.x) && !isNaN(f.control1.y) && !isNaN(f.control2.x) && !isNaN(f.control2.y)) {
3461
+ const x = `M ${f.startPoint.x.toFixed(3)},${f.startPoint.y.toFixed(3)} C ${f.control1.x.toFixed(3)},${f.control1.y.toFixed(3)} ${f.control2.x.toFixed(3)},${f.control2.y.toFixed(3)} ${f.endPoint.x.toFixed(3)},${f.endPoint.y.toFixed(3)}`;
3462
+ _.setAttribute("d", x), _.setAttribute("stroke-width", (f.endWidth * 2.25).toFixed(3)), _.setAttribute("stroke", m), _.setAttribute("fill", "none"), _.setAttribute("stroke-linecap", "round"), l.appendChild(_);
3463
+ }
3464
+ }, ({ color: m, point: f }) => {
3465
+ const _ = document.createElement("circle"), x = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
3466
+ _.setAttribute("r", x.toString()), _.setAttribute("cx", f.x.toString()), _.setAttribute("cy", f.y.toString()), _.setAttribute("fill", m), l.appendChild(_);
3467
+ });
3468
+ const c = "data:image/svg+xml;base64,", s = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${n} ${a} ${i} ${r}" width="${i}" height="${r}">`;
3469
+ let d = l.innerHTML;
3470
+ if (d === void 0) {
3471
+ const m = document.createElement("dummy"), f = l.childNodes;
3472
+ m.innerHTML = "";
3473
+ for (let _ = 0; _ < f.length; _ += 1)
3474
+ m.appendChild(f[_].cloneNode(!0));
3475
+ d = m.innerHTML;
3476
+ }
3477
+ const v = s + d + "</svg>";
3478
+ return c + btoa(v);
3479
+ }
3480
+ }
3481
+ var ba = {
3482
+ format: "image/png",
3483
+ quality: 0.92,
3484
+ width: void 0,
3485
+ height: void 0,
3486
+ Canvas: void 0,
3487
+ crossOrigin: void 0
3488
+ }, Sn = function(o, t) {
3489
+ return o === void 0 && (o = []), t === void 0 && (t = {}), new Promise(function(e) {
3490
+ t = Object.assign({}, ba, t);
3491
+ var n = t.Canvas ? new t.Canvas() : window.document.createElement("canvas"), a = t.Image || window.Image, i = o.map(function(l) {
3492
+ return new Promise(function(c, s) {
3493
+ l.constructor.name !== "Object" && (l = { src: l });
3494
+ var d = new a();
3495
+ d.crossOrigin = t.crossOrigin, d.onerror = function() {
3496
+ return s(new Error("Couldn't load image"));
3497
+ }, d.onload = function() {
3498
+ return c(Object.assign({}, l, { img: d }));
3499
+ }, d.src = l.src;
3500
+ });
3501
+ }), r = n.getContext("2d");
3502
+ e(Promise.all(i).then(function(l) {
3503
+ var c = function(s) {
3504
+ return t[s] || Math.max.apply(Math, l.map(function(d) {
3505
+ return d.img[s];
3506
+ }));
3507
+ };
3508
+ return n.width = c("width"), n.height = c("height"), l.forEach(function(s) {
3509
+ return r.globalAlpha = s.opacity ? s.opacity : 1, r.drawImage(s.img, s.x || 0, s.y || 0);
3510
+ }), t.Canvas && t.format === "image/jpeg" ? new Promise(function(s, d) {
3511
+ n.toDataURL(t.format, {
3512
+ quality: t.quality,
3513
+ progressive: !1
3514
+ }, function(h, v) {
3515
+ if (h) {
3516
+ d(h);
3517
+ return;
3518
+ }
3519
+ s(v);
3520
+ });
3521
+ }) : n.toDataURL(t.format, t.quality);
3522
+ }));
3523
+ });
3524
+ };
3525
+ let dt;
3526
+ (function(o) {
3527
+ o.PNG = "image/png", o.JPEG = "image/jpeg", o.SVG = "image/svg+xml";
3528
+ })(dt || (dt = {}));
3529
+ let ve;
3530
+ (function(o) {
3531
+ o.FILE = "file", o.DATA_URL = "data_url";
3532
+ })(ve || (ve = {}));
3533
+ function wa(o, t, e, n = Date.now()) {
3534
+ let a = o.length, i = new Uint8Array(a);
3535
+ for (; a--; )
3536
+ i[a] = o.charCodeAt(a);
3537
+ return new File([i], t, {
3538
+ type: e,
3539
+ lastModified: n
3540
+ });
3541
+ }
3542
+ function _a(o, t, e = Date.now()) {
3543
+ const n = o.split(","), i = n[0].match(/:(.*?);/);
3544
+ if (!i)
3545
+ throw new Error("Invalid data url");
3546
+ const r = i[1], l = atob(n[1]);
3547
+ return wa(l, t, r, e);
3548
+ }
3549
+ const xn = (o) => JSON.parse(JSON.stringify(o)), Dn = {
3550
+ x: 0,
3551
+ y: 0,
3552
+ src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
3553
+ }, Sa = {
3554
+ dotSize: (0.5 + 2.5) / 2,
3555
+ minWidth: 0.5,
3556
+ maxWidth: 2.5,
3557
+ throttle: 16,
3558
+ minDistance: 5,
3559
+ backgroundColor: "rgba(0,0,0,0)",
3560
+ penColor: "black",
3561
+ velocityFilterWeight: 0.7
3562
+ // onBegin: (event) => {},
3563
+ // onEnd: (event) => {},
3564
+ };
3565
+ var xa = /* @__PURE__ */ Qe({
3566
+ name: "VueSignaturePad",
3567
+ props: {
3568
+ modelValue: {
3569
+ type: [String, File],
3570
+ required: !1
3571
+ },
3572
+ width: {
3573
+ type: Number,
3574
+ default: 250,
3575
+ validator: function(o) {
3576
+ return 0 <= o && o <= 99999;
3577
+ }
3578
+ },
3579
+ height: {
3580
+ type: Number,
3581
+ default: 150,
3582
+ validator: function(o) {
3583
+ return 0 <= o && o <= 99999;
3584
+ }
3585
+ },
3586
+ saveType: {
3587
+ type: String,
3588
+ default: dt.PNG,
3589
+ validator: function(o) {
3590
+ const t = Object.values(dt);
3591
+ return t.includes(o) ? !0 : (console.warn(`The Image type is incorrect! Supported ones are ${t.join(", ")}.`), !1);
3592
+ }
3593
+ },
3594
+ saveOutput: {
3595
+ type: String,
3596
+ default: ve.DATA_URL,
3597
+ validator: function(o) {
3598
+ const t = Object.values(ve);
3599
+ return t.includes(o) ? !0 : (console.warn(`The save output is incorrect! Supported ones are ${t.join(", ")}.`), !1);
3600
+ }
3601
+ },
3602
+ customStyle: {
3603
+ type: Object,
3604
+ default: () => ({})
3605
+ },
3606
+ options: {
3607
+ type: Object,
3608
+ default: () => Sa
3609
+ },
3610
+ images: {
3611
+ type: Array,
3612
+ default: () => []
3613
+ }
3614
+ },
3615
+ setup(o, t) {
3616
+ const e = En({
3617
+ cacheImages: [],
3618
+ onResizeHandler: null,
3619
+ signaturePad: {},
3620
+ signatureData: Dn
3621
+ }), n = L(null), a = jt(() => {
3622
+ if (!n.value)
3623
+ throw new Error('No canvas could be found with this "ref" in the template');
3624
+ return n.value;
3625
+ }), i = jt(() => {
3626
+ const u = Array.from(xn(o.images)), M = Array.from(xn(e.cacheImages));
3627
+ return [...u, ...M];
3628
+ });
3629
+ De(() => o.options, (u) => {
3630
+ Object.keys(u).forEach((M) => {
3631
+ Object.prototype.hasOwnProperty.call(e.signaturePad, M) && (e.signaturePad[M] = u[M]);
3632
+ });
3633
+ });
3634
+ function r() {
3635
+ const u = a.value, M = e.signaturePad.toData(), z = Math.max(window.devicePixelRatio || 1, 1);
3636
+ u.width = u.offsetWidth * z, u.height = u.offsetHeight * z;
3637
+ const D = u.getContext("2d");
3638
+ D && D.scale(z, z), e.signaturePad.clear(), e.signatureData = Dn, e.signaturePad.fromData(M);
3639
+ }
3640
+ function l(u = o.saveType, M) {
3641
+ if (e.signaturePad.isEmpty()) {
3642
+ if (o.saveOutput === ve.FILE)
3643
+ return {
3644
+ isEmpty: !0,
3645
+ file: null,
3646
+ output: ve.FILE
3647
+ };
3648
+ if (o.saveOutput === ve.DATA_URL)
3649
+ return {
3650
+ isEmpty: !0,
3651
+ data: null,
3652
+ output: ve.DATA_URL
3653
+ };
3654
+ throw new Error(`This saveOutput ${o.saveOutput} is not supported`);
3655
+ }
3656
+ const z = e.signaturePad.toDataURL(u, M);
3657
+ if (e.signatureData.src = z, o.saveOutput === ve.FILE)
3658
+ return {
3659
+ isEmpty: !1,
3660
+ file: _a(z, "signature"),
3661
+ output: ve.FILE
3662
+ };
3663
+ if (o.saveOutput === ve.DATA_URL)
3664
+ return {
3665
+ isEmpty: !1,
3666
+ data: z,
3667
+ output: ve.DATA_URL
3668
+ };
3669
+ throw new Error(`This saveOutput ${o.saveOutput} is not supported`);
3670
+ }
3671
+ function c() {
3672
+ const u = e.signaturePad.toData();
3673
+ u && e.signaturePad.fromData(u.slice(0, -1));
3674
+ }
3675
+ function s() {
3676
+ const u = l();
3677
+ let M = null;
3678
+ u.output === ve.FILE ? M = u.file : u.output === ve.DATA_URL && (M = u.data), t.emit("input", M);
3679
+ }
3680
+ function d(u) {
3681
+ return e.signatureData = u, Sn([...o.images, ...e.cacheImages, e.signatureData]);
3682
+ }
3683
+ function h(u = []) {
3684
+ return e.cacheImages = [...e.cacheImages, ...u], Sn([...o.images, ...e.cacheImages, e.signatureData]);
3685
+ }
3686
+ function v(u, M = {}, z) {
3687
+ e.signaturePad.fromDataURL(u, M, z);
3688
+ }
3689
+ function m(u) {
3690
+ e.signaturePad.fromData(u);
3691
+ }
3692
+ function f(u = dt.PNG, M) {
3693
+ return e.signaturePad.toDataURL(u, M);
3694
+ }
3695
+ function _() {
3696
+ return e.signaturePad.toData();
3697
+ }
3698
+ function x() {
3699
+ e.signaturePad.off();
3700
+ }
3701
+ function T() {
3702
+ e.signaturePad.on();
3703
+ }
3704
+ function N() {
3705
+ return e.signaturePad.isEmpty();
3706
+ }
3707
+ function F() {
3708
+ return i.value;
3709
+ }
3710
+ function Z() {
3711
+ return e.cacheImages = [], e.cacheImages;
3712
+ }
3713
+ function E() {
3714
+ e.signaturePad.clear(), t.emit("input", null);
3715
+ }
3716
+ return et(() => {
3717
+ const u = a.value, M = new $t(u, {
3718
+ onEnd: s,
3719
+ ...o.options
3720
+ });
3721
+ e.signaturePad = M, e.onResizeHandler = r, window.addEventListener("resize", e.onResizeHandler, !1), r();
3722
+ }), qn(() => {
3723
+ e.onResizeHandler && window.removeEventListener("resize", e.onResizeHandler, !1);
3724
+ }), {
3725
+ // data
3726
+ ...Xn(e),
3727
+ signaturePadCanvas: n,
3728
+ // computed properties
3729
+ propsImagesAndCustomImages: i,
3730
+ // methods
3731
+ resizeCanvas: r,
3732
+ saveSignature: l,
3733
+ undoSignature: c,
3734
+ mergeImageAndSignature: d,
3735
+ addImages: h,
3736
+ fromDataURL: v,
3737
+ toDataURL: f,
3738
+ fromData: m,
3739
+ toData: _,
3740
+ lockSignaturePad: x,
3741
+ openSignaturePad: T,
3742
+ isEmpty: N,
3743
+ getPropImagesAndCacheImages: F,
3744
+ clearCacheImages: Z,
3745
+ clearSignature: E
3746
+ };
3747
+ },
3748
+ render() {
3749
+ const {
3750
+ width: o,
3751
+ height: t,
3752
+ customStyle: e
3753
+ } = this, n = {
3754
+ width: `${o}px`,
3755
+ height: `${t}px`
3756
+ };
3757
+ return rn("div", {
3758
+ style: {
3759
+ ...n,
3760
+ ...e
3761
+ }
3762
+ }, [rn("canvas", {
3763
+ style: {
3764
+ width: "100%",
3765
+ height: "100%"
3766
+ },
3767
+ ref: "signaturePadCanvas"
3768
+ })]);
3769
+ }
3770
+ }), Da = /* @__PURE__ */ (() => {
3771
+ const o = xa;
3772
+ return o.install = (t) => {
3773
+ t.component("SignaturePad", o);
3774
+ }, o;
3775
+ })();
3776
+ const Ea = { class: "signature-wrap" }, Ca = { class: "signature-types" }, Ta = { class: "signature-pad" }, ka = { class: "signature-operates" }, Ma = {
3777
+ __name: "index",
3778
+ props: {
3779
+ signPadInfo: {
3780
+ type: Object,
3781
+ default: () => {
3782
+ }
3783
+ }
3784
+ },
3785
+ emits: ["beforeDestroy", "clickSubmitSign"],
3786
+ setup(o, { emit: t }) {
3787
+ var c;
3788
+ const e = o;
3789
+ L(e.value);
3790
+ const n = L(), a = En({
3791
+ loading: !1,
3792
+ avatarLoading: !1,
3793
+ signDialogVisible: !1,
3794
+ ruleFormBase: {},
3795
+ ruleFormPassword: {},
3796
+ signOptions: {
3797
+ penColor: "#000000",
3798
+ minWidth: 1,
3799
+ onBegin: () => {
3800
+ n.value.resizeCanvas();
3801
+ }
3802
+ },
3803
+ signFileList: [],
3804
+ passwordNew2: "",
3805
+ cropperTitle: ""
3806
+ }), i = t;
3807
+ De((c = e.signPadInfo) == null ? void 0 : c.dialogShow, (s) => {
3808
+ console.log("dialogShow", s);
3809
+ }), De(a.signOptions, () => {
3810
+ console.log("signOptions:", a.signOptions), qe(() => {
3811
+ var d;
3812
+ const s = (d = n.value) == null ? void 0 : d.signaturePad;
3813
+ console.log("signaturePadRef:", n.value), s ? (s.penColor = a.signOptions.penColor, s.minWidth = a.signOptions.minWidth) : console.error("signaturePadRef没有被初始化");
3814
+ });
3815
+ });
3816
+ const r = () => {
3817
+ i("beforeDestroy");
3818
+ }, l = () => {
3819
+ var h;
3820
+ const { isEmpty: s, data: d } = (h = n.value) == null ? void 0 : h.saveSignature();
3821
+ s || i("clickSubmitSign", d);
3822
+ };
3823
+ return (s, d) => {
3824
+ var f, _, x;
3825
+ const h = j("el-input-number"), v = j("el-color-picker"), m = j("el-button");
3826
+ return b(), B(ce, null, [
3827
+ ae("div", Ea, [
3828
+ ue(s.$slots, "signatureRender", {}, void 0, !0),
3829
+ ae("div", Ca, [
3830
+ ue(s.$slots, "signatureTypes", {}, void 0, !0)
3831
+ ])
3832
+ ]),
3833
+ re(jn, {
3834
+ class: "signature-dialog",
3835
+ title: (f = o.signPadInfo) == null ? void 0 : f.dialogTitle,
3836
+ dialogWidth: `${((_ = o.signPadInfo) == null ? void 0 : _.dialogWidth) ?? 30}%`,
3837
+ visible: (x = o.signPadInfo) == null ? void 0 : x.dialogShow,
3838
+ onBeforeDestroy: r
3839
+ }, {
3840
+ default: R(() => [
3841
+ ae("div", Ta, [
3842
+ re(Gt(Da), {
3843
+ ref_key: "signaturePadRef",
3844
+ ref: n,
3845
+ options: a.signOptions
3846
+ }, null, 8, ["options"])
3847
+ ]),
3848
+ ae("div", ka, [
3849
+ ae("div", null, [
3850
+ d[2] || (d[2] = ae("span", null, "画笔粗细:", -1)),
3851
+ re(h, {
3852
+ modelValue: a.signOptions.minWidth,
3853
+ "onUpdate:modelValue": d[0] || (d[0] = (T) => a.signOptions.minWidth = T),
3854
+ min: 0.5,
3855
+ max: 2.5,
3856
+ step: 0.1,
3857
+ size: "small"
3858
+ }, null, 8, ["modelValue"])
3859
+ ]),
3860
+ ae("div", null, [
3861
+ d[3] || (d[3] = ae("span", null, "画笔颜色:", -1)),
3862
+ re(v, {
3863
+ modelValue: a.signOptions.penColor,
3864
+ "onUpdate:modelValue": d[1] || (d[1] = (T) => a.signOptions.penColor = T),
3865
+ "color-format": "hex",
3866
+ size: "default"
3867
+ }, null, 8, ["modelValue"])
3868
+ ])
3869
+ ])
3870
+ ]),
3871
+ footer: R(() => [
3872
+ re(m, { onClick: r }, {
3873
+ default: R(() => d[4] || (d[4] = [
3874
+ Ue("取消")
3875
+ ])),
3876
+ _: 1,
3877
+ __: [4]
3878
+ }),
3879
+ re(m, {
3880
+ type: "primary",
3881
+ onClick: l
3882
+ }, {
3883
+ default: R(() => d[5] || (d[5] = [
3884
+ Ue("确认")
3885
+ ])),
3886
+ _: 1,
3887
+ __: [5]
3888
+ })
3889
+ ]),
3890
+ _: 1
3891
+ }, 8, ["title", "dialogWidth", "visible"])
3892
+ ], 64);
3893
+ };
3894
+ }
3895
+ }, Pa = /* @__PURE__ */ Oe(Ma, [["__scopeId", "data-v-e409734b"]]), Oa = {
3896
+ AVATARUPLOAD: Zn,
3897
+ SIGNATURE: Pa,
3898
+ SWITCH: o2,
3899
+ INPUT: a2,
3900
+ PASSWORD: K2,
3901
+ COLOR: J2,
3902
+ NUMBER: Z2,
3903
+ FORM: Q2,
3904
+ RADIO: eo,
3905
+ TAB: ao,
3906
+ TABLE: Wo,
3907
+ SELECT: aa,
3908
+ MULTISELECT: ra,
3909
+ SSMenu: Jn,
3910
+ DATE: la,
3911
+ DATETIME: sa,
3912
+ TEXTAREA: ua,
3913
+ UPLOAD: ma,
3914
+ INPUTPOPOVER: X2,
3915
+ CASCADER: ia,
3916
+ BUTTON: io
3917
+ // 添加其他组件...
3918
+ };
3919
+ function an(o) {
3920
+ return Oa[o == null ? void 0 : o.toUpperCase()] || null;
3921
+ }
3922
+ const Aa = { class: "form-content-view" }, Ia = { class: "form-item-label-child" }, $a = ["onClick"], Va = { class: "form-item-label-child" }, za = ["onClick"], Ba = ["onClick"], Ra = {
3923
+ __name: "index",
3924
+ props: {
3925
+ formRules: Object,
3926
+ rowContents: Array,
3927
+ buttonValue: Array,
3928
+ isEnableWrap: {
3929
+ default: !0,
3930
+ type: Boolean
3931
+ },
3932
+ isRowFlex: {
3933
+ default: !0,
3934
+ type: Boolean
3935
+ },
3936
+ isButtonRow: {
3937
+ default: !0,
3938
+ type: Boolean
3939
+ },
3940
+ rowValues: Array,
3941
+ isEdit: {
3942
+ type: Boolean,
3943
+ default: !0
3944
+ },
3945
+ isStartJustify: {
3946
+ type: Boolean,
3947
+ default: !0
3948
+ }
3949
+ },
3950
+ emits: ["change", "onButtonClick", "clickTrigger", "blur", "changeVisible", "blurChange"],
3951
+ setup(o, { emit: t }) {
3952
+ const e = o, n = t, a = L(null), i = L(null), r = L(), l = L(), c = (x) => an(x), s = (x) => {
3953
+ n("clickTrigger", x);
3954
+ }, d = () => {
3955
+ n("blur", l.value);
3956
+ }, h = () => {
3957
+ n("blurChange", l.value);
3958
+ }, v = () => {
3959
+ qe(() => {
3960
+ a.value && a.value.resetFields(), i.value && i.value.resetFields();
3961
+ });
3962
+ }, m = (x, T) => {
3963
+ switch (x) {
3964
+ case "datetime":
3965
+ return hn(T).format("YYYY-MM-DD HH:mm:ss");
3966
+ case "date":
3967
+ return hn(T).format("YYYY-MM-DD");
3968
+ default:
3969
+ return T;
3970
+ }
3971
+ }, f = (x) => {
3972
+ n("changeVisible", x);
3973
+ };
3974
+ De(
3975
+ () => e == null ? void 0 : e.rowContents,
3976
+ () => {
3977
+ var T, N;
3978
+ if (((T = e == null ? void 0 : e.rowContents) == null ? void 0 : T.length) === 0) return;
3979
+ const x = {};
3980
+ (N = me(e == null ? void 0 : e.rowContents)) == null || N.forEach((F) => {
3981
+ x[(F == null ? void 0 : F.name) ?? (F == null ? void 0 : F.prop)] = m(F == null ? void 0 : F.type, F == null ? void 0 : F.value);
3982
+ }), r.value = x, l.value = x, v();
3983
+ },
3984
+ { deep: !0, immediate: !0 }
3985
+ );
3986
+ const _ = async (x, T) => {
3987
+ await qe(), console.log("onButtonClick", x, l.value), T && await (T == null ? void 0 : T.validate((N, F) => {
3988
+ N ? n(
3989
+ "onButtonClick",
3990
+ {
3991
+ content: l.value,
3992
+ buttonName: x
3993
+ }
3994
+ ) : console.log("表单校验失败", F);
3995
+ }));
3996
+ };
3997
+ return De(
3998
+ () => l.value,
3999
+ () => {
4000
+ n("change", l.value);
4001
+ },
4002
+ { deep: !0 }
4003
+ ), (x, T) => {
4004
+ var Z;
4005
+ const N = j("el-form-item"), F = j("el-form");
4006
+ return b(), B("div", {
4007
+ class: "form-content",
4008
+ style: we({ flexDirection: o.isButtonRow ? "row" : "column" })
4009
+ }, [
4010
+ ae("div", Aa, [
4011
+ e.isEnableWrap ? (b(), U(F, {
4012
+ ref_key: "formWrapRef",
4013
+ ref: a,
4014
+ model: r.value,
4015
+ rules: o.formRules,
4016
+ class: "form-data",
4017
+ key: e.isRowFlex
4018
+ }, {
4019
+ default: R(() => {
4020
+ var E;
4021
+ return [
4022
+ (b(!0), B(ce, null, le(e == null ? void 0 : e.rowContents, (u, M) => ln((b(), U(N, {
4023
+ key: M,
4024
+ class: "form-item",
4025
+ prop: (u == null ? void 0 : u.prop) ?? (u == null ? void 0 : u.name),
4026
+ style: we({ flexDirection: o.isRowFlex ? "row" : "column", alignItems: o.isRowFlex ? "center" : "start", height: o.isRowFlex ? "100%" : "auto" })
4027
+ }, Je({
4028
+ default: R(() => [
4029
+ u != null && u.isFormColHidden ? ee("", !0) : (b(), U(ht(c((u == null ? void 0 : u.type) ?? "Input")), {
4030
+ modelValue: l.value[(u == null ? void 0 : u.prop) ?? u.name],
4031
+ "onUpdate:modelValue": (z) => l.value[(u == null ? void 0 : u.prop) ?? u.name] = z,
4032
+ key: u == null ? void 0 : u.type,
4033
+ content: (u == null ? void 0 : u.contents) ?? [],
4034
+ isEdit: e == null ? void 0 : e.isEdit,
4035
+ onClickTrigger: s,
4036
+ onBlur: d,
4037
+ optionUrl: u == null ? void 0 : u.optionUrl,
4038
+ onChangeVisible: f,
4039
+ onBlurChange: h,
4040
+ config: u == null ? void 0 : u.config
4041
+ }, null, 40, ["modelValue", "onUpdate:modelValue", "content", "isEdit", "optionUrl", "config"]))
4042
+ ]),
4043
+ _: 2
4044
+ }, [
4045
+ u != null && u.isFormColHidden ? void 0 : {
4046
+ name: "label",
4047
+ fn: R(() => [
4048
+ u != null && u.label ? (b(), B("div", {
4049
+ key: 0,
4050
+ class: "from-item-label",
4051
+ style: we({ width: o.isRowFlex ? "72px" : "260px", minWidth: o.isRowFlex ? "72px" : "260px" })
4052
+ }, [
4053
+ ae("div", Ia, Se(u == null ? void 0 : u.label), 1)
4054
+ ], 4)) : ee("", !0)
4055
+ ]),
4056
+ key: "0"
4057
+ }
4058
+ ]), 1032, ["prop", "style"])), [
4059
+ [sn, !(u != null && u.isFormColHidden)]
4060
+ ])), 128)),
4061
+ ((E = e.buttonValue) == null ? void 0 : E.length) > 0 && o.isButtonRow ? (b(), B("div", {
4062
+ key: 0,
4063
+ class: "form-button",
4064
+ style: we({ paddingTop: o.isRowFlex ? "0" : "26px", justifyContent: o.isStartJustify ? "start" : "end" })
4065
+ }, [
4066
+ (b(!0), B(ce, null, le(e == null ? void 0 : e.buttonValue, (u, M) => (b(), B("div", {
4067
+ key: M,
4068
+ class: "form-button-content"
4069
+ }, [
4070
+ u ? (b(), B("div", {
4071
+ key: 0,
4072
+ class: "form-button-item",
4073
+ style: we({ background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)" }),
4074
+ onClick: (z) => _(u == null ? void 0 : u.label, a.value)
4075
+ }, Se(u == null ? void 0 : u.label), 13, $a)) : ee("", !0)
4076
+ ]))), 128))
4077
+ ], 4)) : ee("", !0)
4078
+ ];
4079
+ }),
4080
+ _: 1
4081
+ }, 8, ["model", "rules"])) : (b(), U(F, {
4082
+ key: 1,
4083
+ ref_key: "formRef",
4084
+ ref: i,
4085
+ model: l.value,
4086
+ rules: o.formRules,
4087
+ class: "form-noRegular-data"
4088
+ }, {
4089
+ default: R(() => {
4090
+ var E;
4091
+ return [
4092
+ (b(!0), B(ce, null, le(e == null ? void 0 : e.rowContents, (u, M) => ln((b(), U(N, {
4093
+ key: M,
4094
+ class: Kn(["form-item", { "form-row-content": !o.isRowFlex }]),
4095
+ prop: (u == null ? void 0 : u.prop) ?? (u == null ? void 0 : u.name),
4096
+ style: we({
4097
+ flexDirection: o.isRowFlex ? "row" : "column",
4098
+ alignItems: o.isRowFlex ? "center" : "start",
4099
+ height: o.isRowFlex ? "100%" : "auto",
4100
+ width: `calc((100% / ${(u == null ? void 0 : u.width) ?? 1}) - 12px)`,
4101
+ minWidth: `calc((100% / ${(u == null ? void 0 : u.width) ?? 1}) - 12px)`
4102
+ })
4103
+ }, Je({
4104
+ default: R(() => [
4105
+ u != null && u.isFormColHidden ? ee("", !0) : (b(), U(ht(c((u == null ? void 0 : u.type) ?? "Input")), {
4106
+ modelValue: l.value[(u == null ? void 0 : u.prop) ?? u.name],
4107
+ "onUpdate:modelValue": (z) => l.value[(u == null ? void 0 : u.prop) ?? u.name] = z,
4108
+ isEdit: e == null ? void 0 : e.isEdit,
4109
+ content: (u == null ? void 0 : u.contents) ?? [],
4110
+ onClickTrigger: s,
4111
+ onBlur: d,
4112
+ key: u == null ? void 0 : u.type,
4113
+ optionUrl: u == null ? void 0 : u.optionUrl,
4114
+ onChangeVisible: f,
4115
+ onBlurChange: h,
4116
+ config: u == null ? void 0 : u.config
4117
+ }, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "content", "optionUrl", "config"]))
4118
+ ]),
4119
+ _: 2
4120
+ }, [
4121
+ u != null && u.isFormColHidden ? void 0 : {
4122
+ name: "label",
4123
+ fn: R(() => [
4124
+ u != null && u.label ? (b(), B("div", {
4125
+ key: 0,
4126
+ class: "from-item-label",
4127
+ style: we({ width: o.isRowFlex ? "72px" : "auto", minWidth: o.isRowFlex ? "72px" : `calc((100% / ${(u == null ? void 0 : u.width) ?? 1}) - 8px)` })
4128
+ }, [
4129
+ ae("div", Va, Se(u == null ? void 0 : u.label), 1)
4130
+ ], 4)) : ee("", !0)
4131
+ ]),
4132
+ key: "0"
4133
+ }
4134
+ ]), 1032, ["prop", "class", "style"])), [
4135
+ [sn, !(u != null && u.isFormColHidden)]
4136
+ ])), 128)),
4137
+ ((E = e.buttonValue) == null ? void 0 : E.length) > 0 && o.isButtonRow ? (b(), B("div", {
4138
+ key: 0,
4139
+ class: "form-button",
4140
+ style: we({ paddingTop: o.isRowFlex ? "0" : "26px", justifyContent: o.isStartJustify ? "start" : "end" })
4141
+ }, [
4142
+ (b(!0), B(ce, null, le(e == null ? void 0 : e.buttonValue, (u, M) => (b(), B("div", {
4143
+ key: M,
4144
+ class: "form-button-content"
4145
+ }, [
4146
+ u ? (b(), B("div", {
4147
+ key: 0,
4148
+ class: "form-button-item",
4149
+ style: we({ background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)" }),
4150
+ onClick: (z) => _(u == null ? void 0 : u.label, i.value)
4151
+ }, Se(u == null ? void 0 : u.label), 13, za)) : ee("", !0)
4152
+ ]))), 128))
4153
+ ], 4)) : ee("", !0)
4154
+ ];
4155
+ }),
4156
+ _: 1
4157
+ }, 8, ["model", "rules"]))
4158
+ ]),
4159
+ ((Z = e.buttonValue) == null ? void 0 : Z.length) > 0 && !o.isButtonRow ? (b(), B("div", {
4160
+ key: 0,
4161
+ class: "form-button",
4162
+ style: we({ justifyContent: o.isStartJustify ? "start" : "end" })
4163
+ }, [
4164
+ (b(!0), B(ce, null, le(e == null ? void 0 : e.buttonValue, (E, u) => (b(), B("div", {
4165
+ key: u,
4166
+ class: "form-button-content",
4167
+ onClick: (M) => _(E == null ? void 0 : E.label, e.isEnableWrap ? a.value : i.value)
4168
+ }, [
4169
+ E ? (b(), B("div", {
4170
+ key: 0,
4171
+ class: "form-button-item",
4172
+ style: we({ background: (E == null ? void 0 : E.background) ?? "var(--ssComponent-primary-color)" })
4173
+ }, Se(E == null ? void 0 : E.label), 5)) : ee("", !0)
4174
+ ], 8, Ba))), 128))
4175
+ ], 4)) : ee("", !0)
4176
+ ], 4);
4177
+ };
4178
+ }
4179
+ }, Na = /* @__PURE__ */ Oe(Ra, [["__scopeId", "data-v-632e86a1"]]);
4180
+ export {
4181
+ Za as F,
4182
+ Pa as S,
4183
+ a2 as _,
4184
+ jn as a,
4185
+ o2 as b,
4186
+ Qa as c,
4187
+ n0 as d,
4188
+ e0 as e,
4189
+ t0 as f,
4190
+ jo as g,
4191
+ an as h,
4192
+ Tn as i,
4193
+ Ka as j,
4194
+ Xa as k,
4195
+ Ho as l,
4196
+ Ja as m,
4197
+ qa as n,
4198
+ Na as s
4199
+ };