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