@xuda.io/xuda-widget-plugin-xuda-drive 1.0.64 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/floating-ui/core@1.1.1.js +763 -0
- package/floating-ui/dom@1.1.1.js +504 -0
- package/floating-vue@5.2.2/floating-vue.umd.js +1751 -0
- package/floating-vue@5.2.2/style.css +181 -0
- package/moment.min.2.30.1.js +3381 -0
- package/package.json +1 -1
- package/runtime.mjs +52 -136
- package/swiper-bundle.min.11.1.14.css +705 -0
- package/swiper-bundle.min.11.1.14.js +7572 -0
- package/tailwind.cdn.js +27199 -0
- package/vue.global.3.5.6.js +19299 -0
- package/vuewuse/core.js +6715 -0
- package/vuewuse/shared.js +1461 -0
|
@@ -0,0 +1,1751 @@
|
|
|
1
|
+
(function (l, s) {
|
|
2
|
+
typeof exports == "object" && typeof module < "u"
|
|
3
|
+
? s(exports, require("vue"), require("@floating-ui/dom"))
|
|
4
|
+
: typeof define == "function" && define.amd
|
|
5
|
+
? define(["exports", "vue", "@floating-ui/dom"], s)
|
|
6
|
+
: ((l = typeof globalThis < "u" ? globalThis : l || self),
|
|
7
|
+
s((l.FloatingVue = {}), l.Vue, l.FloatingUIDOM));
|
|
8
|
+
})(this, function (l, s, m) {
|
|
9
|
+
"use strict";
|
|
10
|
+
function ee(e, t) {
|
|
11
|
+
for (const o in t)
|
|
12
|
+
Object.prototype.hasOwnProperty.call(t, o) &&
|
|
13
|
+
(typeof t[o] == "object" && e[o] ? ee(e[o], t[o]) : (e[o] = t[o]));
|
|
14
|
+
}
|
|
15
|
+
const u = {
|
|
16
|
+
disabled: !1,
|
|
17
|
+
distance: 5,
|
|
18
|
+
skidding: 0,
|
|
19
|
+
container: "body",
|
|
20
|
+
boundary: void 0,
|
|
21
|
+
instantMove: !1,
|
|
22
|
+
disposeTimeout: 150,
|
|
23
|
+
popperTriggers: [],
|
|
24
|
+
strategy: "absolute",
|
|
25
|
+
preventOverflow: !0,
|
|
26
|
+
flip: !0,
|
|
27
|
+
shift: !0,
|
|
28
|
+
overflowPadding: 0,
|
|
29
|
+
arrowPadding: 0,
|
|
30
|
+
arrowOverflow: !0,
|
|
31
|
+
autoHideOnMousedown: !1,
|
|
32
|
+
themes: {
|
|
33
|
+
tooltip: {
|
|
34
|
+
placement: "top",
|
|
35
|
+
triggers: ["hover", "focus", "touch"],
|
|
36
|
+
hideTriggers: (e) => [...e, "click"],
|
|
37
|
+
delay: { show: 200, hide: 0 },
|
|
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: { show: 0, hide: 400 },
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
function _(e, t) {
|
|
58
|
+
let o = u.themes[e] || {},
|
|
59
|
+
i;
|
|
60
|
+
do
|
|
61
|
+
(i = o[t]),
|
|
62
|
+
typeof i > "u"
|
|
63
|
+
? o.$extend
|
|
64
|
+
? (o = u.themes[o.$extend] || {})
|
|
65
|
+
: ((o = null), (i = u[t]))
|
|
66
|
+
: (o = null);
|
|
67
|
+
while (o);
|
|
68
|
+
return i;
|
|
69
|
+
}
|
|
70
|
+
function Ce(e) {
|
|
71
|
+
const t = [e];
|
|
72
|
+
let o = u.themes[e] || {};
|
|
73
|
+
do
|
|
74
|
+
o.$extend && !o.$resetCss
|
|
75
|
+
? (t.push(o.$extend), (o = u.themes[o.$extend] || {}))
|
|
76
|
+
: (o = null);
|
|
77
|
+
while (o);
|
|
78
|
+
return t.map((i) => `v-popper--theme-${i}`);
|
|
79
|
+
}
|
|
80
|
+
function te(e) {
|
|
81
|
+
const t = [e];
|
|
82
|
+
let o = u.themes[e] || {};
|
|
83
|
+
do
|
|
84
|
+
o.$extend
|
|
85
|
+
? (t.push(o.$extend), (o = u.themes[o.$extend] || {}))
|
|
86
|
+
: (o = null);
|
|
87
|
+
while (o);
|
|
88
|
+
return t;
|
|
89
|
+
}
|
|
90
|
+
const ht = "",
|
|
91
|
+
ut = "";
|
|
92
|
+
let y = !1;
|
|
93
|
+
if (typeof window < "u") {
|
|
94
|
+
y = !1;
|
|
95
|
+
try {
|
|
96
|
+
const e = Object.defineProperty({}, "passive", {
|
|
97
|
+
get() {
|
|
98
|
+
y = !0;
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
window.addEventListener("test", null, e);
|
|
102
|
+
} catch {}
|
|
103
|
+
}
|
|
104
|
+
let oe = !1;
|
|
105
|
+
typeof window < "u" &&
|
|
106
|
+
typeof navigator < "u" &&
|
|
107
|
+
(oe = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
|
|
108
|
+
const E = ["auto", "top", "bottom", "left", "right"].reduce(
|
|
109
|
+
(e, t) => e.concat([t, `${t}-start`, `${t}-end`]),
|
|
110
|
+
[]
|
|
111
|
+
),
|
|
112
|
+
M = {
|
|
113
|
+
hover: "mouseenter",
|
|
114
|
+
focus: "focus",
|
|
115
|
+
click: "click",
|
|
116
|
+
touch: "touchstart",
|
|
117
|
+
pointer: "pointerdown",
|
|
118
|
+
},
|
|
119
|
+
O = {
|
|
120
|
+
hover: "mouseleave",
|
|
121
|
+
focus: "blur",
|
|
122
|
+
click: "click",
|
|
123
|
+
touch: "touchend",
|
|
124
|
+
pointer: "pointerup",
|
|
125
|
+
};
|
|
126
|
+
function ie(e, t) {
|
|
127
|
+
const o = e.indexOf(t);
|
|
128
|
+
o !== -1 && e.splice(o, 1);
|
|
129
|
+
}
|
|
130
|
+
function H() {
|
|
131
|
+
return new Promise((e) =>
|
|
132
|
+
requestAnimationFrame(() => {
|
|
133
|
+
requestAnimationFrame(e);
|
|
134
|
+
})
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
const h = [];
|
|
138
|
+
let $ = null;
|
|
139
|
+
const se = {};
|
|
140
|
+
function ne(e) {
|
|
141
|
+
let t = se[e];
|
|
142
|
+
return t || (t = se[e] = []), t;
|
|
143
|
+
}
|
|
144
|
+
let k = function () {};
|
|
145
|
+
typeof window < "u" && (k = window.Element);
|
|
146
|
+
function r(e) {
|
|
147
|
+
return function (t) {
|
|
148
|
+
return _(t.theme, e);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
const L = "__floating-vue__popper",
|
|
152
|
+
D = () =>
|
|
153
|
+
s.defineComponent({
|
|
154
|
+
name: "VPopper",
|
|
155
|
+
provide() {
|
|
156
|
+
return { [L]: { parentPopper: this } };
|
|
157
|
+
},
|
|
158
|
+
inject: { [L]: { default: null } },
|
|
159
|
+
props: {
|
|
160
|
+
theme: { type: String, required: !0 },
|
|
161
|
+
targetNodes: { type: Function, required: !0 },
|
|
162
|
+
referenceNode: { type: Function, default: null },
|
|
163
|
+
popperNode: { type: Function, required: !0 },
|
|
164
|
+
shown: { type: Boolean, default: !1 },
|
|
165
|
+
showGroup: { type: String, default: null },
|
|
166
|
+
ariaId: { default: null },
|
|
167
|
+
disabled: { type: Boolean, default: r("disabled") },
|
|
168
|
+
positioningDisabled: {
|
|
169
|
+
type: Boolean,
|
|
170
|
+
default: r("positioningDisabled"),
|
|
171
|
+
},
|
|
172
|
+
placement: {
|
|
173
|
+
type: String,
|
|
174
|
+
default: r("placement"),
|
|
175
|
+
validator: (e) => E.includes(e),
|
|
176
|
+
},
|
|
177
|
+
delay: { type: [String, Number, Object], default: r("delay") },
|
|
178
|
+
distance: { type: [Number, String], default: r("distance") },
|
|
179
|
+
skidding: { type: [Number, String], default: r("skidding") },
|
|
180
|
+
triggers: { type: Array, default: r("triggers") },
|
|
181
|
+
showTriggers: { type: [Array, Function], default: r("showTriggers") },
|
|
182
|
+
hideTriggers: { type: [Array, Function], default: r("hideTriggers") },
|
|
183
|
+
popperTriggers: { type: Array, default: r("popperTriggers") },
|
|
184
|
+
popperShowTriggers: {
|
|
185
|
+
type: [Array, Function],
|
|
186
|
+
default: r("popperShowTriggers"),
|
|
187
|
+
},
|
|
188
|
+
popperHideTriggers: {
|
|
189
|
+
type: [Array, Function],
|
|
190
|
+
default: r("popperHideTriggers"),
|
|
191
|
+
},
|
|
192
|
+
container: {
|
|
193
|
+
type: [String, Object, k, Boolean],
|
|
194
|
+
default: r("container"),
|
|
195
|
+
},
|
|
196
|
+
boundary: { type: [String, k], default: r("boundary") },
|
|
197
|
+
strategy: {
|
|
198
|
+
type: String,
|
|
199
|
+
validator: (e) => ["absolute", "fixed"].includes(e),
|
|
200
|
+
default: r("strategy"),
|
|
201
|
+
},
|
|
202
|
+
autoHide: { type: [Boolean, Function], default: r("autoHide") },
|
|
203
|
+
handleResize: { type: Boolean, default: r("handleResize") },
|
|
204
|
+
instantMove: { type: Boolean, default: r("instantMove") },
|
|
205
|
+
eagerMount: { type: Boolean, default: r("eagerMount") },
|
|
206
|
+
popperClass: {
|
|
207
|
+
type: [String, Array, Object],
|
|
208
|
+
default: r("popperClass"),
|
|
209
|
+
},
|
|
210
|
+
computeTransformOrigin: {
|
|
211
|
+
type: Boolean,
|
|
212
|
+
default: r("computeTransformOrigin"),
|
|
213
|
+
},
|
|
214
|
+
autoMinSize: { type: Boolean, default: r("autoMinSize") },
|
|
215
|
+
autoSize: { type: [Boolean, String], default: r("autoSize") },
|
|
216
|
+
autoMaxSize: { type: Boolean, default: r("autoMaxSize") },
|
|
217
|
+
autoBoundaryMaxSize: {
|
|
218
|
+
type: Boolean,
|
|
219
|
+
default: r("autoBoundaryMaxSize"),
|
|
220
|
+
},
|
|
221
|
+
preventOverflow: { type: Boolean, default: r("preventOverflow") },
|
|
222
|
+
overflowPadding: {
|
|
223
|
+
type: [Number, String],
|
|
224
|
+
default: r("overflowPadding"),
|
|
225
|
+
},
|
|
226
|
+
arrowPadding: { type: [Number, String], default: r("arrowPadding") },
|
|
227
|
+
arrowOverflow: { type: Boolean, default: r("arrowOverflow") },
|
|
228
|
+
flip: { type: Boolean, default: r("flip") },
|
|
229
|
+
shift: { type: Boolean, default: r("shift") },
|
|
230
|
+
shiftCrossAxis: { type: Boolean, default: r("shiftCrossAxis") },
|
|
231
|
+
noAutoFocus: { type: Boolean, default: r("noAutoFocus") },
|
|
232
|
+
disposeTimeout: { type: Number, default: r("disposeTimeout") },
|
|
233
|
+
},
|
|
234
|
+
emits: {
|
|
235
|
+
show: () => !0,
|
|
236
|
+
hide: () => !0,
|
|
237
|
+
"update:shown": (e) => !0,
|
|
238
|
+
"apply-show": () => !0,
|
|
239
|
+
"apply-hide": () => !0,
|
|
240
|
+
"close-group": () => !0,
|
|
241
|
+
"close-directive": () => !0,
|
|
242
|
+
"auto-hide": () => !0,
|
|
243
|
+
resize: () => !0,
|
|
244
|
+
},
|
|
245
|
+
data() {
|
|
246
|
+
return {
|
|
247
|
+
isShown: !1,
|
|
248
|
+
isMounted: !1,
|
|
249
|
+
skipTransition: !1,
|
|
250
|
+
classes: { showFrom: !1, showTo: !1, hideFrom: !1, hideTo: !0 },
|
|
251
|
+
result: {
|
|
252
|
+
x: 0,
|
|
253
|
+
y: 0,
|
|
254
|
+
placement: "",
|
|
255
|
+
strategy: this.strategy,
|
|
256
|
+
arrow: { x: 0, y: 0, centerOffset: 0 },
|
|
257
|
+
transformOrigin: null,
|
|
258
|
+
},
|
|
259
|
+
randomId: `popper_${[Math.random(), Date.now()]
|
|
260
|
+
.map((e) => e.toString(36).substring(2, 10))
|
|
261
|
+
.join("_")}`,
|
|
262
|
+
shownChildren: new Set(),
|
|
263
|
+
lastAutoHide: !0,
|
|
264
|
+
pendingHide: !1,
|
|
265
|
+
containsGlobalTarget: !1,
|
|
266
|
+
isDisposed: !0,
|
|
267
|
+
mouseDownContains: !1,
|
|
268
|
+
};
|
|
269
|
+
},
|
|
270
|
+
computed: {
|
|
271
|
+
popperId() {
|
|
272
|
+
return this.ariaId != null ? this.ariaId : this.randomId;
|
|
273
|
+
},
|
|
274
|
+
shouldMountContent() {
|
|
275
|
+
return this.eagerMount || this.isMounted;
|
|
276
|
+
},
|
|
277
|
+
slotData() {
|
|
278
|
+
return {
|
|
279
|
+
popperId: this.popperId,
|
|
280
|
+
isShown: this.isShown,
|
|
281
|
+
shouldMountContent: this.shouldMountContent,
|
|
282
|
+
skipTransition: this.skipTransition,
|
|
283
|
+
autoHide:
|
|
284
|
+
typeof this.autoHide == "function"
|
|
285
|
+
? this.lastAutoHide
|
|
286
|
+
: this.autoHide,
|
|
287
|
+
show: this.show,
|
|
288
|
+
hide: this.hide,
|
|
289
|
+
handleResize: this.handleResize,
|
|
290
|
+
onResize: this.onResize,
|
|
291
|
+
classes: { ...this.classes, popperClass: this.popperClass },
|
|
292
|
+
result: this.positioningDisabled ? null : this.result,
|
|
293
|
+
attrs: this.$attrs,
|
|
294
|
+
};
|
|
295
|
+
},
|
|
296
|
+
parentPopper() {
|
|
297
|
+
var e;
|
|
298
|
+
return (e = this[L]) == null ? void 0 : e.parentPopper;
|
|
299
|
+
},
|
|
300
|
+
hasPopperShowTriggerHover() {
|
|
301
|
+
var e, t;
|
|
302
|
+
return (
|
|
303
|
+
((e = this.popperTriggers) == null
|
|
304
|
+
? void 0
|
|
305
|
+
: e.includes("hover")) ||
|
|
306
|
+
((t = this.popperShowTriggers) == null
|
|
307
|
+
? void 0
|
|
308
|
+
: t.includes("hover"))
|
|
309
|
+
);
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
watch: {
|
|
313
|
+
shown: "$_autoShowHide",
|
|
314
|
+
disabled(e) {
|
|
315
|
+
e ? this.dispose() : this.init();
|
|
316
|
+
},
|
|
317
|
+
async container() {
|
|
318
|
+
this.isShown &&
|
|
319
|
+
(this.$_ensureTeleport(), await this.$_computePosition());
|
|
320
|
+
},
|
|
321
|
+
triggers: { handler: "$_refreshListeners", deep: !0 },
|
|
322
|
+
positioningDisabled: "$_refreshListeners",
|
|
323
|
+
...[
|
|
324
|
+
"placement",
|
|
325
|
+
"distance",
|
|
326
|
+
"skidding",
|
|
327
|
+
"boundary",
|
|
328
|
+
"strategy",
|
|
329
|
+
"overflowPadding",
|
|
330
|
+
"arrowPadding",
|
|
331
|
+
"preventOverflow",
|
|
332
|
+
"shift",
|
|
333
|
+
"shiftCrossAxis",
|
|
334
|
+
"flip",
|
|
335
|
+
].reduce((e, t) => ((e[t] = "$_computePosition"), e), {}),
|
|
336
|
+
},
|
|
337
|
+
created() {
|
|
338
|
+
this.autoMinSize &&
|
|
339
|
+
console.warn(
|
|
340
|
+
'[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'
|
|
341
|
+
),
|
|
342
|
+
this.autoMaxSize &&
|
|
343
|
+
console.warn(
|
|
344
|
+
"[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead."
|
|
345
|
+
);
|
|
346
|
+
},
|
|
347
|
+
mounted() {
|
|
348
|
+
this.init(), this.$_detachPopperNode();
|
|
349
|
+
},
|
|
350
|
+
activated() {
|
|
351
|
+
this.$_autoShowHide();
|
|
352
|
+
},
|
|
353
|
+
deactivated() {
|
|
354
|
+
this.hide();
|
|
355
|
+
},
|
|
356
|
+
beforeUnmount() {
|
|
357
|
+
this.dispose();
|
|
358
|
+
},
|
|
359
|
+
methods: {
|
|
360
|
+
show({ event: e = null, skipDelay: t = !1, force: o = !1 } = {}) {
|
|
361
|
+
var i, n;
|
|
362
|
+
((i = this.parentPopper) != null &&
|
|
363
|
+
i.lockedChild &&
|
|
364
|
+
this.parentPopper.lockedChild !== this) ||
|
|
365
|
+
((this.pendingHide = !1),
|
|
366
|
+
(o || !this.disabled) &&
|
|
367
|
+
(((n = this.parentPopper) == null ? void 0 : n.lockedChild) ===
|
|
368
|
+
this && (this.parentPopper.lockedChild = null),
|
|
369
|
+
this.$_scheduleShow(e, t),
|
|
370
|
+
this.$emit("show"),
|
|
371
|
+
(this.$_showFrameLocked = !0),
|
|
372
|
+
requestAnimationFrame(() => {
|
|
373
|
+
this.$_showFrameLocked = !1;
|
|
374
|
+
})),
|
|
375
|
+
this.$emit("update:shown", !0));
|
|
376
|
+
},
|
|
377
|
+
hide({ event: e = null, skipDelay: t = !1 } = {}) {
|
|
378
|
+
var o;
|
|
379
|
+
if (!this.$_hideInProgress) {
|
|
380
|
+
if (this.shownChildren.size > 0) {
|
|
381
|
+
this.pendingHide = !0;
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
|
|
385
|
+
this.parentPopper &&
|
|
386
|
+
((this.parentPopper.lockedChild = this),
|
|
387
|
+
clearTimeout(this.parentPopper.lockedChildTimer),
|
|
388
|
+
(this.parentPopper.lockedChildTimer = setTimeout(() => {
|
|
389
|
+
this.parentPopper.lockedChild === this &&
|
|
390
|
+
(this.parentPopper.lockedChild.hide({ skipDelay: t }),
|
|
391
|
+
(this.parentPopper.lockedChild = null));
|
|
392
|
+
}, 1e3)));
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
((o = this.parentPopper) == null ? void 0 : o.lockedChild) ===
|
|
396
|
+
this && (this.parentPopper.lockedChild = null),
|
|
397
|
+
(this.pendingHide = !1),
|
|
398
|
+
this.$_scheduleHide(e, t),
|
|
399
|
+
this.$emit("hide"),
|
|
400
|
+
this.$emit("update:shown", !1);
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
init() {
|
|
404
|
+
var e;
|
|
405
|
+
this.isDisposed &&
|
|
406
|
+
((this.isDisposed = !1),
|
|
407
|
+
(this.isMounted = !1),
|
|
408
|
+
(this.$_events = []),
|
|
409
|
+
(this.$_preventShow = !1),
|
|
410
|
+
(this.$_referenceNode =
|
|
411
|
+
((e = this.referenceNode) == null ? void 0 : e.call(this)) ??
|
|
412
|
+
this.$el),
|
|
413
|
+
(this.$_targetNodes = this.targetNodes().filter(
|
|
414
|
+
(t) => t.nodeType === t.ELEMENT_NODE
|
|
415
|
+
)),
|
|
416
|
+
(this.$_popperNode = this.popperNode()),
|
|
417
|
+
(this.$_innerNode =
|
|
418
|
+
this.$_popperNode.querySelector(".v-popper__inner")),
|
|
419
|
+
(this.$_arrowNode = this.$_popperNode.querySelector(
|
|
420
|
+
".v-popper__arrow-container"
|
|
421
|
+
)),
|
|
422
|
+
this.$_swapTargetAttrs("title", "data-original-title"),
|
|
423
|
+
this.$_detachPopperNode(),
|
|
424
|
+
this.triggers.length && this.$_addEventListeners(),
|
|
425
|
+
this.shown && this.show());
|
|
426
|
+
},
|
|
427
|
+
dispose() {
|
|
428
|
+
this.isDisposed ||
|
|
429
|
+
((this.isDisposed = !0),
|
|
430
|
+
this.$_removeEventListeners(),
|
|
431
|
+
this.hide({ skipDelay: !0 }),
|
|
432
|
+
this.$_detachPopperNode(),
|
|
433
|
+
(this.isMounted = !1),
|
|
434
|
+
(this.isShown = !1),
|
|
435
|
+
this.$_updateParentShownChildren(!1),
|
|
436
|
+
this.$_swapTargetAttrs("data-original-title", "title"));
|
|
437
|
+
},
|
|
438
|
+
async onResize() {
|
|
439
|
+
this.isShown &&
|
|
440
|
+
(await this.$_computePosition(), this.$emit("resize"));
|
|
441
|
+
},
|
|
442
|
+
async $_computePosition() {
|
|
443
|
+
if (this.isDisposed || this.positioningDisabled) return;
|
|
444
|
+
const e = { strategy: this.strategy, middleware: [] };
|
|
445
|
+
(this.distance || this.skidding) &&
|
|
446
|
+
e.middleware.push(
|
|
447
|
+
m.offset({ mainAxis: this.distance, crossAxis: this.skidding })
|
|
448
|
+
);
|
|
449
|
+
const t = this.placement.startsWith("auto");
|
|
450
|
+
if (
|
|
451
|
+
(t
|
|
452
|
+
? e.middleware.push(
|
|
453
|
+
m.autoPlacement({
|
|
454
|
+
alignment: this.placement.split("-")[1] ?? "",
|
|
455
|
+
})
|
|
456
|
+
)
|
|
457
|
+
: (e.placement = this.placement),
|
|
458
|
+
this.preventOverflow &&
|
|
459
|
+
(this.shift &&
|
|
460
|
+
e.middleware.push(
|
|
461
|
+
m.shift({
|
|
462
|
+
padding: this.overflowPadding,
|
|
463
|
+
boundary: this.boundary,
|
|
464
|
+
crossAxis: this.shiftCrossAxis,
|
|
465
|
+
})
|
|
466
|
+
),
|
|
467
|
+
!t &&
|
|
468
|
+
this.flip &&
|
|
469
|
+
e.middleware.push(
|
|
470
|
+
m.flip({
|
|
471
|
+
padding: this.overflowPadding,
|
|
472
|
+
boundary: this.boundary,
|
|
473
|
+
})
|
|
474
|
+
)),
|
|
475
|
+
e.middleware.push(
|
|
476
|
+
m.arrow({
|
|
477
|
+
element: this.$_arrowNode,
|
|
478
|
+
padding: this.arrowPadding,
|
|
479
|
+
})
|
|
480
|
+
),
|
|
481
|
+
this.arrowOverflow &&
|
|
482
|
+
e.middleware.push({
|
|
483
|
+
name: "arrowOverflow",
|
|
484
|
+
fn: ({ placement: i, rects: n, middlewareData: p }) => {
|
|
485
|
+
let a;
|
|
486
|
+
const { centerOffset: d } = p.arrow;
|
|
487
|
+
return (
|
|
488
|
+
i.startsWith("top") || i.startsWith("bottom")
|
|
489
|
+
? (a = Math.abs(d) > n.reference.width / 2)
|
|
490
|
+
: (a = Math.abs(d) > n.reference.height / 2),
|
|
491
|
+
{ data: { overflow: a } }
|
|
492
|
+
);
|
|
493
|
+
},
|
|
494
|
+
}),
|
|
495
|
+
this.autoMinSize || this.autoSize)
|
|
496
|
+
) {
|
|
497
|
+
const i = this.autoSize
|
|
498
|
+
? this.autoSize
|
|
499
|
+
: this.autoMinSize
|
|
500
|
+
? "min"
|
|
501
|
+
: null;
|
|
502
|
+
e.middleware.push({
|
|
503
|
+
name: "autoSize",
|
|
504
|
+
fn: ({ rects: n, placement: p, middlewareData: a }) => {
|
|
505
|
+
var c;
|
|
506
|
+
if ((c = a.autoSize) != null && c.skip) return {};
|
|
507
|
+
let d, f;
|
|
508
|
+
return (
|
|
509
|
+
p.startsWith("top") || p.startsWith("bottom")
|
|
510
|
+
? (d = n.reference.width)
|
|
511
|
+
: (f = n.reference.height),
|
|
512
|
+
(this.$_innerNode.style[
|
|
513
|
+
i === "min"
|
|
514
|
+
? "minWidth"
|
|
515
|
+
: i === "max"
|
|
516
|
+
? "maxWidth"
|
|
517
|
+
: "width"
|
|
518
|
+
] = d != null ? `${d}px` : null),
|
|
519
|
+
(this.$_innerNode.style[
|
|
520
|
+
i === "min"
|
|
521
|
+
? "minHeight"
|
|
522
|
+
: i === "max"
|
|
523
|
+
? "maxHeight"
|
|
524
|
+
: "height"
|
|
525
|
+
] = f != null ? `${f}px` : null),
|
|
526
|
+
{ data: { skip: !0 }, reset: { rects: !0 } }
|
|
527
|
+
);
|
|
528
|
+
},
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) &&
|
|
532
|
+
((this.$_innerNode.style.maxWidth = null),
|
|
533
|
+
(this.$_innerNode.style.maxHeight = null),
|
|
534
|
+
e.middleware.push(
|
|
535
|
+
m.size({
|
|
536
|
+
boundary: this.boundary,
|
|
537
|
+
padding: this.overflowPadding,
|
|
538
|
+
apply: ({ availableWidth: i, availableHeight: n }) => {
|
|
539
|
+
(this.$_innerNode.style.maxWidth =
|
|
540
|
+
i != null ? `${i}px` : null),
|
|
541
|
+
(this.$_innerNode.style.maxHeight =
|
|
542
|
+
n != null ? `${n}px` : null);
|
|
543
|
+
},
|
|
544
|
+
})
|
|
545
|
+
));
|
|
546
|
+
const o = await m.computePosition(
|
|
547
|
+
this.$_referenceNode,
|
|
548
|
+
this.$_popperNode,
|
|
549
|
+
e
|
|
550
|
+
);
|
|
551
|
+
Object.assign(this.result, {
|
|
552
|
+
x: o.x,
|
|
553
|
+
y: o.y,
|
|
554
|
+
placement: o.placement,
|
|
555
|
+
strategy: o.strategy,
|
|
556
|
+
arrow: {
|
|
557
|
+
...o.middlewareData.arrow,
|
|
558
|
+
...o.middlewareData.arrowOverflow,
|
|
559
|
+
},
|
|
560
|
+
});
|
|
561
|
+
},
|
|
562
|
+
$_scheduleShow(e, t = !1) {
|
|
563
|
+
if (
|
|
564
|
+
(this.$_updateParentShownChildren(!0),
|
|
565
|
+
(this.$_hideInProgress = !1),
|
|
566
|
+
clearTimeout(this.$_scheduleTimer),
|
|
567
|
+
$ && this.instantMove && $.instantMove && $ !== this.parentPopper)
|
|
568
|
+
) {
|
|
569
|
+
$.$_applyHide(!0), this.$_applyShow(!0);
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
t
|
|
573
|
+
? this.$_applyShow()
|
|
574
|
+
: (this.$_scheduleTimer = setTimeout(
|
|
575
|
+
this.$_applyShow.bind(this),
|
|
576
|
+
this.$_computeDelay("show")
|
|
577
|
+
));
|
|
578
|
+
},
|
|
579
|
+
$_scheduleHide(e, t = !1) {
|
|
580
|
+
if (this.shownChildren.size > 0) {
|
|
581
|
+
this.pendingHide = !0;
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
this.$_updateParentShownChildren(!1),
|
|
585
|
+
(this.$_hideInProgress = !0),
|
|
586
|
+
clearTimeout(this.$_scheduleTimer),
|
|
587
|
+
this.isShown && ($ = this),
|
|
588
|
+
t
|
|
589
|
+
? this.$_applyHide()
|
|
590
|
+
: (this.$_scheduleTimer = setTimeout(
|
|
591
|
+
this.$_applyHide.bind(this),
|
|
592
|
+
this.$_computeDelay("hide")
|
|
593
|
+
));
|
|
594
|
+
},
|
|
595
|
+
$_computeDelay(e) {
|
|
596
|
+
const t = this.delay;
|
|
597
|
+
return parseInt((t && t[e]) || t || 0);
|
|
598
|
+
},
|
|
599
|
+
async $_applyShow(e = !1) {
|
|
600
|
+
clearTimeout(this.$_disposeTimer),
|
|
601
|
+
clearTimeout(this.$_scheduleTimer),
|
|
602
|
+
(this.skipTransition = e),
|
|
603
|
+
!this.isShown &&
|
|
604
|
+
(this.$_ensureTeleport(),
|
|
605
|
+
await H(),
|
|
606
|
+
await this.$_computePosition(),
|
|
607
|
+
await this.$_applyShowEffect(),
|
|
608
|
+
this.positioningDisabled ||
|
|
609
|
+
this.$_registerEventListeners(
|
|
610
|
+
[
|
|
611
|
+
...m.getOverflowAncestors(this.$_referenceNode),
|
|
612
|
+
...m.getOverflowAncestors(this.$_popperNode),
|
|
613
|
+
],
|
|
614
|
+
"scroll",
|
|
615
|
+
() => {
|
|
616
|
+
this.$_computePosition();
|
|
617
|
+
}
|
|
618
|
+
));
|
|
619
|
+
},
|
|
620
|
+
async $_applyShowEffect() {
|
|
621
|
+
if (this.$_hideInProgress) return;
|
|
622
|
+
if (this.computeTransformOrigin) {
|
|
623
|
+
const t = this.$_referenceNode.getBoundingClientRect(),
|
|
624
|
+
o = this.$_popperNode.querySelector(".v-popper__wrapper"),
|
|
625
|
+
i = o.parentNode.getBoundingClientRect(),
|
|
626
|
+
n = t.x + t.width / 2 - (i.left + o.offsetLeft),
|
|
627
|
+
p = t.y + t.height / 2 - (i.top + o.offsetTop);
|
|
628
|
+
this.result.transformOrigin = `${n}px ${p}px`;
|
|
629
|
+
}
|
|
630
|
+
(this.isShown = !0),
|
|
631
|
+
this.$_applyAttrsToTarget({
|
|
632
|
+
"aria-describedby": this.popperId,
|
|
633
|
+
"data-popper-shown": "",
|
|
634
|
+
});
|
|
635
|
+
const e = this.showGroup;
|
|
636
|
+
if (e) {
|
|
637
|
+
let t;
|
|
638
|
+
for (let o = 0; o < h.length; o++)
|
|
639
|
+
(t = h[o]),
|
|
640
|
+
t.showGroup !== e && (t.hide(), t.$emit("close-group"));
|
|
641
|
+
}
|
|
642
|
+
h.push(this), document.body.classList.add("v-popper--some-open");
|
|
643
|
+
for (const t of te(this.theme))
|
|
644
|
+
ne(t).push(this),
|
|
645
|
+
document.body.classList.add(`v-popper--some-open--${t}`);
|
|
646
|
+
this.$emit("apply-show"),
|
|
647
|
+
(this.classes.showFrom = !0),
|
|
648
|
+
(this.classes.showTo = !1),
|
|
649
|
+
(this.classes.hideFrom = !1),
|
|
650
|
+
(this.classes.hideTo = !1),
|
|
651
|
+
await H(),
|
|
652
|
+
(this.classes.showFrom = !1),
|
|
653
|
+
(this.classes.showTo = !0),
|
|
654
|
+
this.noAutoFocus || this.$_popperNode.focus();
|
|
655
|
+
},
|
|
656
|
+
async $_applyHide(e = !1) {
|
|
657
|
+
if (this.shownChildren.size > 0) {
|
|
658
|
+
(this.pendingHide = !0), (this.$_hideInProgress = !1);
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
if ((clearTimeout(this.$_scheduleTimer), !this.isShown)) return;
|
|
662
|
+
(this.skipTransition = e),
|
|
663
|
+
ie(h, this),
|
|
664
|
+
h.length === 0 &&
|
|
665
|
+
document.body.classList.remove("v-popper--some-open");
|
|
666
|
+
for (const o of te(this.theme)) {
|
|
667
|
+
const i = ne(o);
|
|
668
|
+
ie(i, this),
|
|
669
|
+
i.length === 0 &&
|
|
670
|
+
document.body.classList.remove(`v-popper--some-open--${o}`);
|
|
671
|
+
}
|
|
672
|
+
$ === this && ($ = null),
|
|
673
|
+
(this.isShown = !1),
|
|
674
|
+
this.$_applyAttrsToTarget({
|
|
675
|
+
"aria-describedby": void 0,
|
|
676
|
+
"data-popper-shown": void 0,
|
|
677
|
+
}),
|
|
678
|
+
clearTimeout(this.$_disposeTimer);
|
|
679
|
+
const t = this.disposeTimeout;
|
|
680
|
+
t !== null &&
|
|
681
|
+
(this.$_disposeTimer = setTimeout(() => {
|
|
682
|
+
this.$_popperNode &&
|
|
683
|
+
(this.$_detachPopperNode(), (this.isMounted = !1));
|
|
684
|
+
}, t)),
|
|
685
|
+
this.$_removeEventListeners("scroll"),
|
|
686
|
+
this.$emit("apply-hide"),
|
|
687
|
+
(this.classes.showFrom = !1),
|
|
688
|
+
(this.classes.showTo = !1),
|
|
689
|
+
(this.classes.hideFrom = !0),
|
|
690
|
+
(this.classes.hideTo = !1),
|
|
691
|
+
await H(),
|
|
692
|
+
(this.classes.hideFrom = !1),
|
|
693
|
+
(this.classes.hideTo = !0);
|
|
694
|
+
},
|
|
695
|
+
$_autoShowHide() {
|
|
696
|
+
this.shown ? this.show() : this.hide();
|
|
697
|
+
},
|
|
698
|
+
$_ensureTeleport() {
|
|
699
|
+
if (this.isDisposed) return;
|
|
700
|
+
let e = this.container;
|
|
701
|
+
if (
|
|
702
|
+
(typeof e == "string"
|
|
703
|
+
? (e = window.document.querySelector(e))
|
|
704
|
+
: e === !1 && (e = this.$_targetNodes[0].parentNode),
|
|
705
|
+
!e)
|
|
706
|
+
)
|
|
707
|
+
throw new Error("No container for popover: " + this.container);
|
|
708
|
+
e.appendChild(this.$_popperNode), (this.isMounted = !0);
|
|
709
|
+
},
|
|
710
|
+
$_addEventListeners() {
|
|
711
|
+
const e = (o) => {
|
|
712
|
+
(this.isShown && !this.$_hideInProgress) ||
|
|
713
|
+
((o.usedByTooltip = !0),
|
|
714
|
+
!this.$_preventShow && this.show({ event: o }));
|
|
715
|
+
};
|
|
716
|
+
this.$_registerTriggerListeners(
|
|
717
|
+
this.$_targetNodes,
|
|
718
|
+
M,
|
|
719
|
+
this.triggers,
|
|
720
|
+
this.showTriggers,
|
|
721
|
+
e
|
|
722
|
+
),
|
|
723
|
+
this.$_registerTriggerListeners(
|
|
724
|
+
[this.$_popperNode],
|
|
725
|
+
M,
|
|
726
|
+
this.popperTriggers,
|
|
727
|
+
this.popperShowTriggers,
|
|
728
|
+
e
|
|
729
|
+
);
|
|
730
|
+
const t = (o) => {
|
|
731
|
+
o.usedByTooltip || this.hide({ event: o });
|
|
732
|
+
};
|
|
733
|
+
this.$_registerTriggerListeners(
|
|
734
|
+
this.$_targetNodes,
|
|
735
|
+
O,
|
|
736
|
+
this.triggers,
|
|
737
|
+
this.hideTriggers,
|
|
738
|
+
t
|
|
739
|
+
),
|
|
740
|
+
this.$_registerTriggerListeners(
|
|
741
|
+
[this.$_popperNode],
|
|
742
|
+
O,
|
|
743
|
+
this.popperTriggers,
|
|
744
|
+
this.popperHideTriggers,
|
|
745
|
+
t
|
|
746
|
+
);
|
|
747
|
+
},
|
|
748
|
+
$_registerEventListeners(e, t, o) {
|
|
749
|
+
this.$_events.push({ targetNodes: e, eventType: t, handler: o }),
|
|
750
|
+
e.forEach((i) =>
|
|
751
|
+
i.addEventListener(t, o, y ? { passive: !0 } : void 0)
|
|
752
|
+
);
|
|
753
|
+
},
|
|
754
|
+
$_registerTriggerListeners(e, t, o, i, n) {
|
|
755
|
+
let p = o;
|
|
756
|
+
i != null && (p = typeof i == "function" ? i(p) : i),
|
|
757
|
+
p.forEach((a) => {
|
|
758
|
+
const d = t[a];
|
|
759
|
+
d && this.$_registerEventListeners(e, d, n);
|
|
760
|
+
});
|
|
761
|
+
},
|
|
762
|
+
$_removeEventListeners(e) {
|
|
763
|
+
const t = [];
|
|
764
|
+
this.$_events.forEach((o) => {
|
|
765
|
+
const { targetNodes: i, eventType: n, handler: p } = o;
|
|
766
|
+
!e || e === n
|
|
767
|
+
? i.forEach((a) => a.removeEventListener(n, p))
|
|
768
|
+
: t.push(o);
|
|
769
|
+
}),
|
|
770
|
+
(this.$_events = t);
|
|
771
|
+
},
|
|
772
|
+
$_refreshListeners() {
|
|
773
|
+
this.isDisposed ||
|
|
774
|
+
(this.$_removeEventListeners(), this.$_addEventListeners());
|
|
775
|
+
},
|
|
776
|
+
$_handleGlobalClose(e, t = !1) {
|
|
777
|
+
this.$_showFrameLocked ||
|
|
778
|
+
(this.hide({ event: e }),
|
|
779
|
+
e.closePopover
|
|
780
|
+
? this.$emit("close-directive")
|
|
781
|
+
: this.$emit("auto-hide"),
|
|
782
|
+
t &&
|
|
783
|
+
((this.$_preventShow = !0),
|
|
784
|
+
setTimeout(() => {
|
|
785
|
+
this.$_preventShow = !1;
|
|
786
|
+
}, 300)));
|
|
787
|
+
},
|
|
788
|
+
$_detachPopperNode() {
|
|
789
|
+
this.$_popperNode.parentNode &&
|
|
790
|
+
this.$_popperNode.parentNode.removeChild(this.$_popperNode);
|
|
791
|
+
},
|
|
792
|
+
$_swapTargetAttrs(e, t) {
|
|
793
|
+
for (const o of this.$_targetNodes) {
|
|
794
|
+
const i = o.getAttribute(e);
|
|
795
|
+
i && (o.removeAttribute(e), o.setAttribute(t, i));
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
$_applyAttrsToTarget(e) {
|
|
799
|
+
for (const t of this.$_targetNodes)
|
|
800
|
+
for (const o in e) {
|
|
801
|
+
const i = e[o];
|
|
802
|
+
i == null ? t.removeAttribute(o) : t.setAttribute(o, i);
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
$_updateParentShownChildren(e) {
|
|
806
|
+
let t = this.parentPopper;
|
|
807
|
+
for (; t; )
|
|
808
|
+
e
|
|
809
|
+
? t.shownChildren.add(this.randomId)
|
|
810
|
+
: (t.shownChildren.delete(this.randomId),
|
|
811
|
+
t.pendingHide && t.hide()),
|
|
812
|
+
(t = t.parentPopper);
|
|
813
|
+
},
|
|
814
|
+
$_isAimingPopper() {
|
|
815
|
+
const e = this.$_referenceNode.getBoundingClientRect();
|
|
816
|
+
if (v >= e.left && v <= e.right && T >= e.top && T <= e.bottom) {
|
|
817
|
+
const t = this.$_popperNode.getBoundingClientRect(),
|
|
818
|
+
o = v - g,
|
|
819
|
+
i = T - w,
|
|
820
|
+
p =
|
|
821
|
+
t.left +
|
|
822
|
+
t.width / 2 -
|
|
823
|
+
g +
|
|
824
|
+
(t.top + t.height / 2) -
|
|
825
|
+
w +
|
|
826
|
+
t.width +
|
|
827
|
+
t.height,
|
|
828
|
+
a = g + o * p,
|
|
829
|
+
d = w + i * p;
|
|
830
|
+
return (
|
|
831
|
+
C(g, w, a, d, t.left, t.top, t.left, t.bottom) ||
|
|
832
|
+
C(g, w, a, d, t.left, t.top, t.right, t.top) ||
|
|
833
|
+
C(g, w, a, d, t.right, t.top, t.right, t.bottom) ||
|
|
834
|
+
C(g, w, a, d, t.left, t.bottom, t.right, t.bottom)
|
|
835
|
+
);
|
|
836
|
+
}
|
|
837
|
+
return !1;
|
|
838
|
+
},
|
|
839
|
+
},
|
|
840
|
+
render() {
|
|
841
|
+
return this.$slots.default(this.slotData);
|
|
842
|
+
},
|
|
843
|
+
});
|
|
844
|
+
if (typeof document < "u" && typeof window < "u") {
|
|
845
|
+
if (oe) {
|
|
846
|
+
const e = y ? { passive: !0, capture: !0 } : !0;
|
|
847
|
+
document.addEventListener("touchstart", (t) => re(t, !0), e),
|
|
848
|
+
document.addEventListener("touchend", (t) => pe(t, !0), e);
|
|
849
|
+
} else
|
|
850
|
+
window.addEventListener("mousedown", (e) => re(e, !1), !0),
|
|
851
|
+
window.addEventListener("click", (e) => pe(e, !1), !0);
|
|
852
|
+
window.addEventListener("resize", le);
|
|
853
|
+
}
|
|
854
|
+
function re(e, t) {
|
|
855
|
+
if (u.autoHideOnMousedown) ae(e, t);
|
|
856
|
+
else
|
|
857
|
+
for (let o = 0; o < h.length; o++) {
|
|
858
|
+
const i = h[o];
|
|
859
|
+
try {
|
|
860
|
+
i.mouseDownContains = i.popperNode().contains(e.target);
|
|
861
|
+
} catch {}
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
function pe(e, t) {
|
|
865
|
+
u.autoHideOnMousedown || ae(e, t);
|
|
866
|
+
}
|
|
867
|
+
function ae(e, t) {
|
|
868
|
+
const o = {};
|
|
869
|
+
for (let i = h.length - 1; i >= 0; i--) {
|
|
870
|
+
const n = h[i];
|
|
871
|
+
try {
|
|
872
|
+
const p = (n.containsGlobalTarget =
|
|
873
|
+
n.mouseDownContains || n.popperNode().contains(e.target));
|
|
874
|
+
(n.pendingHide = !1),
|
|
875
|
+
requestAnimationFrame(() => {
|
|
876
|
+
if (((n.pendingHide = !1), !o[n.randomId] && de(n, p, e))) {
|
|
877
|
+
if (
|
|
878
|
+
(n.$_handleGlobalClose(e, t),
|
|
879
|
+
!e.closeAllPopover && e.closePopover && p)
|
|
880
|
+
) {
|
|
881
|
+
let d = n.parentPopper;
|
|
882
|
+
for (; d; ) (o[d.randomId] = !0), (d = d.parentPopper);
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
let a = n.parentPopper;
|
|
886
|
+
for (; a && de(a, a.containsGlobalTarget, e); ) {
|
|
887
|
+
a.$_handleGlobalClose(e, t);
|
|
888
|
+
a = a.parentPopper;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
} catch {}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
function de(e, t, o) {
|
|
896
|
+
return o.closeAllPopover || (o.closePopover && t) || (be(e, o) && !t);
|
|
897
|
+
}
|
|
898
|
+
function be(e, t) {
|
|
899
|
+
if (typeof e.autoHide == "function") {
|
|
900
|
+
const o = e.autoHide(t);
|
|
901
|
+
return (e.lastAutoHide = o), o;
|
|
902
|
+
}
|
|
903
|
+
return e.autoHide;
|
|
904
|
+
}
|
|
905
|
+
function le() {
|
|
906
|
+
for (let e = 0; e < h.length; e++) h[e].$_computePosition();
|
|
907
|
+
}
|
|
908
|
+
function Ne() {
|
|
909
|
+
for (let e = 0; e < h.length; e++) h[e].hide();
|
|
910
|
+
}
|
|
911
|
+
let g = 0,
|
|
912
|
+
w = 0,
|
|
913
|
+
v = 0,
|
|
914
|
+
T = 0;
|
|
915
|
+
typeof window < "u" &&
|
|
916
|
+
window.addEventListener(
|
|
917
|
+
"mousemove",
|
|
918
|
+
(e) => {
|
|
919
|
+
(g = v), (w = T), (v = e.clientX), (T = e.clientY);
|
|
920
|
+
},
|
|
921
|
+
y ? { passive: !0 } : void 0
|
|
922
|
+
);
|
|
923
|
+
function C(e, t, o, i, n, p, a, d) {
|
|
924
|
+
const f =
|
|
925
|
+
((a - n) * (t - p) - (d - p) * (e - n)) /
|
|
926
|
+
((d - p) * (o - e) - (a - n) * (i - t)),
|
|
927
|
+
c =
|
|
928
|
+
((o - e) * (t - p) - (i - t) * (e - n)) /
|
|
929
|
+
((d - p) * (o - e) - (a - n) * (i - t));
|
|
930
|
+
return f >= 0 && f <= 1 && c >= 0 && c <= 1;
|
|
931
|
+
}
|
|
932
|
+
const ze = { extends: D() },
|
|
933
|
+
b = (e, t) => {
|
|
934
|
+
const o = e.__vccOpts || e;
|
|
935
|
+
for (const [i, n] of t) o[i] = n;
|
|
936
|
+
return o;
|
|
937
|
+
};
|
|
938
|
+
function Ae(e, t, o, i, n, p) {
|
|
939
|
+
return (
|
|
940
|
+
s.openBlock(),
|
|
941
|
+
s.createElementBlock(
|
|
942
|
+
"div",
|
|
943
|
+
{
|
|
944
|
+
ref: "reference",
|
|
945
|
+
class: s.normalizeClass([
|
|
946
|
+
"v-popper",
|
|
947
|
+
{ "v-popper--shown": e.slotData.isShown },
|
|
948
|
+
]),
|
|
949
|
+
},
|
|
950
|
+
[
|
|
951
|
+
s.renderSlot(
|
|
952
|
+
e.$slots,
|
|
953
|
+
"default",
|
|
954
|
+
s.normalizeProps(s.guardReactiveProps(e.slotData))
|
|
955
|
+
),
|
|
956
|
+
],
|
|
957
|
+
2
|
|
958
|
+
)
|
|
959
|
+
);
|
|
960
|
+
}
|
|
961
|
+
const Be = b(ze, [["render", Ae]]);
|
|
962
|
+
function Ee() {
|
|
963
|
+
var e = window.navigator.userAgent,
|
|
964
|
+
t = e.indexOf("MSIE ");
|
|
965
|
+
if (t > 0) return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
966
|
+
var o = e.indexOf("Trident/");
|
|
967
|
+
if (o > 0) {
|
|
968
|
+
var i = e.indexOf("rv:");
|
|
969
|
+
return parseInt(e.substring(i + 3, e.indexOf(".", i)), 10);
|
|
970
|
+
}
|
|
971
|
+
var n = e.indexOf("Edge/");
|
|
972
|
+
return n > 0 ? parseInt(e.substring(n + 5, e.indexOf(".", n)), 10) : -1;
|
|
973
|
+
}
|
|
974
|
+
let N;
|
|
975
|
+
function I() {
|
|
976
|
+
I.init || ((I.init = !0), (N = Ee() !== -1));
|
|
977
|
+
}
|
|
978
|
+
var z = {
|
|
979
|
+
name: "ResizeObserver",
|
|
980
|
+
props: {
|
|
981
|
+
emitOnMount: { type: Boolean, default: !1 },
|
|
982
|
+
ignoreWidth: { type: Boolean, default: !1 },
|
|
983
|
+
ignoreHeight: { type: Boolean, default: !1 },
|
|
984
|
+
},
|
|
985
|
+
emits: ["notify"],
|
|
986
|
+
mounted() {
|
|
987
|
+
I(),
|
|
988
|
+
s.nextTick(() => {
|
|
989
|
+
(this._w = this.$el.offsetWidth),
|
|
990
|
+
(this._h = this.$el.offsetHeight),
|
|
991
|
+
this.emitOnMount && this.emitSize();
|
|
992
|
+
});
|
|
993
|
+
const e = document.createElement("object");
|
|
994
|
+
(this._resizeObject = e),
|
|
995
|
+
e.setAttribute("aria-hidden", "true"),
|
|
996
|
+
e.setAttribute("tabindex", -1),
|
|
997
|
+
(e.onload = this.addResizeHandlers),
|
|
998
|
+
(e.type = "text/html"),
|
|
999
|
+
N && this.$el.appendChild(e),
|
|
1000
|
+
(e.data = "about:blank"),
|
|
1001
|
+
N || this.$el.appendChild(e);
|
|
1002
|
+
},
|
|
1003
|
+
beforeUnmount() {
|
|
1004
|
+
this.removeResizeHandlers();
|
|
1005
|
+
},
|
|
1006
|
+
methods: {
|
|
1007
|
+
compareAndNotify() {
|
|
1008
|
+
((!this.ignoreWidth && this._w !== this.$el.offsetWidth) ||
|
|
1009
|
+
(!this.ignoreHeight && this._h !== this.$el.offsetHeight)) &&
|
|
1010
|
+
((this._w = this.$el.offsetWidth),
|
|
1011
|
+
(this._h = this.$el.offsetHeight),
|
|
1012
|
+
this.emitSize());
|
|
1013
|
+
},
|
|
1014
|
+
emitSize() {
|
|
1015
|
+
this.$emit("notify", { width: this._w, height: this._h });
|
|
1016
|
+
},
|
|
1017
|
+
addResizeHandlers() {
|
|
1018
|
+
this._resizeObject.contentDocument.defaultView.addEventListener(
|
|
1019
|
+
"resize",
|
|
1020
|
+
this.compareAndNotify
|
|
1021
|
+
),
|
|
1022
|
+
this.compareAndNotify();
|
|
1023
|
+
},
|
|
1024
|
+
removeResizeHandlers() {
|
|
1025
|
+
this._resizeObject &&
|
|
1026
|
+
this._resizeObject.onload &&
|
|
1027
|
+
(!N &&
|
|
1028
|
+
this._resizeObject.contentDocument &&
|
|
1029
|
+
this._resizeObject.contentDocument.defaultView.removeEventListener(
|
|
1030
|
+
"resize",
|
|
1031
|
+
this.compareAndNotify
|
|
1032
|
+
),
|
|
1033
|
+
this.$el.removeChild(this._resizeObject),
|
|
1034
|
+
(this._resizeObject.onload = null),
|
|
1035
|
+
(this._resizeObject = null));
|
|
1036
|
+
},
|
|
1037
|
+
},
|
|
1038
|
+
};
|
|
1039
|
+
const Me = s.withScopeId("data-v-b329ee4c");
|
|
1040
|
+
s.pushScopeId("data-v-b329ee4c");
|
|
1041
|
+
const Oe = { class: "resize-observer", tabindex: "-1" };
|
|
1042
|
+
s.popScopeId();
|
|
1043
|
+
const He = Me(
|
|
1044
|
+
(e, t, o, i, n, p) => (s.openBlock(), s.createBlock("div", Oe))
|
|
1045
|
+
);
|
|
1046
|
+
(z.render = He),
|
|
1047
|
+
(z.__scopeId = "data-v-b329ee4c"),
|
|
1048
|
+
(z.__file = "src/components/ResizeObserver.vue");
|
|
1049
|
+
const F = (e = "theme") => ({
|
|
1050
|
+
computed: {
|
|
1051
|
+
themeClass() {
|
|
1052
|
+
return Ce(this[e]);
|
|
1053
|
+
},
|
|
1054
|
+
},
|
|
1055
|
+
}),
|
|
1056
|
+
ke = s.defineComponent({
|
|
1057
|
+
name: "VPopperContent",
|
|
1058
|
+
components: { ResizeObserver: z },
|
|
1059
|
+
mixins: [F()],
|
|
1060
|
+
props: {
|
|
1061
|
+
popperId: String,
|
|
1062
|
+
theme: String,
|
|
1063
|
+
shown: Boolean,
|
|
1064
|
+
mounted: Boolean,
|
|
1065
|
+
skipTransition: Boolean,
|
|
1066
|
+
autoHide: Boolean,
|
|
1067
|
+
handleResize: Boolean,
|
|
1068
|
+
classes: Object,
|
|
1069
|
+
result: Object,
|
|
1070
|
+
},
|
|
1071
|
+
emits: ["hide", "resize"],
|
|
1072
|
+
methods: {
|
|
1073
|
+
toPx(e) {
|
|
1074
|
+
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
1075
|
+
},
|
|
1076
|
+
},
|
|
1077
|
+
}),
|
|
1078
|
+
Le = ["id", "aria-hidden", "tabindex", "data-popper-placement"],
|
|
1079
|
+
De = { ref: "inner", class: "v-popper__inner" },
|
|
1080
|
+
Ie = [
|
|
1081
|
+
s.createElementVNode("div", { class: "v-popper__arrow-outer" }, null, -1),
|
|
1082
|
+
s.createElementVNode("div", { class: "v-popper__arrow-inner" }, null, -1),
|
|
1083
|
+
];
|
|
1084
|
+
function Fe(e, t, o, i, n, p) {
|
|
1085
|
+
const a = s.resolveComponent("ResizeObserver");
|
|
1086
|
+
return (
|
|
1087
|
+
s.openBlock(),
|
|
1088
|
+
s.createElementBlock(
|
|
1089
|
+
"div",
|
|
1090
|
+
{
|
|
1091
|
+
id: e.popperId,
|
|
1092
|
+
ref: "popover",
|
|
1093
|
+
class: s.normalizeClass([
|
|
1094
|
+
"v-popper__popper",
|
|
1095
|
+
[
|
|
1096
|
+
e.themeClass,
|
|
1097
|
+
e.classes.popperClass,
|
|
1098
|
+
{
|
|
1099
|
+
"v-popper__popper--shown": e.shown,
|
|
1100
|
+
"v-popper__popper--hidden": !e.shown,
|
|
1101
|
+
"v-popper__popper--show-from": e.classes.showFrom,
|
|
1102
|
+
"v-popper__popper--show-to": e.classes.showTo,
|
|
1103
|
+
"v-popper__popper--hide-from": e.classes.hideFrom,
|
|
1104
|
+
"v-popper__popper--hide-to": e.classes.hideTo,
|
|
1105
|
+
"v-popper__popper--skip-transition": e.skipTransition,
|
|
1106
|
+
"v-popper__popper--arrow-overflow":
|
|
1107
|
+
e.result && e.result.arrow.overflow,
|
|
1108
|
+
"v-popper__popper--no-positioning": !e.result,
|
|
1109
|
+
},
|
|
1110
|
+
],
|
|
1111
|
+
]),
|
|
1112
|
+
style: s.normalizeStyle(
|
|
1113
|
+
e.result
|
|
1114
|
+
? {
|
|
1115
|
+
position: e.result.strategy,
|
|
1116
|
+
transform: `translate3d(${Math.round(
|
|
1117
|
+
e.result.x
|
|
1118
|
+
)}px,${Math.round(e.result.y)}px,0)`,
|
|
1119
|
+
}
|
|
1120
|
+
: void 0
|
|
1121
|
+
),
|
|
1122
|
+
"aria-hidden": e.shown ? "false" : "true",
|
|
1123
|
+
tabindex: e.autoHide ? 0 : void 0,
|
|
1124
|
+
"data-popper-placement": e.result ? e.result.placement : void 0,
|
|
1125
|
+
onKeyup:
|
|
1126
|
+
t[2] ||
|
|
1127
|
+
(t[2] = s.withKeys((d) => e.autoHide && e.$emit("hide"), ["esc"])),
|
|
1128
|
+
},
|
|
1129
|
+
[
|
|
1130
|
+
s.createElementVNode("div", {
|
|
1131
|
+
class: "v-popper__backdrop",
|
|
1132
|
+
onClick: t[0] || (t[0] = (d) => e.autoHide && e.$emit("hide")),
|
|
1133
|
+
}),
|
|
1134
|
+
s.createElementVNode(
|
|
1135
|
+
"div",
|
|
1136
|
+
{
|
|
1137
|
+
class: "v-popper__wrapper",
|
|
1138
|
+
style: s.normalizeStyle(
|
|
1139
|
+
e.result
|
|
1140
|
+
? { transformOrigin: e.result.transformOrigin }
|
|
1141
|
+
: void 0
|
|
1142
|
+
),
|
|
1143
|
+
},
|
|
1144
|
+
[
|
|
1145
|
+
s.createElementVNode(
|
|
1146
|
+
"div",
|
|
1147
|
+
De,
|
|
1148
|
+
[
|
|
1149
|
+
e.mounted
|
|
1150
|
+
? (s.openBlock(),
|
|
1151
|
+
s.createElementBlock(
|
|
1152
|
+
s.Fragment,
|
|
1153
|
+
{ key: 0 },
|
|
1154
|
+
[
|
|
1155
|
+
s.createElementVNode("div", null, [
|
|
1156
|
+
s.renderSlot(e.$slots, "default"),
|
|
1157
|
+
]),
|
|
1158
|
+
e.handleResize
|
|
1159
|
+
? (s.openBlock(),
|
|
1160
|
+
s.createBlock(a, {
|
|
1161
|
+
key: 0,
|
|
1162
|
+
onNotify:
|
|
1163
|
+
t[1] || (t[1] = (d) => e.$emit("resize", d)),
|
|
1164
|
+
}))
|
|
1165
|
+
: s.createCommentVNode("", !0),
|
|
1166
|
+
],
|
|
1167
|
+
64
|
|
1168
|
+
))
|
|
1169
|
+
: s.createCommentVNode("", !0),
|
|
1170
|
+
],
|
|
1171
|
+
512
|
|
1172
|
+
),
|
|
1173
|
+
s.createElementVNode(
|
|
1174
|
+
"div",
|
|
1175
|
+
{
|
|
1176
|
+
ref: "arrow",
|
|
1177
|
+
class: "v-popper__arrow-container",
|
|
1178
|
+
style: s.normalizeStyle(
|
|
1179
|
+
e.result
|
|
1180
|
+
? {
|
|
1181
|
+
left: e.toPx(e.result.arrow.x),
|
|
1182
|
+
top: e.toPx(e.result.arrow.y),
|
|
1183
|
+
}
|
|
1184
|
+
: void 0
|
|
1185
|
+
),
|
|
1186
|
+
},
|
|
1187
|
+
Ie,
|
|
1188
|
+
4
|
|
1189
|
+
),
|
|
1190
|
+
],
|
|
1191
|
+
4
|
|
1192
|
+
),
|
|
1193
|
+
],
|
|
1194
|
+
46,
|
|
1195
|
+
Le
|
|
1196
|
+
)
|
|
1197
|
+
);
|
|
1198
|
+
}
|
|
1199
|
+
const R = b(ke, [["render", Fe]]),
|
|
1200
|
+
V = {
|
|
1201
|
+
methods: {
|
|
1202
|
+
show(...e) {
|
|
1203
|
+
return this.$refs.popper.show(...e);
|
|
1204
|
+
},
|
|
1205
|
+
hide(...e) {
|
|
1206
|
+
return this.$refs.popper.hide(...e);
|
|
1207
|
+
},
|
|
1208
|
+
dispose(...e) {
|
|
1209
|
+
return this.$refs.popper.dispose(...e);
|
|
1210
|
+
},
|
|
1211
|
+
onResize(...e) {
|
|
1212
|
+
return this.$refs.popper.onResize(...e);
|
|
1213
|
+
},
|
|
1214
|
+
},
|
|
1215
|
+
};
|
|
1216
|
+
let j = function () {};
|
|
1217
|
+
typeof window < "u" && (j = window.Element);
|
|
1218
|
+
const Re = s.defineComponent({
|
|
1219
|
+
name: "VPopperWrapper",
|
|
1220
|
+
components: { Popper: Be, PopperContent: R },
|
|
1221
|
+
mixins: [V, F("finalTheme")],
|
|
1222
|
+
props: {
|
|
1223
|
+
theme: { type: String, default: null },
|
|
1224
|
+
referenceNode: { type: Function, default: null },
|
|
1225
|
+
shown: { type: Boolean, default: !1 },
|
|
1226
|
+
showGroup: { type: String, default: null },
|
|
1227
|
+
ariaId: { default: null },
|
|
1228
|
+
disabled: { type: Boolean, default: void 0 },
|
|
1229
|
+
positioningDisabled: { type: Boolean, default: void 0 },
|
|
1230
|
+
placement: { type: String, default: void 0 },
|
|
1231
|
+
delay: { type: [String, Number, Object], default: void 0 },
|
|
1232
|
+
distance: { type: [Number, String], default: void 0 },
|
|
1233
|
+
skidding: { type: [Number, String], default: void 0 },
|
|
1234
|
+
triggers: { type: Array, default: void 0 },
|
|
1235
|
+
showTriggers: { type: [Array, Function], default: void 0 },
|
|
1236
|
+
hideTriggers: { type: [Array, Function], default: void 0 },
|
|
1237
|
+
popperTriggers: { type: Array, default: void 0 },
|
|
1238
|
+
popperShowTriggers: { type: [Array, Function], default: void 0 },
|
|
1239
|
+
popperHideTriggers: { type: [Array, Function], default: void 0 },
|
|
1240
|
+
container: { type: [String, Object, j, Boolean], default: void 0 },
|
|
1241
|
+
boundary: { type: [String, j], default: void 0 },
|
|
1242
|
+
strategy: { type: String, default: void 0 },
|
|
1243
|
+
autoHide: { type: [Boolean, Function], default: void 0 },
|
|
1244
|
+
handleResize: { type: Boolean, default: void 0 },
|
|
1245
|
+
instantMove: { type: Boolean, default: void 0 },
|
|
1246
|
+
eagerMount: { type: Boolean, default: void 0 },
|
|
1247
|
+
popperClass: { type: [String, Array, Object], default: void 0 },
|
|
1248
|
+
computeTransformOrigin: { type: Boolean, default: void 0 },
|
|
1249
|
+
autoMinSize: { type: Boolean, default: void 0 },
|
|
1250
|
+
autoSize: { type: [Boolean, String], default: void 0 },
|
|
1251
|
+
autoMaxSize: { type: Boolean, default: void 0 },
|
|
1252
|
+
autoBoundaryMaxSize: { type: Boolean, default: void 0 },
|
|
1253
|
+
preventOverflow: { type: Boolean, default: void 0 },
|
|
1254
|
+
overflowPadding: { type: [Number, String], default: void 0 },
|
|
1255
|
+
arrowPadding: { type: [Number, String], default: void 0 },
|
|
1256
|
+
arrowOverflow: { type: Boolean, default: void 0 },
|
|
1257
|
+
flip: { type: Boolean, default: void 0 },
|
|
1258
|
+
shift: { type: Boolean, default: void 0 },
|
|
1259
|
+
shiftCrossAxis: { type: Boolean, default: void 0 },
|
|
1260
|
+
noAutoFocus: { type: Boolean, default: void 0 },
|
|
1261
|
+
disposeTimeout: { type: Number, default: void 0 },
|
|
1262
|
+
},
|
|
1263
|
+
emits: {
|
|
1264
|
+
show: () => !0,
|
|
1265
|
+
hide: () => !0,
|
|
1266
|
+
"update:shown": (e) => !0,
|
|
1267
|
+
"apply-show": () => !0,
|
|
1268
|
+
"apply-hide": () => !0,
|
|
1269
|
+
"close-group": () => !0,
|
|
1270
|
+
"close-directive": () => !0,
|
|
1271
|
+
"auto-hide": () => !0,
|
|
1272
|
+
resize: () => !0,
|
|
1273
|
+
},
|
|
1274
|
+
computed: {
|
|
1275
|
+
finalTheme() {
|
|
1276
|
+
return this.theme ?? this.$options.vPopperTheme;
|
|
1277
|
+
},
|
|
1278
|
+
},
|
|
1279
|
+
methods: {
|
|
1280
|
+
getTargetNodes() {
|
|
1281
|
+
return Array.from(this.$el.children).filter(
|
|
1282
|
+
(e) => e !== this.$refs.popperContent.$el
|
|
1283
|
+
);
|
|
1284
|
+
},
|
|
1285
|
+
},
|
|
1286
|
+
});
|
|
1287
|
+
function Ve(e, t, o, i, n, p) {
|
|
1288
|
+
const a = s.resolveComponent("PopperContent"),
|
|
1289
|
+
d = s.resolveComponent("Popper");
|
|
1290
|
+
return (
|
|
1291
|
+
s.openBlock(),
|
|
1292
|
+
s.createBlock(
|
|
1293
|
+
d,
|
|
1294
|
+
s.mergeProps({ ref: "popper" }, e.$props, {
|
|
1295
|
+
theme: e.finalTheme,
|
|
1296
|
+
"target-nodes": e.getTargetNodes,
|
|
1297
|
+
"popper-node": () => e.$refs.popperContent.$el,
|
|
1298
|
+
class: [e.themeClass],
|
|
1299
|
+
onShow: t[0] || (t[0] = () => e.$emit("show")),
|
|
1300
|
+
onHide: t[1] || (t[1] = () => e.$emit("hide")),
|
|
1301
|
+
"onUpdate:shown": t[2] || (t[2] = (f) => e.$emit("update:shown", f)),
|
|
1302
|
+
onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
|
|
1303
|
+
onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
|
|
1304
|
+
onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
|
|
1305
|
+
onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
|
|
1306
|
+
onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
|
|
1307
|
+
onResize: t[8] || (t[8] = () => e.$emit("resize")),
|
|
1308
|
+
}),
|
|
1309
|
+
{
|
|
1310
|
+
default: s.withCtx(
|
|
1311
|
+
({
|
|
1312
|
+
popperId: f,
|
|
1313
|
+
isShown: c,
|
|
1314
|
+
shouldMountContent: Y,
|
|
1315
|
+
skipTransition: X,
|
|
1316
|
+
autoHide: K,
|
|
1317
|
+
show: J,
|
|
1318
|
+
hide: S,
|
|
1319
|
+
handleResize: Q,
|
|
1320
|
+
onResize: Z,
|
|
1321
|
+
classes: x,
|
|
1322
|
+
result: lt,
|
|
1323
|
+
}) => [
|
|
1324
|
+
s.renderSlot(e.$slots, "default", { shown: c, show: J, hide: S }),
|
|
1325
|
+
s.createVNode(
|
|
1326
|
+
a,
|
|
1327
|
+
{
|
|
1328
|
+
ref: "popperContent",
|
|
1329
|
+
"popper-id": f,
|
|
1330
|
+
theme: e.finalTheme,
|
|
1331
|
+
shown: c,
|
|
1332
|
+
mounted: Y,
|
|
1333
|
+
"skip-transition": X,
|
|
1334
|
+
"auto-hide": K,
|
|
1335
|
+
"handle-resize": Q,
|
|
1336
|
+
classes: x,
|
|
1337
|
+
result: lt,
|
|
1338
|
+
onHide: S,
|
|
1339
|
+
onResize: Z,
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
default: s.withCtx(() => [
|
|
1343
|
+
s.renderSlot(e.$slots, "popper", { shown: c, hide: S }),
|
|
1344
|
+
]),
|
|
1345
|
+
_: 2,
|
|
1346
|
+
},
|
|
1347
|
+
1032,
|
|
1348
|
+
[
|
|
1349
|
+
"popper-id",
|
|
1350
|
+
"theme",
|
|
1351
|
+
"shown",
|
|
1352
|
+
"mounted",
|
|
1353
|
+
"skip-transition",
|
|
1354
|
+
"auto-hide",
|
|
1355
|
+
"handle-resize",
|
|
1356
|
+
"classes",
|
|
1357
|
+
"result",
|
|
1358
|
+
"onHide",
|
|
1359
|
+
"onResize",
|
|
1360
|
+
]
|
|
1361
|
+
),
|
|
1362
|
+
]
|
|
1363
|
+
),
|
|
1364
|
+
_: 3,
|
|
1365
|
+
},
|
|
1366
|
+
16,
|
|
1367
|
+
["theme", "target-nodes", "popper-node", "class"]
|
|
1368
|
+
)
|
|
1369
|
+
);
|
|
1370
|
+
}
|
|
1371
|
+
const A = b(Re, [["render", Ve]]),
|
|
1372
|
+
he = { ...A, name: "VDropdown", vPopperTheme: "dropdown" },
|
|
1373
|
+
ue = { ...A, name: "VMenu", vPopperTheme: "menu" },
|
|
1374
|
+
fe = { ...A, name: "VTooltip", vPopperTheme: "tooltip" },
|
|
1375
|
+
je = s.defineComponent({
|
|
1376
|
+
name: "VTooltipDirective",
|
|
1377
|
+
components: { Popper: D(), PopperContent: R },
|
|
1378
|
+
mixins: [V],
|
|
1379
|
+
inheritAttrs: !1,
|
|
1380
|
+
props: {
|
|
1381
|
+
theme: { type: String, default: "tooltip" },
|
|
1382
|
+
html: { type: Boolean, default: (e) => _(e.theme, "html") },
|
|
1383
|
+
content: { type: [String, Number, Function], default: null },
|
|
1384
|
+
loadingContent: {
|
|
1385
|
+
type: String,
|
|
1386
|
+
default: (e) => _(e.theme, "loadingContent"),
|
|
1387
|
+
},
|
|
1388
|
+
targetNodes: { type: Function, required: !0 },
|
|
1389
|
+
},
|
|
1390
|
+
data() {
|
|
1391
|
+
return { asyncContent: null };
|
|
1392
|
+
},
|
|
1393
|
+
computed: {
|
|
1394
|
+
isContentAsync() {
|
|
1395
|
+
return typeof this.content == "function";
|
|
1396
|
+
},
|
|
1397
|
+
loading() {
|
|
1398
|
+
return this.isContentAsync && this.asyncContent == null;
|
|
1399
|
+
},
|
|
1400
|
+
finalContent() {
|
|
1401
|
+
return this.isContentAsync
|
|
1402
|
+
? this.loading
|
|
1403
|
+
? this.loadingContent
|
|
1404
|
+
: this.asyncContent
|
|
1405
|
+
: this.content;
|
|
1406
|
+
},
|
|
1407
|
+
},
|
|
1408
|
+
watch: {
|
|
1409
|
+
content: {
|
|
1410
|
+
handler() {
|
|
1411
|
+
this.fetchContent(!0);
|
|
1412
|
+
},
|
|
1413
|
+
immediate: !0,
|
|
1414
|
+
},
|
|
1415
|
+
async finalContent() {
|
|
1416
|
+
await this.$nextTick(), this.$refs.popper.onResize();
|
|
1417
|
+
},
|
|
1418
|
+
},
|
|
1419
|
+
created() {
|
|
1420
|
+
this.$_fetchId = 0;
|
|
1421
|
+
},
|
|
1422
|
+
methods: {
|
|
1423
|
+
fetchContent(e) {
|
|
1424
|
+
if (
|
|
1425
|
+
typeof this.content == "function" &&
|
|
1426
|
+
this.$_isShown &&
|
|
1427
|
+
(e || (!this.$_loading && this.asyncContent == null))
|
|
1428
|
+
) {
|
|
1429
|
+
(this.asyncContent = null), (this.$_loading = !0);
|
|
1430
|
+
const t = ++this.$_fetchId,
|
|
1431
|
+
o = this.content(this);
|
|
1432
|
+
o.then ? o.then((i) => this.onResult(t, i)) : this.onResult(t, o);
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
onResult(e, t) {
|
|
1436
|
+
e === this.$_fetchId &&
|
|
1437
|
+
((this.$_loading = !1), (this.asyncContent = t));
|
|
1438
|
+
},
|
|
1439
|
+
onShow() {
|
|
1440
|
+
(this.$_isShown = !0), this.fetchContent();
|
|
1441
|
+
},
|
|
1442
|
+
onHide() {
|
|
1443
|
+
this.$_isShown = !1;
|
|
1444
|
+
},
|
|
1445
|
+
},
|
|
1446
|
+
}),
|
|
1447
|
+
We = ["innerHTML"],
|
|
1448
|
+
Ge = ["textContent"];
|
|
1449
|
+
function qe(e, t, o, i, n, p) {
|
|
1450
|
+
const a = s.resolveComponent("PopperContent"),
|
|
1451
|
+
d = s.resolveComponent("Popper");
|
|
1452
|
+
return (
|
|
1453
|
+
s.openBlock(),
|
|
1454
|
+
s.createBlock(
|
|
1455
|
+
d,
|
|
1456
|
+
s.mergeProps({ ref: "popper" }, e.$attrs, {
|
|
1457
|
+
theme: e.theme,
|
|
1458
|
+
"target-nodes": e.targetNodes,
|
|
1459
|
+
"popper-node": () => e.$refs.popperContent.$el,
|
|
1460
|
+
onApplyShow: e.onShow,
|
|
1461
|
+
onApplyHide: e.onHide,
|
|
1462
|
+
}),
|
|
1463
|
+
{
|
|
1464
|
+
default: s.withCtx(
|
|
1465
|
+
({
|
|
1466
|
+
popperId: f,
|
|
1467
|
+
isShown: c,
|
|
1468
|
+
shouldMountContent: Y,
|
|
1469
|
+
skipTransition: X,
|
|
1470
|
+
autoHide: K,
|
|
1471
|
+
hide: J,
|
|
1472
|
+
handleResize: S,
|
|
1473
|
+
onResize: Q,
|
|
1474
|
+
classes: Z,
|
|
1475
|
+
result: x,
|
|
1476
|
+
}) => [
|
|
1477
|
+
s.createVNode(
|
|
1478
|
+
a,
|
|
1479
|
+
{
|
|
1480
|
+
ref: "popperContent",
|
|
1481
|
+
class: s.normalizeClass({
|
|
1482
|
+
"v-popper--tooltip-loading": e.loading,
|
|
1483
|
+
}),
|
|
1484
|
+
"popper-id": f,
|
|
1485
|
+
theme: e.theme,
|
|
1486
|
+
shown: c,
|
|
1487
|
+
mounted: Y,
|
|
1488
|
+
"skip-transition": X,
|
|
1489
|
+
"auto-hide": K,
|
|
1490
|
+
"handle-resize": S,
|
|
1491
|
+
classes: Z,
|
|
1492
|
+
result: x,
|
|
1493
|
+
onHide: J,
|
|
1494
|
+
onResize: Q,
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
default: s.withCtx(() => [
|
|
1498
|
+
e.html
|
|
1499
|
+
? (s.openBlock(),
|
|
1500
|
+
s.createElementBlock(
|
|
1501
|
+
"div",
|
|
1502
|
+
{ key: 0, innerHTML: e.finalContent },
|
|
1503
|
+
null,
|
|
1504
|
+
8,
|
|
1505
|
+
We
|
|
1506
|
+
))
|
|
1507
|
+
: (s.openBlock(),
|
|
1508
|
+
s.createElementBlock(
|
|
1509
|
+
"div",
|
|
1510
|
+
{
|
|
1511
|
+
key: 1,
|
|
1512
|
+
textContent: s.toDisplayString(e.finalContent),
|
|
1513
|
+
},
|
|
1514
|
+
null,
|
|
1515
|
+
8,
|
|
1516
|
+
Ge
|
|
1517
|
+
)),
|
|
1518
|
+
]),
|
|
1519
|
+
_: 2,
|
|
1520
|
+
},
|
|
1521
|
+
1032,
|
|
1522
|
+
[
|
|
1523
|
+
"class",
|
|
1524
|
+
"popper-id",
|
|
1525
|
+
"theme",
|
|
1526
|
+
"shown",
|
|
1527
|
+
"mounted",
|
|
1528
|
+
"skip-transition",
|
|
1529
|
+
"auto-hide",
|
|
1530
|
+
"handle-resize",
|
|
1531
|
+
"classes",
|
|
1532
|
+
"result",
|
|
1533
|
+
"onHide",
|
|
1534
|
+
"onResize",
|
|
1535
|
+
]
|
|
1536
|
+
),
|
|
1537
|
+
]
|
|
1538
|
+
),
|
|
1539
|
+
_: 1,
|
|
1540
|
+
},
|
|
1541
|
+
16,
|
|
1542
|
+
["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]
|
|
1543
|
+
)
|
|
1544
|
+
);
|
|
1545
|
+
}
|
|
1546
|
+
const ce = b(je, [["render", qe]]),
|
|
1547
|
+
me = "v-popper--has-tooltip";
|
|
1548
|
+
function Ue(e, t) {
|
|
1549
|
+
let o = e.placement;
|
|
1550
|
+
if (!o && t) for (const i of E) t[i] && (o = i);
|
|
1551
|
+
return o || (o = _(e.theme || "tooltip", "placement")), o;
|
|
1552
|
+
}
|
|
1553
|
+
function ge(e, t, o) {
|
|
1554
|
+
let i;
|
|
1555
|
+
const n = typeof t;
|
|
1556
|
+
return (
|
|
1557
|
+
n === "string"
|
|
1558
|
+
? (i = { content: t })
|
|
1559
|
+
: t && n === "object"
|
|
1560
|
+
? (i = t)
|
|
1561
|
+
: (i = { content: !1 }),
|
|
1562
|
+
(i.placement = Ue(i, o)),
|
|
1563
|
+
(i.targetNodes = () => [e]),
|
|
1564
|
+
(i.referenceNode = () => e),
|
|
1565
|
+
i
|
|
1566
|
+
);
|
|
1567
|
+
}
|
|
1568
|
+
let W,
|
|
1569
|
+
P,
|
|
1570
|
+
Ye = 0;
|
|
1571
|
+
function Xe() {
|
|
1572
|
+
if (W) return;
|
|
1573
|
+
(P = s.ref([])),
|
|
1574
|
+
(W = s.createApp({
|
|
1575
|
+
name: "VTooltipDirectiveApp",
|
|
1576
|
+
setup() {
|
|
1577
|
+
return { directives: P };
|
|
1578
|
+
},
|
|
1579
|
+
render() {
|
|
1580
|
+
return this.directives.map((t) =>
|
|
1581
|
+
s.h(ce, {
|
|
1582
|
+
...t.options,
|
|
1583
|
+
shown: t.shown || t.options.shown,
|
|
1584
|
+
key: t.id,
|
|
1585
|
+
})
|
|
1586
|
+
);
|
|
1587
|
+
},
|
|
1588
|
+
devtools: { hide: !0 },
|
|
1589
|
+
}));
|
|
1590
|
+
const e = document.createElement("div");
|
|
1591
|
+
document.body.appendChild(e), W.mount(e);
|
|
1592
|
+
}
|
|
1593
|
+
function we(e, t, o) {
|
|
1594
|
+
Xe();
|
|
1595
|
+
const i = s.ref(ge(e, t, o)),
|
|
1596
|
+
n = s.ref(!1),
|
|
1597
|
+
p = { id: Ye++, options: i, shown: n };
|
|
1598
|
+
return (
|
|
1599
|
+
P.value.push(p),
|
|
1600
|
+
e.classList && e.classList.add(me),
|
|
1601
|
+
(e.$_popper = {
|
|
1602
|
+
options: i,
|
|
1603
|
+
item: p,
|
|
1604
|
+
show() {
|
|
1605
|
+
n.value = !0;
|
|
1606
|
+
},
|
|
1607
|
+
hide() {
|
|
1608
|
+
n.value = !1;
|
|
1609
|
+
},
|
|
1610
|
+
})
|
|
1611
|
+
);
|
|
1612
|
+
}
|
|
1613
|
+
function G(e) {
|
|
1614
|
+
if (e.$_popper) {
|
|
1615
|
+
const t = P.value.indexOf(e.$_popper.item);
|
|
1616
|
+
t !== -1 && P.value.splice(t, 1),
|
|
1617
|
+
delete e.$_popper,
|
|
1618
|
+
delete e.$_popperOldShown,
|
|
1619
|
+
delete e.$_popperMountTarget;
|
|
1620
|
+
}
|
|
1621
|
+
e.classList && e.classList.remove(me);
|
|
1622
|
+
}
|
|
1623
|
+
function $e(e, { value: t, modifiers: o }) {
|
|
1624
|
+
const i = ge(e, t, o);
|
|
1625
|
+
if (!i.content || _(i.theme || "tooltip", "disabled")) G(e);
|
|
1626
|
+
else {
|
|
1627
|
+
let n;
|
|
1628
|
+
e.$_popper
|
|
1629
|
+
? ((n = e.$_popper), (n.options.value = i))
|
|
1630
|
+
: (n = we(e, t, o)),
|
|
1631
|
+
typeof t.shown < "u" &&
|
|
1632
|
+
t.shown !== e.$_popperOldShown &&
|
|
1633
|
+
((e.$_popperOldShown = t.shown), t.shown ? n.show() : n.hide());
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
const q = {
|
|
1637
|
+
beforeMount: $e,
|
|
1638
|
+
updated: $e,
|
|
1639
|
+
beforeUnmount(e) {
|
|
1640
|
+
G(e);
|
|
1641
|
+
},
|
|
1642
|
+
};
|
|
1643
|
+
function ye(e) {
|
|
1644
|
+
e.addEventListener("mousedown", B),
|
|
1645
|
+
e.addEventListener("click", B),
|
|
1646
|
+
e.addEventListener("touchstart", ve, y ? { passive: !0 } : !1);
|
|
1647
|
+
}
|
|
1648
|
+
function _e(e) {
|
|
1649
|
+
e.removeEventListener("mousedown", B),
|
|
1650
|
+
e.removeEventListener("click", B),
|
|
1651
|
+
e.removeEventListener("touchstart", ve),
|
|
1652
|
+
e.removeEventListener("touchend", Te),
|
|
1653
|
+
e.removeEventListener("touchcancel", Pe);
|
|
1654
|
+
}
|
|
1655
|
+
function B(e) {
|
|
1656
|
+
const t = e.currentTarget;
|
|
1657
|
+
(e.closePopover = !t.$_vclosepopover_touch),
|
|
1658
|
+
(e.closeAllPopover =
|
|
1659
|
+
t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all);
|
|
1660
|
+
}
|
|
1661
|
+
function ve(e) {
|
|
1662
|
+
if (e.changedTouches.length === 1) {
|
|
1663
|
+
const t = e.currentTarget;
|
|
1664
|
+
t.$_vclosepopover_touch = !0;
|
|
1665
|
+
const o = e.changedTouches[0];
|
|
1666
|
+
(t.$_vclosepopover_touchPoint = o),
|
|
1667
|
+
t.addEventListener("touchend", Te),
|
|
1668
|
+
t.addEventListener("touchcancel", Pe);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
function Te(e) {
|
|
1672
|
+
const t = e.currentTarget;
|
|
1673
|
+
if (((t.$_vclosepopover_touch = !1), e.changedTouches.length === 1)) {
|
|
1674
|
+
const o = e.changedTouches[0],
|
|
1675
|
+
i = t.$_vclosepopover_touchPoint;
|
|
1676
|
+
(e.closePopover =
|
|
1677
|
+
Math.abs(o.screenY - i.screenY) < 20 &&
|
|
1678
|
+
Math.abs(o.screenX - i.screenX) < 20),
|
|
1679
|
+
(e.closeAllPopover =
|
|
1680
|
+
t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all);
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
function Pe(e) {
|
|
1684
|
+
const t = e.currentTarget;
|
|
1685
|
+
t.$_vclosepopover_touch = !1;
|
|
1686
|
+
}
|
|
1687
|
+
const U = {
|
|
1688
|
+
beforeMount(e, { value: t, modifiers: o }) {
|
|
1689
|
+
(e.$_closePopoverModifiers = o), (typeof t > "u" || t) && ye(e);
|
|
1690
|
+
},
|
|
1691
|
+
updated(e, { value: t, oldValue: o, modifiers: i }) {
|
|
1692
|
+
(e.$_closePopoverModifiers = i),
|
|
1693
|
+
t !== o && (typeof t > "u" || t ? ye(e) : _e(e));
|
|
1694
|
+
},
|
|
1695
|
+
beforeUnmount(e) {
|
|
1696
|
+
_e(e);
|
|
1697
|
+
},
|
|
1698
|
+
},
|
|
1699
|
+
Ke = u,
|
|
1700
|
+
Je = q,
|
|
1701
|
+
Qe = q,
|
|
1702
|
+
Ze = U,
|
|
1703
|
+
xe = U,
|
|
1704
|
+
et = he,
|
|
1705
|
+
tt = ue,
|
|
1706
|
+
ot = D,
|
|
1707
|
+
it = R,
|
|
1708
|
+
st = V,
|
|
1709
|
+
nt = A,
|
|
1710
|
+
rt = F,
|
|
1711
|
+
pt = fe,
|
|
1712
|
+
at = ce;
|
|
1713
|
+
function Se(e, t = {}) {
|
|
1714
|
+
e.$_vTooltipInstalled ||
|
|
1715
|
+
((e.$_vTooltipInstalled = !0),
|
|
1716
|
+
ee(u, t),
|
|
1717
|
+
e.directive("tooltip", q),
|
|
1718
|
+
e.directive("close-popper", U),
|
|
1719
|
+
e.component("VTooltip", fe),
|
|
1720
|
+
e.component("VDropdown", he),
|
|
1721
|
+
e.component("VMenu", ue));
|
|
1722
|
+
}
|
|
1723
|
+
const dt = { version: "5.2.2", install: Se, options: u };
|
|
1724
|
+
(l.Dropdown = et),
|
|
1725
|
+
(l.HIDE_EVENT_MAP = O),
|
|
1726
|
+
(l.Menu = tt),
|
|
1727
|
+
(l.Popper = ot),
|
|
1728
|
+
(l.PopperContent = it),
|
|
1729
|
+
(l.PopperMethods = st),
|
|
1730
|
+
(l.PopperWrapper = nt),
|
|
1731
|
+
(l.SHOW_EVENT_MAP = M),
|
|
1732
|
+
(l.ThemeClass = rt),
|
|
1733
|
+
(l.Tooltip = pt),
|
|
1734
|
+
(l.TooltipDirective = at),
|
|
1735
|
+
(l.VClosePopper = Ze),
|
|
1736
|
+
(l.VTooltip = Je),
|
|
1737
|
+
(l.createTooltip = we),
|
|
1738
|
+
(l.default = dt),
|
|
1739
|
+
(l.destroyTooltip = G),
|
|
1740
|
+
(l.hideAllPoppers = Ne),
|
|
1741
|
+
(l.install = Se),
|
|
1742
|
+
(l.options = Ke),
|
|
1743
|
+
(l.placements = E),
|
|
1744
|
+
(l.recomputeAllPoppers = le),
|
|
1745
|
+
(l.vClosePopper = xe),
|
|
1746
|
+
(l.vTooltip = Qe),
|
|
1747
|
+
Object.defineProperties(l, {
|
|
1748
|
+
__esModule: { value: !0 },
|
|
1749
|
+
[Symbol.toStringTag]: { value: "Module" },
|
|
1750
|
+
});
|
|
1751
|
+
});
|