@konnectio/core 4.0.59 → 4.0.60
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.
- package/dist/{ActionField-GHsNRSZm.js → ActionField-CVdLZg_F.js} +3 -3
- package/dist/ActionField-CVdLZg_F.js.br +0 -0
- package/dist/{AvailabilitySkeleton-CyvafyOT.js → AvailabilitySkeleton-D8hRAFp-.js} +22 -23
- package/dist/AvailabilitySkeleton-D8hRAFp-.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B3_PxvDx.js +8668 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B3_PxvDx.js.br +0 -0
- package/dist/{CheckoutWindow-BqJ6ZsZD.js → CheckoutWindow-DUl3c-Tr.js} +40 -40
- package/dist/CheckoutWindow-DUl3c-Tr.js.br +0 -0
- package/dist/{ErrorMessage-144-POu6.js → ErrorMessage-Dt3tVome.js} +3 -3
- package/dist/ErrorMessage-Dt3tVome.js.br +0 -0
- package/dist/{EventAvailabilityForm-CJff-76Z.js → EventAvailabilityForm-DqV-7Yhd.js} +5 -5
- package/dist/EventAvailabilityForm-DqV-7Yhd.js.br +0 -0
- package/dist/{Field-BrI8toPe.js → Field-Bir0Q2Cn.js} +3 -3
- package/dist/Field-Bir0Q2Cn.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bz5ezFs1.js} +148 -259
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bz5ezFs1.js.br +0 -0
- package/dist/TermsOfService-Bi-4Y-Eu.js +36 -0
- package/dist/TermsOfService-Bi-4Y-Eu.js.br +0 -0
- package/dist/{_-CHRCWC6p.js → _-BaPwdDXA.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-BUoCnNZd.js → _.vue_vue_type_style_index_0_lang-9DUPh09R.js} +4 -4
- package/dist/_.vue_vue_type_style_index_0_lang-9DUPh09R.js.br +0 -0
- package/dist/{_commonjsHelpers-CYyxJoRf.js → _commonjsHelpers-4acPj2Ir.js} +2 -2
- package/dist/{_sentry-release-injection-file-CkMeg-D2.js → _sentry-release-injection-file-CSY2pTJK.js} +3458 -3488
- package/dist/_sentry-release-injection-file-CSY2pTJK.js.br +0 -0
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +44 -43
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +29 -28
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +72 -71
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-DtBMjMxF.js → giftCard-DrbtM1MV.js} +4 -4
- package/dist/giftCard-DrbtM1MV.js.br +0 -0
- package/dist/hotel.js +23 -22
- package/dist/hotel.js.br +0 -0
- package/dist/masonry.plugin-CoSanVEe.js +10375 -0
- package/dist/masonry.plugin-CoSanVEe.js.br +0 -0
- package/dist/{mitt-Cbb-9RWx.js → mitt-Ciy52c7q.js} +92 -93
- package/dist/mitt-Ciy52c7q.js.br +0 -0
- package/dist/polyfill.js +568 -892
- package/dist/polyfill.js.br +0 -0
- package/dist/style-Bf1WJ5oD.js +2328 -0
- package/dist/style-Bf1WJ5oD.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +9 -9
- package/dist/ActionField-GHsNRSZm.js.br +0 -0
- package/dist/AvailabilitySkeleton-CyvafyOT.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js +0 -8658
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-ClSHEX_d.js.br +0 -0
- package/dist/CheckoutWindow-BqJ6ZsZD.js.br +0 -0
- package/dist/ErrorMessage-144-POu6.js.br +0 -0
- package/dist/EventAvailabilityForm-CJff-76Z.js.br +0 -0
- package/dist/Field-BrI8toPe.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BO7fGNh_.js.br +0 -0
- package/dist/TermsOfService-DLQtIpLt.js +0 -36
- package/dist/TermsOfService-DLQtIpLt.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BUoCnNZd.js.br +0 -0
- package/dist/_sentry-release-injection-file-CkMeg-D2.js.br +0 -0
- package/dist/giftCard-DtBMjMxF.js.br +0 -0
- package/dist/masonry.plugin-Ch8U9Epf.js +0 -12782
- package/dist/masonry.plugin-Ch8U9Epf.js.br +0 -0
- package/dist/mitt-Cbb-9RWx.js.br +0 -0
|
@@ -0,0 +1,2328 @@
|
|
|
1
|
+
import { d as xe, p as Dt, j as Ft, D as It, a as I, b as be, a5 as jt, I as ne, g as se, e as K, F as Wt, l as me, i as Ve, P as Oe, n as De, a0 as Vt, w as ge, f as ct, X as ht, V as Gt, W as qt, r as He, k as Yt, J as Xt, t as Ut } from "./_sentry-release-injection-file-CSY2pTJK.js";
|
|
2
|
+
(function() {
|
|
3
|
+
try {
|
|
4
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new Error().stack;
|
|
5
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6fde33aa-c703-462f-92fe-2b0d350e2ad4", e._sentryDebugIdIdentifier = "sentry-dbid-6fde33aa-c703-462f-92fe-2b0d350e2ad4");
|
|
6
|
+
} catch {
|
|
7
|
+
}
|
|
8
|
+
})();
|
|
9
|
+
const Kt = ["top", "right", "bottom", "left"], Ge = ["start", "end"], qe = /* @__PURE__ */ Kt.reduce((e, t) => e.concat(t, t + "-" + Ge[0], t + "-" + Ge[1]), []), re = Math.min, U = Math.max, Zt = {
|
|
10
|
+
left: "right",
|
|
11
|
+
right: "left",
|
|
12
|
+
bottom: "top",
|
|
13
|
+
top: "bottom"
|
|
14
|
+
}, Jt = {
|
|
15
|
+
start: "end",
|
|
16
|
+
end: "start"
|
|
17
|
+
};
|
|
18
|
+
function Le(e, t, o) {
|
|
19
|
+
return U(e, re(t, o));
|
|
20
|
+
}
|
|
21
|
+
function Z(e, t) {
|
|
22
|
+
return typeof e == "function" ? e(t) : e;
|
|
23
|
+
}
|
|
24
|
+
function D(e) {
|
|
25
|
+
return e.split("-")[0];
|
|
26
|
+
}
|
|
27
|
+
function H(e) {
|
|
28
|
+
return e.split("-")[1];
|
|
29
|
+
}
|
|
30
|
+
function ut(e) {
|
|
31
|
+
return e === "x" ? "y" : "x";
|
|
32
|
+
}
|
|
33
|
+
function Fe(e) {
|
|
34
|
+
return e === "y" ? "height" : "width";
|
|
35
|
+
}
|
|
36
|
+
function ce(e) {
|
|
37
|
+
return ["top", "bottom"].includes(D(e)) ? "y" : "x";
|
|
38
|
+
}
|
|
39
|
+
function Ie(e) {
|
|
40
|
+
return ut(ce(e));
|
|
41
|
+
}
|
|
42
|
+
function ft(e, t, o) {
|
|
43
|
+
o === void 0 && (o = !1);
|
|
44
|
+
const i = H(e), n = Ie(e), s = Fe(n);
|
|
45
|
+
let r = n === "x" ? i === (o ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
46
|
+
return t.reference[s] > t.floating[s] && (r = ve(r)), [r, ve(r)];
|
|
47
|
+
}
|
|
48
|
+
function Qt(e) {
|
|
49
|
+
const t = ve(e);
|
|
50
|
+
return [we(e), t, we(t)];
|
|
51
|
+
}
|
|
52
|
+
function we(e) {
|
|
53
|
+
return e.replace(/start|end/g, (t) => Jt[t]);
|
|
54
|
+
}
|
|
55
|
+
function eo(e, t, o) {
|
|
56
|
+
const i = ["left", "right"], n = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
57
|
+
switch (e) {
|
|
58
|
+
case "top":
|
|
59
|
+
case "bottom":
|
|
60
|
+
return o ? t ? n : i : t ? i : n;
|
|
61
|
+
case "left":
|
|
62
|
+
case "right":
|
|
63
|
+
return t ? s : r;
|
|
64
|
+
default:
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function to(e, t, o, i) {
|
|
69
|
+
const n = H(e);
|
|
70
|
+
let s = eo(D(e), o === "start", i);
|
|
71
|
+
return n && (s = s.map((r) => r + "-" + n), t && (s = s.concat(s.map(we)))), s;
|
|
72
|
+
}
|
|
73
|
+
function ve(e) {
|
|
74
|
+
return e.replace(/left|right|bottom|top/g, (t) => Zt[t]);
|
|
75
|
+
}
|
|
76
|
+
function oo(e) {
|
|
77
|
+
return {
|
|
78
|
+
top: 0,
|
|
79
|
+
right: 0,
|
|
80
|
+
bottom: 0,
|
|
81
|
+
left: 0,
|
|
82
|
+
...e
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function mt(e) {
|
|
86
|
+
return typeof e != "number" ? oo(e) : {
|
|
87
|
+
top: e,
|
|
88
|
+
right: e,
|
|
89
|
+
bottom: e,
|
|
90
|
+
left: e
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function ee(e) {
|
|
94
|
+
return {
|
|
95
|
+
...e,
|
|
96
|
+
top: e.y,
|
|
97
|
+
left: e.x,
|
|
98
|
+
right: e.x + e.width,
|
|
99
|
+
bottom: e.y + e.height
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function Ye(e, t, o) {
|
|
103
|
+
let {
|
|
104
|
+
reference: i,
|
|
105
|
+
floating: n
|
|
106
|
+
} = e;
|
|
107
|
+
const s = ce(t), r = Ie(t), a = Fe(r), l = D(t), d = s === "y", f = i.x + i.width / 2 - n.width / 2, c = i.y + i.height / 2 - n.height / 2, h = i[a] / 2 - n[a] / 2;
|
|
108
|
+
let p;
|
|
109
|
+
switch (l) {
|
|
110
|
+
case "top":
|
|
111
|
+
p = {
|
|
112
|
+
x: f,
|
|
113
|
+
y: i.y - n.height
|
|
114
|
+
};
|
|
115
|
+
break;
|
|
116
|
+
case "bottom":
|
|
117
|
+
p = {
|
|
118
|
+
x: f,
|
|
119
|
+
y: i.y + i.height
|
|
120
|
+
};
|
|
121
|
+
break;
|
|
122
|
+
case "right":
|
|
123
|
+
p = {
|
|
124
|
+
x: i.x + i.width,
|
|
125
|
+
y: c
|
|
126
|
+
};
|
|
127
|
+
break;
|
|
128
|
+
case "left":
|
|
129
|
+
p = {
|
|
130
|
+
x: i.x - n.width,
|
|
131
|
+
y: c
|
|
132
|
+
};
|
|
133
|
+
break;
|
|
134
|
+
default:
|
|
135
|
+
p = {
|
|
136
|
+
x: i.x,
|
|
137
|
+
y: i.y
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
switch (H(t)) {
|
|
141
|
+
case "start":
|
|
142
|
+
p[r] -= h * (o && d ? -1 : 1);
|
|
143
|
+
break;
|
|
144
|
+
case "end":
|
|
145
|
+
p[r] += h * (o && d ? -1 : 1);
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
return p;
|
|
149
|
+
}
|
|
150
|
+
const io = async (e, t, o) => {
|
|
151
|
+
const {
|
|
152
|
+
placement: i = "bottom",
|
|
153
|
+
strategy: n = "absolute",
|
|
154
|
+
middleware: s = [],
|
|
155
|
+
platform: r
|
|
156
|
+
} = o, a = s.filter(Boolean), l = await (r.isRTL == null ? void 0 : r.isRTL(t));
|
|
157
|
+
let d = await r.getElementRects({
|
|
158
|
+
reference: e,
|
|
159
|
+
floating: t,
|
|
160
|
+
strategy: n
|
|
161
|
+
}), {
|
|
162
|
+
x: f,
|
|
163
|
+
y: c
|
|
164
|
+
} = Ye(d, i, l), h = i, p = {}, u = 0;
|
|
165
|
+
for (let m = 0; m < a.length; m++) {
|
|
166
|
+
const {
|
|
167
|
+
name: w,
|
|
168
|
+
fn: g
|
|
169
|
+
} = a[m], {
|
|
170
|
+
x: v,
|
|
171
|
+
y: $,
|
|
172
|
+
data: x,
|
|
173
|
+
reset: _
|
|
174
|
+
} = await g({
|
|
175
|
+
x: f,
|
|
176
|
+
y: c,
|
|
177
|
+
initialPlacement: i,
|
|
178
|
+
placement: h,
|
|
179
|
+
strategy: n,
|
|
180
|
+
middlewareData: p,
|
|
181
|
+
rects: d,
|
|
182
|
+
platform: r,
|
|
183
|
+
elements: {
|
|
184
|
+
reference: e,
|
|
185
|
+
floating: t
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
if (f = v ?? f, c = $ ?? c, p = {
|
|
189
|
+
...p,
|
|
190
|
+
[w]: {
|
|
191
|
+
...p[w],
|
|
192
|
+
...x
|
|
193
|
+
}
|
|
194
|
+
}, _ && u <= 50) {
|
|
195
|
+
u++, typeof _ == "object" && (_.placement && (h = _.placement), _.rects && (d = _.rects === !0 ? await r.getElementRects({
|
|
196
|
+
reference: e,
|
|
197
|
+
floating: t,
|
|
198
|
+
strategy: n
|
|
199
|
+
}) : _.rects), {
|
|
200
|
+
x: f,
|
|
201
|
+
y: c
|
|
202
|
+
} = Ye(d, h, l)), m = -1;
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return {
|
|
207
|
+
x: f,
|
|
208
|
+
y: c,
|
|
209
|
+
placement: h,
|
|
210
|
+
strategy: n,
|
|
211
|
+
middlewareData: p
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
async function Te(e, t) {
|
|
215
|
+
var o;
|
|
216
|
+
t === void 0 && (t = {});
|
|
217
|
+
const {
|
|
218
|
+
x: i,
|
|
219
|
+
y: n,
|
|
220
|
+
platform: s,
|
|
221
|
+
rects: r,
|
|
222
|
+
elements: a,
|
|
223
|
+
strategy: l
|
|
224
|
+
} = e, {
|
|
225
|
+
boundary: d = "clippingAncestors",
|
|
226
|
+
rootBoundary: f = "viewport",
|
|
227
|
+
elementContext: c = "floating",
|
|
228
|
+
altBoundary: h = !1,
|
|
229
|
+
padding: p = 0
|
|
230
|
+
} = Z(t, e), u = mt(p), w = a[h ? c === "floating" ? "reference" : "floating" : c], g = ee(await s.getClippingRect({
|
|
231
|
+
element: (o = await (s.isElement == null ? void 0 : s.isElement(w))) == null || o ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
232
|
+
boundary: d,
|
|
233
|
+
rootBoundary: f,
|
|
234
|
+
strategy: l
|
|
235
|
+
})), v = c === "floating" ? {
|
|
236
|
+
...r.floating,
|
|
237
|
+
x: i,
|
|
238
|
+
y: n
|
|
239
|
+
} : r.reference, $ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), x = await (s.isElement == null ? void 0 : s.isElement($)) ? await (s.getScale == null ? void 0 : s.getScale($)) || {
|
|
240
|
+
x: 1,
|
|
241
|
+
y: 1
|
|
242
|
+
} : {
|
|
243
|
+
x: 1,
|
|
244
|
+
y: 1
|
|
245
|
+
}, _ = ee(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
246
|
+
rect: v,
|
|
247
|
+
offsetParent: $,
|
|
248
|
+
strategy: l
|
|
249
|
+
}) : v);
|
|
250
|
+
return {
|
|
251
|
+
top: (g.top - _.top + u.top) / x.y,
|
|
252
|
+
bottom: (_.bottom - g.bottom + u.bottom) / x.y,
|
|
253
|
+
left: (g.left - _.left + u.left) / x.x,
|
|
254
|
+
right: (_.right - g.right + u.right) / x.x
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
const no = (e) => ({
|
|
258
|
+
name: "arrow",
|
|
259
|
+
options: e,
|
|
260
|
+
async fn(t) {
|
|
261
|
+
const {
|
|
262
|
+
x: o,
|
|
263
|
+
y: i,
|
|
264
|
+
placement: n,
|
|
265
|
+
rects: s,
|
|
266
|
+
platform: r,
|
|
267
|
+
elements: a,
|
|
268
|
+
middlewareData: l
|
|
269
|
+
} = t, {
|
|
270
|
+
element: d,
|
|
271
|
+
padding: f = 0
|
|
272
|
+
} = Z(e, t) || {};
|
|
273
|
+
if (d == null)
|
|
274
|
+
return {};
|
|
275
|
+
const c = mt(f), h = {
|
|
276
|
+
x: o,
|
|
277
|
+
y: i
|
|
278
|
+
}, p = Ie(n), u = Fe(p), m = await r.getDimensions(d), w = p === "y", g = w ? "top" : "left", v = w ? "bottom" : "right", $ = w ? "clientHeight" : "clientWidth", x = s.reference[u] + s.reference[p] - h[p] - s.floating[u], _ = h[p] - s.reference[p], b = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d));
|
|
279
|
+
let T = b ? b[$] : 0;
|
|
280
|
+
(!T || !await (r.isElement == null ? void 0 : r.isElement(b))) && (T = a.floating[$] || s.floating[u]);
|
|
281
|
+
const O = x / 2 - _ / 2, z = T / 2 - m[u] / 2 - 1, S = re(c[g], z), N = re(c[v], z), P = S, Y = T - m[u] - N, C = T / 2 - m[u] / 2 + O, M = Le(P, C, Y), R = !l.arrow && H(n) != null && C != M && s.reference[u] / 2 - (C < P ? S : N) - m[u] / 2 < 0, F = R ? C < P ? C - P : C - Y : 0;
|
|
282
|
+
return {
|
|
283
|
+
[p]: h[p] + F,
|
|
284
|
+
data: {
|
|
285
|
+
[p]: M,
|
|
286
|
+
centerOffset: C - M - F,
|
|
287
|
+
...R && {
|
|
288
|
+
alignmentOffset: F
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
reset: R
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
function so(e, t, o) {
|
|
296
|
+
return (e ? [...o.filter((n) => H(n) === e), ...o.filter((n) => H(n) !== e)] : o.filter((n) => D(n) === n)).filter((n) => e ? H(n) === e || (t ? we(n) !== n : !1) : !0);
|
|
297
|
+
}
|
|
298
|
+
const ro = function(e) {
|
|
299
|
+
return e === void 0 && (e = {}), {
|
|
300
|
+
name: "autoPlacement",
|
|
301
|
+
options: e,
|
|
302
|
+
async fn(t) {
|
|
303
|
+
var o, i, n;
|
|
304
|
+
const {
|
|
305
|
+
rects: s,
|
|
306
|
+
middlewareData: r,
|
|
307
|
+
placement: a,
|
|
308
|
+
platform: l,
|
|
309
|
+
elements: d
|
|
310
|
+
} = t, {
|
|
311
|
+
crossAxis: f = !1,
|
|
312
|
+
alignment: c,
|
|
313
|
+
allowedPlacements: h = qe,
|
|
314
|
+
autoAlignment: p = !0,
|
|
315
|
+
...u
|
|
316
|
+
} = Z(e, t), m = c !== void 0 || h === qe ? so(c || null, p, h) : h, w = await Te(t, u), g = ((o = r.autoPlacement) == null ? void 0 : o.index) || 0, v = m[g];
|
|
317
|
+
if (v == null)
|
|
318
|
+
return {};
|
|
319
|
+
const $ = ft(v, s, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
|
|
320
|
+
if (a !== v)
|
|
321
|
+
return {
|
|
322
|
+
reset: {
|
|
323
|
+
placement: m[0]
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
const x = [w[D(v)], w[$[0]], w[$[1]]], _ = [...((i = r.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
327
|
+
placement: v,
|
|
328
|
+
overflows: x
|
|
329
|
+
}], b = m[g + 1];
|
|
330
|
+
if (b)
|
|
331
|
+
return {
|
|
332
|
+
data: {
|
|
333
|
+
index: g + 1,
|
|
334
|
+
overflows: _
|
|
335
|
+
},
|
|
336
|
+
reset: {
|
|
337
|
+
placement: b
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
const T = _.map((S) => {
|
|
341
|
+
const N = H(S.placement);
|
|
342
|
+
return [S.placement, N && f ? (
|
|
343
|
+
// Check along the mainAxis and main crossAxis side.
|
|
344
|
+
S.overflows.slice(0, 2).reduce((P, Y) => P + Y, 0)
|
|
345
|
+
) : (
|
|
346
|
+
// Check only the mainAxis.
|
|
347
|
+
S.overflows[0]
|
|
348
|
+
), S.overflows];
|
|
349
|
+
}).sort((S, N) => S[1] - N[1]), z = ((n = T.filter((S) => S[2].slice(
|
|
350
|
+
0,
|
|
351
|
+
// Aligned placements should not check their opposite crossAxis
|
|
352
|
+
// side.
|
|
353
|
+
H(S[0]) ? 2 : 3
|
|
354
|
+
).every((N) => N <= 0))[0]) == null ? void 0 : n[0]) || T[0][0];
|
|
355
|
+
return z !== a ? {
|
|
356
|
+
data: {
|
|
357
|
+
index: g + 1,
|
|
358
|
+
overflows: _
|
|
359
|
+
},
|
|
360
|
+
reset: {
|
|
361
|
+
placement: z
|
|
362
|
+
}
|
|
363
|
+
} : {};
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
}, ao = function(e) {
|
|
367
|
+
return e === void 0 && (e = {}), {
|
|
368
|
+
name: "flip",
|
|
369
|
+
options: e,
|
|
370
|
+
async fn(t) {
|
|
371
|
+
var o, i;
|
|
372
|
+
const {
|
|
373
|
+
placement: n,
|
|
374
|
+
middlewareData: s,
|
|
375
|
+
rects: r,
|
|
376
|
+
initialPlacement: a,
|
|
377
|
+
platform: l,
|
|
378
|
+
elements: d
|
|
379
|
+
} = t, {
|
|
380
|
+
mainAxis: f = !0,
|
|
381
|
+
crossAxis: c = !0,
|
|
382
|
+
fallbackPlacements: h,
|
|
383
|
+
fallbackStrategy: p = "bestFit",
|
|
384
|
+
fallbackAxisSideDirection: u = "none",
|
|
385
|
+
flipAlignment: m = !0,
|
|
386
|
+
...w
|
|
387
|
+
} = Z(e, t);
|
|
388
|
+
if ((o = s.arrow) != null && o.alignmentOffset)
|
|
389
|
+
return {};
|
|
390
|
+
const g = D(n), v = D(a) === a, $ = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), x = h || (v || !m ? [ve(a)] : Qt(a));
|
|
391
|
+
!h && u !== "none" && x.push(...to(a, m, u, $));
|
|
392
|
+
const _ = [a, ...x], b = await Te(t, w), T = [];
|
|
393
|
+
let O = ((i = s.flip) == null ? void 0 : i.overflows) || [];
|
|
394
|
+
if (f && T.push(b[g]), c) {
|
|
395
|
+
const P = ft(n, r, $);
|
|
396
|
+
T.push(b[P[0]], b[P[1]]);
|
|
397
|
+
}
|
|
398
|
+
if (O = [...O, {
|
|
399
|
+
placement: n,
|
|
400
|
+
overflows: T
|
|
401
|
+
}], !T.every((P) => P <= 0)) {
|
|
402
|
+
var z, S;
|
|
403
|
+
const P = (((z = s.flip) == null ? void 0 : z.index) || 0) + 1, Y = _[P];
|
|
404
|
+
if (Y)
|
|
405
|
+
return {
|
|
406
|
+
data: {
|
|
407
|
+
index: P,
|
|
408
|
+
overflows: O
|
|
409
|
+
},
|
|
410
|
+
reset: {
|
|
411
|
+
placement: Y
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
let C = (S = O.filter((M) => M.overflows[0] <= 0).sort((M, R) => M.overflows[1] - R.overflows[1])[0]) == null ? void 0 : S.placement;
|
|
415
|
+
if (!C)
|
|
416
|
+
switch (p) {
|
|
417
|
+
case "bestFit": {
|
|
418
|
+
var N;
|
|
419
|
+
const M = (N = O.map((R) => [R.placement, R.overflows.filter((F) => F > 0).reduce((F, Et) => F + Et, 0)]).sort((R, F) => R[1] - F[1])[0]) == null ? void 0 : N[0];
|
|
420
|
+
M && (C = M);
|
|
421
|
+
break;
|
|
422
|
+
}
|
|
423
|
+
case "initialPlacement":
|
|
424
|
+
C = a;
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
if (n !== C)
|
|
428
|
+
return {
|
|
429
|
+
reset: {
|
|
430
|
+
placement: C
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
return {};
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
async function lo(e, t) {
|
|
439
|
+
const {
|
|
440
|
+
placement: o,
|
|
441
|
+
platform: i,
|
|
442
|
+
elements: n
|
|
443
|
+
} = e, s = await (i.isRTL == null ? void 0 : i.isRTL(n.floating)), r = D(o), a = H(o), l = ce(o) === "y", d = ["left", "top"].includes(r) ? -1 : 1, f = s && l ? -1 : 1, c = Z(t, e);
|
|
444
|
+
let {
|
|
445
|
+
mainAxis: h,
|
|
446
|
+
crossAxis: p,
|
|
447
|
+
alignmentAxis: u
|
|
448
|
+
} = typeof c == "number" ? {
|
|
449
|
+
mainAxis: c,
|
|
450
|
+
crossAxis: 0,
|
|
451
|
+
alignmentAxis: null
|
|
452
|
+
} : {
|
|
453
|
+
mainAxis: 0,
|
|
454
|
+
crossAxis: 0,
|
|
455
|
+
alignmentAxis: null,
|
|
456
|
+
...c
|
|
457
|
+
};
|
|
458
|
+
return a && typeof u == "number" && (p = a === "end" ? u * -1 : u), l ? {
|
|
459
|
+
x: p * f,
|
|
460
|
+
y: h * d
|
|
461
|
+
} : {
|
|
462
|
+
x: h * d,
|
|
463
|
+
y: p * f
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
const po = function(e) {
|
|
467
|
+
return e === void 0 && (e = 0), {
|
|
468
|
+
name: "offset",
|
|
469
|
+
options: e,
|
|
470
|
+
async fn(t) {
|
|
471
|
+
const {
|
|
472
|
+
x: o,
|
|
473
|
+
y: i
|
|
474
|
+
} = t, n = await lo(t, e);
|
|
475
|
+
return {
|
|
476
|
+
x: o + n.x,
|
|
477
|
+
y: i + n.y,
|
|
478
|
+
data: n
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
}, co = function(e) {
|
|
483
|
+
return e === void 0 && (e = {}), {
|
|
484
|
+
name: "shift",
|
|
485
|
+
options: e,
|
|
486
|
+
async fn(t) {
|
|
487
|
+
const {
|
|
488
|
+
x: o,
|
|
489
|
+
y: i,
|
|
490
|
+
placement: n
|
|
491
|
+
} = t, {
|
|
492
|
+
mainAxis: s = !0,
|
|
493
|
+
crossAxis: r = !1,
|
|
494
|
+
limiter: a = {
|
|
495
|
+
fn: (w) => {
|
|
496
|
+
let {
|
|
497
|
+
x: g,
|
|
498
|
+
y: v
|
|
499
|
+
} = w;
|
|
500
|
+
return {
|
|
501
|
+
x: g,
|
|
502
|
+
y: v
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
...l
|
|
507
|
+
} = Z(e, t), d = {
|
|
508
|
+
x: o,
|
|
509
|
+
y: i
|
|
510
|
+
}, f = await Te(t, l), c = ce(D(n)), h = ut(c);
|
|
511
|
+
let p = d[h], u = d[c];
|
|
512
|
+
if (s) {
|
|
513
|
+
const w = h === "y" ? "top" : "left", g = h === "y" ? "bottom" : "right", v = p + f[w], $ = p - f[g];
|
|
514
|
+
p = Le(v, p, $);
|
|
515
|
+
}
|
|
516
|
+
if (r) {
|
|
517
|
+
const w = c === "y" ? "top" : "left", g = c === "y" ? "bottom" : "right", v = u + f[w], $ = u - f[g];
|
|
518
|
+
u = Le(v, u, $);
|
|
519
|
+
}
|
|
520
|
+
const m = a.fn({
|
|
521
|
+
...t,
|
|
522
|
+
[h]: p,
|
|
523
|
+
[c]: u
|
|
524
|
+
});
|
|
525
|
+
return {
|
|
526
|
+
...m,
|
|
527
|
+
data: {
|
|
528
|
+
x: m.x - o,
|
|
529
|
+
y: m.y - i
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
}, ho = function(e) {
|
|
535
|
+
return e === void 0 && (e = {}), {
|
|
536
|
+
name: "size",
|
|
537
|
+
options: e,
|
|
538
|
+
async fn(t) {
|
|
539
|
+
const {
|
|
540
|
+
placement: o,
|
|
541
|
+
rects: i,
|
|
542
|
+
platform: n,
|
|
543
|
+
elements: s
|
|
544
|
+
} = t, {
|
|
545
|
+
apply: r = () => {
|
|
546
|
+
},
|
|
547
|
+
...a
|
|
548
|
+
} = Z(e, t), l = await Te(t, a), d = D(o), f = H(o), c = ce(o) === "y", {
|
|
549
|
+
width: h,
|
|
550
|
+
height: p
|
|
551
|
+
} = i.floating;
|
|
552
|
+
let u, m;
|
|
553
|
+
d === "top" || d === "bottom" ? (u = d, m = f === (await (n.isRTL == null ? void 0 : n.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (m = d, u = f === "end" ? "top" : "bottom");
|
|
554
|
+
const w = p - l[u], g = h - l[m], v = !t.middlewareData.shift;
|
|
555
|
+
let $ = w, x = g;
|
|
556
|
+
if (c) {
|
|
557
|
+
const b = h - l.left - l.right;
|
|
558
|
+
x = f || v ? re(g, b) : b;
|
|
559
|
+
} else {
|
|
560
|
+
const b = p - l.top - l.bottom;
|
|
561
|
+
$ = f || v ? re(w, b) : b;
|
|
562
|
+
}
|
|
563
|
+
if (v && !f) {
|
|
564
|
+
const b = U(l.left, 0), T = U(l.right, 0), O = U(l.top, 0), z = U(l.bottom, 0);
|
|
565
|
+
c ? x = h - 2 * (b !== 0 || T !== 0 ? b + T : U(l.left, l.right)) : $ = p - 2 * (O !== 0 || z !== 0 ? O + z : U(l.top, l.bottom));
|
|
566
|
+
}
|
|
567
|
+
await r({
|
|
568
|
+
...t,
|
|
569
|
+
availableWidth: x,
|
|
570
|
+
availableHeight: $
|
|
571
|
+
});
|
|
572
|
+
const _ = await n.getDimensions(s.floating);
|
|
573
|
+
return h !== _.width || p !== _.height ? {
|
|
574
|
+
reset: {
|
|
575
|
+
rects: !0
|
|
576
|
+
}
|
|
577
|
+
} : {};
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
function A(e) {
|
|
582
|
+
var t;
|
|
583
|
+
return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
584
|
+
}
|
|
585
|
+
function B(e) {
|
|
586
|
+
return A(e).getComputedStyle(e);
|
|
587
|
+
}
|
|
588
|
+
const Xe = Math.min, te = Math.max, ye = Math.round;
|
|
589
|
+
function gt(e) {
|
|
590
|
+
const t = B(e);
|
|
591
|
+
let o = parseFloat(t.width), i = parseFloat(t.height);
|
|
592
|
+
const n = e.offsetWidth, s = e.offsetHeight, r = ye(o) !== n || ye(i) !== s;
|
|
593
|
+
return r && (o = n, i = s), { width: o, height: i, fallback: r };
|
|
594
|
+
}
|
|
595
|
+
function q(e) {
|
|
596
|
+
return vt(e) ? (e.nodeName || "").toLowerCase() : "";
|
|
597
|
+
}
|
|
598
|
+
let he;
|
|
599
|
+
function wt() {
|
|
600
|
+
if (he) return he;
|
|
601
|
+
const e = navigator.userAgentData;
|
|
602
|
+
return e && Array.isArray(e.brands) ? (he = e.brands.map((t) => t.brand + "/" + t.version).join(" "), he) : navigator.userAgent;
|
|
603
|
+
}
|
|
604
|
+
function E(e) {
|
|
605
|
+
return e instanceof A(e).HTMLElement;
|
|
606
|
+
}
|
|
607
|
+
function V(e) {
|
|
608
|
+
return e instanceof A(e).Element;
|
|
609
|
+
}
|
|
610
|
+
function vt(e) {
|
|
611
|
+
return e instanceof A(e).Node;
|
|
612
|
+
}
|
|
613
|
+
function Ue(e) {
|
|
614
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof A(e).ShadowRoot || e instanceof ShadowRoot;
|
|
615
|
+
}
|
|
616
|
+
function Se(e) {
|
|
617
|
+
const { overflow: t, overflowX: o, overflowY: i, display: n } = B(e);
|
|
618
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + i + o) && !["inline", "contents"].includes(n);
|
|
619
|
+
}
|
|
620
|
+
function uo(e) {
|
|
621
|
+
return ["table", "td", "th"].includes(q(e));
|
|
622
|
+
}
|
|
623
|
+
function Me(e) {
|
|
624
|
+
const t = /firefox/i.test(wt()), o = B(e), i = o.backdropFilter || o.WebkitBackdropFilter;
|
|
625
|
+
return o.transform !== "none" || o.perspective !== "none" || !!i && i !== "none" || t && o.willChange === "filter" || t && !!o.filter && o.filter !== "none" || ["transform", "perspective"].some((n) => o.willChange.includes(n)) || ["paint", "layout", "strict", "content"].some((n) => {
|
|
626
|
+
const s = o.contain;
|
|
627
|
+
return s != null && s.includes(n);
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
function yt() {
|
|
631
|
+
return !/^((?!chrome|android).)*safari/i.test(wt());
|
|
632
|
+
}
|
|
633
|
+
function je(e) {
|
|
634
|
+
return ["html", "body", "#document"].includes(q(e));
|
|
635
|
+
}
|
|
636
|
+
function $t(e) {
|
|
637
|
+
return V(e) ? e : e.contextElement;
|
|
638
|
+
}
|
|
639
|
+
const _t = { x: 1, y: 1 };
|
|
640
|
+
function J(e) {
|
|
641
|
+
const t = $t(e);
|
|
642
|
+
if (!E(t)) return _t;
|
|
643
|
+
const o = t.getBoundingClientRect(), { width: i, height: n, fallback: s } = gt(t);
|
|
644
|
+
let r = (s ? ye(o.width) : o.width) / i, a = (s ? ye(o.height) : o.height) / n;
|
|
645
|
+
return r && Number.isFinite(r) || (r = 1), a && Number.isFinite(a) || (a = 1), { x: r, y: a };
|
|
646
|
+
}
|
|
647
|
+
function ae(e, t, o, i) {
|
|
648
|
+
var n, s;
|
|
649
|
+
t === void 0 && (t = !1), o === void 0 && (o = !1);
|
|
650
|
+
const r = e.getBoundingClientRect(), a = $t(e);
|
|
651
|
+
let l = _t;
|
|
652
|
+
t && (i ? V(i) && (l = J(i)) : l = J(e));
|
|
653
|
+
const d = a ? A(a) : window, f = !yt() && o;
|
|
654
|
+
let c = (r.left + (f && ((n = d.visualViewport) == null ? void 0 : n.offsetLeft) || 0)) / l.x, h = (r.top + (f && ((s = d.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / l.y, p = r.width / l.x, u = r.height / l.y;
|
|
655
|
+
if (a) {
|
|
656
|
+
const m = A(a), w = i && V(i) ? A(i) : i;
|
|
657
|
+
let g = m.frameElement;
|
|
658
|
+
for (; g && i && w !== m; ) {
|
|
659
|
+
const v = J(g), $ = g.getBoundingClientRect(), x = getComputedStyle(g);
|
|
660
|
+
$.x += (g.clientLeft + parseFloat(x.paddingLeft)) * v.x, $.y += (g.clientTop + parseFloat(x.paddingTop)) * v.y, c *= v.x, h *= v.y, p *= v.x, u *= v.y, c += $.x, h += $.y, g = A(g).frameElement;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
return { width: p, height: u, top: h, right: c + p, bottom: h + u, left: c, x: c, y: h };
|
|
664
|
+
}
|
|
665
|
+
function G(e) {
|
|
666
|
+
return ((vt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
667
|
+
}
|
|
668
|
+
function Pe(e) {
|
|
669
|
+
return V(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
|
|
670
|
+
}
|
|
671
|
+
function xt(e) {
|
|
672
|
+
return ae(G(e)).left + Pe(e).scrollLeft;
|
|
673
|
+
}
|
|
674
|
+
function le(e) {
|
|
675
|
+
if (q(e) === "html") return e;
|
|
676
|
+
const t = e.assignedSlot || e.parentNode || Ue(e) && e.host || G(e);
|
|
677
|
+
return Ue(t) ? t.host : t;
|
|
678
|
+
}
|
|
679
|
+
function bt(e) {
|
|
680
|
+
const t = le(e);
|
|
681
|
+
return je(t) ? t.ownerDocument.body : E(t) && Se(t) ? t : bt(t);
|
|
682
|
+
}
|
|
683
|
+
function $e(e, t) {
|
|
684
|
+
var o;
|
|
685
|
+
t === void 0 && (t = []);
|
|
686
|
+
const i = bt(e), n = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = A(i);
|
|
687
|
+
return n ? t.concat(s, s.visualViewport || [], Se(i) ? i : []) : t.concat(i, $e(i));
|
|
688
|
+
}
|
|
689
|
+
function Ke(e, t, o) {
|
|
690
|
+
return t === "viewport" ? ee(function(i, n) {
|
|
691
|
+
const s = A(i), r = G(i), a = s.visualViewport;
|
|
692
|
+
let l = r.clientWidth, d = r.clientHeight, f = 0, c = 0;
|
|
693
|
+
if (a) {
|
|
694
|
+
l = a.width, d = a.height;
|
|
695
|
+
const h = yt();
|
|
696
|
+
(h || !h && n === "fixed") && (f = a.offsetLeft, c = a.offsetTop);
|
|
697
|
+
}
|
|
698
|
+
return { width: l, height: d, x: f, y: c };
|
|
699
|
+
}(e, o)) : V(t) ? ee(function(i, n) {
|
|
700
|
+
const s = ae(i, !0, n === "fixed"), r = s.top + i.clientTop, a = s.left + i.clientLeft, l = E(i) ? J(i) : { x: 1, y: 1 };
|
|
701
|
+
return { width: i.clientWidth * l.x, height: i.clientHeight * l.y, x: a * l.x, y: r * l.y };
|
|
702
|
+
}(t, o)) : ee(function(i) {
|
|
703
|
+
const n = G(i), s = Pe(i), r = i.ownerDocument.body, a = te(n.scrollWidth, n.clientWidth, r.scrollWidth, r.clientWidth), l = te(n.scrollHeight, n.clientHeight, r.scrollHeight, r.clientHeight);
|
|
704
|
+
let d = -s.scrollLeft + xt(i);
|
|
705
|
+
const f = -s.scrollTop;
|
|
706
|
+
return B(r).direction === "rtl" && (d += te(n.clientWidth, r.clientWidth) - a), { width: a, height: l, x: d, y: f };
|
|
707
|
+
}(G(e)));
|
|
708
|
+
}
|
|
709
|
+
function Ze(e) {
|
|
710
|
+
return E(e) && B(e).position !== "fixed" ? e.offsetParent : null;
|
|
711
|
+
}
|
|
712
|
+
function Je(e) {
|
|
713
|
+
const t = A(e);
|
|
714
|
+
let o = Ze(e);
|
|
715
|
+
for (; o && uo(o) && B(o).position === "static"; ) o = Ze(o);
|
|
716
|
+
return o && (q(o) === "html" || q(o) === "body" && B(o).position === "static" && !Me(o)) ? t : o || function(i) {
|
|
717
|
+
let n = le(i);
|
|
718
|
+
for (; E(n) && !je(n); ) {
|
|
719
|
+
if (Me(n)) return n;
|
|
720
|
+
n = le(n);
|
|
721
|
+
}
|
|
722
|
+
return null;
|
|
723
|
+
}(e) || t;
|
|
724
|
+
}
|
|
725
|
+
function fo(e, t, o) {
|
|
726
|
+
const i = E(t), n = G(t), s = ae(e, !0, o === "fixed", t);
|
|
727
|
+
let r = { scrollLeft: 0, scrollTop: 0 };
|
|
728
|
+
const a = { x: 0, y: 0 };
|
|
729
|
+
if (i || !i && o !== "fixed") if ((q(t) !== "body" || Se(n)) && (r = Pe(t)), E(t)) {
|
|
730
|
+
const l = ae(t, !0);
|
|
731
|
+
a.x = l.x + t.clientLeft, a.y = l.y + t.clientTop;
|
|
732
|
+
} else n && (a.x = xt(n));
|
|
733
|
+
return { x: s.left + r.scrollLeft - a.x, y: s.top + r.scrollTop - a.y, width: s.width, height: s.height };
|
|
734
|
+
}
|
|
735
|
+
const mo = { getClippingRect: function(e) {
|
|
736
|
+
let { element: t, boundary: o, rootBoundary: i, strategy: n } = e;
|
|
737
|
+
const s = o === "clippingAncestors" ? function(d, f) {
|
|
738
|
+
const c = f.get(d);
|
|
739
|
+
if (c) return c;
|
|
740
|
+
let h = $e(d).filter((w) => V(w) && q(w) !== "body"), p = null;
|
|
741
|
+
const u = B(d).position === "fixed";
|
|
742
|
+
let m = u ? le(d) : d;
|
|
743
|
+
for (; V(m) && !je(m); ) {
|
|
744
|
+
const w = B(m), g = Me(m);
|
|
745
|
+
(u ? g || p : g || w.position !== "static" || !p || !["absolute", "fixed"].includes(p.position)) ? p = w : h = h.filter((v) => v !== m), m = le(m);
|
|
746
|
+
}
|
|
747
|
+
return f.set(d, h), h;
|
|
748
|
+
}(t, this._c) : [].concat(o), r = [...s, i], a = r[0], l = r.reduce((d, f) => {
|
|
749
|
+
const c = Ke(t, f, n);
|
|
750
|
+
return d.top = te(c.top, d.top), d.right = Xe(c.right, d.right), d.bottom = Xe(c.bottom, d.bottom), d.left = te(c.left, d.left), d;
|
|
751
|
+
}, Ke(t, a, n));
|
|
752
|
+
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
753
|
+
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
|
|
754
|
+
let { rect: t, offsetParent: o, strategy: i } = e;
|
|
755
|
+
const n = E(o), s = G(o);
|
|
756
|
+
if (o === s) return t;
|
|
757
|
+
let r = { scrollLeft: 0, scrollTop: 0 }, a = { x: 1, y: 1 };
|
|
758
|
+
const l = { x: 0, y: 0 };
|
|
759
|
+
if ((n || !n && i !== "fixed") && ((q(o) !== "body" || Se(s)) && (r = Pe(o)), E(o))) {
|
|
760
|
+
const d = ae(o);
|
|
761
|
+
a = J(o), l.x = d.x + o.clientLeft, l.y = d.y + o.clientTop;
|
|
762
|
+
}
|
|
763
|
+
return { width: t.width * a.x, height: t.height * a.y, x: t.x * a.x - r.scrollLeft * a.x + l.x, y: t.y * a.y - r.scrollTop * a.y + l.y };
|
|
764
|
+
}, isElement: V, getDimensions: function(e) {
|
|
765
|
+
return E(e) ? gt(e) : e.getBoundingClientRect();
|
|
766
|
+
}, getOffsetParent: Je, getDocumentElement: G, getScale: J, async getElementRects(e) {
|
|
767
|
+
let { reference: t, floating: o, strategy: i } = e;
|
|
768
|
+
const n = this.getOffsetParent || Je, s = this.getDimensions;
|
|
769
|
+
return { reference: fo(t, await n(o), i), floating: { x: 0, y: 0, ...await s(o) } };
|
|
770
|
+
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => B(e).direction === "rtl" }, go = (e, t, o) => {
|
|
771
|
+
const i = /* @__PURE__ */ new Map(), n = { platform: mo, ...o }, s = { ...n.platform, _c: i };
|
|
772
|
+
return io(e, t, { ...n, platform: s });
|
|
773
|
+
};
|
|
774
|
+
function Tt(e, t) {
|
|
775
|
+
for (const o in t)
|
|
776
|
+
Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ? Tt(e[o], t[o]) : e[o] = t[o]);
|
|
777
|
+
}
|
|
778
|
+
const L = {
|
|
779
|
+
// Disable popper components
|
|
780
|
+
disabled: !1,
|
|
781
|
+
// Default position offset along main axis (px)
|
|
782
|
+
distance: 5,
|
|
783
|
+
// Default position offset along cross axis (px)
|
|
784
|
+
skidding: 0,
|
|
785
|
+
// Default container where the tooltip will be appended
|
|
786
|
+
container: "body",
|
|
787
|
+
// Element used to compute position and size boundaries
|
|
788
|
+
boundary: void 0,
|
|
789
|
+
// Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
|
|
790
|
+
instantMove: !1,
|
|
791
|
+
// Auto destroy tooltip DOM nodes (ms)
|
|
792
|
+
disposeTimeout: 150,
|
|
793
|
+
// Triggers on the popper itself
|
|
794
|
+
popperTriggers: [],
|
|
795
|
+
// Positioning strategy
|
|
796
|
+
strategy: "absolute",
|
|
797
|
+
// Prevent overflow
|
|
798
|
+
preventOverflow: !0,
|
|
799
|
+
// Flip to the opposite placement if needed
|
|
800
|
+
flip: !0,
|
|
801
|
+
// Shift on the cross axis to prevent the popper from overflowing
|
|
802
|
+
shift: !0,
|
|
803
|
+
// Overflow padding (px)
|
|
804
|
+
overflowPadding: 0,
|
|
805
|
+
// Arrow padding (px)
|
|
806
|
+
arrowPadding: 0,
|
|
807
|
+
// Compute arrow overflow (useful to hide it)
|
|
808
|
+
arrowOverflow: !0,
|
|
809
|
+
/**
|
|
810
|
+
* By default, compute autohide on 'click'.
|
|
811
|
+
*/
|
|
812
|
+
autoHideOnMousedown: !1,
|
|
813
|
+
// Themes
|
|
814
|
+
themes: {
|
|
815
|
+
tooltip: {
|
|
816
|
+
// Default tooltip placement relative to target element
|
|
817
|
+
placement: "top",
|
|
818
|
+
// Default events that trigger the tooltip
|
|
819
|
+
triggers: ["hover", "focus", "touch"],
|
|
820
|
+
// Close tooltip on click on tooltip target
|
|
821
|
+
hideTriggers: (e) => [...e, "click"],
|
|
822
|
+
// Delay (ms)
|
|
823
|
+
delay: {
|
|
824
|
+
show: 200,
|
|
825
|
+
hide: 0
|
|
826
|
+
},
|
|
827
|
+
// Update popper on content resize
|
|
828
|
+
handleResize: !1,
|
|
829
|
+
// Enable HTML content in directive
|
|
830
|
+
html: !1,
|
|
831
|
+
// Displayed when tooltip content is loading
|
|
832
|
+
loadingContent: "..."
|
|
833
|
+
},
|
|
834
|
+
dropdown: {
|
|
835
|
+
// Default dropdown placement relative to target element
|
|
836
|
+
placement: "bottom",
|
|
837
|
+
// Default events that trigger the dropdown
|
|
838
|
+
triggers: ["click"],
|
|
839
|
+
// Delay (ms)
|
|
840
|
+
delay: 0,
|
|
841
|
+
// Update popper on content resize
|
|
842
|
+
handleResize: !0,
|
|
843
|
+
// Hide on clock outside
|
|
844
|
+
autoHide: !0
|
|
845
|
+
},
|
|
846
|
+
menu: {
|
|
847
|
+
$extend: "dropdown",
|
|
848
|
+
triggers: ["hover", "focus"],
|
|
849
|
+
popperTriggers: ["hover"],
|
|
850
|
+
delay: {
|
|
851
|
+
show: 0,
|
|
852
|
+
hide: 400
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
function de(e, t) {
|
|
858
|
+
let o = L.themes[e] || {}, i;
|
|
859
|
+
do
|
|
860
|
+
i = o[t], typeof i > "u" ? o.$extend ? o = L.themes[o.$extend] || {} : (o = null, i = L[t]) : o = null;
|
|
861
|
+
while (o);
|
|
862
|
+
return i;
|
|
863
|
+
}
|
|
864
|
+
function wo(e) {
|
|
865
|
+
const t = [e];
|
|
866
|
+
let o = L.themes[e] || {};
|
|
867
|
+
do
|
|
868
|
+
o.$extend && !o.$resetCss ? (t.push(o.$extend), o = L.themes[o.$extend] || {}) : o = null;
|
|
869
|
+
while (o);
|
|
870
|
+
return t.map((i) => `v-popper--theme-${i}`);
|
|
871
|
+
}
|
|
872
|
+
function Qe(e) {
|
|
873
|
+
const t = [e];
|
|
874
|
+
let o = L.themes[e] || {};
|
|
875
|
+
do
|
|
876
|
+
o.$extend ? (t.push(o.$extend), o = L.themes[o.$extend] || {}) : o = null;
|
|
877
|
+
while (o);
|
|
878
|
+
return t;
|
|
879
|
+
}
|
|
880
|
+
let Q = !1;
|
|
881
|
+
if (typeof window < "u") {
|
|
882
|
+
Q = !1;
|
|
883
|
+
try {
|
|
884
|
+
const e = Object.defineProperty({}, "passive", {
|
|
885
|
+
get() {
|
|
886
|
+
Q = !0;
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
window.addEventListener("test", null, e);
|
|
890
|
+
} catch {
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
let St = !1;
|
|
894
|
+
typeof window < "u" && typeof navigator < "u" && (St = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
|
|
895
|
+
const Pt = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
|
|
896
|
+
t,
|
|
897
|
+
`${t}-start`,
|
|
898
|
+
`${t}-end`
|
|
899
|
+
]), []), et = {
|
|
900
|
+
hover: "mouseenter",
|
|
901
|
+
focus: "focus",
|
|
902
|
+
click: "click",
|
|
903
|
+
touch: "touchstart",
|
|
904
|
+
pointer: "pointerdown"
|
|
905
|
+
}, tt = {
|
|
906
|
+
hover: "mouseleave",
|
|
907
|
+
focus: "blur",
|
|
908
|
+
click: "click",
|
|
909
|
+
touch: "touchend",
|
|
910
|
+
pointer: "pointerup"
|
|
911
|
+
};
|
|
912
|
+
function ot(e, t) {
|
|
913
|
+
const o = e.indexOf(t);
|
|
914
|
+
o !== -1 && e.splice(o, 1);
|
|
915
|
+
}
|
|
916
|
+
function ze() {
|
|
917
|
+
return new Promise((e) => requestAnimationFrame(() => {
|
|
918
|
+
requestAnimationFrame(e);
|
|
919
|
+
}));
|
|
920
|
+
}
|
|
921
|
+
const k = [];
|
|
922
|
+
let X = null;
|
|
923
|
+
const it = {};
|
|
924
|
+
function nt(e) {
|
|
925
|
+
let t = it[e];
|
|
926
|
+
return t || (t = it[e] = []), t;
|
|
927
|
+
}
|
|
928
|
+
let Re = function() {
|
|
929
|
+
};
|
|
930
|
+
typeof window < "u" && (Re = window.Element);
|
|
931
|
+
function y(e) {
|
|
932
|
+
return function(t) {
|
|
933
|
+
return de(t.theme, e);
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
937
|
+
name: "VPopper",
|
|
938
|
+
provide() {
|
|
939
|
+
return {
|
|
940
|
+
[Ne]: {
|
|
941
|
+
parentPopper: this
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
},
|
|
945
|
+
inject: {
|
|
946
|
+
[Ne]: { default: null }
|
|
947
|
+
},
|
|
948
|
+
props: {
|
|
949
|
+
theme: {
|
|
950
|
+
type: String,
|
|
951
|
+
required: !0
|
|
952
|
+
},
|
|
953
|
+
targetNodes: {
|
|
954
|
+
type: Function,
|
|
955
|
+
required: !0
|
|
956
|
+
},
|
|
957
|
+
referenceNode: {
|
|
958
|
+
type: Function,
|
|
959
|
+
default: null
|
|
960
|
+
},
|
|
961
|
+
popperNode: {
|
|
962
|
+
type: Function,
|
|
963
|
+
required: !0
|
|
964
|
+
},
|
|
965
|
+
shown: {
|
|
966
|
+
type: Boolean,
|
|
967
|
+
default: !1
|
|
968
|
+
},
|
|
969
|
+
showGroup: {
|
|
970
|
+
type: String,
|
|
971
|
+
default: null
|
|
972
|
+
},
|
|
973
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
974
|
+
ariaId: {
|
|
975
|
+
default: null
|
|
976
|
+
},
|
|
977
|
+
disabled: {
|
|
978
|
+
type: Boolean,
|
|
979
|
+
default: y("disabled")
|
|
980
|
+
},
|
|
981
|
+
positioningDisabled: {
|
|
982
|
+
type: Boolean,
|
|
983
|
+
default: y("positioningDisabled")
|
|
984
|
+
},
|
|
985
|
+
placement: {
|
|
986
|
+
type: String,
|
|
987
|
+
default: y("placement"),
|
|
988
|
+
validator: (e) => Pt.includes(e)
|
|
989
|
+
},
|
|
990
|
+
delay: {
|
|
991
|
+
type: [String, Number, Object],
|
|
992
|
+
default: y("delay")
|
|
993
|
+
},
|
|
994
|
+
distance: {
|
|
995
|
+
type: [Number, String],
|
|
996
|
+
default: y("distance")
|
|
997
|
+
},
|
|
998
|
+
skidding: {
|
|
999
|
+
type: [Number, String],
|
|
1000
|
+
default: y("skidding")
|
|
1001
|
+
},
|
|
1002
|
+
triggers: {
|
|
1003
|
+
type: Array,
|
|
1004
|
+
default: y("triggers")
|
|
1005
|
+
},
|
|
1006
|
+
showTriggers: {
|
|
1007
|
+
type: [Array, Function],
|
|
1008
|
+
default: y("showTriggers")
|
|
1009
|
+
},
|
|
1010
|
+
hideTriggers: {
|
|
1011
|
+
type: [Array, Function],
|
|
1012
|
+
default: y("hideTriggers")
|
|
1013
|
+
},
|
|
1014
|
+
popperTriggers: {
|
|
1015
|
+
type: Array,
|
|
1016
|
+
default: y("popperTriggers")
|
|
1017
|
+
},
|
|
1018
|
+
popperShowTriggers: {
|
|
1019
|
+
type: [Array, Function],
|
|
1020
|
+
default: y("popperShowTriggers")
|
|
1021
|
+
},
|
|
1022
|
+
popperHideTriggers: {
|
|
1023
|
+
type: [Array, Function],
|
|
1024
|
+
default: y("popperHideTriggers")
|
|
1025
|
+
},
|
|
1026
|
+
container: {
|
|
1027
|
+
type: [String, Object, Re, Boolean],
|
|
1028
|
+
default: y("container")
|
|
1029
|
+
},
|
|
1030
|
+
boundary: {
|
|
1031
|
+
type: [String, Re],
|
|
1032
|
+
default: y("boundary")
|
|
1033
|
+
},
|
|
1034
|
+
strategy: {
|
|
1035
|
+
type: String,
|
|
1036
|
+
validator: (e) => ["absolute", "fixed"].includes(e),
|
|
1037
|
+
default: y("strategy")
|
|
1038
|
+
},
|
|
1039
|
+
autoHide: {
|
|
1040
|
+
type: [Boolean, Function],
|
|
1041
|
+
default: y("autoHide")
|
|
1042
|
+
},
|
|
1043
|
+
handleResize: {
|
|
1044
|
+
type: Boolean,
|
|
1045
|
+
default: y("handleResize")
|
|
1046
|
+
},
|
|
1047
|
+
instantMove: {
|
|
1048
|
+
type: Boolean,
|
|
1049
|
+
default: y("instantMove")
|
|
1050
|
+
},
|
|
1051
|
+
eagerMount: {
|
|
1052
|
+
type: Boolean,
|
|
1053
|
+
default: y("eagerMount")
|
|
1054
|
+
},
|
|
1055
|
+
popperClass: {
|
|
1056
|
+
type: [String, Array, Object],
|
|
1057
|
+
default: y("popperClass")
|
|
1058
|
+
},
|
|
1059
|
+
computeTransformOrigin: {
|
|
1060
|
+
type: Boolean,
|
|
1061
|
+
default: y("computeTransformOrigin")
|
|
1062
|
+
},
|
|
1063
|
+
/**
|
|
1064
|
+
* @deprecated
|
|
1065
|
+
*/
|
|
1066
|
+
autoMinSize: {
|
|
1067
|
+
type: Boolean,
|
|
1068
|
+
default: y("autoMinSize")
|
|
1069
|
+
},
|
|
1070
|
+
autoSize: {
|
|
1071
|
+
type: [Boolean, String],
|
|
1072
|
+
default: y("autoSize")
|
|
1073
|
+
},
|
|
1074
|
+
/**
|
|
1075
|
+
* @deprecated
|
|
1076
|
+
*/
|
|
1077
|
+
autoMaxSize: {
|
|
1078
|
+
type: Boolean,
|
|
1079
|
+
default: y("autoMaxSize")
|
|
1080
|
+
},
|
|
1081
|
+
autoBoundaryMaxSize: {
|
|
1082
|
+
type: Boolean,
|
|
1083
|
+
default: y("autoBoundaryMaxSize")
|
|
1084
|
+
},
|
|
1085
|
+
preventOverflow: {
|
|
1086
|
+
type: Boolean,
|
|
1087
|
+
default: y("preventOverflow")
|
|
1088
|
+
},
|
|
1089
|
+
overflowPadding: {
|
|
1090
|
+
type: [Number, String],
|
|
1091
|
+
default: y("overflowPadding")
|
|
1092
|
+
},
|
|
1093
|
+
arrowPadding: {
|
|
1094
|
+
type: [Number, String],
|
|
1095
|
+
default: y("arrowPadding")
|
|
1096
|
+
},
|
|
1097
|
+
arrowOverflow: {
|
|
1098
|
+
type: Boolean,
|
|
1099
|
+
default: y("arrowOverflow")
|
|
1100
|
+
},
|
|
1101
|
+
flip: {
|
|
1102
|
+
type: Boolean,
|
|
1103
|
+
default: y("flip")
|
|
1104
|
+
},
|
|
1105
|
+
shift: {
|
|
1106
|
+
type: Boolean,
|
|
1107
|
+
default: y("shift")
|
|
1108
|
+
},
|
|
1109
|
+
shiftCrossAxis: {
|
|
1110
|
+
type: Boolean,
|
|
1111
|
+
default: y("shiftCrossAxis")
|
|
1112
|
+
},
|
|
1113
|
+
noAutoFocus: {
|
|
1114
|
+
type: Boolean,
|
|
1115
|
+
default: y("noAutoFocus")
|
|
1116
|
+
},
|
|
1117
|
+
disposeTimeout: {
|
|
1118
|
+
type: Number,
|
|
1119
|
+
default: y("disposeTimeout")
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
emits: {
|
|
1123
|
+
show: () => !0,
|
|
1124
|
+
hide: () => !0,
|
|
1125
|
+
"update:shown": (e) => !0,
|
|
1126
|
+
"apply-show": () => !0,
|
|
1127
|
+
"apply-hide": () => !0,
|
|
1128
|
+
"close-group": () => !0,
|
|
1129
|
+
"close-directive": () => !0,
|
|
1130
|
+
"auto-hide": () => !0,
|
|
1131
|
+
resize: () => !0
|
|
1132
|
+
},
|
|
1133
|
+
data() {
|
|
1134
|
+
return {
|
|
1135
|
+
isShown: !1,
|
|
1136
|
+
isMounted: !1,
|
|
1137
|
+
skipTransition: !1,
|
|
1138
|
+
classes: {
|
|
1139
|
+
showFrom: !1,
|
|
1140
|
+
showTo: !1,
|
|
1141
|
+
hideFrom: !1,
|
|
1142
|
+
hideTo: !0
|
|
1143
|
+
},
|
|
1144
|
+
result: {
|
|
1145
|
+
x: 0,
|
|
1146
|
+
y: 0,
|
|
1147
|
+
placement: "",
|
|
1148
|
+
strategy: this.strategy,
|
|
1149
|
+
arrow: {
|
|
1150
|
+
x: 0,
|
|
1151
|
+
y: 0,
|
|
1152
|
+
centerOffset: 0
|
|
1153
|
+
},
|
|
1154
|
+
transformOrigin: null
|
|
1155
|
+
},
|
|
1156
|
+
randomId: `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`,
|
|
1157
|
+
shownChildren: /* @__PURE__ */ new Set(),
|
|
1158
|
+
lastAutoHide: !0,
|
|
1159
|
+
pendingHide: !1,
|
|
1160
|
+
containsGlobalTarget: !1,
|
|
1161
|
+
isDisposed: !0,
|
|
1162
|
+
mouseDownContains: !1
|
|
1163
|
+
};
|
|
1164
|
+
},
|
|
1165
|
+
computed: {
|
|
1166
|
+
popperId() {
|
|
1167
|
+
return this.ariaId != null ? this.ariaId : this.randomId;
|
|
1168
|
+
},
|
|
1169
|
+
shouldMountContent() {
|
|
1170
|
+
return this.eagerMount || this.isMounted;
|
|
1171
|
+
},
|
|
1172
|
+
slotData() {
|
|
1173
|
+
return {
|
|
1174
|
+
popperId: this.popperId,
|
|
1175
|
+
isShown: this.isShown,
|
|
1176
|
+
shouldMountContent: this.shouldMountContent,
|
|
1177
|
+
skipTransition: this.skipTransition,
|
|
1178
|
+
autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
|
|
1179
|
+
show: this.show,
|
|
1180
|
+
hide: this.hide,
|
|
1181
|
+
handleResize: this.handleResize,
|
|
1182
|
+
onResize: this.onResize,
|
|
1183
|
+
classes: {
|
|
1184
|
+
...this.classes,
|
|
1185
|
+
popperClass: this.popperClass
|
|
1186
|
+
},
|
|
1187
|
+
result: this.positioningDisabled ? null : this.result,
|
|
1188
|
+
attrs: this.$attrs
|
|
1189
|
+
};
|
|
1190
|
+
},
|
|
1191
|
+
parentPopper() {
|
|
1192
|
+
var e;
|
|
1193
|
+
return (e = this[Ne]) == null ? void 0 : e.parentPopper;
|
|
1194
|
+
},
|
|
1195
|
+
hasPopperShowTriggerHover() {
|
|
1196
|
+
var e, t;
|
|
1197
|
+
return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
watch: {
|
|
1201
|
+
shown: "$_autoShowHide",
|
|
1202
|
+
disabled(e) {
|
|
1203
|
+
e ? this.dispose() : this.init();
|
|
1204
|
+
},
|
|
1205
|
+
async container() {
|
|
1206
|
+
this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
|
|
1207
|
+
},
|
|
1208
|
+
triggers: {
|
|
1209
|
+
handler: "$_refreshListeners",
|
|
1210
|
+
deep: !0
|
|
1211
|
+
},
|
|
1212
|
+
positioningDisabled: "$_refreshListeners",
|
|
1213
|
+
...[
|
|
1214
|
+
"placement",
|
|
1215
|
+
"distance",
|
|
1216
|
+
"skidding",
|
|
1217
|
+
"boundary",
|
|
1218
|
+
"strategy",
|
|
1219
|
+
"overflowPadding",
|
|
1220
|
+
"arrowPadding",
|
|
1221
|
+
"preventOverflow",
|
|
1222
|
+
"shift",
|
|
1223
|
+
"shiftCrossAxis",
|
|
1224
|
+
"flip"
|
|
1225
|
+
].reduce((e, t) => (e[t] = "$_computePosition", e), {})
|
|
1226
|
+
},
|
|
1227
|
+
created() {
|
|
1228
|
+
this.autoMinSize && console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
|
|
1229
|
+
},
|
|
1230
|
+
mounted() {
|
|
1231
|
+
this.init(), this.$_detachPopperNode();
|
|
1232
|
+
},
|
|
1233
|
+
activated() {
|
|
1234
|
+
this.$_autoShowHide();
|
|
1235
|
+
},
|
|
1236
|
+
deactivated() {
|
|
1237
|
+
this.hide();
|
|
1238
|
+
},
|
|
1239
|
+
beforeUnmount() {
|
|
1240
|
+
this.dispose();
|
|
1241
|
+
},
|
|
1242
|
+
methods: {
|
|
1243
|
+
show({ event: e = null, skipDelay: t = !1, force: o = !1 } = {}) {
|
|
1244
|
+
var i, n;
|
|
1245
|
+
(i = this.parentPopper) != null && i.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (o || !this.disabled) && (((n = this.parentPopper) == null ? void 0 : n.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
|
|
1246
|
+
this.$_showFrameLocked = !1;
|
|
1247
|
+
})), this.$emit("update:shown", !0));
|
|
1248
|
+
},
|
|
1249
|
+
hide({ event: e = null, skipDelay: t = !1 } = {}) {
|
|
1250
|
+
var o;
|
|
1251
|
+
if (!this.$_hideInProgress) {
|
|
1252
|
+
if (this.shownChildren.size > 0) {
|
|
1253
|
+
this.pendingHide = !0;
|
|
1254
|
+
return;
|
|
1255
|
+
}
|
|
1256
|
+
if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
|
|
1257
|
+
this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
|
|
1258
|
+
this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
|
|
1259
|
+
}, 1e3));
|
|
1260
|
+
return;
|
|
1261
|
+
}
|
|
1262
|
+
((o = this.parentPopper) == null ? void 0 : o.lockedChild) === this && (this.parentPopper.lockedChild = null), this.pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
init() {
|
|
1266
|
+
var e;
|
|
1267
|
+
this.isDisposed && (this.isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
|
|
1268
|
+
},
|
|
1269
|
+
dispose() {
|
|
1270
|
+
this.isDisposed || (this.isDisposed = !0, this.$_removeEventListeners(), this.hide({ skipDelay: !0 }), this.$_detachPopperNode(), this.isMounted = !1, this.isShown = !1, this.$_updateParentShownChildren(!1), this.$_swapTargetAttrs("data-original-title", "title"));
|
|
1271
|
+
},
|
|
1272
|
+
async onResize() {
|
|
1273
|
+
this.isShown && (await this.$_computePosition(), this.$emit("resize"));
|
|
1274
|
+
},
|
|
1275
|
+
async $_computePosition() {
|
|
1276
|
+
if (this.isDisposed || this.positioningDisabled)
|
|
1277
|
+
return;
|
|
1278
|
+
const e = {
|
|
1279
|
+
strategy: this.strategy,
|
|
1280
|
+
middleware: []
|
|
1281
|
+
};
|
|
1282
|
+
(this.distance || this.skidding) && e.middleware.push(po({
|
|
1283
|
+
mainAxis: this.distance,
|
|
1284
|
+
crossAxis: this.skidding
|
|
1285
|
+
}));
|
|
1286
|
+
const t = this.placement.startsWith("auto");
|
|
1287
|
+
if (t ? e.middleware.push(ro({
|
|
1288
|
+
alignment: this.placement.split("-")[1] ?? ""
|
|
1289
|
+
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(co({
|
|
1290
|
+
padding: this.overflowPadding,
|
|
1291
|
+
boundary: this.boundary,
|
|
1292
|
+
crossAxis: this.shiftCrossAxis
|
|
1293
|
+
})), !t && this.flip && e.middleware.push(ao({
|
|
1294
|
+
padding: this.overflowPadding,
|
|
1295
|
+
boundary: this.boundary
|
|
1296
|
+
}))), e.middleware.push(no({
|
|
1297
|
+
element: this.$_arrowNode,
|
|
1298
|
+
padding: this.arrowPadding
|
|
1299
|
+
})), this.arrowOverflow && e.middleware.push({
|
|
1300
|
+
name: "arrowOverflow",
|
|
1301
|
+
fn: ({ placement: i, rects: n, middlewareData: s }) => {
|
|
1302
|
+
let r;
|
|
1303
|
+
const { centerOffset: a } = s.arrow;
|
|
1304
|
+
return i.startsWith("top") || i.startsWith("bottom") ? r = Math.abs(a) > n.reference.width / 2 : r = Math.abs(a) > n.reference.height / 2, {
|
|
1305
|
+
data: {
|
|
1306
|
+
overflow: r
|
|
1307
|
+
}
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
}), this.autoMinSize || this.autoSize) {
|
|
1311
|
+
const i = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
|
|
1312
|
+
e.middleware.push({
|
|
1313
|
+
name: "autoSize",
|
|
1314
|
+
fn: ({ rects: n, placement: s, middlewareData: r }) => {
|
|
1315
|
+
var a;
|
|
1316
|
+
if ((a = r.autoSize) != null && a.skip)
|
|
1317
|
+
return {};
|
|
1318
|
+
let l, d;
|
|
1319
|
+
return s.startsWith("top") || s.startsWith("bottom") ? l = n.reference.width : d = n.reference.height, this.$_innerNode.style[i === "min" ? "minWidth" : i === "max" ? "maxWidth" : "width"] = l != null ? `${l}px` : null, this.$_innerNode.style[i === "min" ? "minHeight" : i === "max" ? "maxHeight" : "height"] = d != null ? `${d}px` : null, {
|
|
1320
|
+
data: {
|
|
1321
|
+
skip: !0
|
|
1322
|
+
},
|
|
1323
|
+
reset: {
|
|
1324
|
+
rects: !0
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(ho({
|
|
1331
|
+
boundary: this.boundary,
|
|
1332
|
+
padding: this.overflowPadding,
|
|
1333
|
+
apply: ({ availableWidth: i, availableHeight: n }) => {
|
|
1334
|
+
this.$_innerNode.style.maxWidth = i != null ? `${i}px` : null, this.$_innerNode.style.maxHeight = n != null ? `${n}px` : null;
|
|
1335
|
+
}
|
|
1336
|
+
})));
|
|
1337
|
+
const o = await go(this.$_referenceNode, this.$_popperNode, e);
|
|
1338
|
+
Object.assign(this.result, {
|
|
1339
|
+
x: o.x,
|
|
1340
|
+
y: o.y,
|
|
1341
|
+
placement: o.placement,
|
|
1342
|
+
strategy: o.strategy,
|
|
1343
|
+
arrow: {
|
|
1344
|
+
...o.middlewareData.arrow,
|
|
1345
|
+
...o.middlewareData.arrowOverflow
|
|
1346
|
+
}
|
|
1347
|
+
});
|
|
1348
|
+
},
|
|
1349
|
+
$_scheduleShow(e, t = !1) {
|
|
1350
|
+
if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), X && this.instantMove && X.instantMove && X !== this.parentPopper) {
|
|
1351
|
+
X.$_applyHide(!0), this.$_applyShow(!0);
|
|
1352
|
+
return;
|
|
1353
|
+
}
|
|
1354
|
+
t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
1355
|
+
},
|
|
1356
|
+
$_scheduleHide(e, t = !1) {
|
|
1357
|
+
if (this.shownChildren.size > 0) {
|
|
1358
|
+
this.pendingHide = !0;
|
|
1359
|
+
return;
|
|
1360
|
+
}
|
|
1361
|
+
this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (X = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
|
|
1362
|
+
},
|
|
1363
|
+
$_computeDelay(e) {
|
|
1364
|
+
const t = this.delay;
|
|
1365
|
+
return parseInt(t && t[e] || t || 0);
|
|
1366
|
+
},
|
|
1367
|
+
async $_applyShow(e = !1) {
|
|
1368
|
+
clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await ze(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
|
|
1369
|
+
...$e(this.$_referenceNode),
|
|
1370
|
+
...$e(this.$_popperNode)
|
|
1371
|
+
], "scroll", () => {
|
|
1372
|
+
this.$_computePosition();
|
|
1373
|
+
}));
|
|
1374
|
+
},
|
|
1375
|
+
async $_applyShowEffect() {
|
|
1376
|
+
if (this.$_hideInProgress)
|
|
1377
|
+
return;
|
|
1378
|
+
if (this.computeTransformOrigin) {
|
|
1379
|
+
const t = this.$_referenceNode.getBoundingClientRect(), o = this.$_popperNode.querySelector(".v-popper__wrapper"), i = o.parentNode.getBoundingClientRect(), n = t.x + t.width / 2 - (i.left + o.offsetLeft), s = t.y + t.height / 2 - (i.top + o.offsetTop);
|
|
1380
|
+
this.result.transformOrigin = `${n}px ${s}px`;
|
|
1381
|
+
}
|
|
1382
|
+
this.isShown = !0, this.$_applyAttrsToTarget({
|
|
1383
|
+
"aria-describedby": this.popperId,
|
|
1384
|
+
"data-popper-shown": ""
|
|
1385
|
+
});
|
|
1386
|
+
const e = this.showGroup;
|
|
1387
|
+
if (e) {
|
|
1388
|
+
let t;
|
|
1389
|
+
for (let o = 0; o < k.length; o++)
|
|
1390
|
+
t = k[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
|
|
1391
|
+
}
|
|
1392
|
+
k.push(this), document.body.classList.add("v-popper--some-open");
|
|
1393
|
+
for (const t of Qe(this.theme))
|
|
1394
|
+
nt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
|
|
1395
|
+
this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await ze(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
|
|
1396
|
+
},
|
|
1397
|
+
async $_applyHide(e = !1) {
|
|
1398
|
+
if (this.shownChildren.size > 0) {
|
|
1399
|
+
this.pendingHide = !0, this.$_hideInProgress = !1;
|
|
1400
|
+
return;
|
|
1401
|
+
}
|
|
1402
|
+
if (clearTimeout(this.$_scheduleTimer), !this.isShown)
|
|
1403
|
+
return;
|
|
1404
|
+
this.skipTransition = e, ot(k, this), k.length === 0 && document.body.classList.remove("v-popper--some-open");
|
|
1405
|
+
for (const o of Qe(this.theme)) {
|
|
1406
|
+
const i = nt(o);
|
|
1407
|
+
ot(i, this), i.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
|
|
1408
|
+
}
|
|
1409
|
+
X === this && (X = null), this.isShown = !1, this.$_applyAttrsToTarget({
|
|
1410
|
+
"aria-describedby": void 0,
|
|
1411
|
+
"data-popper-shown": void 0
|
|
1412
|
+
}), clearTimeout(this.$_disposeTimer);
|
|
1413
|
+
const t = this.disposeTimeout;
|
|
1414
|
+
t !== null && (this.$_disposeTimer = setTimeout(() => {
|
|
1415
|
+
this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
|
|
1416
|
+
}, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await ze(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
|
|
1417
|
+
},
|
|
1418
|
+
$_autoShowHide() {
|
|
1419
|
+
this.shown ? this.show() : this.hide();
|
|
1420
|
+
},
|
|
1421
|
+
$_ensureTeleport() {
|
|
1422
|
+
if (this.isDisposed)
|
|
1423
|
+
return;
|
|
1424
|
+
let e = this.container;
|
|
1425
|
+
if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
|
|
1426
|
+
throw new Error("No container for popover: " + this.container);
|
|
1427
|
+
e.appendChild(this.$_popperNode), this.isMounted = !0;
|
|
1428
|
+
},
|
|
1429
|
+
$_addEventListeners() {
|
|
1430
|
+
const e = (o) => {
|
|
1431
|
+
this.isShown && !this.$_hideInProgress || (o.usedByTooltip = !0, !this.$_preventShow && this.show({ event: o }));
|
|
1432
|
+
};
|
|
1433
|
+
this.$_registerTriggerListeners(this.$_targetNodes, et, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], et, this.popperTriggers, this.popperShowTriggers, e);
|
|
1434
|
+
const t = (o) => {
|
|
1435
|
+
o.usedByTooltip || this.hide({ event: o });
|
|
1436
|
+
};
|
|
1437
|
+
this.$_registerTriggerListeners(this.$_targetNodes, tt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], tt, this.popperTriggers, this.popperHideTriggers, t);
|
|
1438
|
+
},
|
|
1439
|
+
$_registerEventListeners(e, t, o) {
|
|
1440
|
+
this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((i) => i.addEventListener(t, o, Q ? {
|
|
1441
|
+
passive: !0
|
|
1442
|
+
} : void 0));
|
|
1443
|
+
},
|
|
1444
|
+
$_registerTriggerListeners(e, t, o, i, n) {
|
|
1445
|
+
let s = o;
|
|
1446
|
+
i != null && (s = typeof i == "function" ? i(s) : i), s.forEach((r) => {
|
|
1447
|
+
const a = t[r];
|
|
1448
|
+
a && this.$_registerEventListeners(e, a, n);
|
|
1449
|
+
});
|
|
1450
|
+
},
|
|
1451
|
+
$_removeEventListeners(e) {
|
|
1452
|
+
const t = [];
|
|
1453
|
+
this.$_events.forEach((o) => {
|
|
1454
|
+
const { targetNodes: i, eventType: n, handler: s } = o;
|
|
1455
|
+
!e || e === n ? i.forEach((r) => r.removeEventListener(n, s)) : t.push(o);
|
|
1456
|
+
}), this.$_events = t;
|
|
1457
|
+
},
|
|
1458
|
+
$_refreshListeners() {
|
|
1459
|
+
this.isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
|
|
1460
|
+
},
|
|
1461
|
+
$_handleGlobalClose(e, t = !1) {
|
|
1462
|
+
this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
|
|
1463
|
+
this.$_preventShow = !1;
|
|
1464
|
+
}, 300)));
|
|
1465
|
+
},
|
|
1466
|
+
$_detachPopperNode() {
|
|
1467
|
+
this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
|
|
1468
|
+
},
|
|
1469
|
+
$_swapTargetAttrs(e, t) {
|
|
1470
|
+
for (const o of this.$_targetNodes) {
|
|
1471
|
+
const i = o.getAttribute(e);
|
|
1472
|
+
i && (o.removeAttribute(e), o.setAttribute(t, i));
|
|
1473
|
+
}
|
|
1474
|
+
},
|
|
1475
|
+
$_applyAttrsToTarget(e) {
|
|
1476
|
+
for (const t of this.$_targetNodes)
|
|
1477
|
+
for (const o in e) {
|
|
1478
|
+
const i = e[o];
|
|
1479
|
+
i == null ? t.removeAttribute(o) : t.setAttribute(o, i);
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
$_updateParentShownChildren(e) {
|
|
1483
|
+
let t = this.parentPopper;
|
|
1484
|
+
for (; t; )
|
|
1485
|
+
e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.pendingHide && t.hide()), t = t.parentPopper;
|
|
1486
|
+
},
|
|
1487
|
+
$_isAimingPopper() {
|
|
1488
|
+
const e = this.$_referenceNode.getBoundingClientRect();
|
|
1489
|
+
if (oe >= e.left && oe <= e.right && ie >= e.top && ie <= e.bottom) {
|
|
1490
|
+
const t = this.$_popperNode.getBoundingClientRect(), o = oe - j, i = ie - W, n = t.left + t.width / 2 - j + (t.top + t.height / 2) - W + t.width + t.height, s = j + o * n, r = W + i * n;
|
|
1491
|
+
return ue(j, W, s, r, t.left, t.top, t.left, t.bottom) || // Left edge
|
|
1492
|
+
ue(j, W, s, r, t.left, t.top, t.right, t.top) || // Top edge
|
|
1493
|
+
ue(j, W, s, r, t.right, t.top, t.right, t.bottom) || // Right edge
|
|
1494
|
+
ue(j, W, s, r, t.left, t.bottom, t.right, t.bottom);
|
|
1495
|
+
}
|
|
1496
|
+
return !1;
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
render() {
|
|
1500
|
+
return this.$slots.default(this.slotData);
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
if (typeof document < "u" && typeof window < "u") {
|
|
1504
|
+
if (St) {
|
|
1505
|
+
const e = Q ? {
|
|
1506
|
+
passive: !0,
|
|
1507
|
+
capture: !0
|
|
1508
|
+
} : !0;
|
|
1509
|
+
document.addEventListener("touchstart", (t) => st(t, !0), e), document.addEventListener("touchend", (t) => rt(t, !0), e);
|
|
1510
|
+
} else
|
|
1511
|
+
window.addEventListener("mousedown", (e) => st(e, !1), !0), window.addEventListener("click", (e) => rt(e, !1), !0);
|
|
1512
|
+
window.addEventListener("resize", yo);
|
|
1513
|
+
}
|
|
1514
|
+
function st(e, t) {
|
|
1515
|
+
if (L.autoHideOnMousedown)
|
|
1516
|
+
At(e, t);
|
|
1517
|
+
else
|
|
1518
|
+
for (let o = 0; o < k.length; o++) {
|
|
1519
|
+
const i = k[o];
|
|
1520
|
+
try {
|
|
1521
|
+
i.mouseDownContains = i.popperNode().contains(e.target);
|
|
1522
|
+
} catch {
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
function rt(e, t) {
|
|
1527
|
+
L.autoHideOnMousedown || At(e, t);
|
|
1528
|
+
}
|
|
1529
|
+
function At(e, t) {
|
|
1530
|
+
const o = {};
|
|
1531
|
+
for (let i = k.length - 1; i >= 0; i--) {
|
|
1532
|
+
const n = k[i];
|
|
1533
|
+
try {
|
|
1534
|
+
const s = n.containsGlobalTarget = n.mouseDownContains || n.popperNode().contains(e.target);
|
|
1535
|
+
n.pendingHide = !1, requestAnimationFrame(() => {
|
|
1536
|
+
if (n.pendingHide = !1, !o[n.randomId] && at(n, s, e)) {
|
|
1537
|
+
if (n.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && s) {
|
|
1538
|
+
let a = n.parentPopper;
|
|
1539
|
+
for (; a; )
|
|
1540
|
+
o[a.randomId] = !0, a = a.parentPopper;
|
|
1541
|
+
return;
|
|
1542
|
+
}
|
|
1543
|
+
let r = n.parentPopper;
|
|
1544
|
+
for (; r && at(r, r.containsGlobalTarget, e); )
|
|
1545
|
+
r.$_handleGlobalClose(e, t), r = r.parentPopper;
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1548
|
+
} catch {
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
function at(e, t, o) {
|
|
1553
|
+
return o.closeAllPopover || o.closePopover && t || vo(e, o) && !t;
|
|
1554
|
+
}
|
|
1555
|
+
function vo(e, t) {
|
|
1556
|
+
if (typeof e.autoHide == "function") {
|
|
1557
|
+
const o = e.autoHide(t);
|
|
1558
|
+
return e.lastAutoHide = o, o;
|
|
1559
|
+
}
|
|
1560
|
+
return e.autoHide;
|
|
1561
|
+
}
|
|
1562
|
+
function yo() {
|
|
1563
|
+
for (let e = 0; e < k.length; e++)
|
|
1564
|
+
k[e].$_computePosition();
|
|
1565
|
+
}
|
|
1566
|
+
let j = 0, W = 0, oe = 0, ie = 0;
|
|
1567
|
+
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
1568
|
+
j = oe, W = ie, oe = e.clientX, ie = e.clientY;
|
|
1569
|
+
}, Q ? {
|
|
1570
|
+
passive: !0
|
|
1571
|
+
} : void 0);
|
|
1572
|
+
function ue(e, t, o, i, n, s, r, a) {
|
|
1573
|
+
const l = ((r - n) * (t - s) - (a - s) * (e - n)) / ((a - s) * (o - e) - (r - n) * (i - t)), d = ((o - e) * (t - s) - (i - t) * (e - n)) / ((a - s) * (o - e) - (r - n) * (i - t));
|
|
1574
|
+
return l >= 0 && l <= 1 && d >= 0 && d <= 1;
|
|
1575
|
+
}
|
|
1576
|
+
const $o = {
|
|
1577
|
+
extends: Ct()
|
|
1578
|
+
}, Ce = (e, t) => {
|
|
1579
|
+
const o = e.__vccOpts || e;
|
|
1580
|
+
for (const [i, n] of t)
|
|
1581
|
+
o[i] = n;
|
|
1582
|
+
return o;
|
|
1583
|
+
};
|
|
1584
|
+
function _o(e, t, o, i, n, s) {
|
|
1585
|
+
return I(), se("div", {
|
|
1586
|
+
ref: "reference",
|
|
1587
|
+
class: De(["v-popper", {
|
|
1588
|
+
"v-popper--shown": e.slotData.isShown
|
|
1589
|
+
}])
|
|
1590
|
+
}, [
|
|
1591
|
+
me(e.$slots, "default", Gt(qt(e.slotData)))
|
|
1592
|
+
], 2);
|
|
1593
|
+
}
|
|
1594
|
+
const xo = /* @__PURE__ */ Ce($o, [["render", _o]]);
|
|
1595
|
+
function bo() {
|
|
1596
|
+
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
1597
|
+
if (t > 0)
|
|
1598
|
+
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
1599
|
+
var o = e.indexOf("Trident/");
|
|
1600
|
+
if (o > 0) {
|
|
1601
|
+
var i = e.indexOf("rv:");
|
|
1602
|
+
return parseInt(e.substring(i + 3, e.indexOf(".", i)), 10);
|
|
1603
|
+
}
|
|
1604
|
+
var n = e.indexOf("Edge/");
|
|
1605
|
+
return n > 0 ? parseInt(e.substring(n + 5, e.indexOf(".", n)), 10) : -1;
|
|
1606
|
+
}
|
|
1607
|
+
let fe;
|
|
1608
|
+
function Be() {
|
|
1609
|
+
Be.init || (Be.init = !0, fe = bo() !== -1);
|
|
1610
|
+
}
|
|
1611
|
+
var Ae = {
|
|
1612
|
+
name: "ResizeObserver",
|
|
1613
|
+
props: {
|
|
1614
|
+
emitOnMount: {
|
|
1615
|
+
type: Boolean,
|
|
1616
|
+
default: !1
|
|
1617
|
+
},
|
|
1618
|
+
ignoreWidth: {
|
|
1619
|
+
type: Boolean,
|
|
1620
|
+
default: !1
|
|
1621
|
+
},
|
|
1622
|
+
ignoreHeight: {
|
|
1623
|
+
type: Boolean,
|
|
1624
|
+
default: !1
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
emits: [
|
|
1628
|
+
"notify"
|
|
1629
|
+
],
|
|
1630
|
+
mounted() {
|
|
1631
|
+
Be(), It(() => {
|
|
1632
|
+
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
1633
|
+
});
|
|
1634
|
+
const e = document.createElement("object");
|
|
1635
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", fe && this.$el.appendChild(e), e.data = "about:blank", fe || this.$el.appendChild(e);
|
|
1636
|
+
},
|
|
1637
|
+
beforeUnmount() {
|
|
1638
|
+
this.removeResizeHandlers();
|
|
1639
|
+
},
|
|
1640
|
+
methods: {
|
|
1641
|
+
compareAndNotify() {
|
|
1642
|
+
(!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
|
|
1643
|
+
},
|
|
1644
|
+
emitSize() {
|
|
1645
|
+
this.$emit("notify", {
|
|
1646
|
+
width: this._w,
|
|
1647
|
+
height: this._h
|
|
1648
|
+
});
|
|
1649
|
+
},
|
|
1650
|
+
addResizeHandlers() {
|
|
1651
|
+
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
1652
|
+
},
|
|
1653
|
+
removeResizeHandlers() {
|
|
1654
|
+
this._resizeObject && this._resizeObject.onload && (!fe && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
};
|
|
1658
|
+
const To = /* @__PURE__ */ jt();
|
|
1659
|
+
Dt("data-v-b329ee4c");
|
|
1660
|
+
const So = {
|
|
1661
|
+
class: "resize-observer",
|
|
1662
|
+
tabindex: "-1"
|
|
1663
|
+
};
|
|
1664
|
+
Ft();
|
|
1665
|
+
const Po = /* @__PURE__ */ To((e, t, o, i, n, s) => (I(), be("div", So)));
|
|
1666
|
+
Ae.render = Po;
|
|
1667
|
+
Ae.__scopeId = "data-v-b329ee4c";
|
|
1668
|
+
Ae.__file = "src/components/ResizeObserver.vue";
|
|
1669
|
+
const Ot = (e = "theme") => ({
|
|
1670
|
+
computed: {
|
|
1671
|
+
themeClass() {
|
|
1672
|
+
return wo(this[e]);
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
}), Co = xe({
|
|
1676
|
+
name: "VPopperContent",
|
|
1677
|
+
components: {
|
|
1678
|
+
ResizeObserver: Ae
|
|
1679
|
+
},
|
|
1680
|
+
mixins: [
|
|
1681
|
+
Ot()
|
|
1682
|
+
],
|
|
1683
|
+
props: {
|
|
1684
|
+
popperId: String,
|
|
1685
|
+
theme: String,
|
|
1686
|
+
shown: Boolean,
|
|
1687
|
+
mounted: Boolean,
|
|
1688
|
+
skipTransition: Boolean,
|
|
1689
|
+
autoHide: Boolean,
|
|
1690
|
+
handleResize: Boolean,
|
|
1691
|
+
classes: Object,
|
|
1692
|
+
result: Object
|
|
1693
|
+
},
|
|
1694
|
+
emits: [
|
|
1695
|
+
"hide",
|
|
1696
|
+
"resize"
|
|
1697
|
+
],
|
|
1698
|
+
methods: {
|
|
1699
|
+
toPx(e) {
|
|
1700
|
+
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
}), Ao = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Oo = {
|
|
1704
|
+
ref: "inner",
|
|
1705
|
+
class: "v-popper__inner"
|
|
1706
|
+
}, zo = /* @__PURE__ */ K("div", { class: "v-popper__arrow-outer" }, null, -1), No = /* @__PURE__ */ K("div", { class: "v-popper__arrow-inner" }, null, -1), ko = [
|
|
1707
|
+
zo,
|
|
1708
|
+
No
|
|
1709
|
+
];
|
|
1710
|
+
function Ho(e, t, o, i, n, s) {
|
|
1711
|
+
const r = ne("ResizeObserver");
|
|
1712
|
+
return I(), se("div", {
|
|
1713
|
+
id: e.popperId,
|
|
1714
|
+
ref: "popover",
|
|
1715
|
+
class: De(["v-popper__popper", [
|
|
1716
|
+
e.themeClass,
|
|
1717
|
+
e.classes.popperClass,
|
|
1718
|
+
{
|
|
1719
|
+
"v-popper__popper--shown": e.shown,
|
|
1720
|
+
"v-popper__popper--hidden": !e.shown,
|
|
1721
|
+
"v-popper__popper--show-from": e.classes.showFrom,
|
|
1722
|
+
"v-popper__popper--show-to": e.classes.showTo,
|
|
1723
|
+
"v-popper__popper--hide-from": e.classes.hideFrom,
|
|
1724
|
+
"v-popper__popper--hide-to": e.classes.hideTo,
|
|
1725
|
+
"v-popper__popper--skip-transition": e.skipTransition,
|
|
1726
|
+
"v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
|
|
1727
|
+
"v-popper__popper--no-positioning": !e.result
|
|
1728
|
+
}
|
|
1729
|
+
]]),
|
|
1730
|
+
style: Oe(e.result ? {
|
|
1731
|
+
position: e.result.strategy,
|
|
1732
|
+
transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
|
|
1733
|
+
} : void 0),
|
|
1734
|
+
"aria-hidden": e.shown ? "false" : "true",
|
|
1735
|
+
tabindex: e.autoHide ? 0 : void 0,
|
|
1736
|
+
"data-popper-placement": e.result ? e.result.placement : void 0,
|
|
1737
|
+
onKeyup: t[2] || (t[2] = Vt((a) => e.autoHide && e.$emit("hide"), ["esc"]))
|
|
1738
|
+
}, [
|
|
1739
|
+
K("div", {
|
|
1740
|
+
class: "v-popper__backdrop",
|
|
1741
|
+
onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
|
|
1742
|
+
}),
|
|
1743
|
+
K("div", {
|
|
1744
|
+
class: "v-popper__wrapper",
|
|
1745
|
+
style: Oe(e.result ? {
|
|
1746
|
+
transformOrigin: e.result.transformOrigin
|
|
1747
|
+
} : void 0)
|
|
1748
|
+
}, [
|
|
1749
|
+
K("div", Oo, [
|
|
1750
|
+
e.mounted ? (I(), se(Wt, { key: 0 }, [
|
|
1751
|
+
K("div", null, [
|
|
1752
|
+
me(e.$slots, "default")
|
|
1753
|
+
]),
|
|
1754
|
+
e.handleResize ? (I(), be(r, {
|
|
1755
|
+
key: 0,
|
|
1756
|
+
onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
|
|
1757
|
+
})) : Ve("", !0)
|
|
1758
|
+
], 64)) : Ve("", !0)
|
|
1759
|
+
], 512),
|
|
1760
|
+
K("div", {
|
|
1761
|
+
ref: "arrow",
|
|
1762
|
+
class: "v-popper__arrow-container",
|
|
1763
|
+
style: Oe(e.result ? {
|
|
1764
|
+
left: e.toPx(e.result.arrow.x),
|
|
1765
|
+
top: e.toPx(e.result.arrow.y)
|
|
1766
|
+
} : void 0)
|
|
1767
|
+
}, ko, 4)
|
|
1768
|
+
], 4)
|
|
1769
|
+
], 46, Ao);
|
|
1770
|
+
}
|
|
1771
|
+
const zt = /* @__PURE__ */ Ce(Co, [["render", Ho]]), Nt = {
|
|
1772
|
+
methods: {
|
|
1773
|
+
show(...e) {
|
|
1774
|
+
return this.$refs.popper.show(...e);
|
|
1775
|
+
},
|
|
1776
|
+
hide(...e) {
|
|
1777
|
+
return this.$refs.popper.hide(...e);
|
|
1778
|
+
},
|
|
1779
|
+
dispose(...e) {
|
|
1780
|
+
return this.$refs.popper.dispose(...e);
|
|
1781
|
+
},
|
|
1782
|
+
onResize(...e) {
|
|
1783
|
+
return this.$refs.popper.onResize(...e);
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
};
|
|
1787
|
+
let Ee = function() {
|
|
1788
|
+
};
|
|
1789
|
+
typeof window < "u" && (Ee = window.Element);
|
|
1790
|
+
const Lo = xe({
|
|
1791
|
+
name: "VPopperWrapper",
|
|
1792
|
+
components: {
|
|
1793
|
+
Popper: xo,
|
|
1794
|
+
PopperContent: zt
|
|
1795
|
+
},
|
|
1796
|
+
mixins: [
|
|
1797
|
+
Nt,
|
|
1798
|
+
Ot("finalTheme")
|
|
1799
|
+
],
|
|
1800
|
+
props: {
|
|
1801
|
+
theme: {
|
|
1802
|
+
type: String,
|
|
1803
|
+
default: null
|
|
1804
|
+
},
|
|
1805
|
+
referenceNode: {
|
|
1806
|
+
type: Function,
|
|
1807
|
+
default: null
|
|
1808
|
+
},
|
|
1809
|
+
shown: {
|
|
1810
|
+
type: Boolean,
|
|
1811
|
+
default: !1
|
|
1812
|
+
},
|
|
1813
|
+
showGroup: {
|
|
1814
|
+
type: String,
|
|
1815
|
+
default: null
|
|
1816
|
+
},
|
|
1817
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
1818
|
+
ariaId: {
|
|
1819
|
+
default: null
|
|
1820
|
+
},
|
|
1821
|
+
disabled: {
|
|
1822
|
+
type: Boolean,
|
|
1823
|
+
default: void 0
|
|
1824
|
+
},
|
|
1825
|
+
positioningDisabled: {
|
|
1826
|
+
type: Boolean,
|
|
1827
|
+
default: void 0
|
|
1828
|
+
},
|
|
1829
|
+
placement: {
|
|
1830
|
+
type: String,
|
|
1831
|
+
default: void 0
|
|
1832
|
+
},
|
|
1833
|
+
delay: {
|
|
1834
|
+
type: [String, Number, Object],
|
|
1835
|
+
default: void 0
|
|
1836
|
+
},
|
|
1837
|
+
distance: {
|
|
1838
|
+
type: [Number, String],
|
|
1839
|
+
default: void 0
|
|
1840
|
+
},
|
|
1841
|
+
skidding: {
|
|
1842
|
+
type: [Number, String],
|
|
1843
|
+
default: void 0
|
|
1844
|
+
},
|
|
1845
|
+
triggers: {
|
|
1846
|
+
type: Array,
|
|
1847
|
+
default: void 0
|
|
1848
|
+
},
|
|
1849
|
+
showTriggers: {
|
|
1850
|
+
type: [Array, Function],
|
|
1851
|
+
default: void 0
|
|
1852
|
+
},
|
|
1853
|
+
hideTriggers: {
|
|
1854
|
+
type: [Array, Function],
|
|
1855
|
+
default: void 0
|
|
1856
|
+
},
|
|
1857
|
+
popperTriggers: {
|
|
1858
|
+
type: Array,
|
|
1859
|
+
default: void 0
|
|
1860
|
+
},
|
|
1861
|
+
popperShowTriggers: {
|
|
1862
|
+
type: [Array, Function],
|
|
1863
|
+
default: void 0
|
|
1864
|
+
},
|
|
1865
|
+
popperHideTriggers: {
|
|
1866
|
+
type: [Array, Function],
|
|
1867
|
+
default: void 0
|
|
1868
|
+
},
|
|
1869
|
+
container: {
|
|
1870
|
+
type: [String, Object, Ee, Boolean],
|
|
1871
|
+
default: void 0
|
|
1872
|
+
},
|
|
1873
|
+
boundary: {
|
|
1874
|
+
type: [String, Ee],
|
|
1875
|
+
default: void 0
|
|
1876
|
+
},
|
|
1877
|
+
strategy: {
|
|
1878
|
+
type: String,
|
|
1879
|
+
default: void 0
|
|
1880
|
+
},
|
|
1881
|
+
autoHide: {
|
|
1882
|
+
type: [Boolean, Function],
|
|
1883
|
+
default: void 0
|
|
1884
|
+
},
|
|
1885
|
+
handleResize: {
|
|
1886
|
+
type: Boolean,
|
|
1887
|
+
default: void 0
|
|
1888
|
+
},
|
|
1889
|
+
instantMove: {
|
|
1890
|
+
type: Boolean,
|
|
1891
|
+
default: void 0
|
|
1892
|
+
},
|
|
1893
|
+
eagerMount: {
|
|
1894
|
+
type: Boolean,
|
|
1895
|
+
default: void 0
|
|
1896
|
+
},
|
|
1897
|
+
popperClass: {
|
|
1898
|
+
type: [String, Array, Object],
|
|
1899
|
+
default: void 0
|
|
1900
|
+
},
|
|
1901
|
+
computeTransformOrigin: {
|
|
1902
|
+
type: Boolean,
|
|
1903
|
+
default: void 0
|
|
1904
|
+
},
|
|
1905
|
+
/**
|
|
1906
|
+
* @deprecated
|
|
1907
|
+
*/
|
|
1908
|
+
autoMinSize: {
|
|
1909
|
+
type: Boolean,
|
|
1910
|
+
default: void 0
|
|
1911
|
+
},
|
|
1912
|
+
autoSize: {
|
|
1913
|
+
type: [Boolean, String],
|
|
1914
|
+
default: void 0
|
|
1915
|
+
},
|
|
1916
|
+
/**
|
|
1917
|
+
* @deprecated
|
|
1918
|
+
*/
|
|
1919
|
+
autoMaxSize: {
|
|
1920
|
+
type: Boolean,
|
|
1921
|
+
default: void 0
|
|
1922
|
+
},
|
|
1923
|
+
autoBoundaryMaxSize: {
|
|
1924
|
+
type: Boolean,
|
|
1925
|
+
default: void 0
|
|
1926
|
+
},
|
|
1927
|
+
preventOverflow: {
|
|
1928
|
+
type: Boolean,
|
|
1929
|
+
default: void 0
|
|
1930
|
+
},
|
|
1931
|
+
overflowPadding: {
|
|
1932
|
+
type: [Number, String],
|
|
1933
|
+
default: void 0
|
|
1934
|
+
},
|
|
1935
|
+
arrowPadding: {
|
|
1936
|
+
type: [Number, String],
|
|
1937
|
+
default: void 0
|
|
1938
|
+
},
|
|
1939
|
+
arrowOverflow: {
|
|
1940
|
+
type: Boolean,
|
|
1941
|
+
default: void 0
|
|
1942
|
+
},
|
|
1943
|
+
flip: {
|
|
1944
|
+
type: Boolean,
|
|
1945
|
+
default: void 0
|
|
1946
|
+
},
|
|
1947
|
+
shift: {
|
|
1948
|
+
type: Boolean,
|
|
1949
|
+
default: void 0
|
|
1950
|
+
},
|
|
1951
|
+
shiftCrossAxis: {
|
|
1952
|
+
type: Boolean,
|
|
1953
|
+
default: void 0
|
|
1954
|
+
},
|
|
1955
|
+
noAutoFocus: {
|
|
1956
|
+
type: Boolean,
|
|
1957
|
+
default: void 0
|
|
1958
|
+
},
|
|
1959
|
+
disposeTimeout: {
|
|
1960
|
+
type: Number,
|
|
1961
|
+
default: void 0
|
|
1962
|
+
}
|
|
1963
|
+
},
|
|
1964
|
+
emits: {
|
|
1965
|
+
show: () => !0,
|
|
1966
|
+
hide: () => !0,
|
|
1967
|
+
"update:shown": (e) => !0,
|
|
1968
|
+
"apply-show": () => !0,
|
|
1969
|
+
"apply-hide": () => !0,
|
|
1970
|
+
"close-group": () => !0,
|
|
1971
|
+
"close-directive": () => !0,
|
|
1972
|
+
"auto-hide": () => !0,
|
|
1973
|
+
resize: () => !0
|
|
1974
|
+
},
|
|
1975
|
+
computed: {
|
|
1976
|
+
finalTheme() {
|
|
1977
|
+
return this.theme ?? this.$options.vPopperTheme;
|
|
1978
|
+
}
|
|
1979
|
+
},
|
|
1980
|
+
methods: {
|
|
1981
|
+
getTargetNodes() {
|
|
1982
|
+
return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
});
|
|
1986
|
+
function Mo(e, t, o, i, n, s) {
|
|
1987
|
+
const r = ne("PopperContent"), a = ne("Popper");
|
|
1988
|
+
return I(), be(a, ht({ ref: "popper" }, e.$props, {
|
|
1989
|
+
theme: e.finalTheme,
|
|
1990
|
+
"target-nodes": e.getTargetNodes,
|
|
1991
|
+
"popper-node": () => e.$refs.popperContent.$el,
|
|
1992
|
+
class: [
|
|
1993
|
+
e.themeClass
|
|
1994
|
+
],
|
|
1995
|
+
onShow: t[0] || (t[0] = () => e.$emit("show")),
|
|
1996
|
+
onHide: t[1] || (t[1] = () => e.$emit("hide")),
|
|
1997
|
+
"onUpdate:shown": t[2] || (t[2] = (l) => e.$emit("update:shown", l)),
|
|
1998
|
+
onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
|
|
1999
|
+
onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
|
|
2000
|
+
onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
|
|
2001
|
+
onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
|
|
2002
|
+
onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
|
|
2003
|
+
onResize: t[8] || (t[8] = () => e.$emit("resize"))
|
|
2004
|
+
}), {
|
|
2005
|
+
default: ge(({
|
|
2006
|
+
popperId: l,
|
|
2007
|
+
isShown: d,
|
|
2008
|
+
shouldMountContent: f,
|
|
2009
|
+
skipTransition: c,
|
|
2010
|
+
autoHide: h,
|
|
2011
|
+
show: p,
|
|
2012
|
+
hide: u,
|
|
2013
|
+
handleResize: m,
|
|
2014
|
+
onResize: w,
|
|
2015
|
+
classes: g,
|
|
2016
|
+
result: v
|
|
2017
|
+
}) => [
|
|
2018
|
+
me(e.$slots, "default", {
|
|
2019
|
+
shown: d,
|
|
2020
|
+
show: p,
|
|
2021
|
+
hide: u
|
|
2022
|
+
}),
|
|
2023
|
+
ct(r, {
|
|
2024
|
+
ref: "popperContent",
|
|
2025
|
+
"popper-id": l,
|
|
2026
|
+
theme: e.finalTheme,
|
|
2027
|
+
shown: d,
|
|
2028
|
+
mounted: f,
|
|
2029
|
+
"skip-transition": c,
|
|
2030
|
+
"auto-hide": h,
|
|
2031
|
+
"handle-resize": m,
|
|
2032
|
+
classes: g,
|
|
2033
|
+
result: v,
|
|
2034
|
+
onHide: u,
|
|
2035
|
+
onResize: w
|
|
2036
|
+
}, {
|
|
2037
|
+
default: ge(() => [
|
|
2038
|
+
me(e.$slots, "popper", {
|
|
2039
|
+
shown: d,
|
|
2040
|
+
hide: u
|
|
2041
|
+
})
|
|
2042
|
+
]),
|
|
2043
|
+
_: 2
|
|
2044
|
+
}, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
2045
|
+
]),
|
|
2046
|
+
_: 3
|
|
2047
|
+
}, 16, ["theme", "target-nodes", "popper-node", "class"]);
|
|
2048
|
+
}
|
|
2049
|
+
const We = /* @__PURE__ */ Ce(Lo, [["render", Mo]]), Ro = {
|
|
2050
|
+
...We,
|
|
2051
|
+
name: "VDropdown",
|
|
2052
|
+
vPopperTheme: "dropdown"
|
|
2053
|
+
}, Bo = {
|
|
2054
|
+
...We,
|
|
2055
|
+
name: "VMenu",
|
|
2056
|
+
vPopperTheme: "menu"
|
|
2057
|
+
}, Eo = {
|
|
2058
|
+
...We,
|
|
2059
|
+
name: "VTooltip",
|
|
2060
|
+
vPopperTheme: "tooltip"
|
|
2061
|
+
}, Do = xe({
|
|
2062
|
+
name: "VTooltipDirective",
|
|
2063
|
+
components: {
|
|
2064
|
+
Popper: Ct(),
|
|
2065
|
+
PopperContent: zt
|
|
2066
|
+
},
|
|
2067
|
+
mixins: [
|
|
2068
|
+
Nt
|
|
2069
|
+
],
|
|
2070
|
+
inheritAttrs: !1,
|
|
2071
|
+
props: {
|
|
2072
|
+
theme: {
|
|
2073
|
+
type: String,
|
|
2074
|
+
default: "tooltip"
|
|
2075
|
+
},
|
|
2076
|
+
html: {
|
|
2077
|
+
type: Boolean,
|
|
2078
|
+
default: (e) => de(e.theme, "html")
|
|
2079
|
+
},
|
|
2080
|
+
content: {
|
|
2081
|
+
type: [String, Number, Function],
|
|
2082
|
+
default: null
|
|
2083
|
+
},
|
|
2084
|
+
loadingContent: {
|
|
2085
|
+
type: String,
|
|
2086
|
+
default: (e) => de(e.theme, "loadingContent")
|
|
2087
|
+
},
|
|
2088
|
+
targetNodes: {
|
|
2089
|
+
type: Function,
|
|
2090
|
+
required: !0
|
|
2091
|
+
}
|
|
2092
|
+
},
|
|
2093
|
+
data() {
|
|
2094
|
+
return {
|
|
2095
|
+
asyncContent: null
|
|
2096
|
+
};
|
|
2097
|
+
},
|
|
2098
|
+
computed: {
|
|
2099
|
+
isContentAsync() {
|
|
2100
|
+
return typeof this.content == "function";
|
|
2101
|
+
},
|
|
2102
|
+
loading() {
|
|
2103
|
+
return this.isContentAsync && this.asyncContent == null;
|
|
2104
|
+
},
|
|
2105
|
+
finalContent() {
|
|
2106
|
+
return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
|
|
2107
|
+
}
|
|
2108
|
+
},
|
|
2109
|
+
watch: {
|
|
2110
|
+
content: {
|
|
2111
|
+
handler() {
|
|
2112
|
+
this.fetchContent(!0);
|
|
2113
|
+
},
|
|
2114
|
+
immediate: !0
|
|
2115
|
+
},
|
|
2116
|
+
async finalContent() {
|
|
2117
|
+
await this.$nextTick(), this.$refs.popper.onResize();
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
created() {
|
|
2121
|
+
this.$_fetchId = 0;
|
|
2122
|
+
},
|
|
2123
|
+
methods: {
|
|
2124
|
+
fetchContent(e) {
|
|
2125
|
+
if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
|
|
2126
|
+
this.asyncContent = null, this.$_loading = !0;
|
|
2127
|
+
const t = ++this.$_fetchId, o = this.content(this);
|
|
2128
|
+
o.then ? o.then((i) => this.onResult(t, i)) : this.onResult(t, o);
|
|
2129
|
+
}
|
|
2130
|
+
},
|
|
2131
|
+
onResult(e, t) {
|
|
2132
|
+
e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
|
|
2133
|
+
},
|
|
2134
|
+
onShow() {
|
|
2135
|
+
this.$_isShown = !0, this.fetchContent();
|
|
2136
|
+
},
|
|
2137
|
+
onHide() {
|
|
2138
|
+
this.$_isShown = !1;
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
}), Fo = ["innerHTML"], Io = ["textContent"];
|
|
2142
|
+
function jo(e, t, o, i, n, s) {
|
|
2143
|
+
const r = ne("PopperContent"), a = ne("Popper");
|
|
2144
|
+
return I(), be(a, ht({ ref: "popper" }, e.$attrs, {
|
|
2145
|
+
theme: e.theme,
|
|
2146
|
+
"target-nodes": e.targetNodes,
|
|
2147
|
+
"popper-node": () => e.$refs.popperContent.$el,
|
|
2148
|
+
onApplyShow: e.onShow,
|
|
2149
|
+
onApplyHide: e.onHide
|
|
2150
|
+
}), {
|
|
2151
|
+
default: ge(({
|
|
2152
|
+
popperId: l,
|
|
2153
|
+
isShown: d,
|
|
2154
|
+
shouldMountContent: f,
|
|
2155
|
+
skipTransition: c,
|
|
2156
|
+
autoHide: h,
|
|
2157
|
+
hide: p,
|
|
2158
|
+
handleResize: u,
|
|
2159
|
+
onResize: m,
|
|
2160
|
+
classes: w,
|
|
2161
|
+
result: g
|
|
2162
|
+
}) => [
|
|
2163
|
+
ct(r, {
|
|
2164
|
+
ref: "popperContent",
|
|
2165
|
+
class: De({
|
|
2166
|
+
"v-popper--tooltip-loading": e.loading
|
|
2167
|
+
}),
|
|
2168
|
+
"popper-id": l,
|
|
2169
|
+
theme: e.theme,
|
|
2170
|
+
shown: d,
|
|
2171
|
+
mounted: f,
|
|
2172
|
+
"skip-transition": c,
|
|
2173
|
+
"auto-hide": h,
|
|
2174
|
+
"handle-resize": u,
|
|
2175
|
+
classes: w,
|
|
2176
|
+
result: g,
|
|
2177
|
+
onHide: p,
|
|
2178
|
+
onResize: m
|
|
2179
|
+
}, {
|
|
2180
|
+
default: ge(() => [
|
|
2181
|
+
e.html ? (I(), se("div", {
|
|
2182
|
+
key: 0,
|
|
2183
|
+
innerHTML: e.finalContent
|
|
2184
|
+
}, null, 8, Fo)) : (I(), se("div", {
|
|
2185
|
+
key: 1,
|
|
2186
|
+
textContent: Ut(e.finalContent)
|
|
2187
|
+
}, null, 8, Io))
|
|
2188
|
+
]),
|
|
2189
|
+
_: 2
|
|
2190
|
+
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
2191
|
+
]),
|
|
2192
|
+
_: 1
|
|
2193
|
+
}, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
2194
|
+
}
|
|
2195
|
+
const Wo = /* @__PURE__ */ Ce(Do, [["render", jo]]), kt = "v-popper--has-tooltip";
|
|
2196
|
+
function Vo(e, t) {
|
|
2197
|
+
let o = e.placement;
|
|
2198
|
+
if (!o && t)
|
|
2199
|
+
for (const i of Pt)
|
|
2200
|
+
t[i] && (o = i);
|
|
2201
|
+
return o || (o = de(e.theme || "tooltip", "placement")), o;
|
|
2202
|
+
}
|
|
2203
|
+
function Ht(e, t, o) {
|
|
2204
|
+
let i;
|
|
2205
|
+
const n = typeof t;
|
|
2206
|
+
return n === "string" ? i = { content: t } : t && n === "object" ? i = t : i = { content: !1 }, i.placement = Vo(i, o), i.targetNodes = () => [e], i.referenceNode = () => e, i;
|
|
2207
|
+
}
|
|
2208
|
+
let ke, pe, Go = 0;
|
|
2209
|
+
function qo() {
|
|
2210
|
+
if (ke)
|
|
2211
|
+
return;
|
|
2212
|
+
pe = He([]), ke = Yt({
|
|
2213
|
+
name: "VTooltipDirectiveApp",
|
|
2214
|
+
setup() {
|
|
2215
|
+
return {
|
|
2216
|
+
directives: pe
|
|
2217
|
+
};
|
|
2218
|
+
},
|
|
2219
|
+
render() {
|
|
2220
|
+
return this.directives.map((t) => Xt(Wo, {
|
|
2221
|
+
...t.options,
|
|
2222
|
+
shown: t.shown || t.options.shown,
|
|
2223
|
+
key: t.id
|
|
2224
|
+
}));
|
|
2225
|
+
},
|
|
2226
|
+
devtools: {
|
|
2227
|
+
hide: !0
|
|
2228
|
+
}
|
|
2229
|
+
});
|
|
2230
|
+
const e = document.createElement("div");
|
|
2231
|
+
document.body.appendChild(e), ke.mount(e);
|
|
2232
|
+
}
|
|
2233
|
+
function Yo(e, t, o) {
|
|
2234
|
+
qo();
|
|
2235
|
+
const i = He(Ht(e, t, o)), n = He(!1), s = {
|
|
2236
|
+
id: Go++,
|
|
2237
|
+
options: i,
|
|
2238
|
+
shown: n
|
|
2239
|
+
};
|
|
2240
|
+
return pe.value.push(s), e.classList && e.classList.add(kt), e.$_popper = {
|
|
2241
|
+
options: i,
|
|
2242
|
+
item: s,
|
|
2243
|
+
show() {
|
|
2244
|
+
n.value = !0;
|
|
2245
|
+
},
|
|
2246
|
+
hide() {
|
|
2247
|
+
n.value = !1;
|
|
2248
|
+
}
|
|
2249
|
+
};
|
|
2250
|
+
}
|
|
2251
|
+
function Lt(e) {
|
|
2252
|
+
if (e.$_popper) {
|
|
2253
|
+
const t = pe.value.indexOf(e.$_popper.item);
|
|
2254
|
+
t !== -1 && pe.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
|
|
2255
|
+
}
|
|
2256
|
+
e.classList && e.classList.remove(kt);
|
|
2257
|
+
}
|
|
2258
|
+
function lt(e, { value: t, modifiers: o }) {
|
|
2259
|
+
const i = Ht(e, t, o);
|
|
2260
|
+
if (!i.content || de(i.theme || "tooltip", "disabled"))
|
|
2261
|
+
Lt(e);
|
|
2262
|
+
else {
|
|
2263
|
+
let n;
|
|
2264
|
+
e.$_popper ? (n = e.$_popper, n.options.value = i) : n = Yo(e, t, o), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? n.show() : n.hide());
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
const Xo = {
|
|
2268
|
+
beforeMount: lt,
|
|
2269
|
+
updated: lt,
|
|
2270
|
+
beforeUnmount(e) {
|
|
2271
|
+
Lt(e);
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
function dt(e) {
|
|
2275
|
+
e.addEventListener("mousedown", _e), e.addEventListener("click", _e), e.addEventListener("touchstart", Mt, Q ? {
|
|
2276
|
+
passive: !0
|
|
2277
|
+
} : !1);
|
|
2278
|
+
}
|
|
2279
|
+
function pt(e) {
|
|
2280
|
+
e.removeEventListener("mousedown", _e), e.removeEventListener("click", _e), e.removeEventListener("touchstart", Mt), e.removeEventListener("touchend", Rt), e.removeEventListener("touchcancel", Bt);
|
|
2281
|
+
}
|
|
2282
|
+
function _e(e) {
|
|
2283
|
+
const t = e.currentTarget;
|
|
2284
|
+
e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
2285
|
+
}
|
|
2286
|
+
function Mt(e) {
|
|
2287
|
+
if (e.changedTouches.length === 1) {
|
|
2288
|
+
const t = e.currentTarget;
|
|
2289
|
+
t.$_vclosepopover_touch = !0;
|
|
2290
|
+
const o = e.changedTouches[0];
|
|
2291
|
+
t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend", Rt), t.addEventListener("touchcancel", Bt);
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
function Rt(e) {
|
|
2295
|
+
const t = e.currentTarget;
|
|
2296
|
+
if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
|
|
2297
|
+
const o = e.changedTouches[0], i = t.$_vclosepopover_touchPoint;
|
|
2298
|
+
e.closePopover = Math.abs(o.screenY - i.screenY) < 20 && Math.abs(o.screenX - i.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
function Bt(e) {
|
|
2302
|
+
const t = e.currentTarget;
|
|
2303
|
+
t.$_vclosepopover_touch = !1;
|
|
2304
|
+
}
|
|
2305
|
+
const Uo = {
|
|
2306
|
+
beforeMount(e, { value: t, modifiers: o }) {
|
|
2307
|
+
e.$_closePopoverModifiers = o, (typeof t > "u" || t) && dt(e);
|
|
2308
|
+
},
|
|
2309
|
+
updated(e, { value: t, oldValue: o, modifiers: i }) {
|
|
2310
|
+
e.$_closePopoverModifiers = i, t !== o && (typeof t > "u" || t ? dt(e) : pt(e));
|
|
2311
|
+
},
|
|
2312
|
+
beforeUnmount(e) {
|
|
2313
|
+
pt(e);
|
|
2314
|
+
}
|
|
2315
|
+
};
|
|
2316
|
+
function Ko(e, t = {}) {
|
|
2317
|
+
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Tt(L, t), e.directive("tooltip", Xo), e.directive("close-popper", Uo), e.component("VTooltip", Eo), e.component("VDropdown", Ro), e.component("VMenu", Bo));
|
|
2318
|
+
}
|
|
2319
|
+
const Jo = {
|
|
2320
|
+
// eslint-disable-next-line no-undef
|
|
2321
|
+
version: "5.2.2",
|
|
2322
|
+
install: Ko,
|
|
2323
|
+
options: L
|
|
2324
|
+
};
|
|
2325
|
+
export {
|
|
2326
|
+
Jo as G
|
|
2327
|
+
};
|
|
2328
|
+
//# sourceMappingURL=style-Bf1WJ5oD.js.map
|