@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,300 +1,2720 @@
1
1
  import '@das-fed/ui/packages/components/tree-select/style.css';
2
- import { ref as D, computed as w, watch as se, nextTick as J, unref as a, onMounted as Te, onUpdated as Ce, onBeforeUnmount as $e, defineComponent as Oe, useAttrs as je, withDirectives as Ve, openBlock as De, createElementBlock as xe, normalizeClass as Le, normalizeStyle as ue, createVNode as K, withCtx as M, createElementVNode as de, withModifiers as ne, mergeProps as ce, isRef as oe, createSlots as Pe, renderSlot as G } from "vue";
3
- import { withInstall as Ie } from "@das-fed/utils/with-install/index";
4
- import { ElPopover as Ne } from "element-plus";
5
- import "element-plus/es/components/popover/style/css";
6
- import { DasSelect as Re } from "@das-fed/ui/packages/components/select/index";
7
- import { DasTreeRef as Me, DasTree as Ee } from "@das-fed/ui/packages/components/tree/index";
8
- import { DasIconXiala as We } from "@das-fed/ui/packages/icons/xiala/index";
9
- import { SizeWatcher as Be } from "@das-fed/utils/size-watcher";
10
- import { flatTree as Fe } from "@das-fed/utils/common-tools";
11
- import { vClickOutside as Ae } from "@das-fed/utils/directive";
12
- import { setThemeRule as Ge } from "@das-fed/web/packages/theme/index";
13
- var Q = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
- function He(e) {
2
+ import { getCurrentScope as Ao, onScopeDispose as Ro, unref as p, watch as W, warn as $o, getCurrentInstance as ft, inject as ie, ref as N, computed as C, onMounted as be, shallowRef as _o, onBeforeUnmount as de, onBeforeMount as No, provide as Ee, defineComponent as U, renderSlot as Q, openBlock as ee, createElementBlock as xe, normalizeClass as dt, normalizeStyle as kt, withDirectives as xt, cloneVNode as xo, Fragment as Fo, Text as Lo, Comment as jo, createVNode as he, createBlock as ke, mergeProps as Fe, withCtx as J, createCommentVNode as Ae, nextTick as Ne, toRef as Ue, Teleport as Bo, Transition as Do, vShow as Mo, readonly as Vo, onDeactivated as Wo, toDisplayString as At, createTextVNode as Ho, onUpdated as Uo, useAttrs as Ko, createElementVNode as un, withModifiers as bt, isRef as wt, createSlots as zo } from "vue";
3
+ import { withInstall as qo } from "@das-fed/utils/with-install/index";
4
+ import "element-plus/theme-chalk/base.css";
5
+ import "element-plus/theme-chalk/el-popper.css";
6
+ import "element-plus/theme-chalk/el-popover.css";
7
+ import { DasSelect as Go } from "@das-fed/ui/packages/components/select/index";
8
+ import { DasTreeRef as Jo, DasTree as Zo } from "@das-fed/ui/packages/components/tree/index";
9
+ import { DasIconXiala as Qo } from "@das-fed/ui/packages/icons/xiala/index";
10
+ import { SizeWatcher as Yo } from "@das-fed/utils/size-watcher";
11
+ import { flatTree as Xo } from "@das-fed/utils/common-tools";
12
+ import { vClickOutside as er } from "@das-fed/utils/directive";
13
+ import { setThemeRule as tr } from "@das-fed/web/packages/theme/index";
14
+ const ge = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (r) => {
15
+ const a = e == null ? void 0 : e(r);
16
+ if (n === !1 || !a)
17
+ return t == null ? void 0 : t(r);
18
+ };
19
+ var cn;
20
+ const ce = typeof window < "u", nr = (e) => typeof e == "string", qn = () => {
21
+ }, or = ce && ((cn = window == null ? void 0 : window.navigator) == null ? void 0 : cn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
22
+ function Gn(e) {
23
+ return typeof e == "function" ? e() : p(e);
24
+ }
25
+ function rr(e) {
26
+ return e;
27
+ }
28
+ function Jn(e) {
29
+ return Ao() ? (Ro(e), !0) : !1;
30
+ }
31
+ function Ie(e) {
32
+ var t;
33
+ const n = Gn(e);
34
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
35
+ }
36
+ const Zn = ce ? window : void 0;
37
+ function Et(...e) {
38
+ let t, n, o, r;
39
+ if (nr(e[0]) || Array.isArray(e[0]) ? ([n, o, r] = e, t = Zn) : [t, n, o, r] = e, !t)
40
+ return qn;
41
+ Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
42
+ const a = [], s = () => {
43
+ a.forEach((v) => v()), a.length = 0;
44
+ }, l = (v, g, y, h) => (v.addEventListener(g, y, h), () => v.removeEventListener(g, y, h)), i = W(() => [Ie(t), Gn(r)], ([v, g]) => {
45
+ s(), v && a.push(...n.flatMap((y) => o.map((h) => l(v, y, h, g))));
46
+ }, { immediate: !0, flush: "post" }), u = () => {
47
+ i(), s();
48
+ };
49
+ return Jn(u), u;
50
+ }
51
+ let pn = !1;
52
+ function ar(e, t, n = {}) {
53
+ const { window: o = Zn, ignore: r = [], capture: a = !0, detectIframe: s = !1 } = n;
54
+ if (!o)
55
+ return;
56
+ or && !pn && (pn = !0, Array.from(o.document.body.children).forEach((y) => y.addEventListener("click", qn)));
57
+ let l = !0;
58
+ const i = (y) => r.some((h) => {
59
+ if (typeof h == "string")
60
+ return Array.from(o.document.querySelectorAll(h)).some((d) => d === y.target || y.composedPath().includes(d));
61
+ {
62
+ const d = Ie(h);
63
+ return d && (y.target === d || y.composedPath().includes(d));
64
+ }
65
+ }), v = [
66
+ Et(o, "click", (y) => {
67
+ const h = Ie(e);
68
+ if (!(!h || h === y.target || y.composedPath().includes(h))) {
69
+ if (y.detail === 0 && (l = !i(y)), !l) {
70
+ l = !0;
71
+ return;
72
+ }
73
+ t(y);
74
+ }
75
+ }, { passive: !0, capture: a }),
76
+ Et(o, "pointerdown", (y) => {
77
+ const h = Ie(e);
78
+ h && (l = !y.composedPath().includes(h) && !i(y));
79
+ }, { passive: !0 }),
80
+ s && Et(o, "blur", (y) => {
81
+ var h;
82
+ const d = Ie(e);
83
+ ((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(y);
84
+ })
85
+ ].filter(Boolean);
86
+ return () => v.forEach((y) => y());
87
+ }
88
+ const fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, dn = "__vueuse_ssr_handlers__";
89
+ fn[dn] = fn[dn] || {};
90
+ var vn;
91
+ (function(e) {
92
+ e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
93
+ })(vn || (vn = {}));
94
+ var sr = Object.defineProperty, mn = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, gn = (e, t, n) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ur = (e, t) => {
95
+ for (var n in t || (t = {}))
96
+ ir.call(t, n) && gn(e, n, t[n]);
97
+ if (mn)
98
+ for (var n of mn(t))
99
+ lr.call(t, n) && gn(e, n, t[n]);
100
+ return e;
101
+ };
102
+ const cr = {
103
+ easeInSine: [0.12, 0, 0.39, 0],
104
+ easeOutSine: [0.61, 1, 0.88, 1],
105
+ easeInOutSine: [0.37, 0, 0.63, 1],
106
+ easeInQuad: [0.11, 0, 0.5, 0],
107
+ easeOutQuad: [0.5, 1, 0.89, 1],
108
+ easeInOutQuad: [0.45, 0, 0.55, 1],
109
+ easeInCubic: [0.32, 0, 0.67, 0],
110
+ easeOutCubic: [0.33, 1, 0.68, 1],
111
+ easeInOutCubic: [0.65, 0, 0.35, 1],
112
+ easeInQuart: [0.5, 0, 0.75, 0],
113
+ easeOutQuart: [0.25, 1, 0.5, 1],
114
+ easeInOutQuart: [0.76, 0, 0.24, 1],
115
+ easeInQuint: [0.64, 0, 0.78, 0],
116
+ easeOutQuint: [0.22, 1, 0.36, 1],
117
+ easeInOutQuint: [0.83, 0, 0.17, 1],
118
+ easeInExpo: [0.7, 0, 0.84, 0],
119
+ easeOutExpo: [0.16, 1, 0.3, 1],
120
+ easeInOutExpo: [0.87, 0, 0.13, 1],
121
+ easeInCirc: [0.55, 0, 1, 0.45],
122
+ easeOutCirc: [0, 0.55, 0.45, 1],
123
+ easeInOutCirc: [0.85, 0, 0.15, 1],
124
+ easeInBack: [0.36, 0, 0.66, -0.56],
125
+ easeOutBack: [0.34, 1.56, 0.64, 1],
126
+ easeInOutBack: [0.68, -0.6, 0.32, 1.6]
127
+ };
128
+ ur({
129
+ linear: rr
130
+ }, cr);
131
+ /**
132
+ * @vue/shared v3.4.35
133
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
134
+ * @license MIT
135
+ **/
136
+ process.env.NODE_ENV !== "production" && Object.freeze({});
137
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
138
+ const Rt = () => {
139
+ }, pr = Object.prototype.hasOwnProperty, hn = (e, t) => pr.call(e, t), fr = Array.isArray, et = (e) => typeof e == "function", vt = (e) => typeof e == "string", Ft = (e) => e !== null && typeof e == "object";
140
+ function $t(e) {
141
+ for (var t = -1, n = e == null ? 0 : e.length, o = {}; ++t < n; ) {
142
+ var r = e[t];
143
+ o[r[0]] = r[1];
144
+ }
145
+ return o;
146
+ }
147
+ function Lt(e) {
148
+ return e == null;
149
+ }
150
+ function dr(e) {
151
+ return e === void 0;
152
+ }
153
+ const jt = (e) => typeof e == "boolean", qe = (e) => typeof e == "number", lt = (e) => typeof Element > "u" ? !1 : e instanceof Element, vr = (e) => vt(e) ? !Number.isNaN(Number(e)) : !1;
154
+ class mr extends Error {
155
+ constructor(t) {
156
+ super(t), this.name = "ElementPlusError";
157
+ }
158
+ }
159
+ function ut(e, t) {
160
+ if (process.env.NODE_ENV !== "production") {
161
+ const n = vt(e) ? new mr(`[${e}] ${t}`) : e;
162
+ }
163
+ }
164
+ const gr = "utils/dom/style";
165
+ function hr(e, t = "px") {
166
+ if (!e)
167
+ return "";
168
+ if (qe(e) || vr(e))
169
+ return `${e}${t}`;
170
+ if (vt(e))
171
+ return e;
172
+ ut(gr, "binding value must be a string or number");
173
+ }
174
+ const Qn = "__epPropKey", j = (e) => e, yr = (e) => Ft(e) && !!e[Qn], Bt = (e, t) => {
175
+ if (!Ft(e) || yr(e))
176
+ return e;
177
+ const { values: n, required: o, default: r, type: a, validator: s } = e, i = {
178
+ type: a,
179
+ required: !!o,
180
+ validator: n || s ? (u) => {
181
+ let v = !1, g = [];
182
+ if (n && (g = Array.from(n), hn(e, "default") && g.push(r), v || (v = g.includes(u))), s && (v || (v = s(u))), !v && g.length > 0) {
183
+ const y = [...new Set(g)].map((h) => JSON.stringify(h)).join(", ");
184
+ $o(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${y}], got value ${JSON.stringify(u)}.`);
185
+ }
186
+ return v;
187
+ } : void 0,
188
+ [Qn]: !0
189
+ };
190
+ return hn(e, "default") && (i.default = r), i;
191
+ }, te = (e) => $t(Object.entries(e).map(([t, n]) => [
192
+ t,
193
+ Bt(n, t)
194
+ ])), br = j([
195
+ String,
196
+ Object,
197
+ Function
198
+ ]), Dt = (e, t) => {
199
+ if (e.install = (n) => {
200
+ for (const o of [e, ...Object.values(t ?? {})])
201
+ n.component(o.name, o);
202
+ }, t)
203
+ for (const [n, o] of Object.entries(t))
204
+ e[n] = o;
205
+ return e;
206
+ }, wr = (e, t) => (e.install = (n) => {
207
+ n.directive(t, e);
208
+ }, e), ct = {
209
+ tab: "Tab",
210
+ enter: "Enter",
211
+ space: "Space",
212
+ left: "ArrowLeft",
213
+ up: "ArrowUp",
214
+ right: "ArrowRight",
215
+ down: "ArrowDown",
216
+ esc: "Escape",
217
+ delete: "Delete",
218
+ backspace: "Backspace",
219
+ numpadEnter: "NumpadEnter",
220
+ pageUp: "PageUp",
221
+ pageDown: "PageDown",
222
+ home: "Home",
223
+ end: "End"
224
+ }, Ot = "el", Er = "is-", Se = (e, t, n, o, r) => {
225
+ let a = `${e}-${t}`;
226
+ return n && (a += `-${n}`), o && (a += `__${o}`), r && (a += `--${r}`), a;
227
+ }, Or = Symbol("namespaceContextKey"), Mt = (e) => {
228
+ const t = ft() ? ie(Or, N(Ot)) : N(Ot);
229
+ return C(() => p(t) || Ot);
230
+ }, Ve = (e, t) => {
231
+ const n = Mt();
232
+ return {
233
+ namespace: n,
234
+ b: (c = "") => Se(n.value, e, c, "", ""),
235
+ e: (c) => c ? Se(n.value, e, "", c, "") : "",
236
+ m: (c) => c ? Se(n.value, e, "", "", c) : "",
237
+ be: (c, m) => c && m ? Se(n.value, e, c, m, "") : "",
238
+ em: (c, m) => c && m ? Se(n.value, e, "", c, m) : "",
239
+ bm: (c, m) => c && m ? Se(n.value, e, c, "", m) : "",
240
+ bem: (c, m, f) => c && m && f ? Se(n.value, e, c, m, f) : "",
241
+ is: (c, ...m) => {
242
+ const f = m.length >= 1 ? m[0] : !0;
243
+ return c && f ? `${Er}${c}` : "";
244
+ },
245
+ cssVar: (c) => {
246
+ const m = {};
247
+ for (const f in c)
248
+ c[f] && (m[`--${n.value}-${f}`] = c[f]);
249
+ return m;
250
+ },
251
+ cssVarName: (c) => `--${n.value}-${c}`,
252
+ cssVarBlock: (c) => {
253
+ const m = {};
254
+ for (const f in c)
255
+ c[f] && (m[`--${n.value}-${e}-${f}`] = c[f]);
256
+ return m;
257
+ },
258
+ cssVarBlockName: (c) => `--${n.value}-${e}-${c}`
259
+ };
260
+ }, Tr = Bt({
261
+ type: j(Boolean),
262
+ default: null
263
+ }), Cr = Bt({
264
+ type: j(Function)
265
+ }), Yn = (e) => {
266
+ const t = `update:${e}`, n = `onUpdate:${e}`, o = [t], r = {
267
+ [e]: Tr,
268
+ [n]: Cr
269
+ };
270
+ return {
271
+ useModelToggle: ({
272
+ indicator: s,
273
+ toggleReason: l,
274
+ shouldHideWhenRouteChanges: i,
275
+ shouldProceed: u,
276
+ onShow: v,
277
+ onHide: g
278
+ }) => {
279
+ const y = ft(), { emit: h } = y, d = y.props, c = C(() => et(d[n])), m = C(() => d[e] === null), f = (E) => {
280
+ s.value !== !0 && (s.value = !0, l && (l.value = E), et(v) && v(E));
281
+ }, w = (E) => {
282
+ s.value !== !1 && (s.value = !1, l && (l.value = E), et(g) && g(E));
283
+ }, S = (E) => {
284
+ if (d.disabled === !0 || et(u) && !u())
285
+ return;
286
+ const k = c.value && ce;
287
+ k && h(t, !0), (m.value || !k) && f(E);
288
+ }, b = (E) => {
289
+ if (d.disabled === !0 || !ce)
290
+ return;
291
+ const k = c.value && ce;
292
+ k && h(t, !1), (m.value || !k) && w(E);
293
+ }, P = (E) => {
294
+ jt(E) && (d.disabled && E ? c.value && h(t, !1) : s.value !== E && (E ? f() : w()));
295
+ }, I = () => {
296
+ s.value ? b() : S();
297
+ };
298
+ return W(() => d[e], P), i && y.appContext.config.globalProperties.$route !== void 0 && W(() => ({
299
+ ...y.proxy.$route
300
+ }), () => {
301
+ i.value && s.value && b();
302
+ }), be(() => {
303
+ P(d[e]);
304
+ }), {
305
+ hide: b,
306
+ show: S,
307
+ toggle: I,
308
+ hasUpdateHandler: c
309
+ };
310
+ },
311
+ useModelToggleProps: r,
312
+ useModelToggleEmits: o
313
+ };
314
+ };
315
+ Yn("modelValue");
316
+ var Y = "top", re = "bottom", ae = "right", X = "left", Vt = "auto", Qe = [Y, re, ae, X], Le = "start", Ge = "end", Sr = "clippingParents", Xn = "viewport", We = "popper", Ir = "reference", yn = Qe.reduce(function(e, t) {
317
+ return e.concat([t + "-" + Le, t + "-" + Ge]);
318
+ }, []), Wt = [].concat(Qe, [Vt]).reduce(function(e, t) {
319
+ return e.concat([t, t + "-" + Le, t + "-" + Ge]);
320
+ }, []), Pr = "beforeRead", kr = "read", Ar = "afterRead", Rr = "beforeMain", $r = "main", _r = "afterMain", Nr = "beforeWrite", xr = "write", Fr = "afterWrite", Lr = [Pr, kr, Ar, Rr, $r, _r, Nr, xr, Fr];
321
+ function fe(e) {
322
+ return e ? (e.nodeName || "").toLowerCase() : null;
323
+ }
324
+ function le(e) {
325
+ if (e == null) return window;
326
+ if (e.toString() !== "[object Window]") {
327
+ var t = e.ownerDocument;
328
+ return t && t.defaultView || window;
329
+ }
330
+ return e;
331
+ }
332
+ function je(e) {
333
+ var t = le(e).Element;
334
+ return e instanceof t || e instanceof Element;
335
+ }
336
+ function oe(e) {
337
+ var t = le(e).HTMLElement;
338
+ return e instanceof t || e instanceof HTMLElement;
339
+ }
340
+ function Ht(e) {
341
+ if (typeof ShadowRoot > "u") return !1;
342
+ var t = le(e).ShadowRoot;
343
+ return e instanceof t || e instanceof ShadowRoot;
344
+ }
345
+ function jr(e) {
346
+ var t = e.state;
347
+ Object.keys(t.elements).forEach(function(n) {
348
+ var o = t.styles[n] || {}, r = t.attributes[n] || {}, a = t.elements[n];
349
+ !oe(a) || !fe(a) || (Object.assign(a.style, o), Object.keys(r).forEach(function(s) {
350
+ var l = r[s];
351
+ l === !1 ? a.removeAttribute(s) : a.setAttribute(s, l === !0 ? "" : l);
352
+ }));
353
+ });
354
+ }
355
+ function Br(e) {
356
+ var t = e.state, n = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
357
+ return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
358
+ Object.keys(t.elements).forEach(function(o) {
359
+ var r = t.elements[o], a = t.attributes[o] || {}, s = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), l = s.reduce(function(i, u) {
360
+ return i[u] = "", i;
361
+ }, {});
362
+ !oe(r) || !fe(r) || (Object.assign(r.style, l), Object.keys(a).forEach(function(i) {
363
+ r.removeAttribute(i);
364
+ }));
365
+ });
366
+ };
367
+ }
368
+ var eo = { name: "applyStyles", enabled: !0, phase: "write", fn: jr, effect: Br, requires: ["computeStyles"] };
369
+ function pe(e) {
370
+ return e.split("-")[0];
371
+ }
372
+ var Pe = Math.max, pt = Math.min, Be = Math.round;
373
+ function De(e, t) {
374
+ t === void 0 && (t = !1);
375
+ var n = e.getBoundingClientRect(), o = 1, r = 1;
376
+ if (oe(e) && t) {
377
+ var a = e.offsetHeight, s = e.offsetWidth;
378
+ s > 0 && (o = Be(n.width) / s || 1), a > 0 && (r = Be(n.height) / a || 1);
379
+ }
380
+ return { width: n.width / o, height: n.height / r, top: n.top / r, right: n.right / o, bottom: n.bottom / r, left: n.left / o, x: n.left / o, y: n.top / r };
381
+ }
382
+ function Ut(e) {
383
+ var t = De(e), n = e.offsetWidth, o = e.offsetHeight;
384
+ return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: o };
385
+ }
386
+ function to(e, t) {
387
+ var n = t.getRootNode && t.getRootNode();
388
+ if (e.contains(t)) return !0;
389
+ if (n && Ht(n)) {
390
+ var o = t;
391
+ do {
392
+ if (o && e.isSameNode(o)) return !0;
393
+ o = o.parentNode || o.host;
394
+ } while (o);
395
+ }
396
+ return !1;
397
+ }
398
+ function ye(e) {
399
+ return le(e).getComputedStyle(e);
400
+ }
401
+ function Dr(e) {
402
+ return ["table", "td", "th"].indexOf(fe(e)) >= 0;
403
+ }
404
+ function Oe(e) {
405
+ return ((je(e) ? e.ownerDocument : e.document) || window.document).documentElement;
406
+ }
407
+ function mt(e) {
408
+ return fe(e) === "html" ? e : e.assignedSlot || e.parentNode || (Ht(e) ? e.host : null) || Oe(e);
409
+ }
410
+ function bn(e) {
411
+ return !oe(e) || ye(e).position === "fixed" ? null : e.offsetParent;
412
+ }
413
+ function Mr(e) {
414
+ var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
415
+ if (n && oe(e)) {
416
+ var o = ye(e);
417
+ if (o.position === "fixed") return null;
418
+ }
419
+ var r = mt(e);
420
+ for (Ht(r) && (r = r.host); oe(r) && ["html", "body"].indexOf(fe(r)) < 0; ) {
421
+ var a = ye(r);
422
+ if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none") return r;
423
+ r = r.parentNode;
424
+ }
425
+ return null;
426
+ }
427
+ function Ye(e) {
428
+ for (var t = le(e), n = bn(e); n && Dr(n) && ye(n).position === "static"; ) n = bn(n);
429
+ return n && (fe(n) === "html" || fe(n) === "body" && ye(n).position === "static") ? t : n || Mr(e) || t;
430
+ }
431
+ function Kt(e) {
432
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
433
+ }
434
+ function Ke(e, t, n) {
435
+ return Pe(e, pt(t, n));
436
+ }
437
+ function Vr(e, t, n) {
438
+ var o = Ke(e, t, n);
439
+ return o > n ? n : o;
440
+ }
441
+ function no() {
442
+ return { top: 0, right: 0, bottom: 0, left: 0 };
443
+ }
444
+ function oo(e) {
445
+ return Object.assign({}, no(), e);
446
+ }
447
+ function ro(e, t) {
448
+ return t.reduce(function(n, o) {
449
+ return n[o] = e, n;
450
+ }, {});
451
+ }
452
+ var Wr = function(e, t) {
453
+ return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, oo(typeof e != "number" ? e : ro(e, Qe));
454
+ };
455
+ function Hr(e) {
456
+ var t, n = e.state, o = e.name, r = e.options, a = n.elements.arrow, s = n.modifiersData.popperOffsets, l = pe(n.placement), i = Kt(l), u = [X, ae].indexOf(l) >= 0, v = u ? "height" : "width";
457
+ if (!(!a || !s)) {
458
+ var g = Wr(r.padding, n), y = Ut(a), h = i === "y" ? Y : X, d = i === "y" ? re : ae, c = n.rects.reference[v] + n.rects.reference[i] - s[i] - n.rects.popper[v], m = s[i] - n.rects.reference[i], f = Ye(a), w = f ? i === "y" ? f.clientHeight || 0 : f.clientWidth || 0 : 0, S = c / 2 - m / 2, b = g[h], P = w - y[v] - g[d], I = w / 2 - y[v] / 2 + S, E = Ke(b, I, P), k = i;
459
+ n.modifiersData[o] = (t = {}, t[k] = E, t.centerOffset = E - I, t);
460
+ }
461
+ }
462
+ function Ur(e) {
463
+ var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
464
+ r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || !to(t.elements.popper, r) || (t.elements.arrow = r));
465
+ }
466
+ var Kr = { name: "arrow", enabled: !0, phase: "main", fn: Hr, effect: Ur, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
467
+ function Me(e) {
468
+ return e.split("-")[1];
469
+ }
470
+ var zr = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
471
+ function qr(e) {
472
+ var t = e.x, n = e.y, o = window, r = o.devicePixelRatio || 1;
473
+ return { x: Be(t * r) / r || 0, y: Be(n * r) / r || 0 };
474
+ }
475
+ function wn(e) {
476
+ var t, n = e.popper, o = e.popperRect, r = e.placement, a = e.variation, s = e.offsets, l = e.position, i = e.gpuAcceleration, u = e.adaptive, v = e.roundOffsets, g = e.isFixed, y = s.x, h = y === void 0 ? 0 : y, d = s.y, c = d === void 0 ? 0 : d, m = typeof v == "function" ? v({ x: h, y: c }) : { x: h, y: c };
477
+ h = m.x, c = m.y;
478
+ var f = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), S = X, b = Y, P = window;
479
+ if (u) {
480
+ var I = Ye(n), E = "clientHeight", k = "clientWidth";
481
+ if (I === le(n) && (I = Oe(n), ye(I).position !== "static" && l === "absolute" && (E = "scrollHeight", k = "scrollWidth")), I = I, r === Y || (r === X || r === ae) && a === Ge) {
482
+ b = re;
483
+ var L = g && I === P && P.visualViewport ? P.visualViewport.height : I[E];
484
+ c -= L - o.height, c *= i ? 1 : -1;
485
+ }
486
+ if (r === X || (r === Y || r === re) && a === Ge) {
487
+ S = ae;
488
+ var x = g && I === P && P.visualViewport ? P.visualViewport.width : I[k];
489
+ h -= x - o.width, h *= i ? 1 : -1;
490
+ }
491
+ }
492
+ var F = Object.assign({ position: l }, u && zr), B = v === !0 ? qr({ x: h, y: c }) : { x: h, y: c };
493
+ if (h = B.x, c = B.y, i) {
494
+ var D;
495
+ return Object.assign({}, F, (D = {}, D[b] = w ? "0" : "", D[S] = f ? "0" : "", D.transform = (P.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + c + "px)" : "translate3d(" + h + "px, " + c + "px, 0)", D));
496
+ }
497
+ return Object.assign({}, F, (t = {}, t[b] = w ? c + "px" : "", t[S] = f ? h + "px" : "", t.transform = "", t));
498
+ }
499
+ function Gr(e) {
500
+ var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, a = n.adaptive, s = a === void 0 ? !0 : a, l = n.roundOffsets, i = l === void 0 ? !0 : l, u = { placement: pe(t.placement), variation: Me(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: r, isFixed: t.options.strategy === "fixed" };
501
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, wn(Object.assign({}, u, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: s, roundOffsets: i })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, wn(Object.assign({}, u, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: i })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
502
+ }
503
+ var ao = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: Gr, data: {} }, tt = { passive: !0 };
504
+ function Jr(e) {
505
+ var t = e.state, n = e.instance, o = e.options, r = o.scroll, a = r === void 0 ? !0 : r, s = o.resize, l = s === void 0 ? !0 : s, i = le(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
506
+ return a && u.forEach(function(v) {
507
+ v.addEventListener("scroll", n.update, tt);
508
+ }), l && i.addEventListener("resize", n.update, tt), function() {
509
+ a && u.forEach(function(v) {
510
+ v.removeEventListener("scroll", n.update, tt);
511
+ }), l && i.removeEventListener("resize", n.update, tt);
512
+ };
513
+ }
514
+ var so = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
515
+ }, effect: Jr, data: {} }, Zr = { left: "right", right: "left", bottom: "top", top: "bottom" };
516
+ function it(e) {
517
+ return e.replace(/left|right|bottom|top/g, function(t) {
518
+ return Zr[t];
519
+ });
520
+ }
521
+ var Qr = { start: "end", end: "start" };
522
+ function En(e) {
523
+ return e.replace(/start|end/g, function(t) {
524
+ return Qr[t];
525
+ });
526
+ }
527
+ function zt(e) {
528
+ var t = le(e), n = t.pageXOffset, o = t.pageYOffset;
529
+ return { scrollLeft: n, scrollTop: o };
530
+ }
531
+ function qt(e) {
532
+ return De(Oe(e)).left + zt(e).scrollLeft;
533
+ }
534
+ function Yr(e) {
535
+ var t = le(e), n = Oe(e), o = t.visualViewport, r = n.clientWidth, a = n.clientHeight, s = 0, l = 0;
536
+ return o && (r = o.width, a = o.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (s = o.offsetLeft, l = o.offsetTop)), { width: r, height: a, x: s + qt(e), y: l };
537
+ }
538
+ function Xr(e) {
539
+ var t, n = Oe(e), o = zt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, a = Pe(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), s = Pe(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), l = -o.scrollLeft + qt(e), i = -o.scrollTop;
540
+ return ye(r || n).direction === "rtl" && (l += Pe(n.clientWidth, r ? r.clientWidth : 0) - a), { width: a, height: s, x: l, y: i };
541
+ }
542
+ function Gt(e) {
543
+ var t = ye(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
544
+ return /auto|scroll|overlay|hidden/.test(n + r + o);
545
+ }
546
+ function io(e) {
547
+ return ["html", "body", "#document"].indexOf(fe(e)) >= 0 ? e.ownerDocument.body : oe(e) && Gt(e) ? e : io(mt(e));
548
+ }
549
+ function ze(e, t) {
550
+ var n;
551
+ t === void 0 && (t = []);
552
+ var o = io(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), a = le(o), s = r ? [a].concat(a.visualViewport || [], Gt(o) ? o : []) : o, l = t.concat(s);
553
+ return r ? l : l.concat(ze(mt(s)));
554
+ }
555
+ function _t(e) {
556
+ return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height });
557
+ }
558
+ function ea(e) {
559
+ var t = De(e);
560
+ return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t;
561
+ }
562
+ function On(e, t) {
563
+ return t === Xn ? _t(Yr(e)) : je(t) ? ea(t) : _t(Xr(Oe(e)));
564
+ }
565
+ function ta(e) {
566
+ var t = ze(mt(e)), n = ["absolute", "fixed"].indexOf(ye(e).position) >= 0, o = n && oe(e) ? Ye(e) : e;
567
+ return je(o) ? t.filter(function(r) {
568
+ return je(r) && to(r, o) && fe(r) !== "body";
569
+ }) : [];
570
+ }
571
+ function na(e, t, n) {
572
+ var o = t === "clippingParents" ? ta(e) : [].concat(t), r = [].concat(o, [n]), a = r[0], s = r.reduce(function(l, i) {
573
+ var u = On(e, i);
574
+ return l.top = Pe(u.top, l.top), l.right = pt(u.right, l.right), l.bottom = pt(u.bottom, l.bottom), l.left = Pe(u.left, l.left), l;
575
+ }, On(e, a));
576
+ return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
577
+ }
578
+ function lo(e) {
579
+ var t = e.reference, n = e.element, o = e.placement, r = o ? pe(o) : null, a = o ? Me(o) : null, s = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, i;
580
+ switch (r) {
581
+ case Y:
582
+ i = { x: s, y: t.y - n.height };
583
+ break;
584
+ case re:
585
+ i = { x: s, y: t.y + t.height };
586
+ break;
587
+ case ae:
588
+ i = { x: t.x + t.width, y: l };
589
+ break;
590
+ case X:
591
+ i = { x: t.x - n.width, y: l };
592
+ break;
593
+ default:
594
+ i = { x: t.x, y: t.y };
595
+ }
596
+ var u = r ? Kt(r) : null;
597
+ if (u != null) {
598
+ var v = u === "y" ? "height" : "width";
599
+ switch (a) {
600
+ case Le:
601
+ i[u] = i[u] - (t[v] / 2 - n[v] / 2);
602
+ break;
603
+ case Ge:
604
+ i[u] = i[u] + (t[v] / 2 - n[v] / 2);
605
+ break;
606
+ }
607
+ }
608
+ return i;
609
+ }
610
+ function Je(e, t) {
611
+ t === void 0 && (t = {});
612
+ var n = t, o = n.placement, r = o === void 0 ? e.placement : o, a = n.boundary, s = a === void 0 ? Sr : a, l = n.rootBoundary, i = l === void 0 ? Xn : l, u = n.elementContext, v = u === void 0 ? We : u, g = n.altBoundary, y = g === void 0 ? !1 : g, h = n.padding, d = h === void 0 ? 0 : h, c = oo(typeof d != "number" ? d : ro(d, Qe)), m = v === We ? Ir : We, f = e.rects.popper, w = e.elements[y ? m : v], S = na(je(w) ? w : w.contextElement || Oe(e.elements.popper), s, i), b = De(e.elements.reference), P = lo({ reference: b, element: f, strategy: "absolute", placement: r }), I = _t(Object.assign({}, f, P)), E = v === We ? I : b, k = { top: S.top - E.top + c.top, bottom: E.bottom - S.bottom + c.bottom, left: S.left - E.left + c.left, right: E.right - S.right + c.right }, L = e.modifiersData.offset;
613
+ if (v === We && L) {
614
+ var x = L[r];
615
+ Object.keys(k).forEach(function(F) {
616
+ var B = [ae, re].indexOf(F) >= 0 ? 1 : -1, D = [Y, re].indexOf(F) >= 0 ? "y" : "x";
617
+ k[F] += x[D] * B;
618
+ });
619
+ }
620
+ return k;
621
+ }
622
+ function oa(e, t) {
623
+ t === void 0 && (t = {});
624
+ var n = t, o = n.placement, r = n.boundary, a = n.rootBoundary, s = n.padding, l = n.flipVariations, i = n.allowedAutoPlacements, u = i === void 0 ? Wt : i, v = Me(o), g = v ? l ? yn : yn.filter(function(d) {
625
+ return Me(d) === v;
626
+ }) : Qe, y = g.filter(function(d) {
627
+ return u.indexOf(d) >= 0;
628
+ });
629
+ y.length === 0 && (y = g);
630
+ var h = y.reduce(function(d, c) {
631
+ return d[c] = Je(e, { placement: c, boundary: r, rootBoundary: a, padding: s })[pe(c)], d;
632
+ }, {});
633
+ return Object.keys(h).sort(function(d, c) {
634
+ return h[d] - h[c];
635
+ });
636
+ }
637
+ function ra(e) {
638
+ if (pe(e) === Vt) return [];
639
+ var t = it(e);
640
+ return [En(e), t, En(t)];
641
+ }
642
+ function aa(e) {
643
+ var t = e.state, n = e.options, o = e.name;
644
+ if (!t.modifiersData[o]._skip) {
645
+ for (var r = n.mainAxis, a = r === void 0 ? !0 : r, s = n.altAxis, l = s === void 0 ? !0 : s, i = n.fallbackPlacements, u = n.padding, v = n.boundary, g = n.rootBoundary, y = n.altBoundary, h = n.flipVariations, d = h === void 0 ? !0 : h, c = n.allowedAutoPlacements, m = t.options.placement, f = pe(m), w = f === m, S = i || (w || !d ? [it(m)] : ra(m)), b = [m].concat(S).reduce(function(R, $) {
646
+ return R.concat(pe($) === Vt ? oa(t, { placement: $, boundary: v, rootBoundary: g, padding: u, flipVariations: d, allowedAutoPlacements: c }) : $);
647
+ }, []), P = t.rects.reference, I = t.rects.popper, E = /* @__PURE__ */ new Map(), k = !0, L = b[0], x = 0; x < b.length; x++) {
648
+ var F = b[x], B = pe(F), D = Me(F) === Le, G = [Y, re].indexOf(B) >= 0, K = G ? "width" : "height", M = Je(t, { placement: F, boundary: v, rootBoundary: g, altBoundary: y, padding: u }), O = G ? D ? ae : X : D ? re : Y;
649
+ P[K] > I[K] && (O = it(O));
650
+ var q = it(O), Z = [];
651
+ if (a && Z.push(M[B] <= 0), l && Z.push(M[O] <= 0, M[q] <= 0), Z.every(function(R) {
652
+ return R;
653
+ })) {
654
+ L = F, k = !1;
655
+ break;
656
+ }
657
+ E.set(F, Z);
658
+ }
659
+ if (k) for (var ve = d ? 3 : 1, Te = function(R) {
660
+ var $ = b.find(function(_) {
661
+ var H = E.get(_);
662
+ if (H) return H.slice(0, R).every(function(A) {
663
+ return A;
664
+ });
665
+ });
666
+ if ($) return L = $, "break";
667
+ }, me = ve; me > 0; me--) {
668
+ var T = Te(me);
669
+ if (T === "break") break;
670
+ }
671
+ t.placement !== L && (t.modifiersData[o]._skip = !0, t.placement = L, t.reset = !0);
672
+ }
673
+ }
674
+ var sa = { name: "flip", enabled: !0, phase: "main", fn: aa, requiresIfExists: ["offset"], data: { _skip: !1 } };
675
+ function Tn(e, t, n) {
676
+ return n === void 0 && (n = { x: 0, y: 0 }), { top: e.top - t.height - n.y, right: e.right - t.width + n.x, bottom: e.bottom - t.height + n.y, left: e.left - t.width - n.x };
677
+ }
678
+ function Cn(e) {
679
+ return [Y, ae, re, X].some(function(t) {
680
+ return e[t] >= 0;
681
+ });
682
+ }
683
+ function ia(e) {
684
+ var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, a = t.modifiersData.preventOverflow, s = Je(t, { elementContext: "reference" }), l = Je(t, { altBoundary: !0 }), i = Tn(s, o), u = Tn(l, r, a), v = Cn(i), g = Cn(u);
685
+ t.modifiersData[n] = { referenceClippingOffsets: i, popperEscapeOffsets: u, isReferenceHidden: v, hasPopperEscaped: g }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": v, "data-popper-escaped": g });
686
+ }
687
+ var la = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: ia };
688
+ function ua(e, t, n) {
689
+ var o = pe(e), r = [X, Y].indexOf(o) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, s = a[0], l = a[1];
690
+ return s = s || 0, l = (l || 0) * r, [X, ae].indexOf(o) >= 0 ? { x: l, y: s } : { x: s, y: l };
691
+ }
692
+ function ca(e) {
693
+ var t = e.state, n = e.options, o = e.name, r = n.offset, a = r === void 0 ? [0, 0] : r, s = Wt.reduce(function(v, g) {
694
+ return v[g] = ua(g, t.rects, a), v;
695
+ }, {}), l = s[t.placement], i = l.x, u = l.y;
696
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += i, t.modifiersData.popperOffsets.y += u), t.modifiersData[o] = s;
697
+ }
698
+ var pa = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: ca };
699
+ function fa(e) {
700
+ var t = e.state, n = e.name;
701
+ t.modifiersData[n] = lo({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement });
702
+ }
703
+ var uo = { name: "popperOffsets", enabled: !0, phase: "read", fn: fa, data: {} };
704
+ function da(e) {
705
+ return e === "x" ? "y" : "x";
706
+ }
707
+ function va(e) {
708
+ var t = e.state, n = e.options, o = e.name, r = n.mainAxis, a = r === void 0 ? !0 : r, s = n.altAxis, l = s === void 0 ? !1 : s, i = n.boundary, u = n.rootBoundary, v = n.altBoundary, g = n.padding, y = n.tether, h = y === void 0 ? !0 : y, d = n.tetherOffset, c = d === void 0 ? 0 : d, m = Je(t, { boundary: i, rootBoundary: u, padding: g, altBoundary: v }), f = pe(t.placement), w = Me(t.placement), S = !w, b = Kt(f), P = da(b), I = t.modifiersData.popperOffsets, E = t.rects.reference, k = t.rects.popper, L = typeof c == "function" ? c(Object.assign({}, t.rects, { placement: t.placement })) : c, x = typeof L == "number" ? { mainAxis: L, altAxis: L } : Object.assign({ mainAxis: 0, altAxis: 0 }, L), F = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, B = { x: 0, y: 0 };
709
+ if (I) {
710
+ if (a) {
711
+ var D, G = b === "y" ? Y : X, K = b === "y" ? re : ae, M = b === "y" ? "height" : "width", O = I[b], q = O + m[G], Z = O - m[K], ve = h ? -k[M] / 2 : 0, Te = w === Le ? E[M] : k[M], me = w === Le ? -k[M] : -E[M], T = t.elements.arrow, R = h && T ? Ut(T) : { width: 0, height: 0 }, $ = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : no(), _ = $[G], H = $[K], A = Ke(0, E[M], R[M]), V = S ? E[M] / 2 - ve - A - _ - x.mainAxis : Te - A - _ - x.mainAxis, z = S ? -E[M] / 2 + ve + A + H + x.mainAxis : me + A + H + x.mainAxis, se = t.elements.arrow && Ye(t.elements.arrow), ht = se ? b === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, Re = (D = F == null ? void 0 : F[b]) != null ? D : 0, So = O + V - Re - ht, Io = O + z - Re, en = Ke(h ? pt(q, So) : q, O, h ? Pe(Z, Io) : Z);
712
+ I[b] = en, B[b] = en - O;
713
+ }
714
+ if (l) {
715
+ var tn, Po = b === "x" ? Y : X, ko = b === "x" ? re : ae, Ce = I[P], Xe = P === "y" ? "height" : "width", nn = Ce + m[Po], on = Ce - m[ko], yt = [Y, X].indexOf(f) !== -1, rn = (tn = F == null ? void 0 : F[P]) != null ? tn : 0, an = yt ? nn : Ce - E[Xe] - k[Xe] - rn + x.altAxis, sn = yt ? Ce + E[Xe] + k[Xe] - rn - x.altAxis : on, ln = h && yt ? Vr(an, Ce, sn) : Ke(h ? an : nn, Ce, h ? sn : on);
716
+ I[P] = ln, B[P] = ln - Ce;
717
+ }
718
+ t.modifiersData[o] = B;
719
+ }
720
+ }
721
+ var ma = { name: "preventOverflow", enabled: !0, phase: "main", fn: va, requiresIfExists: ["offset"] };
722
+ function ga(e) {
723
+ return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop };
724
+ }
725
+ function ha(e) {
726
+ return e === le(e) || !oe(e) ? zt(e) : ga(e);
727
+ }
728
+ function ya(e) {
729
+ var t = e.getBoundingClientRect(), n = Be(t.width) / e.offsetWidth || 1, o = Be(t.height) / e.offsetHeight || 1;
730
+ return n !== 1 || o !== 1;
731
+ }
732
+ function ba(e, t, n) {
733
+ n === void 0 && (n = !1);
734
+ var o = oe(t), r = oe(t) && ya(t), a = Oe(t), s = De(e, r), l = { scrollLeft: 0, scrollTop: 0 }, i = { x: 0, y: 0 };
735
+ return (o || !o && !n) && ((fe(t) !== "body" || Gt(a)) && (l = ha(t)), oe(t) ? (i = De(t, !0), i.x += t.clientLeft, i.y += t.clientTop) : a && (i.x = qt(a))), { x: s.left + l.scrollLeft - i.x, y: s.top + l.scrollTop - i.y, width: s.width, height: s.height };
736
+ }
737
+ function wa(e) {
738
+ var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
739
+ e.forEach(function(a) {
740
+ t.set(a.name, a);
741
+ });
742
+ function r(a) {
743
+ n.add(a.name);
744
+ var s = [].concat(a.requires || [], a.requiresIfExists || []);
745
+ s.forEach(function(l) {
746
+ if (!n.has(l)) {
747
+ var i = t.get(l);
748
+ i && r(i);
749
+ }
750
+ }), o.push(a);
751
+ }
752
+ return e.forEach(function(a) {
753
+ n.has(a.name) || r(a);
754
+ }), o;
755
+ }
756
+ function Ea(e) {
757
+ var t = wa(e);
758
+ return Lr.reduce(function(n, o) {
759
+ return n.concat(t.filter(function(r) {
760
+ return r.phase === o;
761
+ }));
762
+ }, []);
763
+ }
764
+ function Oa(e) {
765
+ var t;
766
+ return function() {
767
+ return t || (t = new Promise(function(n) {
768
+ Promise.resolve().then(function() {
769
+ t = void 0, n(e());
770
+ });
771
+ })), t;
772
+ };
773
+ }
774
+ function Ta(e) {
775
+ var t = e.reduce(function(n, o) {
776
+ var r = n[o.name];
777
+ return n[o.name] = r ? Object.assign({}, r, o, { options: Object.assign({}, r.options, o.options), data: Object.assign({}, r.data, o.data) }) : o, n;
778
+ }, {});
779
+ return Object.keys(t).map(function(n) {
780
+ return t[n];
781
+ });
782
+ }
783
+ var Sn = { placement: "bottom", modifiers: [], strategy: "absolute" };
784
+ function In() {
785
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
786
+ return !t.some(function(o) {
787
+ return !(o && typeof o.getBoundingClientRect == "function");
788
+ });
789
+ }
790
+ function Jt(e) {
791
+ e === void 0 && (e = {});
792
+ var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, a = r === void 0 ? Sn : r;
793
+ return function(s, l, i) {
794
+ i === void 0 && (i = a);
795
+ var u = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, Sn, a), modifiersData: {}, elements: { reference: s, popper: l }, attributes: {}, styles: {} }, v = [], g = !1, y = { state: u, setOptions: function(c) {
796
+ var m = typeof c == "function" ? c(u.options) : c;
797
+ d(), u.options = Object.assign({}, a, u.options, m), u.scrollParents = { reference: je(s) ? ze(s) : s.contextElement ? ze(s.contextElement) : [], popper: ze(l) };
798
+ var f = Ea(Ta([].concat(o, u.options.modifiers)));
799
+ return u.orderedModifiers = f.filter(function(w) {
800
+ return w.enabled;
801
+ }), h(), y.update();
802
+ }, forceUpdate: function() {
803
+ if (!g) {
804
+ var c = u.elements, m = c.reference, f = c.popper;
805
+ if (In(m, f)) {
806
+ u.rects = { reference: ba(m, Ye(f), u.options.strategy === "fixed"), popper: Ut(f) }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(k) {
807
+ return u.modifiersData[k.name] = Object.assign({}, k.data);
808
+ });
809
+ for (var w = 0; w < u.orderedModifiers.length; w++) {
810
+ if (u.reset === !0) {
811
+ u.reset = !1, w = -1;
812
+ continue;
813
+ }
814
+ var S = u.orderedModifiers[w], b = S.fn, P = S.options, I = P === void 0 ? {} : P, E = S.name;
815
+ typeof b == "function" && (u = b({ state: u, options: I, name: E, instance: y }) || u);
816
+ }
817
+ }
818
+ }
819
+ }, update: Oa(function() {
820
+ return new Promise(function(c) {
821
+ y.forceUpdate(), c(u);
822
+ });
823
+ }), destroy: function() {
824
+ d(), g = !0;
825
+ } };
826
+ if (!In(s, l)) return y;
827
+ y.setOptions(i).then(function(c) {
828
+ !g && i.onFirstUpdate && i.onFirstUpdate(c);
829
+ });
830
+ function h() {
831
+ u.orderedModifiers.forEach(function(c) {
832
+ var m = c.name, f = c.options, w = f === void 0 ? {} : f, S = c.effect;
833
+ if (typeof S == "function") {
834
+ var b = S({ state: u, name: m, instance: y, options: w }), P = function() {
835
+ };
836
+ v.push(b || P);
837
+ }
838
+ });
839
+ }
840
+ function d() {
841
+ v.forEach(function(c) {
842
+ return c();
843
+ }), v = [];
844
+ }
845
+ return y;
846
+ };
847
+ }
848
+ Jt();
849
+ var Ca = [so, uo, ao, eo];
850
+ Jt({ defaultModifiers: Ca });
851
+ var Sa = [so, uo, ao, eo, pa, sa, ma, Kr, la], Ia = Jt({ defaultModifiers: Sa });
852
+ const Pa = (e, t, n = {}) => {
853
+ const o = {
854
+ name: "updateState",
855
+ enabled: !0,
856
+ phase: "write",
857
+ fn: ({ state: i }) => {
858
+ const u = ka(i);
859
+ Object.assign(s.value, u);
860
+ },
861
+ requires: ["computeStyles"]
862
+ }, r = C(() => {
863
+ const { onFirstUpdate: i, placement: u, strategy: v, modifiers: g } = p(n);
864
+ return {
865
+ onFirstUpdate: i,
866
+ placement: u || "bottom",
867
+ strategy: v || "absolute",
868
+ modifiers: [
869
+ ...g || [],
870
+ o,
871
+ { name: "applyStyles", enabled: !1 }
872
+ ]
873
+ };
874
+ }), a = _o(), s = N({
875
+ styles: {
876
+ popper: {
877
+ position: p(r).strategy,
878
+ left: "0",
879
+ top: "0"
880
+ },
881
+ arrow: {
882
+ position: "absolute"
883
+ }
884
+ },
885
+ attributes: {}
886
+ }), l = () => {
887
+ a.value && (a.value.destroy(), a.value = void 0);
888
+ };
889
+ return W(r, (i) => {
890
+ const u = p(a);
891
+ u && u.setOptions(i);
892
+ }, {
893
+ deep: !0
894
+ }), W([e, t], ([i, u]) => {
895
+ l(), !(!i || !u) && (a.value = Ia(i, u, p(r)));
896
+ }), de(() => {
897
+ l();
898
+ }), {
899
+ state: C(() => {
900
+ var i;
901
+ return { ...((i = p(a)) == null ? void 0 : i.state) || {} };
902
+ }),
903
+ styles: C(() => p(s).styles),
904
+ attributes: C(() => p(s).attributes),
905
+ update: () => {
906
+ var i;
907
+ return (i = p(a)) == null ? void 0 : i.update();
908
+ },
909
+ forceUpdate: () => {
910
+ var i;
911
+ return (i = p(a)) == null ? void 0 : i.forceUpdate();
912
+ },
913
+ instanceRef: C(() => p(a))
914
+ };
915
+ };
916
+ function ka(e) {
917
+ const t = Object.keys(e.elements), n = $t(t.map((r) => [r, e.styles[r] || {}])), o = $t(t.map((r) => [r, e.attributes[r]]));
918
+ return {
919
+ styles: n,
920
+ attributes: o
921
+ };
922
+ }
923
+ function Pn() {
924
+ let e;
925
+ const t = (o, r) => {
926
+ n(), e = window.setTimeout(o, r);
927
+ }, n = () => window.clearTimeout(e);
928
+ return Jn(() => n()), {
929
+ registerTimeout: t,
930
+ cancelTimeout: n
931
+ };
932
+ }
933
+ const Nt = {
934
+ prefix: Math.floor(Math.random() * 1e4),
935
+ current: 0
936
+ }, Aa = Symbol("elIdInjection"), co = () => ft() ? ie(Aa, Nt) : Nt, Ra = (e) => {
937
+ const t = co();
938
+ !ce && t === Nt && ut("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
939
+ usage: app.provide(ID_INJECTION_KEY, {
940
+ prefix: number,
941
+ current: number,
942
+ })`);
943
+ const n = Mt();
944
+ return C(() => p(e) || `${n.value}-id-${t.prefix}-${t.current++}`);
945
+ };
946
+ let _e = [];
947
+ const kn = (e) => {
948
+ const t = e;
949
+ t.key === ct.esc && _e.forEach((n) => n(t));
950
+ }, $a = (e) => {
951
+ be(() => {
952
+ _e.length === 0 && document.addEventListener("keydown", kn), ce && _e.push(e);
953
+ }), de(() => {
954
+ _e = _e.filter((t) => t !== e), _e.length === 0 && ce && document.removeEventListener("keydown", kn);
955
+ });
956
+ };
957
+ let An;
958
+ const po = () => {
959
+ const e = Mt(), t = co(), n = C(() => `${e.value}-popper-container-${t.prefix}`), o = C(() => `#${n.value}`);
960
+ return {
961
+ id: n,
962
+ selector: o
963
+ };
964
+ }, _a = (e) => {
965
+ const t = document.createElement("div");
966
+ return t.id = e, document.body.appendChild(t), t;
967
+ }, Na = () => {
968
+ const { id: e, selector: t } = po();
969
+ return No(() => {
970
+ ce && (process.env.NODE_ENV === "test" || !An && !document.body.querySelector(t.value)) && (An = _a(e.value));
971
+ }), {
972
+ id: e,
973
+ selector: t
974
+ };
975
+ }, xa = te({
976
+ showAfter: {
977
+ type: Number,
978
+ default: 0
979
+ },
980
+ hideAfter: {
981
+ type: Number,
982
+ default: 200
983
+ },
984
+ autoClose: {
985
+ type: Number,
986
+ default: 0
987
+ }
988
+ }), Fa = ({
989
+ showAfter: e,
990
+ hideAfter: t,
991
+ autoClose: n,
992
+ open: o,
993
+ close: r
994
+ }) => {
995
+ const { registerTimeout: a } = Pn(), {
996
+ registerTimeout: s,
997
+ cancelTimeout: l
998
+ } = Pn();
999
+ return {
1000
+ onOpen: (v) => {
1001
+ a(() => {
1002
+ o(v);
1003
+ const g = p(n);
1004
+ qe(g) && g > 0 && s(() => {
1005
+ r(v);
1006
+ }, g);
1007
+ }, p(e));
1008
+ },
1009
+ onClose: (v) => {
1010
+ l(), a(() => {
1011
+ r(v);
1012
+ }, p(t));
1013
+ }
1014
+ };
1015
+ }, fo = Symbol("elForwardRef"), La = (e) => {
1016
+ Ee(fo, {
1017
+ setForwardRef: (n) => {
1018
+ e.value = n;
1019
+ }
1020
+ });
1021
+ }, ja = (e) => ({
1022
+ mounted(t) {
1023
+ e(t);
1024
+ },
1025
+ updated(t) {
1026
+ e(t);
1027
+ },
1028
+ unmounted() {
1029
+ e(null);
1030
+ }
1031
+ }), Rn = N(0), Ba = 2e3, Da = Symbol("zIndexContextKey"), Ma = (e) => {
1032
+ const t = ft() ? ie(Da, void 0) : void 0, n = C(() => {
1033
+ const a = p(t);
1034
+ return qe(a) ? a : Ba;
1035
+ }), o = C(() => n.value + Rn.value);
1036
+ return {
1037
+ initialZIndex: n,
1038
+ currentZIndex: o,
1039
+ nextZIndex: () => (Rn.value++, o.value)
1040
+ };
1041
+ };
1042
+ var ue = (e, t) => {
1043
+ const n = e.__vccOpts || e;
1044
+ for (const [o, r] of t)
1045
+ n[o] = r;
1046
+ return n;
1047
+ };
1048
+ const $n = Symbol("formItemContextKey"), Zt = Symbol("popper"), vo = Symbol("popperContent"), Va = [
1049
+ "dialog",
1050
+ "grid",
1051
+ "group",
1052
+ "listbox",
1053
+ "menu",
1054
+ "navigation",
1055
+ "tooltip",
1056
+ "tree"
1057
+ ], mo = te({
1058
+ role: {
1059
+ type: String,
1060
+ values: Va,
1061
+ default: "tooltip"
1062
+ }
1063
+ }), Wa = U({
1064
+ name: "ElPopper",
1065
+ inheritAttrs: !1
1066
+ }), Ha = /* @__PURE__ */ U({
1067
+ ...Wa,
1068
+ props: mo,
1069
+ setup(e, { expose: t }) {
1070
+ const n = e, o = N(), r = N(), a = N(), s = N(), l = C(() => n.role), i = {
1071
+ triggerRef: o,
1072
+ popperInstanceRef: r,
1073
+ contentRef: a,
1074
+ referenceRef: s,
1075
+ role: l
1076
+ };
1077
+ return t(i), Ee(Zt, i), (u, v) => Q(u.$slots, "default");
1078
+ }
1079
+ });
1080
+ var Ua = /* @__PURE__ */ ue(Ha, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);
1081
+ const go = te({
1082
+ arrowOffset: {
1083
+ type: Number,
1084
+ default: 5
1085
+ }
1086
+ }), Ka = U({
1087
+ name: "ElPopperArrow",
1088
+ inheritAttrs: !1
1089
+ }), za = /* @__PURE__ */ U({
1090
+ ...Ka,
1091
+ props: go,
1092
+ setup(e, { expose: t }) {
1093
+ const n = e, o = Ve("popper"), { arrowOffset: r, arrowRef: a, arrowStyle: s } = ie(vo, void 0);
1094
+ return W(() => n.arrowOffset, (l) => {
1095
+ r.value = l;
1096
+ }), de(() => {
1097
+ a.value = void 0;
1098
+ }), t({
1099
+ arrowRef: a
1100
+ }), (l, i) => (ee(), xe("span", {
1101
+ ref_key: "arrowRef",
1102
+ ref: a,
1103
+ class: dt(p(o).e("arrow")),
1104
+ style: kt(p(s)),
1105
+ "data-popper-arrow": ""
1106
+ }, null, 6));
1107
+ }
1108
+ });
1109
+ var qa = /* @__PURE__ */ ue(za, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);
1110
+ const Tt = "ElOnlyChild", Ga = U({
1111
+ name: Tt,
1112
+ setup(e, {
1113
+ slots: t,
1114
+ attrs: n
1115
+ }) {
1116
+ var o;
1117
+ const r = ie(fo), a = ja((o = r == null ? void 0 : r.setForwardRef) != null ? o : Rt);
1118
+ return () => {
1119
+ var s;
1120
+ const l = (s = t.default) == null ? void 0 : s.call(t, n);
1121
+ if (!l)
1122
+ return null;
1123
+ if (l.length > 1)
1124
+ return ut(Tt, "requires exact only one valid child."), null;
1125
+ const i = ho(l);
1126
+ return i ? xt(xo(i, n), [[a]]) : (ut(Tt, "no valid child node found"), null);
1127
+ };
1128
+ }
1129
+ });
1130
+ function ho(e) {
1131
+ if (!e)
1132
+ return null;
1133
+ const t = e;
1134
+ for (const n of t) {
1135
+ if (Ft(n))
1136
+ switch (n.type) {
1137
+ case jo:
1138
+ continue;
1139
+ case Lo:
1140
+ case "svg":
1141
+ return _n(n);
1142
+ case Fo:
1143
+ return ho(n.children);
1144
+ default:
1145
+ return n;
1146
+ }
1147
+ return _n(n);
1148
+ }
1149
+ return null;
1150
+ }
1151
+ function _n(e) {
1152
+ const t = Ve("only-child");
1153
+ return he("span", {
1154
+ class: t.e("content")
1155
+ }, [e]);
1156
+ }
1157
+ const yo = te({
1158
+ virtualRef: {
1159
+ type: j(Object)
1160
+ },
1161
+ virtualTriggering: Boolean,
1162
+ onMouseenter: {
1163
+ type: j(Function)
1164
+ },
1165
+ onMouseleave: {
1166
+ type: j(Function)
1167
+ },
1168
+ onClick: {
1169
+ type: j(Function)
1170
+ },
1171
+ onKeydown: {
1172
+ type: j(Function)
1173
+ },
1174
+ onFocus: {
1175
+ type: j(Function)
1176
+ },
1177
+ onBlur: {
1178
+ type: j(Function)
1179
+ },
1180
+ onContextmenu: {
1181
+ type: j(Function)
1182
+ },
1183
+ id: String,
1184
+ open: Boolean
1185
+ }), Ja = U({
1186
+ name: "ElPopperTrigger",
1187
+ inheritAttrs: !1
1188
+ }), Za = /* @__PURE__ */ U({
1189
+ ...Ja,
1190
+ props: yo,
1191
+ setup(e, { expose: t }) {
1192
+ const n = e, { role: o, triggerRef: r } = ie(Zt, void 0);
1193
+ La(r);
1194
+ const a = C(() => l.value ? n.id : void 0), s = C(() => {
1195
+ if (o && o.value === "tooltip")
1196
+ return n.open && n.id ? n.id : void 0;
1197
+ }), l = C(() => {
1198
+ if (o && o.value !== "tooltip")
1199
+ return o.value;
1200
+ }), i = C(() => l.value ? `${n.open}` : void 0);
1201
+ let u;
1202
+ return be(() => {
1203
+ W(() => n.virtualRef, (v) => {
1204
+ v && (r.value = Ie(v));
1205
+ }, {
1206
+ immediate: !0
1207
+ }), W(r, (v, g) => {
1208
+ u == null || u(), u = void 0, lt(v) && ([
1209
+ "onMouseenter",
1210
+ "onMouseleave",
1211
+ "onClick",
1212
+ "onKeydown",
1213
+ "onFocus",
1214
+ "onBlur",
1215
+ "onContextmenu"
1216
+ ].forEach((y) => {
1217
+ var h;
1218
+ const d = n[y];
1219
+ d && (v.addEventListener(y.slice(2).toLowerCase(), d), (h = g == null ? void 0 : g.removeEventListener) == null || h.call(g, y.slice(2).toLowerCase(), d));
1220
+ }), u = W([a, s, l, i], (y) => {
1221
+ [
1222
+ "aria-controls",
1223
+ "aria-describedby",
1224
+ "aria-haspopup",
1225
+ "aria-expanded"
1226
+ ].forEach((h, d) => {
1227
+ Lt(y[d]) ? v.removeAttribute(h) : v.setAttribute(h, y[d]);
1228
+ });
1229
+ }, { immediate: !0 })), lt(g) && [
1230
+ "aria-controls",
1231
+ "aria-describedby",
1232
+ "aria-haspopup",
1233
+ "aria-expanded"
1234
+ ].forEach((y) => g.removeAttribute(y));
1235
+ }, {
1236
+ immediate: !0
1237
+ });
1238
+ }), de(() => {
1239
+ u == null || u(), u = void 0;
1240
+ }), t({
1241
+ triggerRef: r
1242
+ }), (v, g) => v.virtualTriggering ? Ae("v-if", !0) : (ee(), ke(p(Ga), Fe({ key: 0 }, v.$attrs, {
1243
+ "aria-controls": p(a),
1244
+ "aria-describedby": p(s),
1245
+ "aria-expanded": p(i),
1246
+ "aria-haspopup": p(l)
1247
+ }), {
1248
+ default: J(() => [
1249
+ Q(v.$slots, "default")
1250
+ ]),
1251
+ _: 3
1252
+ }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
1253
+ }
1254
+ });
1255
+ var Qa = /* @__PURE__ */ ue(Za, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);
1256
+ const Ct = "focus-trap.focus-after-trapped", St = "focus-trap.focus-after-released", Ya = "focus-trap.focusout-prevented", Nn = {
1257
+ cancelable: !0,
1258
+ bubbles: !1
1259
+ }, Xa = {
1260
+ cancelable: !0,
1261
+ bubbles: !1
1262
+ }, xn = "focusAfterTrapped", Fn = "focusAfterReleased", es = Symbol("elFocusTrap"), Qt = N(), gt = N(0), Yt = N(0);
1263
+ let nt = 0;
1264
+ const bo = (e) => {
1265
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1266
+ acceptNode: (o) => {
1267
+ const r = o.tagName === "INPUT" && o.type === "hidden";
1268
+ return o.disabled || o.hidden || r ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 || o === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1269
+ }
1270
+ });
1271
+ for (; n.nextNode(); )
1272
+ t.push(n.currentNode);
1273
+ return t;
1274
+ }, Ln = (e, t) => {
1275
+ for (const n of e)
1276
+ if (!ts(n, t))
1277
+ return n;
1278
+ }, ts = (e, t) => {
1279
+ if (process.env.NODE_ENV === "test")
1280
+ return !1;
1281
+ if (getComputedStyle(e).visibility === "hidden")
1282
+ return !0;
1283
+ for (; e; ) {
1284
+ if (t && e === t)
1285
+ return !1;
1286
+ if (getComputedStyle(e).display === "none")
1287
+ return !0;
1288
+ e = e.parentElement;
1289
+ }
1290
+ return !1;
1291
+ }, ns = (e) => {
1292
+ const t = bo(e), n = Ln(t, e), o = Ln(t.reverse(), e);
1293
+ return [n, o];
1294
+ }, os = (e) => e instanceof HTMLInputElement && "select" in e, we = (e, t) => {
1295
+ if (e && e.focus) {
1296
+ const n = document.activeElement;
1297
+ e.focus({ preventScroll: !0 }), Yt.value = window.performance.now(), e !== n && os(e) && t && e.select();
1298
+ }
1299
+ };
1300
+ function jn(e, t) {
1301
+ const n = [...e], o = e.indexOf(t);
1302
+ return o !== -1 && n.splice(o, 1), n;
1303
+ }
1304
+ const rs = () => {
1305
+ let e = [];
1306
+ return {
1307
+ push: (o) => {
1308
+ const r = e[0];
1309
+ r && o !== r && r.pause(), e = jn(e, o), e.unshift(o);
1310
+ },
1311
+ remove: (o) => {
1312
+ var r, a;
1313
+ e = jn(e, o), (a = (r = e[0]) == null ? void 0 : r.resume) == null || a.call(r);
1314
+ }
1315
+ };
1316
+ }, as = (e, t = !1) => {
1317
+ const n = document.activeElement;
1318
+ for (const o of e)
1319
+ if (we(o, t), document.activeElement !== n)
1320
+ return;
1321
+ }, Bn = rs(), ss = () => gt.value > Yt.value, ot = () => {
1322
+ Qt.value = "pointer", gt.value = window.performance.now();
1323
+ }, Dn = () => {
1324
+ Qt.value = "keyboard", gt.value = window.performance.now();
1325
+ }, is = () => (be(() => {
1326
+ nt === 0 && (document.addEventListener("mousedown", ot), document.addEventListener("touchstart", ot), document.addEventListener("keydown", Dn)), nt++;
1327
+ }), de(() => {
1328
+ nt--, nt <= 0 && (document.removeEventListener("mousedown", ot), document.removeEventListener("touchstart", ot), document.removeEventListener("keydown", Dn));
1329
+ }), {
1330
+ focusReason: Qt,
1331
+ lastUserFocusTimestamp: gt,
1332
+ lastAutomatedFocusTimestamp: Yt
1333
+ }), rt = (e) => new CustomEvent(Ya, {
1334
+ ...Xa,
1335
+ detail: e
1336
+ }), ls = U({
1337
+ name: "ElFocusTrap",
1338
+ inheritAttrs: !1,
1339
+ props: {
1340
+ loop: Boolean,
1341
+ trapped: Boolean,
1342
+ focusTrapEl: Object,
1343
+ focusStartEl: {
1344
+ type: [Object, String],
1345
+ default: "first"
1346
+ }
1347
+ },
1348
+ emits: [
1349
+ xn,
1350
+ Fn,
1351
+ "focusin",
1352
+ "focusout",
1353
+ "focusout-prevented",
1354
+ "release-requested"
1355
+ ],
1356
+ setup(e, { emit: t }) {
1357
+ const n = N();
1358
+ let o, r;
1359
+ const { focusReason: a } = is();
1360
+ $a((d) => {
1361
+ e.trapped && !s.paused && t("release-requested", d);
1362
+ });
1363
+ const s = {
1364
+ paused: !1,
1365
+ pause() {
1366
+ this.paused = !0;
1367
+ },
1368
+ resume() {
1369
+ this.paused = !1;
1370
+ }
1371
+ }, l = (d) => {
1372
+ if (!e.loop && !e.trapped || s.paused)
1373
+ return;
1374
+ const { key: c, altKey: m, ctrlKey: f, metaKey: w, currentTarget: S, shiftKey: b } = d, { loop: P } = e, I = c === ct.tab && !m && !f && !w, E = document.activeElement;
1375
+ if (I && E) {
1376
+ const k = S, [L, x] = ns(k);
1377
+ if (L && x) {
1378
+ if (!b && E === x) {
1379
+ const B = rt({
1380
+ focusReason: a.value
1381
+ });
1382
+ t("focusout-prevented", B), B.defaultPrevented || (d.preventDefault(), P && we(L, !0));
1383
+ } else if (b && [L, k].includes(E)) {
1384
+ const B = rt({
1385
+ focusReason: a.value
1386
+ });
1387
+ t("focusout-prevented", B), B.defaultPrevented || (d.preventDefault(), P && we(x, !0));
1388
+ }
1389
+ } else if (E === k) {
1390
+ const B = rt({
1391
+ focusReason: a.value
1392
+ });
1393
+ t("focusout-prevented", B), B.defaultPrevented || d.preventDefault();
1394
+ }
1395
+ }
1396
+ };
1397
+ Ee(es, {
1398
+ focusTrapRef: n,
1399
+ onKeydown: l
1400
+ }), W(() => e.focusTrapEl, (d) => {
1401
+ d && (n.value = d);
1402
+ }, { immediate: !0 }), W([n], ([d], [c]) => {
1403
+ d && (d.addEventListener("keydown", l), d.addEventListener("focusin", v), d.addEventListener("focusout", g)), c && (c.removeEventListener("keydown", l), c.removeEventListener("focusin", v), c.removeEventListener("focusout", g));
1404
+ });
1405
+ const i = (d) => {
1406
+ t(xn, d);
1407
+ }, u = (d) => t(Fn, d), v = (d) => {
1408
+ const c = p(n);
1409
+ if (!c)
1410
+ return;
1411
+ const m = d.target, f = d.relatedTarget, w = m && c.contains(m);
1412
+ e.trapped || f && c.contains(f) || (o = f), w && t("focusin", d), !s.paused && e.trapped && (w ? r = m : we(r, !0));
1413
+ }, g = (d) => {
1414
+ const c = p(n);
1415
+ if (!(s.paused || !c))
1416
+ if (e.trapped) {
1417
+ const m = d.relatedTarget;
1418
+ !Lt(m) && !c.contains(m) && setTimeout(() => {
1419
+ if (!s.paused && e.trapped) {
1420
+ const f = rt({
1421
+ focusReason: a.value
1422
+ });
1423
+ t("focusout-prevented", f), f.defaultPrevented || we(r, !0);
1424
+ }
1425
+ }, 0);
1426
+ } else {
1427
+ const m = d.target;
1428
+ m && c.contains(m) || t("focusout", d);
1429
+ }
1430
+ };
1431
+ async function y() {
1432
+ await Ne();
1433
+ const d = p(n);
1434
+ if (d) {
1435
+ Bn.push(s);
1436
+ const c = d.contains(document.activeElement) ? o : document.activeElement;
1437
+ if (o = c, !d.contains(c)) {
1438
+ const f = new Event(Ct, Nn);
1439
+ d.addEventListener(Ct, i), d.dispatchEvent(f), f.defaultPrevented || Ne(() => {
1440
+ let w = e.focusStartEl;
1441
+ vt(w) || (we(w), document.activeElement !== w && (w = "first")), w === "first" && as(bo(d), !0), (document.activeElement === c || w === "container") && we(d);
1442
+ });
1443
+ }
1444
+ }
1445
+ }
1446
+ function h() {
1447
+ const d = p(n);
1448
+ if (d) {
1449
+ d.removeEventListener(Ct, i);
1450
+ const c = new CustomEvent(St, {
1451
+ ...Nn,
1452
+ detail: {
1453
+ focusReason: a.value
1454
+ }
1455
+ });
1456
+ d.addEventListener(St, u), d.dispatchEvent(c), !c.defaultPrevented && (a.value == "keyboard" || !ss() || d.contains(document.activeElement)) && we(o ?? document.body), d.removeEventListener(St, u), Bn.remove(s);
1457
+ }
1458
+ }
1459
+ return be(() => {
1460
+ e.trapped && y(), W(() => e.trapped, (d) => {
1461
+ d ? y() : h();
1462
+ });
1463
+ }), de(() => {
1464
+ e.trapped && h();
1465
+ }), {
1466
+ onKeydown: l
1467
+ };
1468
+ }
1469
+ });
1470
+ function us(e, t, n, o, r, a) {
1471
+ return Q(e.$slots, "default", { handleKeydown: e.onKeydown });
1472
+ }
1473
+ var cs = /* @__PURE__ */ ue(ls, [["render", us], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
1474
+ const ps = ["fixed", "absolute"], fs = te({
1475
+ boundariesPadding: {
1476
+ type: Number,
1477
+ default: 0
1478
+ },
1479
+ fallbackPlacements: {
1480
+ type: j(Array),
1481
+ default: void 0
1482
+ },
1483
+ gpuAcceleration: {
1484
+ type: Boolean,
1485
+ default: !0
1486
+ },
1487
+ offset: {
1488
+ type: Number,
1489
+ default: 12
1490
+ },
1491
+ placement: {
1492
+ type: String,
1493
+ values: Wt,
1494
+ default: "bottom"
1495
+ },
1496
+ popperOptions: {
1497
+ type: j(Object),
1498
+ default: () => ({})
1499
+ },
1500
+ strategy: {
1501
+ type: String,
1502
+ values: ps,
1503
+ default: "absolute"
1504
+ }
1505
+ }), wo = te({
1506
+ ...fs,
1507
+ id: String,
1508
+ style: {
1509
+ type: j([String, Array, Object])
1510
+ },
1511
+ className: {
1512
+ type: j([String, Array, Object])
1513
+ },
1514
+ effect: {
1515
+ type: String,
1516
+ default: "dark"
1517
+ },
1518
+ visible: Boolean,
1519
+ enterable: {
1520
+ type: Boolean,
1521
+ default: !0
1522
+ },
1523
+ pure: Boolean,
1524
+ focusOnShow: {
1525
+ type: Boolean,
1526
+ default: !1
1527
+ },
1528
+ trapping: {
1529
+ type: Boolean,
1530
+ default: !1
1531
+ },
1532
+ popperClass: {
1533
+ type: j([String, Array, Object])
1534
+ },
1535
+ popperStyle: {
1536
+ type: j([String, Array, Object])
1537
+ },
1538
+ referenceEl: {
1539
+ type: j(Object)
1540
+ },
1541
+ triggerTargetEl: {
1542
+ type: j(Object)
1543
+ },
1544
+ stopPopperMouseEvent: {
1545
+ type: Boolean,
1546
+ default: !0
1547
+ },
1548
+ ariaLabel: {
1549
+ type: String,
1550
+ default: void 0
1551
+ },
1552
+ virtualTriggering: Boolean,
1553
+ zIndex: Number
1554
+ }), ds = {
1555
+ mouseenter: (e) => e instanceof MouseEvent,
1556
+ mouseleave: (e) => e instanceof MouseEvent,
1557
+ focus: () => !0,
1558
+ blur: () => !0,
1559
+ close: () => !0
1560
+ }, vs = (e, t = []) => {
1561
+ const { placement: n, strategy: o, popperOptions: r } = e, a = {
1562
+ placement: n,
1563
+ strategy: o,
1564
+ ...r,
1565
+ modifiers: [...gs(e), ...t]
1566
+ };
1567
+ return hs(a, r == null ? void 0 : r.modifiers), a;
1568
+ }, ms = (e) => {
1569
+ if (ce)
1570
+ return Ie(e);
1571
+ };
1572
+ function gs(e) {
1573
+ const { offset: t, gpuAcceleration: n, fallbackPlacements: o } = e;
1574
+ return [
1575
+ {
1576
+ name: "offset",
1577
+ options: {
1578
+ offset: [0, t ?? 12]
1579
+ }
1580
+ },
1581
+ {
1582
+ name: "preventOverflow",
1583
+ options: {
1584
+ padding: {
1585
+ top: 2,
1586
+ bottom: 2,
1587
+ left: 5,
1588
+ right: 5
1589
+ }
1590
+ }
1591
+ },
1592
+ {
1593
+ name: "flip",
1594
+ options: {
1595
+ padding: 5,
1596
+ fallbackPlacements: o
1597
+ }
1598
+ },
1599
+ {
1600
+ name: "computeStyles",
1601
+ options: {
1602
+ gpuAcceleration: n
1603
+ }
1604
+ }
1605
+ ];
1606
+ }
1607
+ function hs(e, t) {
1608
+ t && (e.modifiers = [...e.modifiers, ...t ?? []]);
1609
+ }
1610
+ const ys = 0, bs = (e) => {
1611
+ const { popperInstanceRef: t, contentRef: n, triggerRef: o, role: r } = ie(Zt, void 0), a = N(), s = N(), l = C(() => ({
1612
+ name: "eventListeners",
1613
+ enabled: !!e.visible
1614
+ })), i = C(() => {
1615
+ var f;
1616
+ const w = p(a), S = (f = p(s)) != null ? f : ys;
1617
+ return {
1618
+ name: "arrow",
1619
+ enabled: !dr(w),
1620
+ options: {
1621
+ element: w,
1622
+ padding: S
1623
+ }
1624
+ };
1625
+ }), u = C(() => ({
1626
+ onFirstUpdate: () => {
1627
+ d();
1628
+ },
1629
+ ...vs(e, [
1630
+ p(i),
1631
+ p(l)
1632
+ ])
1633
+ })), v = C(() => ms(e.referenceEl) || p(o)), { attributes: g, state: y, styles: h, update: d, forceUpdate: c, instanceRef: m } = Pa(v, n, u);
1634
+ return W(m, (f) => t.value = f), be(() => {
1635
+ W(() => {
1636
+ var f;
1637
+ return (f = p(v)) == null ? void 0 : f.getBoundingClientRect();
1638
+ }, () => {
1639
+ d();
1640
+ });
1641
+ }), {
1642
+ attributes: g,
1643
+ arrowRef: a,
1644
+ contentRef: n,
1645
+ instanceRef: m,
1646
+ state: y,
1647
+ styles: h,
1648
+ role: r,
1649
+ forceUpdate: c,
1650
+ update: d
1651
+ };
1652
+ }, ws = (e, {
1653
+ attributes: t,
1654
+ styles: n,
1655
+ role: o
1656
+ }) => {
1657
+ const { nextZIndex: r } = Ma(), a = Ve("popper"), s = C(() => p(t).popper), l = N(qe(e.zIndex) ? e.zIndex : r()), i = C(() => [
1658
+ a.b(),
1659
+ a.is("pure", e.pure),
1660
+ a.is(e.effect),
1661
+ e.popperClass
1662
+ ]), u = C(() => [
1663
+ { zIndex: p(l) },
1664
+ p(n).popper,
1665
+ e.popperStyle || {}
1666
+ ]), v = C(() => o.value === "dialog" ? "false" : void 0), g = C(() => p(n).arrow || {});
1667
+ return {
1668
+ ariaModal: v,
1669
+ arrowStyle: g,
1670
+ contentAttrs: s,
1671
+ contentClass: i,
1672
+ contentStyle: u,
1673
+ contentZIndex: l,
1674
+ updateZIndex: () => {
1675
+ l.value = qe(e.zIndex) ? e.zIndex : r();
1676
+ }
1677
+ };
1678
+ }, Es = (e, t) => {
1679
+ const n = N(!1), o = N();
1680
+ return {
1681
+ focusStartRef: o,
1682
+ trapped: n,
1683
+ onFocusAfterReleased: (u) => {
1684
+ var v;
1685
+ ((v = u.detail) == null ? void 0 : v.focusReason) !== "pointer" && (o.value = "first", t("blur"));
1686
+ },
1687
+ onFocusAfterTrapped: () => {
1688
+ t("focus");
1689
+ },
1690
+ onFocusInTrap: (u) => {
1691
+ e.visible && !n.value && (u.target && (o.value = u.target), n.value = !0);
1692
+ },
1693
+ onFocusoutPrevented: (u) => {
1694
+ e.trapping || (u.detail.focusReason === "pointer" && u.preventDefault(), n.value = !1);
1695
+ },
1696
+ onReleaseRequested: () => {
1697
+ n.value = !1, t("close");
1698
+ }
1699
+ };
1700
+ }, Os = U({
1701
+ name: "ElPopperContent"
1702
+ }), Ts = /* @__PURE__ */ U({
1703
+ ...Os,
1704
+ props: wo,
1705
+ emits: ds,
1706
+ setup(e, { expose: t, emit: n }) {
1707
+ const o = e, {
1708
+ focusStartRef: r,
1709
+ trapped: a,
1710
+ onFocusAfterReleased: s,
1711
+ onFocusAfterTrapped: l,
1712
+ onFocusInTrap: i,
1713
+ onFocusoutPrevented: u,
1714
+ onReleaseRequested: v
1715
+ } = Es(o, n), { attributes: g, arrowRef: y, contentRef: h, styles: d, instanceRef: c, role: m, update: f } = bs(o), {
1716
+ ariaModal: w,
1717
+ arrowStyle: S,
1718
+ contentAttrs: b,
1719
+ contentClass: P,
1720
+ contentStyle: I,
1721
+ updateZIndex: E
1722
+ } = ws(o, {
1723
+ styles: d,
1724
+ attributes: g,
1725
+ role: m
1726
+ }), k = ie($n, void 0), L = N();
1727
+ Ee(vo, {
1728
+ arrowStyle: S,
1729
+ arrowRef: y,
1730
+ arrowOffset: L
1731
+ }), k && (k.addInputId || k.removeInputId) && Ee($n, {
1732
+ ...k,
1733
+ addInputId: Rt,
1734
+ removeInputId: Rt
1735
+ });
1736
+ let x;
1737
+ const F = (D = !0) => {
1738
+ f(), D && E();
1739
+ }, B = () => {
1740
+ F(!1), o.visible && o.focusOnShow ? a.value = !0 : o.visible === !1 && (a.value = !1);
1741
+ };
1742
+ return be(() => {
1743
+ W(() => o.triggerTargetEl, (D, G) => {
1744
+ x == null || x(), x = void 0;
1745
+ const K = p(D || h.value), M = p(G || h.value);
1746
+ lt(K) && (x = W([m, () => o.ariaLabel, w, () => o.id], (O) => {
1747
+ ["role", "aria-label", "aria-modal", "id"].forEach((q, Z) => {
1748
+ Lt(O[Z]) ? K.removeAttribute(q) : K.setAttribute(q, O[Z]);
1749
+ });
1750
+ }, { immediate: !0 })), M !== K && lt(M) && ["role", "aria-label", "aria-modal", "id"].forEach((O) => {
1751
+ M.removeAttribute(O);
1752
+ });
1753
+ }, { immediate: !0 }), W(() => o.visible, B, { immediate: !0 });
1754
+ }), de(() => {
1755
+ x == null || x(), x = void 0;
1756
+ }), t({
1757
+ popperContentRef: h,
1758
+ popperInstanceRef: c,
1759
+ updatePopper: F,
1760
+ contentStyle: I
1761
+ }), (D, G) => (ee(), xe("div", Fe({
1762
+ ref_key: "contentRef",
1763
+ ref: h
1764
+ }, p(b), {
1765
+ style: p(I),
1766
+ class: p(P),
1767
+ tabindex: "-1",
1768
+ onMouseenter: G[0] || (G[0] = (K) => D.$emit("mouseenter", K)),
1769
+ onMouseleave: G[1] || (G[1] = (K) => D.$emit("mouseleave", K))
1770
+ }), [
1771
+ he(p(cs), {
1772
+ trapped: p(a),
1773
+ "trap-on-focus-in": !0,
1774
+ "focus-trap-el": p(h),
1775
+ "focus-start-el": p(r),
1776
+ onFocusAfterTrapped: p(l),
1777
+ onFocusAfterReleased: p(s),
1778
+ onFocusin: p(i),
1779
+ onFocusoutPrevented: p(u),
1780
+ onReleaseRequested: p(v)
1781
+ }, {
1782
+ default: J(() => [
1783
+ Q(D.$slots, "default")
1784
+ ]),
1785
+ _: 3
1786
+ }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
1787
+ ], 16));
1788
+ }
1789
+ });
1790
+ var Cs = /* @__PURE__ */ ue(Ts, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);
1791
+ const Ss = Dt(Ua), Xt = Symbol("elTooltip"), ne = te({
1792
+ ...xa,
1793
+ ...wo,
1794
+ appendTo: {
1795
+ type: j([String, Object])
1796
+ },
1797
+ content: {
1798
+ type: String,
1799
+ default: ""
1800
+ },
1801
+ rawContent: {
1802
+ type: Boolean,
1803
+ default: !1
1804
+ },
1805
+ persistent: Boolean,
1806
+ ariaLabel: String,
1807
+ visible: {
1808
+ type: j(Boolean),
1809
+ default: null
1810
+ },
1811
+ transition: String,
1812
+ teleported: {
1813
+ type: Boolean,
1814
+ default: !0
1815
+ },
1816
+ disabled: Boolean
1817
+ }), Ze = te({
1818
+ ...yo,
1819
+ disabled: Boolean,
1820
+ trigger: {
1821
+ type: j([String, Array]),
1822
+ default: "hover"
1823
+ },
1824
+ triggerKeys: {
1825
+ type: j(Array),
1826
+ default: () => [ct.enter, ct.space]
1827
+ }
1828
+ }), {
1829
+ useModelToggleProps: Is,
1830
+ useModelToggleEmits: Ps,
1831
+ useModelToggle: ks
1832
+ } = Yn("visible"), As = te({
1833
+ ...mo,
1834
+ ...Is,
1835
+ ...ne,
1836
+ ...Ze,
1837
+ ...go,
1838
+ showArrow: {
1839
+ type: Boolean,
1840
+ default: !0
1841
+ }
1842
+ }), Rs = [
1843
+ ...Ps,
1844
+ "before-show",
1845
+ "before-hide",
1846
+ "show",
1847
+ "hide",
1848
+ "open",
1849
+ "close"
1850
+ ], $s = (e, t) => fr(e) ? e.includes(t) : e === t, $e = (e, t, n) => (o) => {
1851
+ $s(p(e), t) && n(o);
1852
+ }, _s = U({
1853
+ name: "ElTooltipTrigger"
1854
+ }), Ns = /* @__PURE__ */ U({
1855
+ ..._s,
1856
+ props: Ze,
1857
+ setup(e, { expose: t }) {
1858
+ const n = e, o = Ve("tooltip"), { controlled: r, id: a, open: s, onOpen: l, onClose: i, onToggle: u } = ie(Xt, void 0), v = N(null), g = () => {
1859
+ if (p(r) || n.disabled)
1860
+ return !0;
1861
+ }, y = Ue(n, "trigger"), h = ge(g, $e(y, "hover", l)), d = ge(g, $e(y, "hover", i)), c = ge(g, $e(y, "click", (b) => {
1862
+ b.button === 0 && u(b);
1863
+ })), m = ge(g, $e(y, "focus", l)), f = ge(g, $e(y, "focus", i)), w = ge(g, $e(y, "contextmenu", (b) => {
1864
+ b.preventDefault(), u(b);
1865
+ })), S = ge(g, (b) => {
1866
+ const { code: P } = b;
1867
+ n.triggerKeys.includes(P) && (b.preventDefault(), u(b));
1868
+ });
1869
+ return t({
1870
+ triggerRef: v
1871
+ }), (b, P) => (ee(), ke(p(Qa), {
1872
+ id: p(a),
1873
+ "virtual-ref": b.virtualRef,
1874
+ open: p(s),
1875
+ "virtual-triggering": b.virtualTriggering,
1876
+ class: dt(p(o).e("trigger")),
1877
+ onBlur: p(f),
1878
+ onClick: p(c),
1879
+ onContextmenu: p(w),
1880
+ onFocus: p(m),
1881
+ onMouseenter: p(h),
1882
+ onMouseleave: p(d),
1883
+ onKeydown: p(S)
1884
+ }, {
1885
+ default: J(() => [
1886
+ Q(b.$slots, "default")
1887
+ ]),
1888
+ _: 3
1889
+ }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
1890
+ }
1891
+ });
1892
+ var xs = /* @__PURE__ */ ue(Ns, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);
1893
+ const Fs = U({
1894
+ name: "ElTooltipContent",
1895
+ inheritAttrs: !1
1896
+ }), Ls = /* @__PURE__ */ U({
1897
+ ...Fs,
1898
+ props: ne,
1899
+ setup(e, { expose: t }) {
1900
+ const n = e, { selector: o } = po(), r = Ve("tooltip"), a = N(null), s = N(!1), {
1901
+ controlled: l,
1902
+ id: i,
1903
+ open: u,
1904
+ trigger: v,
1905
+ onClose: g,
1906
+ onOpen: y,
1907
+ onShow: h,
1908
+ onHide: d,
1909
+ onBeforeShow: c,
1910
+ onBeforeHide: m
1911
+ } = ie(Xt, void 0), f = C(() => n.transition || `${r.namespace.value}-fade-in-linear`), w = C(() => process.env.NODE_ENV === "test" ? !0 : n.persistent);
1912
+ de(() => {
1913
+ s.value = !0;
1914
+ });
1915
+ const S = C(() => p(w) ? !0 : p(u)), b = C(() => n.disabled ? !1 : p(u)), P = C(() => n.appendTo || o.value), I = C(() => {
1916
+ var O;
1917
+ return (O = n.style) != null ? O : {};
1918
+ }), E = C(() => !p(u)), k = () => {
1919
+ d();
1920
+ }, L = () => {
1921
+ if (p(l))
1922
+ return !0;
1923
+ }, x = ge(L, () => {
1924
+ n.enterable && p(v) === "hover" && y();
1925
+ }), F = ge(L, () => {
1926
+ p(v) === "hover" && g();
1927
+ }), B = () => {
1928
+ var O, q;
1929
+ (q = (O = a.value) == null ? void 0 : O.updatePopper) == null || q.call(O), c == null || c();
1930
+ }, D = () => {
1931
+ m == null || m();
1932
+ }, G = () => {
1933
+ h(), M = ar(C(() => {
1934
+ var O;
1935
+ return (O = a.value) == null ? void 0 : O.popperContentRef;
1936
+ }), () => {
1937
+ if (p(l))
1938
+ return;
1939
+ p(v) !== "hover" && g();
1940
+ });
1941
+ }, K = () => {
1942
+ n.virtualTriggering || g();
1943
+ };
1944
+ let M;
1945
+ return W(() => p(u), (O) => {
1946
+ O || M == null || M();
1947
+ }, {
1948
+ flush: "post"
1949
+ }), W(() => n.content, () => {
1950
+ var O, q;
1951
+ (q = (O = a.value) == null ? void 0 : O.updatePopper) == null || q.call(O);
1952
+ }), t({
1953
+ contentRef: a
1954
+ }), (O, q) => (ee(), ke(Bo, {
1955
+ disabled: !O.teleported,
1956
+ to: p(P)
1957
+ }, [
1958
+ he(Do, {
1959
+ name: p(f),
1960
+ onAfterLeave: k,
1961
+ onBeforeEnter: B,
1962
+ onAfterEnter: G,
1963
+ onBeforeLeave: D
1964
+ }, {
1965
+ default: J(() => [
1966
+ p(S) ? xt((ee(), ke(p(Cs), Fe({
1967
+ key: 0,
1968
+ id: p(i),
1969
+ ref_key: "contentRef",
1970
+ ref: a
1971
+ }, O.$attrs, {
1972
+ "aria-label": O.ariaLabel,
1973
+ "aria-hidden": p(E),
1974
+ "boundaries-padding": O.boundariesPadding,
1975
+ "fallback-placements": O.fallbackPlacements,
1976
+ "gpu-acceleration": O.gpuAcceleration,
1977
+ offset: O.offset,
1978
+ placement: O.placement,
1979
+ "popper-options": O.popperOptions,
1980
+ strategy: O.strategy,
1981
+ effect: O.effect,
1982
+ enterable: O.enterable,
1983
+ pure: O.pure,
1984
+ "popper-class": O.popperClass,
1985
+ "popper-style": [O.popperStyle, p(I)],
1986
+ "reference-el": O.referenceEl,
1987
+ "trigger-target-el": O.triggerTargetEl,
1988
+ visible: p(b),
1989
+ "z-index": O.zIndex,
1990
+ onMouseenter: p(x),
1991
+ onMouseleave: p(F),
1992
+ onBlur: K,
1993
+ onClose: p(g)
1994
+ }), {
1995
+ default: J(() => [
1996
+ s.value ? Ae("v-if", !0) : Q(O.$slots, "default", { key: 0 })
1997
+ ]),
1998
+ _: 3
1999
+ }, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [
2000
+ [Mo, p(b)]
2001
+ ]) : Ae("v-if", !0)
2002
+ ]),
2003
+ _: 3
2004
+ }, 8, ["name"])
2005
+ ], 8, ["disabled", "to"]));
2006
+ }
2007
+ });
2008
+ var js = /* @__PURE__ */ ue(Ls, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);
2009
+ const Bs = ["innerHTML"], Ds = { key: 1 }, Ms = U({
2010
+ name: "ElTooltip"
2011
+ }), Vs = /* @__PURE__ */ U({
2012
+ ...Ms,
2013
+ props: As,
2014
+ emits: Rs,
2015
+ setup(e, { expose: t, emit: n }) {
2016
+ const o = e;
2017
+ Na();
2018
+ const r = Ra(), a = N(), s = N(), l = () => {
2019
+ var f;
2020
+ const w = p(a);
2021
+ w && ((f = w.popperInstanceRef) == null || f.update());
2022
+ }, i = N(!1), u = N(), { show: v, hide: g, hasUpdateHandler: y } = ks({
2023
+ indicator: i,
2024
+ toggleReason: u
2025
+ }), { onOpen: h, onClose: d } = Fa({
2026
+ showAfter: Ue(o, "showAfter"),
2027
+ hideAfter: Ue(o, "hideAfter"),
2028
+ autoClose: Ue(o, "autoClose"),
2029
+ open: v,
2030
+ close: g
2031
+ }), c = C(() => jt(o.visible) && !y.value);
2032
+ Ee(Xt, {
2033
+ controlled: c,
2034
+ id: r,
2035
+ open: Vo(i),
2036
+ trigger: Ue(o, "trigger"),
2037
+ onOpen: (f) => {
2038
+ h(f);
2039
+ },
2040
+ onClose: (f) => {
2041
+ d(f);
2042
+ },
2043
+ onToggle: (f) => {
2044
+ p(i) ? d(f) : h(f);
2045
+ },
2046
+ onShow: () => {
2047
+ n("show", u.value);
2048
+ },
2049
+ onHide: () => {
2050
+ n("hide", u.value);
2051
+ },
2052
+ onBeforeShow: () => {
2053
+ n("before-show", u.value);
2054
+ },
2055
+ onBeforeHide: () => {
2056
+ n("before-hide", u.value);
2057
+ },
2058
+ updatePopper: l
2059
+ }), W(() => o.disabled, (f) => {
2060
+ f && i.value && (i.value = !1);
2061
+ });
2062
+ const m = (f) => {
2063
+ var w, S;
2064
+ const b = (S = (w = s.value) == null ? void 0 : w.contentRef) == null ? void 0 : S.popperContentRef, P = (f == null ? void 0 : f.relatedTarget) || document.activeElement;
2065
+ return b && b.contains(P);
2066
+ };
2067
+ return Wo(() => i.value && g()), t({
2068
+ popperRef: a,
2069
+ contentRef: s,
2070
+ isFocusInsideContent: m,
2071
+ updatePopper: l,
2072
+ onOpen: h,
2073
+ onClose: d,
2074
+ hide: g
2075
+ }), (f, w) => (ee(), ke(p(Ss), {
2076
+ ref_key: "popperRef",
2077
+ ref: a,
2078
+ role: f.role
2079
+ }, {
2080
+ default: J(() => [
2081
+ he(xs, {
2082
+ disabled: f.disabled,
2083
+ trigger: f.trigger,
2084
+ "trigger-keys": f.triggerKeys,
2085
+ "virtual-ref": f.virtualRef,
2086
+ "virtual-triggering": f.virtualTriggering
2087
+ }, {
2088
+ default: J(() => [
2089
+ f.$slots.default ? Q(f.$slots, "default", { key: 0 }) : Ae("v-if", !0)
2090
+ ]),
2091
+ _: 3
2092
+ }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
2093
+ he(js, {
2094
+ ref_key: "contentRef",
2095
+ ref: s,
2096
+ "aria-label": f.ariaLabel,
2097
+ "boundaries-padding": f.boundariesPadding,
2098
+ content: f.content,
2099
+ disabled: f.disabled,
2100
+ effect: f.effect,
2101
+ enterable: f.enterable,
2102
+ "fallback-placements": f.fallbackPlacements,
2103
+ "hide-after": f.hideAfter,
2104
+ "gpu-acceleration": f.gpuAcceleration,
2105
+ offset: f.offset,
2106
+ persistent: f.persistent,
2107
+ "popper-class": f.popperClass,
2108
+ "popper-style": f.popperStyle,
2109
+ placement: f.placement,
2110
+ "popper-options": f.popperOptions,
2111
+ pure: f.pure,
2112
+ "raw-content": f.rawContent,
2113
+ "reference-el": f.referenceEl,
2114
+ "trigger-target-el": f.triggerTargetEl,
2115
+ "show-after": f.showAfter,
2116
+ strategy: f.strategy,
2117
+ teleported: f.teleported,
2118
+ transition: f.transition,
2119
+ "virtual-triggering": f.virtualTriggering,
2120
+ "z-index": f.zIndex,
2121
+ "append-to": f.appendTo
2122
+ }, {
2123
+ default: J(() => [
2124
+ Q(f.$slots, "content", {}, () => [
2125
+ f.rawContent ? (ee(), xe("span", {
2126
+ key: 0,
2127
+ innerHTML: f.content
2128
+ }, null, 8, Bs)) : (ee(), xe("span", Ds, At(f.content), 1))
2129
+ ]),
2130
+ f.showArrow ? (ee(), ke(p(qa), {
2131
+ key: 0,
2132
+ "arrow-offset": f.arrowOffset
2133
+ }, null, 8, ["arrow-offset"])) : Ae("v-if", !0)
2134
+ ]),
2135
+ _: 3
2136
+ }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
2137
+ ]),
2138
+ _: 3
2139
+ }, 8, ["role"]));
2140
+ }
2141
+ });
2142
+ var Ws = /* @__PURE__ */ ue(Vs, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);
2143
+ const Hs = Dt(Ws), Us = /* @__PURE__ */ U({
2144
+ inheritAttrs: !1
2145
+ });
2146
+ function Ks(e, t, n, o, r, a) {
2147
+ return Q(e.$slots, "default");
2148
+ }
2149
+ var zs = /* @__PURE__ */ ue(Us, [["render", Ks], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);
2150
+ const qs = /* @__PURE__ */ U({
2151
+ name: "ElCollectionItem",
2152
+ inheritAttrs: !1
2153
+ });
2154
+ function Gs(e, t, n, o, r, a) {
2155
+ return Q(e.$slots, "default");
2156
+ }
2157
+ var Js = /* @__PURE__ */ ue(qs, [["render", Gs], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);
2158
+ const Zs = "data-el-collection-item", Qs = (e) => {
2159
+ const t = `El${e}Collection`, n = `${t}Item`, o = Symbol(t), r = Symbol(n), a = {
2160
+ ...zs,
2161
+ name: t,
2162
+ setup() {
2163
+ const l = N(null), i = /* @__PURE__ */ new Map();
2164
+ Ee(o, {
2165
+ itemMap: i,
2166
+ getItems: () => {
2167
+ const v = p(l);
2168
+ if (!v)
2169
+ return [];
2170
+ const g = Array.from(v.querySelectorAll(`[${Zs}]`));
2171
+ return [...i.values()].sort((h, d) => g.indexOf(h.ref) - g.indexOf(d.ref));
2172
+ },
2173
+ collectionRef: l
2174
+ });
2175
+ }
2176
+ }, s = {
2177
+ ...Js,
2178
+ name: n,
2179
+ setup(l, { attrs: i }) {
2180
+ const u = N(null), v = ie(o, void 0);
2181
+ Ee(r, {
2182
+ collectionItemRef: u
2183
+ }), be(() => {
2184
+ const g = p(u);
2185
+ g && v.itemMap.set(g, {
2186
+ ref: g,
2187
+ ...i
2188
+ });
2189
+ }), de(() => {
2190
+ const g = p(u);
2191
+ v.itemMap.delete(g);
2192
+ });
2193
+ }
2194
+ };
2195
+ return {
2196
+ COLLECTION_INJECTION_KEY: o,
2197
+ COLLECTION_ITEM_INJECTION_KEY: r,
2198
+ ElCollection: a,
2199
+ ElCollectionItem: s
2200
+ };
2201
+ }, It = te({
2202
+ trigger: Ze.trigger,
2203
+ effect: {
2204
+ ...ne.effect,
2205
+ default: "light"
2206
+ },
2207
+ type: {
2208
+ type: j(String)
2209
+ },
2210
+ placement: {
2211
+ type: j(String),
2212
+ default: "bottom"
2213
+ },
2214
+ popperOptions: {
2215
+ type: j(Object),
2216
+ default: () => ({})
2217
+ },
2218
+ id: String,
2219
+ size: {
2220
+ type: String,
2221
+ default: ""
2222
+ },
2223
+ splitButton: Boolean,
2224
+ hideOnClick: {
2225
+ type: Boolean,
2226
+ default: !0
2227
+ },
2228
+ loop: {
2229
+ type: Boolean,
2230
+ default: !0
2231
+ },
2232
+ showTimeout: {
2233
+ type: Number,
2234
+ default: 150
2235
+ },
2236
+ hideTimeout: {
2237
+ type: Number,
2238
+ default: 150
2239
+ },
2240
+ tabindex: {
2241
+ type: j([Number, String]),
2242
+ default: 0
2243
+ },
2244
+ maxHeight: {
2245
+ type: j([Number, String]),
2246
+ default: ""
2247
+ },
2248
+ popperClass: {
2249
+ type: String,
2250
+ default: ""
2251
+ },
2252
+ disabled: {
2253
+ type: Boolean,
2254
+ default: !1
2255
+ },
2256
+ role: {
2257
+ type: String,
2258
+ default: "menu"
2259
+ },
2260
+ buttonProps: {
2261
+ type: j(Object)
2262
+ },
2263
+ teleported: ne.teleported
2264
+ });
2265
+ te({
2266
+ command: {
2267
+ type: [Object, String, Number],
2268
+ default: () => ({})
2269
+ },
2270
+ disabled: Boolean,
2271
+ divided: Boolean,
2272
+ textValue: String,
2273
+ icon: {
2274
+ type: br
2275
+ }
2276
+ });
2277
+ te({
2278
+ onKeydown: { type: j(Function) }
2279
+ });
2280
+ Qs("Dropdown");
2281
+ const Ys = te({
2282
+ trigger: Ze.trigger,
2283
+ placement: It.placement,
2284
+ disabled: Ze.disabled,
2285
+ visible: ne.visible,
2286
+ transition: ne.transition,
2287
+ popperOptions: It.popperOptions,
2288
+ tabindex: It.tabindex,
2289
+ content: ne.content,
2290
+ popperStyle: ne.popperStyle,
2291
+ popperClass: ne.popperClass,
2292
+ enterable: {
2293
+ ...ne.enterable,
2294
+ default: !0
2295
+ },
2296
+ effect: {
2297
+ ...ne.effect,
2298
+ default: "light"
2299
+ },
2300
+ teleported: ne.teleported,
2301
+ title: String,
2302
+ width: {
2303
+ type: [String, Number],
2304
+ default: 150
2305
+ },
2306
+ offset: {
2307
+ type: Number,
2308
+ default: void 0
2309
+ },
2310
+ showAfter: {
2311
+ type: Number,
2312
+ default: 0
2313
+ },
2314
+ hideAfter: {
2315
+ type: Number,
2316
+ default: 200
2317
+ },
2318
+ autoClose: {
2319
+ type: Number,
2320
+ default: 0
2321
+ },
2322
+ showArrow: {
2323
+ type: Boolean,
2324
+ default: !0
2325
+ },
2326
+ persistent: {
2327
+ type: Boolean,
2328
+ default: !0
2329
+ },
2330
+ "onUpdate:visible": {
2331
+ type: Function
2332
+ }
2333
+ }), Xs = {
2334
+ "update:visible": (e) => jt(e),
2335
+ "before-enter": () => !0,
2336
+ "before-leave": () => !0,
2337
+ "after-enter": () => !0,
2338
+ "after-leave": () => !0
2339
+ }, ei = "onUpdate:visible", ti = U({
2340
+ name: "ElPopover"
2341
+ }), ni = /* @__PURE__ */ U({
2342
+ ...ti,
2343
+ props: Ys,
2344
+ emits: Xs,
2345
+ setup(e, { expose: t, emit: n }) {
2346
+ const o = e, r = C(() => o[ei]), a = Ve("popover"), s = N(), l = C(() => {
2347
+ var m;
2348
+ return (m = p(s)) == null ? void 0 : m.popperRef;
2349
+ }), i = C(() => [
2350
+ {
2351
+ width: hr(o.width)
2352
+ },
2353
+ o.popperStyle
2354
+ ]), u = C(() => [a.b(), o.popperClass, { [a.m("plain")]: !!o.content }]), v = C(() => o.transition === `${a.namespace.value}-fade-in-linear`), g = () => {
2355
+ var m;
2356
+ (m = s.value) == null || m.hide();
2357
+ }, y = () => {
2358
+ n("before-enter");
2359
+ }, h = () => {
2360
+ n("before-leave");
2361
+ }, d = () => {
2362
+ n("after-enter");
2363
+ }, c = () => {
2364
+ n("update:visible", !1), n("after-leave");
2365
+ };
2366
+ return t({
2367
+ popperRef: l,
2368
+ hide: g
2369
+ }), (m, f) => (ee(), ke(p(Hs), Fe({
2370
+ ref_key: "tooltipRef",
2371
+ ref: s
2372
+ }, m.$attrs, {
2373
+ trigger: m.trigger,
2374
+ placement: m.placement,
2375
+ disabled: m.disabled,
2376
+ visible: m.visible,
2377
+ transition: m.transition,
2378
+ "popper-options": m.popperOptions,
2379
+ tabindex: m.tabindex,
2380
+ content: m.content,
2381
+ offset: m.offset,
2382
+ "show-after": m.showAfter,
2383
+ "hide-after": m.hideAfter,
2384
+ "auto-close": m.autoClose,
2385
+ "show-arrow": m.showArrow,
2386
+ "aria-label": m.title,
2387
+ effect: m.effect,
2388
+ enterable: m.enterable,
2389
+ "popper-class": p(u),
2390
+ "popper-style": p(i),
2391
+ teleported: m.teleported,
2392
+ persistent: m.persistent,
2393
+ "gpu-acceleration": p(v),
2394
+ "onUpdate:visible": p(r),
2395
+ onBeforeShow: y,
2396
+ onBeforeHide: h,
2397
+ onShow: d,
2398
+ onHide: c
2399
+ }), {
2400
+ content: J(() => [
2401
+ m.title ? (ee(), xe("div", {
2402
+ key: 0,
2403
+ class: dt(p(a).e("title")),
2404
+ role: "title"
2405
+ }, At(m.title), 3)) : Ae("v-if", !0),
2406
+ Q(m.$slots, "default", {}, () => [
2407
+ Ho(At(m.content), 1)
2408
+ ])
2409
+ ]),
2410
+ default: J(() => [
2411
+ m.$slots.reference ? Q(m.$slots, "reference", { key: 0 }) : Ae("v-if", !0)
2412
+ ]),
2413
+ _: 3
2414
+ }, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]));
2415
+ }
2416
+ });
2417
+ var oi = /* @__PURE__ */ ue(ni, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);
2418
+ const Mn = (e, t) => {
2419
+ const n = t.arg || t.value, o = n == null ? void 0 : n.popperRef;
2420
+ o && (o.triggerRef = e);
2421
+ };
2422
+ var ri = {
2423
+ mounted(e, t) {
2424
+ Mn(e, t);
2425
+ },
2426
+ updated(e, t) {
2427
+ Mn(e, t);
2428
+ }
2429
+ };
2430
+ const ai = "popover", si = wr(ri, ai), ii = Dt(oi, {
2431
+ directive: si
2432
+ });
2433
+ var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2434
+ function li(e) {
15
2435
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
16
2436
  }
17
- function ze(e) {
18
- var l = typeof e;
19
- return e != null && (l == "object" || l == "function");
2437
+ function ui(e) {
2438
+ var t = typeof e;
2439
+ return e != null && (t == "object" || t == "function");
20
2440
  }
21
- var ye = ze, Ue = typeof Q == "object" && Q && Q.Object === Object && Q, qe = Ue, Xe = qe, Je = typeof self == "object" && self && self.Object === Object && self, Ke = Xe || Je || Function("return this")(), ge = Ke, Qe = ge, Ye = function() {
22
- return Qe.Date.now();
23
- }, Ze = Ye, _e = /\s/;
24
- function et(e) {
25
- for (var l = e.length; l-- && _e.test(e.charAt(l)); )
2441
+ var Eo = ui, ci = typeof at == "object" && at && at.Object === Object && at, pi = ci, fi = pi, di = typeof self == "object" && self && self.Object === Object && self, vi = fi || di || Function("return this")(), Oo = vi, mi = Oo, gi = function() {
2442
+ return mi.Date.now();
2443
+ }, hi = gi, yi = /\s/;
2444
+ function bi(e) {
2445
+ for (var t = e.length; t-- && yi.test(e.charAt(t)); )
26
2446
  ;
27
- return l;
2447
+ return t;
28
2448
  }
29
- var tt = et, rt = tt, at = /^\s+/;
30
- function lt(e) {
31
- return e && e.slice(0, rt(e) + 1).replace(at, "");
2449
+ var wi = bi, Ei = wi, Oi = /^\s+/;
2450
+ function Ti(e) {
2451
+ return e && e.slice(0, Ei(e) + 1).replace(Oi, "");
32
2452
  }
33
- var nt = lt, ot = ge, it = ot.Symbol, we = it, fe = we, Se = Object.prototype, st = Se.hasOwnProperty, ut = Se.toString, H = fe ? fe.toStringTag : void 0;
34
- function dt(e) {
35
- var l = st.call(e, H), f = e[H];
2453
+ var Ci = Ti, Si = Oo, Ii = Si.Symbol, To = Ii, Vn = To, Co = Object.prototype, Pi = Co.hasOwnProperty, ki = Co.toString, He = Vn ? Vn.toStringTag : void 0;
2454
+ function Ai(e) {
2455
+ var t = Pi.call(e, He), n = e[He];
36
2456
  try {
37
- e[H] = void 0;
38
- var u = !0;
2457
+ e[He] = void 0;
2458
+ var o = !0;
39
2459
  } catch {
40
2460
  }
41
- var y = ut.call(e);
42
- return u && (l ? e[H] = f : delete e[H]), y;
2461
+ var r = ki.call(e);
2462
+ return o && (t ? e[He] = n : delete e[He]), r;
43
2463
  }
44
- var ct = dt, ft = Object.prototype, vt = ft.toString;
45
- function pt(e) {
46
- return vt.call(e);
2464
+ var Ri = Ai, $i = Object.prototype, _i = $i.toString;
2465
+ function Ni(e) {
2466
+ return _i.call(e);
47
2467
  }
48
- var ht = pt, ve = we, mt = ct, bt = ht, yt = "[object Null]", gt = "[object Undefined]", pe = ve ? ve.toStringTag : void 0;
49
- function wt(e) {
50
- return e == null ? e === void 0 ? gt : yt : pe && pe in Object(e) ? mt(e) : bt(e);
2468
+ var xi = Ni, Wn = To, Fi = Ri, Li = xi, ji = "[object Null]", Bi = "[object Undefined]", Hn = Wn ? Wn.toStringTag : void 0;
2469
+ function Di(e) {
2470
+ return e == null ? e === void 0 ? Bi : ji : Hn && Hn in Object(e) ? Fi(e) : Li(e);
51
2471
  }
52
- var St = wt;
53
- function kt(e) {
2472
+ var Mi = Di;
2473
+ function Vi(e) {
54
2474
  return e != null && typeof e == "object";
55
2475
  }
56
- var Tt = kt, Ct = St, $t = Tt, Ot = "[object Symbol]";
57
- function jt(e) {
58
- return typeof e == "symbol" || $t(e) && Ct(e) == Ot;
2476
+ var Wi = Vi, Hi = Mi, Ui = Wi, Ki = "[object Symbol]";
2477
+ function zi(e) {
2478
+ return typeof e == "symbol" || Ui(e) && Hi(e) == Ki;
59
2479
  }
60
- var Vt = jt, Dt = nt, he = ye, xt = Vt, me = NaN, Lt = /^[-+]0x[0-9a-f]+$/i, Pt = /^0b[01]+$/i, It = /^0o[0-7]+$/i, Nt = parseInt;
61
- function Rt(e) {
2480
+ var qi = zi, Gi = Ci, Un = Eo, Ji = qi, Kn = NaN, Zi = /^[-+]0x[0-9a-f]+$/i, Qi = /^0b[01]+$/i, Yi = /^0o[0-7]+$/i, Xi = parseInt;
2481
+ function el(e) {
62
2482
  if (typeof e == "number")
63
2483
  return e;
64
- if (xt(e))
65
- return me;
66
- if (he(e)) {
67
- var l = typeof e.valueOf == "function" ? e.valueOf() : e;
68
- e = he(l) ? l + "" : l;
2484
+ if (Ji(e))
2485
+ return Kn;
2486
+ if (Un(e)) {
2487
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
2488
+ e = Un(t) ? t + "" : t;
69
2489
  }
70
2490
  if (typeof e != "string")
71
2491
  return e === 0 ? e : +e;
72
- e = Dt(e);
73
- var f = Pt.test(e);
74
- return f || It.test(e) ? Nt(e.slice(2), f ? 2 : 8) : Lt.test(e) ? me : +e;
2492
+ e = Gi(e);
2493
+ var n = Qi.test(e);
2494
+ return n || Yi.test(e) ? Xi(e.slice(2), n ? 2 : 8) : Zi.test(e) ? Kn : +e;
75
2495
  }
76
- var Mt = Rt, Et = ye, ie = Ze, be = Mt, Wt = "Expected a function", Bt = Math.max, Ft = Math.min;
77
- function At(e, l, f) {
78
- var u, y, T, h, v, p, j = 0, m = !1, V = !1, $ = !0;
2496
+ var tl = el, nl = Eo, Pt = hi, zn = tl, ol = "Expected a function", rl = Math.max, al = Math.min;
2497
+ function sl(e, t, n) {
2498
+ var o, r, a, s, l, i, u = 0, v = !1, g = !1, y = !0;
79
2499
  if (typeof e != "function")
80
- throw new TypeError(Wt);
81
- l = be(l) || 0, Et(f) && (m = !!f.leading, V = "maxWait" in f, T = V ? Bt(be(f.maxWait) || 0, l) : T, $ = "trailing" in f ? !!f.trailing : $);
82
- function C(d) {
83
- var O = u, I = y;
84
- return u = y = void 0, j = d, h = e.apply(I, O), h;
2500
+ throw new TypeError(ol);
2501
+ t = zn(t) || 0, nl(n) && (v = !!n.leading, g = "maxWait" in n, a = g ? rl(zn(n.maxWait) || 0, t) : a, y = "trailing" in n ? !!n.trailing : y);
2502
+ function h(I) {
2503
+ var E = o, k = r;
2504
+ return o = r = void 0, u = I, s = e.apply(k, E), s;
85
2505
  }
86
- function k(d) {
87
- return j = d, v = setTimeout(x, l), m ? C(d) : h;
2506
+ function d(I) {
2507
+ return u = I, l = setTimeout(f, t), v ? h(I) : s;
88
2508
  }
89
- function s(d) {
90
- var O = d - p, I = d - j, B = l - O;
91
- return V ? Ft(B, T - I) : B;
2509
+ function c(I) {
2510
+ var E = I - i, k = I - u, L = t - E;
2511
+ return g ? al(L, a - k) : L;
92
2512
  }
93
- function N(d) {
94
- var O = d - p, I = d - j;
95
- return p === void 0 || O >= l || O < 0 || V && I >= T;
2513
+ function m(I) {
2514
+ var E = I - i, k = I - u;
2515
+ return i === void 0 || E >= t || E < 0 || g && k >= a;
96
2516
  }
97
- function x() {
98
- var d = ie();
99
- if (N(d))
100
- return R(d);
101
- v = setTimeout(x, s(d));
2517
+ function f() {
2518
+ var I = Pt();
2519
+ if (m(I))
2520
+ return w(I);
2521
+ l = setTimeout(f, c(I));
102
2522
  }
103
- function R(d) {
104
- return v = void 0, $ && u ? C(d) : (u = y = void 0, h);
2523
+ function w(I) {
2524
+ return l = void 0, y && o ? h(I) : (o = r = void 0, s);
105
2525
  }
106
- function g() {
107
- v !== void 0 && clearTimeout(v), j = 0, u = p = y = v = void 0;
2526
+ function S() {
2527
+ l !== void 0 && clearTimeout(l), u = 0, o = i = r = l = void 0;
108
2528
  }
109
- function L() {
110
- return v === void 0 ? h : R(ie());
2529
+ function b() {
2530
+ return l === void 0 ? s : w(Pt());
111
2531
  }
112
2532
  function P() {
113
- var d = ie(), O = N(d);
114
- if (u = arguments, y = this, p = d, O) {
115
- if (v === void 0)
116
- return k(p);
117
- if (V)
118
- return clearTimeout(v), v = setTimeout(x, l), C(p);
2533
+ var I = Pt(), E = m(I);
2534
+ if (o = arguments, r = this, i = I, E) {
2535
+ if (l === void 0)
2536
+ return d(i);
2537
+ if (g)
2538
+ return clearTimeout(l), l = setTimeout(f, t), h(i);
119
2539
  }
120
- return v === void 0 && (v = setTimeout(x, l)), h;
2540
+ return l === void 0 && (l = setTimeout(f, t)), s;
121
2541
  }
122
- return P.cancel = g, P.flush = L, P;
2542
+ return P.cancel = S, P.flush = b, P;
123
2543
  }
124
- var Gt = At;
125
- const Ht = /* @__PURE__ */ He(Gt), zt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), Y = (e) => typeof e == "string" && zt(e) ? e : e + "px", Ut = (e, l, f, u, y, T) => {
126
- const h = D(null), v = D(null), p = Me(), j = D(), m = D(!1), V = D(""), $ = D(""), C = w(() => !!e.mode), k = w(() => ({ label: "name", children: "children", pathName: "pathName", disabled: "disabled", ...u.props ?? {} })), s = w({
2544
+ var il = sl;
2545
+ const ll = /* @__PURE__ */ li(il), ul = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), st = (e) => typeof e == "string" && ul(e) ? e : e + "px", cl = (e, t, n, o, r, a) => {
2546
+ const s = N(null), l = N(null), i = Jo(), u = N(), v = N(!1), g = N(""), y = N(""), h = C(() => !!e.mode), d = C(() => ({ label: "name", children: "children", pathName: "pathName", disabled: "disabled", ...o.props ?? {} })), c = C({
127
2547
  get: () => e.modelValue ? e.modelValue : void 0,
128
- set: (t) => {
129
- l("update:modelValue", t);
2548
+ set: (T) => {
2549
+ t("update:modelValue", T);
130
2550
  }
131
- }), N = w({
2551
+ }), m = C({
132
2552
  get: () => e.keyword || "",
133
- set: (t) => {
134
- l("update:keyword", t);
2553
+ set: (T) => {
2554
+ t("update:keyword", T);
135
2555
  }
136
- }), x = w({
2556
+ }), f = C({
137
2557
  get: () => e.path,
138
- set: (t) => {
139
- l("update:path", t);
2558
+ set: (T) => {
2559
+ t("update:path", T);
140
2560
  }
141
- }), R = (t, n, i = []) => {
142
- for (let o = 0; o < t.length; o++) {
143
- const S = t[o], r = S[k.value.label];
144
- if (i.push(r), r === n) return i.join("/");
145
- if (S.children && S.children.length > 0) {
146
- const c = R(S[k.value.children], n, i);
147
- if (c) return c;
2561
+ }), w = (T, R, $ = []) => {
2562
+ for (let _ = 0; _ < T.length; _++) {
2563
+ const H = T[_], A = H[d.value.label];
2564
+ if ($.push(A), A === R) return $.join("/");
2565
+ if (H.children && H.children.length > 0) {
2566
+ const V = w(H[d.value.children], R, $);
2567
+ if (V) return V;
148
2568
  }
149
- i.pop();
2569
+ $.pop();
150
2570
  }
151
2571
  return null;
152
- }, g = w(() => {
153
- var i;
154
- let t = [], n = [];
155
- return y.value ? n = ((i = p.value) == null ? void 0 : i.lazyData) || [] : e.data && (n = Fe(e.data, k.value.children) || []), n.length && (t = n.map((o) => ({
156
- ...o,
157
- [k.value.pathName]: o[k.value.pathName] ? o[k.value.pathName] : y.value ? o[k.value.label] : R(e.data, o[k.value.label])
158
- }))), t;
159
- }), L = D(!1), P = () => {
160
- var t, n;
161
- if (e.parentLinkChildrenStrictly || !y.value) return !0;
162
- if (g.value.length === 0) return !1;
163
- if (C.value) {
164
- if (!s.value || !((t = s.value) != null && t.length)) return !0;
165
- const i = g.value.map((o) => o[f.value]);
166
- return (n = s.value) == null ? void 0 : n.every((o) => i.includes(o));
2572
+ }, S = C(() => {
2573
+ var $;
2574
+ let T = [], R = [];
2575
+ return r.value ? R = (($ = i.value) == null ? void 0 : $.lazyData) || [] : e.data && (R = Xo(e.data, d.value.children) || []), R.length && (T = R.map((_) => ({
2576
+ ..._,
2577
+ [d.value.pathName]: _[d.value.pathName] ? _[d.value.pathName] : r.value ? _[d.value.label] : w(e.data, _[d.value.label])
2578
+ }))), T;
2579
+ }), b = N(!1), P = () => {
2580
+ var T, R;
2581
+ if (e.parentLinkChildrenStrictly || !r.value) return !0;
2582
+ if (S.value.length === 0) return !1;
2583
+ if (h.value) {
2584
+ if (!c.value || !((T = c.value) != null && T.length)) return !0;
2585
+ const $ = S.value.map((_) => _[n.value]);
2586
+ return (R = c.value) == null ? void 0 : R.every((_) => $.includes(_));
167
2587
  } else
168
- return s.value ? !!g.value.find((o) => o[f.value] === s.value) : !0;
2588
+ return c.value ? !!S.value.find((_) => _[n.value] === c.value) : !0;
169
2589
  };
170
- se(
171
- () => [g.value, s.value],
2590
+ W(
2591
+ () => [S.value, c.value],
172
2592
  () => {
173
- L.value = P();
2593
+ b.value = P();
174
2594
  },
175
2595
  { immediate: !0 }
176
2596
  );
177
- const d = w(() => ({
178
- height: e.poppverHeight ? Y(e.poppverHeight) : void 0,
179
- maxHeight: e.poppverMaxHeight ? Y(e.poppverMaxHeight) : void 0
180
- })), O = () => {
181
- l("visible-change", !0);
182
- }, I = () => {
183
- var t;
184
- N.value = "", (t = p.value) == null || t.searchClear(), l("visible-change", !1);
185
- }, B = Ht(() => {
186
- e.disabled || e.isView || (m.value ? m.value = !1 : (document.body.click(), m.value = !0));
187
- }, 200), A = async () => {
188
- var n, i;
189
- await J();
190
- let t = [];
191
- C.value || (s.value || s.value === 0) && (y.value && await ((n = p.value) == null ? void 0 : n.lazyDataNextTick(s.value)), t = g.value.filter((o) => o[f.value] === s.value)), C.value && (s.value || s.value.length) && (y.value && await ((i = p.value) == null ? void 0 : i.lazyDataNextTick(s.value)), t = g.value.filter((o) => s.value.includes(o[f.value]))), l("change", s.value, t);
192
- }, E = D(!1), Z = async () => {
193
- s.value = C.value ? [] : "", A(), E.value = !0;
194
- }, _ = async (t) => {
195
- var n, i, o, S, r, c;
196
- if (!E.value && C.value) {
197
- if (!y.value && !T.value) {
198
- let b = (i = (n = p.value) == null ? void 0 : n.treeRef) == null ? void 0 : i.getNode(t);
199
- b.checked = !1, (o = p.value) == null || o.childLinkParent(b, b.checked), (S = p.value) == null || S.parentLinkChild(b, b.checked);
2597
+ const I = C(() => ({
2598
+ height: e.poppverHeight ? st(e.poppverHeight) : void 0,
2599
+ maxHeight: e.poppverMaxHeight ? st(e.poppverMaxHeight) : void 0
2600
+ })), E = () => {
2601
+ t("visible-change", !0);
2602
+ }, k = () => {
2603
+ var T;
2604
+ m.value = "", (T = i.value) == null || T.searchClear(), t("visible-change", !1);
2605
+ }, L = ll(() => {
2606
+ e.disabled || e.isView || (v.value ? v.value = !1 : (document.body.click(), v.value = !0));
2607
+ }, 200), x = async () => {
2608
+ var R, $;
2609
+ await Ne();
2610
+ let T = [];
2611
+ h.value || (c.value || c.value === 0) && (r.value && await ((R = i.value) == null ? void 0 : R.lazyDataNextTick(c.value)), T = S.value.filter((_) => _[n.value] === c.value)), h.value && (c.value || c.value.length) && (r.value && await (($ = i.value) == null ? void 0 : $.lazyDataNextTick(c.value)), T = S.value.filter((_) => c.value.includes(_[n.value]))), t("change", c.value, T);
2612
+ }, F = N(!1), B = async () => {
2613
+ c.value = h.value ? [] : "", x(), F.value = !0;
2614
+ }, D = async (T) => {
2615
+ var R, $, _, H, A, V;
2616
+ if (!F.value && h.value) {
2617
+ if (!r.value && !a.value) {
2618
+ let z = ($ = (R = i.value) == null ? void 0 : R.treeRef) == null ? void 0 : $.getNode(T);
2619
+ z.checked = !1, (_ = i.value) == null || _.childLinkParent(z, z.checked), (H = i.value) == null || H.parentLinkChild(z, z.checked);
200
2620
  }
201
- if (y.value && e.parentLinkChildrenStrictly) {
202
- let b = g.value.find((W) => W[f.value] === t);
203
- if (b && ((r = p.value) != null && r.getGrandChildrenFn)) {
204
- const W = await p.value.getGrandChildrenFn(b);
205
- if (W && W.length) {
206
- const ke = W.map((le) => le[f.value]);
207
- s.value && ((c = s.value) != null && c.length) && (s.value = s.value.filter((le) => !ke.includes(le)));
2621
+ if (r.value && e.parentLinkChildrenStrictly) {
2622
+ let z = S.value.find((se) => se[n.value] === T);
2623
+ if (z && ((A = i.value) != null && A.getGrandChildrenFn)) {
2624
+ const se = await i.value.getGrandChildrenFn(z);
2625
+ if (se && se.length) {
2626
+ const ht = se.map((Re) => Re[n.value]);
2627
+ c.value && ((V = c.value) != null && V.length) && (c.value = c.value.filter((Re) => !ht.includes(Re)));
208
2628
  }
209
2629
  }
210
2630
  }
211
- A();
2631
+ x();
212
2632
  }
213
- }, ee = (t) => {
2633
+ }, G = (T) => {
214
2634
  if (!e.filter) return;
215
- const n = t && (t == null ? void 0 : t.trim());
216
- N.value = n, m.value || (m.value = !0);
217
- }, te = () => {
218
- var t, n;
219
- C.value || (m.value = !1, e.filter && ((n = (t = v.value) == null ? void 0 : t.$select) == null || n.focus()));
220
- }, z = () => h != null && h.value && h.value.offsetWidth ? h.value.offsetWidth + "px" : "100%", U = () => {
221
- J(() => {
222
- V.value = e.width ? Y(e.width) : z(), $.value = e.poppverWidth ? Y(e.poppverWidth) : z();
2635
+ const R = T && (T == null ? void 0 : T.trim());
2636
+ m.value = R, v.value || (v.value = !0);
2637
+ }, K = () => {
2638
+ var T, R;
2639
+ h.value || (v.value = !1, e.filter && ((R = (T = l.value) == null ? void 0 : T.$select) == null || R.focus()));
2640
+ }, M = () => s != null && s.value && s.value.offsetWidth ? s.value.offsetWidth + "px" : "100%", O = () => {
2641
+ Ne(() => {
2642
+ g.value = e.width ? st(e.width) : M(), y.value = e.poppverWidth ? st(e.poppverWidth) : M();
223
2643
  });
224
- }, q = (t) => {
225
- var n;
226
- E.value && (E.value = !1), (n = v.value) == null || n.toChangeMaxCount(!0), l("focus", t);
227
- }, F = (t) => {
228
- l("blur", t);
2644
+ }, q = (T) => {
2645
+ var R;
2646
+ F.value && (F.value = !1), (R = l.value) == null || R.toChangeMaxCount(!0), t("focus", T);
2647
+ }, Z = (T) => {
2648
+ t("blur", T);
229
2649
  };
230
- se(
231
- () => m.value,
232
- (t) => {
233
- var i, o;
234
- const n = (i = h.value) == null ? void 0 : i.querySelector(".ant-select-arrow>.das-icon");
235
- t ? n.style.transform = "rotate(180deg)" : n.style.transform = "", (o = v.value) == null || o.toChangeMaxCount(t), J(() => {
236
- var S, r, c;
237
- (c = (r = (S = a(j)) == null ? void 0 : S.popperRef) == null ? void 0 : r.popperInstanceRef) == null || c.update();
2650
+ W(
2651
+ () => v.value,
2652
+ (T) => {
2653
+ var $, _;
2654
+ const R = ($ = s.value) == null ? void 0 : $.querySelector(".ant-select-arrow>.das-icon");
2655
+ T ? R.style.transform = "rotate(180deg)" : R.style.transform = "", (_ = l.value) == null || _.toChangeMaxCount(T), Ne(() => {
2656
+ var H, A, V;
2657
+ (V = (A = (H = p(u)) == null ? void 0 : H.popperRef) == null ? void 0 : A.popperInstanceRef) == null || V.update();
238
2658
  });
239
2659
  }
240
2660
  );
241
- const X = D(null), re = () => new Promise((t) => {
242
- const n = () => {
243
- var o;
244
- const i = (o = h.value) == null ? void 0 : o.querySelector(".ant-select-selector");
245
- if (i) return t(i);
246
- setTimeout(() => n(), 50);
2661
+ const ve = N(null), Te = () => new Promise((T) => {
2662
+ const R = () => {
2663
+ var _;
2664
+ const $ = (_ = s.value) == null ? void 0 : _.querySelector(".ant-select-selector");
2665
+ if ($) return T($);
2666
+ setTimeout(() => R(), 50);
247
2667
  };
248
- n();
249
- }), ae = (t) => {
250
- s.value = t;
2668
+ R();
2669
+ }), me = (T) => {
2670
+ c.value = T;
251
2671
  };
252
- return Te(async () => {
253
- U();
254
- const t = await re();
255
- t && (X.value = Be((n) => {
256
- J(() => {
257
- var i, o, S;
258
- (S = (o = (i = a(j)) == null ? void 0 : i.popperRef) == null ? void 0 : o.popperInstanceRef) == null || S.update();
2672
+ return be(async () => {
2673
+ O();
2674
+ const T = await Te();
2675
+ T && (ve.value = Yo((R) => {
2676
+ Ne(() => {
2677
+ var $, _, H;
2678
+ (H = (_ = ($ = p(u)) == null ? void 0 : $.popperRef) == null ? void 0 : _.popperInstanceRef) == null || H.update();
259
2679
  });
260
- }, t));
261
- }), Ce(U), $e(() => {
262
- var t;
263
- (t = X.value) == null || t.disconnect();
2680
+ }, T));
2681
+ }), Uo(O), de(() => {
2682
+ var T;
2683
+ (T = ve.value) == null || T.disconnect();
264
2684
  }), {
265
- innerValue: s,
266
- popoverRef: j,
267
- dasTreeSelectRef: h,
268
- $tree: p,
269
- $select: v,
270
- innerKeyword: N,
271
- realWidth: V,
272
- realPoppverWidth: $,
273
- poppverContentStyle: d,
274
- treePath: x,
275
- treeProps: k,
276
- selectOptions: g,
277
- poppverShow: O,
278
- poppverHide: I,
279
- treeChange: A,
280
- nodeChange: te,
281
- deselect: _,
282
- selectSearch: ee,
283
- selectClear: Z,
284
- popoverVisible: m,
285
- selectMouseDown: B,
286
- resetDefaultVal: ae,
2685
+ innerValue: c,
2686
+ popoverRef: u,
2687
+ dasTreeSelectRef: s,
2688
+ $tree: i,
2689
+ $select: l,
2690
+ innerKeyword: m,
2691
+ realWidth: g,
2692
+ realPoppverWidth: y,
2693
+ poppverContentStyle: I,
2694
+ treePath: f,
2695
+ treeProps: d,
2696
+ selectOptions: S,
2697
+ poppverShow: E,
2698
+ poppverHide: k,
2699
+ treeChange: x,
2700
+ nodeChange: K,
2701
+ deselect: D,
2702
+ selectSearch: G,
2703
+ selectClear: B,
2704
+ popoverVisible: v,
2705
+ selectMouseDown: L,
2706
+ resetDefaultVal: me,
287
2707
  focus: q,
288
- blur: F,
2708
+ blur: Z,
289
2709
  checkselectOptionsData: P,
290
- textShow: L,
291
- showCheckbox: C
2710
+ textShow: b,
2711
+ showCheckbox: h
292
2712
  };
293
- }, qt = {
2713
+ }, pl = {
294
2714
  name: "DasTreeSelect",
295
2715
  inheritAttrs: !1
296
- }, Xt = /* @__PURE__ */ Oe({
297
- ...qt,
2716
+ }, fl = /* @__PURE__ */ U({
2717
+ ...pl,
298
2718
  props: {
299
2719
  data: { default: () => [] },
300
2720
  mode: { default: void 0 },
@@ -325,187 +2745,187 @@ const Ht = /* @__PURE__ */ He(Gt), zt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
325
2745
  childLinkParentStrictly: { type: Boolean }
326
2746
  },
327
2747
  emits: ["update:modelValue", "update:path", "update:keyword", "change", "focus", "blur", "visible-change"],
328
- setup(e, { expose: l, emit: f }) {
329
- const u = e, y = f, T = je(), h = w(() => T.nodeKey ?? T["node-key"] ?? "id"), v = w(() => u.load ?? void 0), p = w(() => u.search ?? void 0), j = w(() => u.getGrandChildren ?? void 0), m = w(() => T.lazy ?? !!v.value), V = w(() => m.value ? !1 : u.defaultExpandAll), $ = w(() => u.selectAttrs ? u.selectAttrs : {}), C = w(() => !!(u.disabled || u.isView)), k = w(() => u.parentLinkChildrenStrictly || u.childLinkParentStrictly ? !0 : !!(u.checkStrictly ?? m.value)), s = (r) => {
330
- r.key === "Enter" && r.stopPropagation();
2748
+ setup(e, { expose: t, emit: n }) {
2749
+ const o = e, r = n, a = Ko(), s = C(() => a.nodeKey ?? a["node-key"] ?? "id"), l = C(() => o.load ?? void 0), i = C(() => o.search ?? void 0), u = C(() => o.getGrandChildren ?? void 0), v = C(() => a.lazy ?? !!l.value), g = C(() => v.value ? !1 : o.defaultExpandAll), y = C(() => o.selectAttrs ? o.selectAttrs : {}), h = C(() => !!(o.disabled || o.isView)), d = C(() => o.parentLinkChildrenStrictly || o.childLinkParentStrictly ? !0 : !!(o.checkStrictly ?? v.value)), c = (A) => {
2750
+ A.key === "Enter" && A.stopPropagation();
331
2751
  }, {
332
- dasTreeSelectRef: N,
333
- $tree: x,
334
- $select: R,
335
- innerValue: g,
336
- innerKeyword: L,
2752
+ dasTreeSelectRef: m,
2753
+ $tree: f,
2754
+ $select: w,
2755
+ innerValue: S,
2756
+ innerKeyword: b,
337
2757
  realWidth: P,
338
- poppverContentStyle: d,
339
- realPoppverWidth: O,
340
- treeChange: I,
341
- nodeChange: B,
342
- treePath: A,
343
- treeProps: E,
344
- selectOptions: Z,
345
- popoverRef: _,
346
- deselect: ee,
347
- poppverShow: te,
348
- poppverHide: z,
349
- selectSearch: U,
2758
+ poppverContentStyle: I,
2759
+ realPoppverWidth: E,
2760
+ treeChange: k,
2761
+ nodeChange: L,
2762
+ treePath: x,
2763
+ treeProps: F,
2764
+ selectOptions: B,
2765
+ popoverRef: D,
2766
+ deselect: G,
2767
+ poppverShow: K,
2768
+ poppverHide: M,
2769
+ selectSearch: O,
350
2770
  selectMouseDown: q,
351
- popoverVisible: F,
352
- resetDefaultVal: X,
353
- selectClear: re,
354
- focus: ae,
355
- blur: t,
356
- textShow: n,
357
- checkselectOptionsData: i,
358
- showCheckbox: o
359
- } = Ut(u, y, h, T, m, k), S = w(() => $.value.isTooltip ? $.value.isTooltip && i() : $.value["is-tooltip"] ? $.value["is-tooltip"] && i() : i());
360
- return l({
2771
+ popoverVisible: Z,
2772
+ resetDefaultVal: ve,
2773
+ selectClear: Te,
2774
+ focus: me,
2775
+ blur: T,
2776
+ textShow: R,
2777
+ checkselectOptionsData: $,
2778
+ showCheckbox: _
2779
+ } = cl(o, r, s, a, v, d), H = C(() => y.value.isTooltip ? y.value.isTooltip && $() : y.value["is-tooltip"] ? y.value["is-tooltip"] && $() : $());
2780
+ return t({
361
2781
  /** das-select */
362
- $select: R,
2782
+ $select: w,
363
2783
  /** das-tree */
364
- $tree: x,
2784
+ $tree: f,
365
2785
  /** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
366
- resetDefaultVal: X
367
- }), (r, c) => Ve((De(), xe("div", {
2786
+ resetDefaultVal: ve
2787
+ }), (A, V) => xt((ee(), xe("div", {
368
2788
  ref_key: "dasTreeSelectRef",
369
- ref: N,
370
- class: Le({ "das-ui-tree-select": !0, "is-lazy": m.value, "text-hide": !a(n) }),
371
- style: ue({ width: a(P) })
2789
+ ref: m,
2790
+ class: dt({ "das-ui-tree-select": !0, "is-lazy": v.value, "text-hide": !p(R) }),
2791
+ style: kt({ width: p(P) })
372
2792
  }, [
373
- K(a(Ne), {
2793
+ he(p(ii), {
374
2794
  ref_key: "popoverRef",
375
- ref: _,
376
- visible: a(F),
2795
+ ref: D,
2796
+ visible: p(Z),
377
2797
  "popper-class": "das-tree-select-popper",
378
2798
  placement: "bottom-start",
379
2799
  "show-arrow": !1,
380
- width: a(O),
381
- disabled: C.value,
2800
+ width: p(E),
2801
+ disabled: h.value,
382
2802
  "fallback-placements": ["bottom", "top", "right", "left"],
383
- onShow: a(te),
384
- onHide: a(z)
2803
+ onShow: p(K),
2804
+ onHide: p(M)
385
2805
  }, {
386
- reference: M(() => [
387
- de("div", {
2806
+ reference: J(() => [
2807
+ un("div", {
388
2808
  class: "das-tree-select__select-content",
389
- onMousedown: c[1] || (c[1] = ne(
2809
+ onMousedown: V[1] || (V[1] = bt(
390
2810
  //@ts-ignore
391
- (...b) => a(q) && a(q)(...b),
2811
+ (...z) => p(q) && p(q)(...z),
392
2812
  ["stop"]
393
2813
  ))
394
2814
  }, [
395
- K(a(Re), ce({
2815
+ he(p(Go), Fe({
396
2816
  ref_key: "$select",
397
- ref: R,
398
- class: { "is-active": a(F) },
2817
+ ref: w,
2818
+ class: { "is-active": p(Z) },
399
2819
  dropdownClassName: "das-tree-select-dropdown",
400
- modelValue: a(g),
401
- "onUpdate:modelValue": c[0] || (c[0] = (b) => oe(g) ? g.value = b : null)
402
- }, $.value, {
403
- searchValue: a(L),
404
- options: a(Z),
405
- disabled: r.disabled,
406
- isView: r.isView,
407
- size: r.size,
408
- mode: r.mode,
409
- borderType: r.borderType,
410
- placeholder: r.placeholder,
411
- "show-search": r.filter,
412
- filterOption: r.filter,
413
- width: a(P),
2820
+ modelValue: p(S),
2821
+ "onUpdate:modelValue": V[0] || (V[0] = (z) => wt(S) ? S.value = z : null)
2822
+ }, y.value, {
2823
+ searchValue: p(b),
2824
+ options: p(B),
2825
+ disabled: A.disabled,
2826
+ isView: A.isView,
2827
+ size: A.size,
2828
+ mode: A.mode,
2829
+ borderType: A.borderType,
2830
+ placeholder: A.placeholder,
2831
+ "show-search": A.filter,
2832
+ filterOption: A.filter,
2833
+ width: p(P),
414
2834
  fieldNames: {
415
- value: h.value,
416
- label: r.showFullPath ? a(E).pathName : a(E).label
2835
+ value: s.value,
2836
+ label: A.showFullPath ? p(F).pathName : p(F).label
417
2837
  },
418
- isTooltip: S.value,
419
- errorMode: r.errorMode,
420
- error: r.error,
421
- errorLabel: r.errorLabel,
2838
+ isTooltip: H.value,
2839
+ errorMode: A.errorMode,
2840
+ error: A.error,
2841
+ errorLabel: A.errorLabel,
422
2842
  autoClearSearchValue: !1,
423
2843
  isExterControlCount: "",
424
- onDeselect: a(ee),
425
- onSearch: a(U),
426
- onInputKeyDown: s,
427
- onFocus: a(ae),
428
- onBlur: a(t),
429
- onClear: a(re)
2844
+ onDeselect: p(G),
2845
+ onSearch: p(O),
2846
+ onInputKeyDown: c,
2847
+ onFocus: p(me),
2848
+ onBlur: p(T),
2849
+ onClear: p(Te)
430
2850
  }), {
431
- suffixIcon: M(() => [
432
- K(a(We), {
2851
+ suffixIcon: J(() => [
2852
+ he(p(Qo), {
433
2853
  size: "medium",
434
2854
  style: { transition: "transform 0.5s" },
435
- iconColor: a(F) ? "#5582F3" : "currentColor"
2855
+ iconColor: p(Z) ? "#5582F3" : "currentColor"
436
2856
  }, null, 8, ["iconColor"])
437
2857
  ]),
438
2858
  _: 1
439
2859
  }, 16, ["class", "modelValue", "searchValue", "options", "disabled", "isView", "size", "mode", "borderType", "placeholder", "show-search", "filterOption", "width", "fieldNames", "isTooltip", "errorMode", "error", "errorLabel", "onDeselect", "onSearch", "onFocus", "onBlur", "onClear"])
440
2860
  ], 32)
441
2861
  ]),
442
- default: M(() => [
443
- de("div", {
2862
+ default: J(() => [
2863
+ un("div", {
444
2864
  class: "das-tree-select__tree-content",
445
- style: ue(a(d)),
446
- onClick: c[4] || (c[4] = ne(() => {
2865
+ style: kt(p(I)),
2866
+ onClick: V[4] || (V[4] = bt(() => {
447
2867
  }, ["stop"])),
448
- onMousedown: c[5] || (c[5] = ne(() => {
2868
+ onMousedown: V[5] || (V[5] = bt(() => {
449
2869
  }, ["stop"]))
450
2870
  }, [
451
- K(a(Ee), ce({
2871
+ he(p(Zo), Fe({
452
2872
  ref_key: "$tree",
453
- ref: x
454
- }, a(T), {
455
- data: r.data,
456
- modelValue: a(g),
457
- "onUpdate:modelValue": c[2] || (c[2] = (b) => oe(g) ? g.value = b : null),
458
- "filter-value": a(L),
459
- "onUpdate:filterValue": c[3] || (c[3] = (b) => oe(L) ? L.value = b : null),
460
- "show-checkbox": a(o),
461
- "is-filter": r.filter,
2873
+ ref: f
2874
+ }, p(a), {
2875
+ data: A.data,
2876
+ modelValue: p(S),
2877
+ "onUpdate:modelValue": V[2] || (V[2] = (z) => wt(S) ? S.value = z : null),
2878
+ "filter-value": p(b),
2879
+ "onUpdate:filterValue": V[3] || (V[3] = (z) => wt(b) ? b.value = z : null),
2880
+ "show-checkbox": p(_),
2881
+ "is-filter": A.filter,
462
2882
  "show-filter-input": !1,
463
2883
  "filter-mode": "input",
464
- lazy: m.value,
465
- load: v.value,
466
- search: p.value,
467
- path: a(A),
468
- "default-expand-all": V.value,
469
- "check-strictly": m.value ? !0 : k.value,
470
- parentLinkChildrenStrictly: r.parentLinkChildrenStrictly,
471
- getGrandChildren: j.value,
472
- childLinkParentStrictly: r.childLinkParentStrictly,
473
- onChange: a(I),
474
- onNodeChange: a(B)
475
- }), Pe({
476
- default: M(({ node: b, data: W }) => [
477
- G(r.$slots, "default", {
478
- node: b,
479
- data: W
2884
+ lazy: v.value,
2885
+ load: l.value,
2886
+ search: i.value,
2887
+ path: p(x),
2888
+ "default-expand-all": g.value,
2889
+ "check-strictly": v.value ? !0 : d.value,
2890
+ parentLinkChildrenStrictly: A.parentLinkChildrenStrictly,
2891
+ getGrandChildren: u.value,
2892
+ childLinkParentStrictly: A.childLinkParentStrictly,
2893
+ onChange: p(k),
2894
+ onNodeChange: p(L)
2895
+ }), zo({
2896
+ default: J(({ node: z, data: se }) => [
2897
+ Q(A.$slots, "default", {
2898
+ node: z,
2899
+ data: se
480
2900
  })
481
2901
  ]),
482
2902
  _: 2
483
2903
  }, [
484
- r.$slots.prefix ? {
2904
+ A.$slots.prefix ? {
485
2905
  name: "prefix",
486
- fn: M(() => [
487
- G(r.$slots, "prefix")
2906
+ fn: J(() => [
2907
+ Q(A.$slots, "prefix")
488
2908
  ]),
489
2909
  key: "0"
490
2910
  } : void 0,
491
- r.$slots.suffix ? {
2911
+ A.$slots.suffix ? {
492
2912
  name: "suffix",
493
- fn: M(() => [
494
- G(r.$slots, "suffix")
2913
+ fn: J(() => [
2914
+ Q(A.$slots, "suffix")
495
2915
  ]),
496
2916
  key: "1"
497
2917
  } : void 0,
498
- r.$slots.prepend ? {
2918
+ A.$slots.prepend ? {
499
2919
  name: "prepend",
500
- fn: M(() => [
501
- G(r.$slots, "prepend")
2920
+ fn: J(() => [
2921
+ Q(A.$slots, "prepend")
502
2922
  ]),
503
2923
  key: "2"
504
2924
  } : void 0,
505
- r.$slots.append ? {
2925
+ A.$slots.append ? {
506
2926
  name: "append",
507
- fn: M(() => [
508
- G(r.$slots, "append")
2927
+ fn: J(() => [
2928
+ Q(A.$slots, "append")
509
2929
  ]),
510
2930
  key: "3"
511
2931
  } : void 0
@@ -515,21 +2935,21 @@ const Ht = /* @__PURE__ */ He(Gt), zt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
515
2935
  _: 3
516
2936
  }, 8, ["visible", "width", "disabled", "onShow", "onHide"])
517
2937
  ], 6)), [
518
- [a(Ae), {
2938
+ [p(er), {
519
2939
  fn: () => {
520
- F.value = !1;
2940
+ Z.value = !1;
521
2941
  }
522
2942
  }]
523
2943
  ]);
524
2944
  }
525
- }), Jt = {
2945
+ }), dl = {
526
2946
  "--das-ui-tree-select-keyword-input-active": "#5582F3",
527
2947
  "--das-ui-tree-select-search-no-data": "#999999"
528
2948
  };
529
- Ge(Jt);
530
- const or = Ie(Xt), ir = () => D(null), sr = { title: "tree-select 树选择" };
2949
+ tr(dl);
2950
+ const Il = qo(fl), Pl = () => N(null), kl = { title: "tree-select 树选择" };
531
2951
  export {
532
- or as DasTreeSelect,
533
- ir as DasTreeSelectRef,
534
- sr as default
2952
+ Il as DasTreeSelect,
2953
+ Pl as DasTreeSelectRef,
2954
+ kl as default
535
2955
  };