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