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