@das-fed/ui 6.4.0-hot.1 → 6.4.0-hot.3

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 (113) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/app-container/index.js +255 -46
  3. package/packages/business-components/app-container/index.js.gz +0 -0
  4. package/packages/business-components/change-enterprises/index.js +298 -89
  5. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  6. package/packages/business-components/device-panel/index.js +28123 -23289
  7. package/packages/business-components/device-panel/index.js.gz +0 -0
  8. package/packages/business-components/process-form/index.js +1010 -801
  9. package/packages/business-components/process-form/index.js.gz +0 -0
  10. package/packages/business-components/process-log/index.js +3669 -331
  11. package/packages/business-components/process-log/index.js.gz +0 -0
  12. package/packages/business-components/urgent-panel/index.js +2338 -1553
  13. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  14. package/packages/components/alert/index.js +3418 -51
  15. package/packages/components/alert/index.js.gz +0 -0
  16. package/packages/components/autocomplete/index.js +2875 -456
  17. package/packages/components/autocomplete/index.js.gz +0 -0
  18. package/packages/components/breadcrumb/index.js +271 -47
  19. package/packages/components/breadcrumb/index.js.gz +0 -0
  20. package/packages/components/button/index.js +9800 -211
  21. package/packages/components/button/index.js.gz +0 -0
  22. package/packages/components/cascader/index.js +6406 -139
  23. package/packages/components/cascader/index.js.gz +0 -0
  24. package/packages/components/checkbox/index.js +3837 -179
  25. package/packages/components/checkbox/index.js.gz +0 -0
  26. package/packages/components/collapse-panel/index.js +3624 -30
  27. package/packages/components/collapse-panel/index.js.gz +0 -0
  28. package/packages/components/collaspe/index.js +3624 -30
  29. package/packages/components/collaspe/index.js.gz +0 -0
  30. package/packages/components/color-picker/index.js +5346 -106
  31. package/packages/components/color-picker/index.js.gz +0 -0
  32. package/packages/components/date-picker/index.js +13993 -529
  33. package/packages/components/date-picker/index.js.gz +0 -0
  34. package/packages/components/dialog/index.js +1835 -186
  35. package/packages/components/dialog/index.js.gz +0 -0
  36. package/packages/components/drawer/index.js +1614 -38
  37. package/packages/components/drawer/index.js.gz +0 -0
  38. package/packages/components/dropdown/index.js +4615 -54
  39. package/packages/components/dropdown/index.js.gz +0 -0
  40. package/packages/components/empty/index.js +800 -39
  41. package/packages/components/empty/index.js.gz +0 -0
  42. package/packages/components/image-preview/index.js +1283 -34
  43. package/packages/components/image-preview/index.js.gz +0 -0
  44. package/packages/components/image-upload/index.js +11722 -111
  45. package/packages/components/image-upload/index.js.gz +0 -0
  46. package/packages/components/image-viewer/index.js +13168 -386
  47. package/packages/components/image-viewer/index.js.gz +0 -0
  48. package/packages/components/input/index.js +1086 -157
  49. package/packages/components/input/index.js.gz +0 -0
  50. package/packages/components/input-number/index.js +1831 -145
  51. package/packages/components/input-number/index.js.gz +0 -0
  52. package/packages/components/live-player/index.js +3669 -2883
  53. package/packages/components/live-player/index.js.gz +0 -0
  54. package/packages/components/map/index.js +5214 -1190
  55. package/packages/components/map/index.js.gz +0 -0
  56. package/packages/components/menu-aside/index.js +8297 -603
  57. package/packages/components/menu-aside/index.js.gz +0 -0
  58. package/packages/components/menu-header/index.js +10077 -38
  59. package/packages/components/menu-header/index.js.gz +0 -0
  60. package/packages/components/message/index.js +1289 -53
  61. package/packages/components/message/index.js.gz +0 -0
  62. package/packages/components/notification/index.js +3269 -47
  63. package/packages/components/notification/index.js.gz +0 -0
  64. package/packages/components/pagination/index.js +8025 -148
  65. package/packages/components/pagination/index.js.gz +0 -0
  66. package/packages/components/popover/index.js +2495 -44
  67. package/packages/components/popover/index.js.gz +0 -0
  68. package/packages/components/progress/index.js +517 -107
  69. package/packages/components/progress/index.js.gz +0 -0
  70. package/packages/components/radio/index.js +3724 -159
  71. package/packages/components/radio/index.js.gz +0 -0
  72. package/packages/components/scrollbar/index.js +1442 -915
  73. package/packages/components/scrollbar/index.js.gz +0 -0
  74. package/packages/components/search/index.js +5261 -89
  75. package/packages/components/search/index.js.gz +0 -0
  76. package/packages/components/search-form/index.js +1010 -920
  77. package/packages/components/search-form/index.js.gz +0 -0
  78. package/packages/components/select/index.js +10505 -379
  79. package/packages/components/select/index.js.gz +0 -0
  80. package/packages/components/select-list/index.js +1433 -1173
  81. package/packages/components/select-list/index.js.gz +0 -0
  82. package/packages/components/special-range-picker-month/index.js +2645 -196
  83. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  84. package/packages/components/special-range-picker-year/index.js +2710 -259
  85. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  86. package/packages/components/spin/index.js +3534 -48
  87. package/packages/components/spin/index.js.gz +0 -0
  88. package/packages/components/step/index.js +4085 -28
  89. package/packages/components/step/index.js.gz +0 -0
  90. package/packages/components/steps/index.js +4070 -14
  91. package/packages/components/steps/index.js.gz +0 -0
  92. package/packages/components/switch/index.js +547 -31
  93. package/packages/components/switch/index.js.gz +0 -0
  94. package/packages/components/table/index.js +17503 -5201
  95. package/packages/components/table/index.js.gz +0 -0
  96. package/packages/components/tabs/index.js +12630 -172
  97. package/packages/components/tabs/index.js.gz +0 -0
  98. package/packages/components/tag/index.js +325 -55
  99. package/packages/components/tag/index.js.gz +0 -0
  100. package/packages/components/time-line/index.js +3397 -60
  101. package/packages/components/time-line/index.js.gz +0 -0
  102. package/packages/components/tooltip/index.js +2174 -65
  103. package/packages/components/tooltip/index.js.gz +0 -0
  104. package/packages/components/tree/index.js +6747 -1881
  105. package/packages/components/tree/index.js.gz +0 -0
  106. package/packages/components/tree-select/index.js +2778 -358
  107. package/packages/components/tree-select/index.js.gz +0 -0
  108. package/packages/components/upload/index.js +11726 -115
  109. package/packages/components/upload/index.js.gz +0 -0
  110. package/packages/components/virtual-tree/index.js +2928 -86
  111. package/packages/components/virtual-tree/index.js.gz +0 -0
  112. package/packages/components/watermark/index.js +368 -17
  113. package/packages/components/watermark/index.js.gz +0 -0
@@ -1,31 +1,2873 @@
1
1
  import '@das-fed/ui/packages/components/virtual-tree/style.css';
