@konnectio/core 4.11.1 → 4.11.3
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-CD7A8umF.js → ActionField-dg0RS8gf.js} +16 -17
- package/dist/ActionField-dg0RS8gf.js.br +0 -0
- package/dist/ActionField-dg0RS8gf.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-D_EldM2s.js → AvailabilitySkeleton-uoeeP_5d.js} +2374 -2900
- package/dist/AvailabilitySkeleton-uoeeP_5d.js.br +0 -0
- package/dist/AvailabilitySkeleton-uoeeP_5d.js.gz +0 -0
- package/dist/{CheckoutWindow-BYvzbPyY.js → CheckoutWindow-DXRVoh-J.js} +579 -655
- package/dist/CheckoutWindow-DXRVoh-J.js.br +0 -0
- package/dist/CheckoutWindow-DXRVoh-J.js.gz +0 -0
- package/dist/{ErrorMessage-GCkS8yEW.js → ErrorMessage-OQ4r9QGR.js} +12 -14
- package/dist/ErrorMessage-OQ4r9QGR.js.br +0 -0
- package/dist/ErrorMessage-OQ4r9QGR.js.gz +0 -0
- package/dist/{EventAvailabilityForm-f-BUsWJ-.js → EventAvailabilityForm-B4pOCkcm.js} +29 -30
- package/dist/EventAvailabilityForm-B4pOCkcm.js.br +0 -0
- package/dist/EventAvailabilityForm-B4pOCkcm.js.gz +0 -0
- package/dist/{Field-TMCJPa0F.js → Field-DpRx5gtJ.js} +6 -7
- package/dist/Field-DpRx5gtJ.js.br +0 -0
- package/dist/Field-DpRx5gtJ.js.gz +0 -0
- package/dist/HotelAvailabilityForm-BSM-KcqG.js +312 -0
- package/dist/HotelAvailabilityForm-BSM-KcqG.js.br +0 -0
- package/dist/HotelAvailabilityForm-BSM-KcqG.js.gz +0 -0
- package/dist/{SelectField-DSkOZgE4.js → SelectField-CEEffgaQ.js} +3462 -2858
- package/dist/SelectField-CEEffgaQ.js.br +0 -0
- package/dist/SelectField-CEEffgaQ.js.gz +0 -0
- package/dist/{TermsOfService-D9W3pXOi.js → TermsOfService-C4YZ5zhE.js} +5 -6
- package/dist/TermsOfService-C4YZ5zhE.js.br +0 -0
- package/dist/TermsOfService-C4YZ5zhE.js.gz +0 -0
- package/dist/_-DM-h5BQz.js +24 -0
- package/dist/_-DM-h5BQz.js.br +0 -0
- package/dist/_-DM-h5BQz.js.gz +0 -0
- package/dist/availability.js +24 -25
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +57 -62
- 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 +15 -16
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-Vu9z8BNS.js → dist-BQy2-bMP.js} +168 -139
- package/dist/dist-BQy2-bMP.js.br +0 -0
- package/dist/dist-BQy2-bMP.js.gz +0 -0
- package/dist/{dist-YUX9nmGu.js → dist-Q9kXoafy.js} +705 -756
- package/dist/dist-Q9kXoafy.js.br +0 -0
- package/dist/dist-Q9kXoafy.js.gz +0 -0
- package/dist/event.js +334 -344
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +42 -43
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +157 -161
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-DwGwHq7_.js → giftCard-DO4ELDIx.js} +14 -15
- package/dist/giftCard-DO4ELDIx.js.br +0 -0
- package/dist/giftCard-DO4ELDIx.js.gz +0 -0
- package/dist/hotel.js +983 -1145
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{i18n-BU9Enb5i.js → i18n-Dq3VKG7w.js} +4004 -3647
- package/dist/i18n-Dq3VKG7w.js.br +0 -0
- package/dist/i18n-Dq3VKG7w.js.gz +0 -0
- package/dist/polyfill.js +905 -818
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-QGRDbDUS.js} +2 -3
- package/dist/rolldown-runtime-QGRDbDUS.js.br +0 -0
- package/dist/rolldown-runtime-QGRDbDUS.js.gz +0 -0
- package/dist/style-xK2dve9W.js +1284 -0
- package/dist/style-xK2dve9W.js.br +0 -0
- package/dist/style-xK2dve9W.js.gz +0 -0
- package/dist-wix/availability.js +42 -34
- package/dist-wix/event.js +54 -46
- package/dist-wix/gift-card-validation.js +39 -31
- package/dist-wix/gift-card.js +43 -35
- package/dist-wix/hotel.js +54 -46
- package/package.json +32 -32
- package/dist/ActionField-CD7A8umF.js.br +0 -0
- package/dist/ActionField-CD7A8umF.js.gz +0 -0
- package/dist/AvailabilitySkeleton-D_EldM2s.js.br +0 -0
- package/dist/AvailabilitySkeleton-D_EldM2s.js.gz +0 -0
- package/dist/CheckoutWindow-BYvzbPyY.js.br +0 -0
- package/dist/CheckoutWindow-BYvzbPyY.js.gz +0 -0
- package/dist/ErrorMessage-GCkS8yEW.js.br +0 -0
- package/dist/ErrorMessage-GCkS8yEW.js.gz +0 -0
- package/dist/EventAvailabilityForm-f-BUsWJ-.js.br +0 -0
- package/dist/EventAvailabilityForm-f-BUsWJ-.js.gz +0 -0
- package/dist/Field-TMCJPa0F.js.br +0 -0
- package/dist/Field-TMCJPa0F.js.gz +0 -0
- package/dist/HotelAvailabilityForm-BjaKmdM9.js +0 -322
- package/dist/HotelAvailabilityForm-BjaKmdM9.js.br +0 -0
- package/dist/HotelAvailabilityForm-BjaKmdM9.js.gz +0 -0
- package/dist/SelectField-DSkOZgE4.js.br +0 -0
- package/dist/SelectField-DSkOZgE4.js.gz +0 -0
- package/dist/TermsOfService-D9W3pXOi.js.br +0 -0
- package/dist/TermsOfService-D9W3pXOi.js.gz +0 -0
- package/dist/_-DY1GJjiW.js +0 -25
- package/dist/_-DY1GJjiW.js.br +0 -0
- package/dist/_-DY1GJjiW.js.gz +0 -0
- package/dist/dist-Vu9z8BNS.js.br +0 -0
- package/dist/dist-Vu9z8BNS.js.gz +0 -0
- package/dist/dist-YUX9nmGu.js.br +0 -0
- package/dist/dist-YUX9nmGu.js.gz +0 -0
- package/dist/giftCard-DwGwHq7_.js.br +0 -0
- package/dist/giftCard-DwGwHq7_.js.gz +0 -0
- package/dist/i18n-BU9Enb5i.js.br +0 -0
- package/dist/i18n-BU9Enb5i.js.gz +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.gz +0 -5
- package/dist/style-E-j_0DIE.js +0 -1711
- package/dist/style-E-j_0DIE.js.br +0 -0
- package/dist/style-E-j_0DIE.js.gz +0 -0
|
@@ -0,0 +1,1284 @@
|
|
|
1
|
+
import { H as e, v as t, xt as n, z as r } from "./i18n-Dq3VKG7w.js";
|
|
2
|
+
import { a as i, c as a, d as o, i as s, l as c, p as l, s as u, u as d } from "./SelectField-CEEffgaQ.js";
|
|
3
|
+
// node_modules/floating-vue/dist/floating-vue.mjs
|
|
4
|
+
var f = "5.4.0";
|
|
5
|
+
function p(e, t) {
|
|
6
|
+
for (let n in t) Object.hasOwn(t, n) && (typeof t[n] == "object" && e[n] ? p(e[n], t[n]) : e[n] = t[n]);
|
|
7
|
+
}
|
|
8
|
+
var m = {
|
|
9
|
+
disabled: !1,
|
|
10
|
+
distance: 5,
|
|
11
|
+
skidding: 0,
|
|
12
|
+
container: "body",
|
|
13
|
+
boundary: void 0,
|
|
14
|
+
instantMove: !1,
|
|
15
|
+
disposeTimeout: 150,
|
|
16
|
+
popperTriggers: [],
|
|
17
|
+
strategy: "absolute",
|
|
18
|
+
preventOverflow: !0,
|
|
19
|
+
flip: !0,
|
|
20
|
+
shift: !0,
|
|
21
|
+
overflowPadding: 0,
|
|
22
|
+
arrowPadding: 0,
|
|
23
|
+
arrowOverflow: !0,
|
|
24
|
+
autoHideOnMousedown: !1,
|
|
25
|
+
themes: {
|
|
26
|
+
tooltip: {
|
|
27
|
+
placement: "top",
|
|
28
|
+
triggers: [
|
|
29
|
+
"hover",
|
|
30
|
+
"focus",
|
|
31
|
+
"touch"
|
|
32
|
+
],
|
|
33
|
+
hideTriggers: (e) => [...e, "click"],
|
|
34
|
+
delay: {
|
|
35
|
+
show: 200,
|
|
36
|
+
hide: 0
|
|
37
|
+
},
|
|
38
|
+
handleResize: !1,
|
|
39
|
+
html: !1,
|
|
40
|
+
loadingContent: "..."
|
|
41
|
+
},
|
|
42
|
+
dropdown: {
|
|
43
|
+
placement: "bottom",
|
|
44
|
+
triggers: ["click"],
|
|
45
|
+
delay: 0,
|
|
46
|
+
handleResize: !0,
|
|
47
|
+
autoHide: !0
|
|
48
|
+
},
|
|
49
|
+
menu: {
|
|
50
|
+
$extend: "dropdown",
|
|
51
|
+
triggers: ["hover", "focus"],
|
|
52
|
+
popperTriggers: ["hover"],
|
|
53
|
+
delay: {
|
|
54
|
+
show: 0,
|
|
55
|
+
hide: 400
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
function h(e, t) {
|
|
61
|
+
let n = m.themes[e] || {}, r;
|
|
62
|
+
do
|
|
63
|
+
r = n[t], r === void 0 ? n.$extend ? n = m.themes[n.$extend] || {} : (n = null, r = m[t]) : n = null;
|
|
64
|
+
while (n);
|
|
65
|
+
return r;
|
|
66
|
+
}
|
|
67
|
+
function ee(e) {
|
|
68
|
+
let t = [e], n = m.themes[e] || {};
|
|
69
|
+
do
|
|
70
|
+
n.$extend && !n.$resetCss ? (t.push(n.$extend), n = m.themes[n.$extend] || {}) : n = null;
|
|
71
|
+
while (n);
|
|
72
|
+
return t.map((e) => `v-popper--theme-${e}`);
|
|
73
|
+
}
|
|
74
|
+
function g(e) {
|
|
75
|
+
let t = [e], n = m.themes[e] || {};
|
|
76
|
+
do
|
|
77
|
+
n.$extend ? (t.push(n.$extend), n = m.themes[n.$extend] || {}) : n = null;
|
|
78
|
+
while (n);
|
|
79
|
+
return t;
|
|
80
|
+
}
|
|
81
|
+
var _ = (() => {
|
|
82
|
+
if (typeof window > "u") return !1;
|
|
83
|
+
let e = !1;
|
|
84
|
+
try {
|
|
85
|
+
let t = Object.defineProperty({}, "passive", { get() {
|
|
86
|
+
e = !0;
|
|
87
|
+
} });
|
|
88
|
+
window.addEventListener("test", null, t);
|
|
89
|
+
} catch {}
|
|
90
|
+
return e;
|
|
91
|
+
})(), te = typeof window < "u" && typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, v = [
|
|
92
|
+
"auto",
|
|
93
|
+
"top",
|
|
94
|
+
"bottom",
|
|
95
|
+
"left",
|
|
96
|
+
"right"
|
|
97
|
+
].reduce((e, t) => e.concat([
|
|
98
|
+
t,
|
|
99
|
+
`${t}-start`,
|
|
100
|
+
`${t}-end`
|
|
101
|
+
]), []), y = {
|
|
102
|
+
hover: "mouseenter",
|
|
103
|
+
focus: "focus",
|
|
104
|
+
click: "click",
|
|
105
|
+
touch: "touchstart",
|
|
106
|
+
pointer: "pointerdown"
|
|
107
|
+
}, ne = {
|
|
108
|
+
hover: "mouseleave",
|
|
109
|
+
focus: "blur",
|
|
110
|
+
click: "click",
|
|
111
|
+
touch: "touchend",
|
|
112
|
+
pointer: "pointerup"
|
|
113
|
+
};
|
|
114
|
+
function b(e, t) {
|
|
115
|
+
let n = e.indexOf(t);
|
|
116
|
+
n !== -1 && e.splice(n, 1);
|
|
117
|
+
}
|
|
118
|
+
function x() {
|
|
119
|
+
return new Promise((e) => requestAnimationFrame(() => {
|
|
120
|
+
requestAnimationFrame(e);
|
|
121
|
+
}));
|
|
122
|
+
}
|
|
123
|
+
var S = [], C = null, w = {};
|
|
124
|
+
function T(e) {
|
|
125
|
+
let t = w[e];
|
|
126
|
+
return t ||= w[e] = [], t;
|
|
127
|
+
}
|
|
128
|
+
var E = function() {};
|
|
129
|
+
typeof window < "u" && (E = window.Element);
|
|
130
|
+
function D(e) {
|
|
131
|
+
return function(t) {
|
|
132
|
+
return h(t.theme, e);
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
var O = "__floating-vue__popper", k = () => r({
|
|
136
|
+
name: "VPopper",
|
|
137
|
+
provide() {
|
|
138
|
+
return { [O]: { parentPopper: this } };
|
|
139
|
+
},
|
|
140
|
+
inject: { [O]: { default: null } },
|
|
141
|
+
props: {
|
|
142
|
+
theme: {
|
|
143
|
+
type: String,
|
|
144
|
+
required: !0
|
|
145
|
+
},
|
|
146
|
+
targetNodes: {
|
|
147
|
+
type: Function,
|
|
148
|
+
required: !0
|
|
149
|
+
},
|
|
150
|
+
referenceNode: {
|
|
151
|
+
type: Function,
|
|
152
|
+
default: null
|
|
153
|
+
},
|
|
154
|
+
popperNode: {
|
|
155
|
+
type: Function,
|
|
156
|
+
required: !0
|
|
157
|
+
},
|
|
158
|
+
shown: {
|
|
159
|
+
type: Boolean,
|
|
160
|
+
default: !1
|
|
161
|
+
},
|
|
162
|
+
showGroup: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: null
|
|
165
|
+
},
|
|
166
|
+
ariaId: { default: null },
|
|
167
|
+
disabled: {
|
|
168
|
+
type: Boolean,
|
|
169
|
+
default: D("disabled")
|
|
170
|
+
},
|
|
171
|
+
positioningDisabled: {
|
|
172
|
+
type: Boolean,
|
|
173
|
+
default: D("positioningDisabled")
|
|
174
|
+
},
|
|
175
|
+
placement: {
|
|
176
|
+
type: String,
|
|
177
|
+
default: D("placement"),
|
|
178
|
+
validator: (e) => v.includes(e)
|
|
179
|
+
},
|
|
180
|
+
delay: {
|
|
181
|
+
type: [
|
|
182
|
+
String,
|
|
183
|
+
Number,
|
|
184
|
+
Object
|
|
185
|
+
],
|
|
186
|
+
default: D("delay")
|
|
187
|
+
},
|
|
188
|
+
distance: {
|
|
189
|
+
type: [Number, String],
|
|
190
|
+
default: D("distance")
|
|
191
|
+
},
|
|
192
|
+
skidding: {
|
|
193
|
+
type: [Number, String],
|
|
194
|
+
default: D("skidding")
|
|
195
|
+
},
|
|
196
|
+
triggers: {
|
|
197
|
+
type: Array,
|
|
198
|
+
default: D("triggers")
|
|
199
|
+
},
|
|
200
|
+
showTriggers: {
|
|
201
|
+
type: [Array, Function],
|
|
202
|
+
default: D("showTriggers")
|
|
203
|
+
},
|
|
204
|
+
hideTriggers: {
|
|
205
|
+
type: [Array, Function],
|
|
206
|
+
default: D("hideTriggers")
|
|
207
|
+
},
|
|
208
|
+
popperTriggers: {
|
|
209
|
+
type: Array,
|
|
210
|
+
default: D("popperTriggers")
|
|
211
|
+
},
|
|
212
|
+
popperShowTriggers: {
|
|
213
|
+
type: [Array, Function],
|
|
214
|
+
default: D("popperShowTriggers")
|
|
215
|
+
},
|
|
216
|
+
popperHideTriggers: {
|
|
217
|
+
type: [Array, Function],
|
|
218
|
+
default: D("popperHideTriggers")
|
|
219
|
+
},
|
|
220
|
+
container: {
|
|
221
|
+
type: [
|
|
222
|
+
String,
|
|
223
|
+
Object,
|
|
224
|
+
E,
|
|
225
|
+
Boolean
|
|
226
|
+
],
|
|
227
|
+
default: D("container")
|
|
228
|
+
},
|
|
229
|
+
boundary: {
|
|
230
|
+
type: [String, E],
|
|
231
|
+
default: D("boundary")
|
|
232
|
+
},
|
|
233
|
+
strategy: {
|
|
234
|
+
type: String,
|
|
235
|
+
validator: (e) => ["absolute", "fixed"].includes(e),
|
|
236
|
+
default: D("strategy")
|
|
237
|
+
},
|
|
238
|
+
autoHide: {
|
|
239
|
+
type: [Boolean, Function],
|
|
240
|
+
default: D("autoHide")
|
|
241
|
+
},
|
|
242
|
+
handleResize: {
|
|
243
|
+
type: Boolean,
|
|
244
|
+
default: D("handleResize")
|
|
245
|
+
},
|
|
246
|
+
instantMove: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
default: D("instantMove")
|
|
249
|
+
},
|
|
250
|
+
eagerMount: {
|
|
251
|
+
type: Boolean,
|
|
252
|
+
default: D("eagerMount")
|
|
253
|
+
},
|
|
254
|
+
popperClass: {
|
|
255
|
+
type: [
|
|
256
|
+
String,
|
|
257
|
+
Array,
|
|
258
|
+
Object
|
|
259
|
+
],
|
|
260
|
+
default: D("popperClass")
|
|
261
|
+
},
|
|
262
|
+
computeTransformOrigin: {
|
|
263
|
+
type: Boolean,
|
|
264
|
+
default: D("computeTransformOrigin")
|
|
265
|
+
},
|
|
266
|
+
autoMinSize: {
|
|
267
|
+
type: Boolean,
|
|
268
|
+
default: D("autoMinSize")
|
|
269
|
+
},
|
|
270
|
+
autoSize: {
|
|
271
|
+
type: [Boolean, String],
|
|
272
|
+
default: D("autoSize")
|
|
273
|
+
},
|
|
274
|
+
autoMaxSize: {
|
|
275
|
+
type: Boolean,
|
|
276
|
+
default: D("autoMaxSize")
|
|
277
|
+
},
|
|
278
|
+
autoBoundaryMaxSize: {
|
|
279
|
+
type: Boolean,
|
|
280
|
+
default: D("autoBoundaryMaxSize")
|
|
281
|
+
},
|
|
282
|
+
preventOverflow: {
|
|
283
|
+
type: Boolean,
|
|
284
|
+
default: D("preventOverflow")
|
|
285
|
+
},
|
|
286
|
+
overflowPadding: {
|
|
287
|
+
type: [Number, String],
|
|
288
|
+
default: D("overflowPadding")
|
|
289
|
+
},
|
|
290
|
+
arrowPadding: {
|
|
291
|
+
type: [Number, String],
|
|
292
|
+
default: D("arrowPadding")
|
|
293
|
+
},
|
|
294
|
+
arrowOverflow: {
|
|
295
|
+
type: Boolean,
|
|
296
|
+
default: D("arrowOverflow")
|
|
297
|
+
},
|
|
298
|
+
flip: {
|
|
299
|
+
type: Boolean,
|
|
300
|
+
default: D("flip")
|
|
301
|
+
},
|
|
302
|
+
shift: {
|
|
303
|
+
type: Boolean,
|
|
304
|
+
default: D("shift")
|
|
305
|
+
},
|
|
306
|
+
shiftCrossAxis: {
|
|
307
|
+
type: Boolean,
|
|
308
|
+
default: D("shiftCrossAxis")
|
|
309
|
+
},
|
|
310
|
+
noAutoFocus: {
|
|
311
|
+
type: Boolean,
|
|
312
|
+
default: D("noAutoFocus")
|
|
313
|
+
},
|
|
314
|
+
disposeTimeout: {
|
|
315
|
+
type: Number,
|
|
316
|
+
default: D("disposeTimeout")
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
emits: {
|
|
320
|
+
show: () => !0,
|
|
321
|
+
hide: () => !0,
|
|
322
|
+
"update:shown": (e) => !0,
|
|
323
|
+
"apply-show": () => !0,
|
|
324
|
+
"apply-hide": () => !0,
|
|
325
|
+
"close-group": () => !0,
|
|
326
|
+
"close-directive": () => !0,
|
|
327
|
+
"auto-hide": () => !0,
|
|
328
|
+
resize: () => !0
|
|
329
|
+
},
|
|
330
|
+
data() {
|
|
331
|
+
return {
|
|
332
|
+
isShown: !1,
|
|
333
|
+
isMounted: !1,
|
|
334
|
+
skipTransition: !1,
|
|
335
|
+
classes: {
|
|
336
|
+
showFrom: !1,
|
|
337
|
+
showTo: !1,
|
|
338
|
+
hideFrom: !1,
|
|
339
|
+
hideTo: !0
|
|
340
|
+
},
|
|
341
|
+
result: {
|
|
342
|
+
x: 0,
|
|
343
|
+
y: 0,
|
|
344
|
+
placement: "",
|
|
345
|
+
strategy: this.strategy,
|
|
346
|
+
arrow: {
|
|
347
|
+
x: 0,
|
|
348
|
+
y: 0,
|
|
349
|
+
centerOffset: 0
|
|
350
|
+
},
|
|
351
|
+
transformOrigin: null
|
|
352
|
+
},
|
|
353
|
+
randomId: `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`,
|
|
354
|
+
shownChildren: /* @__PURE__ */ new Set(),
|
|
355
|
+
lastAutoHide: !0,
|
|
356
|
+
pendingHide: !1,
|
|
357
|
+
containsGlobalTarget: !1,
|
|
358
|
+
isDisposed: !0,
|
|
359
|
+
mouseDownContains: !1
|
|
360
|
+
};
|
|
361
|
+
},
|
|
362
|
+
computed: {
|
|
363
|
+
popperId() {
|
|
364
|
+
return this.ariaId ?? this.randomId;
|
|
365
|
+
},
|
|
366
|
+
shouldMountContent() {
|
|
367
|
+
return this.eagerMount || this.isMounted;
|
|
368
|
+
},
|
|
369
|
+
slotData() {
|
|
370
|
+
return {
|
|
371
|
+
popperId: this.popperId,
|
|
372
|
+
isShown: this.isShown,
|
|
373
|
+
shouldMountContent: this.shouldMountContent,
|
|
374
|
+
skipTransition: this.skipTransition,
|
|
375
|
+
autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
|
|
376
|
+
show: this.show,
|
|
377
|
+
hide: this.hide,
|
|
378
|
+
handleResize: this.handleResize,
|
|
379
|
+
onResize: this.onResize,
|
|
380
|
+
classes: {
|
|
381
|
+
...this.classes,
|
|
382
|
+
popperClass: this.popperClass
|
|
383
|
+
},
|
|
384
|
+
result: this.positioningDisabled ? null : this.result,
|
|
385
|
+
attrs: this.$attrs
|
|
386
|
+
};
|
|
387
|
+
},
|
|
388
|
+
parentPopper() {
|
|
389
|
+
return this[O]?.parentPopper;
|
|
390
|
+
},
|
|
391
|
+
hasPopperShowTriggerHover() {
|
|
392
|
+
return this.popperTriggers?.includes("hover") || this.popperShowTriggers?.includes("hover");
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
watch: {
|
|
396
|
+
shown: "$_autoShowHide",
|
|
397
|
+
disabled(e) {
|
|
398
|
+
e ? this.dispose() : this.init();
|
|
399
|
+
},
|
|
400
|
+
async container() {
|
|
401
|
+
this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
|
|
402
|
+
},
|
|
403
|
+
triggers: {
|
|
404
|
+
handler: "$_refreshListeners",
|
|
405
|
+
deep: !0
|
|
406
|
+
},
|
|
407
|
+
positioningDisabled: "$_refreshListeners",
|
|
408
|
+
...[
|
|
409
|
+
"placement",
|
|
410
|
+
"distance",
|
|
411
|
+
"skidding",
|
|
412
|
+
"boundary",
|
|
413
|
+
"strategy",
|
|
414
|
+
"overflowPadding",
|
|
415
|
+
"arrowPadding",
|
|
416
|
+
"preventOverflow",
|
|
417
|
+
"shift",
|
|
418
|
+
"shiftCrossAxis",
|
|
419
|
+
"flip"
|
|
420
|
+
].reduce((e, t) => (e[t] = "$_computePosition", e), {})
|
|
421
|
+
},
|
|
422
|
+
created() {
|
|
423
|
+
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.");
|
|
424
|
+
},
|
|
425
|
+
mounted() {
|
|
426
|
+
this.init(), this.$_detachPopperNode();
|
|
427
|
+
},
|
|
428
|
+
activated() {
|
|
429
|
+
this.$_autoShowHide();
|
|
430
|
+
},
|
|
431
|
+
deactivated() {
|
|
432
|
+
this.hide();
|
|
433
|
+
},
|
|
434
|
+
beforeUnmount() {
|
|
435
|
+
this.dispose();
|
|
436
|
+
},
|
|
437
|
+
methods: {
|
|
438
|
+
show({ event: e = null, skipDelay: t = !1, force: n = !1 } = {}) {
|
|
439
|
+
this.parentPopper?.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (n || !this.disabled) && (this.parentPopper?.lockedChild === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
|
|
440
|
+
this.$_showFrameLocked = !1;
|
|
441
|
+
})), this.$emit("update:shown", !0));
|
|
442
|
+
},
|
|
443
|
+
hide({ event: e = null, skipDelay: t = !1 } = {}) {
|
|
444
|
+
this.$_hideInProgress || (this.shownChildren.size > 0 ? this.pendingHide = !0 : this.hasPopperShowTriggerHover && this.$_isAimingPopper() ? this.parentPopper && (this.parentPopper.lockedChild = this, this.parentPopper.lockedChildTimer && clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
|
|
445
|
+
this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
|
|
446
|
+
}, 1e3)) : (this.parentPopper?.lockedChild === this && (this.parentPopper.lockedChild = null), this.pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1)));
|
|
447
|
+
},
|
|
448
|
+
init() {
|
|
449
|
+
this.isDisposed && (this.isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = this.referenceNode?.call(this) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((e) => e.nodeType === e.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());
|
|
450
|
+
},
|
|
451
|
+
dispose() {
|
|
452
|
+
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"));
|
|
453
|
+
},
|
|
454
|
+
async onResize() {
|
|
455
|
+
this.isShown && (await this.$_computePosition(), this.$emit("resize"));
|
|
456
|
+
},
|
|
457
|
+
async $_computePosition() {
|
|
458
|
+
if (this.isDisposed || this.positioningDisabled) return;
|
|
459
|
+
let e = {
|
|
460
|
+
strategy: this.strategy,
|
|
461
|
+
middleware: []
|
|
462
|
+
};
|
|
463
|
+
(this.distance || this.skidding) && e.middleware.push(c({
|
|
464
|
+
mainAxis: this.distance,
|
|
465
|
+
crossAxis: this.skidding
|
|
466
|
+
}));
|
|
467
|
+
let t = this.placement.startsWith("auto");
|
|
468
|
+
if (t ? e.middleware.push(i({ alignment: this.placement.split("-")[1] ?? "" })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(d({
|
|
469
|
+
padding: this.overflowPadding,
|
|
470
|
+
boundary: this.boundary,
|
|
471
|
+
crossAxis: this.shiftCrossAxis
|
|
472
|
+
})), !t && this.flip && e.middleware.push(a({
|
|
473
|
+
padding: this.overflowPadding,
|
|
474
|
+
boundary: this.boundary
|
|
475
|
+
}))), e.middleware.push(s({
|
|
476
|
+
element: this.$_arrowNode,
|
|
477
|
+
padding: this.arrowPadding
|
|
478
|
+
})), this.arrowOverflow && e.middleware.push({
|
|
479
|
+
name: "arrowOverflow",
|
|
480
|
+
fn: ({ placement: e, rects: t, middlewareData: n }) => {
|
|
481
|
+
let r, { centerOffset: i } = n.arrow;
|
|
482
|
+
return r = e.startsWith("top") || e.startsWith("bottom") ? Math.abs(i) > t.reference.width / 2 : Math.abs(i) > t.reference.height / 2, { data: { overflow: r } };
|
|
483
|
+
}
|
|
484
|
+
}), this.autoMinSize || this.autoSize) {
|
|
485
|
+
let t = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
|
|
486
|
+
e.middleware.push({
|
|
487
|
+
name: "autoSize",
|
|
488
|
+
fn: ({ rects: e, placement: n, middlewareData: r }) => {
|
|
489
|
+
if (r.autoSize?.skip) return {};
|
|
490
|
+
let i, a;
|
|
491
|
+
return n.startsWith("top") || n.startsWith("bottom") ? i = e.reference.width : a = e.reference.height, this.$_innerNode.style[t === "min" ? "minWidth" : t === "max" ? "maxWidth" : "width"] = i == null ? null : `${i}px`, this.$_innerNode.style[t === "min" ? "minHeight" : t === "max" ? "maxHeight" : "height"] = a == null ? null : `${a}px`, {
|
|
492
|
+
data: { skip: !0 },
|
|
493
|
+
reset: { rects: !0 }
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(o({
|
|
499
|
+
boundary: this.boundary,
|
|
500
|
+
padding: this.overflowPadding,
|
|
501
|
+
apply: ({ availableWidth: e, availableHeight: t }) => {
|
|
502
|
+
this.$_innerNode.style.maxWidth = e == null ? null : `${e}px`, this.$_innerNode.style.maxHeight = t == null ? null : `${t}px`;
|
|
503
|
+
}
|
|
504
|
+
})));
|
|
505
|
+
let n = await u(this.$_referenceNode, this.$_popperNode, e);
|
|
506
|
+
Object.assign(this.result, {
|
|
507
|
+
x: n.x,
|
|
508
|
+
y: n.y,
|
|
509
|
+
placement: n.placement,
|
|
510
|
+
strategy: n.strategy,
|
|
511
|
+
arrow: {
|
|
512
|
+
...n.middlewareData.arrow,
|
|
513
|
+
...n.middlewareData.arrowOverflow
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
},
|
|
517
|
+
$_scheduleShow(e, t = !1) {
|
|
518
|
+
this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), C && this.instantMove && C.instantMove && C !== this.parentPopper ? (C.$_applyHide(!0), this.$_applyShow(!0)) : t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
519
|
+
},
|
|
520
|
+
$_scheduleHide(e, t = !1) {
|
|
521
|
+
this.shownChildren.size > 0 ? this.pendingHide = !0 : (this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, this.$_scheduleTimer && clearTimeout(this.$_scheduleTimer), this.isShown && (C = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide")));
|
|
522
|
+
},
|
|
523
|
+
$_computeDelay(e) {
|
|
524
|
+
let t = this.delay;
|
|
525
|
+
return parseInt(t && t[e] || t || 0);
|
|
526
|
+
},
|
|
527
|
+
async $_applyShow(e = !1) {
|
|
528
|
+
this.$_disposeTimer && clearTimeout(this.$_disposeTimer), this.$_scheduleTimer && clearTimeout(this.$_scheduleTimer), this.skipTransition = e, this.isShown || (this.$_ensureTeleport(), await x(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([...l(this.$_referenceNode), ...l(this.$_popperNode)], "scroll", () => {
|
|
529
|
+
this.$_computePosition();
|
|
530
|
+
}));
|
|
531
|
+
},
|
|
532
|
+
async $_applyShowEffect() {
|
|
533
|
+
if (this.$_hideInProgress) return;
|
|
534
|
+
if (this.computeTransformOrigin) {
|
|
535
|
+
let e = this.$_referenceNode.getBoundingClientRect(), t = this.$_popperNode.querySelector(".v-popper__wrapper"), n = t.parentNode.getBoundingClientRect(), r = e.x + e.width / 2 - (n.left + t.offsetLeft), i = e.y + e.height / 2 - (n.top + t.offsetTop);
|
|
536
|
+
this.result.transformOrigin = `${r}px ${i}px`;
|
|
537
|
+
}
|
|
538
|
+
this.isShown = !0, this.$_applyAttrsToTarget({
|
|
539
|
+
"aria-describedby": this.popperId,
|
|
540
|
+
"data-popper-shown": ""
|
|
541
|
+
});
|
|
542
|
+
let e = this.showGroup;
|
|
543
|
+
if (e) {
|
|
544
|
+
let t;
|
|
545
|
+
for (let n = 0; n < S.length; n++) t = S[n], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
|
|
546
|
+
}
|
|
547
|
+
S.push(this), document.body.classList.add("v-popper--some-open");
|
|
548
|
+
for (let e of g(this.theme)) T(e).push(this), document.body.classList.add(`v-popper--some-open--${e}`);
|
|
549
|
+
this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await x(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
|
|
550
|
+
},
|
|
551
|
+
async $_applyHide(e = !1) {
|
|
552
|
+
if (this.shownChildren.size > 0) {
|
|
553
|
+
this.pendingHide = !0, this.$_hideInProgress = !1;
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
if (this.$_scheduleTimer && clearTimeout(this.$_scheduleTimer), !this.isShown) return;
|
|
557
|
+
this.skipTransition = e, b(S, this), S.length === 0 && document.body.classList.remove("v-popper--some-open");
|
|
558
|
+
for (let e of g(this.theme)) {
|
|
559
|
+
let t = T(e);
|
|
560
|
+
b(t, this), t.length === 0 && document.body.classList.remove(`v-popper--some-open--${e}`);
|
|
561
|
+
}
|
|
562
|
+
C === this && (C = null), this.isShown = !1, this.$_applyAttrsToTarget({
|
|
563
|
+
"aria-describedby": void 0,
|
|
564
|
+
"data-popper-shown": void 0
|
|
565
|
+
}), this.$_disposeTimer && clearTimeout(this.$_disposeTimer);
|
|
566
|
+
let t = this.disposeTimeout;
|
|
567
|
+
t !== null && (this.$_disposeTimer = setTimeout(() => {
|
|
568
|
+
this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
|
|
569
|
+
}, 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 x(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
|
|
570
|
+
},
|
|
571
|
+
$_autoShowHide() {
|
|
572
|
+
this.shown ? this.show() : this.hide();
|
|
573
|
+
},
|
|
574
|
+
$_ensureTeleport() {
|
|
575
|
+
if (this.isDisposed) return;
|
|
576
|
+
let e = this.container;
|
|
577
|
+
if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e) throw Error(`No container for popover: ${this.container}`);
|
|
578
|
+
e.appendChild(this.$_popperNode), this.isMounted = !0;
|
|
579
|
+
},
|
|
580
|
+
$_addEventListeners() {
|
|
581
|
+
let e = (e) => {
|
|
582
|
+
(!this.isShown || this.$_hideInProgress) && (e.usedByTooltip = !0, !this.$_preventShow && this.show({ event: e }));
|
|
583
|
+
};
|
|
584
|
+
this.$_registerTriggerListeners(this.$_targetNodes, y, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], y, this.popperTriggers, this.popperShowTriggers, e);
|
|
585
|
+
let t = (e) => {
|
|
586
|
+
e.usedByTooltip || this.hide({ event: e });
|
|
587
|
+
};
|
|
588
|
+
this.$_registerTriggerListeners(this.$_targetNodes, ne, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], ne, this.popperTriggers, this.popperHideTriggers, t);
|
|
589
|
+
},
|
|
590
|
+
$_registerEventListeners(e, t, n) {
|
|
591
|
+
this.$_events.push({
|
|
592
|
+
targetNodes: e,
|
|
593
|
+
eventType: t,
|
|
594
|
+
handler: n
|
|
595
|
+
}), e.forEach((e) => e.addEventListener(t, n, _ ? { passive: !0 } : void 0));
|
|
596
|
+
},
|
|
597
|
+
$_registerTriggerListeners(e, t, n, r, i) {
|
|
598
|
+
let a = n;
|
|
599
|
+
r != null && (a = typeof r == "function" ? r(a) : r), a.forEach((n) => {
|
|
600
|
+
let r = t[n];
|
|
601
|
+
r && this.$_registerEventListeners(e, r, i);
|
|
602
|
+
});
|
|
603
|
+
},
|
|
604
|
+
$_removeEventListeners(e) {
|
|
605
|
+
let t = [];
|
|
606
|
+
this.$_events.forEach((n) => {
|
|
607
|
+
let { targetNodes: r, eventType: i, handler: a } = n;
|
|
608
|
+
!e || e === i ? r.forEach((e) => e.removeEventListener(i, a)) : t.push(n);
|
|
609
|
+
}), this.$_events = t;
|
|
610
|
+
},
|
|
611
|
+
$_refreshListeners() {
|
|
612
|
+
this.isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
|
|
613
|
+
},
|
|
614
|
+
$_handleGlobalClose(e, t = !1) {
|
|
615
|
+
this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
|
|
616
|
+
this.$_preventShow = !1;
|
|
617
|
+
}, 300)));
|
|
618
|
+
},
|
|
619
|
+
$_detachPopperNode() {
|
|
620
|
+
this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
|
|
621
|
+
},
|
|
622
|
+
$_swapTargetAttrs(e, t) {
|
|
623
|
+
for (let n of this.$_targetNodes) {
|
|
624
|
+
let r = n.getAttribute(e);
|
|
625
|
+
r && (n.removeAttribute(e), n.setAttribute(t, r));
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
$_applyAttrsToTarget(e) {
|
|
629
|
+
for (let t of this.$_targetNodes) for (let n in e) {
|
|
630
|
+
let r = e[n];
|
|
631
|
+
r == null ? t.removeAttribute(n) : t.setAttribute(n, r);
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
$_updateParentShownChildren(e) {
|
|
635
|
+
let t = this.parentPopper;
|
|
636
|
+
for (; t;) e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.pendingHide && t.hide()), t = t.parentPopper;
|
|
637
|
+
},
|
|
638
|
+
$_isAimingPopper() {
|
|
639
|
+
let e = this.$_referenceNode.getBoundingClientRect();
|
|
640
|
+
if (I >= e.left && I <= e.right && L >= e.top && L <= e.bottom) {
|
|
641
|
+
let e = this.$_popperNode.getBoundingClientRect(), t = I - P, n = L - F, r = e.left + e.width / 2 - P + (e.top + e.height / 2) - F + e.width + e.height, i = P + t * r, a = F + n * r;
|
|
642
|
+
return R(P, F, i, a, e.left, e.top, e.left, e.bottom) || R(P, F, i, a, e.left, e.top, e.right, e.top) || R(P, F, i, a, e.right, e.top, e.right, e.bottom) || R(P, F, i, a, e.left, e.bottom, e.right, e.bottom);
|
|
643
|
+
}
|
|
644
|
+
return !1;
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
render() {
|
|
648
|
+
return this.$slots.default(this.slotData);
|
|
649
|
+
}
|
|
650
|
+
});
|
|
651
|
+
if (typeof document < "u" && typeof window < "u") {
|
|
652
|
+
if (te) {
|
|
653
|
+
let e = !_ || {
|
|
654
|
+
passive: !0,
|
|
655
|
+
capture: !0
|
|
656
|
+
};
|
|
657
|
+
document.addEventListener("touchstart", (e) => A(e, !0), e), document.addEventListener("touchend", (e) => j(e, !0), e);
|
|
658
|
+
} else window.addEventListener("mousedown", (e) => A(e, !1), !0), window.addEventListener("click", (e) => j(e, !1), !0);
|
|
659
|
+
window.addEventListener("resize", ie);
|
|
660
|
+
}
|
|
661
|
+
function A(e, t) {
|
|
662
|
+
if (m.autoHideOnMousedown) M(e, t);
|
|
663
|
+
else for (let t = 0; t < S.length; t++) {
|
|
664
|
+
let n = S[t];
|
|
665
|
+
try {
|
|
666
|
+
n.mouseDownContains = n.popperNode().contains(e.target);
|
|
667
|
+
} catch {}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
function j(e, t) {
|
|
671
|
+
m.autoHideOnMousedown || M(e, t);
|
|
672
|
+
}
|
|
673
|
+
function M(e, t) {
|
|
674
|
+
let n = {};
|
|
675
|
+
for (let r = S.length - 1; r >= 0; r--) {
|
|
676
|
+
let i = S[r];
|
|
677
|
+
try {
|
|
678
|
+
let r = Array.from(i.shownChildren).some((t) => {
|
|
679
|
+
let n = S.find((e) => e.randomId === t);
|
|
680
|
+
return n && n.popperNode().contains(e.target);
|
|
681
|
+
}), a = i.containsGlobalTarget = i.mouseDownContains || i.popperNode().contains(e.target) || r;
|
|
682
|
+
i.pendingHide = !1, requestAnimationFrame(() => {
|
|
683
|
+
if (i.pendingHide = !1, !n[i.randomId] && N(i, a, e)) {
|
|
684
|
+
if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && a) {
|
|
685
|
+
let e = i.parentPopper;
|
|
686
|
+
for (; e;) n[e.randomId] = !0, e = e.parentPopper;
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
let r = i.parentPopper;
|
|
690
|
+
for (; r && N(r, r.containsGlobalTarget, e);) r.$_handleGlobalClose(e, t), r = r.parentPopper;
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
} catch {}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
function N(e, t, n) {
|
|
697
|
+
return n.closeAllPopover || n.closePopover && t || re(e, n) && !t;
|
|
698
|
+
}
|
|
699
|
+
function re(e, t) {
|
|
700
|
+
if (typeof e.autoHide == "function") {
|
|
701
|
+
let n = e.autoHide(t);
|
|
702
|
+
return e.lastAutoHide = n, n;
|
|
703
|
+
}
|
|
704
|
+
return e.autoHide;
|
|
705
|
+
}
|
|
706
|
+
function ie() {
|
|
707
|
+
for (let e = 0; e < S.length; e++) S[e].$_computePosition();
|
|
708
|
+
}
|
|
709
|
+
var P = 0, F = 0, I = 0, L = 0;
|
|
710
|
+
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
711
|
+
P = I, F = L, I = e.clientX, L = e.clientY;
|
|
712
|
+
}, _ ? { passive: !0 } : void 0);
|
|
713
|
+
function R(e, t, n, r, i, a, o, s) {
|
|
714
|
+
let c = ((o - i) * (t - a) - (s - a) * (e - i)) / ((s - a) * (n - e) - (o - i) * (r - t)), l = ((n - e) * (t - a) - (r - t) * (e - i)) / ((s - a) * (n - e) - (o - i) * (r - t));
|
|
715
|
+
return c >= 0 && c <= 1 && l >= 0 && l <= 1;
|
|
716
|
+
}
|
|
717
|
+
var ae = r({
|
|
718
|
+
extends: k(),
|
|
719
|
+
render() {
|
|
720
|
+
var t;
|
|
721
|
+
return e("div", {
|
|
722
|
+
ref: "reference",
|
|
723
|
+
class: ["v-popper", { "v-popper--shown": this.slotData.isShown }]
|
|
724
|
+
}, (t = this.$slots).default?.call(t, this.slotData));
|
|
725
|
+
}
|
|
726
|
+
}), z = (e = "theme") => ({ computed: { themeClass() {
|
|
727
|
+
return ee(this[e]);
|
|
728
|
+
} } }), B = r({
|
|
729
|
+
name: "VPopperContent",
|
|
730
|
+
mixins: [z()],
|
|
731
|
+
props: {
|
|
732
|
+
popperId: String,
|
|
733
|
+
theme: String,
|
|
734
|
+
shown: Boolean,
|
|
735
|
+
mounted: Boolean,
|
|
736
|
+
skipTransition: Boolean,
|
|
737
|
+
autoHide: Boolean,
|
|
738
|
+
handleResize: Boolean,
|
|
739
|
+
classes: Object,
|
|
740
|
+
result: Object
|
|
741
|
+
},
|
|
742
|
+
emits: ["hide", "resize"],
|
|
743
|
+
mounted() {
|
|
744
|
+
this.handleResize && (this.$_resizeObserver = new ResizeObserver(() => this.$emit("resize")), this.$_resizeObserver.observe(this.$refs.inner));
|
|
745
|
+
},
|
|
746
|
+
beforeUnmount() {
|
|
747
|
+
var e;
|
|
748
|
+
(e = this.$_resizeObserver) == null || e.disconnect();
|
|
749
|
+
},
|
|
750
|
+
methods: { toPx(e) {
|
|
751
|
+
return e != null && !Number.isNaN(e) ? `${e}px` : null;
|
|
752
|
+
} },
|
|
753
|
+
render() {
|
|
754
|
+
var t;
|
|
755
|
+
let { autoHide: n, classes: r, result: i, shown: a } = this;
|
|
756
|
+
return e("div", {
|
|
757
|
+
id: this.popperId,
|
|
758
|
+
ref: "popover",
|
|
759
|
+
"data-allow-mismatch": "",
|
|
760
|
+
class: [
|
|
761
|
+
"v-popper__popper",
|
|
762
|
+
this.themeClass,
|
|
763
|
+
r.popperClass,
|
|
764
|
+
{
|
|
765
|
+
"v-popper__popper--shown": a,
|
|
766
|
+
"v-popper__popper--hidden": !a,
|
|
767
|
+
"v-popper__popper--show-from": r.showFrom,
|
|
768
|
+
"v-popper__popper--show-to": r.showTo,
|
|
769
|
+
"v-popper__popper--hide-from": r.hideFrom,
|
|
770
|
+
"v-popper__popper--hide-to": r.hideTo,
|
|
771
|
+
"v-popper__popper--skip-transition": this.skipTransition,
|
|
772
|
+
"v-popper__popper--arrow-overflow": i && i.arrow.overflow,
|
|
773
|
+
"v-popper__popper--no-positioning": !i
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
style: i ? {
|
|
777
|
+
position: i.strategy,
|
|
778
|
+
transform: `translate3d(${Math.round(i.x)}px,${Math.round(i.y)}px,0)`
|
|
779
|
+
} : void 0,
|
|
780
|
+
"aria-hidden": a || n ? "false" : "true",
|
|
781
|
+
tabindex: n ? 0 : void 0,
|
|
782
|
+
"data-popper-placement": i ? i.placement : void 0,
|
|
783
|
+
onKeyup: (e) => {
|
|
784
|
+
e.key === "Escape" && n && this.$emit("hide");
|
|
785
|
+
}
|
|
786
|
+
}, [e("div", {
|
|
787
|
+
class: "v-popper__backdrop",
|
|
788
|
+
onClick: () => n && this.$emit("hide")
|
|
789
|
+
}), e("div", {
|
|
790
|
+
class: "v-popper__wrapper",
|
|
791
|
+
style: i ? { transformOrigin: i.transformOrigin } : void 0
|
|
792
|
+
}, [e("div", {
|
|
793
|
+
ref: "inner",
|
|
794
|
+
class: "v-popper__inner"
|
|
795
|
+
}, this.mounted ? [e("div", (t = this.$slots).default?.call(t))] : void 0), e("div", {
|
|
796
|
+
ref: "arrow",
|
|
797
|
+
class: "v-popper__arrow-container",
|
|
798
|
+
style: i ? {
|
|
799
|
+
left: this.toPx(i.arrow.x),
|
|
800
|
+
top: this.toPx(i.arrow.y)
|
|
801
|
+
} : void 0
|
|
802
|
+
}, [e("div", { class: "v-popper__arrow-outer" }), e("div", { class: "v-popper__arrow-inner" })])])]);
|
|
803
|
+
}
|
|
804
|
+
}), V = { methods: {
|
|
805
|
+
show(...e) {
|
|
806
|
+
return this.$refs.popper.show(...e);
|
|
807
|
+
},
|
|
808
|
+
hide(...e) {
|
|
809
|
+
return this.$refs.popper.hide(...e);
|
|
810
|
+
},
|
|
811
|
+
dispose(...e) {
|
|
812
|
+
return this.$refs.popper.dispose(...e);
|
|
813
|
+
},
|
|
814
|
+
onResize(...e) {
|
|
815
|
+
return this.$refs.popper.onResize(...e);
|
|
816
|
+
}
|
|
817
|
+
} }, H = function() {};
|
|
818
|
+
typeof window < "u" && (H = window.Element);
|
|
819
|
+
var oe = r({
|
|
820
|
+
name: "VPopperWrapper",
|
|
821
|
+
mixins: [V, z("finalTheme")],
|
|
822
|
+
props: {
|
|
823
|
+
theme: {
|
|
824
|
+
type: String,
|
|
825
|
+
default: null
|
|
826
|
+
},
|
|
827
|
+
referenceNode: {
|
|
828
|
+
type: Function,
|
|
829
|
+
default: null
|
|
830
|
+
},
|
|
831
|
+
shown: {
|
|
832
|
+
type: Boolean,
|
|
833
|
+
default: !1
|
|
834
|
+
},
|
|
835
|
+
showGroup: {
|
|
836
|
+
type: String,
|
|
837
|
+
default: null
|
|
838
|
+
},
|
|
839
|
+
ariaId: { default: null },
|
|
840
|
+
disabled: {
|
|
841
|
+
type: Boolean,
|
|
842
|
+
default: void 0
|
|
843
|
+
},
|
|
844
|
+
positioningDisabled: {
|
|
845
|
+
type: Boolean,
|
|
846
|
+
default: void 0
|
|
847
|
+
},
|
|
848
|
+
placement: {
|
|
849
|
+
type: String,
|
|
850
|
+
default: void 0
|
|
851
|
+
},
|
|
852
|
+
delay: {
|
|
853
|
+
type: [
|
|
854
|
+
String,
|
|
855
|
+
Number,
|
|
856
|
+
Object
|
|
857
|
+
],
|
|
858
|
+
default: void 0
|
|
859
|
+
},
|
|
860
|
+
distance: {
|
|
861
|
+
type: [Number, String],
|
|
862
|
+
default: void 0
|
|
863
|
+
},
|
|
864
|
+
skidding: {
|
|
865
|
+
type: [Number, String],
|
|
866
|
+
default: void 0
|
|
867
|
+
},
|
|
868
|
+
triggers: {
|
|
869
|
+
type: Array,
|
|
870
|
+
default: void 0
|
|
871
|
+
},
|
|
872
|
+
showTriggers: {
|
|
873
|
+
type: [Array, Function],
|
|
874
|
+
default: void 0
|
|
875
|
+
},
|
|
876
|
+
hideTriggers: {
|
|
877
|
+
type: [Array, Function],
|
|
878
|
+
default: void 0
|
|
879
|
+
},
|
|
880
|
+
popperTriggers: {
|
|
881
|
+
type: Array,
|
|
882
|
+
default: void 0
|
|
883
|
+
},
|
|
884
|
+
popperShowTriggers: {
|
|
885
|
+
type: [Array, Function],
|
|
886
|
+
default: void 0
|
|
887
|
+
},
|
|
888
|
+
popperHideTriggers: {
|
|
889
|
+
type: [Array, Function],
|
|
890
|
+
default: void 0
|
|
891
|
+
},
|
|
892
|
+
container: {
|
|
893
|
+
type: [
|
|
894
|
+
String,
|
|
895
|
+
Object,
|
|
896
|
+
H,
|
|
897
|
+
Boolean
|
|
898
|
+
],
|
|
899
|
+
default: void 0
|
|
900
|
+
},
|
|
901
|
+
boundary: {
|
|
902
|
+
type: [String, H],
|
|
903
|
+
default: void 0
|
|
904
|
+
},
|
|
905
|
+
strategy: {
|
|
906
|
+
type: String,
|
|
907
|
+
default: void 0
|
|
908
|
+
},
|
|
909
|
+
autoHide: {
|
|
910
|
+
type: [Boolean, Function],
|
|
911
|
+
default: void 0
|
|
912
|
+
},
|
|
913
|
+
handleResize: {
|
|
914
|
+
type: Boolean,
|
|
915
|
+
default: void 0
|
|
916
|
+
},
|
|
917
|
+
instantMove: {
|
|
918
|
+
type: Boolean,
|
|
919
|
+
default: void 0
|
|
920
|
+
},
|
|
921
|
+
eagerMount: {
|
|
922
|
+
type: Boolean,
|
|
923
|
+
default: void 0
|
|
924
|
+
},
|
|
925
|
+
popperClass: {
|
|
926
|
+
type: [
|
|
927
|
+
String,
|
|
928
|
+
Array,
|
|
929
|
+
Object
|
|
930
|
+
],
|
|
931
|
+
default: void 0
|
|
932
|
+
},
|
|
933
|
+
computeTransformOrigin: {
|
|
934
|
+
type: Boolean,
|
|
935
|
+
default: void 0
|
|
936
|
+
},
|
|
937
|
+
autoMinSize: {
|
|
938
|
+
type: Boolean,
|
|
939
|
+
default: void 0
|
|
940
|
+
},
|
|
941
|
+
autoSize: {
|
|
942
|
+
type: [Boolean, String],
|
|
943
|
+
default: void 0
|
|
944
|
+
},
|
|
945
|
+
autoMaxSize: {
|
|
946
|
+
type: Boolean,
|
|
947
|
+
default: void 0
|
|
948
|
+
},
|
|
949
|
+
autoBoundaryMaxSize: {
|
|
950
|
+
type: Boolean,
|
|
951
|
+
default: void 0
|
|
952
|
+
},
|
|
953
|
+
preventOverflow: {
|
|
954
|
+
type: Boolean,
|
|
955
|
+
default: void 0
|
|
956
|
+
},
|
|
957
|
+
overflowPadding: {
|
|
958
|
+
type: [Number, String],
|
|
959
|
+
default: void 0
|
|
960
|
+
},
|
|
961
|
+
arrowPadding: {
|
|
962
|
+
type: [Number, String],
|
|
963
|
+
default: void 0
|
|
964
|
+
},
|
|
965
|
+
arrowOverflow: {
|
|
966
|
+
type: Boolean,
|
|
967
|
+
default: void 0
|
|
968
|
+
},
|
|
969
|
+
flip: {
|
|
970
|
+
type: Boolean,
|
|
971
|
+
default: void 0
|
|
972
|
+
},
|
|
973
|
+
shift: {
|
|
974
|
+
type: Boolean,
|
|
975
|
+
default: void 0
|
|
976
|
+
},
|
|
977
|
+
shiftCrossAxis: {
|
|
978
|
+
type: Boolean,
|
|
979
|
+
default: void 0
|
|
980
|
+
},
|
|
981
|
+
noAutoFocus: {
|
|
982
|
+
type: Boolean,
|
|
983
|
+
default: void 0
|
|
984
|
+
},
|
|
985
|
+
disposeTimeout: {
|
|
986
|
+
type: Number,
|
|
987
|
+
default: void 0
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
emits: {
|
|
991
|
+
show: () => !0,
|
|
992
|
+
hide: () => !0,
|
|
993
|
+
"update:shown": (e) => !0,
|
|
994
|
+
"apply-show": () => !0,
|
|
995
|
+
"apply-hide": () => !0,
|
|
996
|
+
"close-group": () => !0,
|
|
997
|
+
"close-directive": () => !0,
|
|
998
|
+
"auto-hide": () => !0,
|
|
999
|
+
resize: () => !0
|
|
1000
|
+
},
|
|
1001
|
+
computed: { finalTheme() {
|
|
1002
|
+
return this.theme ?? this.$options.vPopperTheme;
|
|
1003
|
+
} },
|
|
1004
|
+
methods: { getTargetNodes() {
|
|
1005
|
+
return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
|
|
1006
|
+
} },
|
|
1007
|
+
render() {
|
|
1008
|
+
return e(ae, {
|
|
1009
|
+
ref: "popper",
|
|
1010
|
+
...this.$props,
|
|
1011
|
+
theme: this.finalTheme,
|
|
1012
|
+
targetNodes: this.getTargetNodes,
|
|
1013
|
+
popperNode: () => this.$refs.popperContent.$el,
|
|
1014
|
+
class: [this.themeClass],
|
|
1015
|
+
onShow: () => this.$emit("show"),
|
|
1016
|
+
onHide: () => this.$emit("hide"),
|
|
1017
|
+
"onUpdate:shown": (e) => this.$emit("update:shown", e),
|
|
1018
|
+
onApplyShow: () => this.$emit("apply-show"),
|
|
1019
|
+
onApplyHide: () => this.$emit("apply-hide"),
|
|
1020
|
+
onCloseGroup: () => this.$emit("close-group"),
|
|
1021
|
+
onCloseDirective: () => this.$emit("close-directive"),
|
|
1022
|
+
onAutoHide: () => this.$emit("auto-hide"),
|
|
1023
|
+
onResize: () => this.$emit("resize")
|
|
1024
|
+
}, { default: ({ popperId: t, isShown: n, shouldMountContent: r, skipTransition: i, autoHide: a, show: o, hide: s, handleResize: c, onResize: l, classes: u, result: d }) => {
|
|
1025
|
+
var f;
|
|
1026
|
+
return [(f = this.$slots).default?.call(f, {
|
|
1027
|
+
shown: n,
|
|
1028
|
+
show: o,
|
|
1029
|
+
hide: s
|
|
1030
|
+
}), e(B, {
|
|
1031
|
+
ref: "popperContent",
|
|
1032
|
+
popperId: t,
|
|
1033
|
+
theme: this.finalTheme,
|
|
1034
|
+
shown: n,
|
|
1035
|
+
mounted: r,
|
|
1036
|
+
skipTransition: i,
|
|
1037
|
+
autoHide: a,
|
|
1038
|
+
handleResize: c,
|
|
1039
|
+
classes: u,
|
|
1040
|
+
result: d,
|
|
1041
|
+
onHide: s,
|
|
1042
|
+
onResize: l
|
|
1043
|
+
}, { default: () => {
|
|
1044
|
+
var e;
|
|
1045
|
+
return (e = this.$slots).popper?.call(e, {
|
|
1046
|
+
shown: n,
|
|
1047
|
+
hide: s
|
|
1048
|
+
});
|
|
1049
|
+
} })];
|
|
1050
|
+
} });
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
function U(e, t) {
|
|
1054
|
+
return {
|
|
1055
|
+
...oe,
|
|
1056
|
+
name: e,
|
|
1057
|
+
vPopperTheme: t
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
var se = U("VDropdown", "dropdown"), ce = U("VMenu", "menu"), le = U("VTooltip", "tooltip"), ue = k(), de = r({
|
|
1061
|
+
name: "VTooltipDirective",
|
|
1062
|
+
mixins: [V],
|
|
1063
|
+
inheritAttrs: !1,
|
|
1064
|
+
props: {
|
|
1065
|
+
theme: {
|
|
1066
|
+
type: String,
|
|
1067
|
+
default: "tooltip"
|
|
1068
|
+
},
|
|
1069
|
+
html: {
|
|
1070
|
+
type: Boolean,
|
|
1071
|
+
default: (e) => h(e.theme, "html")
|
|
1072
|
+
},
|
|
1073
|
+
content: {
|
|
1074
|
+
type: [
|
|
1075
|
+
String,
|
|
1076
|
+
Number,
|
|
1077
|
+
Function
|
|
1078
|
+
],
|
|
1079
|
+
default: null
|
|
1080
|
+
},
|
|
1081
|
+
loadingContent: {
|
|
1082
|
+
type: String,
|
|
1083
|
+
default: (e) => h(e.theme, "loadingContent")
|
|
1084
|
+
},
|
|
1085
|
+
targetNodes: {
|
|
1086
|
+
type: Function,
|
|
1087
|
+
required: !0
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
data() {
|
|
1091
|
+
return { asyncContent: null };
|
|
1092
|
+
},
|
|
1093
|
+
computed: {
|
|
1094
|
+
isContentAsync() {
|
|
1095
|
+
return typeof this.content == "function";
|
|
1096
|
+
},
|
|
1097
|
+
loading() {
|
|
1098
|
+
return this.isContentAsync && this.asyncContent == null;
|
|
1099
|
+
},
|
|
1100
|
+
finalContent() {
|
|
1101
|
+
return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
watch: {
|
|
1105
|
+
content: {
|
|
1106
|
+
handler() {
|
|
1107
|
+
this.fetchContent(!0);
|
|
1108
|
+
},
|
|
1109
|
+
immediate: !0
|
|
1110
|
+
},
|
|
1111
|
+
async finalContent() {
|
|
1112
|
+
await this.$nextTick(), this.$refs.popper.onResize();
|
|
1113
|
+
}
|
|
1114
|
+
},
|
|
1115
|
+
created() {
|
|
1116
|
+
this.$_fetchId = 0;
|
|
1117
|
+
},
|
|
1118
|
+
methods: {
|
|
1119
|
+
fetchContent(e) {
|
|
1120
|
+
if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
|
|
1121
|
+
this.asyncContent = null, this.$_loading = !0;
|
|
1122
|
+
let e = ++this.$_fetchId, t = this.content(this);
|
|
1123
|
+
t.then ? t.then((t) => this.onResult(e, t)) : this.onResult(e, t);
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
onResult(e, t) {
|
|
1127
|
+
e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
|
|
1128
|
+
},
|
|
1129
|
+
onShow() {
|
|
1130
|
+
this.$_isShown = !0, this.fetchContent();
|
|
1131
|
+
},
|
|
1132
|
+
onHide() {
|
|
1133
|
+
this.$_isShown = !1;
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
render() {
|
|
1137
|
+
return e(ue, {
|
|
1138
|
+
ref: "popper",
|
|
1139
|
+
...this.$attrs,
|
|
1140
|
+
theme: this.theme,
|
|
1141
|
+
targetNodes: this.targetNodes,
|
|
1142
|
+
popperNode: () => this.$refs.popperContent.$el,
|
|
1143
|
+
onApplyShow: this.onShow,
|
|
1144
|
+
onApplyHide: this.onHide
|
|
1145
|
+
}, { default: ({ popperId: t, isShown: n, shouldMountContent: r, skipTransition: i, autoHide: a, hide: o, handleResize: s, onResize: c, classes: l, result: u }) => e(B, {
|
|
1146
|
+
ref: "popperContent",
|
|
1147
|
+
class: { "v-popper--tooltip-loading": this.loading },
|
|
1148
|
+
popperId: t,
|
|
1149
|
+
theme: this.theme,
|
|
1150
|
+
shown: n,
|
|
1151
|
+
mounted: r,
|
|
1152
|
+
skipTransition: i,
|
|
1153
|
+
autoHide: a,
|
|
1154
|
+
handleResize: s,
|
|
1155
|
+
classes: l,
|
|
1156
|
+
result: u,
|
|
1157
|
+
onHide: o,
|
|
1158
|
+
onResize: c
|
|
1159
|
+
}, { default: () => this.html ? e("div", { innerHTML: this.finalContent }) : e("div", { textContent: this.finalContent }) }) });
|
|
1160
|
+
}
|
|
1161
|
+
}), W = "v-popper--has-tooltip";
|
|
1162
|
+
function fe(e, t) {
|
|
1163
|
+
let n = e.placement;
|
|
1164
|
+
if (!n && t) for (let e of v) t[e] && (n = e);
|
|
1165
|
+
return n ||= h(e.theme || "tooltip", "placement"), n;
|
|
1166
|
+
}
|
|
1167
|
+
function G(e, t, n) {
|
|
1168
|
+
let r, i = typeof t;
|
|
1169
|
+
return r = i === "string" ? { content: t } : t && i === "object" ? t : { content: !1 }, r.placement = fe(r, n), r.targetNodes = () => [e], r.referenceNode = () => e, r;
|
|
1170
|
+
}
|
|
1171
|
+
var K, q, pe = 0;
|
|
1172
|
+
function me() {
|
|
1173
|
+
if (K) return;
|
|
1174
|
+
q = n([]), K = t({
|
|
1175
|
+
name: "VTooltipDirectiveApp",
|
|
1176
|
+
setup() {
|
|
1177
|
+
return { directives: q };
|
|
1178
|
+
},
|
|
1179
|
+
render() {
|
|
1180
|
+
return this.directives.map((t) => e(de, {
|
|
1181
|
+
...t.options,
|
|
1182
|
+
shown: t.shown || t.options.shown,
|
|
1183
|
+
key: t.id
|
|
1184
|
+
}));
|
|
1185
|
+
},
|
|
1186
|
+
devtools: { hide: !0 }
|
|
1187
|
+
});
|
|
1188
|
+
let r = document.createElement("div");
|
|
1189
|
+
document.body.appendChild(r), K.mount(r);
|
|
1190
|
+
}
|
|
1191
|
+
function he(e, t, r) {
|
|
1192
|
+
me();
|
|
1193
|
+
let i = n(G(e, t, r)), a = n(!1), o = {
|
|
1194
|
+
id: pe++,
|
|
1195
|
+
options: i,
|
|
1196
|
+
shown: a
|
|
1197
|
+
};
|
|
1198
|
+
return q.value.push(o), e.classList && e.classList.add(W), e.$_popper = {
|
|
1199
|
+
options: i,
|
|
1200
|
+
item: o,
|
|
1201
|
+
show() {
|
|
1202
|
+
a.value = !0;
|
|
1203
|
+
},
|
|
1204
|
+
hide() {
|
|
1205
|
+
a.value = !1;
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
function J(e) {
|
|
1210
|
+
if (e.$_popper) {
|
|
1211
|
+
let t = q.value.indexOf(e.$_popper.item);
|
|
1212
|
+
t !== -1 && q.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
|
|
1213
|
+
}
|
|
1214
|
+
e.classList && e.classList.remove(W);
|
|
1215
|
+
}
|
|
1216
|
+
function Y(e, { value: t, modifiers: n }) {
|
|
1217
|
+
let r = G(e, t, n);
|
|
1218
|
+
if (!r.content || h(r.theme || "tooltip", "disabled")) J(e);
|
|
1219
|
+
else {
|
|
1220
|
+
let i;
|
|
1221
|
+
e.$_popper ? (i = e.$_popper, i.options.value = r) : i = he(e, t, n), t.shown !== void 0 && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? i.show() : i.hide());
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
var ge = {
|
|
1225
|
+
beforeMount: Y,
|
|
1226
|
+
updated: Y,
|
|
1227
|
+
beforeUnmount(e) {
|
|
1228
|
+
J(e);
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
function X(e) {
|
|
1232
|
+
e.addEventListener("mousedown", Q), e.addEventListener("click", Q), e.addEventListener("touchstart", $, _ ? { passive: !0 } : !1);
|
|
1233
|
+
}
|
|
1234
|
+
function Z(e) {
|
|
1235
|
+
e.removeEventListener("mousedown", Q), e.removeEventListener("click", Q), e.removeEventListener("touchstart", $), e.removeEventListener("touchend", _e), e.removeEventListener("touchcancel", ve);
|
|
1236
|
+
}
|
|
1237
|
+
function Q(e) {
|
|
1238
|
+
let t = e.currentTarget;
|
|
1239
|
+
e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
1240
|
+
}
|
|
1241
|
+
function $(e) {
|
|
1242
|
+
if (e.changedTouches.length === 1) {
|
|
1243
|
+
let t = e.currentTarget;
|
|
1244
|
+
t.$_vclosepopover_touch = !0, t.$_vclosepopover_touchPoint = e.changedTouches[0], t.addEventListener("touchend", _e), t.addEventListener("touchcancel", ve);
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
function _e(e) {
|
|
1248
|
+
let t = e.currentTarget;
|
|
1249
|
+
if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
|
|
1250
|
+
let n = e.changedTouches[0], r = t.$_vclosepopover_touchPoint;
|
|
1251
|
+
e.closePopover = Math.abs(n.screenY - r.screenY) < 20 && Math.abs(n.screenX - r.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
function ve(e) {
|
|
1255
|
+
let t = e.currentTarget;
|
|
1256
|
+
t.$_vclosepopover_touch = !1;
|
|
1257
|
+
}
|
|
1258
|
+
var ye = {
|
|
1259
|
+
beforeMount(e, { value: t, modifiers: n }) {
|
|
1260
|
+
e.$_closePopoverModifiers = n, (t === void 0 || t) && X(e);
|
|
1261
|
+
},
|
|
1262
|
+
updated(e, { value: t, oldValue: n, modifiers: r }) {
|
|
1263
|
+
e.$_closePopoverModifiers = r, t !== n && (t === void 0 || t ? X(e) : Z(e));
|
|
1264
|
+
},
|
|
1265
|
+
beforeUnmount(e) {
|
|
1266
|
+
Z(e);
|
|
1267
|
+
}
|
|
1268
|
+
};
|
|
1269
|
+
function be(e, t = {}) {
|
|
1270
|
+
if (!e.$_vTooltipInstalled) {
|
|
1271
|
+
e.$_vTooltipInstalled = !0, p(m, t), e.directive("tooltip", ge), e.directive("close-popper", ye);
|
|
1272
|
+
for (let t of [
|
|
1273
|
+
le,
|
|
1274
|
+
se,
|
|
1275
|
+
ce
|
|
1276
|
+
]) e.component(t.name, t);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
var xe = {
|
|
1280
|
+
version: f,
|
|
1281
|
+
install: be,
|
|
1282
|
+
options: m
|
|
1283
|
+
};
|
|
1284
|
+
export { xe as t };
|