@das-fed/ui 6.4.0-hot.5 → 6.4.0-hot.6

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