2
- import { defineComponent as E, openBlock as r, createBlock as p, unref as m, ref as i, computed as h, watch as k, onMounted as z, onBeforeUnmount as O, createElementBlock as T, normalizeStyle as R, mergeProps as A, withCtx as v, renderSlot as C, createElementVNode as D, toDisplayString as F, Fragment as M, createSlots as $, nextTick as H } from "vue";
3
- import { withInstall as L } from "@das-fed/utils/with-install/index";
4
- import { ElTreeV2 as V } from "element-plus";
5
- import "element-plus/es/components/tree-v2/style/css";
6
- import { DasTreeEmpty as J } from "@das-fed/ui/packages/components/tree/index";
7
- import { DasSpin as P } from "@das-fed/ui/packages/components/spin/index";
8
- import { DasIconCaretRight as W } from "@das-fed/ui/packages/icons/caret-right/index";
9
- import { SizeWatcher as U } from "@das-fed/utils/size-watcher";
10
- import { flatTree as _ } from "@das-fed/utils/common-tools";
11
- const j = /* @__PURE__ */ E({
2
+ import { defineComponent as F, openBlock as P, createElementBlock as W, createElementVNode as Oe, warn as Or, inject as U, ref as $, computed as w, unref as c, isRef as qe, getCurrentInstance as fe, mergeProps as zn, renderSlot as De, onMounted as Ht, watch as ue, toRef as $r, onUnmounted as Ir, nextTick as ce, toRaw as on, useSlots as Gt, createBlock as te, resolveDynamicComponent as Ye, normalizeClass as H, withCtx as Ne, withDirectives as nt, withModifiers as Se, vModelCheckbox as rt, Fragment as Rn, createTextVNode as Kn, toDisplayString as ct, createCommentVNode as Je, normalizeStyle as ut, provide as kt, toRefs as Ar, reactive as Lr, onBeforeUnmount as Fn, h as xe, onUpdated as Pr, shallowRef as Mr, createVNode as Dr, createSlots as zr } from "vue";
3
+ import { withInstall as Rr } from "@das-fed/utils/with-install/index";
4
+ import "element-plus/theme-chalk/base.css";
5
+ import "element-plus/theme-chalk/el-tree.css";
6
+ import "element-plus/theme-chalk/el-checkbox.css";
7
+ import "element-plus/theme-chalk/el-virtual-list.css";
8
+ import "element-plus/theme-chalk/el-scrollbar.css";
9
+ import { DasTreeEmpty as Kr } from "@das-fed/ui/packages/components/tree/index";
10
+ import { DasSpin as Fr } from "@das-fed/ui/packages/components/spin/index";
11
+ import { DasIconCaretRight as Br } from "@das-fed/ui/packages/icons/caret-right/index";
12
+ import { SizeWatcher as jr } from "@das-fed/utils/size-watcher";
13
+ import { flatTree as bt } from "@das-fed/utils/common-tools";
14
+ var ln;
15
+ const Ke = typeof window < "u";
16
+ Ke && ((ln = window == null ? void 0 : window.navigator) != null && ln.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
17
+ const Hr = () => Ke && /firefox/i.test(window.navigator.userAgent);
18
+ /**
19
+ * @vue/shared v3.4.35
20
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
21
+ * @license MIT
22
+ **/
23
+ process.env.NODE_ENV !== "production" && Object.freeze({});
24
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
25
+ const Gr = () => {
26
+ }, Vr = Object.prototype.hasOwnProperty, xt = (e, t) => Vr.call(e, t), Xe = Array.isArray, Ur = (e) => typeof e == "function", Ce = (e) => typeof e == "string", dt = (e) => e !== null && typeof e == "object";
27
+ var Bn = typeof global == "object" && global && global.Object === Object && global, Wr = typeof self == "object" && self && self.Object === Object && self, he = Bn || Wr || Function("return this")(), ae = he.Symbol, jn = Object.prototype, qr = jn.hasOwnProperty, Yr = jn.toString, Ve = ae ? ae.toStringTag : void 0;
28
+ function Jr(e) {
29
+ var t = qr.call(e, Ve), n = e[Ve];
30
+ try {
31
+ e[Ve] = void 0;
32
+ var r = !0;
33
+ } catch {
34
+ }
35
+ var a = Yr.call(e);
36
+ return r && (t ? e[Ve] = n : delete e[Ve]), a;
37
+ }
38
+ var Xr = Object.prototype, Zr = Xr.toString;
39
+ function Qr(e) {
40
+ return Zr.call(e);
41
+ }
42
+ var ea = "[object Null]", ta = "[object Undefined]", sn = ae ? ae.toStringTag : void 0;
43
+ function Fe(e) {
44
+ return e == null ? e === void 0 ? ta : ea : sn && sn in Object(e) ? Jr(e) : Qr(e);
45
+ }
46
+ function ze(e) {
47
+ return e != null && typeof e == "object";
48
+ }
49
+ var na = "[object Symbol]";
50
+ function Vt(e) {
51
+ return typeof e == "symbol" || ze(e) && Fe(e) == na;
52
+ }
53
+ function ra(e, t) {
54
+ for (var n = -1, r = e == null ? 0 : e.length, a = Array(r); ++n < r; )
55
+ a[n] = t(e[n], n, e);
56
+ return a;
57
+ }
58
+ var de = Array.isArray, aa = 1 / 0, cn = ae ? ae.prototype : void 0, un = cn ? cn.toString : void 0;
59
+ function Hn(e) {
60
+ if (typeof e == "string")
61
+ return e;
62
+ if (de(e))
63
+ return ra(e, Hn) + "";
64
+ if (Vt(e))
65
+ return un ? un.call(e) : "";
66
+ var t = e + "";
67
+ return t == "0" && 1 / e == -aa ? "-0" : t;
68
+ }
69
+ function at(e) {
70
+ var t = typeof e;
71
+ return e != null && (t == "object" || t == "function");
72
+ }
73
+ function oa(e) {
74
+ return e;
75
+ }
76
+ var la = "[object AsyncFunction]", sa = "[object Function]", ia = "[object GeneratorFunction]", ca = "[object Proxy]";
77
+ function Gn(e) {
78
+ if (!at(e))
79
+ return !1;
80
+ var t = Fe(e);
81
+ return t == sa || t == ia || t == la || t == ca;
82
+ }
83
+ var _t = he["__core-js_shared__"], dn = function() {
84
+ var e = /[^.]+$/.exec(_t && _t.keys && _t.keys.IE_PROTO || "");
85
+ return e ? "Symbol(src)_1." + e : "";
86
+ }();
87
+ function ua(e) {
88
+ return !!dn && dn in e;
89
+ }
90
+ var da = Function.prototype, fa = da.toString;
91
+ function Ie(e) {
92
+ if (e != null) {
93
+ try {
94
+ return fa.call(e);
95
+ } catch {
96
+ }
97
+ try {
98
+ return e + "";
99
+ } catch {
100
+ }
101
+ }
102
+ return "";
103
+ }
104
+ var ha = /[\\^$.*+?()[\]{}|]/g, va = /^\[object .+?Constructor\]$/, pa = Function.prototype, ga = Object.prototype, ma = pa.toString, ya = ga.hasOwnProperty, ba = RegExp(
105
+ "^" + ma.call(ya).replace(ha, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
106
+ );
107
+ function _a(e) {
108
+ if (!at(e) || ua(e))
109
+ return !1;
110
+ var t = Gn(e) ? ba : va;
111
+ return t.test(Ie(e));
112
+ }
113
+ function Sa(e, t) {
114
+ return e == null ? void 0 : e[t];
115
+ }
116
+ function Ae(e, t) {
117
+ var n = Sa(e, t);
118
+ return _a(n) ? n : void 0;
119
+ }
120
+ var Tt = Ae(he, "WeakMap");
121
+ function wa(e, t, n) {
122
+ switch (n.length) {
123
+ case 0:
124
+ return e.call(t);
125
+ case 1:
126
+ return e.call(t, n[0]);
127
+ case 2:
128
+ return e.call(t, n[0], n[1]);
129
+ case 3:
130
+ return e.call(t, n[0], n[1], n[2]);
131
+ }
132
+ return e.apply(t, n);
133
+ }
134
+ var Ca = 800, Ea = 16, ka = Date.now;
135
+ function xa(e) {
136
+ var t = 0, n = 0;
137
+ return function() {
138
+ var r = ka(), a = Ea - (r - n);
139
+ if (n = r, a > 0) {
140
+ if (++t >= Ca)
141
+ return arguments[0];
142
+ } else
143
+ t = 0;
144
+ return e.apply(void 0, arguments);
145
+ };
146
+ }
147
+ function Ta(e) {
148
+ return function() {
149
+ return e;
150
+ };
151
+ }
152
+ var ot = function() {
153
+ try {
154
+ var e = Ae(Object, "defineProperty");
155
+ return e({}, "", {}), e;
156
+ } catch {
157
+ }
158
+ }(), Na = ot ? function(e, t) {
159
+ return ot(e, "toString", {
160
+ configurable: !0,
161
+ enumerable: !1,
162
+ value: Ta(t),
163
+ writable: !0
164
+ });
165
+ } : oa, Oa = xa(Na), $a = 9007199254740991, Ia = /^(?:0|[1-9]\d*)$/;
166
+ function Ut(e, t) {
167
+ var n = typeof e;
168
+ return t = t ?? $a, !!t && (n == "number" || n != "symbol" && Ia.test(e)) && e > -1 && e % 1 == 0 && e < t;
169
+ }
170
+ function Aa(e, t, n) {
171
+ t == "__proto__" && ot ? ot(e, t, {
172
+ configurable: !0,
173
+ enumerable: !0,
174
+ value: n,
175
+ writable: !0
176
+ }) : e[t] = n;
177
+ }
178
+ function Wt(e, t) {
179
+ return e === t || e !== e && t !== t;
180
+ }
181
+ var La = Object.prototype, Pa = La.hasOwnProperty;
182
+ function Ma(e, t, n) {
183
+ var r = e[t];
184
+ (!(Pa.call(e, t) && Wt(r, n)) || n === void 0 && !(t in e)) && Aa(e, t, n);
185
+ }
186
+ var fn = Math.max;
187
+ function Da(e, t, n) {
188
+ return t = fn(t === void 0 ? e.length - 1 : t, 0), function() {
189
+ for (var r = arguments, a = -1, o = fn(r.length - t, 0), s = Array(o); ++a < o; )
190
+ s[a] = r[t + a];
191
+ a = -1;
192
+ for (var u = Array(t + 1); ++a < t; )
193
+ u[a] = r[a];
194
+ return u[t] = n(s), wa(e, this, u);
195
+ };
196
+ }
197
+ var za = 9007199254740991;
198
+ function qt(e) {
199
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= za;
200
+ }
201
+ function Ra(e) {
202
+ return e != null && qt(e.length) && !Gn(e);
203
+ }
204
+ var Ka = Object.prototype;
205
+ function Fa(e) {
206
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || Ka;
207
+ return e === n;
208
+ }
209
+ function Ba(e, t) {
210
+ for (var n = -1, r = Array(e); ++n < e; )
211
+ r[n] = t(n);
212
+ return r;
213
+ }
214
+ var ja = "[object Arguments]";
215
+ function hn(e) {
216
+ return ze(e) && Fe(e) == ja;
217
+ }
218
+ var Vn = Object.prototype, Ha = Vn.hasOwnProperty, Ga = Vn.propertyIsEnumerable, Yt = hn(/* @__PURE__ */ function() {
219
+ return arguments;
220
+ }()) ? hn : function(e) {
221
+ return ze(e) && Ha.call(e, "callee") && !Ga.call(e, "callee");
222
+ };
223
+ function Va() {
224
+ return !1;
225
+ }
226
+ var Un = typeof exports == "object" && exports && !exports.nodeType && exports, vn = Un && typeof module == "object" && module && !module.nodeType && module, Ua = vn && vn.exports === Un, pn = Ua ? he.Buffer : void 0, Wa = pn ? pn.isBuffer : void 0, Nt = Wa || Va, qa = "[object Arguments]", Ya = "[object Array]", Ja = "[object Boolean]", Xa = "[object Date]", Za = "[object Error]", Qa = "[object Function]", eo = "[object Map]", to = "[object Number]", no = "[object Object]", ro = "[object RegExp]", ao = "[object Set]", oo = "[object String]", lo = "[object WeakMap]", so = "[object ArrayBuffer]", io = "[object DataView]", co = "[object Float32Array]", uo = "[object Float64Array]", fo = "[object Int8Array]", ho = "[object Int16Array]", vo = "[object Int32Array]", po = "[object Uint8Array]", go = "[object Uint8ClampedArray]", mo = "[object Uint16Array]", yo = "[object Uint32Array]", M = {};
227
+ M[co] = M[uo] = M[fo] = M[ho] = M[vo] = M[po] = M[go] = M[mo] = M[yo] = !0;
228
+ M[qa] = M[Ya] = M[so] = M[Ja] = M[io] = M[Xa] = M[Za] = M[Qa] = M[eo] = M[to] = M[no] = M[ro] = M[ao] = M[oo] = M[lo] = !1;
229
+ function bo(e) {
230
+ return ze(e) && qt(e.length) && !!M[Fe(e)];
231
+ }
232
+ function _o(e) {
233
+ return function(t) {
234
+ return e(t);
235
+ };
236
+ }
237
+ var Wn = typeof exports == "object" && exports && !exports.nodeType && exports, We = Wn && typeof module == "object" && module && !module.nodeType && module, So = We && We.exports === Wn, St = So && Bn.process, gn = function() {
238
+ try {
239
+ var e = We && We.require && We.require("util").types;
240
+ return e || St && St.binding && St.binding("util");
241
+ } catch {
242
+ }
243
+ }(), mn = gn && gn.isTypedArray, qn = mn ? _o(mn) : bo, wo = Object.prototype, Co = wo.hasOwnProperty;
244
+ function Eo(e, t) {
245
+ var n = de(e), r = !n && Yt(e), a = !n && !r && Nt(e), o = !n && !r && !a && qn(e), s = n || r || a || o, u = s ? Ba(e.length, String) : [], v = u.length;
246
+ for (var l in e)
247
+ Co.call(e, l) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
248
+ (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
249
+ a && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
250
+ o && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
251
+ Ut(l, v))) && u.push(l);
252
+ return u;
253
+ }
254
+ function ko(e, t) {
255
+ return function(n) {
256
+ return e(t(n));
257
+ };
258
+ }
259
+ var xo = ko(Object.keys, Object), To = Object.prototype, No = To.hasOwnProperty;
260
+ function Oo(e) {
261
+ if (!Fa(e))
262
+ return xo(e);
263
+ var t = [];
264
+ for (var n in Object(e))
265
+ No.call(e, n) && n != "constructor" && t.push(n);
266
+ return t;
267
+ }
268
+ function $o(e) {
269
+ return Ra(e) ? Eo(e) : Oo(e);
270
+ }
271
+ var Io = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ao = /^\w*$/;
272
+ function Lo(e, t) {
273
+ if (de(e))
274
+ return !1;
275
+ var n = typeof e;
276
+ return n == "number" || n == "symbol" || n == "boolean" || e == null || Vt(e) ? !0 : Ao.test(e) || !Io.test(e) || t != null && e in Object(t);
277
+ }
278
+ var Ze = Ae(Object, "create");
279
+ function Po() {
280
+ this.__data__ = Ze ? Ze(null) : {}, this.size = 0;
281
+ }
282
+ function Mo(e) {
283
+ var t = this.has(e) && delete this.__data__[e];
284
+ return this.size -= t ? 1 : 0, t;
285
+ }
286
+ var Do = "__lodash_hash_undefined__", zo = Object.prototype, Ro = zo.hasOwnProperty;
287
+ function Ko(e) {
288
+ var t = this.__data__;
289
+ if (Ze) {
290
+ var n = t[e];
291
+ return n === Do ? void 0 : n;
292
+ }
293
+ return Ro.call(t, e) ? t[e] : void 0;
294
+ }
295
+ var Fo = Object.prototype, Bo = Fo.hasOwnProperty;
296
+ function jo(e) {
297
+ var t = this.__data__;
298
+ return Ze ? t[e] !== void 0 : Bo.call(t, e);
299
+ }
300
+ var Ho = "__lodash_hash_undefined__";
301
+ function Go(e, t) {
302
+ var n = this.__data__;
303
+ return this.size += this.has(e) ? 0 : 1, n[e] = Ze && t === void 0 ? Ho : t, this;
304
+ }
305
+ function $e(e) {
306
+ var t = -1, n = e == null ? 0 : e.length;
307
+ for (this.clear(); ++t < n; ) {
308
+ var r = e[t];
309
+ this.set(r[0], r[1]);
310
+ }
311
+ }
312
+ $e.prototype.clear = Po;
313
+ $e.prototype.delete = Mo;
314
+ $e.prototype.get = Ko;
315
+ $e.prototype.has = jo;
316
+ $e.prototype.set = Go;
317
+ function Vo() {
318
+ this.__data__ = [], this.size = 0;
319
+ }
320
+ function ft(e, t) {
321
+ for (var n = e.length; n--; )
322
+ if (Wt(e[n][0], t))
323
+ return n;
324
+ return -1;
325
+ }
326
+ var Uo = Array.prototype, Wo = Uo.splice;
327
+ function qo(e) {
328
+ var t = this.__data__, n = ft(t, e);
329
+ if (n < 0)
330
+ return !1;
331
+ var r = t.length - 1;
332
+ return n == r ? t.pop() : Wo.call(t, n, 1), --this.size, !0;
333
+ }
334
+ function Yo(e) {
335
+ var t = this.__data__, n = ft(t, e);
336
+ return n < 0 ? void 0 : t[n][1];
337
+ }
338
+ function Jo(e) {
339
+ return ft(this.__data__, e) > -1;
340
+ }
341
+ function Xo(e, t) {
342
+ var n = this.__data__, r = ft(n, e);
343
+ return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
344
+ }
345
+ function ve(e) {
346
+ var t = -1, n = e == null ? 0 : e.length;
347
+ for (this.clear(); ++t < n; ) {
348
+ var r = e[t];
349
+ this.set(r[0], r[1]);
350
+ }
351
+ }
352
+ ve.prototype.clear = Vo;
353
+ ve.prototype.delete = qo;
354
+ ve.prototype.get = Yo;
355
+ ve.prototype.has = Jo;
356
+ ve.prototype.set = Xo;
357
+ var Qe = Ae(he, "Map");
358
+ function Zo() {
359
+ this.size = 0, this.__data__ = {
360
+ hash: new $e(),
361
+ map: new (Qe || ve)(),
362
+ string: new $e()
363
+ };
364
+ }
365
+ function Qo(e) {
366
+ var t = typeof e;
367
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
368
+ }
369
+ function ht(e, t) {
370
+ var n = e.__data__;
371
+ return Qo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
372
+ }
373
+ function el(e) {
374
+ var t = ht(this, e).delete(e);
375
+ return this.size -= t ? 1 : 0, t;
376
+ }
377
+ function tl(e) {
378
+ return ht(this, e).get(e);
379
+ }
380
+ function nl(e) {
381
+ return ht(this, e).has(e);
382
+ }
383
+ function rl(e, t) {
384
+ var n = ht(this, e), r = n.size;
385
+ return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
386
+ }
387
+ function pe(e) {
388
+ var t = -1, n = e == null ? 0 : e.length;
389
+ for (this.clear(); ++t < n; ) {
390
+ var r = e[t];
391
+ this.set(r[0], r[1]);
392
+ }
393
+ }
394
+ pe.prototype.clear = Zo;
395
+ pe.prototype.delete = el;
396
+ pe.prototype.get = tl;
397
+ pe.prototype.has = nl;
398
+ pe.prototype.set = rl;
399
+ var al = "Expected a function";
400
+ function vt(e, t) {
401
+ if (typeof e != "function" || t != null && typeof t != "function")
402
+ throw new TypeError(al);
403
+ var n = function() {
404
+ var r = arguments, a = t ? t.apply(this, r) : r[0], o = n.cache;
405
+ if (o.has(a))
406
+ return o.get(a);
407
+ var s = e.apply(this, r);
408
+ return n.cache = o.set(a, s) || o, s;
409
+ };
410
+ return n.cache = new (vt.Cache || pe)(), n;
411
+ }
412
+ vt.Cache = pe;
413
+ var ol = 500;
414
+ function ll(e) {
415
+ var t = vt(e, function(r) {
416
+ return n.size === ol && n.clear(), r;
417
+ }), n = t.cache;
418
+ return t;
419
+ }
420
+ var sl = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, il = /\\(\\)?/g, cl = ll(function(e) {
421
+ var t = [];
422
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(sl, function(n, r, a, o) {
423
+ t.push(a ? o.replace(il, "$1") : r || n);
424
+ }), t;
425
+ });
426
+ function ul(e) {
427
+ return e == null ? "" : Hn(e);
428
+ }
429
+ function pt(e, t) {
430
+ return de(e) ? e : Lo(e, t) ? [e] : cl(ul(e));
431
+ }
432
+ var dl = 1 / 0;
433
+ function Jt(e) {
434
+ if (typeof e == "string" || Vt(e))
435
+ return e;
436
+ var t = e + "";
437
+ return t == "0" && 1 / e == -dl ? "-0" : t;
438
+ }
439
+ function Yn(e, t) {
440
+ t = pt(t, e);
441
+ for (var n = 0, r = t.length; e != null && n < r; )
442
+ e = e[Jt(t[n++])];
443
+ return n && n == r ? e : void 0;
444
+ }
445
+ function fl(e, t, n) {
446
+ var r = e == null ? void 0 : Yn(e, t);
447
+ return r === void 0 ? n : r;
448
+ }
449
+ function Jn(e, t) {
450
+ for (var n = -1, r = t.length, a = e.length; ++n < r; )
451
+ e[a + n] = t[n];
452
+ return e;
453
+ }
454
+ var yn = ae ? ae.isConcatSpreadable : void 0;
455
+ function hl(e) {
456
+ return de(e) || Yt(e) || !!(yn && e && e[yn]);
457
+ }
458
+ function vl(e, t, n, r, a) {
459
+ var o = -1, s = e.length;
460
+ for (n || (n = hl), a || (a = []); ++o < s; ) {
461
+ var u = e[o];
462
+ n(u) ? Jn(a, u) : a[a.length] = u;
463
+ }
464
+ return a;
465
+ }
466
+ function pl(e) {
467
+ var t = e == null ? 0 : e.length;
468
+ return t ? vl(e) : [];
469
+ }
470
+ function gl(e) {
471
+ return Oa(Da(e, void 0, pl), e + "");
472
+ }
473
+ function ml() {
474
+ this.__data__ = new ve(), this.size = 0;
475
+ }
476
+ function yl(e) {
477
+ var t = this.__data__, n = t.delete(e);
478
+ return this.size = t.size, n;
479
+ }
480
+ function bl(e) {
481
+ return this.__data__.get(e);
482
+ }
483
+ function _l(e) {
484
+ return this.__data__.has(e);
485
+ }
486
+ var Sl = 200;
487
+ function wl(e, t) {
488
+ var n = this.__data__;
489
+ if (n instanceof ve) {
490
+ var r = n.__data__;
491
+ if (!Qe || r.length < Sl - 1)
492
+ return r.push([e, t]), this.size = ++n.size, this;
493
+ n = this.__data__ = new pe(r);
494
+ }
495
+ return n.set(e, t), this.size = n.size, this;
496
+ }
497
+ function we(e) {
498
+ var t = this.__data__ = new ve(e);
499
+ this.size = t.size;
500
+ }
501
+ we.prototype.clear = ml;
502
+ we.prototype.delete = yl;
503
+ we.prototype.get = bl;
504
+ we.prototype.has = _l;
505
+ we.prototype.set = wl;
506
+ function Cl(e, t) {
507
+ for (var n = -1, r = e == null ? 0 : e.length, a = 0, o = []; ++n < r; ) {
508
+ var s = e[n];
509
+ t(s, n, e) && (o[a++] = s);
510
+ }
511
+ return o;
512
+ }
513
+ function El() {
514
+ return [];
515
+ }
516
+ var kl = Object.prototype, xl = kl.propertyIsEnumerable, bn = Object.getOwnPropertySymbols, Tl = bn ? function(e) {
517
+ return e == null ? [] : (e = Object(e), Cl(bn(e), function(t) {
518
+ return xl.call(e, t);
519
+ }));
520
+ } : El;
521
+ function Nl(e, t, n) {
522
+ var r = t(e);
523
+ return de(e) ? r : Jn(r, n(e));
524
+ }
525
+ function _n(e) {
526
+ return Nl(e, $o, Tl);
527
+ }
528
+ var Ot = Ae(he, "DataView"), $t = Ae(he, "Promise"), It = Ae(he, "Set"), Sn = "[object Map]", Ol = "[object Object]", wn = "[object Promise]", Cn = "[object Set]", En = "[object WeakMap]", kn = "[object DataView]", $l = Ie(Ot), Il = Ie(Qe), Al = Ie($t), Ll = Ie(It), Pl = Ie(Tt), _e = Fe;
529
+ (Ot && _e(new Ot(new ArrayBuffer(1))) != kn || Qe && _e(new Qe()) != Sn || $t && _e($t.resolve()) != wn || It && _e(new It()) != Cn || Tt && _e(new Tt()) != En) && (_e = function(e) {
530
+ var t = Fe(e), n = t == Ol ? e.constructor : void 0, r = n ? Ie(n) : "";
531
+ if (r)
532
+ switch (r) {
533
+ case $l:
534
+ return kn;
535
+ case Il:
536
+ return Sn;
537
+ case Al:
538
+ return wn;
539
+ case Ll:
540
+ return Cn;
541
+ case Pl:
542
+ return En;
543
+ }
544
+ return t;
545
+ });
546
+ var xn = he.Uint8Array, Ml = "__lodash_hash_undefined__";
547
+ function Dl(e) {
548
+ return this.__data__.set(e, Ml), this;
549
+ }
550
+ function zl(e) {
551
+ return this.__data__.has(e);
552
+ }
553
+ function lt(e) {
554
+ var t = -1, n = e == null ? 0 : e.length;
555
+ for (this.__data__ = new pe(); ++t < n; )
556
+ this.add(e[t]);
557
+ }
558
+ lt.prototype.add = lt.prototype.push = Dl;
559
+ lt.prototype.has = zl;
560
+ function Rl(e, t) {
561
+ for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
562
+ if (t(e[n], n, e))
563
+ return !0;
564
+ return !1;
565
+ }
566
+ function Kl(e, t) {
567
+ return e.has(t);
568
+ }
569
+ var Fl = 1, Bl = 2;
570
+ function Xn(e, t, n, r, a, o) {
571
+ var s = n & Fl, u = e.length, v = t.length;
572
+ if (u != v && !(s && v > u))
573
+ return !1;
574
+ var l = o.get(e), d = o.get(t);
575
+ if (l && d)
576
+ return l == t && d == e;
577
+ var h = -1, _ = !0, y = n & Bl ? new lt() : void 0;
578
+ for (o.set(e, t), o.set(t, e); ++h < u; ) {
579
+ var f = e[h], i = t[h];
580
+ if (r)
581
+ var g = s ? r(i, f, h, t, e, o) : r(f, i, h, e, t, o);
582
+ if (g !== void 0) {
583
+ if (g)
584
+ continue;
585
+ _ = !1;
586
+ break;
587
+ }
588
+ if (y) {
589
+ if (!Rl(t, function(m, x) {
590
+ if (!Kl(y, x) && (f === m || a(f, m, n, r, o)))
591
+ return y.push(x);
592
+ })) {
593
+ _ = !1;
594
+ break;
595
+ }
596
+ } else if (!(f === i || a(f, i, n, r, o))) {
597
+ _ = !1;
598
+ break;
599
+ }
600
+ }
601
+ return o.delete(e), o.delete(t), _;
602
+ }
603
+ function jl(e) {
604
+ var t = -1, n = Array(e.size);
605
+ return e.forEach(function(r, a) {
606
+ n[++t] = [a, r];
607
+ }), n;
608
+ }
609
+ function Hl(e) {
610
+ var t = -1, n = Array(e.size);
611
+ return e.forEach(function(r) {
612
+ n[++t] = r;
613
+ }), n;
614
+ }
615
+ var Gl = 1, Vl = 2, Ul = "[object Boolean]", Wl = "[object Date]", ql = "[object Error]", Yl = "[object Map]", Jl = "[object Number]", Xl = "[object RegExp]", Zl = "[object Set]", Ql = "[object String]", es = "[object Symbol]", ts = "[object ArrayBuffer]", ns = "[object DataView]", Tn = ae ? ae.prototype : void 0, wt = Tn ? Tn.valueOf : void 0;
616
+ function rs(e, t, n, r, a, o, s) {
617
+ switch (n) {
618
+ case ns:
619
+ if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
620
+ return !1;
621
+ e = e.buffer, t = t.buffer;
622
+ case ts:
623
+ return !(e.byteLength != t.byteLength || !o(new xn(e), new xn(t)));
624
+ case Ul:
625
+ case Wl:
626
+ case Jl:
627
+ return Wt(+e, +t);
628
+ case ql:
629
+ return e.name == t.name && e.message == t.message;
630
+ case Xl:
631
+ case Ql:
632
+ return e == t + "";
633
+ case Yl:
634
+ var u = jl;
635
+ case Zl:
636
+ var v = r & Gl;
637
+ if (u || (u = Hl), e.size != t.size && !v)
638
+ return !1;
639
+ var l = s.get(e);
640
+ if (l)
641
+ return l == t;
642
+ r |= Vl, s.set(e, t);
643
+ var d = Xn(u(e), u(t), r, a, o, s);
644
+ return s.delete(e), d;
645
+ case es:
646
+ if (wt)
647
+ return wt.call(e) == wt.call(t);
648
+ }
649
+ return !1;
650
+ }
651
+ var as = 1, os = Object.prototype, ls = os.hasOwnProperty;
652
+ function ss(e, t, n, r, a, o) {
653
+ var s = n & as, u = _n(e), v = u.length, l = _n(t), d = l.length;
654
+ if (v != d && !s)
655
+ return !1;
656
+ for (var h = v; h--; ) {
657
+ var _ = u[h];
658
+ if (!(s ? _ in t : ls.call(t, _)))
659
+ return !1;
660
+ }
661
+ var y = o.get(e), f = o.get(t);
662
+ if (y && f)
663
+ return y == t && f == e;
664
+ var i = !0;
665
+ o.set(e, t), o.set(t, e);
666
+ for (var g = s; ++h < v; ) {
667
+ _ = u[h];
668
+ var m = e[_], x = t[_];
669
+ if (r)
670
+ var E = s ? r(x, m, _, t, e, o) : r(m, x, _, e, t, o);
671
+ if (!(E === void 0 ? m === x || a(m, x, n, r, o) : E)) {
672
+ i = !1;
673
+ break;
674
+ }
675
+ g || (g = _ == "constructor");
676
+ }
677
+ if (i && !g) {
678
+ var S = e.constructor, N = t.constructor;
679
+ S != N && "constructor" in e && "constructor" in t && !(typeof S == "function" && S instanceof S && typeof N == "function" && N instanceof N) && (i = !1);
680
+ }
681
+ return o.delete(e), o.delete(t), i;
682
+ }
683
+ var is = 1, Nn = "[object Arguments]", On = "[object Array]", et = "[object Object]", cs = Object.prototype, $n = cs.hasOwnProperty;
684
+ function us(e, t, n, r, a, o) {
685
+ var s = de(e), u = de(t), v = s ? On : _e(e), l = u ? On : _e(t);
686
+ v = v == Nn ? et : v, l = l == Nn ? et : l;
687
+ var d = v == et, h = l == et, _ = v == l;
688
+ if (_ && Nt(e)) {
689
+ if (!Nt(t))
690
+ return !1;
691
+ s = !0, d = !1;
692
+ }
693
+ if (_ && !d)
694
+ return o || (o = new we()), s || qn(e) ? Xn(e, t, n, r, a, o) : rs(e, t, v, n, r, a, o);
695
+ if (!(n & is)) {
696
+ var y = d && $n.call(e, "__wrapped__"), f = h && $n.call(t, "__wrapped__");
697
+ if (y || f) {
698
+ var i = y ? e.value() : e, g = f ? t.value() : t;
699
+ return o || (o = new we()), a(i, g, n, r, o);
700
+ }
701
+ }
702
+ return _ ? (o || (o = new we()), ss(e, t, n, r, a, o)) : !1;
703
+ }
704
+ function Zn(e, t, n, r, a) {
705
+ return e === t ? !0 : e == null || t == null || !ze(e) && !ze(t) ? e !== e && t !== t : us(e, t, n, r, Zn, a);
706
+ }
707
+ function ds(e, t) {
708
+ return e != null && t in Object(e);
709
+ }
710
+ function fs(e, t, n) {
711
+ t = pt(t, e);
712
+ for (var r = -1, a = t.length, o = !1; ++r < a; ) {
713
+ var s = Jt(t[r]);
714
+ if (!(o = e != null && n(e, s)))
715
+ break;
716
+ e = e[s];
717
+ }
718
+ return o || ++r != a ? o : (a = e == null ? 0 : e.length, !!a && qt(a) && Ut(s, a) && (de(e) || Yt(e)));
719
+ }
720
+ function hs(e, t) {
721
+ return e != null && fs(e, t, ds);
722
+ }
723
+ function vs(e) {
724
+ for (var t = -1, n = e == null ? 0 : e.length, r = {}; ++t < n; ) {
725
+ var a = e[t];
726
+ r[a[0]] = a[1];
727
+ }
728
+ return r;
729
+ }
730
+ function ps(e, t) {
731
+ return Zn(e, t);
732
+ }
733
+ function gs(e) {
734
+ return e == null;
735
+ }
736
+ function ms(e, t, n, r) {
737
+ if (!at(e))
738
+ return e;
739
+ t = pt(t, e);
740
+ for (var a = -1, o = t.length, s = o - 1, u = e; u != null && ++a < o; ) {
741
+ var v = Jt(t[a]), l = n;
742
+ if (v === "__proto__" || v === "constructor" || v === "prototype")
743
+ return e;
744
+ if (a != s) {
745
+ var d = u[v];
746
+ l = void 0, l === void 0 && (l = at(d) ? d : Ut(t[a + 1]) ? [] : {});
747
+ }
748
+ Ma(u, v, l), u = u[v];
749
+ }
750
+ return e;
751
+ }
752
+ function ys(e, t, n) {
753
+ for (var r = -1, a = t.length, o = {}; ++r < a; ) {
754
+ var s = t[r], u = Yn(e, s);
755
+ n(u, s) && ms(o, pt(s, e), u);
756
+ }
757
+ return o;
758
+ }
759
+ function bs(e, t) {
760
+ return ys(e, t, function(n, r) {
761
+ return hs(e, r);
762
+ });
763
+ }
764
+ var _s = gl(function(e, t) {
765
+ return e == null ? {} : bs(e, t);
766
+ });
767
+ const st = (e) => e === void 0, At = (e) => typeof e == "boolean", Te = (e) => typeof e == "number", Ss = (e) => Ce(e) ? !Number.isNaN(Number(e)) : !1;
768
+ class Qn extends Error {
769
+ constructor(t) {
770
+ super(t), this.name = "ElementPlusError";
771
+ }
772
+ }
773
+ function ws(e, t) {
774
+ throw new Qn(`[${e}] ${t}`);
775
+ }
776
+ function gt(e, t) {
777
+ if (process.env.NODE_ENV !== "production") {
778
+ const n = Ce(e) ? new Qn(`[${e}] ${t}`) : e;
779
+ }
780
+ }
781
+ const Cs = "utils/dom/style";
782
+ function Es(e, t = "px") {
783
+ if (!e)
784
+ return "";
785
+ if (Te(e) || Ss(e))
786
+ return `${e}${t}`;
787
+ if (Ce(e))
788
+ return e;
789
+ gt(Cs, "binding value must be a string or number");
790
+ }
791
+ /*! Element Plus Icons Vue v2.3.1 */
792
+ var ks = /* @__PURE__ */ F({
793
+ name: "CaretRight",
794
+ __name: "caret-right",
795
+ setup(e) {
796
+ return (t, n) => (P(), W("svg", {
797
+ xmlns: "http://www.w3.org/2000/svg",
798
+ viewBox: "0 0 1024 1024"
799
+ }, [
800
+ Oe("path", {
801
+ fill: "currentColor",
802
+ d: "M384 192v640l384-320.064z"
803
+ })
804
+ ]));
805
+ }
806
+ }), xs = ks;
807
+ const er = "__epPropKey", V = (e) => e, Ts = (e) => dt(e) && !!e[er], ge = (e, t) => {
808
+ if (!dt(e) || Ts(e))
809
+ return e;
810
+ const { values: n, required: r, default: a, type: o, validator: s } = e, v = {
811
+ type: o,
812
+ required: !!r,
813
+ validator: n || s ? (l) => {
814
+ let d = !1, h = [];
815
+ if (n && (h = Array.from(n), xt(e, "default") && h.push(a), d || (d = h.includes(l))), s && (d || (d = s(l))), !d && h.length > 0) {
816
+ const _ = [...new Set(h)].map((y) => JSON.stringify(y)).join(", ");
817
+ Or(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${_}], got value ${JSON.stringify(l)}.`);
818
+ }
819
+ return d;
820
+ } : void 0,
821
+ [er]: !0
822
+ };
823
+ return xt(e, "default") && (v.default = a), v;
824
+ }, me = (e) => vs(Object.entries(e).map(([t, n]) => [
825
+ t,
826
+ ge(n, t)
827
+ ])), Ns = V([
828
+ String,
829
+ Object,
830
+ Function
831
+ ]), Xt = (e, t) => {
832
+ if (e.install = (n) => {
833
+ for (const r of [e, ...Object.values(t ?? {})])
834
+ n.component(r.name, r);
835
+ }, t)
836
+ for (const [n, r] of Object.entries(t))
837
+ e[n] = r;
838
+ return e;
839
+ }, tr = (e) => (e.install = Gr, e), mt = "update:modelValue", Os = ["", "default", "small", "large"], nr = (e) => Ke ? window.requestAnimationFrame(e) : setTimeout(e, 16), rr = (e) => Ke ? window.cancelAnimationFrame(e) : clearTimeout(e), Me = (e) => e;
840
+ var $s = {
841
+ name: "en",
842
+ el: {
843
+ colorpicker: {
844
+ confirm: "OK",
845
+ clear: "Clear",
846
+ defaultLabel: "color picker",
847
+ description: "current color is {color}. press enter to select a new color."
848
+ },
849
+ datepicker: {
850
+ now: "Now",
851
+ today: "Today",
852
+ cancel: "Cancel",
853
+ clear: "Clear",
854
+ confirm: "OK",
855
+ dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
856
+ monthTablePrompt: "Use the arrow keys and enter to select the month",
857
+ yearTablePrompt: "Use the arrow keys and enter to select the year",
858
+ selectedDate: "Selected date",
859
+ selectDate: "Select date",
860
+ selectTime: "Select time",
861
+ startDate: "Start Date",
862
+ startTime: "Start Time",
863
+ endDate: "End Date",
864
+ endTime: "End Time",
865
+ prevYear: "Previous Year",
866
+ nextYear: "Next Year",
867
+ prevMonth: "Previous Month",
868
+ nextMonth: "Next Month",
869
+ year: "",
870
+ month1: "January",
871
+ month2: "February",
872
+ month3: "March",
873
+ month4: "April",
874
+ month5: "May",
875
+ month6: "June",
876
+ month7: "July",
877
+ month8: "August",
878
+ month9: "September",
879
+ month10: "October",
880
+ month11: "November",
881
+ month12: "December",
882
+ week: "week",
883
+ weeks: {
884
+ sun: "Sun",
885
+ mon: "Mon",
886
+ tue: "Tue",
887
+ wed: "Wed",
888
+ thu: "Thu",
889
+ fri: "Fri",
890
+ sat: "Sat"
891
+ },
892
+ weeksFull: {
893
+ sun: "Sunday",
894
+ mon: "Monday",
895
+ tue: "Tuesday",
896
+ wed: "Wednesday",
897
+ thu: "Thursday",
898
+ fri: "Friday",
899
+ sat: "Saturday"
900
+ },
901
+ months: {
902
+ jan: "Jan",
903
+ feb: "Feb",
904
+ mar: "Mar",
905
+ apr: "Apr",
906
+ may: "May",
907
+ jun: "Jun",
908
+ jul: "Jul",
909
+ aug: "Aug",
910
+ sep: "Sep",
911
+ oct: "Oct",
912
+ nov: "Nov",
913
+ dec: "Dec"
914
+ }
915
+ },
916
+ inputNumber: {
917
+ decrease: "decrease number",
918
+ increase: "increase number"
919
+ },
920
+ select: {
921
+ loading: "Loading",
922
+ noMatch: "No matching data",
923
+ noData: "No data",
924
+ placeholder: "Select"
925
+ },
926
+ dropdown: {
927
+ toggleDropdown: "Toggle Dropdown"
928
+ },
929
+ cascader: {
930
+ noMatch: "No matching data",
931
+ loading: "Loading",
932
+ placeholder: "Select",
933
+ noData: "No data"
934
+ },
935
+ pagination: {
936
+ goto: "Go to",
937
+ pagesize: "/page",
938
+ total: "Total {total}",
939
+ pageClassifier: "",
940
+ page: "Page",
941
+ prev: "Go to previous page",
942
+ next: "Go to next page",
943
+ currentPage: "page {pager}",
944
+ prevPages: "Previous {pager} pages",
945
+ nextPages: "Next {pager} pages",
946
+ deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
947
+ },
948
+ dialog: {
949
+ close: "Close this dialog"
950
+ },
951
+ drawer: {
952
+ close: "Close this dialog"
953
+ },
954
+ messagebox: {
955
+ title: "Message",
956
+ confirm: "OK",
957
+ cancel: "Cancel",
958
+ error: "Illegal input",
959
+ close: "Close this dialog"
960
+ },
961
+ upload: {
962
+ deleteTip: "press delete to remove",
963
+ delete: "Delete",
964
+ preview: "Preview",
965
+ continue: "Continue"
966
+ },
967
+ slider: {
968
+ defaultLabel: "slider between {min} and {max}",
969
+ defaultRangeStartLabel: "pick start value",
970
+ defaultRangeEndLabel: "pick end value"
971
+ },
972
+ table: {
973
+ emptyText: "No Data",
974
+ confirmFilter: "Confirm",
975
+ resetFilter: "Reset",
976
+ clearFilter: "All",
977
+ sumText: "Sum"
978
+ },
979
+ tree: {
980
+ emptyText: "No Data"
981
+ },
982
+ transfer: {
983
+ noMatch: "No matching data",
984
+ noData: "No data",
985
+ titles: ["List 1", "List 2"],
986
+ filterPlaceholder: "Enter keyword",
987
+ noCheckedFormat: "{total} items",
988
+ hasCheckedFormat: "{checked}/{total} checked"
989
+ },
990
+ image: {
991
+ error: "FAILED"
992
+ },
993
+ pageHeader: {
994
+ title: "Back"
995
+ },
996
+ popconfirm: {
997
+ confirmButtonText: "Yes",
998
+ cancelButtonText: "No"
999
+ }
1000
+ }
1001
+ };
1002
+ const Is = (e) => (t, n) => As(t, n, c(e)), As = (e, t, n) => fl(n, e, e).replace(/\{(\w+)\}/g, (r, a) => {
1003
+ var o;
1004
+ return `${(o = t == null ? void 0 : t[a]) != null ? o : `{${a}}`}`;
1005
+ }), Ls = (e) => {
1006
+ const t = w(() => c(e).name), n = qe(e) ? e : $(e);
1007
+ return {
1008
+ lang: t,
1009
+ locale: n,
1010
+ t: Is(e)
1011
+ };
1012
+ }, Ps = Symbol("localeContextKey"), Ms = (e) => {
1013
+ const t = U(Ps, $());
1014
+ return Ls(w(() => t.value || $s));
1015
+ }, Ct = "el", Ds = "is-", ke = (e, t, n, r, a) => {
1016
+ let o = `${e}-${t}`;
1017
+ return n && (o += `-${n}`), r && (o += `__${r}`), a && (o += `--${a}`), o;
1018
+ }, zs = Symbol("namespaceContextKey"), ar = (e) => {
1019
+ const t = fe() ? U(zs, $(Ct)) : $(Ct);
1020
+ return w(() => c(t) || Ct);
1021
+ }, oe = (e, t) => {
1022
+ const n = ar();
1023
+ return {
1024
+ namespace: n,
1025
+ b: (i = "") => ke(n.value, e, i, "", ""),
1026
+ e: (i) => i ? ke(n.value, e, "", i, "") : "",
1027
+ m: (i) => i ? ke(n.value, e, "", "", i) : "",
1028
+ be: (i, g) => i && g ? ke(n.value, e, i, g, "") : "",
1029
+ em: (i, g) => i && g ? ke(n.value, e, "", i, g) : "",
1030
+ bm: (i, g) => i && g ? ke(n.value, e, i, "", g) : "",
1031
+ bem: (i, g, m) => i && g && m ? ke(n.value, e, i, g, m) : "",
1032
+ is: (i, ...g) => {
1033
+ const m = g.length >= 1 ? g[0] : !0;
1034
+ return i && m ? `${Ds}${i}` : "";
1035
+ },
1036
+ cssVar: (i) => {
1037
+ const g = {};
1038
+ for (const m in i)
1039
+ i[m] && (g[`--${n.value}-${m}`] = i[m]);
1040
+ return g;
1041
+ },
1042
+ cssVarName: (i) => `--${n.value}-${i}`,
1043
+ cssVarBlock: (i) => {
1044
+ const g = {};
1045
+ for (const m in i)
1046
+ i[m] && (g[`--${n.value}-${e}-${m}`] = i[m]);
1047
+ return g;
1048
+ },
1049
+ cssVarBlockName: (i) => `--${n.value}-${e}-${i}`
1050
+ };
1051
+ }, or = (e) => {
1052
+ const t = fe();
1053
+ return w(() => {
1054
+ var n, r;
1055
+ return (r = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$props) == null ? void 0 : r[e];
1056
+ });
1057
+ }, Lt = {
1058
+ prefix: Math.floor(Math.random() * 1e4),
1059
+ current: 0
1060
+ }, Rs = Symbol("elIdInjection"), Ks = () => fe() ? U(Rs, Lt) : Lt, Fs = (e) => {
1061
+ const t = Ks();
1062
+ !Ke && t === Lt && gt("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
1063
+ usage: app.provide(ID_INJECTION_KEY, {
1064
+ prefix: number,
1065
+ current: number,
1066
+ })`);
1067
+ const n = ar();
1068
+ return w(() => c(e) || `${n.value}-id-${t.prefix}-${t.current++}`);
1069
+ }, lr = ge({
1070
+ type: String,
1071
+ values: Os,
1072
+ required: !1
1073
+ }), Bs = Symbol("size"), js = () => {
1074
+ const e = U(Bs, {});
1075
+ return w(() => c(e.size) || "");
1076
+ };
1077
+ var Be = (e, t) => {
1078
+ const n = e.__vccOpts || e;
1079
+ for (const [r, a] of t)
1080
+ n[r] = a;
1081
+ return n;
1082
+ };
1083
+ const Hs = me({
1084
+ size: {
1085
+ type: V([Number, String])
1086
+ },
1087
+ color: {
1088
+ type: String
1089
+ }
1090
+ }), Gs = F({
1091
+ name: "ElIcon",
1092
+ inheritAttrs: !1
1093
+ }), Vs = /* @__PURE__ */ F({
1094
+ ...Gs,
1095
+ props: Hs,
1096
+ setup(e) {
1097
+ const t = e, n = oe("icon"), r = w(() => {
1098
+ const { size: a, color: o } = t;
1099
+ return !a && !o ? {} : {
1100
+ fontSize: st(a) ? void 0 : Es(a),
1101
+ "--color": o
1102
+ };
1103
+ });
1104
+ return (a, o) => (P(), W("i", zn({
1105
+ class: c(n).b(),
1106
+ style: c(r)
1107
+ }, a.$attrs), [
1108
+ De(a.$slots, "default")
1109
+ ], 16));
1110
+ }
1111
+ });
1112
+ var Us = /* @__PURE__ */ Be(Vs, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);
1113
+ const Ws = Xt(Us), Zt = Symbol("formContextKey"), Qt = Symbol("formItemContextKey"), In = (e, t = {}) => {
1114
+ const n = $(void 0), r = t.prop ? n : or("size"), a = t.global ? n : js(), o = t.form ? { size: void 0 } : U(Zt, void 0), s = t.formItem ? { size: void 0 } : U(Qt, void 0);
1115
+ return w(() => r.value || c(e) || (s == null ? void 0 : s.size) || (o == null ? void 0 : o.size) || a.value || "");
1116
+ }, qs = (e) => {
1117
+ const t = or("disabled"), n = U(Zt, void 0);
1118
+ return w(() => t.value || c(e) || (n == null ? void 0 : n.disabled) || !1);
1119
+ }, en = () => {
1120
+ const e = U(Zt, void 0), t = U(Qt, void 0);
1121
+ return {
1122
+ form: e,
1123
+ formItem: t
1124
+ };
1125
+ }, sr = (e, {
1126
+ formItemContext: t,
1127
+ disableIdGeneration: n,
1128
+ disableIdManagement: r
1129
+ }) => {
1130
+ n || (n = $(!1)), r || (r = $(!1));
1131
+ const a = $();
1132
+ let o;
1133
+ const s = w(() => {
1134
+ var u;
1135
+ return !!(!e.label && t && t.inputIds && ((u = t.inputIds) == null ? void 0 : u.length) <= 1);
1136
+ });
1137
+ return Ht(() => {
1138
+ o = ue([$r(e, "id"), n], ([u, v]) => {
1139
+ const l = u ?? (v ? void 0 : Fs().value);
1140
+ l !== a.value && (t != null && t.removeInputId && (a.value && t.removeInputId(a.value), !(r != null && r.value) && !v && l && t.addInputId(l)), a.value = l);
1141
+ }, { immediate: !0 });
1142
+ }), Ir(() => {
1143
+ o && o(), t != null && t.removeInputId && a.value && t.removeInputId(a.value);
1144
+ }), {
1145
+ isLabeledByFormItem: s,
1146
+ inputId: a
1147
+ };
1148
+ }, Ys = {
1149
+ vertical: {
1150
+ offset: "offsetHeight",
1151
+ scroll: "scrollTop",
1152
+ scrollSize: "scrollHeight",
1153
+ size: "height",
1154
+ key: "vertical",
1155
+ axis: "Y",
1156
+ client: "clientY",
1157
+ direction: "top"
1158
+ },
1159
+ horizontal: {
1160
+ offset: "offsetWidth",
1161
+ scroll: "scrollLeft",
1162
+ scrollSize: "scrollWidth",
1163
+ size: "width",
1164
+ key: "horizontal",
1165
+ axis: "X",
1166
+ client: "clientX",
1167
+ direction: "left"
1168
+ }
1169
+ }, ir = {
1170
+ modelValue: {
1171
+ type: [Number, String, Boolean],
1172
+ default: void 0
1173
+ },
1174
+ label: {
1175
+ type: [String, Boolean, Number, Object],
1176
+ default: void 0
1177
+ },
1178
+ indeterminate: Boolean,
1179
+ disabled: Boolean,
1180
+ checked: Boolean,
1181
+ name: {
1182
+ type: String,
1183
+ default: void 0
1184
+ },
1185
+ trueLabel: {
1186
+ type: [String, Number],
1187
+ default: void 0
1188
+ },
1189
+ falseLabel: {
1190
+ type: [String, Number],
1191
+ default: void 0
1192
+ },
1193
+ id: {
1194
+ type: String,
1195
+ default: void 0
1196
+ },
1197
+ controls: {
1198
+ type: String,
1199
+ default: void 0
1200
+ },
1201
+ border: Boolean,
1202
+ size: lr,
1203
+ tabindex: [String, Number],
1204
+ validateEvent: {
1205
+ type: Boolean,
1206
+ default: !0
1207
+ }
1208
+ }, cr = {
1209
+ [mt]: (e) => Ce(e) || Te(e) || At(e),
1210
+ change: (e) => Ce(e) || Te(e) || At(e)
1211
+ }, je = Symbol("checkboxGroupContextKey"), Js = ({
1212
+ model: e,
1213
+ isChecked: t
1214
+ }) => {
1215
+ const n = U(je, void 0), r = w(() => {
1216
+ var o, s;
1217
+ const u = (o = n == null ? void 0 : n.max) == null ? void 0 : o.value, v = (s = n == null ? void 0 : n.min) == null ? void 0 : s.value;
1218
+ return !st(u) && e.value.length >= u && !t.value || !st(v) && e.value.length <= v && t.value;
1219
+ });
1220
+ return {
1221
+ isDisabled: qs(w(() => (n == null ? void 0 : n.disabled.value) || r.value)),
1222
+ isLimitDisabled: r
1223
+ };
1224
+ }, Xs = (e, {
1225
+ model: t,
1226
+ isLimitExceeded: n,
1227
+ hasOwnLabel: r,
1228
+ isDisabled: a,
1229
+ isLabeledByFormItem: o
1230
+ }) => {
1231
+ const s = U(je, void 0), { formItem: u } = en(), { emit: v } = fe();
1232
+ function l(f) {
1233
+ var i, g;
1234
+ return f === e.trueLabel || f === !0 ? (i = e.trueLabel) != null ? i : !0 : (g = e.falseLabel) != null ? g : !1;
1235
+ }
1236
+ function d(f, i) {
1237
+ v("change", l(f), i);
1238
+ }
1239
+ function h(f) {
1240
+ if (n.value)
1241
+ return;
1242
+ const i = f.target;
1243
+ v("change", l(i.checked), f);
1244
+ }
1245
+ async function _(f) {
1246
+ n.value || !r.value && !a.value && o.value && (f.composedPath().some((m) => m.tagName === "LABEL") || (t.value = l([!1, e.falseLabel].includes(t.value)), await ce(), d(t.value, f)));
1247
+ }
1248
+ const y = w(() => (s == null ? void 0 : s.validateEvent) || e.validateEvent);
1249
+ return ue(() => e.modelValue, () => {
1250
+ y.value && (u == null || u.validate("change").catch((f) => gt(f)));
1251
+ }), {
1252
+ handleChange: h,
1253
+ onClickRoot: _
1254
+ };
1255
+ }, Zs = (e) => {
1256
+ const t = $(!1), { emit: n } = fe(), r = U(je, void 0), a = w(() => st(r) === !1), o = $(!1);
1257
+ return {
1258
+ model: w({
1259
+ get() {
1260
+ var u, v;
1261
+ return a.value ? (u = r == null ? void 0 : r.modelValue) == null ? void 0 : u.value : (v = e.modelValue) != null ? v : t.value;
1262
+ },
1263
+ set(u) {
1264
+ var v, l;
1265
+ a.value && Xe(u) ? (o.value = ((v = r == null ? void 0 : r.max) == null ? void 0 : v.value) !== void 0 && u.length > (r == null ? void 0 : r.max.value), o.value === !1 && ((l = r == null ? void 0 : r.changeEvent) == null || l.call(r, u))) : (n(mt, u), t.value = u);
1266
+ }
1267
+ }),
1268
+ isGroup: a,
1269
+ isLimitExceeded: o
1270
+ };
1271
+ }, Qs = (e, t, { model: n }) => {
1272
+ const r = U(je, void 0), a = $(!1), o = w(() => {
1273
+ const l = n.value;
1274
+ return At(l) ? l : Xe(l) ? dt(e.label) ? l.map(on).some((d) => ps(d, e.label)) : l.map(on).includes(e.label) : l != null ? l === e.trueLabel : !!l;
1275
+ }), s = In(w(() => {
1276
+ var l;
1277
+ return (l = r == null ? void 0 : r.size) == null ? void 0 : l.value;
1278
+ }), {
1279
+ prop: !0
1280
+ }), u = In(w(() => {
1281
+ var l;
1282
+ return (l = r == null ? void 0 : r.size) == null ? void 0 : l.value;
1283
+ })), v = w(() => !!t.default || !gs(e.label));
1284
+ return {
1285
+ checkboxButtonSize: s,
1286
+ isChecked: o,
1287
+ isFocused: a,
1288
+ checkboxSize: u,
1289
+ hasOwnLabel: v
1290
+ };
1291
+ }, ei = (e, { model: t }) => {
1292
+ function n() {
1293
+ Xe(t.value) && !t.value.includes(e.label) ? t.value.push(e.label) : t.value = e.trueLabel || !0;
1294
+ }
1295
+ e.checked && n();
1296
+ }, ur = (e, t) => {
1297
+ const { formItem: n } = en(), { model: r, isGroup: a, isLimitExceeded: o } = Zs(e), {
1298
+ isFocused: s,
1299
+ isChecked: u,
1300
+ checkboxButtonSize: v,
1301
+ checkboxSize: l,
1302
+ hasOwnLabel: d
1303
+ } = Qs(e, t, { model: r }), { isDisabled: h } = Js({ model: r, isChecked: u }), { inputId: _, isLabeledByFormItem: y } = sr(e, {
1304
+ formItemContext: n,
1305
+ disableIdGeneration: d,
1306
+ disableIdManagement: a
1307
+ }), { handleChange: f, onClickRoot: i } = Xs(e, {
1308
+ model: r,
1309
+ isLimitExceeded: o,
1310
+ hasOwnLabel: d,
1311
+ isDisabled: h,
1312
+ isLabeledByFormItem: y
1313
+ });
1314
+ return ei(e, { model: r }), {
1315
+ inputId: _,
1316
+ isLabeledByFormItem: y,
1317
+ isChecked: u,
1318
+ isDisabled: h,
1319
+ isFocused: s,
1320
+ checkboxButtonSize: v,
1321
+ checkboxSize: l,
1322
+ hasOwnLabel: d,
1323
+ model: r,
1324
+ handleChange: f,
1325
+ onClickRoot: i
1326
+ };
1327
+ }, ti = ["id", "indeterminate", "name", "tabindex", "disabled", "true-value", "false-value"], ni = ["id", "indeterminate", "disabled", "value", "name", "tabindex"], ri = F({
1328
+ name: "ElCheckbox"
1329
+ }), ai = /* @__PURE__ */ F({
1330
+ ...ri,
1331
+ props: ir,
1332
+ emits: cr,
1333
+ setup(e) {
1334
+ const t = e, n = Gt(), {
1335
+ inputId: r,
1336
+ isLabeledByFormItem: a,
1337
+ isChecked: o,
1338
+ isDisabled: s,
1339
+ isFocused: u,
1340
+ checkboxSize: v,
1341
+ hasOwnLabel: l,
1342
+ model: d,
1343
+ handleChange: h,
1344
+ onClickRoot: _
1345
+ } = ur(t, n), y = oe("checkbox"), f = w(() => [
1346
+ y.b(),
1347
+ y.m(v.value),
1348
+ y.is("disabled", s.value),
1349
+ y.is("bordered", t.border),
1350
+ y.is("checked", o.value)
1351
+ ]), i = w(() => [
1352
+ y.e("input"),
1353
+ y.is("disabled", s.value),
1354
+ y.is("checked", o.value),
1355
+ y.is("indeterminate", t.indeterminate),
1356
+ y.is("focus", u.value)
1357
+ ]);
1358
+ return (g, m) => (P(), te(Ye(!c(l) && c(a) ? "span" : "label"), {
1359
+ class: H(c(f)),
1360
+ "aria-controls": g.indeterminate ? g.controls : null,
1361
+ onClick: c(_)
1362
+ }, {
1363
+ default: Ne(() => [
1364
+ Oe("span", {
1365
+ class: H(c(i))
1366
+ }, [
1367
+ g.trueLabel || g.falseLabel ? nt((P(), W("input", {
1368
+ key: 0,
1369
+ id: c(r),
1370
+ "onUpdate:modelValue": m[0] || (m[0] = (x) => qe(d) ? d.value = x : null),
1371
+ class: H(c(y).e("original")),
1372
+ type: "checkbox",
1373
+ indeterminate: g.indeterminate,
1374
+ name: g.name,
1375
+ tabindex: g.tabindex,
1376
+ disabled: c(s),
1377
+ "true-value": g.trueLabel,
1378
+ "false-value": g.falseLabel,
1379
+ onChange: m[1] || (m[1] = (...x) => c(h) && c(h)(...x)),
1380
+ onFocus: m[2] || (m[2] = (x) => u.value = !0),
1381
+ onBlur: m[3] || (m[3] = (x) => u.value = !1),
1382
+ onClick: m[4] || (m[4] = Se(() => {
1383
+ }, ["stop"]))
1384
+ }, null, 42, ti)), [
1385
+ [rt, c(d)]
1386
+ ]) : nt((P(), W("input", {
1387
+ key: 1,
1388
+ id: c(r),
1389
+ "onUpdate:modelValue": m[5] || (m[5] = (x) => qe(d) ? d.value = x : null),
1390
+ class: H(c(y).e("original")),
1391
+ type: "checkbox",
1392
+ indeterminate: g.indeterminate,
1393
+ disabled: c(s),
1394
+ value: g.label,
1395
+ name: g.name,
1396
+ tabindex: g.tabindex,
1397
+ onChange: m[6] || (m[6] = (...x) => c(h) && c(h)(...x)),
1398
+ onFocus: m[7] || (m[7] = (x) => u.value = !0),
1399
+ onBlur: m[8] || (m[8] = (x) => u.value = !1),
1400
+ onClick: m[9] || (m[9] = Se(() => {
1401
+ }, ["stop"]))
1402
+ }, null, 42, ni)), [
1403
+ [rt, c(d)]
1404
+ ]),
1405
+ Oe("span", {
1406
+ class: H(c(y).e("inner"))
1407
+ }, null, 2)
1408
+ ], 2),
1409
+ c(l) ? (P(), W("span", {
1410
+ key: 0,
1411
+ class: H(c(y).e("label"))
1412
+ }, [
1413
+ De(g.$slots, "default"),
1414
+ g.$slots.default ? Je("v-if", !0) : (P(), W(Rn, { key: 0 }, [
1415
+ Kn(ct(g.label), 1)
1416
+ ], 64))
1417
+ ], 2)) : Je("v-if", !0)
1418
+ ]),
1419
+ _: 3
1420
+ }, 8, ["class", "aria-controls", "onClick"]));
1421
+ }
1422
+ });
1423
+ var oi = /* @__PURE__ */ Be(ai, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);
1424
+ const li = ["name", "tabindex", "disabled", "true-value", "false-value"], si = ["name", "tabindex", "disabled", "value"], ii = F({
1425
+ name: "ElCheckboxButton"
1426
+ }), ci = /* @__PURE__ */ F({
1427
+ ...ii,
1428
+ props: ir,
1429
+ emits: cr,
1430
+ setup(e) {
1431
+ const t = e, n = Gt(), {
1432
+ isFocused: r,
1433
+ isChecked: a,
1434
+ isDisabled: o,
1435
+ checkboxButtonSize: s,
1436
+ model: u,
1437
+ handleChange: v
1438
+ } = ur(t, n), l = U(je, void 0), d = oe("checkbox"), h = w(() => {
1439
+ var y, f, i, g;
1440
+ const m = (f = (y = l == null ? void 0 : l.fill) == null ? void 0 : y.value) != null ? f : "";
1441
+ return {
1442
+ backgroundColor: m,
1443
+ borderColor: m,
1444
+ color: (g = (i = l == null ? void 0 : l.textColor) == null ? void 0 : i.value) != null ? g : "",
1445
+ boxShadow: m ? `-1px 0 0 0 ${m}` : void 0
1446
+ };
1447
+ }), _ = w(() => [
1448
+ d.b("button"),
1449
+ d.bm("button", s.value),
1450
+ d.is("disabled", o.value),
1451
+ d.is("checked", a.value),
1452
+ d.is("focus", r.value)
1453
+ ]);
1454
+ return (y, f) => (P(), W("label", {
1455
+ class: H(c(_))
1456
+ }, [
1457
+ y.trueLabel || y.falseLabel ? nt((P(), W("input", {
1458
+ key: 0,
1459
+ "onUpdate:modelValue": f[0] || (f[0] = (i) => qe(u) ? u.value = i : null),
1460
+ class: H(c(d).be("button", "original")),
1461
+ type: "checkbox",
1462
+ name: y.name,
1463
+ tabindex: y.tabindex,
1464
+ disabled: c(o),
1465
+ "true-value": y.trueLabel,
1466
+ "false-value": y.falseLabel,
1467
+ onChange: f[1] || (f[1] = (...i) => c(v) && c(v)(...i)),
1468
+ onFocus: f[2] || (f[2] = (i) => r.value = !0),
1469
+ onBlur: f[3] || (f[3] = (i) => r.value = !1),
1470
+ onClick: f[4] || (f[4] = Se(() => {
1471
+ }, ["stop"]))
1472
+ }, null, 42, li)), [
1473
+ [rt, c(u)]
1474
+ ]) : nt((P(), W("input", {
1475
+ key: 1,
1476
+ "onUpdate:modelValue": f[5] || (f[5] = (i) => qe(u) ? u.value = i : null),
1477
+ class: H(c(d).be("button", "original")),
1478
+ type: "checkbox",
1479
+ name: y.name,
1480
+ tabindex: y.tabindex,
1481
+ disabled: c(o),
1482
+ value: y.label,
1483
+ onChange: f[6] || (f[6] = (...i) => c(v) && c(v)(...i)),
1484
+ onFocus: f[7] || (f[7] = (i) => r.value = !0),
1485
+ onBlur: f[8] || (f[8] = (i) => r.value = !1),
1486
+ onClick: f[9] || (f[9] = Se(() => {
1487
+ }, ["stop"]))
1488
+ }, null, 42, si)), [
1489
+ [rt, c(u)]
1490
+ ]),
1491
+ y.$slots.default || y.label ? (P(), W("span", {
1492
+ key: 2,
1493
+ class: H(c(d).be("button", "inner")),
1494
+ style: ut(c(a) ? c(h) : void 0)
1495
+ }, [
1496
+ De(y.$slots, "default", {}, () => [
1497
+ Kn(ct(y.label), 1)
1498
+ ])
1499
+ ], 6)) : Je("v-if", !0)
1500
+ ], 2));
1501
+ }
1502
+ });
1503
+ var dr = /* @__PURE__ */ Be(ci, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);
1504
+ const ui = me({
1505
+ modelValue: {
1506
+ type: V(Array),
1507
+ default: () => []
1508
+ },
1509
+ disabled: Boolean,
1510
+ min: Number,
1511
+ max: Number,
1512
+ size: lr,
1513
+ label: String,
1514
+ fill: String,
1515
+ textColor: String,
1516
+ tag: {
1517
+ type: String,
1518
+ default: "div"
1519
+ },
1520
+ validateEvent: {
1521
+ type: Boolean,
1522
+ default: !0
1523
+ }
1524
+ }), di = {
1525
+ [mt]: (e) => Xe(e),
1526
+ change: (e) => Xe(e)
1527
+ }, fi = F({
1528
+ name: "ElCheckboxGroup"
1529
+ }), hi = /* @__PURE__ */ F({
1530
+ ...fi,
1531
+ props: ui,
1532
+ emits: di,
1533
+ setup(e, { emit: t }) {
1534
+ const n = e, r = oe("checkbox"), { formItem: a } = en(), { inputId: o, isLabeledByFormItem: s } = sr(n, {
1535
+ formItemContext: a
1536
+ }), u = async (l) => {
1537
+ t(mt, l), await ce(), t("change", l);
1538
+ }, v = w({
1539
+ get() {
1540
+ return n.modelValue;
1541
+ },
1542
+ set(l) {
1543
+ u(l);
1544
+ }
1545
+ });
1546
+ return kt(je, {
1547
+ ..._s(Ar(n), [
1548
+ "size",
1549
+ "min",
1550
+ "max",
1551
+ "disabled",
1552
+ "validateEvent",
1553
+ "fill",
1554
+ "textColor"
1555
+ ]),
1556
+ modelValue: v,
1557
+ changeEvent: u
1558
+ }), ue(() => n.modelValue, () => {
1559
+ n.validateEvent && (a == null || a.validate("change").catch((l) => gt(l)));
1560
+ }), (l, d) => {
1561
+ var h;
1562
+ return P(), te(Ye(l.tag), {
1563
+ id: c(o),
1564
+ class: H(c(r).b("group")),
1565
+ role: "group",
1566
+ "aria-label": c(s) ? void 0 : l.label || "checkbox-group",
1567
+ "aria-labelledby": c(s) ? (h = c(a)) == null ? void 0 : h.labelId : void 0
1568
+ }, {
1569
+ default: Ne(() => [
1570
+ De(l.$slots, "default")
1571
+ ]),
1572
+ _: 3
1573
+ }, 8, ["id", "class", "aria-label", "aria-labelledby"]);
1574
+ };
1575
+ }
1576
+ });
1577
+ var fr = /* @__PURE__ */ Be(hi, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);
1578
+ const vi = Xt(oi, {
1579
+ CheckboxButton: dr,
1580
+ CheckboxGroup: fr
1581
+ });
1582
+ tr(dr);
1583
+ tr(fr);
1584
+ var An = Number.isNaN || function(t) {
1585
+ return typeof t == "number" && t !== t;
1586
+ };
1587
+ function pi(e, t) {
1588
+ return !!(e === t || An(e) && An(t));
1589
+ }
1590
+ function gi(e, t) {
1591
+ if (e.length !== t.length)
1592
+ return !1;
1593
+ for (var n = 0; n < e.length; n++)
1594
+ if (!pi(e[n], t[n]))
1595
+ return !1;
1596
+ return !0;
1597
+ }
1598
+ function mi(e, t) {
1599
+ t === void 0 && (t = gi);
1600
+ var n = null;
1601
+ function r() {
1602
+ for (var a = [], o = 0; o < arguments.length; o++)
1603
+ a[o] = arguments[o];
1604
+ if (n && n.lastThis === this && t(a, n.lastArgs))
1605
+ return n.lastResult;
1606
+ var s = e.apply(this, a);
1607
+ return n = {
1608
+ lastResult: s,
1609
+ lastArgs: a,
1610
+ lastThis: this
1611
+ }, s;
1612
+ }
1613
+ return r.clear = function() {
1614
+ n = null;
1615
+ }, r;
1616
+ }
1617
+ const yi = () => {
1618
+ const t = fe().proxy.$props;
1619
+ return w(() => {
1620
+ const n = (r, a, o) => ({});
1621
+ return t.perfMode ? vt(n) : mi(n);
1622
+ });
1623
+ }, Ln = "itemRendered", Pn = "scroll", hr = "forward", vr = "backward", Pt = "auto", bi = "smart", _i = "start", Mn = "center", Si = "end", Re = "horizontal", tn = "vertical", wi = "ltr", tt = "rtl", Mt = "negative", pr = "positive-ascending", gr = "positive-descending", Ci = {
1624
+ [Re]: "left",
1625
+ [tn]: "top"
1626
+ }, Ei = 20, ki = {
1627
+ [Re]: "deltaX",
1628
+ [tn]: "deltaY"
1629
+ }, xi = ({ atEndEdge: e, atStartEdge: t, layout: n }, r) => {
1630
+ let a, o = 0;
1631
+ const s = (v) => v < 0 && t.value || v > 0 && e.value;
1632
+ return {
1633
+ hasReachedEdge: s,
1634
+ onWheel: (v) => {
1635
+ rr(a);
1636
+ const l = v[ki[n.value]];
1637
+ s(o) && s(o + l) || (o += l, Hr() || v.preventDefault(), a = nr(() => {
1638
+ r(o), o = 0;
1639
+ }));
1640
+ }
1641
+ };
1642
+ }, Dt = ge({
1643
+ type: V([Number, Function]),
1644
+ required: !0
1645
+ }), zt = ge({
1646
+ type: Number
1647
+ }), Rt = ge({
1648
+ type: Number,
1649
+ default: 2
1650
+ }), Ti = ge({
1651
+ type: String,
1652
+ values: ["ltr", "rtl"],
1653
+ default: "ltr"
1654
+ }), Kt = ge({
1655
+ type: Number,
1656
+ default: 0
1657
+ }), it = ge({
1658
+ type: Number,
1659
+ required: !0
1660
+ }), mr = ge({
1661
+ type: String,
1662
+ values: ["horizontal", "vertical"],
1663
+ default: tn
1664
+ }), yr = me({
1665
+ className: {
1666
+ type: String,
1667
+ default: ""
1668
+ },
1669
+ containerElement: {
1670
+ type: V([String, Object]),
1671
+ default: "div"
1672
+ },
1673
+ data: {
1674
+ type: V(Array),
1675
+ default: () => Me([])
1676
+ },
1677
+ direction: Ti,
1678
+ height: {
1679
+ type: [String, Number],
1680
+ required: !0
1681
+ },
1682
+ innerElement: {
1683
+ type: [String, Object],
1684
+ default: "div"
1685
+ },
1686
+ style: {
1687
+ type: V([Object, String, Array])
1688
+ },
1689
+ useIsScrolling: {
1690
+ type: Boolean,
1691
+ default: !1
1692
+ },
1693
+ width: {
1694
+ type: [Number, String],
1695
+ required: !1
1696
+ },
1697
+ perfMode: {
1698
+ type: Boolean,
1699
+ default: !0
1700
+ },
1701
+ scrollbarAlwaysOn: {
1702
+ type: Boolean,
1703
+ default: !1
1704
+ }
1705
+ }), Ni = me({
1706
+ cache: Rt,
1707
+ estimatedItemSize: zt,
1708
+ layout: mr,
1709
+ initScrollOffset: Kt,
1710
+ total: it,
1711
+ itemSize: Dt,
1712
+ ...yr
1713
+ }), Ft = {
1714
+ type: Number,
1715
+ default: 6
1716
+ }, br = { type: Number, default: 0 }, _r = { type: Number, default: 2 };
1717
+ me({
1718
+ columnCache: Rt,
1719
+ columnWidth: Dt,
1720
+ estimatedColumnWidth: zt,
1721
+ estimatedRowHeight: zt,
1722
+ initScrollLeft: Kt,
1723
+ initScrollTop: Kt,
1724
+ itemKey: {
1725
+ type: V(Function),
1726
+ default: ({
1727
+ columnIndex: e,
1728
+ rowIndex: t
1729
+ }) => `${t}:${e}`
1730
+ },
1731
+ rowCache: Rt,
1732
+ rowHeight: Dt,
1733
+ totalColumn: it,
1734
+ totalRow: it,
1735
+ hScrollbarSize: Ft,
1736
+ vScrollbarSize: Ft,
1737
+ scrollbarStartGap: br,
1738
+ scrollbarEndGap: _r,
1739
+ role: String,
1740
+ ...yr
1741
+ });
1742
+ const Oi = me({
1743
+ alwaysOn: Boolean,
1744
+ class: String,
1745
+ layout: mr,
1746
+ total: it,
1747
+ ratio: {
1748
+ type: Number,
1749
+ required: !0
1750
+ },
1751
+ clientSize: {
1752
+ type: Number,
1753
+ required: !0
1754
+ },
1755
+ scrollFrom: {
1756
+ type: Number,
1757
+ required: !0
1758
+ },
1759
+ scrollbarSize: Ft,
1760
+ startGap: br,
1761
+ endGap: _r,
1762
+ visible: Boolean
1763
+ }), Et = (e, t) => e < t ? hr : vr, Bt = (e) => e === wi || e === tt || e === Re;
1764
+ let Pe = null;
1765
+ function Dn(e = !1) {
1766
+ if (Pe === null || e) {
1767
+ const t = document.createElement("div"), n = t.style;
1768
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
1769
+ const r = document.createElement("div"), a = r.style;
1770
+ return a.width = "100px", a.height = "100px", t.appendChild(r), document.body.appendChild(t), t.scrollLeft > 0 ? Pe = gr : (t.scrollLeft = 1, t.scrollLeft === 0 ? Pe = Mt : Pe = pr), document.body.removeChild(t), Pe;
1771
+ }
1772
+ return Pe;
1773
+ }
1774
+ function $i({ move: e, size: t, bar: n }, r) {
1775
+ const a = {}, o = `translate${n.axis}(${e}px)`;
1776
+ return a[n.size] = t, a.transform = o, a.msTransform = o, a.webkitTransform = o, r === "horizontal" ? a.height = "100%" : a.width = "100%", a;
1777
+ }
1778
+ const Ii = F({
1779
+ name: "ElVirtualScrollBar",
1780
+ props: Oi,
1781
+ emits: ["scroll", "start-move", "stop-move"],
1782
+ setup(e, { emit: t }) {
1783
+ const n = w(() => e.startGap + e.endGap), r = oe("virtual-scrollbar"), a = oe("scrollbar"), o = $(), s = $();
1784
+ let u = null, v = null;
1785
+ const l = Lr({
1786
+ isDragging: !1,
1787
+ traveled: 0
1788
+ }), d = w(() => Ys[e.layout]), h = w(() => e.clientSize - c(n)), _ = w(() => ({
1789
+ position: "absolute",
1790
+ width: `${Re === e.layout ? h.value : e.scrollbarSize}px`,
1791
+ height: `${Re === e.layout ? e.scrollbarSize : h.value}px`,
1792
+ [Ci[e.layout]]: "2px",
1793
+ right: "2px",
1794
+ bottom: "2px",
1795
+ borderRadius: "4px"
1796
+ })), y = w(() => {
1797
+ const b = e.ratio, T = e.clientSize;
1798
+ if (b >= 100)
1799
+ return Number.POSITIVE_INFINITY;
1800
+ if (b >= 50)
1801
+ return b * T / 100;
1802
+ const A = T / 3;
1803
+ return Math.floor(Math.min(Math.max(b * T, Ei), A));
1804
+ }), f = w(() => {
1805
+ if (!Number.isFinite(y.value))
1806
+ return {
1807
+ display: "none"
1808
+ };
1809
+ const b = `${y.value}px`;
1810
+ return $i({
1811
+ bar: d.value,
1812
+ size: b,
1813
+ move: l.traveled
1814
+ }, e.layout);
1815
+ }), i = w(() => Math.floor(e.clientSize - y.value - c(n))), g = () => {
1816
+ window.addEventListener("mousemove", S), window.addEventListener("mouseup", E);
1817
+ const b = c(s);
1818
+ b && (v = document.onselectstart, document.onselectstart = () => !1, b.addEventListener("touchmove", S), b.addEventListener("touchend", E));
1819
+ }, m = () => {
1820
+ window.removeEventListener("mousemove", S), window.removeEventListener("mouseup", E), document.onselectstart = v, v = null;
1821
+ const b = c(s);
1822
+ b && (b.removeEventListener("touchmove", S), b.removeEventListener("touchend", E));
1823
+ }, x = (b) => {
1824
+ b.stopImmediatePropagation(), !(b.ctrlKey || [1, 2].includes(b.button)) && (l.isDragging = !0, l[d.value.axis] = b.currentTarget[d.value.offset] - (b[d.value.client] - b.currentTarget.getBoundingClientRect()[d.value.direction]), t("start-move"), g());
1825
+ }, E = () => {
1826
+ l.isDragging = !1, l[d.value.axis] = 0, t("stop-move"), m();
1827
+ }, S = (b) => {
1828
+ const { isDragging: T } = l;
1829
+ if (!T || !s.value || !o.value)
1830
+ return;
1831
+ const A = l[d.value.axis];
1832
+ if (!A)
1833
+ return;
1834
+ rr(u);
1835
+ const D = (o.value.getBoundingClientRect()[d.value.direction] - b[d.value.client]) * -1, z = s.value[d.value.offset] - A, B = D - z;
1836
+ u = nr(() => {
1837
+ l.traveled = Math.max(e.startGap, Math.min(B, i.value)), t("scroll", B, i.value);
1838
+ });
1839
+ }, N = (b) => {
1840
+ const T = Math.abs(b.target.getBoundingClientRect()[d.value.direction] - b[d.value.client]), A = s.value[d.value.offset] / 2, D = T - A;
1841
+ l.traveled = Math.max(0, Math.min(D, i.value)), t("scroll", D, i.value);
1842
+ };
1843
+ return ue(() => e.scrollFrom, (b) => {
1844
+ l.isDragging || (l.traveled = Math.ceil(b * i.value));
1845
+ }), Fn(() => {
1846
+ m();
1847
+ }), () => xe("div", {
1848
+ role: "presentation",
1849
+ ref: o,
1850
+ class: [
1851
+ r.b(),
1852
+ e.class,
1853
+ (e.alwaysOn || l.isDragging) && "always-on"
1854
+ ],
1855
+ style: _.value,
1856
+ onMousedown: Se(N, ["stop", "prevent"]),
1857
+ onTouchstartPrevent: x
1858
+ }, xe("div", {
1859
+ ref: s,
1860
+ class: a.e("thumb"),
1861
+ style: f.value,
1862
+ onMousedown: x
1863
+ }, []));
1864
+ }
1865
+ }), Ai = ({
1866
+ name: e,
1867
+ getOffset: t,
1868
+ getItemSize: n,
1869
+ getItemOffset: r,
1870
+ getEstimatedTotalSize: a,
1871
+ getStartIndexForOffset: o,
1872
+ getStopIndexForStartIndex: s,
1873
+ initCache: u,
1874
+ clearCache: v,
1875
+ validateProps: l
1876
+ }) => F({
1877
+ name: e ?? "ElVirtualList",
1878
+ props: Ni,
1879
+ emits: [Ln, Pn],
1880
+ setup(d, { emit: h, expose: _ }) {
1881
+ l(d);
1882
+ const y = fe(), f = oe("vl"), i = $(u(d, y)), g = yi(), m = $(), x = $(), E = $(), S = $({
1883
+ isScrolling: !1,
1884
+ scrollDir: "forward",
1885
+ scrollOffset: Te(d.initScrollOffset) ? d.initScrollOffset : 0,
1886
+ updateRequested: !1,
1887
+ isScrollbarDragging: !1,
1888
+ scrollbarAlwaysOn: d.scrollbarAlwaysOn
1889
+ }), N = w(() => {
1890
+ const { total: C, cache: O } = d, { isScrolling: I, scrollDir: j, scrollOffset: L } = c(S);
1891
+ if (C === 0)
1892
+ return [0, 0, 0, 0];
1893
+ const p = o(d, L, c(i)), k = s(d, p, L, c(i)), K = !I || j === vr ? Math.max(1, O) : 1, G = !I || j === hr ? Math.max(1, O) : 1;
1894
+ return [
1895
+ Math.max(0, p - K),
1896
+ Math.max(0, Math.min(C - 1, k + G)),
1897
+ p,
1898
+ k
1899
+ ];
1900
+ }), b = w(() => a(d, c(i))), T = w(() => Bt(d.layout)), A = w(() => [
1901
+ {
1902
+ position: "relative",
1903
+ [`overflow-${T.value ? "x" : "y"}`]: "scroll",
1904
+ WebkitOverflowScrolling: "touch",
1905
+ willChange: "transform"
1906
+ },
1907
+ {
1908
+ direction: d.direction,
1909
+ height: Te(d.height) ? `${d.height}px` : d.height,
1910
+ width: Te(d.width) ? `${d.width}px` : d.width
1911
+ },
1912
+ d.style
1913
+ ]), D = w(() => {
1914
+ const C = c(b), O = c(T);
1915
+ return {
1916
+ height: O ? "100%" : `${C}px`,
1917
+ pointerEvents: c(S).isScrolling ? "none" : void 0,
1918
+ width: O ? `${C}px` : "100%"
1919
+ };
1920
+ }), z = w(() => T.value ? d.width : d.height), { onWheel: B } = xi({
1921
+ atStartEdge: w(() => S.value.scrollOffset <= 0),
1922
+ atEndEdge: w(() => S.value.scrollOffset >= b.value),
1923
+ layout: w(() => d.layout)
1924
+ }, (C) => {
1925
+ var O, I;
1926
+ (I = (O = E.value).onMouseUp) == null || I.call(O), J(Math.min(S.value.scrollOffset + C, b.value - z.value));
1927
+ }), Y = () => {
1928
+ const { total: C } = d;
1929
+ if (C > 0) {
1930
+ const [L, p, k, K] = c(N);
1931
+ h(Ln, L, p, k, K);
1932
+ }
1933
+ const { scrollDir: O, scrollOffset: I, updateRequested: j } = c(S);
1934
+ h(Pn, O, I, j);
1935
+ }, X = (C) => {
1936
+ const { clientHeight: O, scrollHeight: I, scrollTop: j } = C.currentTarget, L = c(S);
1937
+ if (L.scrollOffset === j)
1938
+ return;
1939
+ const p = Math.max(0, Math.min(j, I - O));
1940
+ S.value = {
1941
+ ...L,
1942
+ isScrolling: !0,
1943
+ scrollDir: Et(L.scrollOffset, p),
1944
+ scrollOffset: p,
1945
+ updateRequested: !1
1946
+ }, ce(be);
1947
+ }, ne = (C) => {
1948
+ const { clientWidth: O, scrollLeft: I, scrollWidth: j } = C.currentTarget, L = c(S);
1949
+ if (L.scrollOffset === I)
1950
+ return;
1951
+ const { direction: p } = d;
1952
+ let k = I;
1953
+ if (p === tt)
1954
+ switch (Dn()) {
1955
+ case Mt: {
1956
+ k = -I;
1957
+ break;
1958
+ }
1959
+ case gr: {
1960
+ k = j - O - I;
1961
+ break;
1962
+ }
1963
+ }
1964
+ k = Math.max(0, Math.min(k, j - O)), S.value = {
1965
+ ...L,
1966
+ isScrolling: !0,
1967
+ scrollDir: Et(L.scrollOffset, k),
1968
+ scrollOffset: k,
1969
+ updateRequested: !1
1970
+ }, ce(be);
1971
+ }, Ee = (C) => {
1972
+ c(T) ? ne(C) : X(C), Y();
1973
+ }, ye = (C, O) => {
1974
+ const I = (b.value - z.value) / O * C;
1975
+ J(Math.min(b.value - z.value, I));
1976
+ }, J = (C) => {
1977
+ C = Math.max(C, 0), C !== c(S).scrollOffset && (S.value = {
1978
+ ...c(S),
1979
+ scrollOffset: C,
1980
+ scrollDir: Et(c(S).scrollOffset, C),
1981
+ updateRequested: !0
1982
+ }, ce(be));
1983
+ }, Z = (C, O = Pt) => {
1984
+ const { scrollOffset: I } = c(S);
1985
+ C = Math.max(0, Math.min(C, d.total - 1)), J(t(d, C, O, I, c(i)));
1986
+ }, q = (C) => {
1987
+ const { direction: O, itemSize: I, layout: j } = d, L = g.value(v && I, v && j, v && O);
1988
+ let p;
1989
+ if (xt(L, String(C)))
1990
+ p = L[C];
1991
+ else {
1992
+ const k = r(d, C, c(i)), K = n(d, C, c(i)), G = c(T), re = O === tt, se = G ? k : 0;
1993
+ L[C] = p = {
1994
+ position: "absolute",
1995
+ left: re ? void 0 : `${se}px`,
1996
+ right: re ? `${se}px` : void 0,
1997
+ top: G ? 0 : `${k}px`,
1998
+ height: G ? "100%" : `${K}px`,
1999
+ width: G ? `${K}px` : "100%"
2000
+ };
2001
+ }
2002
+ return p;
2003
+ }, be = () => {
2004
+ S.value.isScrolling = !1, ce(() => {
2005
+ g.value(-1, null, null);
2006
+ });
2007
+ }, le = () => {
2008
+ const C = m.value;
2009
+ C && (C.scrollTop = 0);
2010
+ };
2011
+ Ht(() => {
2012
+ if (!Ke)
2013
+ return;
2014
+ const { initScrollOffset: C } = d, O = c(m);
2015
+ Te(C) && O && (c(T) ? O.scrollLeft = C : O.scrollTop = C), Y();
2016
+ }), Pr(() => {
2017
+ const { direction: C, layout: O } = d, { scrollOffset: I, updateRequested: j } = c(S), L = c(m);
2018
+ if (j && L)
2019
+ if (O === Re)
2020
+ if (C === tt)
2021
+ switch (Dn()) {
2022
+ case Mt: {
2023
+ L.scrollLeft = -I;
2024
+ break;
2025
+ }
2026
+ case pr: {
2027
+ L.scrollLeft = I;
2028
+ break;
2029
+ }
2030
+ default: {
2031
+ const { clientWidth: p, scrollWidth: k } = L;
2032
+ L.scrollLeft = k - p - I;
2033
+ break;
2034
+ }
2035
+ }
2036
+ else
2037
+ L.scrollLeft = I;
2038
+ else
2039
+ L.scrollTop = I;
2040
+ });
2041
+ const R = {
2042
+ ns: f,
2043
+ clientSize: z,
2044
+ estimatedTotalSize: b,
2045
+ windowStyle: A,
2046
+ windowRef: m,
2047
+ innerRef: x,
2048
+ innerStyle: D,
2049
+ itemsToRender: N,
2050
+ scrollbarRef: E,
2051
+ states: S,
2052
+ getItemStyle: q,
2053
+ onScroll: Ee,
2054
+ onScrollbarScroll: ye,
2055
+ onWheel: B,
2056
+ scrollTo: J,
2057
+ scrollToItem: Z,
2058
+ resetScrollTop: le
2059
+ };
2060
+ return _({
2061
+ windowRef: m,
2062
+ innerRef: x,
2063
+ getItemStyleCache: g,
2064
+ scrollTo: J,
2065
+ scrollToItem: Z,
2066
+ resetScrollTop: le,
2067
+ states: S
2068
+ }), R;
2069
+ },
2070
+ render(d) {
2071
+ var h;
2072
+ const {
2073
+ $slots: _,
2074
+ className: y,
2075
+ clientSize: f,
2076
+ containerElement: i,
2077
+ data: g,
2078
+ getItemStyle: m,
2079
+ innerElement: x,
2080
+ itemsToRender: E,
2081
+ innerStyle: S,
2082
+ layout: N,
2083
+ total: b,
2084
+ onScroll: T,
2085
+ onScrollbarScroll: A,
2086
+ onWheel: D,
2087
+ states: z,
2088
+ useIsScrolling: B,
2089
+ windowStyle: Y,
2090
+ ns: X
2091
+ } = d, [ne, Ee] = E, ye = Ye(i), J = Ye(x), Z = [];
2092
+ if (b > 0)
2093
+ for (let R = ne; R <= Ee; R++)
2094
+ Z.push((h = _.default) == null ? void 0 : h.call(_, {
2095
+ data: g,
2096
+ key: R,
2097
+ index: R,
2098
+ isScrolling: B ? z.isScrolling : void 0,
2099
+ style: m(R)
2100
+ }));
2101
+ const q = [
2102
+ xe(J, {
2103
+ style: S,
2104
+ ref: "innerRef"
2105
+ }, Ce(J) ? Z : {
2106
+ default: () => Z
2107
+ })
2108
+ ], be = xe(Ii, {
2109
+ ref: "scrollbarRef",
2110
+ clientSize: f,
2111
+ layout: N,
2112
+ onScroll: A,
2113
+ ratio: f * 100 / this.estimatedTotalSize,
2114
+ scrollFrom: z.scrollOffset / (this.estimatedTotalSize - f),
2115
+ total: b
2116
+ }), le = xe(ye, {
2117
+ class: [X.e("window"), y],
2118
+ style: Y,
2119
+ onScroll: T,
2120
+ onWheel: D,
2121
+ ref: "windowRef",
2122
+ key: 0
2123
+ }, Ce(ye) ? [q] : { default: () => [q] });
2124
+ return xe("div", {
2125
+ key: 0,
2126
+ class: [X.e("wrapper"), z.scrollbarAlwaysOn ? "always-on" : ""]
2127
+ }, [le, be]);
2128
+ }
2129
+ }), Li = Ai({
2130
+ name: "ElFixedSizeList",
2131
+ getItemOffset: ({ itemSize: e }, t) => t * e,
2132
+ getItemSize: ({ itemSize: e }) => e,
2133
+ getEstimatedTotalSize: ({ total: e, itemSize: t }) => t * e,
2134
+ getOffset: ({ height: e, total: t, itemSize: n, layout: r, width: a }, o, s, u) => {
2135
+ const v = Bt(r) ? a : e;
2136
+ process.env.NODE_ENV !== "production" && Ce(v) && ws("[ElVirtualList]", `
2137
+ You should set
2138
+ width/height
2139
+ to number when your layout is
2140
+ horizontal/vertical
2141
+ `);
2142
+ const l = Math.max(0, t * n - v), d = Math.min(l, o * n), h = Math.max(0, (o + 1) * n - v);
2143
+ switch (s === bi && (u >= h - v && u <= d + v ? s = Pt : s = Mn), s) {
2144
+ case _i:
2145
+ return d;
2146
+ case Si:
2147
+ return h;
2148
+ case Mn: {
2149
+ const _ = Math.round(h + (d - h) / 2);
2150
+ return _ < Math.ceil(v / 2) ? 0 : _ > l + Math.floor(v / 2) ? l : _;
2151
+ }
2152
+ case Pt:
2153
+ default:
2154
+ return u >= h && u <= d ? u : u < h ? h : d;
2155
+ }
2156
+ },
2157
+ getStartIndexForOffset: ({ total: e, itemSize: t }, n) => Math.max(0, Math.min(e - 1, Math.floor(n / t))),
2158
+ getStopIndexForStartIndex: ({ height: e, total: t, itemSize: n, layout: r, width: a }, o, s) => {
2159
+ const u = o * n, v = Bt(r) ? a : e, l = Math.ceil((v + s - u) / n);
2160
+ return Math.max(0, Math.min(t - 1, o + l - 1));
2161
+ },
2162
+ initCache() {
2163
+ },
2164
+ clearCache: !0,
2165
+ validateProps() {
2166
+ }
2167
+ }), nn = Symbol(), Pi = {
2168
+ key: -1,
2169
+ level: -1,
2170
+ data: {}
2171
+ };
2172
+ var Ue = /* @__PURE__ */ ((e) => (e.KEY = "id", e.LABEL = "label", e.CHILDREN = "children", e.DISABLED = "disabled", e))(Ue || {}), jt = /* @__PURE__ */ ((e) => (e.ADD = "add", e.DELETE = "delete", e))(jt || {});
2173
+ const Sr = {
2174
+ type: Number,
2175
+ default: 26
2176
+ }, Mi = me({
2177
+ data: {
2178
+ type: V(Array),
2179
+ default: () => Me([])
2180
+ },
2181
+ emptyText: {
2182
+ type: String
2183
+ },
2184
+ height: {
2185
+ type: Number,
2186
+ default: 200
2187
+ },
2188
+ props: {
2189
+ type: V(Object),
2190
+ default: () => Me({
2191
+ children: "children",
2192
+ label: "label",
2193
+ disabled: "disabled",
2194
+ value: "id"
2195
+ /* KEY */
2196
+ })
2197
+ },
2198
+ highlightCurrent: {
2199
+ type: Boolean,
2200
+ default: !1
2201
+ },
2202
+ showCheckbox: {
2203
+ type: Boolean,
2204
+ default: !1
2205
+ },
2206
+ defaultCheckedKeys: {
2207
+ type: V(Array),
2208
+ default: () => Me([])
2209
+ },
2210
+ checkStrictly: {
2211
+ type: Boolean,
2212
+ default: !1
2213
+ },
2214
+ defaultExpandedKeys: {
2215
+ type: V(Array),
2216
+ default: () => Me([])
2217
+ },
2218
+ indent: {
2219
+ type: Number,
2220
+ default: 16
2221
+ },
2222
+ itemSize: Sr,
2223
+ icon: {
2224
+ type: Ns
2225
+ },
2226
+ expandOnClickNode: {
2227
+ type: Boolean,
2228
+ default: !0
2229
+ },
2230
+ checkOnClickNode: {
2231
+ type: Boolean,
2232
+ default: !1
2233
+ },
2234
+ currentNodeKey: {
2235
+ type: V([String, Number])
2236
+ },
2237
+ accordion: {
2238
+ type: Boolean,
2239
+ default: !1
2240
+ },
2241
+ filterMethod: {
2242
+ type: V(Function)
2243
+ },
2244
+ perfMode: {
2245
+ type: Boolean,
2246
+ default: !0
2247
+ }
2248
+ }), Di = me({
2249
+ node: {
2250
+ type: V(Object),
2251
+ default: () => Me(Pi)
2252
+ },
2253
+ expanded: {
2254
+ type: Boolean,
2255
+ default: !1
2256
+ },
2257
+ checked: {
2258
+ type: Boolean,
2259
+ default: !1
2260
+ },
2261
+ indeterminate: {
2262
+ type: Boolean,
2263
+ default: !1
2264
+ },
2265
+ showCheckbox: {
2266
+ type: Boolean,
2267
+ default: !1
2268
+ },
2269
+ disabled: {
2270
+ type: Boolean,
2271
+ default: !1
2272
+ },
2273
+ current: {
2274
+ type: Boolean,
2275
+ default: !1
2276
+ },
2277
+ hiddenExpandIcon: {
2278
+ type: Boolean,
2279
+ default: !1
2280
+ },
2281
+ itemSize: Sr
2282
+ }), zi = me({
2283
+ node: {
2284
+ type: V(Object),
2285
+ required: !0
2286
+ }
2287
+ }), wr = "node-click", Cr = "node-expand", Er = "node-collapse", kr = "current-change", xr = "check", Tr = "check-change", Nr = "node-contextmenu", Ri = {
2288
+ [wr]: (e, t, n) => e && t && n,
2289
+ [Cr]: (e, t) => e && t,
2290
+ [Er]: (e, t) => e && t,
2291
+ [kr]: (e, t) => e && t,
2292
+ [xr]: (e, t) => e && t,
2293
+ [Tr]: (e, t) => e && typeof t == "boolean",
2294
+ [Nr]: (e, t, n) => e && t && n
2295
+ }, Ki = {
2296
+ click: (e, t) => !!(e && t),
2297
+ toggle: (e) => !!e,
2298
+ check: (e, t) => e && typeof t == "boolean"
2299
+ };
2300
+ function Fi(e, t) {
2301
+ const n = $(/* @__PURE__ */ new Set()), r = $(/* @__PURE__ */ new Set()), { emit: a } = fe();
2302
+ ue([() => t.value, () => e.defaultCheckedKeys], () => ce(() => {
2303
+ x(e.defaultCheckedKeys);
2304
+ }), {
2305
+ immediate: !0
2306
+ });
2307
+ const o = () => {
2308
+ if (!t.value || !e.showCheckbox || e.checkStrictly)
2309
+ return;
2310
+ const { levelTreeNodeMap: E, maxLevel: S } = t.value, N = n.value, b = /* @__PURE__ */ new Set();
2311
+ for (let T = S - 1; T >= 1; --T) {
2312
+ const A = E.get(T);
2313
+ A && A.forEach((D) => {
2314
+ const z = D.children;
2315
+ if (z) {
2316
+ let B = !0, Y = !1;
2317
+ for (const X of z) {
2318
+ const ne = X.key;
2319
+ if (N.has(ne))
2320
+ Y = !0;
2321
+ else if (b.has(ne)) {
2322
+ B = !1, Y = !0;
2323
+ break;
2324
+ } else
2325
+ B = !1;
2326
+ }
2327
+ B ? N.add(D.key) : Y ? (b.add(D.key), N.delete(D.key)) : (N.delete(D.key), b.delete(D.key));
2328
+ }
2329
+ });
2330
+ }
2331
+ r.value = b;
2332
+ }, s = (E) => n.value.has(E.key), u = (E) => r.value.has(E.key), v = (E, S, N = !0) => {
2333
+ const b = n.value, T = (A, D) => {
2334
+ b[D ? jt.ADD : jt.DELETE](A.key);
2335
+ const z = A.children;
2336
+ !e.checkStrictly && z && z.forEach((B) => {
2337
+ B.disabled || T(B, D);
2338
+ });
2339
+ };
2340
+ T(E, S), o(), N && l(E, S);
2341
+ }, l = (E, S) => {
2342
+ const { checkedNodes: N, checkedKeys: b } = f(), { halfCheckedNodes: T, halfCheckedKeys: A } = i();
2343
+ a(xr, E.data, {
2344
+ checkedKeys: b,
2345
+ checkedNodes: N,
2346
+ halfCheckedKeys: A,
2347
+ halfCheckedNodes: T
2348
+ }), a(Tr, E.data, S);
2349
+ };
2350
+ function d(E = !1) {
2351
+ return f(E).checkedKeys;
2352
+ }
2353
+ function h(E = !1) {
2354
+ return f(E).checkedNodes;
2355
+ }
2356
+ function _() {
2357
+ return i().halfCheckedKeys;
2358
+ }
2359
+ function y() {
2360
+ return i().halfCheckedNodes;
2361
+ }
2362
+ function f(E = !1) {
2363
+ const S = [], N = [];
2364
+ if (t != null && t.value && e.showCheckbox) {
2365
+ const { treeNodeMap: b } = t.value;
2366
+ n.value.forEach((T) => {
2367
+ const A = b.get(T);
2368
+ A && (!E || E && A.isLeaf) && (N.push(T), S.push(A.data));
2369
+ });
2370
+ }
2371
+ return {
2372
+ checkedKeys: N,
2373
+ checkedNodes: S
2374
+ };
2375
+ }
2376
+ function i() {
2377
+ const E = [], S = [];
2378
+ if (t != null && t.value && e.showCheckbox) {
2379
+ const { treeNodeMap: N } = t.value;
2380
+ r.value.forEach((b) => {
2381
+ const T = N.get(b);
2382
+ T && (S.push(b), E.push(T.data));
2383
+ });
2384
+ }
2385
+ return {
2386
+ halfCheckedNodes: E,
2387
+ halfCheckedKeys: S
2388
+ };
2389
+ }
2390
+ function g(E) {
2391
+ n.value.clear(), r.value.clear(), x(E);
2392
+ }
2393
+ function m(E, S) {
2394
+ if (t != null && t.value && e.showCheckbox) {
2395
+ const N = t.value.treeNodeMap.get(E);
2396
+ N && v(N, S, !1);
2397
+ }
2398
+ }
2399
+ function x(E) {
2400
+ if (t != null && t.value) {
2401
+ const { treeNodeMap: S } = t.value;
2402
+ if (e.showCheckbox && S && E)
2403
+ for (const N of E) {
2404
+ const b = S.get(N);
2405
+ b && !s(b) && v(b, !0, !1);
2406
+ }
2407
+ }
2408
+ }
2409
+ return {
2410
+ updateCheckedKeys: o,
2411
+ toggleCheckbox: v,
2412
+ isChecked: s,
2413
+ isIndeterminate: u,
2414
+ getCheckedKeys: d,
2415
+ getCheckedNodes: h,
2416
+ getHalfCheckedKeys: _,
2417
+ getHalfCheckedNodes: y,
2418
+ setChecked: m,
2419
+ setCheckedKeys: g
2420
+ };
2421
+ }
2422
+ function Bi(e, t) {
2423
+ const n = $(/* @__PURE__ */ new Set([])), r = $(/* @__PURE__ */ new Set([])), a = w(() => Ur(e.filterMethod));
2424
+ function o(u) {
2425
+ var v;
2426
+ if (!a.value)
2427
+ return;
2428
+ const l = /* @__PURE__ */ new Set(), d = r.value, h = n.value, _ = [], y = ((v = t.value) == null ? void 0 : v.treeNodes) || [], f = e.filterMethod;
2429
+ h.clear();
2430
+ function i(g) {
2431
+ g.forEach((m) => {
2432
+ _.push(m), f != null && f(u, m.data) ? _.forEach((E) => {
2433
+ l.add(E.key);
2434
+ }) : m.isLeaf && h.add(m.key);
2435
+ const x = m.children;
2436
+ if (x && i(x), !m.isLeaf) {
2437
+ if (!l.has(m.key))
2438
+ h.add(m.key);
2439
+ else if (x) {
2440
+ let E = !0;
2441
+ for (const S of x)
2442
+ if (!h.has(S.key)) {
2443
+ E = !1;
2444
+ break;
2445
+ }
2446
+ E ? d.add(m.key) : d.delete(m.key);
2447
+ }
2448
+ }
2449
+ _.pop();
2450
+ });
2451
+ }
2452
+ return i(y), l;
2453
+ }
2454
+ function s(u) {
2455
+ return r.value.has(u.key);
2456
+ }
2457
+ return {
2458
+ hiddenExpandIconKeySet: r,
2459
+ hiddenNodeKeySet: n,
2460
+ doFilter: o,
2461
+ isForceHiddenExpandIcon: s
2462
+ };
2463
+ }
2464
+ function ji(e, t) {
2465
+ const n = $(new Set(e.defaultExpandedKeys)), r = $(), a = Mr();
2466
+ ue(() => e.currentNodeKey, (p) => {
2467
+ r.value = p;
2468
+ }, {
2469
+ immediate: !0
2470
+ }), ue(() => e.data, (p) => {
2471
+ j(p);
2472
+ }, {
2473
+ immediate: !0
2474
+ });
2475
+ const {
2476
+ isIndeterminate: o,
2477
+ isChecked: s,
2478
+ toggleCheckbox: u,
2479
+ getCheckedKeys: v,
2480
+ getCheckedNodes: l,
2481
+ getHalfCheckedKeys: d,
2482
+ getHalfCheckedNodes: h,
2483
+ setChecked: _,
2484
+ setCheckedKeys: y
2485
+ } = Fi(e, a), { doFilter: f, hiddenNodeKeySet: i, isForceHiddenExpandIcon: g } = Bi(e, a), m = w(() => {
2486
+ var p;
2487
+ return ((p = e.props) == null ? void 0 : p.value) || Ue.KEY;
2488
+ }), x = w(() => {
2489
+ var p;
2490
+ return ((p = e.props) == null ? void 0 : p.children) || Ue.CHILDREN;
2491
+ }), E = w(() => {
2492
+ var p;
2493
+ return ((p = e.props) == null ? void 0 : p.disabled) || Ue.DISABLED;
2494
+ }), S = w(() => {
2495
+ var p;
2496
+ return ((p = e.props) == null ? void 0 : p.label) || Ue.LABEL;
2497
+ }), N = w(() => {
2498
+ const p = n.value, k = i.value, K = [], G = a.value && a.value.treeNodes || [];
2499
+ function re() {
2500
+ const se = [];
2501
+ for (let Q = G.length - 1; Q >= 0; --Q)
2502
+ se.push(G[Q]);
2503
+ for (; se.length; ) {
2504
+ const Q = se.pop();
2505
+ if (Q && (k.has(Q.key) || K.push(Q), p.has(Q.key))) {
2506
+ const ee = Q.children;
2507
+ if (ee) {
2508
+ const yt = ee.length;
2509
+ for (let Le = yt - 1; Le >= 0; --Le)
2510
+ se.push(ee[Le]);
2511
+ }
2512
+ }
2513
+ }
2514
+ }
2515
+ return re(), K;
2516
+ }), b = w(() => N.value.length > 0);
2517
+ function T(p) {
2518
+ const k = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map();
2519
+ let G = 1;
2520
+ function re(Q, ee = 1, yt = void 0) {
2521
+ var Le;
2522
+ const rn = [];
2523
+ for (const He of Q) {
2524
+ const an = z(He), ie = {
2525
+ level: ee,
2526
+ key: an,
2527
+ data: He
2528
+ };
2529
+ ie.label = Y(He), ie.parent = yt;
2530
+ const Ge = D(He);
2531
+ ie.disabled = B(He), ie.isLeaf = !Ge || Ge.length === 0, Ge && Ge.length && (ie.children = re(Ge, ee + 1, ie)), rn.push(ie), k.set(an, ie), K.has(ee) || K.set(ee, []), (Le = K.get(ee)) == null || Le.push(ie);
2532
+ }
2533
+ return ee > G && (G = ee), rn;
2534
+ }
2535
+ const se = re(p);
2536
+ return {
2537
+ treeNodeMap: k,
2538
+ levelTreeNodeMap: K,
2539
+ maxLevel: G,
2540
+ treeNodes: se
2541
+ };
2542
+ }
2543
+ function A(p) {
2544
+ const k = f(p);
2545
+ k && (n.value = k);
2546
+ }
2547
+ function D(p) {
2548
+ return p[x.value];
2549
+ }
2550
+ function z(p) {
2551
+ return p ? p[m.value] : "";
2552
+ }
2553
+ function B(p) {
2554
+ return p[E.value];
2555
+ }
2556
+ function Y(p) {
2557
+ return p[S.value];
2558
+ }
2559
+ function X(p) {
2560
+ n.value.has(p.key) ? q(p) : Z(p);
2561
+ }
2562
+ function ne(p) {
2563
+ n.value = new Set(p);
2564
+ }
2565
+ function Ee(p, k) {
2566
+ t(wr, p.data, p, k), ye(p), e.expandOnClickNode && X(p), e.showCheckbox && e.checkOnClickNode && !p.disabled && u(p, !s(p), !0);
2567
+ }
2568
+ function ye(p) {
2569
+ R(p) || (r.value = p.key, t(kr, p.data, p));
2570
+ }
2571
+ function J(p, k) {
2572
+ u(p, k);
2573
+ }
2574
+ function Z(p) {
2575
+ const k = n.value;
2576
+ if (a.value && e.accordion) {
2577
+ const { treeNodeMap: K } = a.value;
2578
+ k.forEach((G) => {
2579
+ const re = K.get(G);
2580
+ p && p.level === (re == null ? void 0 : re.level) && k.delete(G);
2581
+ });
2582
+ }
2583
+ k.add(p.key), t(Cr, p.data, p);
2584
+ }
2585
+ function q(p) {
2586
+ n.value.delete(p.key), t(Er, p.data, p);
2587
+ }
2588
+ function be(p) {
2589
+ return n.value.has(p.key);
2590
+ }
2591
+ function le(p) {
2592
+ return !!p.disabled;
2593
+ }
2594
+ function R(p) {
2595
+ const k = r.value;
2596
+ return k !== void 0 && k === p.key;
2597
+ }
2598
+ function C() {
2599
+ var p, k;
2600
+ if (r.value)
2601
+ return (k = (p = a.value) == null ? void 0 : p.treeNodeMap.get(r.value)) == null ? void 0 : k.data;
2602
+ }
2603
+ function O() {
2604
+ return r.value;
2605
+ }
2606
+ function I(p) {
2607
+ r.value = p;
2608
+ }
2609
+ function j(p) {
2610
+ ce(() => a.value = T(p));
2611
+ }
2612
+ function L(p) {
2613
+ var k;
2614
+ const K = dt(p) ? z(p) : p;
2615
+ return (k = a.value) == null ? void 0 : k.treeNodeMap.get(K);
2616
+ }
2617
+ return {
2618
+ tree: a,
2619
+ flattenTree: N,
2620
+ isNotEmpty: b,
2621
+ getKey: z,
2622
+ getChildren: D,
2623
+ toggleExpand: X,
2624
+ toggleCheckbox: u,
2625
+ isExpanded: be,
2626
+ isChecked: s,
2627
+ isIndeterminate: o,
2628
+ isDisabled: le,
2629
+ isCurrent: R,
2630
+ isForceHiddenExpandIcon: g,
2631
+ handleNodeClick: Ee,
2632
+ handleNodeCheck: J,
2633
+ getCurrentNode: C,
2634
+ getCurrentKey: O,
2635
+ setCurrentKey: I,
2636
+ getCheckedKeys: v,
2637
+ getCheckedNodes: l,
2638
+ getHalfCheckedKeys: d,
2639
+ getHalfCheckedNodes: h,
2640
+ setChecked: _,
2641
+ setCheckedKeys: y,
2642
+ filter: A,
2643
+ setData: j,
2644
+ getNode: L,
2645
+ expandNode: Z,
2646
+ collapseNode: q,
2647
+ setExpandedKeys: ne
2648
+ };
2649
+ }
2650
+ var Hi = F({
2651
+ name: "ElTreeNodeContent",
2652
+ props: zi,
2653
+ setup(e) {
2654
+ const t = U(nn), n = oe("tree");
2655
+ return () => {
2656
+ const r = e.node, { data: a } = r;
2657
+ return t != null && t.ctx.slots.default ? t.ctx.slots.default({ node: r, data: a }) : xe("span", { class: n.be("node", "label") }, [r == null ? void 0 : r.label]);
2658
+ };
2659
+ }
2660
+ });
2661
+ const Gi = ["aria-expanded", "aria-disabled", "aria-checked", "data-key", "onClick"], Vi = F({
2662
+ name: "ElTreeNode"
2663
+ }), Ui = /* @__PURE__ */ F({
2664
+ ...Vi,
2665
+ props: Di,
2666
+ emits: Ki,
2667
+ setup(e, { emit: t }) {
2668
+ const n = e, r = U(nn), a = oe("tree"), o = w(() => {
2669
+ var h;
2670
+ return (h = r == null ? void 0 : r.props.indent) != null ? h : 16;
2671
+ }), s = w(() => {
2672
+ var h;
2673
+ return (h = r == null ? void 0 : r.props.icon) != null ? h : xs;
2674
+ }), u = (h) => {
2675
+ t("click", n.node, h);
2676
+ }, v = () => {
2677
+ t("toggle", n.node);
2678
+ }, l = (h) => {
2679
+ t("check", n.node, h);
2680
+ }, d = (h) => {
2681
+ var _, y, f, i;
2682
+ (f = (y = (_ = r == null ? void 0 : r.instance) == null ? void 0 : _.vnode) == null ? void 0 : y.props) != null && f.onNodeContextmenu && (h.stopPropagation(), h.preventDefault()), r == null || r.ctx.emit(Nr, h, (i = n.node) == null ? void 0 : i.data, n.node);
2683
+ };
2684
+ return (h, _) => {
2685
+ var y, f, i;
2686
+ return P(), W("div", {
2687
+ ref: "node$",
2688
+ class: H([
2689
+ c(a).b("node"),
2690
+ c(a).is("expanded", h.expanded),
2691
+ c(a).is("current", h.current),
2692
+ c(a).is("focusable", !h.disabled),
2693
+ c(a).is("checked", !h.disabled && h.checked)
2694
+ ]),
2695
+ role: "treeitem",
2696
+ tabindex: "-1",
2697
+ "aria-expanded": h.expanded,
2698
+ "aria-disabled": h.disabled,
2699
+ "aria-checked": h.checked,
2700
+ "data-key": (y = h.node) == null ? void 0 : y.key,
2701
+ onClick: Se(u, ["stop"]),
2702
+ onContextmenu: d
2703
+ }, [
2704
+ Oe("div", {
2705
+ class: H(c(a).be("node", "content")),
2706
+ style: ut({
2707
+ paddingLeft: `${(h.node.level - 1) * c(o)}px`,
2708
+ height: h.itemSize + "px"
2709
+ })
2710
+ }, [
2711
+ c(s) ? (P(), te(c(Ws), {
2712
+ key: 0,
2713
+ class: H([
2714
+ c(a).is("leaf", !!((f = h.node) != null && f.isLeaf)),
2715
+ c(a).is("hidden", h.hiddenExpandIcon),
2716
+ {
2717
+ expanded: !((i = h.node) != null && i.isLeaf) && h.expanded
2718
+ },
2719
+ c(a).be("node", "expand-icon")
2720
+ ]),
2721
+ onClick: Se(v, ["stop"])
2722
+ }, {
2723
+ default: Ne(() => [
2724
+ (P(), te(Ye(c(s))))
2725
+ ]),
2726
+ _: 1
2727
+ }, 8, ["class", "onClick"])) : Je("v-if", !0),
2728
+ h.showCheckbox ? (P(), te(c(vi), {
2729
+ key: 1,
2730
+ "model-value": h.checked,
2731
+ indeterminate: h.indeterminate,
2732
+ disabled: h.disabled,
2733
+ onChange: l,
2734
+ onClick: _[0] || (_[0] = Se(() => {
2735
+ }, ["stop"]))
2736
+ }, null, 8, ["model-value", "indeterminate", "disabled"])) : Je("v-if", !0),
2737
+ Dr(c(Hi), { node: h.node }, null, 8, ["node"])
2738
+ ], 6)
2739
+ ], 42, Gi);
2740
+ };
2741
+ }
2742
+ });
2743
+ var Wi = /* @__PURE__ */ Be(Ui, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);
2744
+ const qi = F({
2745
+ name: "ElTreeV2"
2746
+ }), Yi = /* @__PURE__ */ F({
2747
+ ...qi,
2748
+ props: Mi,
2749
+ emits: Ri,
2750
+ setup(e, { expose: t, emit: n }) {
2751
+ const r = e, a = Gt(), o = w(() => r.itemSize);
2752
+ kt(nn, {
2753
+ ctx: {
2754
+ emit: n,
2755
+ slots: a
2756
+ },
2757
+ props: r,
2758
+ instance: fe()
2759
+ }), kt(Qt, void 0);
2760
+ const { t: s } = Ms(), u = oe("tree"), {
2761
+ flattenTree: v,
2762
+ isNotEmpty: l,
2763
+ toggleExpand: d,
2764
+ isExpanded: h,
2765
+ isIndeterminate: _,
2766
+ isChecked: y,
2767
+ isDisabled: f,
2768
+ isCurrent: i,
2769
+ isForceHiddenExpandIcon: g,
2770
+ handleNodeClick: m,
2771
+ handleNodeCheck: x,
2772
+ toggleCheckbox: E,
2773
+ getCurrentNode: S,
2774
+ getCurrentKey: N,
2775
+ setCurrentKey: b,
2776
+ getCheckedKeys: T,
2777
+ getCheckedNodes: A,
2778
+ getHalfCheckedKeys: D,
2779
+ getHalfCheckedNodes: z,
2780
+ setChecked: B,
2781
+ setCheckedKeys: Y,
2782
+ filter: X,
2783
+ setData: ne,
2784
+ getNode: Ee,
2785
+ expandNode: ye,
2786
+ collapseNode: J,
2787
+ setExpandedKeys: Z
2788
+ } = ji(r, n);
2789
+ return t({
2790
+ toggleCheckbox: E,
2791
+ getCurrentNode: S,
2792
+ getCurrentKey: N,
2793
+ setCurrentKey: b,
2794
+ getCheckedKeys: T,
2795
+ getCheckedNodes: A,
2796
+ getHalfCheckedKeys: D,
2797
+ getHalfCheckedNodes: z,
2798
+ setChecked: B,
2799
+ setCheckedKeys: Y,
2800
+ filter: X,
2801
+ setData: ne,
2802
+ getNode: Ee,
2803
+ expandNode: ye,
2804
+ collapseNode: J,
2805
+ setExpandedKeys: Z
2806
+ }), (q, be) => {
2807
+ var le;
2808
+ return P(), W("div", {
2809
+ class: H([c(u).b(), { [c(u).m("highlight-current")]: q.highlightCurrent }]),
2810
+ role: "tree"
2811
+ }, [
2812
+ c(l) ? (P(), te(c(Li), {
2813
+ key: 0,
2814
+ "class-name": c(u).b("virtual-list"),
2815
+ data: c(v),
2816
+ total: c(v).length,
2817
+ height: q.height,
2818
+ "item-size": c(o),
2819
+ "perf-mode": q.perfMode
2820
+ }, {
2821
+ default: Ne(({ data: R, index: C, style: O }) => [
2822
+ (P(), te(Wi, {
2823
+ key: R[C].key,
2824
+ style: ut(O),
2825
+ node: R[C],
2826
+ expanded: c(h)(R[C]),
2827
+ "show-checkbox": q.showCheckbox,
2828
+ checked: c(y)(R[C]),
2829
+ indeterminate: c(_)(R[C]),
2830
+ "item-size": c(o),
2831
+ disabled: c(f)(R[C]),
2832
+ current: c(i)(R[C]),
2833
+ "hidden-expand-icon": c(g)(R[C]),
2834
+ onClick: c(m),
2835
+ onToggle: c(d),
2836
+ onCheck: c(x)
2837
+ }, null, 8, ["style", "node", "expanded", "show-checkbox", "checked", "indeterminate", "item-size", "disabled", "current", "hidden-expand-icon", "onClick", "onToggle", "onCheck"]))
2838
+ ]),
2839
+ _: 1
2840
+ }, 8, ["class-name", "data", "total", "height", "item-size", "perf-mode"])) : (P(), W("div", {
2841
+ key: 1,
2842
+ class: H(c(u).e("empty-block"))
2843
+ }, [
2844
+ Oe("span", {
2845
+ class: H(c(u).e("empty-text"))
2846
+ }, ct((le = q.emptyText) != null ? le : c(s)("el.tree.emptyText")), 3)
2847
+ ], 2))
2848
+ ], 2);
2849
+ };
2850
+ }
2851
+ });
2852
+ var Ji = /* @__PURE__ */ Be(Yi, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);
2853
+ const Xi = Xt(Ji), Zi = /* @__PURE__ */ F({
12
2854
  __name: "expand-icon",
13
- setup(s) {
14
- return (u, o) => (r(), p(m(W), {
2855
+ setup(e) {
2856
+ return (t, n) => (P(), te(c(Br), {
15
2857
  class: "das-tree__expand-icon",
16
2858
  size: "medium"
17
2859
  }));
18
2860
  }
19
- }), q = (s, u) => {
20
- const o = s.__vccOpts || s;
21
- for (const [d, f] of u)
22
- o[d] = f;
23
- return o;
24
- }, G = /* @__PURE__ */ q(j, [["__scopeId", "data-v-41238c66"]]), Q = { class: "tree-normal-node" }, X = /* @__PURE__ */ D("div", { style: { width: "100%", height: "100%" } }, null, -1), Y = {
2861
+ }), Qi = (e, t) => {
2862
+ const n = e.__vccOpts || e;
2863
+ for (const [r, a] of t)
2864
+ n[r] = a;
2865
+ return n;
2866
+ }, ec = /* @__PURE__ */ Qi(Zi, [["__scopeId", "data-v-41238c66"]]), tc = { class: "tree-normal-node" }, nc = /* @__PURE__ */ Oe("div", { style: { width: "100%", height: "100%" } }, null, -1), rc = {
25
2867
  name: "DasVirtualTree",
26
2868
  inheritAttrs: !1
27
- }, Z = /* @__PURE__ */ E({
28
- ...Y,
2869
+ }, ac = /* @__PURE__ */ F({
2870
+ ...rc,
29
2871
  props: {
30
2872
  data: { default: () => [] },
31
2873
  loading: { type: Boolean },
@@ -39,100 +2881,100 @@ const j = /* @__PURE__ */ E({
39
2881
  emptyText: { default: "暂无数据" },
40
2882
  filterMethod: {}
41
2883
  },
42
- setup(s, { expose: u }) {
43
- const o = i(), d = i(), f = i(0), t = s, l = h(() => ({ value: t.nodeKey, label: "name", children: "children", disabled: "disabled", ...t.props })), N = h(() => t != null && t.height ? t.height + "px" : "100%"), b = h(() => t != null && t.height ? t.height : f.value), B = (e, n) => e ? n[l.value.label].toLowerCase().includes(e.toLowerCase()) : !0, S = h(() => (t == null ? void 0 : t.filterMethod) ?? B), I = () => {
44
- if (t.data && t.data.length) {
45
- const n = _(t.data, l.value.children, !1).filter((a) => a[l.value.children] && a[l.value.children].length).map((a) => a[t.nodeKey]);
46
- H(() => {
47
- var a;
48
- (a = d.value) == null || a.setExpandedKeys(n);
2884
+ setup(e, { expose: t }) {
2885
+ const n = $(), r = $(), a = $(0), o = e, s = w(() => ({ value: o.nodeKey, label: "name", children: "children", disabled: "disabled", ...o.props })), u = w(() => o != null && o.height ? o.height + "px" : "100%"), v = w(() => o != null && o.height ? o.height : a.value), l = (f, i) => f ? i[s.value.label].toLowerCase().includes(f.toLowerCase()) : !0, d = w(() => (o == null ? void 0 : o.filterMethod) ?? l), h = () => {
2886
+ if (o.data && o.data.length) {
2887
+ const i = bt(o.data, s.value.children, !1).filter((g) => g[s.value.children] && g[s.value.children].length).map((g) => g[o.nodeKey]);
2888
+ ce(() => {
2889
+ var g;
2890
+ (g = r.value) == null || g.setExpandedKeys(i);
49
2891
  });
50
2892
  }
51
2893
  };
52
- k(
53
- () => t.data,
54
- (e, n) => {
55
- if (!t.defaultExpandAll) return;
56
- const a = e && e.length ? e : [], c = n && n.length ? n : [], K = _(a).map((g) => g[t.nodeKey]), w = _(c).map((g) => g[t.nodeKey]);
57
- c.length && JSON.stringify(K) === JSON.stringify(w) || I();
2894
+ ue(
2895
+ () => o.data,
2896
+ (f, i) => {
2897
+ if (!o.defaultExpandAll) return;
2898
+ const g = f && f.length ? f : [], m = i && i.length ? i : [], x = bt(g).map((S) => S[o.nodeKey]), E = bt(m).map((S) => S[o.nodeKey]);
2899
+ m.length && JSON.stringify(x) === JSON.stringify(E) || h();
58
2900
  },
59
2901
  { immediate: !0 }
60
2902
  );
61
- const y = i(!1);
62
- k(
63
- () => t.data,
64
- (e) => {
65
- if (e && e.length) {
66
- const n = e.find(
67
- (a) => a[l.value.children] && a[l.value.children].length
2903
+ const _ = $(!1);
2904
+ ue(
2905
+ () => o.data,
2906
+ (f) => {
2907
+ if (f && f.length) {
2908
+ const i = f.find(
2909
+ (g) => g[s.value.children] && g[s.value.children].length
68
2910
  );
69
- y.value = !n;
2911
+ _.value = !i;
70
2912
  } else
71
- y.value = !1;
2913
+ _.value = !1;
72
2914
  },
73
2915
  { immediate: !0, deep: !0 }
74
2916
  );
75
- const x = i();
76
- return z(() => {
77
- x.value = U(
78
- (e) => {
79
- f.value = e.height;
2917
+ const y = $();
2918
+ return Ht(() => {
2919
+ y.value = jr(
2920
+ (f) => {
2921
+ a.value = f.height;
80
2922
  },
81
- o.value.parentElement
2923
+ n.value.parentElement
82
2924
  );
83
- }), O(() => {
84
- x.value.disconnect();
85
- }), u({
86
- treeRef: d
87
- }), (e, n) => (r(), T("div", {
2925
+ }), Fn(() => {
2926
+ y.value.disconnect();
2927
+ }), t({
2928
+ treeRef: r
2929
+ }), (f, i) => (P(), W("div", {
88
2930
  ref_key: "cotainerRef",
89
- ref: o,
2931
+ ref: n,
90
2932
  class: "das-ui-tree das-ui-virtual-tree",
91
- style: R({ height: N.value })
2933
+ style: ut({ height: u.value })
92
2934
  }, [
93
- e.data && e.data.length ? (r(), p(m(V), A({
2935
+ f.data && f.data.length ? (P(), te(c(Xi), zn({
94
2936
  key: 0,
95
2937
  ref_key: "treeRef",
96
- ref: d,
97
- data: e.data,
98
- class: { "is-root-all-left": y.value },
99
- icon: G,
100
- props: l.value,
2938
+ ref: r,
2939
+ data: f.data,
2940
+ class: { "is-root-all-left": _.value },
2941
+ icon: ec,
2942
+ props: s.value,
101
2943
  "show-checkbox": !1,
102
- "expand-on-click-node": e.expandOnClickNode,
103
- height: b.value,
2944
+ "expand-on-click-node": f.expandOnClickNode,
2945
+ height: v.value,
104
2946
  "item-size": 32,
105
2947
  "default-expand-all": "",
106
- "filter-method": S.value,
107
- "empty-text": e.emptyText
108
- }, e.$attrs), {
109
- default: v(({ node: a, data: c }) => [
110
- C(e.$slots, "default", {
111
- node: a,
112
- data: c
2948
+ "filter-method": d.value,
2949
+ "empty-text": f.emptyText
2950
+ }, f.$attrs), {
2951
+ default: Ne(({ node: g, data: m }) => [
2952
+ De(f.$slots, "default", {
2953
+ node: g,
2954
+ data: m
113
2955
  }, () => [
114
- D("div", Q, F(c[l.value.label]), 1)
2956
+ Oe("div", tc, ct(m[s.value.label]), 1)
115
2957
  ])
116
2958
  ]),
117
2959
  _: 3
118
- }, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (r(), T(M, { key: 1 }, [
119
- e.loading ? (r(), p(m(P), {
2960
+ }, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (P(), W(Rn, { key: 1 }, [
2961
+ f.loading ? (P(), te(c(Fr), {
120
2962
  key: 1,
121
2963
  size: "small",
122
- spinning: e.loading
2964
+ spinning: f.loading
123
2965
  }, {
124
- default: v(() => [
125
- X
2966
+ default: Ne(() => [
2967
+ nc
126
2968
  ]),
127
2969
  _: 1
128
- }, 8, ["spinning"])) : (r(), p(m(J), {
2970
+ }, 8, ["spinning"])) : (P(), te(c(Kr), {
129
2971
  key: 0,
130
- "empty-text": e.emptyText
131
- }, $({ _: 2 }, [
132
- e.$slots["empty-text"] ? {
2972
+ "empty-text": f.emptyText
2973
+ }, zr({ _: 2 }, [
2974
+ f.$slots["empty-text"] ? {
133
2975
  name: "default",
134
- fn: v(() => [
135
- C(e.$slots, "empty-text")
2976
+ fn: Ne(() => [
2977
+ De(f.$slots, "empty-text")
136
2978
  ]),
137
2979
  key: "0"
138
2980
  } : void 0
@@ -140,9 +2982,9 @@ const j = /* @__PURE__ */ E({
140
2982
  ], 64))
141
2983
  ], 4));
142
2984
  }
143
- }), de = L(Z), ce = () => i(null), ue = { title: "virtual-tree 虚拟树" };
2985
+ }), mc = Rr(ac), yc = () => $(null), bc = { title: "virtual-tree 虚拟树" };
144
2986
  export {
145
- de as DasVirtualTree,
146
- ce as DasVirtualTreeRef,
147
- ue as default
2987
+ mc as DasVirtualTree,
2988
+ yc as DasVirtualTreeRef,
2989
+ bc as default
148
2990
  };