@konnectio/core 4.0.63 → 4.0.65
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-3MggPKk9.js → ActionField-D5c9yQMq.js} +36 -28
- package/dist/ActionField-D5c9yQMq.js.br +0 -0
- package/dist/AvailabilitySkeleton-BfyLbK2o.js +299 -0
- package/dist/AvailabilitySkeleton-BfyLbK2o.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js} +934 -924
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CxZ-h3My.js.br +0 -0
- package/dist/{CheckoutWindow-DolJgk40.js → CheckoutWindow-B74NMuGr.js} +174 -166
- package/dist/CheckoutWindow-B74NMuGr.js.br +0 -0
- package/dist/{ErrorMessage-BksKCxAq.js → ErrorMessage-CWR5rjTx.js} +24 -16
- package/dist/ErrorMessage-CWR5rjTx.js.br +0 -0
- package/dist/EventAvailabilityForm-lFAnwVMX.js +125 -0
- package/dist/EventAvailabilityForm-lFAnwVMX.js.br +0 -0
- package/dist/Field-C4DyN4XC.js +58 -0
- package/dist/Field-C4DyN4XC.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js +18813 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-D7XjSTM3.js.br +0 -0
- package/dist/TermsOfService-Bx4b2VxT.js +44 -0
- package/dist/TermsOfService-Bx4b2VxT.js.br +0 -0
- package/dist/_-DmU4JLX1.js +20 -0
- package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js +77 -0
- package/dist/_.vue_vue_type_style_index_0_lang-B2Kq55VX.js.br +0 -0
- package/dist/_commonjsHelpers-BbdZelfp.js +25 -0
- package/dist/_commonjsHelpers-BbdZelfp.js.br +0 -0
- package/dist/{_sentry-release-injection-file-DEszgcWK.js → _sentry-release-injection-file-tJBg8sGS.js} +1643 -1635
- package/dist/_sentry-release-injection-file-tJBg8sGS.js.br +0 -0
- package/dist/availability.js +65 -55
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +29 -21
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +260 -252
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +64 -56
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +137 -129
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-SDJGsDep.js +134 -0
- package/dist/giftCard-SDJGsDep.js.br +0 -0
- package/dist/hotel.js +939 -920
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-GGoTX7a7.js → masonry.plugin-BhK5XQta.js} +860 -852
- package/dist/masonry.plugin-BhK5XQta.js.br +0 -0
- package/dist/{mitt-DnPlcQNp.js → mitt-CGFh35r5.js} +505 -497
- package/dist/mitt-CGFh35r5.js.br +0 -0
- package/dist/polyfill.js +6471 -6259
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-2RYcVxT9.js → style-BQlIFUN3.js} +418 -403
- package/dist/style-BQlIFUN3.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/{_commonjsHelpers-DEK47QeC.js → tracing-B1Jp160Y.js} +597 -544
- package/dist/tracing-B1Jp160Y.js.br +0 -0
- package/package.json +16 -16
- package/dist/ActionField-3MggPKk9.js.br +0 -0
- package/dist/AvailabilitySkeleton-DSgC6hn3.js +0 -293
- package/dist/AvailabilitySkeleton-DSgC6hn3.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CnYjbggZ.js.br +0 -0
- package/dist/CheckoutWindow-DolJgk40.js.br +0 -0
- package/dist/ErrorMessage-BksKCxAq.js.br +0 -0
- package/dist/EventAvailabilityForm-DZljldrC.js +0 -117
- package/dist/EventAvailabilityForm-DZljldrC.js.br +0 -0
- package/dist/Field-DGi_AnA6.js +0 -50
- package/dist/Field-DGi_AnA6.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js +0 -18734
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B7IfVdWJ.js.br +0 -0
- package/dist/TermsOfService-LDUTInOo.js +0 -36
- package/dist/TermsOfService-LDUTInOo.js.br +0 -0
- package/dist/_-CBEOFztf.js +0 -12
- package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js +0 -69
- package/dist/_.vue_vue_type_style_index_0_lang-DjuzMOwH.js.br +0 -0
- package/dist/_commonjsHelpers-DEK47QeC.js.br +0 -0
- package/dist/_sentry-release-injection-file-DEszgcWK.js.br +0 -0
- package/dist/giftCard-DLrIdehA.js +0 -126
- package/dist/giftCard-DLrIdehA.js.br +0 -0
- package/dist/masonry.plugin-GGoTX7a7.js.br +0 -0
- package/dist/mitt-DnPlcQNp.js.br +0 -0
- package/dist/style-2RYcVxT9.js.br +0 -0
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
import { d as
|
|
1
|
+
import { d as be, p as Ft, j as It, D as jt, a as I, b as Te, a5 as Wt, I as ne, g as se, e as K, F as Vt, l as ge, i as qe, P as ze, n as Fe, a0 as qt, w as we, f as ht, X as ut, V as Gt, W as Yt, r as He, k as Xt, J as Ut, t as Kt } from "./_sentry-release-injection-file-tJBg8sGS.js";
|
|
2
|
+
import { c as Zt, a as Jt } from "./tracing-B1Jp160Y.js";
|
|
2
3
|
(function() {
|
|
3
4
|
try {
|
|
4
5
|
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] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f9448659-6f3a-48ac-9b63-41a67314ab07", e._sentryDebugIdIdentifier = "sentry-dbid-f9448659-6f3a-48ac-9b63-41a67314ab07");
|
|
6
7
|
} catch {
|
|
7
8
|
}
|
|
8
9
|
})();
|
|
9
|
-
|
|
10
|
+
{
|
|
11
|
+
var he = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
12
|
+
he._sentryModuleMetadata = he._sentryModuleMetadata || {}, he._sentryModuleMetadata[new Error().stack] = Object.assign(
|
|
13
|
+
{},
|
|
14
|
+
he._sentryModuleMetadata[new Error().stack],
|
|
15
|
+
{ "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function oi(e) {
|
|
19
|
+
e.mixin(Zt({
|
|
20
|
+
trackComponents: !1
|
|
21
|
+
})), Jt(e);
|
|
22
|
+
}
|
|
23
|
+
const Qt = ["top", "right", "bottom", "left"], Ge = ["start", "end"], Ye = /* @__PURE__ */ Qt.reduce((e, t) => e.concat(t, t + "-" + Ge[0], t + "-" + Ge[1]), []), re = Math.min, U = Math.max, eo = {
|
|
10
24
|
left: "right",
|
|
11
25
|
right: "left",
|
|
12
26
|
bottom: "top",
|
|
13
27
|
top: "bottom"
|
|
14
|
-
},
|
|
28
|
+
}, to = {
|
|
15
29
|
start: "end",
|
|
16
30
|
end: "start"
|
|
17
31
|
};
|
|
@@ -24,35 +38,35 @@ function Z(e, t) {
|
|
|
24
38
|
function D(e) {
|
|
25
39
|
return e.split("-")[0];
|
|
26
40
|
}
|
|
27
|
-
function
|
|
41
|
+
function M(e) {
|
|
28
42
|
return e.split("-")[1];
|
|
29
43
|
}
|
|
30
|
-
function
|
|
44
|
+
function ft(e) {
|
|
31
45
|
return e === "x" ? "y" : "x";
|
|
32
46
|
}
|
|
33
|
-
function
|
|
47
|
+
function Ie(e) {
|
|
34
48
|
return e === "y" ? "height" : "width";
|
|
35
49
|
}
|
|
36
50
|
function ce(e) {
|
|
37
51
|
return ["top", "bottom"].includes(D(e)) ? "y" : "x";
|
|
38
52
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
53
|
+
function je(e) {
|
|
54
|
+
return ft(ce(e));
|
|
41
55
|
}
|
|
42
|
-
function
|
|
56
|
+
function mt(e, t, o) {
|
|
43
57
|
o === void 0 && (o = !1);
|
|
44
|
-
const i =
|
|
58
|
+
const i = M(e), n = je(e), s = Ie(n);
|
|
45
59
|
let r = n === "x" ? i === (o ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
46
60
|
return t.reference[s] > t.floating[s] && (r = ve(r)), [r, ve(r)];
|
|
47
61
|
}
|
|
48
|
-
function
|
|
62
|
+
function oo(e) {
|
|
49
63
|
const t = ve(e);
|
|
50
|
-
return [
|
|
64
|
+
return [ye(e), t, ye(t)];
|
|
51
65
|
}
|
|
52
|
-
function
|
|
53
|
-
return e.replace(/start|end/g, (t) =>
|
|
66
|
+
function ye(e) {
|
|
67
|
+
return e.replace(/start|end/g, (t) => to[t]);
|
|
54
68
|
}
|
|
55
|
-
function
|
|
69
|
+
function io(e, t, o) {
|
|
56
70
|
const i = ["left", "right"], n = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
57
71
|
switch (e) {
|
|
58
72
|
case "top":
|
|
@@ -65,15 +79,15 @@ function eo(e, t, o) {
|
|
|
65
79
|
return [];
|
|
66
80
|
}
|
|
67
81
|
}
|
|
68
|
-
function
|
|
69
|
-
const n =
|
|
70
|
-
let s =
|
|
71
|
-
return n && (s = s.map((r) => r + "-" + n), t && (s = s.concat(s.map(
|
|
82
|
+
function no(e, t, o, i) {
|
|
83
|
+
const n = M(e);
|
|
84
|
+
let s = io(D(e), o === "start", i);
|
|
85
|
+
return n && (s = s.map((r) => r + "-" + n), t && (s = s.concat(s.map(ye)))), s;
|
|
72
86
|
}
|
|
73
87
|
function ve(e) {
|
|
74
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
88
|
+
return e.replace(/left|right|bottom|top/g, (t) => eo[t]);
|
|
75
89
|
}
|
|
76
|
-
function
|
|
90
|
+
function so(e) {
|
|
77
91
|
return {
|
|
78
92
|
top: 0,
|
|
79
93
|
right: 0,
|
|
@@ -82,8 +96,8 @@ function oo(e) {
|
|
|
82
96
|
...e
|
|
83
97
|
};
|
|
84
98
|
}
|
|
85
|
-
function
|
|
86
|
-
return typeof e != "number" ?
|
|
99
|
+
function gt(e) {
|
|
100
|
+
return typeof e != "number" ? so(e) : {
|
|
87
101
|
top: e,
|
|
88
102
|
right: e,
|
|
89
103
|
bottom: e,
|
|
@@ -99,12 +113,12 @@ function ee(e) {
|
|
|
99
113
|
bottom: e.y + e.height
|
|
100
114
|
};
|
|
101
115
|
}
|
|
102
|
-
function
|
|
116
|
+
function Xe(e, t, o) {
|
|
103
117
|
let {
|
|
104
118
|
reference: i,
|
|
105
119
|
floating: n
|
|
106
120
|
} = e;
|
|
107
|
-
const s = ce(t), r =
|
|
121
|
+
const s = ce(t), r = je(t), a = Ie(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
122
|
let p;
|
|
109
123
|
switch (l) {
|
|
110
124
|
case "top":
|
|
@@ -137,7 +151,7 @@ function Ye(e, t, o) {
|
|
|
137
151
|
y: i.y
|
|
138
152
|
};
|
|
139
153
|
}
|
|
140
|
-
switch (
|
|
154
|
+
switch (M(t)) {
|
|
141
155
|
case "start":
|
|
142
156
|
p[r] -= h * (o && d ? -1 : 1);
|
|
143
157
|
break;
|
|
@@ -147,7 +161,7 @@ function Ye(e, t, o) {
|
|
|
147
161
|
}
|
|
148
162
|
return p;
|
|
149
163
|
}
|
|
150
|
-
const
|
|
164
|
+
const ro = async (e, t, o) => {
|
|
151
165
|
const {
|
|
152
166
|
placement: i = "bottom",
|
|
153
167
|
strategy: n = "absolute",
|
|
@@ -161,13 +175,13 @@ const io = async (e, t, o) => {
|
|
|
161
175
|
}), {
|
|
162
176
|
x: f,
|
|
163
177
|
y: c
|
|
164
|
-
} =
|
|
178
|
+
} = Xe(d, i, l), h = i, p = {}, u = 0;
|
|
165
179
|
for (let m = 0; m < a.length; m++) {
|
|
166
180
|
const {
|
|
167
181
|
name: w,
|
|
168
182
|
fn: g
|
|
169
183
|
} = a[m], {
|
|
170
|
-
x:
|
|
184
|
+
x: y,
|
|
171
185
|
y: $,
|
|
172
186
|
data: x,
|
|
173
187
|
reset: _
|
|
@@ -185,7 +199,7 @@ const io = async (e, t, o) => {
|
|
|
185
199
|
floating: t
|
|
186
200
|
}
|
|
187
201
|
});
|
|
188
|
-
if (f =
|
|
202
|
+
if (f = y ?? f, c = $ ?? c, p = {
|
|
189
203
|
...p,
|
|
190
204
|
[w]: {
|
|
191
205
|
...p[w],
|
|
@@ -199,7 +213,7 @@ const io = async (e, t, o) => {
|
|
|
199
213
|
}) : _.rects), {
|
|
200
214
|
x: f,
|
|
201
215
|
y: c
|
|
202
|
-
} =
|
|
216
|
+
} = Xe(d, h, l)), m = -1;
|
|
203
217
|
continue;
|
|
204
218
|
}
|
|
205
219
|
}
|
|
@@ -211,7 +225,7 @@ const io = async (e, t, o) => {
|
|
|
211
225
|
middlewareData: p
|
|
212
226
|
};
|
|
213
227
|
};
|
|
214
|
-
async function
|
|
228
|
+
async function Se(e, t) {
|
|
215
229
|
var o;
|
|
216
230
|
t === void 0 && (t = {});
|
|
217
231
|
const {
|
|
@@ -227,12 +241,12 @@ async function Te(e, t) {
|
|
|
227
241
|
elementContext: c = "floating",
|
|
228
242
|
altBoundary: h = !1,
|
|
229
243
|
padding: p = 0
|
|
230
|
-
} = Z(t, e), u =
|
|
244
|
+
} = Z(t, e), u = gt(p), w = a[h ? c === "floating" ? "reference" : "floating" : c], g = ee(await s.getClippingRect({
|
|
231
245
|
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
246
|
boundary: d,
|
|
233
247
|
rootBoundary: f,
|
|
234
248
|
strategy: l
|
|
235
|
-
})),
|
|
249
|
+
})), y = c === "floating" ? {
|
|
236
250
|
...r.floating,
|
|
237
251
|
x: i,
|
|
238
252
|
y: n
|
|
@@ -243,10 +257,10 @@ async function Te(e, t) {
|
|
|
243
257
|
x: 1,
|
|
244
258
|
y: 1
|
|
245
259
|
}, _ = ee(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
246
|
-
rect:
|
|
260
|
+
rect: y,
|
|
247
261
|
offsetParent: $,
|
|
248
262
|
strategy: l
|
|
249
|
-
}) :
|
|
263
|
+
}) : y);
|
|
250
264
|
return {
|
|
251
265
|
top: (g.top - _.top + u.top) / x.y,
|
|
252
266
|
bottom: (_.bottom - g.bottom + u.bottom) / x.y,
|
|
@@ -254,7 +268,7 @@ async function Te(e, t) {
|
|
|
254
268
|
right: (_.right - g.right + u.right) / x.x
|
|
255
269
|
};
|
|
256
270
|
}
|
|
257
|
-
const
|
|
271
|
+
const ao = (e) => ({
|
|
258
272
|
name: "arrow",
|
|
259
273
|
options: e,
|
|
260
274
|
async fn(t) {
|
|
@@ -272,18 +286,18 @@ const no = (e) => ({
|
|
|
272
286
|
} = Z(e, t) || {};
|
|
273
287
|
if (d == null)
|
|
274
288
|
return {};
|
|
275
|
-
const c =
|
|
289
|
+
const c = gt(f), h = {
|
|
276
290
|
x: o,
|
|
277
291
|
y: i
|
|
278
|
-
}, p =
|
|
292
|
+
}, p = je(n), u = Ie(p), m = await r.getDimensions(d), w = p === "y", g = w ? "top" : "left", y = 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
293
|
let T = b ? b[$] : 0;
|
|
280
294
|
(!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),
|
|
295
|
+
const O = x / 2 - _ / 2, z = T / 2 - m[u] / 2 - 1, S = re(c[g], z), k = re(c[y], z), P = S, Y = T - m[u] - k, C = T / 2 - m[u] / 2 + O, L = Le(P, C, Y), R = !l.arrow && M(n) != null && C != L && s.reference[u] / 2 - (C < P ? S : k) - m[u] / 2 < 0, F = R ? C < P ? C - P : C - Y : 0;
|
|
282
296
|
return {
|
|
283
297
|
[p]: h[p] + F,
|
|
284
298
|
data: {
|
|
285
|
-
[p]:
|
|
286
|
-
centerOffset: C -
|
|
299
|
+
[p]: L,
|
|
300
|
+
centerOffset: C - L - F,
|
|
287
301
|
...R && {
|
|
288
302
|
alignmentOffset: F
|
|
289
303
|
}
|
|
@@ -292,10 +306,10 @@ const no = (e) => ({
|
|
|
292
306
|
};
|
|
293
307
|
}
|
|
294
308
|
});
|
|
295
|
-
function
|
|
296
|
-
return (e ? [...o.filter((n) =>
|
|
309
|
+
function lo(e, t, o) {
|
|
310
|
+
return (e ? [...o.filter((n) => M(n) === e), ...o.filter((n) => M(n) !== e)] : o.filter((n) => D(n) === n)).filter((n) => e ? M(n) === e || (t ? ye(n) !== n : !1) : !0);
|
|
297
311
|
}
|
|
298
|
-
const
|
|
312
|
+
const po = function(e) {
|
|
299
313
|
return e === void 0 && (e = {}), {
|
|
300
314
|
name: "autoPlacement",
|
|
301
315
|
options: e,
|
|
@@ -310,21 +324,21 @@ const ro = function(e) {
|
|
|
310
324
|
} = t, {
|
|
311
325
|
crossAxis: f = !1,
|
|
312
326
|
alignment: c,
|
|
313
|
-
allowedPlacements: h =
|
|
327
|
+
allowedPlacements: h = Ye,
|
|
314
328
|
autoAlignment: p = !0,
|
|
315
329
|
...u
|
|
316
|
-
} = Z(e, t), m = c !== void 0 || h ===
|
|
317
|
-
if (
|
|
330
|
+
} = Z(e, t), m = c !== void 0 || h === Ye ? lo(c || null, p, h) : h, w = await Se(t, u), g = ((o = r.autoPlacement) == null ? void 0 : o.index) || 0, y = m[g];
|
|
331
|
+
if (y == null)
|
|
318
332
|
return {};
|
|
319
|
-
const $ =
|
|
320
|
-
if (a !==
|
|
333
|
+
const $ = mt(y, s, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
|
|
334
|
+
if (a !== y)
|
|
321
335
|
return {
|
|
322
336
|
reset: {
|
|
323
337
|
placement: m[0]
|
|
324
338
|
}
|
|
325
339
|
};
|
|
326
|
-
const x = [w[D(
|
|
327
|
-
placement:
|
|
340
|
+
const x = [w[D(y)], w[$[0]], w[$[1]]], _ = [...((i = r.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
341
|
+
placement: y,
|
|
328
342
|
overflows: x
|
|
329
343
|
}], b = m[g + 1];
|
|
330
344
|
if (b)
|
|
@@ -338,20 +352,20 @@ const ro = function(e) {
|
|
|
338
352
|
}
|
|
339
353
|
};
|
|
340
354
|
const T = _.map((S) => {
|
|
341
|
-
const
|
|
342
|
-
return [S.placement,
|
|
355
|
+
const k = M(S.placement);
|
|
356
|
+
return [S.placement, k && f ? (
|
|
343
357
|
// Check along the mainAxis and main crossAxis side.
|
|
344
358
|
S.overflows.slice(0, 2).reduce((P, Y) => P + Y, 0)
|
|
345
359
|
) : (
|
|
346
360
|
// Check only the mainAxis.
|
|
347
361
|
S.overflows[0]
|
|
348
362
|
), S.overflows];
|
|
349
|
-
}).sort((S,
|
|
363
|
+
}).sort((S, k) => S[1] - k[1]), z = ((n = T.filter((S) => S[2].slice(
|
|
350
364
|
0,
|
|
351
365
|
// Aligned placements should not check their opposite crossAxis
|
|
352
366
|
// side.
|
|
353
|
-
|
|
354
|
-
).every((
|
|
367
|
+
M(S[0]) ? 2 : 3
|
|
368
|
+
).every((k) => k <= 0))[0]) == null ? void 0 : n[0]) || T[0][0];
|
|
355
369
|
return z !== a ? {
|
|
356
370
|
data: {
|
|
357
371
|
index: g + 1,
|
|
@@ -363,7 +377,7 @@ const ro = function(e) {
|
|
|
363
377
|
} : {};
|
|
364
378
|
}
|
|
365
379
|
};
|
|
366
|
-
},
|
|
380
|
+
}, co = function(e) {
|
|
367
381
|
return e === void 0 && (e = {}), {
|
|
368
382
|
name: "flip",
|
|
369
383
|
options: e,
|
|
@@ -387,12 +401,12 @@ const ro = function(e) {
|
|
|
387
401
|
} = Z(e, t);
|
|
388
402
|
if ((o = s.arrow) != null && o.alignmentOffset)
|
|
389
403
|
return {};
|
|
390
|
-
const g = D(n),
|
|
391
|
-
!h && u !== "none" && x.push(...
|
|
392
|
-
const _ = [a, ...x], b = await
|
|
404
|
+
const g = D(n), y = D(a) === a, $ = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), x = h || (y || !m ? [ve(a)] : oo(a));
|
|
405
|
+
!h && u !== "none" && x.push(...no(a, m, u, $));
|
|
406
|
+
const _ = [a, ...x], b = await Se(t, w), T = [];
|
|
393
407
|
let O = ((i = s.flip) == null ? void 0 : i.overflows) || [];
|
|
394
408
|
if (f && T.push(b[g]), c) {
|
|
395
|
-
const P =
|
|
409
|
+
const P = mt(n, r, $);
|
|
396
410
|
T.push(b[P[0]], b[P[1]]);
|
|
397
411
|
}
|
|
398
412
|
if (O = [...O, {
|
|
@@ -411,13 +425,13 @@ const ro = function(e) {
|
|
|
411
425
|
placement: Y
|
|
412
426
|
}
|
|
413
427
|
};
|
|
414
|
-
let C = (S = O.filter((
|
|
428
|
+
let C = (S = O.filter((L) => L.overflows[0] <= 0).sort((L, R) => L.overflows[1] - R.overflows[1])[0]) == null ? void 0 : S.placement;
|
|
415
429
|
if (!C)
|
|
416
430
|
switch (p) {
|
|
417
431
|
case "bestFit": {
|
|
418
|
-
var
|
|
419
|
-
const
|
|
420
|
-
|
|
432
|
+
var k;
|
|
433
|
+
const L = (k = O.map((R) => [R.placement, R.overflows.filter((F) => F > 0).reduce((F, Dt) => F + Dt, 0)]).sort((R, F) => R[1] - F[1])[0]) == null ? void 0 : k[0];
|
|
434
|
+
L && (C = L);
|
|
421
435
|
break;
|
|
422
436
|
}
|
|
423
437
|
case "initialPlacement":
|
|
@@ -435,12 +449,12 @@ const ro = function(e) {
|
|
|
435
449
|
}
|
|
436
450
|
};
|
|
437
451
|
};
|
|
438
|
-
async function
|
|
452
|
+
async function ho(e, t) {
|
|
439
453
|
const {
|
|
440
454
|
placement: o,
|
|
441
455
|
platform: i,
|
|
442
456
|
elements: n
|
|
443
|
-
} = e, s = await (i.isRTL == null ? void 0 : i.isRTL(n.floating)), r = D(o), a =
|
|
457
|
+
} = e, s = await (i.isRTL == null ? void 0 : i.isRTL(n.floating)), r = D(o), a = M(o), l = ce(o) === "y", d = ["left", "top"].includes(r) ? -1 : 1, f = s && l ? -1 : 1, c = Z(t, e);
|
|
444
458
|
let {
|
|
445
459
|
mainAxis: h,
|
|
446
460
|
crossAxis: p,
|
|
@@ -463,7 +477,7 @@ async function lo(e, t) {
|
|
|
463
477
|
y: p * f
|
|
464
478
|
};
|
|
465
479
|
}
|
|
466
|
-
const
|
|
480
|
+
const uo = function(e) {
|
|
467
481
|
return e === void 0 && (e = 0), {
|
|
468
482
|
name: "offset",
|
|
469
483
|
options: e,
|
|
@@ -471,7 +485,7 @@ const po = function(e) {
|
|
|
471
485
|
const {
|
|
472
486
|
x: o,
|
|
473
487
|
y: i
|
|
474
|
-
} = t, n = await
|
|
488
|
+
} = t, n = await ho(t, e);
|
|
475
489
|
return {
|
|
476
490
|
x: o + n.x,
|
|
477
491
|
y: i + n.y,
|
|
@@ -479,7 +493,7 @@ const po = function(e) {
|
|
|
479
493
|
};
|
|
480
494
|
}
|
|
481
495
|
};
|
|
482
|
-
},
|
|
496
|
+
}, fo = function(e) {
|
|
483
497
|
return e === void 0 && (e = {}), {
|
|
484
498
|
name: "shift",
|
|
485
499
|
options: e,
|
|
@@ -495,11 +509,11 @@ const po = function(e) {
|
|
|
495
509
|
fn: (w) => {
|
|
496
510
|
let {
|
|
497
511
|
x: g,
|
|
498
|
-
y
|
|
512
|
+
y
|
|
499
513
|
} = w;
|
|
500
514
|
return {
|
|
501
515
|
x: g,
|
|
502
|
-
y
|
|
516
|
+
y
|
|
503
517
|
};
|
|
504
518
|
}
|
|
505
519
|
},
|
|
@@ -507,15 +521,15 @@ const po = function(e) {
|
|
|
507
521
|
} = Z(e, t), d = {
|
|
508
522
|
x: o,
|
|
509
523
|
y: i
|
|
510
|
-
}, f = await
|
|
524
|
+
}, f = await Se(t, l), c = ce(D(n)), h = ft(c);
|
|
511
525
|
let p = d[h], u = d[c];
|
|
512
526
|
if (s) {
|
|
513
|
-
const w = h === "y" ? "top" : "left", g = h === "y" ? "bottom" : "right",
|
|
514
|
-
p = Le(
|
|
527
|
+
const w = h === "y" ? "top" : "left", g = h === "y" ? "bottom" : "right", y = p + f[w], $ = p - f[g];
|
|
528
|
+
p = Le(y, p, $);
|
|
515
529
|
}
|
|
516
530
|
if (r) {
|
|
517
|
-
const w = c === "y" ? "top" : "left", g = c === "y" ? "bottom" : "right",
|
|
518
|
-
u = Le(
|
|
531
|
+
const w = c === "y" ? "top" : "left", g = c === "y" ? "bottom" : "right", y = u + f[w], $ = u - f[g];
|
|
532
|
+
u = Le(y, u, $);
|
|
519
533
|
}
|
|
520
534
|
const m = a.fn({
|
|
521
535
|
...t,
|
|
@@ -531,7 +545,7 @@ const po = function(e) {
|
|
|
531
545
|
};
|
|
532
546
|
}
|
|
533
547
|
};
|
|
534
|
-
},
|
|
548
|
+
}, mo = function(e) {
|
|
535
549
|
return e === void 0 && (e = {}), {
|
|
536
550
|
name: "size",
|
|
537
551
|
options: e,
|
|
@@ -545,22 +559,22 @@ const po = function(e) {
|
|
|
545
559
|
apply: r = () => {
|
|
546
560
|
},
|
|
547
561
|
...a
|
|
548
|
-
} = Z(e, t), l = await
|
|
562
|
+
} = Z(e, t), l = await Se(t, a), d = D(o), f = M(o), c = ce(o) === "y", {
|
|
549
563
|
width: h,
|
|
550
564
|
height: p
|
|
551
565
|
} = i.floating;
|
|
552
566
|
let u, m;
|
|
553
567
|
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],
|
|
568
|
+
const w = p - l[u], g = h - l[m], y = !t.middlewareData.shift;
|
|
555
569
|
let $ = w, x = g;
|
|
556
570
|
if (c) {
|
|
557
571
|
const b = h - l.left - l.right;
|
|
558
|
-
x = f ||
|
|
572
|
+
x = f || y ? re(g, b) : b;
|
|
559
573
|
} else {
|
|
560
574
|
const b = p - l.top - l.bottom;
|
|
561
|
-
$ = f ||
|
|
575
|
+
$ = f || y ? re(w, b) : b;
|
|
562
576
|
}
|
|
563
|
-
if (
|
|
577
|
+
if (y && !f) {
|
|
564
578
|
const b = U(l.left, 0), T = U(l.right, 0), O = U(l.top, 0), z = U(l.bottom, 0);
|
|
565
579
|
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
580
|
}
|
|
@@ -582,26 +596,26 @@ function A(e) {
|
|
|
582
596
|
var t;
|
|
583
597
|
return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
584
598
|
}
|
|
585
|
-
function
|
|
599
|
+
function E(e) {
|
|
586
600
|
return A(e).getComputedStyle(e);
|
|
587
601
|
}
|
|
588
|
-
const
|
|
589
|
-
function
|
|
590
|
-
const t =
|
|
602
|
+
const Ue = Math.min, te = Math.max, $e = Math.round;
|
|
603
|
+
function wt(e) {
|
|
604
|
+
const t = E(e);
|
|
591
605
|
let o = parseFloat(t.width), i = parseFloat(t.height);
|
|
592
|
-
const n = e.offsetWidth, s = e.offsetHeight, r =
|
|
606
|
+
const n = e.offsetWidth, s = e.offsetHeight, r = $e(o) !== n || $e(i) !== s;
|
|
593
607
|
return r && (o = n, i = s), { width: o, height: i, fallback: r };
|
|
594
608
|
}
|
|
595
|
-
function
|
|
609
|
+
function G(e) {
|
|
596
610
|
return vt(e) ? (e.nodeName || "").toLowerCase() : "";
|
|
597
611
|
}
|
|
598
|
-
let
|
|
599
|
-
function
|
|
600
|
-
if (
|
|
612
|
+
let ue;
|
|
613
|
+
function yt() {
|
|
614
|
+
if (ue) return ue;
|
|
601
615
|
const e = navigator.userAgentData;
|
|
602
|
-
return e && Array.isArray(e.brands) ? (
|
|
616
|
+
return e && Array.isArray(e.brands) ? (ue = e.brands.map((t) => t.brand + "/" + t.version).join(" "), ue) : navigator.userAgent;
|
|
603
617
|
}
|
|
604
|
-
function
|
|
618
|
+
function B(e) {
|
|
605
619
|
return e instanceof A(e).HTMLElement;
|
|
606
620
|
}
|
|
607
621
|
function V(e) {
|
|
@@ -610,172 +624,172 @@ function V(e) {
|
|
|
610
624
|
function vt(e) {
|
|
611
625
|
return e instanceof A(e).Node;
|
|
612
626
|
}
|
|
613
|
-
function
|
|
627
|
+
function Ke(e) {
|
|
614
628
|
return typeof ShadowRoot > "u" ? !1 : e instanceof A(e).ShadowRoot || e instanceof ShadowRoot;
|
|
615
629
|
}
|
|
616
|
-
function
|
|
617
|
-
const { overflow: t, overflowX: o, overflowY: i, display: n } =
|
|
630
|
+
function Pe(e) {
|
|
631
|
+
const { overflow: t, overflowX: o, overflowY: i, display: n } = E(e);
|
|
618
632
|
return /auto|scroll|overlay|hidden|clip/.test(t + i + o) && !["inline", "contents"].includes(n);
|
|
619
633
|
}
|
|
620
|
-
function
|
|
621
|
-
return ["table", "td", "th"].includes(
|
|
634
|
+
function go(e) {
|
|
635
|
+
return ["table", "td", "th"].includes(G(e));
|
|
622
636
|
}
|
|
623
|
-
function
|
|
624
|
-
const t = /firefox/i.test(
|
|
637
|
+
function Re(e) {
|
|
638
|
+
const t = /firefox/i.test(yt()), o = E(e), i = o.backdropFilter || o.WebkitBackdropFilter;
|
|
625
639
|
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
640
|
const s = o.contain;
|
|
627
641
|
return s != null && s.includes(n);
|
|
628
642
|
});
|
|
629
643
|
}
|
|
630
|
-
function
|
|
631
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
644
|
+
function $t() {
|
|
645
|
+
return !/^((?!chrome|android).)*safari/i.test(yt());
|
|
632
646
|
}
|
|
633
|
-
function
|
|
634
|
-
return ["html", "body", "#document"].includes(
|
|
647
|
+
function We(e) {
|
|
648
|
+
return ["html", "body", "#document"].includes(G(e));
|
|
635
649
|
}
|
|
636
|
-
function
|
|
650
|
+
function _t(e) {
|
|
637
651
|
return V(e) ? e : e.contextElement;
|
|
638
652
|
}
|
|
639
|
-
const
|
|
653
|
+
const xt = { x: 1, y: 1 };
|
|
640
654
|
function J(e) {
|
|
641
|
-
const t =
|
|
642
|
-
if (!
|
|
643
|
-
const o = t.getBoundingClientRect(), { width: i, height: n, fallback: s } =
|
|
644
|
-
let r = (s ?
|
|
655
|
+
const t = _t(e);
|
|
656
|
+
if (!B(t)) return xt;
|
|
657
|
+
const o = t.getBoundingClientRect(), { width: i, height: n, fallback: s } = wt(t);
|
|
658
|
+
let r = (s ? $e(o.width) : o.width) / i, a = (s ? $e(o.height) : o.height) / n;
|
|
645
659
|
return r && Number.isFinite(r) || (r = 1), a && Number.isFinite(a) || (a = 1), { x: r, y: a };
|
|
646
660
|
}
|
|
647
661
|
function ae(e, t, o, i) {
|
|
648
662
|
var n, s;
|
|
649
663
|
t === void 0 && (t = !1), o === void 0 && (o = !1);
|
|
650
|
-
const r = e.getBoundingClientRect(), a =
|
|
651
|
-
let l =
|
|
664
|
+
const r = e.getBoundingClientRect(), a = _t(e);
|
|
665
|
+
let l = xt;
|
|
652
666
|
t && (i ? V(i) && (l = J(i)) : l = J(e));
|
|
653
|
-
const d = a ? A(a) : window, f =
|
|
667
|
+
const d = a ? A(a) : window, f = !$t() && o;
|
|
654
668
|
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
669
|
if (a) {
|
|
656
670
|
const m = A(a), w = i && V(i) ? A(i) : i;
|
|
657
671
|
let g = m.frameElement;
|
|
658
672
|
for (; g && i && w !== m; ) {
|
|
659
|
-
const
|
|
660
|
-
$.x += (g.clientLeft + parseFloat(x.paddingLeft)) *
|
|
673
|
+
const y = J(g), $ = g.getBoundingClientRect(), x = getComputedStyle(g);
|
|
674
|
+
$.x += (g.clientLeft + parseFloat(x.paddingLeft)) * y.x, $.y += (g.clientTop + parseFloat(x.paddingTop)) * y.y, c *= y.x, h *= y.y, p *= y.x, u *= y.y, c += $.x, h += $.y, g = A(g).frameElement;
|
|
661
675
|
}
|
|
662
676
|
}
|
|
663
677
|
return { width: p, height: u, top: h, right: c + p, bottom: h + u, left: c, x: c, y: h };
|
|
664
678
|
}
|
|
665
|
-
function
|
|
679
|
+
function q(e) {
|
|
666
680
|
return ((vt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
667
681
|
}
|
|
668
|
-
function
|
|
682
|
+
function Ce(e) {
|
|
669
683
|
return V(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
|
|
670
684
|
}
|
|
671
|
-
function
|
|
672
|
-
return ae(
|
|
685
|
+
function bt(e) {
|
|
686
|
+
return ae(q(e)).left + Ce(e).scrollLeft;
|
|
673
687
|
}
|
|
674
688
|
function le(e) {
|
|
675
|
-
if (
|
|
676
|
-
const t = e.assignedSlot || e.parentNode ||
|
|
677
|
-
return
|
|
689
|
+
if (G(e) === "html") return e;
|
|
690
|
+
const t = e.assignedSlot || e.parentNode || Ke(e) && e.host || q(e);
|
|
691
|
+
return Ke(t) ? t.host : t;
|
|
678
692
|
}
|
|
679
|
-
function
|
|
693
|
+
function Tt(e) {
|
|
680
694
|
const t = le(e);
|
|
681
|
-
return
|
|
695
|
+
return We(t) ? t.ownerDocument.body : B(t) && Pe(t) ? t : Tt(t);
|
|
682
696
|
}
|
|
683
|
-
function
|
|
697
|
+
function _e(e, t) {
|
|
684
698
|
var o;
|
|
685
699
|
t === void 0 && (t = []);
|
|
686
|
-
const i =
|
|
687
|
-
return n ? t.concat(s, s.visualViewport || [],
|
|
700
|
+
const i = Tt(e), n = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = A(i);
|
|
701
|
+
return n ? t.concat(s, s.visualViewport || [], Pe(i) ? i : []) : t.concat(i, _e(i));
|
|
688
702
|
}
|
|
689
|
-
function
|
|
703
|
+
function Ze(e, t, o) {
|
|
690
704
|
return t === "viewport" ? ee(function(i, n) {
|
|
691
|
-
const s = A(i), r =
|
|
705
|
+
const s = A(i), r = q(i), a = s.visualViewport;
|
|
692
706
|
let l = r.clientWidth, d = r.clientHeight, f = 0, c = 0;
|
|
693
707
|
if (a) {
|
|
694
708
|
l = a.width, d = a.height;
|
|
695
|
-
const h =
|
|
709
|
+
const h = $t();
|
|
696
710
|
(h || !h && n === "fixed") && (f = a.offsetLeft, c = a.offsetTop);
|
|
697
711
|
}
|
|
698
712
|
return { width: l, height: d, x: f, y: c };
|
|
699
713
|
}(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 =
|
|
714
|
+
const s = ae(i, !0, n === "fixed"), r = s.top + i.clientTop, a = s.left + i.clientLeft, l = B(i) ? J(i) : { x: 1, y: 1 };
|
|
701
715
|
return { width: i.clientWidth * l.x, height: i.clientHeight * l.y, x: a * l.x, y: r * l.y };
|
|
702
716
|
}(t, o)) : ee(function(i) {
|
|
703
|
-
const n =
|
|
704
|
-
let d = -s.scrollLeft +
|
|
717
|
+
const n = q(i), s = Ce(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);
|
|
718
|
+
let d = -s.scrollLeft + bt(i);
|
|
705
719
|
const f = -s.scrollTop;
|
|
706
|
-
return
|
|
707
|
-
}(
|
|
708
|
-
}
|
|
709
|
-
function Ze(e) {
|
|
710
|
-
return E(e) && B(e).position !== "fixed" ? e.offsetParent : null;
|
|
720
|
+
return E(r).direction === "rtl" && (d += te(n.clientWidth, r.clientWidth) - a), { width: a, height: l, x: d, y: f };
|
|
721
|
+
}(q(e)));
|
|
711
722
|
}
|
|
712
723
|
function Je(e) {
|
|
724
|
+
return B(e) && E(e).position !== "fixed" ? e.offsetParent : null;
|
|
725
|
+
}
|
|
726
|
+
function Qe(e) {
|
|
713
727
|
const t = A(e);
|
|
714
|
-
let o =
|
|
715
|
-
for (; o &&
|
|
716
|
-
return o && (
|
|
728
|
+
let o = Je(e);
|
|
729
|
+
for (; o && go(o) && E(o).position === "static"; ) o = Je(o);
|
|
730
|
+
return o && (G(o) === "html" || G(o) === "body" && E(o).position === "static" && !Re(o)) ? t : o || function(i) {
|
|
717
731
|
let n = le(i);
|
|
718
|
-
for (;
|
|
719
|
-
if (
|
|
732
|
+
for (; B(n) && !We(n); ) {
|
|
733
|
+
if (Re(n)) return n;
|
|
720
734
|
n = le(n);
|
|
721
735
|
}
|
|
722
736
|
return null;
|
|
723
737
|
}(e) || t;
|
|
724
738
|
}
|
|
725
|
-
function
|
|
726
|
-
const i =
|
|
739
|
+
function wo(e, t, o) {
|
|
740
|
+
const i = B(t), n = q(t), s = ae(e, !0, o === "fixed", t);
|
|
727
741
|
let r = { scrollLeft: 0, scrollTop: 0 };
|
|
728
742
|
const a = { x: 0, y: 0 };
|
|
729
|
-
if (i || !i && o !== "fixed") if ((
|
|
743
|
+
if (i || !i && o !== "fixed") if ((G(t) !== "body" || Pe(n)) && (r = Ce(t)), B(t)) {
|
|
730
744
|
const l = ae(t, !0);
|
|
731
745
|
a.x = l.x + t.clientLeft, a.y = l.y + t.clientTop;
|
|
732
|
-
} else n && (a.x =
|
|
746
|
+
} else n && (a.x = bt(n));
|
|
733
747
|
return { x: s.left + r.scrollLeft - a.x, y: s.top + r.scrollTop - a.y, width: s.width, height: s.height };
|
|
734
748
|
}
|
|
735
|
-
const
|
|
749
|
+
const yo = { getClippingRect: function(e) {
|
|
736
750
|
let { element: t, boundary: o, rootBoundary: i, strategy: n } = e;
|
|
737
751
|
const s = o === "clippingAncestors" ? function(d, f) {
|
|
738
752
|
const c = f.get(d);
|
|
739
753
|
if (c) return c;
|
|
740
|
-
let h =
|
|
741
|
-
const u =
|
|
754
|
+
let h = _e(d).filter((w) => V(w) && G(w) !== "body"), p = null;
|
|
755
|
+
const u = E(d).position === "fixed";
|
|
742
756
|
let m = u ? le(d) : d;
|
|
743
|
-
for (; V(m) && !
|
|
744
|
-
const w =
|
|
745
|
-
(u ? g || p : g || w.position !== "static" || !p || !["absolute", "fixed"].includes(p.position)) ? p = w : h = h.filter((
|
|
757
|
+
for (; V(m) && !We(m); ) {
|
|
758
|
+
const w = E(m), g = Re(m);
|
|
759
|
+
(u ? g || p : g || w.position !== "static" || !p || !["absolute", "fixed"].includes(p.position)) ? p = w : h = h.filter((y) => y !== m), m = le(m);
|
|
746
760
|
}
|
|
747
761
|
return f.set(d, h), h;
|
|
748
762
|
}(t, this._c) : [].concat(o), r = [...s, i], a = r[0], l = r.reduce((d, f) => {
|
|
749
|
-
const c =
|
|
750
|
-
return d.top = te(c.top, d.top), d.right =
|
|
751
|
-
},
|
|
763
|
+
const c = Ze(t, f, n);
|
|
764
|
+
return d.top = te(c.top, d.top), d.right = Ue(c.right, d.right), d.bottom = Ue(c.bottom, d.bottom), d.left = te(c.left, d.left), d;
|
|
765
|
+
}, Ze(t, a, n));
|
|
752
766
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
753
767
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
|
|
754
768
|
let { rect: t, offsetParent: o, strategy: i } = e;
|
|
755
|
-
const n =
|
|
769
|
+
const n = B(o), s = q(o);
|
|
756
770
|
if (o === s) return t;
|
|
757
771
|
let r = { scrollLeft: 0, scrollTop: 0 }, a = { x: 1, y: 1 };
|
|
758
772
|
const l = { x: 0, y: 0 };
|
|
759
|
-
if ((n || !n && i !== "fixed") && ((
|
|
773
|
+
if ((n || !n && i !== "fixed") && ((G(o) !== "body" || Pe(s)) && (r = Ce(o)), B(o))) {
|
|
760
774
|
const d = ae(o);
|
|
761
775
|
a = J(o), l.x = d.x + o.clientLeft, l.y = d.y + o.clientTop;
|
|
762
776
|
}
|
|
763
777
|
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
778
|
}, isElement: V, getDimensions: function(e) {
|
|
765
|
-
return
|
|
766
|
-
}, getOffsetParent:
|
|
779
|
+
return B(e) ? wt(e) : e.getBoundingClientRect();
|
|
780
|
+
}, getOffsetParent: Qe, getDocumentElement: q, getScale: J, async getElementRects(e) {
|
|
767
781
|
let { reference: t, floating: o, strategy: i } = e;
|
|
768
|
-
const n = this.getOffsetParent ||
|
|
769
|
-
return { reference:
|
|
770
|
-
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) =>
|
|
771
|
-
const i = /* @__PURE__ */ new Map(), n = { platform:
|
|
772
|
-
return
|
|
782
|
+
const n = this.getOffsetParent || Qe, s = this.getDimensions;
|
|
783
|
+
return { reference: wo(t, await n(o), i), floating: { x: 0, y: 0, ...await s(o) } };
|
|
784
|
+
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => E(e).direction === "rtl" }, vo = (e, t, o) => {
|
|
785
|
+
const i = /* @__PURE__ */ new Map(), n = { platform: yo, ...o }, s = { ...n.platform, _c: i };
|
|
786
|
+
return ro(e, t, { ...n, platform: s });
|
|
773
787
|
};
|
|
774
|
-
function
|
|
788
|
+
function St(e, t) {
|
|
775
789
|
for (const o in t)
|
|
776
|
-
Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ?
|
|
790
|
+
Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ? St(e[o], t[o]) : e[o] = t[o]);
|
|
777
791
|
}
|
|
778
|
-
const
|
|
792
|
+
const H = {
|
|
779
793
|
// Disable popper components
|
|
780
794
|
disabled: !1,
|
|
781
795
|
// Default position offset along main axis (px)
|
|
@@ -855,25 +869,25 @@ const L = {
|
|
|
855
869
|
}
|
|
856
870
|
};
|
|
857
871
|
function de(e, t) {
|
|
858
|
-
let o =
|
|
872
|
+
let o = H.themes[e] || {}, i;
|
|
859
873
|
do
|
|
860
|
-
i = o[t], typeof i > "u" ? o.$extend ? o =
|
|
874
|
+
i = o[t], typeof i > "u" ? o.$extend ? o = H.themes[o.$extend] || {} : (o = null, i = H[t]) : o = null;
|
|
861
875
|
while (o);
|
|
862
876
|
return i;
|
|
863
877
|
}
|
|
864
|
-
function
|
|
878
|
+
function $o(e) {
|
|
865
879
|
const t = [e];
|
|
866
|
-
let o =
|
|
880
|
+
let o = H.themes[e] || {};
|
|
867
881
|
do
|
|
868
|
-
o.$extend && !o.$resetCss ? (t.push(o.$extend), o =
|
|
882
|
+
o.$extend && !o.$resetCss ? (t.push(o.$extend), o = H.themes[o.$extend] || {}) : o = null;
|
|
869
883
|
while (o);
|
|
870
884
|
return t.map((i) => `v-popper--theme-${i}`);
|
|
871
885
|
}
|
|
872
|
-
function
|
|
886
|
+
function et(e) {
|
|
873
887
|
const t = [e];
|
|
874
|
-
let o =
|
|
888
|
+
let o = H.themes[e] || {};
|
|
875
889
|
do
|
|
876
|
-
o.$extend ? (t.push(o.$extend), o =
|
|
890
|
+
o.$extend ? (t.push(o.$extend), o = H.themes[o.$extend] || {}) : o = null;
|
|
877
891
|
while (o);
|
|
878
892
|
return t;
|
|
879
893
|
}
|
|
@@ -890,50 +904,50 @@ if (typeof window < "u") {
|
|
|
890
904
|
} catch {
|
|
891
905
|
}
|
|
892
906
|
}
|
|
893
|
-
let
|
|
894
|
-
typeof window < "u" && typeof navigator < "u" && (
|
|
895
|
-
const
|
|
907
|
+
let Pt = !1;
|
|
908
|
+
typeof window < "u" && typeof navigator < "u" && (Pt = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
|
|
909
|
+
const Ct = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
|
|
896
910
|
t,
|
|
897
911
|
`${t}-start`,
|
|
898
912
|
`${t}-end`
|
|
899
|
-
]), []),
|
|
913
|
+
]), []), tt = {
|
|
900
914
|
hover: "mouseenter",
|
|
901
915
|
focus: "focus",
|
|
902
916
|
click: "click",
|
|
903
917
|
touch: "touchstart",
|
|
904
918
|
pointer: "pointerdown"
|
|
905
|
-
},
|
|
919
|
+
}, ot = {
|
|
906
920
|
hover: "mouseleave",
|
|
907
921
|
focus: "blur",
|
|
908
922
|
click: "click",
|
|
909
923
|
touch: "touchend",
|
|
910
924
|
pointer: "pointerup"
|
|
911
925
|
};
|
|
912
|
-
function
|
|
926
|
+
function it(e, t) {
|
|
913
927
|
const o = e.indexOf(t);
|
|
914
928
|
o !== -1 && e.splice(o, 1);
|
|
915
929
|
}
|
|
916
|
-
function
|
|
930
|
+
function ke() {
|
|
917
931
|
return new Promise((e) => requestAnimationFrame(() => {
|
|
918
932
|
requestAnimationFrame(e);
|
|
919
933
|
}));
|
|
920
934
|
}
|
|
921
|
-
const
|
|
935
|
+
const N = [];
|
|
922
936
|
let X = null;
|
|
923
|
-
const
|
|
924
|
-
function
|
|
925
|
-
let t =
|
|
926
|
-
return t || (t =
|
|
937
|
+
const nt = {};
|
|
938
|
+
function st(e) {
|
|
939
|
+
let t = nt[e];
|
|
940
|
+
return t || (t = nt[e] = []), t;
|
|
927
941
|
}
|
|
928
|
-
let
|
|
942
|
+
let Ee = function() {
|
|
929
943
|
};
|
|
930
|
-
typeof window < "u" && (
|
|
931
|
-
function
|
|
944
|
+
typeof window < "u" && (Ee = window.Element);
|
|
945
|
+
function v(e) {
|
|
932
946
|
return function(t) {
|
|
933
947
|
return de(t.theme, e);
|
|
934
948
|
};
|
|
935
949
|
}
|
|
936
|
-
const Ne = "__floating-vue__popper",
|
|
950
|
+
const Ne = "__floating-vue__popper", At = () => be({
|
|
937
951
|
name: "VPopper",
|
|
938
952
|
provide() {
|
|
939
953
|
return {
|
|
@@ -976,147 +990,147 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
976
990
|
},
|
|
977
991
|
disabled: {
|
|
978
992
|
type: Boolean,
|
|
979
|
-
default:
|
|
993
|
+
default: v("disabled")
|
|
980
994
|
},
|
|
981
995
|
positioningDisabled: {
|
|
982
996
|
type: Boolean,
|
|
983
|
-
default:
|
|
997
|
+
default: v("positioningDisabled")
|
|
984
998
|
},
|
|
985
999
|
placement: {
|
|
986
1000
|
type: String,
|
|
987
|
-
default:
|
|
988
|
-
validator: (e) =>
|
|
1001
|
+
default: v("placement"),
|
|
1002
|
+
validator: (e) => Ct.includes(e)
|
|
989
1003
|
},
|
|
990
1004
|
delay: {
|
|
991
1005
|
type: [String, Number, Object],
|
|
992
|
-
default:
|
|
1006
|
+
default: v("delay")
|
|
993
1007
|
},
|
|
994
1008
|
distance: {
|
|
995
1009
|
type: [Number, String],
|
|
996
|
-
default:
|
|
1010
|
+
default: v("distance")
|
|
997
1011
|
},
|
|
998
1012
|
skidding: {
|
|
999
1013
|
type: [Number, String],
|
|
1000
|
-
default:
|
|
1014
|
+
default: v("skidding")
|
|
1001
1015
|
},
|
|
1002
1016
|
triggers: {
|
|
1003
1017
|
type: Array,
|
|
1004
|
-
default:
|
|
1018
|
+
default: v("triggers")
|
|
1005
1019
|
},
|
|
1006
1020
|
showTriggers: {
|
|
1007
1021
|
type: [Array, Function],
|
|
1008
|
-
default:
|
|
1022
|
+
default: v("showTriggers")
|
|
1009
1023
|
},
|
|
1010
1024
|
hideTriggers: {
|
|
1011
1025
|
type: [Array, Function],
|
|
1012
|
-
default:
|
|
1026
|
+
default: v("hideTriggers")
|
|
1013
1027
|
},
|
|
1014
1028
|
popperTriggers: {
|
|
1015
1029
|
type: Array,
|
|
1016
|
-
default:
|
|
1030
|
+
default: v("popperTriggers")
|
|
1017
1031
|
},
|
|
1018
1032
|
popperShowTriggers: {
|
|
1019
1033
|
type: [Array, Function],
|
|
1020
|
-
default:
|
|
1034
|
+
default: v("popperShowTriggers")
|
|
1021
1035
|
},
|
|
1022
1036
|
popperHideTriggers: {
|
|
1023
1037
|
type: [Array, Function],
|
|
1024
|
-
default:
|
|
1038
|
+
default: v("popperHideTriggers")
|
|
1025
1039
|
},
|
|
1026
1040
|
container: {
|
|
1027
|
-
type: [String, Object,
|
|
1028
|
-
default:
|
|
1041
|
+
type: [String, Object, Ee, Boolean],
|
|
1042
|
+
default: v("container")
|
|
1029
1043
|
},
|
|
1030
1044
|
boundary: {
|
|
1031
|
-
type: [String,
|
|
1032
|
-
default:
|
|
1045
|
+
type: [String, Ee],
|
|
1046
|
+
default: v("boundary")
|
|
1033
1047
|
},
|
|
1034
1048
|
strategy: {
|
|
1035
1049
|
type: String,
|
|
1036
1050
|
validator: (e) => ["absolute", "fixed"].includes(e),
|
|
1037
|
-
default:
|
|
1051
|
+
default: v("strategy")
|
|
1038
1052
|
},
|
|
1039
1053
|
autoHide: {
|
|
1040
1054
|
type: [Boolean, Function],
|
|
1041
|
-
default:
|
|
1055
|
+
default: v("autoHide")
|
|
1042
1056
|
},
|
|
1043
1057
|
handleResize: {
|
|
1044
1058
|
type: Boolean,
|
|
1045
|
-
default:
|
|
1059
|
+
default: v("handleResize")
|
|
1046
1060
|
},
|
|
1047
1061
|
instantMove: {
|
|
1048
1062
|
type: Boolean,
|
|
1049
|
-
default:
|
|
1063
|
+
default: v("instantMove")
|
|
1050
1064
|
},
|
|
1051
1065
|
eagerMount: {
|
|
1052
1066
|
type: Boolean,
|
|
1053
|
-
default:
|
|
1067
|
+
default: v("eagerMount")
|
|
1054
1068
|
},
|
|
1055
1069
|
popperClass: {
|
|
1056
1070
|
type: [String, Array, Object],
|
|
1057
|
-
default:
|
|
1071
|
+
default: v("popperClass")
|
|
1058
1072
|
},
|
|
1059
1073
|
computeTransformOrigin: {
|
|
1060
1074
|
type: Boolean,
|
|
1061
|
-
default:
|
|
1075
|
+
default: v("computeTransformOrigin")
|
|
1062
1076
|
},
|
|
1063
1077
|
/**
|
|
1064
1078
|
* @deprecated
|
|
1065
1079
|
*/
|
|
1066
1080
|
autoMinSize: {
|
|
1067
1081
|
type: Boolean,
|
|
1068
|
-
default:
|
|
1082
|
+
default: v("autoMinSize")
|
|
1069
1083
|
},
|
|
1070
1084
|
autoSize: {
|
|
1071
1085
|
type: [Boolean, String],
|
|
1072
|
-
default:
|
|
1086
|
+
default: v("autoSize")
|
|
1073
1087
|
},
|
|
1074
1088
|
/**
|
|
1075
1089
|
* @deprecated
|
|
1076
1090
|
*/
|
|
1077
1091
|
autoMaxSize: {
|
|
1078
1092
|
type: Boolean,
|
|
1079
|
-
default:
|
|
1093
|
+
default: v("autoMaxSize")
|
|
1080
1094
|
},
|
|
1081
1095
|
autoBoundaryMaxSize: {
|
|
1082
1096
|
type: Boolean,
|
|
1083
|
-
default:
|
|
1097
|
+
default: v("autoBoundaryMaxSize")
|
|
1084
1098
|
},
|
|
1085
1099
|
preventOverflow: {
|
|
1086
1100
|
type: Boolean,
|
|
1087
|
-
default:
|
|
1101
|
+
default: v("preventOverflow")
|
|
1088
1102
|
},
|
|
1089
1103
|
overflowPadding: {
|
|
1090
1104
|
type: [Number, String],
|
|
1091
|
-
default:
|
|
1105
|
+
default: v("overflowPadding")
|
|
1092
1106
|
},
|
|
1093
1107
|
arrowPadding: {
|
|
1094
1108
|
type: [Number, String],
|
|
1095
|
-
default:
|
|
1109
|
+
default: v("arrowPadding")
|
|
1096
1110
|
},
|
|
1097
1111
|
arrowOverflow: {
|
|
1098
1112
|
type: Boolean,
|
|
1099
|
-
default:
|
|
1113
|
+
default: v("arrowOverflow")
|
|
1100
1114
|
},
|
|
1101
1115
|
flip: {
|
|
1102
1116
|
type: Boolean,
|
|
1103
|
-
default:
|
|
1117
|
+
default: v("flip")
|
|
1104
1118
|
},
|
|
1105
1119
|
shift: {
|
|
1106
1120
|
type: Boolean,
|
|
1107
|
-
default:
|
|
1121
|
+
default: v("shift")
|
|
1108
1122
|
},
|
|
1109
1123
|
shiftCrossAxis: {
|
|
1110
1124
|
type: Boolean,
|
|
1111
|
-
default:
|
|
1125
|
+
default: v("shiftCrossAxis")
|
|
1112
1126
|
},
|
|
1113
1127
|
noAutoFocus: {
|
|
1114
1128
|
type: Boolean,
|
|
1115
|
-
default:
|
|
1129
|
+
default: v("noAutoFocus")
|
|
1116
1130
|
},
|
|
1117
1131
|
disposeTimeout: {
|
|
1118
1132
|
type: Number,
|
|
1119
|
-
default:
|
|
1133
|
+
default: v("disposeTimeout")
|
|
1120
1134
|
}
|
|
1121
1135
|
},
|
|
1122
1136
|
emits: {
|
|
@@ -1279,21 +1293,21 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1279
1293
|
strategy: this.strategy,
|
|
1280
1294
|
middleware: []
|
|
1281
1295
|
};
|
|
1282
|
-
(this.distance || this.skidding) && e.middleware.push(
|
|
1296
|
+
(this.distance || this.skidding) && e.middleware.push(uo({
|
|
1283
1297
|
mainAxis: this.distance,
|
|
1284
1298
|
crossAxis: this.skidding
|
|
1285
1299
|
}));
|
|
1286
1300
|
const t = this.placement.startsWith("auto");
|
|
1287
|
-
if (t ? e.middleware.push(
|
|
1301
|
+
if (t ? e.middleware.push(po({
|
|
1288
1302
|
alignment: this.placement.split("-")[1] ?? ""
|
|
1289
|
-
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(
|
|
1303
|
+
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(fo({
|
|
1290
1304
|
padding: this.overflowPadding,
|
|
1291
1305
|
boundary: this.boundary,
|
|
1292
1306
|
crossAxis: this.shiftCrossAxis
|
|
1293
|
-
})), !t && this.flip && e.middleware.push(
|
|
1307
|
+
})), !t && this.flip && e.middleware.push(co({
|
|
1294
1308
|
padding: this.overflowPadding,
|
|
1295
1309
|
boundary: this.boundary
|
|
1296
|
-
}))), e.middleware.push(
|
|
1310
|
+
}))), e.middleware.push(ao({
|
|
1297
1311
|
element: this.$_arrowNode,
|
|
1298
1312
|
padding: this.arrowPadding
|
|
1299
1313
|
})), this.arrowOverflow && e.middleware.push({
|
|
@@ -1327,14 +1341,14 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1327
1341
|
}
|
|
1328
1342
|
});
|
|
1329
1343
|
}
|
|
1330
|
-
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(
|
|
1344
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(mo({
|
|
1331
1345
|
boundary: this.boundary,
|
|
1332
1346
|
padding: this.overflowPadding,
|
|
1333
1347
|
apply: ({ availableWidth: i, availableHeight: n }) => {
|
|
1334
1348
|
this.$_innerNode.style.maxWidth = i != null ? `${i}px` : null, this.$_innerNode.style.maxHeight = n != null ? `${n}px` : null;
|
|
1335
1349
|
}
|
|
1336
1350
|
})));
|
|
1337
|
-
const o = await
|
|
1351
|
+
const o = await vo(this.$_referenceNode, this.$_popperNode, e);
|
|
1338
1352
|
Object.assign(this.result, {
|
|
1339
1353
|
x: o.x,
|
|
1340
1354
|
y: o.y,
|
|
@@ -1365,9 +1379,9 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1365
1379
|
return parseInt(t && t[e] || t || 0);
|
|
1366
1380
|
},
|
|
1367
1381
|
async $_applyShow(e = !1) {
|
|
1368
|
-
clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await
|
|
1369
|
-
|
|
1370
|
-
|
|
1382
|
+
clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await ke(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
|
|
1383
|
+
..._e(this.$_referenceNode),
|
|
1384
|
+
..._e(this.$_popperNode)
|
|
1371
1385
|
], "scroll", () => {
|
|
1372
1386
|
this.$_computePosition();
|
|
1373
1387
|
}));
|
|
@@ -1386,13 +1400,13 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1386
1400
|
const e = this.showGroup;
|
|
1387
1401
|
if (e) {
|
|
1388
1402
|
let t;
|
|
1389
|
-
for (let o = 0; o <
|
|
1390
|
-
t =
|
|
1403
|
+
for (let o = 0; o < N.length; o++)
|
|
1404
|
+
t = N[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
|
|
1391
1405
|
}
|
|
1392
|
-
|
|
1393
|
-
for (const t of
|
|
1394
|
-
|
|
1395
|
-
this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await
|
|
1406
|
+
N.push(this), document.body.classList.add("v-popper--some-open");
|
|
1407
|
+
for (const t of et(this.theme))
|
|
1408
|
+
st(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
|
|
1409
|
+
this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await ke(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
|
|
1396
1410
|
},
|
|
1397
1411
|
async $_applyHide(e = !1) {
|
|
1398
1412
|
if (this.shownChildren.size > 0) {
|
|
@@ -1401,10 +1415,10 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1401
1415
|
}
|
|
1402
1416
|
if (clearTimeout(this.$_scheduleTimer), !this.isShown)
|
|
1403
1417
|
return;
|
|
1404
|
-
this.skipTransition = e,
|
|
1405
|
-
for (const o of
|
|
1406
|
-
const i =
|
|
1407
|
-
|
|
1418
|
+
this.skipTransition = e, it(N, this), N.length === 0 && document.body.classList.remove("v-popper--some-open");
|
|
1419
|
+
for (const o of et(this.theme)) {
|
|
1420
|
+
const i = st(o);
|
|
1421
|
+
it(i, this), i.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
|
|
1408
1422
|
}
|
|
1409
1423
|
X === this && (X = null), this.isShown = !1, this.$_applyAttrsToTarget({
|
|
1410
1424
|
"aria-describedby": void 0,
|
|
@@ -1413,7 +1427,7 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1413
1427
|
const t = this.disposeTimeout;
|
|
1414
1428
|
t !== null && (this.$_disposeTimer = setTimeout(() => {
|
|
1415
1429
|
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
|
|
1430
|
+
}, 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 ke(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
|
|
1417
1431
|
},
|
|
1418
1432
|
$_autoShowHide() {
|
|
1419
1433
|
this.shown ? this.show() : this.hide();
|
|
@@ -1430,11 +1444,11 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1430
1444
|
const e = (o) => {
|
|
1431
1445
|
this.isShown && !this.$_hideInProgress || (o.usedByTooltip = !0, !this.$_preventShow && this.show({ event: o }));
|
|
1432
1446
|
};
|
|
1433
|
-
this.$_registerTriggerListeners(this.$_targetNodes,
|
|
1447
|
+
this.$_registerTriggerListeners(this.$_targetNodes, tt, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], tt, this.popperTriggers, this.popperShowTriggers, e);
|
|
1434
1448
|
const t = (o) => {
|
|
1435
1449
|
o.usedByTooltip || this.hide({ event: o });
|
|
1436
1450
|
};
|
|
1437
|
-
this.$_registerTriggerListeners(this.$_targetNodes,
|
|
1451
|
+
this.$_registerTriggerListeners(this.$_targetNodes, ot, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], ot, this.popperTriggers, this.popperHideTriggers, t);
|
|
1438
1452
|
},
|
|
1439
1453
|
$_registerEventListeners(e, t, o) {
|
|
1440
1454
|
this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((i) => i.addEventListener(t, o, Q ? {
|
|
@@ -1488,10 +1502,10 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1488
1502
|
const e = this.$_referenceNode.getBoundingClientRect();
|
|
1489
1503
|
if (oe >= e.left && oe <= e.right && ie >= e.top && ie <= e.bottom) {
|
|
1490
1504
|
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
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1505
|
+
return fe(j, W, s, r, t.left, t.top, t.left, t.bottom) || // Left edge
|
|
1506
|
+
fe(j, W, s, r, t.left, t.top, t.right, t.top) || // Top edge
|
|
1507
|
+
fe(j, W, s, r, t.right, t.top, t.right, t.bottom) || // Right edge
|
|
1508
|
+
fe(j, W, s, r, t.left, t.bottom, t.right, t.bottom);
|
|
1495
1509
|
}
|
|
1496
1510
|
return !1;
|
|
1497
1511
|
}
|
|
@@ -1501,39 +1515,39 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1501
1515
|
}
|
|
1502
1516
|
});
|
|
1503
1517
|
if (typeof document < "u" && typeof window < "u") {
|
|
1504
|
-
if (
|
|
1518
|
+
if (Pt) {
|
|
1505
1519
|
const e = Q ? {
|
|
1506
1520
|
passive: !0,
|
|
1507
1521
|
capture: !0
|
|
1508
1522
|
} : !0;
|
|
1509
|
-
document.addEventListener("touchstart", (t) =>
|
|
1523
|
+
document.addEventListener("touchstart", (t) => rt(t, !0), e), document.addEventListener("touchend", (t) => at(t, !0), e);
|
|
1510
1524
|
} else
|
|
1511
|
-
window.addEventListener("mousedown", (e) =>
|
|
1512
|
-
window.addEventListener("resize",
|
|
1525
|
+
window.addEventListener("mousedown", (e) => rt(e, !1), !0), window.addEventListener("click", (e) => at(e, !1), !0);
|
|
1526
|
+
window.addEventListener("resize", xo);
|
|
1513
1527
|
}
|
|
1514
|
-
function
|
|
1515
|
-
if (
|
|
1516
|
-
|
|
1528
|
+
function rt(e, t) {
|
|
1529
|
+
if (H.autoHideOnMousedown)
|
|
1530
|
+
Ot(e, t);
|
|
1517
1531
|
else
|
|
1518
|
-
for (let o = 0; o <
|
|
1519
|
-
const i =
|
|
1532
|
+
for (let o = 0; o < N.length; o++) {
|
|
1533
|
+
const i = N[o];
|
|
1520
1534
|
try {
|
|
1521
1535
|
i.mouseDownContains = i.popperNode().contains(e.target);
|
|
1522
1536
|
} catch {
|
|
1523
1537
|
}
|
|
1524
1538
|
}
|
|
1525
1539
|
}
|
|
1526
|
-
function
|
|
1527
|
-
|
|
1540
|
+
function at(e, t) {
|
|
1541
|
+
H.autoHideOnMousedown || Ot(e, t);
|
|
1528
1542
|
}
|
|
1529
|
-
function
|
|
1543
|
+
function Ot(e, t) {
|
|
1530
1544
|
const o = {};
|
|
1531
|
-
for (let i =
|
|
1532
|
-
const n =
|
|
1545
|
+
for (let i = N.length - 1; i >= 0; i--) {
|
|
1546
|
+
const n = N[i];
|
|
1533
1547
|
try {
|
|
1534
1548
|
const s = n.containsGlobalTarget = n.mouseDownContains || n.popperNode().contains(e.target);
|
|
1535
1549
|
n.pendingHide = !1, requestAnimationFrame(() => {
|
|
1536
|
-
if (n.pendingHide = !1, !o[n.randomId] &&
|
|
1550
|
+
if (n.pendingHide = !1, !o[n.randomId] && lt(n, s, e)) {
|
|
1537
1551
|
if (n.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && s) {
|
|
1538
1552
|
let a = n.parentPopper;
|
|
1539
1553
|
for (; a; )
|
|
@@ -1541,7 +1555,7 @@ function At(e, t) {
|
|
|
1541
1555
|
return;
|
|
1542
1556
|
}
|
|
1543
1557
|
let r = n.parentPopper;
|
|
1544
|
-
for (; r &&
|
|
1558
|
+
for (; r && lt(r, r.containsGlobalTarget, e); )
|
|
1545
1559
|
r.$_handleGlobalClose(e, t), r = r.parentPopper;
|
|
1546
1560
|
}
|
|
1547
1561
|
});
|
|
@@ -1549,19 +1563,19 @@ function At(e, t) {
|
|
|
1549
1563
|
}
|
|
1550
1564
|
}
|
|
1551
1565
|
}
|
|
1552
|
-
function
|
|
1553
|
-
return o.closeAllPopover || o.closePopover && t ||
|
|
1566
|
+
function lt(e, t, o) {
|
|
1567
|
+
return o.closeAllPopover || o.closePopover && t || _o(e, o) && !t;
|
|
1554
1568
|
}
|
|
1555
|
-
function
|
|
1569
|
+
function _o(e, t) {
|
|
1556
1570
|
if (typeof e.autoHide == "function") {
|
|
1557
1571
|
const o = e.autoHide(t);
|
|
1558
1572
|
return e.lastAutoHide = o, o;
|
|
1559
1573
|
}
|
|
1560
1574
|
return e.autoHide;
|
|
1561
1575
|
}
|
|
1562
|
-
function
|
|
1563
|
-
for (let e = 0; e <
|
|
1564
|
-
|
|
1576
|
+
function xo() {
|
|
1577
|
+
for (let e = 0; e < N.length; e++)
|
|
1578
|
+
N[e].$_computePosition();
|
|
1565
1579
|
}
|
|
1566
1580
|
let j = 0, W = 0, oe = 0, ie = 0;
|
|
1567
1581
|
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
@@ -1569,30 +1583,30 @@ typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
|
1569
1583
|
}, Q ? {
|
|
1570
1584
|
passive: !0
|
|
1571
1585
|
} : void 0);
|
|
1572
|
-
function
|
|
1586
|
+
function fe(e, t, o, i, n, s, r, a) {
|
|
1573
1587
|
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
1588
|
return l >= 0 && l <= 1 && d >= 0 && d <= 1;
|
|
1575
1589
|
}
|
|
1576
|
-
const
|
|
1577
|
-
extends:
|
|
1578
|
-
},
|
|
1590
|
+
const bo = {
|
|
1591
|
+
extends: At()
|
|
1592
|
+
}, Ae = (e, t) => {
|
|
1579
1593
|
const o = e.__vccOpts || e;
|
|
1580
1594
|
for (const [i, n] of t)
|
|
1581
1595
|
o[i] = n;
|
|
1582
1596
|
return o;
|
|
1583
1597
|
};
|
|
1584
|
-
function
|
|
1598
|
+
function To(e, t, o, i, n, s) {
|
|
1585
1599
|
return I(), se("div", {
|
|
1586
1600
|
ref: "reference",
|
|
1587
|
-
class:
|
|
1601
|
+
class: Fe(["v-popper", {
|
|
1588
1602
|
"v-popper--shown": e.slotData.isShown
|
|
1589
1603
|
}])
|
|
1590
1604
|
}, [
|
|
1591
|
-
|
|
1605
|
+
ge(e.$slots, "default", Gt(Yt(e.slotData)))
|
|
1592
1606
|
], 2);
|
|
1593
1607
|
}
|
|
1594
|
-
const
|
|
1595
|
-
function
|
|
1608
|
+
const So = /* @__PURE__ */ Ae(bo, [["render", To]]);
|
|
1609
|
+
function Po() {
|
|
1596
1610
|
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
1597
1611
|
if (t > 0)
|
|
1598
1612
|
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
@@ -1604,11 +1618,11 @@ function bo() {
|
|
|
1604
1618
|
var n = e.indexOf("Edge/");
|
|
1605
1619
|
return n > 0 ? parseInt(e.substring(n + 5, e.indexOf(".", n)), 10) : -1;
|
|
1606
1620
|
}
|
|
1607
|
-
let
|
|
1621
|
+
let me;
|
|
1608
1622
|
function Be() {
|
|
1609
|
-
Be.init || (Be.init = !0,
|
|
1623
|
+
Be.init || (Be.init = !0, me = Po() !== -1);
|
|
1610
1624
|
}
|
|
1611
|
-
var
|
|
1625
|
+
var Oe = {
|
|
1612
1626
|
name: "ResizeObserver",
|
|
1613
1627
|
props: {
|
|
1614
1628
|
emitOnMount: {
|
|
@@ -1628,11 +1642,11 @@ var Ae = {
|
|
|
1628
1642
|
"notify"
|
|
1629
1643
|
],
|
|
1630
1644
|
mounted() {
|
|
1631
|
-
Be(),
|
|
1645
|
+
Be(), jt(() => {
|
|
1632
1646
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
1633
1647
|
});
|
|
1634
1648
|
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",
|
|
1649
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", me && this.$el.appendChild(e), e.data = "about:blank", me || this.$el.appendChild(e);
|
|
1636
1650
|
},
|
|
1637
1651
|
beforeUnmount() {
|
|
1638
1652
|
this.removeResizeHandlers();
|
|
@@ -1651,34 +1665,34 @@ var Ae = {
|
|
|
1651
1665
|
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
1652
1666
|
},
|
|
1653
1667
|
removeResizeHandlers() {
|
|
1654
|
-
this._resizeObject && this._resizeObject.onload && (!
|
|
1668
|
+
this._resizeObject && this._resizeObject.onload && (!me && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
1655
1669
|
}
|
|
1656
1670
|
}
|
|
1657
1671
|
};
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1660
|
-
const
|
|
1672
|
+
const Co = /* @__PURE__ */ Wt();
|
|
1673
|
+
Ft("data-v-b329ee4c");
|
|
1674
|
+
const Ao = {
|
|
1661
1675
|
class: "resize-observer",
|
|
1662
1676
|
tabindex: "-1"
|
|
1663
1677
|
};
|
|
1664
|
-
|
|
1665
|
-
const
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
const
|
|
1678
|
+
It();
|
|
1679
|
+
const Oo = /* @__PURE__ */ Co((e, t, o, i, n, s) => (I(), Te("div", Ao)));
|
|
1680
|
+
Oe.render = Oo;
|
|
1681
|
+
Oe.__scopeId = "data-v-b329ee4c";
|
|
1682
|
+
Oe.__file = "src/components/ResizeObserver.vue";
|
|
1683
|
+
const zt = (e = "theme") => ({
|
|
1670
1684
|
computed: {
|
|
1671
1685
|
themeClass() {
|
|
1672
|
-
return
|
|
1686
|
+
return $o(this[e]);
|
|
1673
1687
|
}
|
|
1674
1688
|
}
|
|
1675
|
-
}),
|
|
1689
|
+
}), zo = be({
|
|
1676
1690
|
name: "VPopperContent",
|
|
1677
1691
|
components: {
|
|
1678
|
-
ResizeObserver:
|
|
1692
|
+
ResizeObserver: Oe
|
|
1679
1693
|
},
|
|
1680
1694
|
mixins: [
|
|
1681
|
-
|
|
1695
|
+
zt()
|
|
1682
1696
|
],
|
|
1683
1697
|
props: {
|
|
1684
1698
|
popperId: String,
|
|
@@ -1700,19 +1714,19 @@ const Ot = (e = "theme") => ({
|
|
|
1700
1714
|
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
1701
1715
|
}
|
|
1702
1716
|
}
|
|
1703
|
-
}),
|
|
1717
|
+
}), ko = ["id", "aria-hidden", "tabindex", "data-popper-placement"], No = {
|
|
1704
1718
|
ref: "inner",
|
|
1705
1719
|
class: "v-popper__inner"
|
|
1706
|
-
},
|
|
1707
|
-
|
|
1708
|
-
|
|
1720
|
+
}, Mo = /* @__PURE__ */ K("div", { class: "v-popper__arrow-outer" }, null, -1), Ho = /* @__PURE__ */ K("div", { class: "v-popper__arrow-inner" }, null, -1), Lo = [
|
|
1721
|
+
Mo,
|
|
1722
|
+
Ho
|
|
1709
1723
|
];
|
|
1710
|
-
function
|
|
1724
|
+
function Ro(e, t, o, i, n, s) {
|
|
1711
1725
|
const r = ne("ResizeObserver");
|
|
1712
1726
|
return I(), se("div", {
|
|
1713
1727
|
id: e.popperId,
|
|
1714
1728
|
ref: "popover",
|
|
1715
|
-
class:
|
|
1729
|
+
class: Fe(["v-popper__popper", [
|
|
1716
1730
|
e.themeClass,
|
|
1717
1731
|
e.classes.popperClass,
|
|
1718
1732
|
{
|
|
@@ -1727,14 +1741,14 @@ function Ho(e, t, o, i, n, s) {
|
|
|
1727
1741
|
"v-popper__popper--no-positioning": !e.result
|
|
1728
1742
|
}
|
|
1729
1743
|
]]),
|
|
1730
|
-
style:
|
|
1744
|
+
style: ze(e.result ? {
|
|
1731
1745
|
position: e.result.strategy,
|
|
1732
1746
|
transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
|
|
1733
1747
|
} : void 0),
|
|
1734
1748
|
"aria-hidden": e.shown ? "false" : "true",
|
|
1735
1749
|
tabindex: e.autoHide ? 0 : void 0,
|
|
1736
1750
|
"data-popper-placement": e.result ? e.result.placement : void 0,
|
|
1737
|
-
onKeyup: t[2] || (t[2] =
|
|
1751
|
+
onKeyup: t[2] || (t[2] = qt((a) => e.autoHide && e.$emit("hide"), ["esc"]))
|
|
1738
1752
|
}, [
|
|
1739
1753
|
K("div", {
|
|
1740
1754
|
class: "v-popper__backdrop",
|
|
@@ -1742,33 +1756,33 @@ function Ho(e, t, o, i, n, s) {
|
|
|
1742
1756
|
}),
|
|
1743
1757
|
K("div", {
|
|
1744
1758
|
class: "v-popper__wrapper",
|
|
1745
|
-
style:
|
|
1759
|
+
style: ze(e.result ? {
|
|
1746
1760
|
transformOrigin: e.result.transformOrigin
|
|
1747
1761
|
} : void 0)
|
|
1748
1762
|
}, [
|
|
1749
|
-
K("div",
|
|
1750
|
-
e.mounted ? (I(), se(
|
|
1763
|
+
K("div", No, [
|
|
1764
|
+
e.mounted ? (I(), se(Vt, { key: 0 }, [
|
|
1751
1765
|
K("div", null, [
|
|
1752
|
-
|
|
1766
|
+
ge(e.$slots, "default")
|
|
1753
1767
|
]),
|
|
1754
|
-
e.handleResize ? (I(),
|
|
1768
|
+
e.handleResize ? (I(), Te(r, {
|
|
1755
1769
|
key: 0,
|
|
1756
1770
|
onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
|
|
1757
|
-
})) :
|
|
1758
|
-
], 64)) :
|
|
1771
|
+
})) : qe("", !0)
|
|
1772
|
+
], 64)) : qe("", !0)
|
|
1759
1773
|
], 512),
|
|
1760
1774
|
K("div", {
|
|
1761
1775
|
ref: "arrow",
|
|
1762
1776
|
class: "v-popper__arrow-container",
|
|
1763
|
-
style:
|
|
1777
|
+
style: ze(e.result ? {
|
|
1764
1778
|
left: e.toPx(e.result.arrow.x),
|
|
1765
1779
|
top: e.toPx(e.result.arrow.y)
|
|
1766
1780
|
} : void 0)
|
|
1767
|
-
},
|
|
1781
|
+
}, Lo, 4)
|
|
1768
1782
|
], 4)
|
|
1769
|
-
], 46,
|
|
1783
|
+
], 46, ko);
|
|
1770
1784
|
}
|
|
1771
|
-
const
|
|
1785
|
+
const kt = /* @__PURE__ */ Ae(zo, [["render", Ro]]), Nt = {
|
|
1772
1786
|
methods: {
|
|
1773
1787
|
show(...e) {
|
|
1774
1788
|
return this.$refs.popper.show(...e);
|
|
@@ -1784,18 +1798,18 @@ const zt = /* @__PURE__ */ Ce(Co, [["render", Ho]]), Nt = {
|
|
|
1784
1798
|
}
|
|
1785
1799
|
}
|
|
1786
1800
|
};
|
|
1787
|
-
let
|
|
1801
|
+
let De = function() {
|
|
1788
1802
|
};
|
|
1789
|
-
typeof window < "u" && (
|
|
1790
|
-
const
|
|
1803
|
+
typeof window < "u" && (De = window.Element);
|
|
1804
|
+
const Eo = be({
|
|
1791
1805
|
name: "VPopperWrapper",
|
|
1792
1806
|
components: {
|
|
1793
|
-
Popper:
|
|
1794
|
-
PopperContent:
|
|
1807
|
+
Popper: So,
|
|
1808
|
+
PopperContent: kt
|
|
1795
1809
|
},
|
|
1796
1810
|
mixins: [
|
|
1797
1811
|
Nt,
|
|
1798
|
-
|
|
1812
|
+
zt("finalTheme")
|
|
1799
1813
|
],
|
|
1800
1814
|
props: {
|
|
1801
1815
|
theme: {
|
|
@@ -1867,11 +1881,11 @@ const Lo = xe({
|
|
|
1867
1881
|
default: void 0
|
|
1868
1882
|
},
|
|
1869
1883
|
container: {
|
|
1870
|
-
type: [String, Object,
|
|
1884
|
+
type: [String, Object, De, Boolean],
|
|
1871
1885
|
default: void 0
|
|
1872
1886
|
},
|
|
1873
1887
|
boundary: {
|
|
1874
|
-
type: [String,
|
|
1888
|
+
type: [String, De],
|
|
1875
1889
|
default: void 0
|
|
1876
1890
|
},
|
|
1877
1891
|
strategy: {
|
|
@@ -1983,9 +1997,9 @@ const Lo = xe({
|
|
|
1983
1997
|
}
|
|
1984
1998
|
}
|
|
1985
1999
|
});
|
|
1986
|
-
function
|
|
2000
|
+
function Bo(e, t, o, i, n, s) {
|
|
1987
2001
|
const r = ne("PopperContent"), a = ne("Popper");
|
|
1988
|
-
return I(),
|
|
2002
|
+
return I(), Te(a, ut({ ref: "popper" }, e.$props, {
|
|
1989
2003
|
theme: e.finalTheme,
|
|
1990
2004
|
"target-nodes": e.getTargetNodes,
|
|
1991
2005
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
@@ -2002,7 +2016,7 @@ function Mo(e, t, o, i, n, s) {
|
|
|
2002
2016
|
onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
|
|
2003
2017
|
onResize: t[8] || (t[8] = () => e.$emit("resize"))
|
|
2004
2018
|
}), {
|
|
2005
|
-
default:
|
|
2019
|
+
default: we(({
|
|
2006
2020
|
popperId: l,
|
|
2007
2021
|
isShown: d,
|
|
2008
2022
|
shouldMountContent: f,
|
|
@@ -2013,14 +2027,14 @@ function Mo(e, t, o, i, n, s) {
|
|
|
2013
2027
|
handleResize: m,
|
|
2014
2028
|
onResize: w,
|
|
2015
2029
|
classes: g,
|
|
2016
|
-
result:
|
|
2030
|
+
result: y
|
|
2017
2031
|
}) => [
|
|
2018
|
-
|
|
2032
|
+
ge(e.$slots, "default", {
|
|
2019
2033
|
shown: d,
|
|
2020
2034
|
show: p,
|
|
2021
2035
|
hide: u
|
|
2022
2036
|
}),
|
|
2023
|
-
|
|
2037
|
+
ht(r, {
|
|
2024
2038
|
ref: "popperContent",
|
|
2025
2039
|
"popper-id": l,
|
|
2026
2040
|
theme: e.finalTheme,
|
|
@@ -2030,12 +2044,12 @@ function Mo(e, t, o, i, n, s) {
|
|
|
2030
2044
|
"auto-hide": h,
|
|
2031
2045
|
"handle-resize": m,
|
|
2032
2046
|
classes: g,
|
|
2033
|
-
result:
|
|
2047
|
+
result: y,
|
|
2034
2048
|
onHide: u,
|
|
2035
2049
|
onResize: w
|
|
2036
2050
|
}, {
|
|
2037
|
-
default:
|
|
2038
|
-
|
|
2051
|
+
default: we(() => [
|
|
2052
|
+
ge(e.$slots, "popper", {
|
|
2039
2053
|
shown: d,
|
|
2040
2054
|
hide: u
|
|
2041
2055
|
})
|
|
@@ -2046,23 +2060,23 @@ function Mo(e, t, o, i, n, s) {
|
|
|
2046
2060
|
_: 3
|
|
2047
2061
|
}, 16, ["theme", "target-nodes", "popper-node", "class"]);
|
|
2048
2062
|
}
|
|
2049
|
-
const
|
|
2050
|
-
...
|
|
2063
|
+
const Ve = /* @__PURE__ */ Ae(Eo, [["render", Bo]]), Do = {
|
|
2064
|
+
...Ve,
|
|
2051
2065
|
name: "VDropdown",
|
|
2052
2066
|
vPopperTheme: "dropdown"
|
|
2053
|
-
},
|
|
2054
|
-
...
|
|
2067
|
+
}, Fo = {
|
|
2068
|
+
...Ve,
|
|
2055
2069
|
name: "VMenu",
|
|
2056
2070
|
vPopperTheme: "menu"
|
|
2057
|
-
},
|
|
2058
|
-
...
|
|
2071
|
+
}, Io = {
|
|
2072
|
+
...Ve,
|
|
2059
2073
|
name: "VTooltip",
|
|
2060
2074
|
vPopperTheme: "tooltip"
|
|
2061
|
-
},
|
|
2075
|
+
}, jo = be({
|
|
2062
2076
|
name: "VTooltipDirective",
|
|
2063
2077
|
components: {
|
|
2064
|
-
Popper:
|
|
2065
|
-
PopperContent:
|
|
2078
|
+
Popper: At(),
|
|
2079
|
+
PopperContent: kt
|
|
2066
2080
|
},
|
|
2067
2081
|
mixins: [
|
|
2068
2082
|
Nt
|
|
@@ -2138,17 +2152,17 @@ const We = /* @__PURE__ */ Ce(Lo, [["render", Mo]]), Ro = {
|
|
|
2138
2152
|
this.$_isShown = !1;
|
|
2139
2153
|
}
|
|
2140
2154
|
}
|
|
2141
|
-
}),
|
|
2142
|
-
function
|
|
2155
|
+
}), Wo = ["innerHTML"], Vo = ["textContent"];
|
|
2156
|
+
function qo(e, t, o, i, n, s) {
|
|
2143
2157
|
const r = ne("PopperContent"), a = ne("Popper");
|
|
2144
|
-
return I(),
|
|
2158
|
+
return I(), Te(a, ut({ ref: "popper" }, e.$attrs, {
|
|
2145
2159
|
theme: e.theme,
|
|
2146
2160
|
"target-nodes": e.targetNodes,
|
|
2147
2161
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
2148
2162
|
onApplyShow: e.onShow,
|
|
2149
2163
|
onApplyHide: e.onHide
|
|
2150
2164
|
}), {
|
|
2151
|
-
default:
|
|
2165
|
+
default: we(({
|
|
2152
2166
|
popperId: l,
|
|
2153
2167
|
isShown: d,
|
|
2154
2168
|
shouldMountContent: f,
|
|
@@ -2160,9 +2174,9 @@ function jo(e, t, o, i, n, s) {
|
|
|
2160
2174
|
classes: w,
|
|
2161
2175
|
result: g
|
|
2162
2176
|
}) => [
|
|
2163
|
-
|
|
2177
|
+
ht(r, {
|
|
2164
2178
|
ref: "popperContent",
|
|
2165
|
-
class:
|
|
2179
|
+
class: Fe({
|
|
2166
2180
|
"v-popper--tooltip-loading": e.loading
|
|
2167
2181
|
}),
|
|
2168
2182
|
"popper-id": l,
|
|
@@ -2177,14 +2191,14 @@ function jo(e, t, o, i, n, s) {
|
|
|
2177
2191
|
onHide: p,
|
|
2178
2192
|
onResize: m
|
|
2179
2193
|
}, {
|
|
2180
|
-
default:
|
|
2194
|
+
default: we(() => [
|
|
2181
2195
|
e.html ? (I(), se("div", {
|
|
2182
2196
|
key: 0,
|
|
2183
2197
|
innerHTML: e.finalContent
|
|
2184
|
-
}, null, 8,
|
|
2198
|
+
}, null, 8, Wo)) : (I(), se("div", {
|
|
2185
2199
|
key: 1,
|
|
2186
|
-
textContent:
|
|
2187
|
-
}, null, 8,
|
|
2200
|
+
textContent: Kt(e.finalContent)
|
|
2201
|
+
}, null, 8, Vo))
|
|
2188
2202
|
]),
|
|
2189
2203
|
_: 2
|
|
2190
2204
|
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
@@ -2192,24 +2206,24 @@ function jo(e, t, o, i, n, s) {
|
|
|
2192
2206
|
_: 1
|
|
2193
2207
|
}, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
2194
2208
|
}
|
|
2195
|
-
const
|
|
2196
|
-
function
|
|
2209
|
+
const Go = /* @__PURE__ */ Ae(jo, [["render", qo]]), Mt = "v-popper--has-tooltip";
|
|
2210
|
+
function Yo(e, t) {
|
|
2197
2211
|
let o = e.placement;
|
|
2198
2212
|
if (!o && t)
|
|
2199
|
-
for (const i of
|
|
2213
|
+
for (const i of Ct)
|
|
2200
2214
|
t[i] && (o = i);
|
|
2201
2215
|
return o || (o = de(e.theme || "tooltip", "placement")), o;
|
|
2202
2216
|
}
|
|
2203
2217
|
function Ht(e, t, o) {
|
|
2204
2218
|
let i;
|
|
2205
2219
|
const n = typeof t;
|
|
2206
|
-
return n === "string" ? i = { content: t } : t && n === "object" ? i = t : i = { content: !1 }, i.placement =
|
|
2220
|
+
return n === "string" ? i = { content: t } : t && n === "object" ? i = t : i = { content: !1 }, i.placement = Yo(i, o), i.targetNodes = () => [e], i.referenceNode = () => e, i;
|
|
2207
2221
|
}
|
|
2208
|
-
let
|
|
2209
|
-
function
|
|
2210
|
-
if (
|
|
2222
|
+
let Me, pe, Xo = 0;
|
|
2223
|
+
function Uo() {
|
|
2224
|
+
if (Me)
|
|
2211
2225
|
return;
|
|
2212
|
-
pe = He([]),
|
|
2226
|
+
pe = He([]), Me = Xt({
|
|
2213
2227
|
name: "VTooltipDirectiveApp",
|
|
2214
2228
|
setup() {
|
|
2215
2229
|
return {
|
|
@@ -2217,7 +2231,7 @@ function qo() {
|
|
|
2217
2231
|
};
|
|
2218
2232
|
},
|
|
2219
2233
|
render() {
|
|
2220
|
-
return this.directives.map((t) =>
|
|
2234
|
+
return this.directives.map((t) => Ut(Go, {
|
|
2221
2235
|
...t.options,
|
|
2222
2236
|
shown: t.shown || t.options.shown,
|
|
2223
2237
|
key: t.id
|
|
@@ -2228,16 +2242,16 @@ function qo() {
|
|
|
2228
2242
|
}
|
|
2229
2243
|
});
|
|
2230
2244
|
const e = document.createElement("div");
|
|
2231
|
-
document.body.appendChild(e),
|
|
2245
|
+
document.body.appendChild(e), Me.mount(e);
|
|
2232
2246
|
}
|
|
2233
|
-
function
|
|
2234
|
-
|
|
2247
|
+
function Ko(e, t, o) {
|
|
2248
|
+
Uo();
|
|
2235
2249
|
const i = He(Ht(e, t, o)), n = He(!1), s = {
|
|
2236
|
-
id:
|
|
2250
|
+
id: Xo++,
|
|
2237
2251
|
options: i,
|
|
2238
2252
|
shown: n
|
|
2239
2253
|
};
|
|
2240
|
-
return pe.value.push(s), e.classList && e.classList.add(
|
|
2254
|
+
return pe.value.push(s), e.classList && e.classList.add(Mt), e.$_popper = {
|
|
2241
2255
|
options: i,
|
|
2242
2256
|
item: s,
|
|
2243
2257
|
show() {
|
|
@@ -2253,45 +2267,45 @@ function Lt(e) {
|
|
|
2253
2267
|
const t = pe.value.indexOf(e.$_popper.item);
|
|
2254
2268
|
t !== -1 && pe.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
|
|
2255
2269
|
}
|
|
2256
|
-
e.classList && e.classList.remove(
|
|
2270
|
+
e.classList && e.classList.remove(Mt);
|
|
2257
2271
|
}
|
|
2258
|
-
function
|
|
2272
|
+
function dt(e, { value: t, modifiers: o }) {
|
|
2259
2273
|
const i = Ht(e, t, o);
|
|
2260
2274
|
if (!i.content || de(i.theme || "tooltip", "disabled"))
|
|
2261
2275
|
Lt(e);
|
|
2262
2276
|
else {
|
|
2263
2277
|
let n;
|
|
2264
|
-
e.$_popper ? (n = e.$_popper, n.options.value = i) : n =
|
|
2278
|
+
e.$_popper ? (n = e.$_popper, n.options.value = i) : n = Ko(e, t, o), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? n.show() : n.hide());
|
|
2265
2279
|
}
|
|
2266
2280
|
}
|
|
2267
|
-
const
|
|
2268
|
-
beforeMount:
|
|
2269
|
-
updated:
|
|
2281
|
+
const Zo = {
|
|
2282
|
+
beforeMount: dt,
|
|
2283
|
+
updated: dt,
|
|
2270
2284
|
beforeUnmount(e) {
|
|
2271
2285
|
Lt(e);
|
|
2272
2286
|
}
|
|
2273
2287
|
};
|
|
2274
|
-
function
|
|
2275
|
-
e.addEventListener("mousedown",
|
|
2288
|
+
function pt(e) {
|
|
2289
|
+
e.addEventListener("mousedown", xe), e.addEventListener("click", xe), e.addEventListener("touchstart", Rt, Q ? {
|
|
2276
2290
|
passive: !0
|
|
2277
2291
|
} : !1);
|
|
2278
2292
|
}
|
|
2279
|
-
function
|
|
2280
|
-
e.removeEventListener("mousedown",
|
|
2293
|
+
function ct(e) {
|
|
2294
|
+
e.removeEventListener("mousedown", xe), e.removeEventListener("click", xe), e.removeEventListener("touchstart", Rt), e.removeEventListener("touchend", Et), e.removeEventListener("touchcancel", Bt);
|
|
2281
2295
|
}
|
|
2282
|
-
function
|
|
2296
|
+
function xe(e) {
|
|
2283
2297
|
const t = e.currentTarget;
|
|
2284
2298
|
e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
2285
2299
|
}
|
|
2286
|
-
function
|
|
2300
|
+
function Rt(e) {
|
|
2287
2301
|
if (e.changedTouches.length === 1) {
|
|
2288
2302
|
const t = e.currentTarget;
|
|
2289
2303
|
t.$_vclosepopover_touch = !0;
|
|
2290
2304
|
const o = e.changedTouches[0];
|
|
2291
|
-
t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend",
|
|
2305
|
+
t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend", Et), t.addEventListener("touchcancel", Bt);
|
|
2292
2306
|
}
|
|
2293
2307
|
}
|
|
2294
|
-
function
|
|
2308
|
+
function Et(e) {
|
|
2295
2309
|
const t = e.currentTarget;
|
|
2296
2310
|
if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
|
|
2297
2311
|
const o = e.changedTouches[0], i = t.$_vclosepopover_touchPoint;
|
|
@@ -2302,27 +2316,28 @@ function Bt(e) {
|
|
|
2302
2316
|
const t = e.currentTarget;
|
|
2303
2317
|
t.$_vclosepopover_touch = !1;
|
|
2304
2318
|
}
|
|
2305
|
-
const
|
|
2319
|
+
const Jo = {
|
|
2306
2320
|
beforeMount(e, { value: t, modifiers: o }) {
|
|
2307
|
-
e.$_closePopoverModifiers = o, (typeof t > "u" || t) &&
|
|
2321
|
+
e.$_closePopoverModifiers = o, (typeof t > "u" || t) && pt(e);
|
|
2308
2322
|
},
|
|
2309
2323
|
updated(e, { value: t, oldValue: o, modifiers: i }) {
|
|
2310
|
-
e.$_closePopoverModifiers = i, t !== o && (typeof t > "u" || t ?
|
|
2324
|
+
e.$_closePopoverModifiers = i, t !== o && (typeof t > "u" || t ? pt(e) : ct(e));
|
|
2311
2325
|
},
|
|
2312
2326
|
beforeUnmount(e) {
|
|
2313
|
-
|
|
2327
|
+
ct(e);
|
|
2314
2328
|
}
|
|
2315
2329
|
};
|
|
2316
|
-
function
|
|
2317
|
-
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0,
|
|
2330
|
+
function Qo(e, t = {}) {
|
|
2331
|
+
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, St(H, t), e.directive("tooltip", Zo), e.directive("close-popper", Jo), e.component("VTooltip", Io), e.component("VDropdown", Do), e.component("VMenu", Fo));
|
|
2318
2332
|
}
|
|
2319
|
-
const
|
|
2333
|
+
const ii = {
|
|
2320
2334
|
// eslint-disable-next-line no-undef
|
|
2321
2335
|
version: "5.2.2",
|
|
2322
|
-
install:
|
|
2323
|
-
options:
|
|
2336
|
+
install: Qo,
|
|
2337
|
+
options: H
|
|
2324
2338
|
};
|
|
2325
2339
|
export {
|
|
2326
|
-
|
|
2340
|
+
ii as G,
|
|
2341
|
+
oi as c
|
|
2327
2342
|
};
|
|
2328
|
-
//# sourceMappingURL=style-
|
|
2343
|
+
//# sourceMappingURL=style-BQlIFUN3.js.map
|