@konnectio/core 4.1.12 → 4.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ActionField-CM48D0lz.js → ActionField-jo27FP1e.js} +3 -3
- package/dist/ActionField-jo27FP1e.js.br +0 -0
- package/dist/{AvailabilitySkeleton-BbbfOA4N.js → AvailabilitySkeleton-C8259u2G.js} +6 -6
- package/dist/AvailabilitySkeleton-C8259u2G.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-ZvAEMVGq.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CCJnM8KM.js} +3 -3
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CCJnM8KM.js.br +0 -0
- package/dist/{CheckoutWindow-C9LY04Db.js → CheckoutWindow-COrv_mGw.js} +3 -3
- package/dist/CheckoutWindow-COrv_mGw.js.br +0 -0
- package/dist/{ErrorMessage-BIi8rRO1.js → ErrorMessage-Bvr-38BC.js} +3 -3
- package/dist/ErrorMessage-Bvr-38BC.js.br +0 -0
- package/dist/{EventAvailabilityForm-CegObVbR.js → EventAvailabilityForm-BfuJqpV7.js} +4 -4
- package/dist/EventAvailabilityForm-BfuJqpV7.js.br +0 -0
- package/dist/{Field-CCABX2As.js → Field-BosKn4vs.js} +4 -4
- package/dist/Field-BosKn4vs.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-iStNEO56.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DCp_0LxT.js} +3 -3
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-BtY1IVT6.js → SelectField.vue_vue_type_style_index_0_lang-BLTUypjx.js} +3 -3
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BLTUypjx.js.br +0 -0
- package/dist/{TermsOfService-DTMLLPZl.js → TermsOfService-BPJuG5Ve.js} +4 -4
- package/dist/_-DQVWmHCZ.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-CcJ-GELj.js → _.vue_vue_type_style_index_0_lang-CWxZa4PT.js} +3 -3
- package/dist/availability.js +6 -6
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +5 -5
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +9 -9
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +9 -9
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +10 -10
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-B0AJlfXr.js → giftCard-lpRP5omc.js} +3 -3
- package/dist/giftCard-lpRP5omc.js.br +0 -0
- package/dist/hotel.js +9 -9
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-C1LvE3QZ.js → masonry.plugin-DfwT_bKh.js} +19 -36
- package/dist/masonry.plugin-DfwT_bKh.js.br +0 -0
- package/dist/{mitt-BysJOgFD.js → mitt-CqqTNFC7.js} +3816 -3834
- package/dist/mitt-CqqTNFC7.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CFj6q1kW.js → style-B5c-Dkj8.js} +643 -624
- package/dist/style-B5c-Dkj8.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-CM48D0lz.js.br +0 -0
- package/dist/AvailabilitySkeleton-BbbfOA4N.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-ZvAEMVGq.js.br +0 -0
- package/dist/CheckoutWindow-C9LY04Db.js.br +0 -0
- package/dist/ErrorMessage-BIi8rRO1.js.br +0 -0
- package/dist/EventAvailabilityForm-CegObVbR.js.br +0 -0
- package/dist/Field-CCABX2As.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BtY1IVT6.js.br +0 -0
- package/dist/_-DUz2r3ns.js +0 -5
- package/dist/giftCard-B0AJlfXr.js.br +0 -0
- package/dist/masonry.plugin-C1LvE3QZ.js.br +0 -0
- package/dist/mitt-BysJOgFD.js.br +0 -0
- package/dist/style-CFj6q1kW.js.br +0 -0
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
const
|
|
1
|
+
import { d as Te, ag as It, ah as jt, U as ae, h as le, b as I, e as Q, i as Ge, F as Wt, a as Se, q as we, Y as Ne, ac as Vt, n as Ie, M as qt, r as Me, m as Gt, Q as Yt, w as ve, f as ut, t as Ut, a1 as ft, ai as Xt, a2 as Kt, a3 as Qt } from "./mitt-CqqTNFC7.js";
|
|
2
|
+
const Zt = ["top", "right", "bottom", "left"], Ye = ["start", "end"], Ue = /* @__PURE__ */ Zt.reduce((e, t) => e.concat(t, t + "-" + Ye[0], t + "-" + Ye[1]), []), de = Math.min, K = Math.max, Jt = {
|
|
3
3
|
left: "right",
|
|
4
4
|
right: "left",
|
|
5
5
|
bottom: "top",
|
|
6
6
|
top: "bottom"
|
|
7
|
-
},
|
|
7
|
+
}, eo = {
|
|
8
8
|
start: "end",
|
|
9
9
|
end: "start"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
return
|
|
11
|
+
function Re(e, t, o) {
|
|
12
|
+
return K(e, de(t, o));
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function J(e, t) {
|
|
15
15
|
return typeof e == "function" ? e(t) : e;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function E(e) {
|
|
18
18
|
return e.split("-")[0];
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function k(e) {
|
|
21
21
|
return e.split("-")[1];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function mt(e) {
|
|
24
24
|
return e === "x" ? "y" : "x";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function je(e) {
|
|
27
27
|
return e === "y" ? "height" : "width";
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
return ["top", "bottom"].includes(
|
|
29
|
+
function Z(e) {
|
|
30
|
+
return ["top", "bottom"].includes(E(e)) ? "y" : "x";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function We(e) {
|
|
33
|
+
return mt(Z(e));
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function gt(e, t, o) {
|
|
36
36
|
o === void 0 && (o = !1);
|
|
37
|
-
const i =
|
|
37
|
+
const i = k(e), n = We(e), s = je(n);
|
|
38
38
|
let r = n === "x" ? i === (o ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
39
|
-
return t.reference[s] > t.floating[s] && (r =
|
|
39
|
+
return t.reference[s] > t.floating[s] && (r = $e(r)), [r, $e(r)];
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const t =
|
|
43
|
-
return [
|
|
41
|
+
function to(e) {
|
|
42
|
+
const t = $e(e);
|
|
43
|
+
return [ye(e), t, ye(t)];
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return e.replace(/start|end/g, (t) =>
|
|
45
|
+
function ye(e) {
|
|
46
|
+
return e.replace(/start|end/g, (t) => eo[t]);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function oo(e, t, o) {
|
|
49
49
|
const i = ["left", "right"], n = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
50
50
|
switch (e) {
|
|
51
51
|
case "top":
|
|
@@ -58,15 +58,15 @@ function eo(e, t, o) {
|
|
|
58
58
|
return [];
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
const n =
|
|
63
|
-
let s =
|
|
64
|
-
return n && (s = s.map((r) => r + "-" + n), t && (s = s.concat(s.map(
|
|
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
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
66
|
+
function $e(e) {
|
|
67
|
+
return e.replace(/left|right|bottom|top/g, (t) => Jt[t]);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function no(e) {
|
|
70
70
|
return {
|
|
71
71
|
top: 0,
|
|
72
72
|
right: 0,
|
|
@@ -75,72 +75,81 @@ function oo(e) {
|
|
|
75
75
|
...e
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return typeof e != "number" ?
|
|
78
|
+
function wt(e) {
|
|
79
|
+
return typeof e != "number" ? no(e) : {
|
|
80
80
|
top: e,
|
|
81
81
|
right: e,
|
|
82
82
|
bottom: e,
|
|
83
83
|
left: e
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ie(e) {
|
|
87
|
+
const {
|
|
88
|
+
x: t,
|
|
89
|
+
y: o,
|
|
90
|
+
width: i,
|
|
91
|
+
height: n
|
|
92
|
+
} = e;
|
|
87
93
|
return {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
|
93
102
|
};
|
|
94
103
|
}
|
|
95
|
-
function
|
|
104
|
+
function Xe(e, t, o) {
|
|
96
105
|
let {
|
|
97
106
|
reference: i,
|
|
98
107
|
floating: n
|
|
99
108
|
} = e;
|
|
100
|
-
const s =
|
|
101
|
-
let
|
|
109
|
+
const s = Z(t), r = We(t), a = je(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;
|
|
102
111
|
switch (l) {
|
|
103
112
|
case "top":
|
|
104
|
-
|
|
105
|
-
x:
|
|
113
|
+
h = {
|
|
114
|
+
x: c,
|
|
106
115
|
y: i.y - n.height
|
|
107
116
|
};
|
|
108
117
|
break;
|
|
109
118
|
case "bottom":
|
|
110
|
-
|
|
111
|
-
x:
|
|
119
|
+
h = {
|
|
120
|
+
x: c,
|
|
112
121
|
y: i.y + i.height
|
|
113
122
|
};
|
|
114
123
|
break;
|
|
115
124
|
case "right":
|
|
116
|
-
|
|
125
|
+
h = {
|
|
117
126
|
x: i.x + i.width,
|
|
118
|
-
y:
|
|
127
|
+
y: p
|
|
119
128
|
};
|
|
120
129
|
break;
|
|
121
130
|
case "left":
|
|
122
|
-
|
|
131
|
+
h = {
|
|
123
132
|
x: i.x - n.width,
|
|
124
|
-
y:
|
|
133
|
+
y: p
|
|
125
134
|
};
|
|
126
135
|
break;
|
|
127
136
|
default:
|
|
128
|
-
|
|
137
|
+
h = {
|
|
129
138
|
x: i.x,
|
|
130
139
|
y: i.y
|
|
131
140
|
};
|
|
132
141
|
}
|
|
133
|
-
switch (
|
|
142
|
+
switch (k(t)) {
|
|
134
143
|
case "start":
|
|
135
|
-
|
|
144
|
+
h[r] -= u * (o && d ? -1 : 1);
|
|
136
145
|
break;
|
|
137
146
|
case "end":
|
|
138
|
-
|
|
147
|
+
h[r] += u * (o && d ? -1 : 1);
|
|
139
148
|
break;
|
|
140
149
|
}
|
|
141
|
-
return
|
|
150
|
+
return h;
|
|
142
151
|
}
|
|
143
|
-
const
|
|
152
|
+
const so = async (e, t, o) => {
|
|
144
153
|
const {
|
|
145
154
|
placement: i = "bottom",
|
|
146
155
|
strategy: n = "absolute",
|
|
@@ -152,9 +161,9 @@ const io = async (e, t, o) => {
|
|
|
152
161
|
floating: t,
|
|
153
162
|
strategy: n
|
|
154
163
|
}), {
|
|
155
|
-
x:
|
|
156
|
-
y:
|
|
157
|
-
} =
|
|
164
|
+
x: c,
|
|
165
|
+
y: p
|
|
166
|
+
} = Xe(d, i, l), u = i, h = {}, f = 0;
|
|
158
167
|
for (let m = 0; m < a.length; m++) {
|
|
159
168
|
const {
|
|
160
169
|
name: w,
|
|
@@ -162,15 +171,15 @@ const io = async (e, t, o) => {
|
|
|
162
171
|
} = a[m], {
|
|
163
172
|
x: v,
|
|
164
173
|
y: $,
|
|
165
|
-
data:
|
|
174
|
+
data: b,
|
|
166
175
|
reset: _
|
|
167
176
|
} = await g({
|
|
168
|
-
x:
|
|
169
|
-
y:
|
|
177
|
+
x: c,
|
|
178
|
+
y: p,
|
|
170
179
|
initialPlacement: i,
|
|
171
|
-
placement:
|
|
180
|
+
placement: u,
|
|
172
181
|
strategy: n,
|
|
173
|
-
middlewareData:
|
|
182
|
+
middlewareData: h,
|
|
174
183
|
rects: d,
|
|
175
184
|
platform: r,
|
|
176
185
|
elements: {
|
|
@@ -178,33 +187,30 @@ const io = async (e, t, o) => {
|
|
|
178
187
|
floating: t
|
|
179
188
|
}
|
|
180
189
|
});
|
|
181
|
-
|
|
182
|
-
...
|
|
190
|
+
c = v ?? c, p = $ ?? p, h = {
|
|
191
|
+
...h,
|
|
183
192
|
[w]: {
|
|
184
|
-
...
|
|
185
|
-
...
|
|
193
|
+
...h[w],
|
|
194
|
+
...b
|
|
186
195
|
}
|
|
187
|
-
}, _ &&
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
} = Ye(d, h, l)), m = -1;
|
|
196
|
-
continue;
|
|
197
|
-
}
|
|
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);
|
|
198
204
|
}
|
|
199
205
|
return {
|
|
200
|
-
x:
|
|
201
|
-
y:
|
|
202
|
-
placement:
|
|
206
|
+
x: c,
|
|
207
|
+
y: p,
|
|
208
|
+
placement: u,
|
|
203
209
|
strategy: n,
|
|
204
|
-
middlewareData:
|
|
210
|
+
middlewareData: h
|
|
205
211
|
};
|
|
206
212
|
};
|
|
207
|
-
async function
|
|
213
|
+
async function Pe(e, t) {
|
|
208
214
|
var o;
|
|
209
215
|
t === void 0 && (t = {});
|
|
210
216
|
const {
|
|
@@ -216,38 +222,40 @@ async function Te(e, t) {
|
|
|
216
222
|
strategy: l
|
|
217
223
|
} = e, {
|
|
218
224
|
boundary: d = "clippingAncestors",
|
|
219
|
-
rootBoundary:
|
|
220
|
-
elementContext:
|
|
221
|
-
altBoundary:
|
|
222
|
-
padding:
|
|
223
|
-
} =
|
|
225
|
+
rootBoundary: c = "viewport",
|
|
226
|
+
elementContext: p = "floating",
|
|
227
|
+
altBoundary: u = !1,
|
|
228
|
+
padding: h = 0
|
|
229
|
+
} = J(t, e), f = wt(h), w = a[u ? p === "floating" ? "reference" : "floating" : p], g = ie(await s.getClippingRect({
|
|
224
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)),
|
|
225
231
|
boundary: d,
|
|
226
|
-
rootBoundary:
|
|
232
|
+
rootBoundary: c,
|
|
227
233
|
strategy: l
|
|
228
|
-
})), v =
|
|
229
|
-
...r.floating,
|
|
234
|
+
})), v = p === "floating" ? {
|
|
230
235
|
x: i,
|
|
231
|
-
y: n
|
|
232
|
-
|
|
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($)) || {
|
|
233
240
|
x: 1,
|
|
234
241
|
y: 1
|
|
235
242
|
} : {
|
|
236
243
|
x: 1,
|
|
237
244
|
y: 1
|
|
238
|
-
}, _ =
|
|
245
|
+
}, _ = ie(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
246
|
+
elements: a,
|
|
239
247
|
rect: v,
|
|
240
248
|
offsetParent: $,
|
|
241
249
|
strategy: l
|
|
242
250
|
}) : v);
|
|
243
251
|
return {
|
|
244
|
-
top: (g.top - _.top +
|
|
245
|
-
bottom: (_.bottom - g.bottom +
|
|
246
|
-
left: (g.left - _.left +
|
|
247
|
-
right: (_.right - g.right +
|
|
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
|
|
248
256
|
};
|
|
249
257
|
}
|
|
250
|
-
const
|
|
258
|
+
const ro = (e) => ({
|
|
251
259
|
name: "arrow",
|
|
252
260
|
options: e,
|
|
253
261
|
async fn(t) {
|
|
@@ -261,34 +269,34 @@ const no = (e) => ({
|
|
|
261
269
|
middlewareData: l
|
|
262
270
|
} = t, {
|
|
263
271
|
element: d,
|
|
264
|
-
padding:
|
|
265
|
-
} =
|
|
272
|
+
padding: c = 0
|
|
273
|
+
} = J(e, t) || {};
|
|
266
274
|
if (d == null)
|
|
267
275
|
return {};
|
|
268
|
-
const
|
|
276
|
+
const p = wt(c), u = {
|
|
269
277
|
x: o,
|
|
270
278
|
y: i
|
|
271
|
-
},
|
|
272
|
-
let
|
|
273
|
-
(!
|
|
274
|
-
const
|
|
279
|
+
}, h = We(n), f = je(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;
|
|
275
283
|
return {
|
|
276
|
-
[
|
|
284
|
+
[h]: u[h] + R,
|
|
277
285
|
data: {
|
|
278
|
-
[
|
|
279
|
-
centerOffset:
|
|
280
|
-
...
|
|
281
|
-
alignmentOffset:
|
|
286
|
+
[h]: ee,
|
|
287
|
+
centerOffset: T - ee - R,
|
|
288
|
+
...F && {
|
|
289
|
+
alignmentOffset: R
|
|
282
290
|
}
|
|
283
291
|
},
|
|
284
|
-
reset:
|
|
292
|
+
reset: F
|
|
285
293
|
};
|
|
286
294
|
}
|
|
287
295
|
});
|
|
288
|
-
function
|
|
289
|
-
return (e ? [...o.filter((n) =>
|
|
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);
|
|
290
298
|
}
|
|
291
|
-
const
|
|
299
|
+
const lo = function(e) {
|
|
292
300
|
return e === void 0 && (e = {}), {
|
|
293
301
|
name: "autoPlacement",
|
|
294
302
|
options: e,
|
|
@@ -301,62 +309,62 @@ const ro = function(e) {
|
|
|
301
309
|
platform: l,
|
|
302
310
|
elements: d
|
|
303
311
|
} = t, {
|
|
304
|
-
crossAxis:
|
|
305
|
-
alignment:
|
|
306
|
-
allowedPlacements:
|
|
307
|
-
autoAlignment:
|
|
308
|
-
...
|
|
309
|
-
} =
|
|
312
|
+
crossAxis: c = !1,
|
|
313
|
+
alignment: p,
|
|
314
|
+
allowedPlacements: u = Ue,
|
|
315
|
+
autoAlignment: h = !0,
|
|
316
|
+
...f
|
|
317
|
+
} = J(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];
|
|
310
318
|
if (v == null)
|
|
311
319
|
return {};
|
|
312
|
-
const $ =
|
|
320
|
+
const $ = gt(v, s, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
|
|
313
321
|
if (a !== v)
|
|
314
322
|
return {
|
|
315
323
|
reset: {
|
|
316
324
|
placement: m[0]
|
|
317
325
|
}
|
|
318
326
|
};
|
|
319
|
-
const
|
|
327
|
+
const b = [w[E(v)], w[$[0]], w[$[1]]], _ = [...((i = r.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
320
328
|
placement: v,
|
|
321
|
-
overflows:
|
|
322
|
-
}],
|
|
323
|
-
if (
|
|
329
|
+
overflows: b
|
|
330
|
+
}], z = m[g + 1];
|
|
331
|
+
if (z)
|
|
324
332
|
return {
|
|
325
333
|
data: {
|
|
326
334
|
index: g + 1,
|
|
327
335
|
overflows: _
|
|
328
336
|
},
|
|
329
337
|
reset: {
|
|
330
|
-
placement:
|
|
338
|
+
placement: z
|
|
331
339
|
}
|
|
332
340
|
};
|
|
333
|
-
const
|
|
334
|
-
const
|
|
335
|
-
return [
|
|
341
|
+
const S = _.map((x) => {
|
|
342
|
+
const P = k(x.placement);
|
|
343
|
+
return [x.placement, P && c ? (
|
|
336
344
|
// Check along the mainAxis and main crossAxis side.
|
|
337
|
-
|
|
345
|
+
x.overflows.slice(0, 2).reduce((C, M) => C + M, 0)
|
|
338
346
|
) : (
|
|
339
347
|
// Check only the mainAxis.
|
|
340
|
-
|
|
341
|
-
),
|
|
342
|
-
}).sort((
|
|
348
|
+
x.overflows[0]
|
|
349
|
+
), x.overflows];
|
|
350
|
+
}).sort((x, P) => x[1] - P[1]), A = ((n = S.filter((x) => x[2].slice(
|
|
343
351
|
0,
|
|
344
352
|
// Aligned placements should not check their opposite crossAxis
|
|
345
353
|
// side.
|
|
346
|
-
|
|
347
|
-
).every((
|
|
348
|
-
return
|
|
354
|
+
k(x[0]) ? 2 : 3
|
|
355
|
+
).every((P) => P <= 0))[0]) == null ? void 0 : n[0]) || S[0][0];
|
|
356
|
+
return A !== a ? {
|
|
349
357
|
data: {
|
|
350
358
|
index: g + 1,
|
|
351
359
|
overflows: _
|
|
352
360
|
},
|
|
353
361
|
reset: {
|
|
354
|
-
placement:
|
|
362
|
+
placement: A
|
|
355
363
|
}
|
|
356
364
|
} : {};
|
|
357
365
|
}
|
|
358
366
|
};
|
|
359
|
-
},
|
|
367
|
+
}, po = function(e) {
|
|
360
368
|
return e === void 0 && (e = {}), {
|
|
361
369
|
name: "flip",
|
|
362
370
|
options: e,
|
|
@@ -370,57 +378,65 @@ const ro = function(e) {
|
|
|
370
378
|
platform: l,
|
|
371
379
|
elements: d
|
|
372
380
|
} = t, {
|
|
373
|
-
mainAxis:
|
|
374
|
-
crossAxis:
|
|
375
|
-
fallbackPlacements:
|
|
376
|
-
fallbackStrategy:
|
|
377
|
-
fallbackAxisSideDirection:
|
|
381
|
+
mainAxis: c = !0,
|
|
382
|
+
crossAxis: p = !0,
|
|
383
|
+
fallbackPlacements: u,
|
|
384
|
+
fallbackStrategy: h = "bestFit",
|
|
385
|
+
fallbackAxisSideDirection: f = "none",
|
|
378
386
|
flipAlignment: m = !0,
|
|
379
387
|
...w
|
|
380
|
-
} =
|
|
388
|
+
} = J(e, t);
|
|
381
389
|
if ((o = s.arrow) != null && o.alignmentOffset)
|
|
382
390
|
return {};
|
|
383
|
-
const g =
|
|
384
|
-
!
|
|
385
|
-
const
|
|
386
|
-
let
|
|
387
|
-
if (
|
|
388
|
-
const
|
|
389
|
-
|
|
391
|
+
const g = E(n), v = Z(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]]);
|
|
390
398
|
}
|
|
391
|
-
if (
|
|
399
|
+
if (x = [...x, {
|
|
392
400
|
placement: n,
|
|
393
|
-
overflows:
|
|
394
|
-
}], !
|
|
395
|
-
var
|
|
396
|
-
const
|
|
397
|
-
if (
|
|
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)
|
|
398
406
|
return {
|
|
399
407
|
data: {
|
|
400
|
-
index:
|
|
401
|
-
overflows:
|
|
408
|
+
index: T,
|
|
409
|
+
overflows: x
|
|
402
410
|
},
|
|
403
411
|
reset: {
|
|
404
|
-
placement:
|
|
412
|
+
placement: ee
|
|
405
413
|
}
|
|
406
414
|
};
|
|
407
|
-
let
|
|
408
|
-
if (!
|
|
409
|
-
switch (
|
|
415
|
+
let F = (C = x.filter((R) => R.overflows[0] <= 0).sort((R, j) => R.overflows[1] - j.overflows[1])[0]) == null ? void 0 : C.placement;
|
|
416
|
+
if (!F)
|
|
417
|
+
switch (h) {
|
|
410
418
|
case "bestFit": {
|
|
411
|
-
var
|
|
412
|
-
const
|
|
413
|
-
|
|
419
|
+
var M;
|
|
420
|
+
const R = (M = x.filter((j) => {
|
|
421
|
+
if (z) {
|
|
422
|
+
const W = Z(j.placement);
|
|
423
|
+
return W === v || // Create a bias to the `y` side axis due to horizontal
|
|
424
|
+
// reading directions favoring greater width.
|
|
425
|
+
W === "y";
|
|
426
|
+
}
|
|
427
|
+
return !0;
|
|
428
|
+
}).map((j) => [j.placement, j.overflows.filter((W) => W > 0).reduce((W, Ft) => W + Ft, 0)]).sort((j, W) => j[1] - W[1])[0]) == null ? void 0 : M[0];
|
|
429
|
+
R && (F = R);
|
|
414
430
|
break;
|
|
415
431
|
}
|
|
416
432
|
case "initialPlacement":
|
|
417
|
-
|
|
433
|
+
F = a;
|
|
418
434
|
break;
|
|
419
435
|
}
|
|
420
|
-
if (n !==
|
|
436
|
+
if (n !== F)
|
|
421
437
|
return {
|
|
422
438
|
reset: {
|
|
423
|
-
placement:
|
|
439
|
+
placement: F
|
|
424
440
|
}
|
|
425
441
|
};
|
|
426
442
|
}
|
|
@@ -428,51 +444,56 @@ const ro = function(e) {
|
|
|
428
444
|
}
|
|
429
445
|
};
|
|
430
446
|
};
|
|
431
|
-
async function
|
|
447
|
+
async function co(e, t) {
|
|
432
448
|
const {
|
|
433
449
|
placement: o,
|
|
434
450
|
platform: i,
|
|
435
451
|
elements: n
|
|
436
|
-
} = e, s = await (i.isRTL == null ? void 0 : i.isRTL(n.floating)), r =
|
|
452
|
+
} = e, s = await (i.isRTL == null ? void 0 : i.isRTL(n.floating)), r = E(o), a = k(o), l = Z(o) === "y", d = ["left", "top"].includes(r) ? -1 : 1, c = s && l ? -1 : 1, p = J(t, e);
|
|
437
453
|
let {
|
|
438
|
-
mainAxis:
|
|
439
|
-
crossAxis:
|
|
440
|
-
alignmentAxis:
|
|
441
|
-
} = typeof
|
|
442
|
-
mainAxis:
|
|
454
|
+
mainAxis: u,
|
|
455
|
+
crossAxis: h,
|
|
456
|
+
alignmentAxis: f
|
|
457
|
+
} = typeof p == "number" ? {
|
|
458
|
+
mainAxis: p,
|
|
443
459
|
crossAxis: 0,
|
|
444
460
|
alignmentAxis: null
|
|
445
461
|
} : {
|
|
446
|
-
mainAxis: 0,
|
|
447
|
-
crossAxis: 0,
|
|
448
|
-
alignmentAxis:
|
|
449
|
-
...c
|
|
462
|
+
mainAxis: p.mainAxis || 0,
|
|
463
|
+
crossAxis: p.crossAxis || 0,
|
|
464
|
+
alignmentAxis: p.alignmentAxis
|
|
450
465
|
};
|
|
451
|
-
return a && typeof
|
|
452
|
-
x:
|
|
453
|
-
y:
|
|
466
|
+
return a && typeof f == "number" && (h = a === "end" ? f * -1 : f), l ? {
|
|
467
|
+
x: h * c,
|
|
468
|
+
y: u * d
|
|
454
469
|
} : {
|
|
455
|
-
x:
|
|
456
|
-
y:
|
|
470
|
+
x: u * d,
|
|
471
|
+
y: h * c
|
|
457
472
|
};
|
|
458
473
|
}
|
|
459
|
-
const
|
|
474
|
+
const ho = function(e) {
|
|
460
475
|
return e === void 0 && (e = 0), {
|
|
461
476
|
name: "offset",
|
|
462
477
|
options: e,
|
|
463
478
|
async fn(t) {
|
|
479
|
+
var o, i;
|
|
464
480
|
const {
|
|
465
|
-
x:
|
|
466
|
-
y:
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
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
|
+
}
|
|
472
493
|
};
|
|
473
494
|
}
|
|
474
495
|
};
|
|
475
|
-
},
|
|
496
|
+
}, uo = function(e) {
|
|
476
497
|
return e === void 0 && (e = {}), {
|
|
477
498
|
name: "shift",
|
|
478
499
|
options: e,
|
|
@@ -497,73 +518,71 @@ const po = function(e) {
|
|
|
497
518
|
}
|
|
498
519
|
},
|
|
499
520
|
...l
|
|
500
|
-
} =
|
|
521
|
+
} = J(e, t), d = {
|
|
501
522
|
x: o,
|
|
502
523
|
y: i
|
|
503
|
-
},
|
|
504
|
-
let
|
|
524
|
+
}, c = await Pe(t, l), p = Z(E(n)), u = mt(p);
|
|
525
|
+
let h = d[u], f = d[p];
|
|
505
526
|
if (s) {
|
|
506
|
-
const w =
|
|
507
|
-
|
|
527
|
+
const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", v = h + c[w], $ = h - c[g];
|
|
528
|
+
h = Re(v, h, $);
|
|
508
529
|
}
|
|
509
530
|
if (r) {
|
|
510
|
-
const w =
|
|
511
|
-
|
|
531
|
+
const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", v = f + c[w], $ = f - c[g];
|
|
532
|
+
f = Re(v, f, $);
|
|
512
533
|
}
|
|
513
534
|
const m = a.fn({
|
|
514
535
|
...t,
|
|
515
|
-
[
|
|
516
|
-
[
|
|
536
|
+
[u]: h,
|
|
537
|
+
[p]: f
|
|
517
538
|
});
|
|
518
539
|
return {
|
|
519
540
|
...m,
|
|
520
541
|
data: {
|
|
521
542
|
x: m.x - o,
|
|
522
|
-
y: m.y - i
|
|
543
|
+
y: m.y - i,
|
|
544
|
+
enabled: {
|
|
545
|
+
[u]: s,
|
|
546
|
+
[p]: r
|
|
547
|
+
}
|
|
523
548
|
}
|
|
524
549
|
};
|
|
525
550
|
}
|
|
526
551
|
};
|
|
527
|
-
},
|
|
552
|
+
}, fo = function(e) {
|
|
528
553
|
return e === void 0 && (e = {}), {
|
|
529
554
|
name: "size",
|
|
530
555
|
options: e,
|
|
531
556
|
async fn(t) {
|
|
557
|
+
var o, i;
|
|
532
558
|
const {
|
|
533
|
-
placement:
|
|
534
|
-
rects:
|
|
535
|
-
platform:
|
|
536
|
-
elements:
|
|
559
|
+
placement: n,
|
|
560
|
+
rects: s,
|
|
561
|
+
platform: r,
|
|
562
|
+
elements: a
|
|
537
563
|
} = t, {
|
|
538
|
-
apply:
|
|
564
|
+
apply: l = () => {
|
|
539
565
|
},
|
|
540
|
-
...
|
|
541
|
-
} =
|
|
542
|
-
width:
|
|
543
|
-
height:
|
|
544
|
-
} =
|
|
545
|
-
let
|
|
546
|
-
|
|
547
|
-
const
|
|
548
|
-
let
|
|
549
|
-
if (
|
|
550
|
-
const
|
|
551
|
-
|
|
552
|
-
} else {
|
|
553
|
-
const b = p - l.top - l.bottom;
|
|
554
|
-
$ = f || v ? re(w, b) : b;
|
|
566
|
+
...d
|
|
567
|
+
} = J(e, t), c = await Pe(t, d), p = E(n), u = k(n), h = Z(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));
|
|
555
578
|
}
|
|
556
|
-
|
|
557
|
-
const b = X(l.left, 0), T = X(l.right, 0), O = X(l.top, 0), z = X(l.bottom, 0);
|
|
558
|
-
c ? x = h - 2 * (b !== 0 || T !== 0 ? b + T : X(l.left, l.right)) : $ = p - 2 * (O !== 0 || z !== 0 ? O + z : X(l.top, l.bottom));
|
|
559
|
-
}
|
|
560
|
-
await r({
|
|
579
|
+
await l({
|
|
561
580
|
...t,
|
|
562
|
-
availableWidth:
|
|
563
|
-
availableHeight:
|
|
581
|
+
availableWidth: L,
|
|
582
|
+
availableHeight: S
|
|
564
583
|
});
|
|
565
|
-
const
|
|
566
|
-
return
|
|
584
|
+
const A = await r.getDimensions(a.floating);
|
|
585
|
+
return f !== A.width || m !== A.height ? {
|
|
567
586
|
reset: {
|
|
568
587
|
rects: !0
|
|
569
588
|
}
|
|
@@ -571,204 +590,204 @@ const po = function(e) {
|
|
|
571
590
|
}
|
|
572
591
|
};
|
|
573
592
|
};
|
|
574
|
-
function
|
|
593
|
+
function O(e) {
|
|
575
594
|
var t;
|
|
576
595
|
return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
577
596
|
}
|
|
578
597
|
function B(e) {
|
|
579
|
-
return
|
|
598
|
+
return O(e).getComputedStyle(e);
|
|
580
599
|
}
|
|
581
|
-
const
|
|
582
|
-
function
|
|
600
|
+
const Ke = Math.min, ne = Math.max, _e = Math.round;
|
|
601
|
+
function vt(e) {
|
|
583
602
|
const t = B(e);
|
|
584
603
|
let o = parseFloat(t.width), i = parseFloat(t.height);
|
|
585
|
-
const n = e.offsetWidth, s = e.offsetHeight, r =
|
|
604
|
+
const n = e.offsetWidth, s = e.offsetHeight, r = _e(o) !== n || _e(i) !== s;
|
|
586
605
|
return r && (o = n, i = s), { width: o, height: i, fallback: r };
|
|
587
606
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
607
|
+
function U(e) {
|
|
608
|
+
return $t(e) ? (e.nodeName || "").toLowerCase() : "";
|
|
590
609
|
}
|
|
591
|
-
let
|
|
592
|
-
function
|
|
593
|
-
if (
|
|
610
|
+
let fe;
|
|
611
|
+
function yt() {
|
|
612
|
+
if (fe) return fe;
|
|
594
613
|
const e = navigator.userAgentData;
|
|
595
|
-
return e && Array.isArray(e.brands) ? (
|
|
614
|
+
return e && Array.isArray(e.brands) ? (fe = e.brands.map((t) => t.brand + "/" + t.version).join(" "), fe) : navigator.userAgent;
|
|
596
615
|
}
|
|
597
|
-
function
|
|
598
|
-
return e instanceof
|
|
616
|
+
function D(e) {
|
|
617
|
+
return e instanceof O(e).HTMLElement;
|
|
599
618
|
}
|
|
600
|
-
function
|
|
601
|
-
return e instanceof
|
|
619
|
+
function G(e) {
|
|
620
|
+
return e instanceof O(e).Element;
|
|
602
621
|
}
|
|
603
|
-
function
|
|
604
|
-
return e instanceof
|
|
622
|
+
function $t(e) {
|
|
623
|
+
return e instanceof O(e).Node;
|
|
605
624
|
}
|
|
606
|
-
function
|
|
607
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof
|
|
625
|
+
function Qe(e) {
|
|
626
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof O(e).ShadowRoot || e instanceof ShadowRoot;
|
|
608
627
|
}
|
|
609
|
-
function
|
|
628
|
+
function Ae(e) {
|
|
610
629
|
const { overflow: t, overflowX: o, overflowY: i, display: n } = B(e);
|
|
611
630
|
return /auto|scroll|overlay|hidden|clip/.test(t + i + o) && !["inline", "contents"].includes(n);
|
|
612
631
|
}
|
|
613
|
-
function
|
|
614
|
-
return ["table", "td", "th"].includes(
|
|
632
|
+
function mo(e) {
|
|
633
|
+
return ["table", "td", "th"].includes(U(e));
|
|
615
634
|
}
|
|
616
|
-
function
|
|
617
|
-
const t = /firefox/i.test(
|
|
635
|
+
function Be(e) {
|
|
636
|
+
const t = /firefox/i.test(yt()), o = B(e), i = o.backdropFilter || o.WebkitBackdropFilter;
|
|
618
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) => {
|
|
619
638
|
const s = o.contain;
|
|
620
639
|
return s != null && s.includes(n);
|
|
621
640
|
});
|
|
622
641
|
}
|
|
623
|
-
function
|
|
624
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
625
|
-
}
|
|
626
|
-
function je(e) {
|
|
627
|
-
return ["html", "body", "#document"].includes(G(e));
|
|
642
|
+
function _t() {
|
|
643
|
+
return !/^((?!chrome|android).)*safari/i.test(yt());
|
|
628
644
|
}
|
|
629
|
-
function
|
|
630
|
-
return
|
|
645
|
+
function Ve(e) {
|
|
646
|
+
return ["html", "body", "#document"].includes(U(e));
|
|
631
647
|
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
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;
|
|
638
657
|
return r && Number.isFinite(r) || (r = 1), a && Number.isFinite(a) || (a = 1), { x: r, y: a };
|
|
639
658
|
}
|
|
640
|
-
function
|
|
659
|
+
function pe(e, t, o, i) {
|
|
641
660
|
var n, s;
|
|
642
661
|
t === void 0 && (t = !1), o === void 0 && (o = !1);
|
|
643
|
-
const r = e.getBoundingClientRect(), a =
|
|
644
|
-
let l =
|
|
645
|
-
t && (i ?
|
|
646
|
-
const d = a ?
|
|
647
|
-
let
|
|
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;
|
|
648
667
|
if (a) {
|
|
649
|
-
const m =
|
|
668
|
+
const m = O(a), w = i && G(i) ? O(i) : i;
|
|
650
669
|
let g = m.frameElement;
|
|
651
670
|
for (; g && i && w !== m; ) {
|
|
652
|
-
const v =
|
|
653
|
-
$.x += (g.clientLeft + parseFloat(
|
|
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;
|
|
654
673
|
}
|
|
655
674
|
}
|
|
656
|
-
return { width:
|
|
675
|
+
return { width: h, height: f, top: u, right: p + h, bottom: u + f, left: p, x: p, y: u };
|
|
657
676
|
}
|
|
658
|
-
function
|
|
659
|
-
return ((
|
|
677
|
+
function Y(e) {
|
|
678
|
+
return (($t(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
660
679
|
}
|
|
661
|
-
function
|
|
662
|
-
return
|
|
680
|
+
function Ce(e) {
|
|
681
|
+
return G(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
|
|
663
682
|
}
|
|
664
|
-
function
|
|
665
|
-
return
|
|
683
|
+
function Tt(e) {
|
|
684
|
+
return pe(Y(e)).left + Ce(e).scrollLeft;
|
|
666
685
|
}
|
|
667
|
-
function
|
|
668
|
-
if (
|
|
669
|
-
const t = e.assignedSlot || e.parentNode ||
|
|
670
|
-
return
|
|
686
|
+
function ce(e) {
|
|
687
|
+
if (U(e) === "html") return e;
|
|
688
|
+
const t = e.assignedSlot || e.parentNode || Qe(e) && e.host || Y(e);
|
|
689
|
+
return Qe(t) ? t.host : t;
|
|
671
690
|
}
|
|
672
|
-
function
|
|
673
|
-
const t =
|
|
674
|
-
return
|
|
691
|
+
function St(e) {
|
|
692
|
+
const t = ce(e);
|
|
693
|
+
return Ve(t) ? t.ownerDocument.body : D(t) && Ae(t) ? t : St(t);
|
|
675
694
|
}
|
|
676
|
-
function
|
|
695
|
+
function xe(e, t) {
|
|
677
696
|
var o;
|
|
678
697
|
t === void 0 && (t = []);
|
|
679
|
-
const i =
|
|
680
|
-
return n ? t.concat(s, s.visualViewport || [],
|
|
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));
|
|
681
700
|
}
|
|
682
|
-
function
|
|
683
|
-
return t === "viewport" ?
|
|
684
|
-
const s =
|
|
685
|
-
let l = r.clientWidth, d = r.clientHeight,
|
|
701
|
+
function Ze(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;
|
|
686
705
|
if (a) {
|
|
687
706
|
l = a.width, d = a.height;
|
|
688
|
-
const
|
|
689
|
-
(
|
|
707
|
+
const u = _t();
|
|
708
|
+
(u || !u && n === "fixed") && (c = a.offsetLeft, p = a.offsetTop);
|
|
690
709
|
}
|
|
691
|
-
return { width: l, height: d, x:
|
|
692
|
-
}(e, o)) :
|
|
693
|
-
const s =
|
|
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 };
|
|
694
713
|
return { width: i.clientWidth * l.x, height: i.clientHeight * l.y, x: a * l.x, y: r * l.y };
|
|
695
|
-
}(t, o)) :
|
|
696
|
-
const n =
|
|
697
|
-
let d = -s.scrollLeft +
|
|
698
|
-
const
|
|
699
|
-
return B(r).direction === "rtl" && (d +=
|
|
700
|
-
}(
|
|
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)));
|
|
701
720
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
704
|
-
}
|
|
705
|
-
function
|
|
706
|
-
const t =
|
|
707
|
-
let o =
|
|
708
|
-
for (; o &&
|
|
709
|
-
return o && (
|
|
710
|
-
let n =
|
|
711
|
-
for (;
|
|
712
|
-
if (
|
|
713
|
-
n =
|
|
721
|
+
function Je(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 = Je(e);
|
|
727
|
+
for (; o && mo(o) && B(o).position === "static"; ) o = Je(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);
|
|
714
733
|
}
|
|
715
734
|
return null;
|
|
716
735
|
}(e) || t;
|
|
717
736
|
}
|
|
718
|
-
function
|
|
719
|
-
const i =
|
|
737
|
+
function go(e, t, o) {
|
|
738
|
+
const i = D(t), n = Y(t), s = pe(e, !0, o === "fixed", t);
|
|
720
739
|
let r = { scrollLeft: 0, scrollTop: 0 };
|
|
721
740
|
const a = { x: 0, y: 0 };
|
|
722
|
-
if (i || !i && o !== "fixed") if ((
|
|
723
|
-
const l =
|
|
741
|
+
if (i || !i && o !== "fixed") if ((U(t) !== "body" || Ae(n)) && (r = Ce(t)), D(t)) {
|
|
742
|
+
const l = pe(t, !0);
|
|
724
743
|
a.x = l.x + t.clientLeft, a.y = l.y + t.clientTop;
|
|
725
|
-
} else n && (a.x =
|
|
744
|
+
} else n && (a.x = Tt(n));
|
|
726
745
|
return { x: s.left + r.scrollLeft - a.x, y: s.top + r.scrollTop - a.y, width: s.width, height: s.height };
|
|
727
746
|
}
|
|
728
|
-
const
|
|
747
|
+
const wo = { getClippingRect: function(e) {
|
|
729
748
|
let { element: t, boundary: o, rootBoundary: i, strategy: n } = e;
|
|
730
|
-
const s = o === "clippingAncestors" ? function(d,
|
|
731
|
-
const
|
|
732
|
-
if (
|
|
733
|
-
let
|
|
734
|
-
const
|
|
735
|
-
let m =
|
|
736
|
-
for (;
|
|
737
|
-
const w = B(m), g =
|
|
738
|
-
(
|
|
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);
|
|
739
758
|
}
|
|
740
|
-
return
|
|
741
|
-
}(t, this._c) : [].concat(o), r = [...s, i], a = r[0], l = r.reduce((d,
|
|
742
|
-
const
|
|
743
|
-
return d.top =
|
|
744
|
-
},
|
|
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 = Ze(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
|
+
}, Ze(t, a, n));
|
|
745
764
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
746
765
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
|
|
747
766
|
let { rect: t, offsetParent: o, strategy: i } = e;
|
|
748
|
-
const n =
|
|
767
|
+
const n = D(o), s = Y(o);
|
|
749
768
|
if (o === s) return t;
|
|
750
769
|
let r = { scrollLeft: 0, scrollTop: 0 }, a = { x: 1, y: 1 };
|
|
751
770
|
const l = { x: 0, y: 0 };
|
|
752
|
-
if ((n || !n && i !== "fixed") && ((
|
|
753
|
-
const d =
|
|
754
|
-
a =
|
|
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;
|
|
755
774
|
}
|
|
756
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 };
|
|
757
|
-
}, isElement:
|
|
758
|
-
return
|
|
759
|
-
}, getOffsetParent:
|
|
776
|
+
}, isElement: G, getDimensions: function(e) {
|
|
777
|
+
return D(e) ? vt(e) : e.getBoundingClientRect();
|
|
778
|
+
}, getOffsetParent: et, getDocumentElement: Y, getScale: te, async getElementRects(e) {
|
|
760
779
|
let { reference: t, floating: o, strategy: i } = e;
|
|
761
|
-
const n = this.getOffsetParent ||
|
|
762
|
-
return { reference:
|
|
763
|
-
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => B(e).direction === "rtl" },
|
|
764
|
-
const i = /* @__PURE__ */ new Map(), n = { platform:
|
|
765
|
-
return
|
|
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 });
|
|
766
785
|
};
|
|
767
|
-
function
|
|
786
|
+
function Pt(e, t) {
|
|
768
787
|
for (const o in t)
|
|
769
|
-
Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ?
|
|
788
|
+
Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ? Pt(e[o], t[o]) : e[o] = t[o]);
|
|
770
789
|
}
|
|
771
|
-
const
|
|
790
|
+
const H = {
|
|
772
791
|
// Disable popper components
|
|
773
792
|
disabled: !1,
|
|
774
793
|
// Default position offset along main axis (px)
|
|
@@ -847,96 +866,96 @@ const M = {
|
|
|
847
866
|
}
|
|
848
867
|
}
|
|
849
868
|
};
|
|
850
|
-
function
|
|
851
|
-
let o =
|
|
869
|
+
function he(e, t) {
|
|
870
|
+
let o = H.themes[e] || {}, i;
|
|
852
871
|
do
|
|
853
|
-
i = o[t], typeof i > "u" ? o.$extend ? o =
|
|
872
|
+
i = o[t], typeof i > "u" ? o.$extend ? o = H.themes[o.$extend] || {} : (o = null, i = H[t]) : o = null;
|
|
854
873
|
while (o);
|
|
855
874
|
return i;
|
|
856
875
|
}
|
|
857
|
-
function
|
|
876
|
+
function yo(e) {
|
|
858
877
|
const t = [e];
|
|
859
|
-
let o =
|
|
878
|
+
let o = H.themes[e] || {};
|
|
860
879
|
do
|
|
861
|
-
o.$extend && !o.$resetCss ? (t.push(o.$extend), o =
|
|
880
|
+
o.$extend && !o.$resetCss ? (t.push(o.$extend), o = H.themes[o.$extend] || {}) : o = null;
|
|
862
881
|
while (o);
|
|
863
882
|
return t.map((i) => `v-popper--theme-${i}`);
|
|
864
883
|
}
|
|
865
|
-
function
|
|
884
|
+
function tt(e) {
|
|
866
885
|
const t = [e];
|
|
867
|
-
let o =
|
|
886
|
+
let o = H.themes[e] || {};
|
|
868
887
|
do
|
|
869
|
-
o.$extend ? (t.push(o.$extend), o =
|
|
888
|
+
o.$extend ? (t.push(o.$extend), o = H.themes[o.$extend] || {}) : o = null;
|
|
870
889
|
while (o);
|
|
871
890
|
return t;
|
|
872
891
|
}
|
|
873
|
-
let
|
|
892
|
+
let oe = !1;
|
|
874
893
|
if (typeof window < "u") {
|
|
875
|
-
|
|
894
|
+
oe = !1;
|
|
876
895
|
try {
|
|
877
896
|
const e = Object.defineProperty({}, "passive", {
|
|
878
897
|
get() {
|
|
879
|
-
|
|
898
|
+
oe = !0;
|
|
880
899
|
}
|
|
881
900
|
});
|
|
882
901
|
window.addEventListener("test", null, e);
|
|
883
902
|
} catch {
|
|
884
903
|
}
|
|
885
904
|
}
|
|
886
|
-
let
|
|
887
|
-
typeof window < "u" && typeof navigator < "u" && (
|
|
888
|
-
const
|
|
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([
|
|
889
908
|
t,
|
|
890
909
|
`${t}-start`,
|
|
891
910
|
`${t}-end`
|
|
892
|
-
]), []),
|
|
911
|
+
]), []), ot = {
|
|
893
912
|
hover: "mouseenter",
|
|
894
913
|
focus: "focus",
|
|
895
914
|
click: "click",
|
|
896
915
|
touch: "touchstart",
|
|
897
916
|
pointer: "pointerdown"
|
|
898
|
-
},
|
|
917
|
+
}, it = {
|
|
899
918
|
hover: "mouseleave",
|
|
900
919
|
focus: "blur",
|
|
901
920
|
click: "click",
|
|
902
921
|
touch: "touchend",
|
|
903
922
|
pointer: "pointerup"
|
|
904
923
|
};
|
|
905
|
-
function
|
|
924
|
+
function nt(e, t) {
|
|
906
925
|
const o = e.indexOf(t);
|
|
907
926
|
o !== -1 && e.splice(o, 1);
|
|
908
927
|
}
|
|
909
|
-
function
|
|
928
|
+
function ke() {
|
|
910
929
|
return new Promise((e) => requestAnimationFrame(() => {
|
|
911
930
|
requestAnimationFrame(e);
|
|
912
931
|
}));
|
|
913
932
|
}
|
|
914
|
-
const
|
|
915
|
-
let
|
|
916
|
-
const
|
|
917
|
-
function
|
|
918
|
-
let t =
|
|
919
|
-
return t || (t =
|
|
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;
|
|
920
939
|
}
|
|
921
|
-
let
|
|
940
|
+
let De = function() {
|
|
922
941
|
};
|
|
923
|
-
typeof window < "u" && (
|
|
942
|
+
typeof window < "u" && (De = window.Element);
|
|
924
943
|
function y(e) {
|
|
925
944
|
return function(t) {
|
|
926
|
-
return
|
|
945
|
+
return he(t.theme, e);
|
|
927
946
|
};
|
|
928
947
|
}
|
|
929
|
-
const
|
|
948
|
+
const He = "__floating-vue__popper", Ot = () => Te({
|
|
930
949
|
name: "VPopper",
|
|
931
950
|
provide() {
|
|
932
951
|
return {
|
|
933
|
-
[
|
|
952
|
+
[He]: {
|
|
934
953
|
parentPopper: this
|
|
935
954
|
}
|
|
936
955
|
};
|
|
937
956
|
},
|
|
938
957
|
inject: {
|
|
939
|
-
[
|
|
958
|
+
[He]: { default: null }
|
|
940
959
|
},
|
|
941
960
|
props: {
|
|
942
961
|
theme: {
|
|
@@ -978,7 +997,7 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
978
997
|
placement: {
|
|
979
998
|
type: String,
|
|
980
999
|
default: y("placement"),
|
|
981
|
-
validator: (e) =>
|
|
1000
|
+
validator: (e) => Ct.includes(e)
|
|
982
1001
|
},
|
|
983
1002
|
delay: {
|
|
984
1003
|
type: [String, Number, Object],
|
|
@@ -1017,11 +1036,11 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1017
1036
|
default: y("popperHideTriggers")
|
|
1018
1037
|
},
|
|
1019
1038
|
container: {
|
|
1020
|
-
type: [String, Object,
|
|
1039
|
+
type: [String, Object, De, Boolean],
|
|
1021
1040
|
default: y("container")
|
|
1022
1041
|
},
|
|
1023
1042
|
boundary: {
|
|
1024
|
-
type: [String,
|
|
1043
|
+
type: [String, De],
|
|
1025
1044
|
default: y("boundary")
|
|
1026
1045
|
},
|
|
1027
1046
|
strategy: {
|
|
@@ -1183,7 +1202,7 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1183
1202
|
},
|
|
1184
1203
|
parentPopper() {
|
|
1185
1204
|
var e;
|
|
1186
|
-
return (e = this[
|
|
1205
|
+
return (e = this[He]) == null ? void 0 : e.parentPopper;
|
|
1187
1206
|
},
|
|
1188
1207
|
hasPopperShowTriggerHover() {
|
|
1189
1208
|
var e, t;
|
|
@@ -1272,21 +1291,21 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1272
1291
|
strategy: this.strategy,
|
|
1273
1292
|
middleware: []
|
|
1274
1293
|
};
|
|
1275
|
-
(this.distance || this.skidding) && e.middleware.push(
|
|
1294
|
+
(this.distance || this.skidding) && e.middleware.push(ho({
|
|
1276
1295
|
mainAxis: this.distance,
|
|
1277
1296
|
crossAxis: this.skidding
|
|
1278
1297
|
}));
|
|
1279
1298
|
const t = this.placement.startsWith("auto");
|
|
1280
|
-
if (t ? e.middleware.push(
|
|
1299
|
+
if (t ? e.middleware.push(lo({
|
|
1281
1300
|
alignment: this.placement.split("-")[1] ?? ""
|
|
1282
|
-
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(
|
|
1301
|
+
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(uo({
|
|
1283
1302
|
padding: this.overflowPadding,
|
|
1284
1303
|
boundary: this.boundary,
|
|
1285
1304
|
crossAxis: this.shiftCrossAxis
|
|
1286
|
-
})), !t && this.flip && e.middleware.push(
|
|
1305
|
+
})), !t && this.flip && e.middleware.push(po({
|
|
1287
1306
|
padding: this.overflowPadding,
|
|
1288
1307
|
boundary: this.boundary
|
|
1289
|
-
}))), e.middleware.push(
|
|
1308
|
+
}))), e.middleware.push(ro({
|
|
1290
1309
|
element: this.$_arrowNode,
|
|
1291
1310
|
padding: this.arrowPadding
|
|
1292
1311
|
})), this.arrowOverflow && e.middleware.push({
|
|
@@ -1320,14 +1339,14 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1320
1339
|
}
|
|
1321
1340
|
});
|
|
1322
1341
|
}
|
|
1323
|
-
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(
|
|
1342
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(fo({
|
|
1324
1343
|
boundary: this.boundary,
|
|
1325
1344
|
padding: this.overflowPadding,
|
|
1326
1345
|
apply: ({ availableWidth: i, availableHeight: n }) => {
|
|
1327
1346
|
this.$_innerNode.style.maxWidth = i != null ? `${i}px` : null, this.$_innerNode.style.maxHeight = n != null ? `${n}px` : null;
|
|
1328
1347
|
}
|
|
1329
1348
|
})));
|
|
1330
|
-
const o = await
|
|
1349
|
+
const o = await vo(this.$_referenceNode, this.$_popperNode, e);
|
|
1331
1350
|
Object.assign(this.result, {
|
|
1332
1351
|
x: o.x,
|
|
1333
1352
|
y: o.y,
|
|
@@ -1340,8 +1359,8 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1340
1359
|
});
|
|
1341
1360
|
},
|
|
1342
1361
|
$_scheduleShow(e, t = !1) {
|
|
1343
|
-
if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer),
|
|
1344
|
-
|
|
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);
|
|
1345
1364
|
return;
|
|
1346
1365
|
}
|
|
1347
1366
|
t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
@@ -1351,16 +1370,16 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1351
1370
|
this.pendingHide = !0;
|
|
1352
1371
|
return;
|
|
1353
1372
|
}
|
|
1354
|
-
this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (
|
|
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"));
|
|
1355
1374
|
},
|
|
1356
1375
|
$_computeDelay(e) {
|
|
1357
1376
|
const t = this.delay;
|
|
1358
1377
|
return parseInt(t && t[e] || t || 0);
|
|
1359
1378
|
},
|
|
1360
1379
|
async $_applyShow(e = !1) {
|
|
1361
|
-
clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await
|
|
1362
|
-
|
|
1363
|
-
|
|
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)
|
|
1364
1383
|
], "scroll", () => {
|
|
1365
1384
|
this.$_computePosition();
|
|
1366
1385
|
}));
|
|
@@ -1379,13 +1398,13 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1379
1398
|
const e = this.showGroup;
|
|
1380
1399
|
if (e) {
|
|
1381
1400
|
let t;
|
|
1382
|
-
for (let o = 0; o <
|
|
1383
|
-
t =
|
|
1401
|
+
for (let o = 0; o < N.length; o++)
|
|
1402
|
+
t = N[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
|
|
1384
1403
|
}
|
|
1385
|
-
|
|
1386
|
-
for (const t of
|
|
1387
|
-
|
|
1388
|
-
this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await
|
|
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();
|
|
1389
1408
|
},
|
|
1390
1409
|
async $_applyHide(e = !1) {
|
|
1391
1410
|
if (this.shownChildren.size > 0) {
|
|
@@ -1394,19 +1413,19 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1394
1413
|
}
|
|
1395
1414
|
if (clearTimeout(this.$_scheduleTimer), !this.isShown)
|
|
1396
1415
|
return;
|
|
1397
|
-
this.skipTransition = e,
|
|
1398
|
-
for (const o of
|
|
1399
|
-
const i =
|
|
1400
|
-
|
|
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}`);
|
|
1401
1420
|
}
|
|
1402
|
-
|
|
1421
|
+
X === this && (X = null), this.isShown = !1, this.$_applyAttrsToTarget({
|
|
1403
1422
|
"aria-describedby": void 0,
|
|
1404
1423
|
"data-popper-shown": void 0
|
|
1405
1424
|
}), clearTimeout(this.$_disposeTimer);
|
|
1406
1425
|
const t = this.disposeTimeout;
|
|
1407
1426
|
t !== null && (this.$_disposeTimer = setTimeout(() => {
|
|
1408
1427
|
this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
|
|
1409
|
-
}, 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
|
|
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;
|
|
1410
1429
|
},
|
|
1411
1430
|
$_autoShowHide() {
|
|
1412
1431
|
this.shown ? this.show() : this.hide();
|
|
@@ -1423,14 +1442,14 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1423
1442
|
const e = (o) => {
|
|
1424
1443
|
this.isShown && !this.$_hideInProgress || (o.usedByTooltip = !0, !this.$_preventShow && this.show({ event: o }));
|
|
1425
1444
|
};
|
|
1426
|
-
this.$_registerTriggerListeners(this.$_targetNodes,
|
|
1445
|
+
this.$_registerTriggerListeners(this.$_targetNodes, ot, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], ot, this.popperTriggers, this.popperShowTriggers, e);
|
|
1427
1446
|
const t = (o) => {
|
|
1428
1447
|
o.usedByTooltip || this.hide({ event: o });
|
|
1429
1448
|
};
|
|
1430
|
-
this.$_registerTriggerListeners(this.$_targetNodes,
|
|
1449
|
+
this.$_registerTriggerListeners(this.$_targetNodes, it, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], it, this.popperTriggers, this.popperHideTriggers, t);
|
|
1431
1450
|
},
|
|
1432
1451
|
$_registerEventListeners(e, t, o) {
|
|
1433
|
-
this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((i) => i.addEventListener(t, o,
|
|
1452
|
+
this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((i) => i.addEventListener(t, o, oe ? {
|
|
1434
1453
|
passive: !0
|
|
1435
1454
|
} : void 0));
|
|
1436
1455
|
},
|
|
@@ -1479,12 +1498,12 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1479
1498
|
},
|
|
1480
1499
|
$_isAimingPopper() {
|
|
1481
1500
|
const e = this.$_referenceNode.getBoundingClientRect();
|
|
1482
|
-
if (
|
|
1483
|
-
const t = this.$_popperNode.getBoundingClientRect(), o =
|
|
1484
|
-
return
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
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);
|
|
1488
1507
|
}
|
|
1489
1508
|
return !1;
|
|
1490
1509
|
}
|
|
@@ -1494,39 +1513,39 @@ const Ne = "__floating-vue__popper", Ct = () => xe({
|
|
|
1494
1513
|
}
|
|
1495
1514
|
});
|
|
1496
1515
|
if (typeof document < "u" && typeof window < "u") {
|
|
1497
|
-
if (
|
|
1498
|
-
const e =
|
|
1516
|
+
if (At) {
|
|
1517
|
+
const e = oe ? {
|
|
1499
1518
|
passive: !0,
|
|
1500
1519
|
capture: !0
|
|
1501
1520
|
} : !0;
|
|
1502
|
-
document.addEventListener("touchstart", (t) =>
|
|
1521
|
+
document.addEventListener("touchstart", (t) => at(t, !0), e), document.addEventListener("touchend", (t) => lt(t, !0), e);
|
|
1503
1522
|
} else
|
|
1504
|
-
window.addEventListener("mousedown", (e) =>
|
|
1505
|
-
window.addEventListener("resize",
|
|
1523
|
+
window.addEventListener("mousedown", (e) => at(e, !1), !0), window.addEventListener("click", (e) => lt(e, !1), !0);
|
|
1524
|
+
window.addEventListener("resize", _o);
|
|
1506
1525
|
}
|
|
1507
|
-
function
|
|
1508
|
-
if (
|
|
1509
|
-
|
|
1526
|
+
function at(e, t) {
|
|
1527
|
+
if (H.autoHideOnMousedown)
|
|
1528
|
+
zt(e, t);
|
|
1510
1529
|
else
|
|
1511
|
-
for (let o = 0; o <
|
|
1512
|
-
const i =
|
|
1530
|
+
for (let o = 0; o < N.length; o++) {
|
|
1531
|
+
const i = N[o];
|
|
1513
1532
|
try {
|
|
1514
1533
|
i.mouseDownContains = i.popperNode().contains(e.target);
|
|
1515
1534
|
} catch {
|
|
1516
1535
|
}
|
|
1517
1536
|
}
|
|
1518
1537
|
}
|
|
1519
|
-
function
|
|
1520
|
-
|
|
1538
|
+
function lt(e, t) {
|
|
1539
|
+
H.autoHideOnMousedown || zt(e, t);
|
|
1521
1540
|
}
|
|
1522
|
-
function
|
|
1541
|
+
function zt(e, t) {
|
|
1523
1542
|
const o = {};
|
|
1524
|
-
for (let i =
|
|
1525
|
-
const n =
|
|
1543
|
+
for (let i = N.length - 1; i >= 0; i--) {
|
|
1544
|
+
const n = N[i];
|
|
1526
1545
|
try {
|
|
1527
1546
|
const s = n.containsGlobalTarget = n.mouseDownContains || n.popperNode().contains(e.target);
|
|
1528
1547
|
n.pendingHide = !1, requestAnimationFrame(() => {
|
|
1529
|
-
if (n.pendingHide = !1, !o[n.randomId] &&
|
|
1548
|
+
if (n.pendingHide = !1, !o[n.randomId] && dt(n, s, e)) {
|
|
1530
1549
|
if (n.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && s) {
|
|
1531
1550
|
let a = n.parentPopper;
|
|
1532
1551
|
for (; a; )
|
|
@@ -1534,7 +1553,7 @@ function At(e, t) {
|
|
|
1534
1553
|
return;
|
|
1535
1554
|
}
|
|
1536
1555
|
let r = n.parentPopper;
|
|
1537
|
-
for (; r &&
|
|
1556
|
+
for (; r && dt(r, r.containsGlobalTarget, e); )
|
|
1538
1557
|
r.$_handleGlobalClose(e, t), r = r.parentPopper;
|
|
1539
1558
|
}
|
|
1540
1559
|
});
|
|
@@ -1542,50 +1561,50 @@ function At(e, t) {
|
|
|
1542
1561
|
}
|
|
1543
1562
|
}
|
|
1544
1563
|
}
|
|
1545
|
-
function
|
|
1546
|
-
return o.closeAllPopover || o.closePopover && t ||
|
|
1564
|
+
function dt(e, t, o) {
|
|
1565
|
+
return o.closeAllPopover || o.closePopover && t || $o(e, o) && !t;
|
|
1547
1566
|
}
|
|
1548
|
-
function
|
|
1567
|
+
function $o(e, t) {
|
|
1549
1568
|
if (typeof e.autoHide == "function") {
|
|
1550
1569
|
const o = e.autoHide(t);
|
|
1551
1570
|
return e.lastAutoHide = o, o;
|
|
1552
1571
|
}
|
|
1553
1572
|
return e.autoHide;
|
|
1554
1573
|
}
|
|
1555
|
-
function
|
|
1556
|
-
for (let e = 0; e <
|
|
1557
|
-
|
|
1574
|
+
function _o() {
|
|
1575
|
+
for (let e = 0; e < N.length; e++)
|
|
1576
|
+
N[e].$_computePosition();
|
|
1558
1577
|
}
|
|
1559
|
-
let
|
|
1578
|
+
let V = 0, q = 0, se = 0, re = 0;
|
|
1560
1579
|
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
1561
|
-
|
|
1562
|
-
},
|
|
1580
|
+
V = se, q = re, se = e.clientX, re = e.clientY;
|
|
1581
|
+
}, oe ? {
|
|
1563
1582
|
passive: !0
|
|
1564
1583
|
} : void 0);
|
|
1565
|
-
function
|
|
1584
|
+
function me(e, t, o, i, n, s, r, a) {
|
|
1566
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));
|
|
1567
1586
|
return l >= 0 && l <= 1 && d >= 0 && d <= 1;
|
|
1568
1587
|
}
|
|
1569
|
-
const
|
|
1570
|
-
extends:
|
|
1571
|
-
},
|
|
1588
|
+
const xo = {
|
|
1589
|
+
extends: Ot()
|
|
1590
|
+
}, Oe = (e, t) => {
|
|
1572
1591
|
const o = e.__vccOpts || e;
|
|
1573
1592
|
for (const [i, n] of t)
|
|
1574
1593
|
o[i] = n;
|
|
1575
1594
|
return o;
|
|
1576
1595
|
};
|
|
1577
|
-
function
|
|
1578
|
-
return I(),
|
|
1596
|
+
function bo(e, t, o, i, n, s) {
|
|
1597
|
+
return I(), le("div", {
|
|
1579
1598
|
ref: "reference",
|
|
1580
|
-
class:
|
|
1599
|
+
class: Ie(["v-popper", {
|
|
1581
1600
|
"v-popper--shown": e.slotData.isShown
|
|
1582
1601
|
}])
|
|
1583
1602
|
}, [
|
|
1584
|
-
|
|
1603
|
+
we(e.$slots, "default", Kt(Qt(e.slotData)))
|
|
1585
1604
|
], 2);
|
|
1586
1605
|
}
|
|
1587
|
-
const
|
|
1588
|
-
function
|
|
1606
|
+
const To = /* @__PURE__ */ Oe(xo, [["render", bo]]);
|
|
1607
|
+
function So() {
|
|
1589
1608
|
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
1590
1609
|
if (t > 0)
|
|
1591
1610
|
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
@@ -1597,11 +1616,11 @@ function bo() {
|
|
|
1597
1616
|
var n = e.indexOf("Edge/");
|
|
1598
1617
|
return n > 0 ? parseInt(e.substring(n + 5, e.indexOf(".", n)), 10) : -1;
|
|
1599
1618
|
}
|
|
1600
|
-
let
|
|
1601
|
-
function
|
|
1602
|
-
|
|
1619
|
+
let ge;
|
|
1620
|
+
function Ee() {
|
|
1621
|
+
Ee.init || (Ee.init = !0, ge = So() !== -1);
|
|
1603
1622
|
}
|
|
1604
|
-
var
|
|
1623
|
+
var ze = {
|
|
1605
1624
|
name: "ResizeObserver",
|
|
1606
1625
|
props: {
|
|
1607
1626
|
emitOnMount: {
|
|
@@ -1621,11 +1640,11 @@ var Ae = {
|
|
|
1621
1640
|
"notify"
|
|
1622
1641
|
],
|
|
1623
1642
|
mounted() {
|
|
1624
|
-
|
|
1643
|
+
Ee(), qt(() => {
|
|
1625
1644
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
1626
1645
|
});
|
|
1627
1646
|
const e = document.createElement("object");
|
|
1628
|
-
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html",
|
|
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);
|
|
1629
1648
|
},
|
|
1630
1649
|
beforeUnmount() {
|
|
1631
1650
|
this.removeResizeHandlers();
|
|
@@ -1644,34 +1663,34 @@ var Ae = {
|
|
|
1644
1663
|
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
1645
1664
|
},
|
|
1646
1665
|
removeResizeHandlers() {
|
|
1647
|
-
this._resizeObject && this._resizeObject.onload && (!
|
|
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);
|
|
1648
1667
|
}
|
|
1649
1668
|
}
|
|
1650
1669
|
};
|
|
1651
|
-
const
|
|
1652
|
-
|
|
1653
|
-
const
|
|
1670
|
+
const Po = /* @__PURE__ */ Xt();
|
|
1671
|
+
It("data-v-b329ee4c");
|
|
1672
|
+
const Ao = {
|
|
1654
1673
|
class: "resize-observer",
|
|
1655
1674
|
tabindex: "-1"
|
|
1656
1675
|
};
|
|
1657
|
-
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
const
|
|
1676
|
+
jt();
|
|
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") => ({
|
|
1663
1682
|
computed: {
|
|
1664
1683
|
themeClass() {
|
|
1665
|
-
return
|
|
1684
|
+
return yo(this[e]);
|
|
1666
1685
|
}
|
|
1667
1686
|
}
|
|
1668
|
-
}),
|
|
1687
|
+
}), Oo = Te({
|
|
1669
1688
|
name: "VPopperContent",
|
|
1670
1689
|
components: {
|
|
1671
|
-
ResizeObserver:
|
|
1690
|
+
ResizeObserver: ze
|
|
1672
1691
|
},
|
|
1673
1692
|
mixins: [
|
|
1674
|
-
|
|
1693
|
+
Nt()
|
|
1675
1694
|
],
|
|
1676
1695
|
props: {
|
|
1677
1696
|
popperId: String,
|
|
@@ -1693,19 +1712,19 @@ const Ot = (e = "theme") => ({
|
|
|
1693
1712
|
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
1694
1713
|
}
|
|
1695
1714
|
}
|
|
1696
|
-
}),
|
|
1715
|
+
}), zo = ["id", "aria-hidden", "tabindex", "data-popper-placement"], No = {
|
|
1697
1716
|
ref: "inner",
|
|
1698
1717
|
class: "v-popper__inner"
|
|
1699
|
-
},
|
|
1700
|
-
|
|
1701
|
-
|
|
1718
|
+
}, ko = /* @__PURE__ */ Q("div", { class: "v-popper__arrow-outer" }, null, -1), Ho = /* @__PURE__ */ Q("div", { class: "v-popper__arrow-inner" }, null, -1), Lo = [
|
|
1719
|
+
ko,
|
|
1720
|
+
Ho
|
|
1702
1721
|
];
|
|
1703
|
-
function
|
|
1704
|
-
const r =
|
|
1705
|
-
return I(),
|
|
1722
|
+
function Mo(e, t, o, i, n, s) {
|
|
1723
|
+
const r = ae("ResizeObserver");
|
|
1724
|
+
return I(), le("div", {
|
|
1706
1725
|
id: e.popperId,
|
|
1707
1726
|
ref: "popover",
|
|
1708
|
-
class:
|
|
1727
|
+
class: Ie(["v-popper__popper", [
|
|
1709
1728
|
e.themeClass,
|
|
1710
1729
|
e.classes.popperClass,
|
|
1711
1730
|
{
|
|
@@ -1720,48 +1739,48 @@ function Lo(e, t, o, i, n, s) {
|
|
|
1720
1739
|
"v-popper__popper--no-positioning": !e.result
|
|
1721
1740
|
}
|
|
1722
1741
|
]]),
|
|
1723
|
-
style:
|
|
1742
|
+
style: Ne(e.result ? {
|
|
1724
1743
|
position: e.result.strategy,
|
|
1725
1744
|
transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
|
|
1726
1745
|
} : void 0),
|
|
1727
1746
|
"aria-hidden": e.shown ? "false" : "true",
|
|
1728
1747
|
tabindex: e.autoHide ? 0 : void 0,
|
|
1729
1748
|
"data-popper-placement": e.result ? e.result.placement : void 0,
|
|
1730
|
-
onKeyup: t[2] || (t[2] =
|
|
1749
|
+
onKeyup: t[2] || (t[2] = Vt((a) => e.autoHide && e.$emit("hide"), ["esc"]))
|
|
1731
1750
|
}, [
|
|
1732
|
-
|
|
1751
|
+
Q("div", {
|
|
1733
1752
|
class: "v-popper__backdrop",
|
|
1734
1753
|
onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
|
|
1735
1754
|
}),
|
|
1736
|
-
|
|
1755
|
+
Q("div", {
|
|
1737
1756
|
class: "v-popper__wrapper",
|
|
1738
|
-
style:
|
|
1757
|
+
style: Ne(e.result ? {
|
|
1739
1758
|
transformOrigin: e.result.transformOrigin
|
|
1740
1759
|
} : void 0)
|
|
1741
1760
|
}, [
|
|
1742
|
-
|
|
1743
|
-
e.mounted ? (I(),
|
|
1744
|
-
|
|
1745
|
-
|
|
1761
|
+
Q("div", No, [
|
|
1762
|
+
e.mounted ? (I(), le(Wt, { key: 0 }, [
|
|
1763
|
+
Q("div", null, [
|
|
1764
|
+
we(e.$slots, "default")
|
|
1746
1765
|
]),
|
|
1747
|
-
e.handleResize ? (I(),
|
|
1766
|
+
e.handleResize ? (I(), Se(r, {
|
|
1748
1767
|
key: 0,
|
|
1749
1768
|
onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
|
|
1750
|
-
})) :
|
|
1751
|
-
], 64)) :
|
|
1769
|
+
})) : Ge("", !0)
|
|
1770
|
+
], 64)) : Ge("", !0)
|
|
1752
1771
|
], 512),
|
|
1753
|
-
|
|
1772
|
+
Q("div", {
|
|
1754
1773
|
ref: "arrow",
|
|
1755
1774
|
class: "v-popper__arrow-container",
|
|
1756
|
-
style:
|
|
1775
|
+
style: Ne(e.result ? {
|
|
1757
1776
|
left: e.toPx(e.result.arrow.x),
|
|
1758
1777
|
top: e.toPx(e.result.arrow.y)
|
|
1759
1778
|
} : void 0)
|
|
1760
|
-
},
|
|
1779
|
+
}, Lo, 4)
|
|
1761
1780
|
], 4)
|
|
1762
|
-
], 46,
|
|
1781
|
+
], 46, zo);
|
|
1763
1782
|
}
|
|
1764
|
-
const
|
|
1783
|
+
const kt = /* @__PURE__ */ Oe(Oo, [["render", Mo]]), Ht = {
|
|
1765
1784
|
methods: {
|
|
1766
1785
|
show(...e) {
|
|
1767
1786
|
return this.$refs.popper.show(...e);
|
|
@@ -1777,18 +1796,18 @@ const zt = /* @__PURE__ */ Ce(Co, [["render", Lo]]), Nt = {
|
|
|
1777
1796
|
}
|
|
1778
1797
|
}
|
|
1779
1798
|
};
|
|
1780
|
-
let
|
|
1799
|
+
let Fe = function() {
|
|
1781
1800
|
};
|
|
1782
|
-
typeof window < "u" && (
|
|
1783
|
-
const
|
|
1801
|
+
typeof window < "u" && (Fe = window.Element);
|
|
1802
|
+
const Ro = Te({
|
|
1784
1803
|
name: "VPopperWrapper",
|
|
1785
1804
|
components: {
|
|
1786
|
-
Popper:
|
|
1787
|
-
PopperContent:
|
|
1805
|
+
Popper: To,
|
|
1806
|
+
PopperContent: kt
|
|
1788
1807
|
},
|
|
1789
1808
|
mixins: [
|
|
1790
|
-
|
|
1791
|
-
|
|
1809
|
+
Ht,
|
|
1810
|
+
Nt("finalTheme")
|
|
1792
1811
|
],
|
|
1793
1812
|
props: {
|
|
1794
1813
|
theme: {
|
|
@@ -1860,11 +1879,11 @@ const Mo = xe({
|
|
|
1860
1879
|
default: void 0
|
|
1861
1880
|
},
|
|
1862
1881
|
container: {
|
|
1863
|
-
type: [String, Object,
|
|
1882
|
+
type: [String, Object, Fe, Boolean],
|
|
1864
1883
|
default: void 0
|
|
1865
1884
|
},
|
|
1866
1885
|
boundary: {
|
|
1867
|
-
type: [String,
|
|
1886
|
+
type: [String, Fe],
|
|
1868
1887
|
default: void 0
|
|
1869
1888
|
},
|
|
1870
1889
|
strategy: {
|
|
@@ -1976,9 +1995,9 @@ const Mo = xe({
|
|
|
1976
1995
|
}
|
|
1977
1996
|
}
|
|
1978
1997
|
});
|
|
1979
|
-
function
|
|
1980
|
-
const r =
|
|
1981
|
-
return I(),
|
|
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, {
|
|
1982
2001
|
theme: e.finalTheme,
|
|
1983
2002
|
"target-nodes": e.getTargetNodes,
|
|
1984
2003
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
@@ -1995,42 +2014,42 @@ function ko(e, t, o, i, n, s) {
|
|
|
1995
2014
|
onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
|
|
1996
2015
|
onResize: t[8] || (t[8] = () => e.$emit("resize"))
|
|
1997
2016
|
}), {
|
|
1998
|
-
default:
|
|
2017
|
+
default: ve(({
|
|
1999
2018
|
popperId: l,
|
|
2000
2019
|
isShown: d,
|
|
2001
|
-
shouldMountContent:
|
|
2002
|
-
skipTransition:
|
|
2003
|
-
autoHide:
|
|
2004
|
-
show:
|
|
2005
|
-
hide:
|
|
2020
|
+
shouldMountContent: c,
|
|
2021
|
+
skipTransition: p,
|
|
2022
|
+
autoHide: u,
|
|
2023
|
+
show: h,
|
|
2024
|
+
hide: f,
|
|
2006
2025
|
handleResize: m,
|
|
2007
2026
|
onResize: w,
|
|
2008
2027
|
classes: g,
|
|
2009
2028
|
result: v
|
|
2010
2029
|
}) => [
|
|
2011
|
-
|
|
2030
|
+
we(e.$slots, "default", {
|
|
2012
2031
|
shown: d,
|
|
2013
|
-
show:
|
|
2014
|
-
hide:
|
|
2032
|
+
show: h,
|
|
2033
|
+
hide: f
|
|
2015
2034
|
}),
|
|
2016
|
-
|
|
2035
|
+
ut(r, {
|
|
2017
2036
|
ref: "popperContent",
|
|
2018
2037
|
"popper-id": l,
|
|
2019
2038
|
theme: e.finalTheme,
|
|
2020
2039
|
shown: d,
|
|
2021
|
-
mounted:
|
|
2022
|
-
"skip-transition":
|
|
2023
|
-
"auto-hide":
|
|
2040
|
+
mounted: c,
|
|
2041
|
+
"skip-transition": p,
|
|
2042
|
+
"auto-hide": u,
|
|
2024
2043
|
"handle-resize": m,
|
|
2025
2044
|
classes: g,
|
|
2026
2045
|
result: v,
|
|
2027
|
-
onHide:
|
|
2046
|
+
onHide: f,
|
|
2028
2047
|
onResize: w
|
|
2029
2048
|
}, {
|
|
2030
|
-
default:
|
|
2031
|
-
|
|
2049
|
+
default: ve(() => [
|
|
2050
|
+
we(e.$slots, "popper", {
|
|
2032
2051
|
shown: d,
|
|
2033
|
-
hide:
|
|
2052
|
+
hide: f
|
|
2034
2053
|
})
|
|
2035
2054
|
]),
|
|
2036
2055
|
_: 2
|
|
@@ -2039,26 +2058,26 @@ function ko(e, t, o, i, n, s) {
|
|
|
2039
2058
|
_: 3
|
|
2040
2059
|
}, 16, ["theme", "target-nodes", "popper-node", "class"]);
|
|
2041
2060
|
}
|
|
2042
|
-
const
|
|
2043
|
-
...
|
|
2061
|
+
const qe = /* @__PURE__ */ Oe(Ro, [["render", Bo]]), Do = {
|
|
2062
|
+
...qe,
|
|
2044
2063
|
name: "VDropdown",
|
|
2045
2064
|
vPopperTheme: "dropdown"
|
|
2046
|
-
},
|
|
2047
|
-
...
|
|
2065
|
+
}, Eo = {
|
|
2066
|
+
...qe,
|
|
2048
2067
|
name: "VMenu",
|
|
2049
2068
|
vPopperTheme: "menu"
|
|
2050
|
-
},
|
|
2051
|
-
...
|
|
2069
|
+
}, Fo = {
|
|
2070
|
+
...qe,
|
|
2052
2071
|
name: "VTooltip",
|
|
2053
2072
|
vPopperTheme: "tooltip"
|
|
2054
|
-
},
|
|
2073
|
+
}, Io = Te({
|
|
2055
2074
|
name: "VTooltipDirective",
|
|
2056
2075
|
components: {
|
|
2057
|
-
Popper:
|
|
2058
|
-
PopperContent:
|
|
2076
|
+
Popper: Ot(),
|
|
2077
|
+
PopperContent: kt
|
|
2059
2078
|
},
|
|
2060
2079
|
mixins: [
|
|
2061
|
-
|
|
2080
|
+
Ht
|
|
2062
2081
|
],
|
|
2063
2082
|
inheritAttrs: !1,
|
|
2064
2083
|
props: {
|
|
@@ -2068,7 +2087,7 @@ const We = /* @__PURE__ */ Ce(Mo, [["render", ko]]), Ro = {
|
|
|
2068
2087
|
},
|
|
2069
2088
|
html: {
|
|
2070
2089
|
type: Boolean,
|
|
2071
|
-
default: (e) =>
|
|
2090
|
+
default: (e) => he(e.theme, "html")
|
|
2072
2091
|
},
|
|
2073
2092
|
content: {
|
|
2074
2093
|
type: [String, Number, Function],
|
|
@@ -2076,7 +2095,7 @@ const We = /* @__PURE__ */ Ce(Mo, [["render", ko]]), Ro = {
|
|
|
2076
2095
|
},
|
|
2077
2096
|
loadingContent: {
|
|
2078
2097
|
type: String,
|
|
2079
|
-
default: (e) =>
|
|
2098
|
+
default: (e) => he(e.theme, "loadingContent")
|
|
2080
2099
|
},
|
|
2081
2100
|
targetNodes: {
|
|
2082
2101
|
type: Function,
|
|
@@ -2131,53 +2150,53 @@ const We = /* @__PURE__ */ Ce(Mo, [["render", ko]]), Ro = {
|
|
|
2131
2150
|
this.$_isShown = !1;
|
|
2132
2151
|
}
|
|
2133
2152
|
}
|
|
2134
|
-
}),
|
|
2135
|
-
function
|
|
2136
|
-
const r =
|
|
2137
|
-
return I(),
|
|
2153
|
+
}), jo = ["innerHTML"], Wo = ["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, {
|
|
2138
2157
|
theme: e.theme,
|
|
2139
2158
|
"target-nodes": e.targetNodes,
|
|
2140
2159
|
"popper-node": () => e.$refs.popperContent.$el,
|
|
2141
2160
|
onApplyShow: e.onShow,
|
|
2142
2161
|
onApplyHide: e.onHide
|
|
2143
2162
|
}), {
|
|
2144
|
-
default:
|
|
2163
|
+
default: ve(({
|
|
2145
2164
|
popperId: l,
|
|
2146
2165
|
isShown: d,
|
|
2147
|
-
shouldMountContent:
|
|
2148
|
-
skipTransition:
|
|
2149
|
-
autoHide:
|
|
2150
|
-
hide:
|
|
2151
|
-
handleResize:
|
|
2166
|
+
shouldMountContent: c,
|
|
2167
|
+
skipTransition: p,
|
|
2168
|
+
autoHide: u,
|
|
2169
|
+
hide: h,
|
|
2170
|
+
handleResize: f,
|
|
2152
2171
|
onResize: m,
|
|
2153
2172
|
classes: w,
|
|
2154
2173
|
result: g
|
|
2155
2174
|
}) => [
|
|
2156
|
-
|
|
2175
|
+
ut(r, {
|
|
2157
2176
|
ref: "popperContent",
|
|
2158
|
-
class:
|
|
2177
|
+
class: Ie({
|
|
2159
2178
|
"v-popper--tooltip-loading": e.loading
|
|
2160
2179
|
}),
|
|
2161
2180
|
"popper-id": l,
|
|
2162
2181
|
theme: e.theme,
|
|
2163
2182
|
shown: d,
|
|
2164
|
-
mounted:
|
|
2165
|
-
"skip-transition":
|
|
2166
|
-
"auto-hide":
|
|
2167
|
-
"handle-resize":
|
|
2183
|
+
mounted: c,
|
|
2184
|
+
"skip-transition": p,
|
|
2185
|
+
"auto-hide": u,
|
|
2186
|
+
"handle-resize": f,
|
|
2168
2187
|
classes: w,
|
|
2169
2188
|
result: g,
|
|
2170
|
-
onHide:
|
|
2189
|
+
onHide: h,
|
|
2171
2190
|
onResize: m
|
|
2172
2191
|
}, {
|
|
2173
|
-
default:
|
|
2174
|
-
e.html ? (I(),
|
|
2192
|
+
default: ve(() => [
|
|
2193
|
+
e.html ? (I(), le("div", {
|
|
2175
2194
|
key: 0,
|
|
2176
2195
|
innerHTML: e.finalContent
|
|
2177
|
-
}, null, 8,
|
|
2196
|
+
}, null, 8, jo)) : (I(), le("div", {
|
|
2178
2197
|
key: 1,
|
|
2179
|
-
textContent:
|
|
2180
|
-
}, null, 8,
|
|
2198
|
+
textContent: Ut(e.finalContent)
|
|
2199
|
+
}, null, 8, Wo))
|
|
2181
2200
|
]),
|
|
2182
2201
|
_: 2
|
|
2183
2202
|
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
@@ -2185,32 +2204,32 @@ function jo(e, t, o, i, n, s) {
|
|
|
2185
2204
|
_: 1
|
|
2186
2205
|
}, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
2187
2206
|
}
|
|
2188
|
-
const
|
|
2189
|
-
function
|
|
2207
|
+
const qo = /* @__PURE__ */ Oe(Io, [["render", Vo]]), Lt = "v-popper--has-tooltip";
|
|
2208
|
+
function Go(e, t) {
|
|
2190
2209
|
let o = e.placement;
|
|
2191
2210
|
if (!o && t)
|
|
2192
|
-
for (const i of
|
|
2211
|
+
for (const i of Ct)
|
|
2193
2212
|
t[i] && (o = i);
|
|
2194
|
-
return o || (o =
|
|
2213
|
+
return o || (o = he(e.theme || "tooltip", "placement")), o;
|
|
2195
2214
|
}
|
|
2196
|
-
function
|
|
2215
|
+
function Mt(e, t, o) {
|
|
2197
2216
|
let i;
|
|
2198
2217
|
const n = typeof t;
|
|
2199
|
-
return n === "string" ? i = { content: t } : t && n === "object" ? i = t : i = { content: !1 }, i.placement =
|
|
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;
|
|
2200
2219
|
}
|
|
2201
|
-
let
|
|
2202
|
-
function
|
|
2203
|
-
if (
|
|
2220
|
+
let Le, ue, Yo = 0;
|
|
2221
|
+
function Uo() {
|
|
2222
|
+
if (Le)
|
|
2204
2223
|
return;
|
|
2205
|
-
|
|
2224
|
+
ue = Me([]), Le = Gt({
|
|
2206
2225
|
name: "VTooltipDirectiveApp",
|
|
2207
2226
|
setup() {
|
|
2208
2227
|
return {
|
|
2209
|
-
directives:
|
|
2228
|
+
directives: ue
|
|
2210
2229
|
};
|
|
2211
2230
|
},
|
|
2212
2231
|
render() {
|
|
2213
|
-
return this.directives.map((t) =>
|
|
2232
|
+
return this.directives.map((t) => Yt(qo, {
|
|
2214
2233
|
...t.options,
|
|
2215
2234
|
shown: t.shown || t.options.shown,
|
|
2216
2235
|
key: t.id
|
|
@@ -2221,16 +2240,16 @@ function Go() {
|
|
|
2221
2240
|
}
|
|
2222
2241
|
});
|
|
2223
2242
|
const e = document.createElement("div");
|
|
2224
|
-
document.body.appendChild(e),
|
|
2243
|
+
document.body.appendChild(e), Le.mount(e);
|
|
2225
2244
|
}
|
|
2226
|
-
function
|
|
2227
|
-
|
|
2228
|
-
const i =
|
|
2229
|
-
id:
|
|
2245
|
+
function Xo(e, t, o) {
|
|
2246
|
+
Uo();
|
|
2247
|
+
const i = Me(Mt(e, t, o)), n = Me(!1), s = {
|
|
2248
|
+
id: Yo++,
|
|
2230
2249
|
options: i,
|
|
2231
2250
|
shown: n
|
|
2232
2251
|
};
|
|
2233
|
-
return
|
|
2252
|
+
return ue.value.push(s), e.classList && e.classList.add(Lt), e.$_popper = {
|
|
2234
2253
|
options: i,
|
|
2235
2254
|
item: s,
|
|
2236
2255
|
show() {
|
|
@@ -2241,81 +2260,81 @@ function Yo(e, t, o) {
|
|
|
2241
2260
|
}
|
|
2242
2261
|
};
|
|
2243
2262
|
}
|
|
2244
|
-
function
|
|
2263
|
+
function Rt(e) {
|
|
2245
2264
|
if (e.$_popper) {
|
|
2246
|
-
const t =
|
|
2247
|
-
t !== -1 &&
|
|
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;
|
|
2248
2267
|
}
|
|
2249
|
-
e.classList && e.classList.remove(
|
|
2268
|
+
e.classList && e.classList.remove(Lt);
|
|
2250
2269
|
}
|
|
2251
|
-
function
|
|
2252
|
-
const i =
|
|
2253
|
-
if (!i.content ||
|
|
2254
|
-
|
|
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);
|
|
2255
2274
|
else {
|
|
2256
2275
|
let n;
|
|
2257
|
-
e.$_popper ? (n = e.$_popper, n.options.value = i) : 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());
|
|
2258
2277
|
}
|
|
2259
2278
|
}
|
|
2260
|
-
const
|
|
2261
|
-
beforeMount:
|
|
2262
|
-
updated:
|
|
2279
|
+
const Ko = {
|
|
2280
|
+
beforeMount: pt,
|
|
2281
|
+
updated: pt,
|
|
2263
2282
|
beforeUnmount(e) {
|
|
2264
|
-
|
|
2283
|
+
Rt(e);
|
|
2265
2284
|
}
|
|
2266
2285
|
};
|
|
2267
|
-
function
|
|
2268
|
-
e.addEventListener("mousedown",
|
|
2286
|
+
function ct(e) {
|
|
2287
|
+
e.addEventListener("mousedown", be), e.addEventListener("click", be), e.addEventListener("touchstart", Bt, oe ? {
|
|
2269
2288
|
passive: !0
|
|
2270
2289
|
} : !1);
|
|
2271
2290
|
}
|
|
2272
|
-
function
|
|
2273
|
-
e.removeEventListener("mousedown",
|
|
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);
|
|
2274
2293
|
}
|
|
2275
|
-
function
|
|
2294
|
+
function be(e) {
|
|
2276
2295
|
const t = e.currentTarget;
|
|
2277
2296
|
e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
2278
2297
|
}
|
|
2279
|
-
function
|
|
2298
|
+
function Bt(e) {
|
|
2280
2299
|
if (e.changedTouches.length === 1) {
|
|
2281
2300
|
const t = e.currentTarget;
|
|
2282
2301
|
t.$_vclosepopover_touch = !0;
|
|
2283
2302
|
const o = e.changedTouches[0];
|
|
2284
|
-
t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend",
|
|
2303
|
+
t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend", Dt), t.addEventListener("touchcancel", Et);
|
|
2285
2304
|
}
|
|
2286
2305
|
}
|
|
2287
|
-
function
|
|
2306
|
+
function Dt(e) {
|
|
2288
2307
|
const t = e.currentTarget;
|
|
2289
2308
|
if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
|
|
2290
2309
|
const o = e.changedTouches[0], i = t.$_vclosepopover_touchPoint;
|
|
2291
2310
|
e.closePopover = Math.abs(o.screenY - i.screenY) < 20 && Math.abs(o.screenX - i.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
2292
2311
|
}
|
|
2293
2312
|
}
|
|
2294
|
-
function
|
|
2313
|
+
function Et(e) {
|
|
2295
2314
|
const t = e.currentTarget;
|
|
2296
2315
|
t.$_vclosepopover_touch = !1;
|
|
2297
2316
|
}
|
|
2298
|
-
const
|
|
2317
|
+
const Qo = {
|
|
2299
2318
|
beforeMount(e, { value: t, modifiers: o }) {
|
|
2300
|
-
e.$_closePopoverModifiers = o, (typeof t > "u" || t) &&
|
|
2319
|
+
e.$_closePopoverModifiers = o, (typeof t > "u" || t) && ct(e);
|
|
2301
2320
|
},
|
|
2302
2321
|
updated(e, { value: t, oldValue: o, modifiers: i }) {
|
|
2303
|
-
e.$_closePopoverModifiers = i, t !== o && (typeof t > "u" || t ?
|
|
2322
|
+
e.$_closePopoverModifiers = i, t !== o && (typeof t > "u" || t ? ct(e) : ht(e));
|
|
2304
2323
|
},
|
|
2305
2324
|
beforeUnmount(e) {
|
|
2306
|
-
|
|
2325
|
+
ht(e);
|
|
2307
2326
|
}
|
|
2308
2327
|
};
|
|
2309
|
-
function
|
|
2310
|
-
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0,
|
|
2328
|
+
function Zo(e, t = {}) {
|
|
2329
|
+
e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, Pt(H, t), e.directive("tooltip", Ko), e.directive("close-popper", Qo), e.component("VTooltip", Fo), e.component("VDropdown", Do), e.component("VMenu", Eo));
|
|
2311
2330
|
}
|
|
2312
|
-
const
|
|
2331
|
+
const ei = {
|
|
2313
2332
|
// eslint-disable-next-line no-undef
|
|
2314
2333
|
version: "5.2.2",
|
|
2315
|
-
install:
|
|
2316
|
-
options:
|
|
2334
|
+
install: Zo,
|
|
2335
|
+
options: H
|
|
2317
2336
|
};
|
|
2318
2337
|
export {
|
|
2319
|
-
|
|
2338
|
+
ei as G
|
|
2320
2339
|
};
|
|
2321
|
-
//# sourceMappingURL=style-
|
|
2340
|
+
//# sourceMappingURL=style-B5c-Dkj8.js.map
|