@reni-corp/reni-2c-ui 0.2.17 → 0.2.18
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/components/interactive/Slider.vue.d.ts.map +1 -1
- package/dist/composables-2fcaaed0.js +2833 -0
- package/dist/composables.es.js +5 -4
- package/dist/index-3ee8d80a.js +3495 -0
- package/dist/index.es.js +3248 -2809
- package/dist/script.es.js +8113 -12377
- package/dist/script.umd.js +24 -42
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/composables-c1b0237f.js +0 -7585
|
@@ -0,0 +1,2833 @@
|
|
|
1
|
+
import { pushScopeId as Xt, popScopeId as Kt, defineComponent as Re, nextTick as Ue, openBlock as G, createBlock as Le, ref as z, createElementBlock as ge, normalizeClass as Xe, renderSlot as Pe, normalizeProps as Jt, guardReactiveProps as Qt, withScopeId as Zt, resolveComponent as we, normalizeStyle as Ie, withKeys as en, createElementVNode as ie, Fragment as tn, createCommentVNode as nt, mergeProps as xt, withCtx as Ae, createVNode as _t, createApp as nn, h as on, toDisplayString as sn, unref as rn, onMounted as St, getCurrentScope as ln, onScopeDispose as an, isRef as dn, getCurrentInstance as Ke, toRef as cn, readonly as un, customRef as pn, computed as re, reactive as ot, watch as ve, watchEffect as hn } from "vue";
|
|
2
|
+
const fn = ["top", "right", "bottom", "left"], it = ["start", "end"], st = /* @__PURE__ */ fn.reduce((e, t) => e.concat(t, t + "-" + it[0], t + "-" + it[1]), []), ye = Math.min, oe = Math.max, mn = {
|
|
3
|
+
left: "right",
|
|
4
|
+
right: "left",
|
|
5
|
+
bottom: "top",
|
|
6
|
+
top: "bottom"
|
|
7
|
+
}, gn = {
|
|
8
|
+
start: "end",
|
|
9
|
+
end: "start"
|
|
10
|
+
};
|
|
11
|
+
function Ve(e, t, n) {
|
|
12
|
+
return oe(e, ye(t, n));
|
|
13
|
+
}
|
|
14
|
+
function le(e, t) {
|
|
15
|
+
return typeof e == "function" ? e(t) : e;
|
|
16
|
+
}
|
|
17
|
+
function q(e) {
|
|
18
|
+
return e.split("-")[0];
|
|
19
|
+
}
|
|
20
|
+
function B(e) {
|
|
21
|
+
return e.split("-")[1];
|
|
22
|
+
}
|
|
23
|
+
function Tt(e) {
|
|
24
|
+
return e === "x" ? "y" : "x";
|
|
25
|
+
}
|
|
26
|
+
function Je(e) {
|
|
27
|
+
return e === "y" ? "height" : "width";
|
|
28
|
+
}
|
|
29
|
+
function Q(e) {
|
|
30
|
+
return ["top", "bottom"].includes(q(e)) ? "y" : "x";
|
|
31
|
+
}
|
|
32
|
+
function Qe(e) {
|
|
33
|
+
return Tt(Q(e));
|
|
34
|
+
}
|
|
35
|
+
function Pt(e, t, n) {
|
|
36
|
+
n === void 0 && (n = !1);
|
|
37
|
+
const o = B(e), i = Qe(e), s = Je(i);
|
|
38
|
+
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
39
|
+
return t.reference[s] > t.floating[s] && (r = Oe(r)), [r, Oe(r)];
|
|
40
|
+
}
|
|
41
|
+
function wn(e) {
|
|
42
|
+
const t = Oe(e);
|
|
43
|
+
return [Ce(e), t, Ce(t)];
|
|
44
|
+
}
|
|
45
|
+
function Ce(e) {
|
|
46
|
+
return e.replace(/start|end/g, (t) => gn[t]);
|
|
47
|
+
}
|
|
48
|
+
function vn(e, t, n) {
|
|
49
|
+
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
50
|
+
switch (e) {
|
|
51
|
+
case "top":
|
|
52
|
+
case "bottom":
|
|
53
|
+
return n ? t ? i : o : t ? o : i;
|
|
54
|
+
case "left":
|
|
55
|
+
case "right":
|
|
56
|
+
return t ? s : r;
|
|
57
|
+
default:
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function yn(e, t, n, o) {
|
|
62
|
+
const i = B(e);
|
|
63
|
+
let s = vn(q(e), n === "start", o);
|
|
64
|
+
return i && (s = s.map((r) => r + "-" + i), t && (s = s.concat(s.map(Ce)))), s;
|
|
65
|
+
}
|
|
66
|
+
function Oe(e) {
|
|
67
|
+
return e.replace(/left|right|bottom|top/g, (t) => mn[t]);
|
|
68
|
+
}
|
|
69
|
+
function $n(e) {
|
|
70
|
+
return {
|
|
71
|
+
top: 0,
|
|
72
|
+
right: 0,
|
|
73
|
+
bottom: 0,
|
|
74
|
+
left: 0,
|
|
75
|
+
...e
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function At(e) {
|
|
79
|
+
return typeof e != "number" ? $n(e) : {
|
|
80
|
+
top: e,
|
|
81
|
+
right: e,
|
|
82
|
+
bottom: e,
|
|
83
|
+
left: e
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function pe(e) {
|
|
87
|
+
const {
|
|
88
|
+
x: t,
|
|
89
|
+
y: n,
|
|
90
|
+
width: o,
|
|
91
|
+
height: i
|
|
92
|
+
} = e;
|
|
93
|
+
return {
|
|
94
|
+
width: o,
|
|
95
|
+
height: i,
|
|
96
|
+
top: n,
|
|
97
|
+
left: t,
|
|
98
|
+
right: t + o,
|
|
99
|
+
bottom: n + i,
|
|
100
|
+
x: t,
|
|
101
|
+
y: n
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function rt(e, t, n) {
|
|
105
|
+
let {
|
|
106
|
+
reference: o,
|
|
107
|
+
floating: i
|
|
108
|
+
} = e;
|
|
109
|
+
const s = Q(t), r = Qe(t), l = Je(r), c = q(t), d = s === "y", a = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, p = o[l] / 2 - i[l] / 2;
|
|
110
|
+
let h;
|
|
111
|
+
switch (c) {
|
|
112
|
+
case "top":
|
|
113
|
+
h = {
|
|
114
|
+
x: a,
|
|
115
|
+
y: o.y - i.height
|
|
116
|
+
};
|
|
117
|
+
break;
|
|
118
|
+
case "bottom":
|
|
119
|
+
h = {
|
|
120
|
+
x: a,
|
|
121
|
+
y: o.y + o.height
|
|
122
|
+
};
|
|
123
|
+
break;
|
|
124
|
+
case "right":
|
|
125
|
+
h = {
|
|
126
|
+
x: o.x + o.width,
|
|
127
|
+
y: u
|
|
128
|
+
};
|
|
129
|
+
break;
|
|
130
|
+
case "left":
|
|
131
|
+
h = {
|
|
132
|
+
x: o.x - i.width,
|
|
133
|
+
y: u
|
|
134
|
+
};
|
|
135
|
+
break;
|
|
136
|
+
default:
|
|
137
|
+
h = {
|
|
138
|
+
x: o.x,
|
|
139
|
+
y: o.y
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
switch (B(t)) {
|
|
143
|
+
case "start":
|
|
144
|
+
h[r] -= p * (n && d ? -1 : 1);
|
|
145
|
+
break;
|
|
146
|
+
case "end":
|
|
147
|
+
h[r] += p * (n && d ? -1 : 1);
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
return h;
|
|
151
|
+
}
|
|
152
|
+
const bn = async (e, t, n) => {
|
|
153
|
+
const {
|
|
154
|
+
placement: o = "bottom",
|
|
155
|
+
strategy: i = "absolute",
|
|
156
|
+
middleware: s = [],
|
|
157
|
+
platform: r
|
|
158
|
+
} = n, l = s.filter(Boolean), c = await (r.isRTL == null ? void 0 : r.isRTL(t));
|
|
159
|
+
let d = await r.getElementRects({
|
|
160
|
+
reference: e,
|
|
161
|
+
floating: t,
|
|
162
|
+
strategy: i
|
|
163
|
+
}), {
|
|
164
|
+
x: a,
|
|
165
|
+
y: u
|
|
166
|
+
} = rt(d, o, c), p = o, h = {}, f = 0;
|
|
167
|
+
for (let m = 0; m < l.length; m++) {
|
|
168
|
+
const {
|
|
169
|
+
name: w,
|
|
170
|
+
fn: g
|
|
171
|
+
} = l[m], {
|
|
172
|
+
x: v,
|
|
173
|
+
y: $,
|
|
174
|
+
data: T,
|
|
175
|
+
reset: x
|
|
176
|
+
} = await g({
|
|
177
|
+
x: a,
|
|
178
|
+
y: u,
|
|
179
|
+
initialPlacement: o,
|
|
180
|
+
placement: p,
|
|
181
|
+
strategy: i,
|
|
182
|
+
middlewareData: h,
|
|
183
|
+
rects: d,
|
|
184
|
+
platform: r,
|
|
185
|
+
elements: {
|
|
186
|
+
reference: e,
|
|
187
|
+
floating: t
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
a = v ?? a, u = $ ?? u, h = {
|
|
191
|
+
...h,
|
|
192
|
+
[w]: {
|
|
193
|
+
...h[w],
|
|
194
|
+
...T
|
|
195
|
+
}
|
|
196
|
+
}, x && f <= 50 && (f++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (d = x.rects === !0 ? await r.getElementRects({
|
|
197
|
+
reference: e,
|
|
198
|
+
floating: t,
|
|
199
|
+
strategy: i
|
|
200
|
+
}) : x.rects), {
|
|
201
|
+
x: a,
|
|
202
|
+
y: u
|
|
203
|
+
} = rt(d, p, c)), m = -1);
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
x: a,
|
|
207
|
+
y: u,
|
|
208
|
+
placement: p,
|
|
209
|
+
strategy: i,
|
|
210
|
+
middlewareData: h
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
async function Me(e, t) {
|
|
214
|
+
var n;
|
|
215
|
+
t === void 0 && (t = {});
|
|
216
|
+
const {
|
|
217
|
+
x: o,
|
|
218
|
+
y: i,
|
|
219
|
+
platform: s,
|
|
220
|
+
rects: r,
|
|
221
|
+
elements: l,
|
|
222
|
+
strategy: c
|
|
223
|
+
} = e, {
|
|
224
|
+
boundary: d = "clippingAncestors",
|
|
225
|
+
rootBoundary: a = "viewport",
|
|
226
|
+
elementContext: u = "floating",
|
|
227
|
+
altBoundary: p = !1,
|
|
228
|
+
padding: h = 0
|
|
229
|
+
} = le(t, e), f = At(h), w = l[p ? u === "floating" ? "reference" : "floating" : u], g = pe(await s.getClippingRect({
|
|
230
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
231
|
+
boundary: d,
|
|
232
|
+
rootBoundary: a,
|
|
233
|
+
strategy: c
|
|
234
|
+
})), v = u === "floating" ? {
|
|
235
|
+
x: o,
|
|
236
|
+
y: i,
|
|
237
|
+
width: r.floating.width,
|
|
238
|
+
height: r.floating.height
|
|
239
|
+
} : r.reference, $ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), T = await (s.isElement == null ? void 0 : s.isElement($)) ? await (s.getScale == null ? void 0 : s.getScale($)) || {
|
|
240
|
+
x: 1,
|
|
241
|
+
y: 1
|
|
242
|
+
} : {
|
|
243
|
+
x: 1,
|
|
244
|
+
y: 1
|
|
245
|
+
}, x = pe(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
246
|
+
elements: l,
|
|
247
|
+
rect: v,
|
|
248
|
+
offsetParent: $,
|
|
249
|
+
strategy: c
|
|
250
|
+
}) : v);
|
|
251
|
+
return {
|
|
252
|
+
top: (g.top - x.top + f.top) / T.y,
|
|
253
|
+
bottom: (x.bottom - g.bottom + f.bottom) / T.y,
|
|
254
|
+
left: (g.left - x.left + f.left) / T.x,
|
|
255
|
+
right: (x.right - g.right + f.right) / T.x
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
const xn = (e) => ({
|
|
259
|
+
name: "arrow",
|
|
260
|
+
options: e,
|
|
261
|
+
async fn(t) {
|
|
262
|
+
const {
|
|
263
|
+
x: n,
|
|
264
|
+
y: o,
|
|
265
|
+
placement: i,
|
|
266
|
+
rects: s,
|
|
267
|
+
platform: r,
|
|
268
|
+
elements: l,
|
|
269
|
+
middlewareData: c
|
|
270
|
+
} = t, {
|
|
271
|
+
element: d,
|
|
272
|
+
padding: a = 0
|
|
273
|
+
} = le(e, t) || {};
|
|
274
|
+
if (d == null)
|
|
275
|
+
return {};
|
|
276
|
+
const u = At(a), p = {
|
|
277
|
+
x: n,
|
|
278
|
+
y: o
|
|
279
|
+
}, h = Qe(i), f = Je(h), m = await r.getDimensions(d), w = h === "y", g = w ? "top" : "left", v = w ? "bottom" : "right", $ = w ? "clientHeight" : "clientWidth", T = s.reference[f] + s.reference[h] - p[h] - s.floating[f], x = p[h] - s.reference[h], O = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d));
|
|
280
|
+
let y = O ? O[$] : 0;
|
|
281
|
+
(!y || !await (r.isElement == null ? void 0 : r.isElement(O))) && (y = l.floating[$] || s.floating[f]);
|
|
282
|
+
const E = T / 2 - x / 2, S = y / 2 - m[f] / 2 - 1, _ = ye(u[g], S), C = ye(u[v], S), A = _, P = y - m[f] - C, R = y / 2 - m[f] / 2 + E, N = Ve(A, R, P), F = !c.arrow && B(i) != null && R !== N && s.reference[f] / 2 - (R < A ? _ : C) - m[f] / 2 < 0, H = F ? R < A ? R - A : R - P : 0;
|
|
283
|
+
return {
|
|
284
|
+
[h]: p[h] + H,
|
|
285
|
+
data: {
|
|
286
|
+
[h]: N,
|
|
287
|
+
centerOffset: R - N - H,
|
|
288
|
+
...F && {
|
|
289
|
+
alignmentOffset: H
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
reset: F
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
function _n(e, t, n) {
|
|
297
|
+
return (e ? [...n.filter((i) => B(i) === e), ...n.filter((i) => B(i) !== e)] : n.filter((i) => q(i) === i)).filter((i) => e ? B(i) === e || (t ? Ce(i) !== i : !1) : !0);
|
|
298
|
+
}
|
|
299
|
+
const Sn = function(e) {
|
|
300
|
+
return e === void 0 && (e = {}), {
|
|
301
|
+
name: "autoPlacement",
|
|
302
|
+
options: e,
|
|
303
|
+
async fn(t) {
|
|
304
|
+
var n, o, i;
|
|
305
|
+
const {
|
|
306
|
+
rects: s,
|
|
307
|
+
middlewareData: r,
|
|
308
|
+
placement: l,
|
|
309
|
+
platform: c,
|
|
310
|
+
elements: d
|
|
311
|
+
} = t, {
|
|
312
|
+
crossAxis: a = !1,
|
|
313
|
+
alignment: u,
|
|
314
|
+
allowedPlacements: p = st,
|
|
315
|
+
autoAlignment: h = !0,
|
|
316
|
+
...f
|
|
317
|
+
} = le(e, t), m = u !== void 0 || p === st ? _n(u || null, h, p) : p, w = await Me(t, f), g = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, v = m[g];
|
|
318
|
+
if (v == null)
|
|
319
|
+
return {};
|
|
320
|
+
const $ = Pt(v, s, await (c.isRTL == null ? void 0 : c.isRTL(d.floating)));
|
|
321
|
+
if (l !== v)
|
|
322
|
+
return {
|
|
323
|
+
reset: {
|
|
324
|
+
placement: m[0]
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
const T = [w[q(v)], w[$[0]], w[$[1]]], x = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
|
|
328
|
+
placement: v,
|
|
329
|
+
overflows: T
|
|
330
|
+
}], O = m[g + 1];
|
|
331
|
+
if (O)
|
|
332
|
+
return {
|
|
333
|
+
data: {
|
|
334
|
+
index: g + 1,
|
|
335
|
+
overflows: x
|
|
336
|
+
},
|
|
337
|
+
reset: {
|
|
338
|
+
placement: O
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
const y = x.map((_) => {
|
|
342
|
+
const C = B(_.placement);
|
|
343
|
+
return [_.placement, C && a ? (
|
|
344
|
+
// Check along the mainAxis and main crossAxis side.
|
|
345
|
+
_.overflows.slice(0, 2).reduce((A, P) => A + P, 0)
|
|
346
|
+
) : (
|
|
347
|
+
// Check only the mainAxis.
|
|
348
|
+
_.overflows[0]
|
|
349
|
+
), _.overflows];
|
|
350
|
+
}).sort((_, C) => _[1] - C[1]), S = ((i = y.filter((_) => _[2].slice(
|
|
351
|
+
0,
|
|
352
|
+
// Aligned placements should not check their opposite crossAxis
|
|
353
|
+
// side.
|
|
354
|
+
B(_[0]) ? 2 : 3
|
|
355
|
+
).every((C) => C <= 0))[0]) == null ? void 0 : i[0]) || y[0][0];
|
|
356
|
+
return S !== l ? {
|
|
357
|
+
data: {
|
|
358
|
+
index: g + 1,
|
|
359
|
+
overflows: x
|
|
360
|
+
},
|
|
361
|
+
reset: {
|
|
362
|
+
placement: S
|
|
363
|
+
}
|
|
364
|
+
} : {};
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
}, Tn = function(e) {
|
|
368
|
+
return e === void 0 && (e = {}), {
|
|
369
|
+
name: "flip",
|
|
370
|
+
options: e,
|
|
371
|
+
async fn(t) {
|
|
372
|
+
var n, o;
|
|
373
|
+
const {
|
|
374
|
+
placement: i,
|
|
375
|
+
middlewareData: s,
|
|
376
|
+
rects: r,
|
|
377
|
+
initialPlacement: l,
|
|
378
|
+
platform: c,
|
|
379
|
+
elements: d
|
|
380
|
+
} = t, {
|
|
381
|
+
mainAxis: a = !0,
|
|
382
|
+
crossAxis: u = !0,
|
|
383
|
+
fallbackPlacements: p,
|
|
384
|
+
fallbackStrategy: h = "bestFit",
|
|
385
|
+
fallbackAxisSideDirection: f = "none",
|
|
386
|
+
flipAlignment: m = !0,
|
|
387
|
+
...w
|
|
388
|
+
} = le(e, t);
|
|
389
|
+
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
390
|
+
return {};
|
|
391
|
+
const g = q(i), v = Q(l), $ = q(l) === l, T = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = p || ($ || !m ? [Oe(l)] : wn(l)), O = f !== "none";
|
|
392
|
+
!p && O && x.push(...yn(l, m, f, T));
|
|
393
|
+
const y = [l, ...x], E = await Me(t, w), S = [];
|
|
394
|
+
let _ = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
395
|
+
if (a && S.push(E[g]), u) {
|
|
396
|
+
const N = Pt(i, r, T);
|
|
397
|
+
S.push(E[N[0]], E[N[1]]);
|
|
398
|
+
}
|
|
399
|
+
if (_ = [..._, {
|
|
400
|
+
placement: i,
|
|
401
|
+
overflows: S
|
|
402
|
+
}], !S.every((N) => N <= 0)) {
|
|
403
|
+
var C, A;
|
|
404
|
+
const N = (((C = s.flip) == null ? void 0 : C.index) || 0) + 1, F = y[N];
|
|
405
|
+
if (F) {
|
|
406
|
+
var P;
|
|
407
|
+
const Y = u === "alignment" ? v !== Q(F) : !1, W = ((P = _[0]) == null ? void 0 : P.overflows[0]) > 0;
|
|
408
|
+
if (!Y || W)
|
|
409
|
+
return {
|
|
410
|
+
data: {
|
|
411
|
+
index: N,
|
|
412
|
+
overflows: _
|
|
413
|
+
},
|
|
414
|
+
reset: {
|
|
415
|
+
placement: F
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
let H = (A = _.filter((Y) => Y.overflows[0] <= 0).sort((Y, W) => Y.overflows[1] - W.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
420
|
+
if (!H)
|
|
421
|
+
switch (h) {
|
|
422
|
+
case "bestFit": {
|
|
423
|
+
var R;
|
|
424
|
+
const Y = (R = _.filter((W) => {
|
|
425
|
+
if (O) {
|
|
426
|
+
const U = Q(W.placement);
|
|
427
|
+
return U === v || // Create a bias to the `y` side axis due to horizontal
|
|
428
|
+
// reading directions favoring greater width.
|
|
429
|
+
U === "y";
|
|
430
|
+
}
|
|
431
|
+
return !0;
|
|
432
|
+
}).map((W) => [W.placement, W.overflows.filter((U) => U > 0).reduce((U, Ut) => U + Ut, 0)]).sort((W, U) => W[1] - U[1])[0]) == null ? void 0 : R[0];
|
|
433
|
+
Y && (H = Y);
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
case "initialPlacement":
|
|
437
|
+
H = l;
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
if (i !== H)
|
|
441
|
+
return {
|
|
442
|
+
reset: {
|
|
443
|
+
placement: H
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
return {};
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
async function Pn(e, t) {
|
|
452
|
+
const {
|
|
453
|
+
placement: n,
|
|
454
|
+
platform: o,
|
|
455
|
+
elements: i
|
|
456
|
+
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = q(n), l = B(n), c = Q(n) === "y", d = ["left", "top"].includes(r) ? -1 : 1, a = s && c ? -1 : 1, u = le(t, e);
|
|
457
|
+
let {
|
|
458
|
+
mainAxis: p,
|
|
459
|
+
crossAxis: h,
|
|
460
|
+
alignmentAxis: f
|
|
461
|
+
} = typeof u == "number" ? {
|
|
462
|
+
mainAxis: u,
|
|
463
|
+
crossAxis: 0,
|
|
464
|
+
alignmentAxis: null
|
|
465
|
+
} : {
|
|
466
|
+
mainAxis: u.mainAxis || 0,
|
|
467
|
+
crossAxis: u.crossAxis || 0,
|
|
468
|
+
alignmentAxis: u.alignmentAxis
|
|
469
|
+
};
|
|
470
|
+
return l && typeof f == "number" && (h = l === "end" ? f * -1 : f), c ? {
|
|
471
|
+
x: h * a,
|
|
472
|
+
y: p * d
|
|
473
|
+
} : {
|
|
474
|
+
x: p * d,
|
|
475
|
+
y: h * a
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
const An = function(e) {
|
|
479
|
+
return e === void 0 && (e = 0), {
|
|
480
|
+
name: "offset",
|
|
481
|
+
options: e,
|
|
482
|
+
async fn(t) {
|
|
483
|
+
var n, o;
|
|
484
|
+
const {
|
|
485
|
+
x: i,
|
|
486
|
+
y: s,
|
|
487
|
+
placement: r,
|
|
488
|
+
middlewareData: l
|
|
489
|
+
} = t, c = await Pn(t, e);
|
|
490
|
+
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
491
|
+
x: i + c.x,
|
|
492
|
+
y: s + c.y,
|
|
493
|
+
data: {
|
|
494
|
+
...c,
|
|
495
|
+
placement: r
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
}, Cn = function(e) {
|
|
501
|
+
return e === void 0 && (e = {}), {
|
|
502
|
+
name: "shift",
|
|
503
|
+
options: e,
|
|
504
|
+
async fn(t) {
|
|
505
|
+
const {
|
|
506
|
+
x: n,
|
|
507
|
+
y: o,
|
|
508
|
+
placement: i
|
|
509
|
+
} = t, {
|
|
510
|
+
mainAxis: s = !0,
|
|
511
|
+
crossAxis: r = !1,
|
|
512
|
+
limiter: l = {
|
|
513
|
+
fn: (w) => {
|
|
514
|
+
let {
|
|
515
|
+
x: g,
|
|
516
|
+
y: v
|
|
517
|
+
} = w;
|
|
518
|
+
return {
|
|
519
|
+
x: g,
|
|
520
|
+
y: v
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
...c
|
|
525
|
+
} = le(e, t), d = {
|
|
526
|
+
x: n,
|
|
527
|
+
y: o
|
|
528
|
+
}, a = await Me(t, c), u = Q(q(i)), p = Tt(u);
|
|
529
|
+
let h = d[p], f = d[u];
|
|
530
|
+
if (s) {
|
|
531
|
+
const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", v = h + a[w], $ = h - a[g];
|
|
532
|
+
h = Ve(v, h, $);
|
|
533
|
+
}
|
|
534
|
+
if (r) {
|
|
535
|
+
const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", v = f + a[w], $ = f - a[g];
|
|
536
|
+
f = Ve(v, f, $);
|
|
537
|
+
}
|
|
538
|
+
const m = l.fn({
|
|
539
|
+
...t,
|
|
540
|
+
[p]: h,
|
|
541
|
+
[u]: f
|
|
542
|
+
});
|
|
543
|
+
return {
|
|
544
|
+
...m,
|
|
545
|
+
data: {
|
|
546
|
+
x: m.x - n,
|
|
547
|
+
y: m.y - o,
|
|
548
|
+
enabled: {
|
|
549
|
+
[p]: s,
|
|
550
|
+
[u]: r
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
}, On = function(e) {
|
|
557
|
+
return e === void 0 && (e = {}), {
|
|
558
|
+
name: "size",
|
|
559
|
+
options: e,
|
|
560
|
+
async fn(t) {
|
|
561
|
+
var n, o;
|
|
562
|
+
const {
|
|
563
|
+
placement: i,
|
|
564
|
+
rects: s,
|
|
565
|
+
platform: r,
|
|
566
|
+
elements: l
|
|
567
|
+
} = t, {
|
|
568
|
+
apply: c = () => {
|
|
569
|
+
},
|
|
570
|
+
...d
|
|
571
|
+
} = le(e, t), a = await Me(t, d), u = q(i), p = B(i), h = Q(i) === "y", {
|
|
572
|
+
width: f,
|
|
573
|
+
height: m
|
|
574
|
+
} = s.floating;
|
|
575
|
+
let w, g;
|
|
576
|
+
u === "top" || u === "bottom" ? (w = u, g = p === (await (r.isRTL == null ? void 0 : r.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = p === "end" ? "top" : "bottom");
|
|
577
|
+
const v = m - a.top - a.bottom, $ = f - a.left - a.right, T = ye(m - a[w], v), x = ye(f - a[g], $), O = !t.middlewareData.shift;
|
|
578
|
+
let y = T, E = x;
|
|
579
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (E = $), (o = t.middlewareData.shift) != null && o.enabled.y && (y = v), O && !p) {
|
|
580
|
+
const _ = oe(a.left, 0), C = oe(a.right, 0), A = oe(a.top, 0), P = oe(a.bottom, 0);
|
|
581
|
+
h ? E = f - 2 * (_ !== 0 || C !== 0 ? _ + C : oe(a.left, a.right)) : y = m - 2 * (A !== 0 || P !== 0 ? A + P : oe(a.top, a.bottom));
|
|
582
|
+
}
|
|
583
|
+
await c({
|
|
584
|
+
...t,
|
|
585
|
+
availableWidth: E,
|
|
586
|
+
availableHeight: y
|
|
587
|
+
});
|
|
588
|
+
const S = await r.getDimensions(l.floating);
|
|
589
|
+
return f !== S.width || m !== S.height ? {
|
|
590
|
+
reset: {
|
|
591
|
+
rects: !0
|
|
592
|
+
}
|
|
593
|
+
} : {};
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
function k(e) {
|
|
598
|
+
var t;
|
|
599
|
+
return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
600
|
+
}
|
|
601
|
+
function j(e) {
|
|
602
|
+
return k(e).getComputedStyle(e);
|
|
603
|
+
}
|
|
604
|
+
const lt = Math.min, he = Math.max, Ne = Math.round;
|
|
605
|
+
function Ct(e) {
|
|
606
|
+
const t = j(e);
|
|
607
|
+
let n = parseFloat(t.width), o = parseFloat(t.height);
|
|
608
|
+
const i = e.offsetWidth, s = e.offsetHeight, r = Ne(n) !== i || Ne(o) !== s;
|
|
609
|
+
return r && (n = i, o = s), { width: n, height: o, fallback: r };
|
|
610
|
+
}
|
|
611
|
+
function te(e) {
|
|
612
|
+
return Nt(e) ? (e.nodeName || "").toLowerCase() : "";
|
|
613
|
+
}
|
|
614
|
+
let _e;
|
|
615
|
+
function Ot() {
|
|
616
|
+
if (_e)
|
|
617
|
+
return _e;
|
|
618
|
+
const e = navigator.userAgentData;
|
|
619
|
+
return e && Array.isArray(e.brands) ? (_e = e.brands.map((t) => t.brand + "/" + t.version).join(" "), _e) : navigator.userAgent;
|
|
620
|
+
}
|
|
621
|
+
function V(e) {
|
|
622
|
+
return e instanceof k(e).HTMLElement;
|
|
623
|
+
}
|
|
624
|
+
function Z(e) {
|
|
625
|
+
return e instanceof k(e).Element;
|
|
626
|
+
}
|
|
627
|
+
function Nt(e) {
|
|
628
|
+
return e instanceof k(e).Node;
|
|
629
|
+
}
|
|
630
|
+
function at(e) {
|
|
631
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof k(e).ShadowRoot || e instanceof ShadowRoot;
|
|
632
|
+
}
|
|
633
|
+
function He(e) {
|
|
634
|
+
const { overflow: t, overflowX: n, overflowY: o, display: i } = j(e);
|
|
635
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
|
|
636
|
+
}
|
|
637
|
+
function Nn(e) {
|
|
638
|
+
return ["table", "td", "th"].includes(te(e));
|
|
639
|
+
}
|
|
640
|
+
function qe(e) {
|
|
641
|
+
const t = /firefox/i.test(Ot()), n = j(e), o = n.backdropFilter || n.WebkitBackdropFilter;
|
|
642
|
+
return n.transform !== "none" || n.perspective !== "none" || !!o && o !== "none" || t && n.willChange === "filter" || t && !!n.filter && n.filter !== "none" || ["transform", "perspective"].some((i) => n.willChange.includes(i)) || ["paint", "layout", "strict", "content"].some((i) => {
|
|
643
|
+
const s = n.contain;
|
|
644
|
+
return s != null && s.includes(i);
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
function Et() {
|
|
648
|
+
return !/^((?!chrome|android).)*safari/i.test(Ot());
|
|
649
|
+
}
|
|
650
|
+
function Ze(e) {
|
|
651
|
+
return ["html", "body", "#document"].includes(te(e));
|
|
652
|
+
}
|
|
653
|
+
function zt(e) {
|
|
654
|
+
return Z(e) ? e : e.contextElement;
|
|
655
|
+
}
|
|
656
|
+
const Rt = { x: 1, y: 1 };
|
|
657
|
+
function ce(e) {
|
|
658
|
+
const t = zt(e);
|
|
659
|
+
if (!V(t))
|
|
660
|
+
return Rt;
|
|
661
|
+
const n = t.getBoundingClientRect(), { width: o, height: i, fallback: s } = Ct(t);
|
|
662
|
+
let r = (s ? Ne(n.width) : n.width) / o, l = (s ? Ne(n.height) : n.height) / i;
|
|
663
|
+
return r && Number.isFinite(r) || (r = 1), l && Number.isFinite(l) || (l = 1), { x: r, y: l };
|
|
664
|
+
}
|
|
665
|
+
function $e(e, t, n, o) {
|
|
666
|
+
var i, s;
|
|
667
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
668
|
+
const r = e.getBoundingClientRect(), l = zt(e);
|
|
669
|
+
let c = Rt;
|
|
670
|
+
t && (o ? Z(o) && (c = ce(o)) : c = ce(e));
|
|
671
|
+
const d = l ? k(l) : window, a = !Et() && n;
|
|
672
|
+
let u = (r.left + (a && ((i = d.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / c.x, p = (r.top + (a && ((s = d.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / c.y, h = r.width / c.x, f = r.height / c.y;
|
|
673
|
+
if (l) {
|
|
674
|
+
const m = k(l), w = o && Z(o) ? k(o) : o;
|
|
675
|
+
let g = m.frameElement;
|
|
676
|
+
for (; g && o && w !== m; ) {
|
|
677
|
+
const v = ce(g), $ = g.getBoundingClientRect(), T = getComputedStyle(g);
|
|
678
|
+
$.x += (g.clientLeft + parseFloat(T.paddingLeft)) * v.x, $.y += (g.clientTop + parseFloat(T.paddingTop)) * v.y, u *= v.x, p *= v.y, h *= v.x, f *= v.y, u += $.x, p += $.y, g = k(g).frameElement;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
return { width: h, height: f, top: p, right: u + h, bottom: p + f, left: u, x: u, y: p };
|
|
682
|
+
}
|
|
683
|
+
function ee(e) {
|
|
684
|
+
return ((Nt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
685
|
+
}
|
|
686
|
+
function ke(e) {
|
|
687
|
+
return Z(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
|
|
688
|
+
}
|
|
689
|
+
function Lt(e) {
|
|
690
|
+
return $e(ee(e)).left + ke(e).scrollLeft;
|
|
691
|
+
}
|
|
692
|
+
function be(e) {
|
|
693
|
+
if (te(e) === "html")
|
|
694
|
+
return e;
|
|
695
|
+
const t = e.assignedSlot || e.parentNode || at(e) && e.host || ee(e);
|
|
696
|
+
return at(t) ? t.host : t;
|
|
697
|
+
}
|
|
698
|
+
function Mt(e) {
|
|
699
|
+
const t = be(e);
|
|
700
|
+
return Ze(t) ? t.ownerDocument.body : V(t) && He(t) ? t : Mt(t);
|
|
701
|
+
}
|
|
702
|
+
function Ee(e, t) {
|
|
703
|
+
var n;
|
|
704
|
+
t === void 0 && (t = []);
|
|
705
|
+
const o = Mt(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = k(o);
|
|
706
|
+
return i ? t.concat(s, s.visualViewport || [], He(o) ? o : []) : t.concat(o, Ee(o));
|
|
707
|
+
}
|
|
708
|
+
function dt(e, t, n) {
|
|
709
|
+
return t === "viewport" ? pe(function(o, i) {
|
|
710
|
+
const s = k(o), r = ee(o), l = s.visualViewport;
|
|
711
|
+
let c = r.clientWidth, d = r.clientHeight, a = 0, u = 0;
|
|
712
|
+
if (l) {
|
|
713
|
+
c = l.width, d = l.height;
|
|
714
|
+
const p = Et();
|
|
715
|
+
(p || !p && i === "fixed") && (a = l.offsetLeft, u = l.offsetTop);
|
|
716
|
+
}
|
|
717
|
+
return { width: c, height: d, x: a, y: u };
|
|
718
|
+
}(e, n)) : Z(t) ? pe(function(o, i) {
|
|
719
|
+
const s = $e(o, !0, i === "fixed"), r = s.top + o.clientTop, l = s.left + o.clientLeft, c = V(o) ? ce(o) : { x: 1, y: 1 };
|
|
720
|
+
return { width: o.clientWidth * c.x, height: o.clientHeight * c.y, x: l * c.x, y: r * c.y };
|
|
721
|
+
}(t, n)) : pe(function(o) {
|
|
722
|
+
const i = ee(o), s = ke(o), r = o.ownerDocument.body, l = he(i.scrollWidth, i.clientWidth, r.scrollWidth, r.clientWidth), c = he(i.scrollHeight, i.clientHeight, r.scrollHeight, r.clientHeight);
|
|
723
|
+
let d = -s.scrollLeft + Lt(o);
|
|
724
|
+
const a = -s.scrollTop;
|
|
725
|
+
return j(r).direction === "rtl" && (d += he(i.clientWidth, r.clientWidth) - l), { width: l, height: c, x: d, y: a };
|
|
726
|
+
}(ee(e)));
|
|
727
|
+
}
|
|
728
|
+
function ct(e) {
|
|
729
|
+
return V(e) && j(e).position !== "fixed" ? e.offsetParent : null;
|
|
730
|
+
}
|
|
731
|
+
function ut(e) {
|
|
732
|
+
const t = k(e);
|
|
733
|
+
let n = ct(e);
|
|
734
|
+
for (; n && Nn(n) && j(n).position === "static"; )
|
|
735
|
+
n = ct(n);
|
|
736
|
+
return n && (te(n) === "html" || te(n) === "body" && j(n).position === "static" && !qe(n)) ? t : n || function(o) {
|
|
737
|
+
let i = be(o);
|
|
738
|
+
for (; V(i) && !Ze(i); ) {
|
|
739
|
+
if (qe(i))
|
|
740
|
+
return i;
|
|
741
|
+
i = be(i);
|
|
742
|
+
}
|
|
743
|
+
return null;
|
|
744
|
+
}(e) || t;
|
|
745
|
+
}
|
|
746
|
+
function En(e, t, n) {
|
|
747
|
+
const o = V(t), i = ee(t), s = $e(e, !0, n === "fixed", t);
|
|
748
|
+
let r = { scrollLeft: 0, scrollTop: 0 };
|
|
749
|
+
const l = { x: 0, y: 0 };
|
|
750
|
+
if (o || !o && n !== "fixed")
|
|
751
|
+
if ((te(t) !== "body" || He(i)) && (r = ke(t)), V(t)) {
|
|
752
|
+
const c = $e(t, !0);
|
|
753
|
+
l.x = c.x + t.clientLeft, l.y = c.y + t.clientTop;
|
|
754
|
+
} else
|
|
755
|
+
i && (l.x = Lt(i));
|
|
756
|
+
return { x: s.left + r.scrollLeft - l.x, y: s.top + r.scrollTop - l.y, width: s.width, height: s.height };
|
|
757
|
+
}
|
|
758
|
+
const zn = { getClippingRect: function(e) {
|
|
759
|
+
let { element: t, boundary: n, rootBoundary: o, strategy: i } = e;
|
|
760
|
+
const s = n === "clippingAncestors" ? function(d, a) {
|
|
761
|
+
const u = a.get(d);
|
|
762
|
+
if (u)
|
|
763
|
+
return u;
|
|
764
|
+
let p = Ee(d).filter((w) => Z(w) && te(w) !== "body"), h = null;
|
|
765
|
+
const f = j(d).position === "fixed";
|
|
766
|
+
let m = f ? be(d) : d;
|
|
767
|
+
for (; Z(m) && !Ze(m); ) {
|
|
768
|
+
const w = j(m), g = qe(m);
|
|
769
|
+
(f ? g || h : g || w.position !== "static" || !h || !["absolute", "fixed"].includes(h.position)) ? h = w : p = p.filter((v) => v !== m), m = be(m);
|
|
770
|
+
}
|
|
771
|
+
return a.set(d, p), p;
|
|
772
|
+
}(t, this._c) : [].concat(n), r = [...s, o], l = r[0], c = r.reduce((d, a) => {
|
|
773
|
+
const u = dt(t, a, i);
|
|
774
|
+
return d.top = he(u.top, d.top), d.right = lt(u.right, d.right), d.bottom = lt(u.bottom, d.bottom), d.left = he(u.left, d.left), d;
|
|
775
|
+
}, dt(t, l, i));
|
|
776
|
+
return { width: c.right - c.left, height: c.bottom - c.top, x: c.left, y: c.top };
|
|
777
|
+
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
|
|
778
|
+
let { rect: t, offsetParent: n, strategy: o } = e;
|
|
779
|
+
const i = V(n), s = ee(n);
|
|
780
|
+
if (n === s)
|
|
781
|
+
return t;
|
|
782
|
+
let r = { scrollLeft: 0, scrollTop: 0 }, l = { x: 1, y: 1 };
|
|
783
|
+
const c = { x: 0, y: 0 };
|
|
784
|
+
if ((i || !i && o !== "fixed") && ((te(n) !== "body" || He(s)) && (r = ke(n)), V(n))) {
|
|
785
|
+
const d = $e(n);
|
|
786
|
+
l = ce(n), c.x = d.x + n.clientLeft, c.y = d.y + n.clientTop;
|
|
787
|
+
}
|
|
788
|
+
return { width: t.width * l.x, height: t.height * l.y, x: t.x * l.x - r.scrollLeft * l.x + c.x, y: t.y * l.y - r.scrollTop * l.y + c.y };
|
|
789
|
+
}, isElement: Z, getDimensions: function(e) {
|
|
790
|
+
return V(e) ? Ct(e) : e.getBoundingClientRect();
|
|
791
|
+
}, getOffsetParent: ut, getDocumentElement: ee, getScale: ce, async getElementRects(e) {
|
|
792
|
+
let { reference: t, floating: n, strategy: o } = e;
|
|
793
|
+
const i = this.getOffsetParent || ut, s = this.getDimensions;
|
|
794
|
+
return { reference: En(t, await i(n), o), floating: { x: 0, y: 0, ...await s(n) } };
|
|
795
|
+
}, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => j(e).direction === "rtl" }, Rn = (e, t, n) => {
|
|
796
|
+
const o = /* @__PURE__ */ new Map(), i = { platform: zn, ...n }, s = { ...i.platform, _c: o };
|
|
797
|
+
return bn(e, t, { ...i, platform: s });
|
|
798
|
+
}, se = {
|
|
799
|
+
// Disable popper components
|
|
800
|
+
disabled: !1,
|
|
801
|
+
// Default position offset along main axis (px)
|
|
802
|
+
distance: 5,
|
|
803
|
+
// Default position offset along cross axis (px)
|
|
804
|
+
skidding: 0,
|
|
805
|
+
// Default container where the tooltip will be appended
|
|
806
|
+
container: "body",
|
|
807
|
+
// Element used to compute position and size boundaries
|
|
808
|
+
boundary: void 0,
|
|
809
|
+
// Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
|
|
810
|
+
instantMove: !1,
|
|
811
|
+
// Auto destroy tooltip DOM nodes (ms)
|
|
812
|
+
disposeTimeout: 0,
|
|
813
|
+
// Triggers on the popper itself
|
|
814
|
+
popperTriggers: [],
|
|
815
|
+
// Positioning strategy
|
|
816
|
+
strategy: "absolute",
|
|
817
|
+
// Prevent overflow
|
|
818
|
+
preventOverflow: !0,
|
|
819
|
+
// Flip to the opposite placement if needed
|
|
820
|
+
flip: !0,
|
|
821
|
+
// Shift on the cross axis to prevent the popper from overflowing
|
|
822
|
+
shift: !0,
|
|
823
|
+
// Overflow padding (px)
|
|
824
|
+
overflowPadding: 0,
|
|
825
|
+
// Arrow padding (px)
|
|
826
|
+
arrowPadding: 0,
|
|
827
|
+
// Compute arrow overflow (useful to hide it)
|
|
828
|
+
arrowOverflow: !0,
|
|
829
|
+
// Themes
|
|
830
|
+
themes: {
|
|
831
|
+
tooltip: {
|
|
832
|
+
// Default tooltip placement relative to target element
|
|
833
|
+
placement: "top",
|
|
834
|
+
// Default events that trigger the tooltip
|
|
835
|
+
triggers: ["hover", "focus", "touch"],
|
|
836
|
+
// Close tooltip on click on tooltip target
|
|
837
|
+
hideTriggers: (e) => [...e, "click"],
|
|
838
|
+
// Delay (ms)
|
|
839
|
+
delay: {
|
|
840
|
+
show: 200,
|
|
841
|
+
hide: 0
|
|
842
|
+
},
|
|
843
|
+
// Update popper on content resize
|
|
844
|
+
handleResize: !1,
|
|
845
|
+
// Enable HTML content in directive
|
|
846
|
+
html: !1,
|
|
847
|
+
// Displayed when tooltip content is loading
|
|
848
|
+
loadingContent: "..."
|
|
849
|
+
},
|
|
850
|
+
dropdown: {
|
|
851
|
+
// Default dropdown placement relative to target element
|
|
852
|
+
placement: "bottom",
|
|
853
|
+
// Default events that trigger the dropdown
|
|
854
|
+
triggers: ["click"],
|
|
855
|
+
// Delay (ms)
|
|
856
|
+
delay: 0,
|
|
857
|
+
// Update popper on content resize
|
|
858
|
+
handleResize: !0,
|
|
859
|
+
// Hide on clock outside
|
|
860
|
+
autoHide: !0
|
|
861
|
+
},
|
|
862
|
+
menu: {
|
|
863
|
+
$extend: "dropdown",
|
|
864
|
+
triggers: ["hover", "focus"],
|
|
865
|
+
popperTriggers: ["hover", "focus"],
|
|
866
|
+
delay: {
|
|
867
|
+
show: 0,
|
|
868
|
+
hide: 400
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
function ze(e, t) {
|
|
874
|
+
let n = se.themes[e] || {}, o;
|
|
875
|
+
do
|
|
876
|
+
o = n[t], typeof o > "u" ? n.$extend ? n = se.themes[n.$extend] || {} : (n = null, o = se[t]) : n = null;
|
|
877
|
+
while (n);
|
|
878
|
+
return o;
|
|
879
|
+
}
|
|
880
|
+
function Ln(e) {
|
|
881
|
+
const t = [e];
|
|
882
|
+
let n = se.themes[e] || {};
|
|
883
|
+
do
|
|
884
|
+
n.$extend && !n.$resetCss ? (t.push(n.$extend), n = se.themes[n.$extend] || {}) : n = null;
|
|
885
|
+
while (n);
|
|
886
|
+
return t.map((o) => `v-popper--theme-${o}`);
|
|
887
|
+
}
|
|
888
|
+
function pt(e) {
|
|
889
|
+
const t = [e];
|
|
890
|
+
let n = se.themes[e] || {};
|
|
891
|
+
do
|
|
892
|
+
n.$extend ? (t.push(n.$extend), n = se.themes[n.$extend] || {}) : n = null;
|
|
893
|
+
while (n);
|
|
894
|
+
return t;
|
|
895
|
+
}
|
|
896
|
+
let ue = !1;
|
|
897
|
+
if (typeof window < "u") {
|
|
898
|
+
ue = !1;
|
|
899
|
+
try {
|
|
900
|
+
const e = Object.defineProperty({}, "passive", {
|
|
901
|
+
get() {
|
|
902
|
+
ue = !0;
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
window.addEventListener("test", null, e);
|
|
906
|
+
} catch {
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
let Ht = !1;
|
|
910
|
+
typeof window < "u" && typeof navigator < "u" && (Ht = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
|
|
911
|
+
const kt = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
|
|
912
|
+
t,
|
|
913
|
+
`${t}-start`,
|
|
914
|
+
`${t}-end`
|
|
915
|
+
]), []), ht = {
|
|
916
|
+
hover: "mouseenter",
|
|
917
|
+
focus: "focus",
|
|
918
|
+
click: "click",
|
|
919
|
+
touch: "touchstart",
|
|
920
|
+
pointer: "pointerdown"
|
|
921
|
+
}, ft = {
|
|
922
|
+
hover: "mouseleave",
|
|
923
|
+
focus: "blur",
|
|
924
|
+
click: "click",
|
|
925
|
+
touch: "touchend",
|
|
926
|
+
pointer: "pointerup"
|
|
927
|
+
};
|
|
928
|
+
function mt(e, t) {
|
|
929
|
+
const n = e.indexOf(t);
|
|
930
|
+
n !== -1 && e.splice(n, 1);
|
|
931
|
+
}
|
|
932
|
+
function Fe() {
|
|
933
|
+
return new Promise((e) => requestAnimationFrame(() => {
|
|
934
|
+
requestAnimationFrame(e);
|
|
935
|
+
}));
|
|
936
|
+
}
|
|
937
|
+
const M = [];
|
|
938
|
+
let ne = null;
|
|
939
|
+
const gt = {};
|
|
940
|
+
function wt(e) {
|
|
941
|
+
let t = gt[e];
|
|
942
|
+
return t || (t = gt[e] = []), t;
|
|
943
|
+
}
|
|
944
|
+
let Ge = function() {
|
|
945
|
+
};
|
|
946
|
+
typeof window < "u" && (Ge = window.Element);
|
|
947
|
+
function b(e) {
|
|
948
|
+
return function(t) {
|
|
949
|
+
return ze(t.theme, e);
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
const We = "__floating-vue__popper", Dt = () => Re({
|
|
953
|
+
name: "VPopper",
|
|
954
|
+
provide() {
|
|
955
|
+
return {
|
|
956
|
+
[We]: {
|
|
957
|
+
parentPopper: this
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
},
|
|
961
|
+
inject: {
|
|
962
|
+
[We]: { default: null }
|
|
963
|
+
},
|
|
964
|
+
props: {
|
|
965
|
+
theme: {
|
|
966
|
+
type: String,
|
|
967
|
+
required: !0
|
|
968
|
+
},
|
|
969
|
+
targetNodes: {
|
|
970
|
+
type: Function,
|
|
971
|
+
required: !0
|
|
972
|
+
},
|
|
973
|
+
referenceNode: {
|
|
974
|
+
type: Function,
|
|
975
|
+
default: null
|
|
976
|
+
},
|
|
977
|
+
popperNode: {
|
|
978
|
+
type: Function,
|
|
979
|
+
required: !0
|
|
980
|
+
},
|
|
981
|
+
shown: {
|
|
982
|
+
type: Boolean,
|
|
983
|
+
default: !1
|
|
984
|
+
},
|
|
985
|
+
showGroup: {
|
|
986
|
+
type: String,
|
|
987
|
+
default: null
|
|
988
|
+
},
|
|
989
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
990
|
+
ariaId: {
|
|
991
|
+
default: null
|
|
992
|
+
},
|
|
993
|
+
disabled: {
|
|
994
|
+
type: Boolean,
|
|
995
|
+
default: b("disabled")
|
|
996
|
+
},
|
|
997
|
+
positioningDisabled: {
|
|
998
|
+
type: Boolean,
|
|
999
|
+
default: b("positioningDisabled")
|
|
1000
|
+
},
|
|
1001
|
+
placement: {
|
|
1002
|
+
type: String,
|
|
1003
|
+
default: b("placement"),
|
|
1004
|
+
validator: (e) => kt.includes(e)
|
|
1005
|
+
},
|
|
1006
|
+
delay: {
|
|
1007
|
+
type: [String, Number, Object],
|
|
1008
|
+
default: b("delay")
|
|
1009
|
+
},
|
|
1010
|
+
distance: {
|
|
1011
|
+
type: [Number, String],
|
|
1012
|
+
default: b("distance")
|
|
1013
|
+
},
|
|
1014
|
+
skidding: {
|
|
1015
|
+
type: [Number, String],
|
|
1016
|
+
default: b("skidding")
|
|
1017
|
+
},
|
|
1018
|
+
triggers: {
|
|
1019
|
+
type: Array,
|
|
1020
|
+
default: b("triggers")
|
|
1021
|
+
},
|
|
1022
|
+
showTriggers: {
|
|
1023
|
+
type: [Array, Function],
|
|
1024
|
+
default: b("showTriggers")
|
|
1025
|
+
},
|
|
1026
|
+
hideTriggers: {
|
|
1027
|
+
type: [Array, Function],
|
|
1028
|
+
default: b("hideTriggers")
|
|
1029
|
+
},
|
|
1030
|
+
popperTriggers: {
|
|
1031
|
+
type: Array,
|
|
1032
|
+
default: b("popperTriggers")
|
|
1033
|
+
},
|
|
1034
|
+
popperShowTriggers: {
|
|
1035
|
+
type: [Array, Function],
|
|
1036
|
+
default: b("popperShowTriggers")
|
|
1037
|
+
},
|
|
1038
|
+
popperHideTriggers: {
|
|
1039
|
+
type: [Array, Function],
|
|
1040
|
+
default: b("popperHideTriggers")
|
|
1041
|
+
},
|
|
1042
|
+
container: {
|
|
1043
|
+
type: [String, Object, Ge, Boolean],
|
|
1044
|
+
default: b("container")
|
|
1045
|
+
},
|
|
1046
|
+
boundary: {
|
|
1047
|
+
type: [String, Ge],
|
|
1048
|
+
default: b("boundary")
|
|
1049
|
+
},
|
|
1050
|
+
strategy: {
|
|
1051
|
+
type: String,
|
|
1052
|
+
validator: (e) => ["absolute", "fixed"].includes(e),
|
|
1053
|
+
default: b("strategy")
|
|
1054
|
+
},
|
|
1055
|
+
autoHide: {
|
|
1056
|
+
type: [Boolean, Function],
|
|
1057
|
+
default: b("autoHide")
|
|
1058
|
+
},
|
|
1059
|
+
handleResize: {
|
|
1060
|
+
type: Boolean,
|
|
1061
|
+
default: b("handleResize")
|
|
1062
|
+
},
|
|
1063
|
+
instantMove: {
|
|
1064
|
+
type: Boolean,
|
|
1065
|
+
default: b("instantMove")
|
|
1066
|
+
},
|
|
1067
|
+
eagerMount: {
|
|
1068
|
+
type: Boolean,
|
|
1069
|
+
default: b("eagerMount")
|
|
1070
|
+
},
|
|
1071
|
+
popperClass: {
|
|
1072
|
+
type: [String, Array, Object],
|
|
1073
|
+
default: b("popperClass")
|
|
1074
|
+
},
|
|
1075
|
+
computeTransformOrigin: {
|
|
1076
|
+
type: Boolean,
|
|
1077
|
+
default: b("computeTransformOrigin")
|
|
1078
|
+
},
|
|
1079
|
+
/**
|
|
1080
|
+
* @deprecated
|
|
1081
|
+
*/
|
|
1082
|
+
autoMinSize: {
|
|
1083
|
+
type: Boolean,
|
|
1084
|
+
default: b("autoMinSize")
|
|
1085
|
+
},
|
|
1086
|
+
autoSize: {
|
|
1087
|
+
type: [Boolean, String],
|
|
1088
|
+
default: b("autoSize")
|
|
1089
|
+
},
|
|
1090
|
+
/**
|
|
1091
|
+
* @deprecated
|
|
1092
|
+
*/
|
|
1093
|
+
autoMaxSize: {
|
|
1094
|
+
type: Boolean,
|
|
1095
|
+
default: b("autoMaxSize")
|
|
1096
|
+
},
|
|
1097
|
+
autoBoundaryMaxSize: {
|
|
1098
|
+
type: Boolean,
|
|
1099
|
+
default: b("autoBoundaryMaxSize")
|
|
1100
|
+
},
|
|
1101
|
+
preventOverflow: {
|
|
1102
|
+
type: Boolean,
|
|
1103
|
+
default: b("preventOverflow")
|
|
1104
|
+
},
|
|
1105
|
+
overflowPadding: {
|
|
1106
|
+
type: [Number, String],
|
|
1107
|
+
default: b("overflowPadding")
|
|
1108
|
+
},
|
|
1109
|
+
arrowPadding: {
|
|
1110
|
+
type: [Number, String],
|
|
1111
|
+
default: b("arrowPadding")
|
|
1112
|
+
},
|
|
1113
|
+
arrowOverflow: {
|
|
1114
|
+
type: Boolean,
|
|
1115
|
+
default: b("arrowOverflow")
|
|
1116
|
+
},
|
|
1117
|
+
flip: {
|
|
1118
|
+
type: Boolean,
|
|
1119
|
+
default: b("flip")
|
|
1120
|
+
},
|
|
1121
|
+
shift: {
|
|
1122
|
+
type: Boolean,
|
|
1123
|
+
default: b("shift")
|
|
1124
|
+
},
|
|
1125
|
+
shiftCrossAxis: {
|
|
1126
|
+
type: Boolean,
|
|
1127
|
+
default: b("shiftCrossAxis")
|
|
1128
|
+
},
|
|
1129
|
+
noAutoFocus: {
|
|
1130
|
+
type: Boolean,
|
|
1131
|
+
default: b("noAutoFocus")
|
|
1132
|
+
},
|
|
1133
|
+
disposeTimeout: {
|
|
1134
|
+
type: Number,
|
|
1135
|
+
default: b("disposeTimeout")
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
emits: {
|
|
1139
|
+
show: () => !0,
|
|
1140
|
+
hide: () => !0,
|
|
1141
|
+
"update:shown": (e) => !0,
|
|
1142
|
+
"apply-show": () => !0,
|
|
1143
|
+
"apply-hide": () => !0,
|
|
1144
|
+
"close-group": () => !0,
|
|
1145
|
+
"close-directive": () => !0,
|
|
1146
|
+
"auto-hide": () => !0,
|
|
1147
|
+
resize: () => !0
|
|
1148
|
+
},
|
|
1149
|
+
data() {
|
|
1150
|
+
return {
|
|
1151
|
+
isShown: !1,
|
|
1152
|
+
isMounted: !1,
|
|
1153
|
+
skipTransition: !1,
|
|
1154
|
+
classes: {
|
|
1155
|
+
showFrom: !1,
|
|
1156
|
+
showTo: !1,
|
|
1157
|
+
hideFrom: !1,
|
|
1158
|
+
hideTo: !0
|
|
1159
|
+
},
|
|
1160
|
+
result: {
|
|
1161
|
+
x: 0,
|
|
1162
|
+
y: 0,
|
|
1163
|
+
placement: "",
|
|
1164
|
+
strategy: this.strategy,
|
|
1165
|
+
arrow: {
|
|
1166
|
+
x: 0,
|
|
1167
|
+
y: 0,
|
|
1168
|
+
centerOffset: 0
|
|
1169
|
+
},
|
|
1170
|
+
transformOrigin: null
|
|
1171
|
+
},
|
|
1172
|
+
shownChildren: /* @__PURE__ */ new Set(),
|
|
1173
|
+
lastAutoHide: !0
|
|
1174
|
+
};
|
|
1175
|
+
},
|
|
1176
|
+
computed: {
|
|
1177
|
+
popperId() {
|
|
1178
|
+
return this.ariaId != null ? this.ariaId : this.randomId;
|
|
1179
|
+
},
|
|
1180
|
+
shouldMountContent() {
|
|
1181
|
+
return this.eagerMount || this.isMounted;
|
|
1182
|
+
},
|
|
1183
|
+
slotData() {
|
|
1184
|
+
return {
|
|
1185
|
+
popperId: this.popperId,
|
|
1186
|
+
isShown: this.isShown,
|
|
1187
|
+
shouldMountContent: this.shouldMountContent,
|
|
1188
|
+
skipTransition: this.skipTransition,
|
|
1189
|
+
autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
|
|
1190
|
+
show: this.show,
|
|
1191
|
+
hide: this.hide,
|
|
1192
|
+
handleResize: this.handleResize,
|
|
1193
|
+
onResize: this.onResize,
|
|
1194
|
+
classes: {
|
|
1195
|
+
...this.classes,
|
|
1196
|
+
popperClass: this.popperClass
|
|
1197
|
+
},
|
|
1198
|
+
result: this.positioningDisabled ? null : this.result,
|
|
1199
|
+
attrs: this.$attrs
|
|
1200
|
+
};
|
|
1201
|
+
},
|
|
1202
|
+
parentPopper() {
|
|
1203
|
+
var e;
|
|
1204
|
+
return (e = this[We]) == null ? void 0 : e.parentPopper;
|
|
1205
|
+
},
|
|
1206
|
+
hasPopperShowTriggerHover() {
|
|
1207
|
+
var e, t;
|
|
1208
|
+
return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
watch: {
|
|
1212
|
+
shown: "$_autoShowHide",
|
|
1213
|
+
disabled(e) {
|
|
1214
|
+
e ? this.dispose() : this.init();
|
|
1215
|
+
},
|
|
1216
|
+
async container() {
|
|
1217
|
+
this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
|
|
1218
|
+
},
|
|
1219
|
+
...[
|
|
1220
|
+
"triggers",
|
|
1221
|
+
"positioningDisabled"
|
|
1222
|
+
].reduce((e, t) => (e[t] = "$_refreshListeners", e), {}),
|
|
1223
|
+
...[
|
|
1224
|
+
"placement",
|
|
1225
|
+
"distance",
|
|
1226
|
+
"skidding",
|
|
1227
|
+
"boundary",
|
|
1228
|
+
"strategy",
|
|
1229
|
+
"overflowPadding",
|
|
1230
|
+
"arrowPadding",
|
|
1231
|
+
"preventOverflow",
|
|
1232
|
+
"shift",
|
|
1233
|
+
"shiftCrossAxis",
|
|
1234
|
+
"flip"
|
|
1235
|
+
].reduce((e, t) => (e[t] = "$_computePosition", e), {})
|
|
1236
|
+
},
|
|
1237
|
+
created() {
|
|
1238
|
+
this.$_isDisposed = !0, this.randomId = `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`, 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.");
|
|
1239
|
+
},
|
|
1240
|
+
mounted() {
|
|
1241
|
+
this.init(), this.$_detachPopperNode();
|
|
1242
|
+
},
|
|
1243
|
+
activated() {
|
|
1244
|
+
this.$_autoShowHide();
|
|
1245
|
+
},
|
|
1246
|
+
deactivated() {
|
|
1247
|
+
this.hide();
|
|
1248
|
+
},
|
|
1249
|
+
beforeUnmount() {
|
|
1250
|
+
this.dispose();
|
|
1251
|
+
},
|
|
1252
|
+
methods: {
|
|
1253
|
+
show({ event: e = null, skipDelay: t = !1, force: n = !1 } = {}) {
|
|
1254
|
+
var o, i;
|
|
1255
|
+
(o = this.parentPopper) != null && o.lockedChild && this.parentPopper.lockedChild !== this || (this.$_pendingHide = !1, (n || !this.disabled) && (((i = this.parentPopper) == null ? void 0 : i.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
|
|
1256
|
+
this.$_showFrameLocked = !1;
|
|
1257
|
+
})), this.$emit("update:shown", !0));
|
|
1258
|
+
},
|
|
1259
|
+
hide({ event: e = null, skipDelay: t = !1 } = {}) {
|
|
1260
|
+
var n;
|
|
1261
|
+
if (!this.$_hideInProgress) {
|
|
1262
|
+
if (this.shownChildren.size > 0) {
|
|
1263
|
+
this.$_pendingHide = !0;
|
|
1264
|
+
return;
|
|
1265
|
+
}
|
|
1266
|
+
if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
|
|
1267
|
+
this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
|
|
1268
|
+
this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
|
|
1269
|
+
}, 1e3));
|
|
1270
|
+
return;
|
|
1271
|
+
}
|
|
1272
|
+
((n = this.parentPopper) == null ? void 0 : n.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
init() {
|
|
1276
|
+
var e;
|
|
1277
|
+
this.$_isDisposed && (this.$_isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
|
|
1278
|
+
},
|
|
1279
|
+
dispose() {
|
|
1280
|
+
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"));
|
|
1281
|
+
},
|
|
1282
|
+
async onResize() {
|
|
1283
|
+
this.isShown && (await this.$_computePosition(), this.$emit("resize"));
|
|
1284
|
+
},
|
|
1285
|
+
async $_computePosition() {
|
|
1286
|
+
if (this.$_isDisposed || this.positioningDisabled)
|
|
1287
|
+
return;
|
|
1288
|
+
const e = {
|
|
1289
|
+
strategy: this.strategy,
|
|
1290
|
+
middleware: []
|
|
1291
|
+
};
|
|
1292
|
+
(this.distance || this.skidding) && e.middleware.push(An({
|
|
1293
|
+
mainAxis: this.distance,
|
|
1294
|
+
crossAxis: this.skidding
|
|
1295
|
+
}));
|
|
1296
|
+
const t = this.placement.startsWith("auto");
|
|
1297
|
+
if (t ? e.middleware.push(Sn({
|
|
1298
|
+
alignment: this.placement.split("-")[1] ?? ""
|
|
1299
|
+
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Cn({
|
|
1300
|
+
padding: this.overflowPadding,
|
|
1301
|
+
boundary: this.boundary,
|
|
1302
|
+
crossAxis: this.shiftCrossAxis
|
|
1303
|
+
})), !t && this.flip && e.middleware.push(Tn({
|
|
1304
|
+
padding: this.overflowPadding,
|
|
1305
|
+
boundary: this.boundary
|
|
1306
|
+
}))), e.middleware.push(xn({
|
|
1307
|
+
element: this.$_arrowNode,
|
|
1308
|
+
padding: this.arrowPadding
|
|
1309
|
+
})), this.arrowOverflow && e.middleware.push({
|
|
1310
|
+
name: "arrowOverflow",
|
|
1311
|
+
fn: ({ placement: o, rects: i, middlewareData: s }) => {
|
|
1312
|
+
let r;
|
|
1313
|
+
const { centerOffset: l } = s.arrow;
|
|
1314
|
+
return o.startsWith("top") || o.startsWith("bottom") ? r = Math.abs(l) > i.reference.width / 2 : r = Math.abs(l) > i.reference.height / 2, {
|
|
1315
|
+
data: {
|
|
1316
|
+
overflow: r
|
|
1317
|
+
}
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
}), this.autoMinSize || this.autoSize) {
|
|
1321
|
+
const o = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
|
|
1322
|
+
e.middleware.push({
|
|
1323
|
+
name: "autoSize",
|
|
1324
|
+
fn: ({ rects: i, placement: s, middlewareData: r }) => {
|
|
1325
|
+
var l;
|
|
1326
|
+
if ((l = r.autoSize) != null && l.skip)
|
|
1327
|
+
return {};
|
|
1328
|
+
let c, d;
|
|
1329
|
+
return s.startsWith("top") || s.startsWith("bottom") ? c = i.reference.width : d = i.reference.height, this.$_innerNode.style[o === "min" ? "minWidth" : o === "max" ? "maxWidth" : "width"] = c != null ? `${c}px` : null, this.$_innerNode.style[o === "min" ? "minHeight" : o === "max" ? "maxHeight" : "height"] = d != null ? `${d}px` : null, {
|
|
1330
|
+
data: {
|
|
1331
|
+
skip: !0
|
|
1332
|
+
},
|
|
1333
|
+
reset: {
|
|
1334
|
+
rects: !0
|
|
1335
|
+
}
|
|
1336
|
+
};
|
|
1337
|
+
}
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(On({
|
|
1341
|
+
boundary: this.boundary,
|
|
1342
|
+
padding: this.overflowPadding,
|
|
1343
|
+
apply: ({ availableWidth: o, availableHeight: i }) => {
|
|
1344
|
+
this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = i != null ? `${i}px` : null;
|
|
1345
|
+
}
|
|
1346
|
+
})));
|
|
1347
|
+
const n = await Rn(this.$_referenceNode, this.$_popperNode, e);
|
|
1348
|
+
Object.assign(this.result, {
|
|
1349
|
+
x: n.x,
|
|
1350
|
+
y: n.y,
|
|
1351
|
+
placement: n.placement,
|
|
1352
|
+
strategy: n.strategy,
|
|
1353
|
+
arrow: {
|
|
1354
|
+
...n.middlewareData.arrow,
|
|
1355
|
+
...n.middlewareData.arrowOverflow
|
|
1356
|
+
}
|
|
1357
|
+
});
|
|
1358
|
+
},
|
|
1359
|
+
$_scheduleShow(e = null, t = !1) {
|
|
1360
|
+
if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), ne && this.instantMove && ne.instantMove && ne !== this.parentPopper) {
|
|
1361
|
+
ne.$_applyHide(!0), this.$_applyShow(!0);
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1364
|
+
t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
1365
|
+
},
|
|
1366
|
+
$_scheduleHide(e = null, t = !1) {
|
|
1367
|
+
if (this.shownChildren.size > 0) {
|
|
1368
|
+
this.$_pendingHide = !0;
|
|
1369
|
+
return;
|
|
1370
|
+
}
|
|
1371
|
+
this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (ne = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
|
|
1372
|
+
},
|
|
1373
|
+
$_computeDelay(e) {
|
|
1374
|
+
const t = this.delay;
|
|
1375
|
+
return parseInt(t && t[e] || t || 0);
|
|
1376
|
+
},
|
|
1377
|
+
async $_applyShow(e = !1) {
|
|
1378
|
+
clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await Fe(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
|
|
1379
|
+
...Ee(this.$_referenceNode),
|
|
1380
|
+
...Ee(this.$_popperNode)
|
|
1381
|
+
], "scroll", () => {
|
|
1382
|
+
this.$_computePosition();
|
|
1383
|
+
}));
|
|
1384
|
+
},
|
|
1385
|
+
async $_applyShowEffect() {
|
|
1386
|
+
if (this.$_hideInProgress)
|
|
1387
|
+
return;
|
|
1388
|
+
if (this.computeTransformOrigin) {
|
|
1389
|
+
const t = this.$_referenceNode.getBoundingClientRect(), n = this.$_popperNode.querySelector(".v-popper__wrapper"), o = n.parentNode.getBoundingClientRect(), i = t.x + t.width / 2 - (o.left + n.offsetLeft), s = t.y + t.height / 2 - (o.top + n.offsetTop);
|
|
1390
|
+
this.result.transformOrigin = `${i}px ${s}px`;
|
|
1391
|
+
}
|
|
1392
|
+
this.isShown = !0, this.$_applyAttrsToTarget({
|
|
1393
|
+
"aria-describedby": this.popperId,
|
|
1394
|
+
"data-popper-shown": ""
|
|
1395
|
+
});
|
|
1396
|
+
const e = this.showGroup;
|
|
1397
|
+
if (e) {
|
|
1398
|
+
let t;
|
|
1399
|
+
for (let n = 0; n < M.length; n++)
|
|
1400
|
+
t = M[n], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
|
|
1401
|
+
}
|
|
1402
|
+
M.push(this), document.body.classList.add("v-popper--some-open");
|
|
1403
|
+
for (const t of pt(this.theme))
|
|
1404
|
+
wt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
|
|
1405
|
+
this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await Fe(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
|
|
1406
|
+
},
|
|
1407
|
+
async $_applyHide(e = !1) {
|
|
1408
|
+
if (this.shownChildren.size > 0) {
|
|
1409
|
+
this.$_pendingHide = !0, this.$_hideInProgress = !1;
|
|
1410
|
+
return;
|
|
1411
|
+
}
|
|
1412
|
+
if (clearTimeout(this.$_scheduleTimer), !this.isShown)
|
|
1413
|
+
return;
|
|
1414
|
+
this.skipTransition = e, mt(M, this), M.length === 0 && document.body.classList.remove("v-popper--some-open");
|
|
1415
|
+
for (const n of pt(this.theme)) {
|
|
1416
|
+
const o = wt(n);
|
|
1417
|
+
mt(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${n}`);
|
|
1418
|
+
}
|
|
1419
|
+
ne === this && (ne = null), this.isShown = !1, this.$_applyAttrsToTarget({
|
|
1420
|
+
"aria-describedby": void 0,
|
|
1421
|
+
"data-popper-shown": void 0
|
|
1422
|
+
}), clearTimeout(this.$_disposeTimer);
|
|
1423
|
+
const t = this.disposeTimeout;
|
|
1424
|
+
t !== null && (this.$_disposeTimer = setTimeout(() => {
|
|
1425
|
+
this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
|
|
1426
|
+
}, 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 Fe(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
|
|
1427
|
+
},
|
|
1428
|
+
$_autoShowHide() {
|
|
1429
|
+
this.shown ? this.show() : this.hide();
|
|
1430
|
+
},
|
|
1431
|
+
$_ensureTeleport() {
|
|
1432
|
+
if (this.$_isDisposed)
|
|
1433
|
+
return;
|
|
1434
|
+
let e = this.container;
|
|
1435
|
+
if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
|
|
1436
|
+
throw new Error("No container for popover: " + this.container);
|
|
1437
|
+
e.appendChild(this.$_popperNode), this.isMounted = !0;
|
|
1438
|
+
},
|
|
1439
|
+
$_addEventListeners() {
|
|
1440
|
+
const e = (n) => {
|
|
1441
|
+
this.isShown && !this.$_hideInProgress || (n.usedByTooltip = !0, !this.$_preventShow && this.show({ event: n }));
|
|
1442
|
+
};
|
|
1443
|
+
this.$_registerTriggerListeners(this.$_targetNodes, ht, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], ht, this.popperTriggers, this.popperShowTriggers, e);
|
|
1444
|
+
const t = (n) => {
|
|
1445
|
+
n.usedByTooltip || this.hide({ event: n });
|
|
1446
|
+
};
|
|
1447
|
+
this.$_registerTriggerListeners(this.$_targetNodes, ft, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], ft, this.popperTriggers, this.popperHideTriggers, t);
|
|
1448
|
+
},
|
|
1449
|
+
$_registerEventListeners(e, t, n) {
|
|
1450
|
+
this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n, ue ? {
|
|
1451
|
+
passive: !0
|
|
1452
|
+
} : void 0));
|
|
1453
|
+
},
|
|
1454
|
+
$_registerTriggerListeners(e, t, n, o, i) {
|
|
1455
|
+
let s = n;
|
|
1456
|
+
o != null && (s = typeof o == "function" ? o(s) : o), s.forEach((r) => {
|
|
1457
|
+
const l = t[r];
|
|
1458
|
+
l && this.$_registerEventListeners(e, l, i);
|
|
1459
|
+
});
|
|
1460
|
+
},
|
|
1461
|
+
$_removeEventListeners(e) {
|
|
1462
|
+
const t = [];
|
|
1463
|
+
this.$_events.forEach((n) => {
|
|
1464
|
+
const { targetNodes: o, eventType: i, handler: s } = n;
|
|
1465
|
+
!e || e === i ? o.forEach((r) => r.removeEventListener(i, s)) : t.push(n);
|
|
1466
|
+
}), this.$_events = t;
|
|
1467
|
+
},
|
|
1468
|
+
$_refreshListeners() {
|
|
1469
|
+
this.$_isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
|
|
1470
|
+
},
|
|
1471
|
+
$_handleGlobalClose(e, t = !1) {
|
|
1472
|
+
this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
|
|
1473
|
+
this.$_preventShow = !1;
|
|
1474
|
+
}, 300)));
|
|
1475
|
+
},
|
|
1476
|
+
$_detachPopperNode() {
|
|
1477
|
+
this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
|
|
1478
|
+
},
|
|
1479
|
+
$_swapTargetAttrs(e, t) {
|
|
1480
|
+
for (const n of this.$_targetNodes) {
|
|
1481
|
+
const o = n.getAttribute(e);
|
|
1482
|
+
o && (n.removeAttribute(e), n.setAttribute(t, o));
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
$_applyAttrsToTarget(e) {
|
|
1486
|
+
for (const t of this.$_targetNodes)
|
|
1487
|
+
for (const n in e) {
|
|
1488
|
+
const o = e[n];
|
|
1489
|
+
o == null ? t.removeAttribute(n) : t.setAttribute(n, o);
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
$_updateParentShownChildren(e) {
|
|
1493
|
+
let t = this.parentPopper;
|
|
1494
|
+
for (; t; )
|
|
1495
|
+
e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.$_pendingHide && t.hide()), t = t.parentPopper;
|
|
1496
|
+
},
|
|
1497
|
+
$_isAimingPopper() {
|
|
1498
|
+
const e = this.$_referenceNode.getBoundingClientRect();
|
|
1499
|
+
if (fe >= e.left && fe <= e.right && me >= e.top && me <= e.bottom) {
|
|
1500
|
+
const t = this.$_popperNode.getBoundingClientRect(), n = fe - X, o = me - K, i = t.left + t.width / 2 - X + (t.top + t.height / 2) - K + t.width + t.height, s = X + n * i, r = K + o * i;
|
|
1501
|
+
return Se(X, K, s, r, t.left, t.top, t.left, t.bottom) || // Left edge
|
|
1502
|
+
Se(X, K, s, r, t.left, t.top, t.right, t.top) || // Top edge
|
|
1503
|
+
Se(X, K, s, r, t.right, t.top, t.right, t.bottom) || // Right edge
|
|
1504
|
+
Se(X, K, s, r, t.left, t.bottom, t.right, t.bottom);
|
|
1505
|
+
}
|
|
1506
|
+
return !1;
|
|
1507
|
+
}
|
|
1508
|
+
},
|
|
1509
|
+
render() {
|
|
1510
|
+
return this.$slots.default(this.slotData);
|
|
1511
|
+
}
|
|
1512
|
+
});
|
|
1513
|
+
typeof document < "u" && typeof window < "u" && (Ht ? (document.addEventListener("touchstart", vt, ue ? {
|
|
1514
|
+
passive: !0,
|
|
1515
|
+
capture: !0
|
|
1516
|
+
} : !0), document.addEventListener("touchend", Hn, ue ? {
|
|
1517
|
+
passive: !0,
|
|
1518
|
+
capture: !0
|
|
1519
|
+
} : !0)) : (window.addEventListener("mousedown", vt, !0), window.addEventListener("click", Mn, !0)), window.addEventListener("resize", Bn));
|
|
1520
|
+
function vt(e) {
|
|
1521
|
+
for (let t = 0; t < M.length; t++) {
|
|
1522
|
+
const n = M[t];
|
|
1523
|
+
try {
|
|
1524
|
+
const o = n.popperNode();
|
|
1525
|
+
n.$_mouseDownContains = o.contains(e.target);
|
|
1526
|
+
} catch {
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
function Mn(e) {
|
|
1531
|
+
Bt(e);
|
|
1532
|
+
}
|
|
1533
|
+
function Hn(e) {
|
|
1534
|
+
Bt(e, !0);
|
|
1535
|
+
}
|
|
1536
|
+
function Bt(e, t = !1) {
|
|
1537
|
+
const n = {};
|
|
1538
|
+
for (let o = M.length - 1; o >= 0; o--) {
|
|
1539
|
+
const i = M[o];
|
|
1540
|
+
try {
|
|
1541
|
+
const s = i.$_containsGlobalTarget = kn(i, e);
|
|
1542
|
+
i.$_pendingHide = !1, requestAnimationFrame(() => {
|
|
1543
|
+
if (i.$_pendingHide = !1, !n[i.randomId] && yt(i, s, e)) {
|
|
1544
|
+
if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && s) {
|
|
1545
|
+
let l = i.parentPopper;
|
|
1546
|
+
for (; l; )
|
|
1547
|
+
n[l.randomId] = !0, l = l.parentPopper;
|
|
1548
|
+
return;
|
|
1549
|
+
}
|
|
1550
|
+
let r = i.parentPopper;
|
|
1551
|
+
for (; r && yt(r, r.$_containsGlobalTarget, e); )
|
|
1552
|
+
r.$_handleGlobalClose(e, t), r = r.parentPopper;
|
|
1553
|
+
}
|
|
1554
|
+
});
|
|
1555
|
+
} catch {
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
function kn(e, t) {
|
|
1560
|
+
const n = e.popperNode();
|
|
1561
|
+
return e.$_mouseDownContains || n.contains(t.target);
|
|
1562
|
+
}
|
|
1563
|
+
function yt(e, t, n) {
|
|
1564
|
+
return n.closeAllPopover || n.closePopover && t || Dn(e, n) && !t;
|
|
1565
|
+
}
|
|
1566
|
+
function Dn(e, t) {
|
|
1567
|
+
if (typeof e.autoHide == "function") {
|
|
1568
|
+
const n = e.autoHide(t);
|
|
1569
|
+
return e.lastAutoHide = n, n;
|
|
1570
|
+
}
|
|
1571
|
+
return e.autoHide;
|
|
1572
|
+
}
|
|
1573
|
+
function Bn(e) {
|
|
1574
|
+
for (let t = 0; t < M.length; t++)
|
|
1575
|
+
M[t].$_computePosition(e);
|
|
1576
|
+
}
|
|
1577
|
+
function In() {
|
|
1578
|
+
for (let e = 0; e < M.length; e++)
|
|
1579
|
+
M[e].hide();
|
|
1580
|
+
}
|
|
1581
|
+
let X = 0, K = 0, fe = 0, me = 0;
|
|
1582
|
+
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
1583
|
+
X = fe, K = me, fe = e.clientX, me = e.clientY;
|
|
1584
|
+
}, ue ? {
|
|
1585
|
+
passive: !0
|
|
1586
|
+
} : void 0);
|
|
1587
|
+
function Se(e, t, n, o, i, s, r, l) {
|
|
1588
|
+
const c = ((r - i) * (t - s) - (l - s) * (e - i)) / ((l - s) * (n - e) - (r - i) * (o - t)), d = ((n - e) * (t - s) - (o - t) * (e - i)) / ((l - s) * (n - e) - (r - i) * (o - t));
|
|
1589
|
+
return c >= 0 && c <= 1 && d >= 0 && d <= 1;
|
|
1590
|
+
}
|
|
1591
|
+
const Fn = {
|
|
1592
|
+
extends: Dt()
|
|
1593
|
+
}, De = (e, t) => {
|
|
1594
|
+
const n = e.__vccOpts || e;
|
|
1595
|
+
for (const [o, i] of t)
|
|
1596
|
+
n[o] = i;
|
|
1597
|
+
return n;
|
|
1598
|
+
};
|
|
1599
|
+
function Wn(e, t, n, o, i, s) {
|
|
1600
|
+
return G(), ge("div", {
|
|
1601
|
+
ref: "reference",
|
|
1602
|
+
class: Xe(["v-popper", {
|
|
1603
|
+
"v-popper--shown": e.slotData.isShown
|
|
1604
|
+
}])
|
|
1605
|
+
}, [
|
|
1606
|
+
Pe(e.$slots, "default", Jt(Qt(e.slotData)))
|
|
1607
|
+
], 2);
|
|
1608
|
+
}
|
|
1609
|
+
const jn = /* @__PURE__ */ De(Fn, [["render", Wn]]);
|
|
1610
|
+
function Vn() {
|
|
1611
|
+
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
1612
|
+
if (t > 0)
|
|
1613
|
+
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
1614
|
+
var n = e.indexOf("Trident/");
|
|
1615
|
+
if (n > 0) {
|
|
1616
|
+
var o = e.indexOf("rv:");
|
|
1617
|
+
return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
|
|
1618
|
+
}
|
|
1619
|
+
var i = e.indexOf("Edge/");
|
|
1620
|
+
return i > 0 ? parseInt(e.substring(i + 5, e.indexOf(".", i)), 10) : -1;
|
|
1621
|
+
}
|
|
1622
|
+
let Te;
|
|
1623
|
+
function Ye() {
|
|
1624
|
+
Ye.init || (Ye.init = !0, Te = Vn() !== -1);
|
|
1625
|
+
}
|
|
1626
|
+
var Be = {
|
|
1627
|
+
name: "ResizeObserver",
|
|
1628
|
+
props: {
|
|
1629
|
+
emitOnMount: {
|
|
1630
|
+
type: Boolean,
|
|
1631
|
+
default: !1
|
|
1632
|
+
},
|
|
1633
|
+
ignoreWidth: {
|
|
1634
|
+
type: Boolean,
|
|
1635
|
+
default: !1
|
|
1636
|
+
},
|
|
1637
|
+
ignoreHeight: {
|
|
1638
|
+
type: Boolean,
|
|
1639
|
+
default: !1
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
emits: [
|
|
1643
|
+
"notify"
|
|
1644
|
+
],
|
|
1645
|
+
mounted() {
|
|
1646
|
+
Ye(), Ue(() => {
|
|
1647
|
+
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
1648
|
+
});
|
|
1649
|
+
const e = document.createElement("object");
|
|
1650
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Te && this.$el.appendChild(e), e.data = "about:blank", Te || this.$el.appendChild(e);
|
|
1651
|
+
},
|
|
1652
|
+
beforeUnmount() {
|
|
1653
|
+
this.removeResizeHandlers();
|
|
1654
|
+
},
|
|
1655
|
+
methods: {
|
|
1656
|
+
compareAndNotify() {
|
|
1657
|
+
(!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
|
|
1658
|
+
},
|
|
1659
|
+
emitSize() {
|
|
1660
|
+
this.$emit("notify", {
|
|
1661
|
+
width: this._w,
|
|
1662
|
+
height: this._h
|
|
1663
|
+
});
|
|
1664
|
+
},
|
|
1665
|
+
addResizeHandlers() {
|
|
1666
|
+
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
1667
|
+
},
|
|
1668
|
+
removeResizeHandlers() {
|
|
1669
|
+
this._resizeObject && this._resizeObject.onload && (!Te && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
};
|
|
1673
|
+
const qn = /* @__PURE__ */ Zt("data-v-b329ee4c");
|
|
1674
|
+
Xt("data-v-b329ee4c");
|
|
1675
|
+
const Gn = {
|
|
1676
|
+
class: "resize-observer",
|
|
1677
|
+
tabindex: "-1"
|
|
1678
|
+
};
|
|
1679
|
+
Kt();
|
|
1680
|
+
const Yn = /* @__PURE__ */ qn((e, t, n, o, i, s) => (G(), Le("div", Gn)));
|
|
1681
|
+
Be.render = Yn;
|
|
1682
|
+
Be.__scopeId = "data-v-b329ee4c";
|
|
1683
|
+
Be.__file = "src/components/ResizeObserver.vue";
|
|
1684
|
+
const It = (e = "theme") => ({
|
|
1685
|
+
computed: {
|
|
1686
|
+
themeClass() {
|
|
1687
|
+
return Ln(this[e]);
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}), Un = Re({
|
|
1691
|
+
name: "VPopperContent",
|
|
1692
|
+
components: {
|
|
1693
|
+
ResizeObserver: Be
|
|
1694
|
+
},
|
|
1695
|
+
mixins: [
|
|
1696
|
+
It()
|
|
1697
|
+
],
|
|
1698
|
+
props: {
|
|
1699
|
+
popperId: String,
|
|
1700
|
+
theme: String,
|
|
1701
|
+
shown: Boolean,
|
|
1702
|
+
mounted: Boolean,
|
|
1703
|
+
skipTransition: Boolean,
|
|
1704
|
+
autoHide: Boolean,
|
|
1705
|
+
handleResize: Boolean,
|
|
1706
|
+
classes: Object,
|
|
1707
|
+
result: Object
|
|
1708
|
+
},
|
|
1709
|
+
emits: [
|
|
1710
|
+
"hide",
|
|
1711
|
+
"resize"
|
|
1712
|
+
],
|
|
1713
|
+
methods: {
|
|
1714
|
+
toPx(e) {
|
|
1715
|
+
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
}), Xn = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Kn = {
|
|
1719
|
+
ref: "inner",
|
|
1720
|
+
class: "v-popper__inner"
|
|
1721
|
+
}, Jn = /* @__PURE__ */ ie("div", { class: "v-popper__arrow-outer" }, null, -1), Qn = /* @__PURE__ */ ie("div", { class: "v-popper__arrow-inner" }, null, -1), Zn = [
|
|
1722
|
+
Jn,
|
|
1723
|
+
Qn
|
|
1724
|
+
];
|
|
1725
|
+
function eo(e, t, n, o, i, s) {
|
|
1726
|
+
const r = we("ResizeObserver");
|
|
1727
|
+
return G(), ge("div", {
|
|
1728
|
+
id: e.popperId,
|
|
1729
|
+
ref: "popover",
|
|
1730
|
+
class: Xe(["v-popper__popper", [
|
|
1731
|
+
e.themeClass,
|
|
1732
|
+
e.classes.popperClass,
|
|
1733
|
+
{
|
|
1734
|
+
"v-popper__popper--shown": e.shown,
|
|
1735
|
+
"v-popper__popper--hidden": !e.shown,
|
|
1736
|
+
"v-popper__popper--show-from": e.classes.showFrom,
|
|
1737
|
+
"v-popper__popper--show-to": e.classes.showTo,
|
|
1738
|
+
"v-popper__popper--hide-from": e.classes.hideFrom,
|
|
1739
|
+
"v-popper__popper--hide-to": e.classes.hideTo,
|
|
1740
|
+
"v-popper__popper--skip-transition": e.skipTransition,
|
|
1741
|
+
"v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
|
|
1742
|
+
"v-popper__popper--no-positioning": !e.result
|
|
1743
|
+
}
|
|
1744
|
+
]]),
|
|
1745
|
+
style: Ie(e.result ? {
|
|
1746
|
+
position: e.result.strategy,
|
|
1747
|
+
transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
|
|
1748
|
+
} : void 0),
|
|
1749
|
+
"aria-hidden": e.shown ? "false" : "true",
|
|
1750
|
+
tabindex: e.autoHide ? 0 : void 0,
|
|
1751
|
+
"data-popper-placement": e.result ? e.result.placement : void 0,
|
|
1752
|
+
onKeyup: t[2] || (t[2] = en((l) => e.autoHide && e.$emit("hide"), ["esc"]))
|
|
1753
|
+
}, [
|
|
1754
|
+
ie("div", {
|
|
1755
|
+
class: "v-popper__backdrop",
|
|
1756
|
+
onClick: t[0] || (t[0] = (l) => e.autoHide && e.$emit("hide"))
|
|
1757
|
+
}),
|
|
1758
|
+
ie("div", {
|
|
1759
|
+
class: "v-popper__wrapper",
|
|
1760
|
+
style: Ie(e.result ? {
|
|
1761
|
+
transformOrigin: e.result.transformOrigin
|
|
1762
|
+
} : void 0)
|
|
1763
|
+
}, [
|
|
1764
|
+
ie("div", Kn, [
|
|
1765
|
+
e.mounted ? (G(), ge(tn, { key: 0 }, [
|
|
1766
|
+
ie("div", null, [
|
|
1767
|
+
Pe(e.$slots, "default")
|
|
1768
|
+
]),
|
|
1769
|
+
e.handleResize ? (G(), Le(r, {
|
|
1770
|
+
key: 0,
|
|
1771
|
+
onNotify: t[1] || (t[1] = (l) => e.$emit("resize", l))
|
|
1772
|
+
})) : nt("", !0)
|
|
1773
|
+
], 64)) : nt("", !0)
|
|
1774
|
+
], 512),
|
|
1775
|
+
ie("div", {
|
|
1776
|
+
ref: "arrow",
|
|
1777
|
+
class: "v-popper__arrow-container",
|
|
1778
|
+
style: Ie(e.result ? {
|
|
1779
|
+
left: e.toPx(e.result.arrow.x),
|
|
1780
|
+
top: e.toPx(e.result.arrow.y)
|
|
1781
|
+
} : void 0)
|
|
1782
|
+
}, Zn, 4)
|
|
1783
|
+
], 4)
|
|
1784
|
+
], 46, Xn);
|
|
1785
|
+
}
|
|
1786
|
+
const Ft = /* @__PURE__ */ De(Un, [["render", eo]]), Wt = {
|
|
1787
|
+
methods: {
|
|
1788
|
+
show(...e) {
|
|
1789
|
+
return this.$refs.popper.show(...e);
|
|
1790
|
+
},
|
|
1791
|
+
hide(...e) {
|
|
1792
|
+
return this.$refs.popper.hide(...e);
|
|
1793
|
+
},
|
|
1794
|
+
dispose(...e) {
|
|
1795
|
+
return this.$refs.popper.dispose(...e);
|
|
1796
|
+
},
|
|
1797
|
+
onResize(...e) {
|
|
1798
|
+
return this.$refs.popper.onResize(...e);
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
}, to = Re({
|
|
1802
|
+
name: "VPopperWrapper",
|
|
1803
|
+
components: {
|
|
1804
|
+
Popper: jn,
|
|
1805
|
+
PopperContent: Ft
|
|
1806
|
+
},
|
|
1807
|
+
mixins: [
|
|
1808
|
+
Wt,
|
|
1809
|
+
It("finalTheme")
|
|
1810
|
+
],
|
|
1811
|
+
props: {
|
|
1812
|
+
theme: {
|
|
1813
|
+
type: String,
|
|
1814
|
+
default: null
|
|
1815
|
+
},
|
|
1816
|
+
referenceNode: {
|
|
1817
|
+
type: Function,
|
|
1818
|
+
default: null
|
|
1819
|
+
},
|
|
1820
|
+
shown: {
|
|
1821
|
+
type: Boolean,
|
|
1822
|
+
default: !1
|
|
1823
|
+
},
|
|
1824
|
+
showGroup: {
|
|
1825
|
+
type: String,
|
|
1826
|
+
default: null
|
|
1827
|
+
},
|
|
1828
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
1829
|
+
ariaId: {
|
|
1830
|
+
default: null
|
|
1831
|
+
},
|
|
1832
|
+
disabled: {
|
|
1833
|
+
type: Boolean,
|
|
1834
|
+
default: void 0
|
|
1835
|
+
},
|
|
1836
|
+
positioningDisabled: {
|
|
1837
|
+
type: Boolean,
|
|
1838
|
+
default: void 0
|
|
1839
|
+
},
|
|
1840
|
+
placement: {
|
|
1841
|
+
type: String,
|
|
1842
|
+
default: void 0
|
|
1843
|
+
},
|
|
1844
|
+
delay: {
|
|
1845
|
+
type: [String, Number, Object],
|
|
1846
|
+
default: void 0
|
|
1847
|
+
},
|
|
1848
|
+
distance: {
|
|
1849
|
+
type: [Number, String],
|
|
1850
|
+
default: void 0
|
|
1851
|
+
},
|
|
1852
|
+
skidding: {
|
|
1853
|
+
type: [Number, String],
|
|
1854
|
+
default: void 0
|
|
1855
|
+
},
|
|
1856
|
+
triggers: {
|
|
1857
|
+
type: Array,
|
|
1858
|
+
default: void 0
|
|
1859
|
+
},
|
|
1860
|
+
showTriggers: {
|
|
1861
|
+
type: [Array, Function],
|
|
1862
|
+
default: void 0
|
|
1863
|
+
},
|
|
1864
|
+
hideTriggers: {
|
|
1865
|
+
type: [Array, Function],
|
|
1866
|
+
default: void 0
|
|
1867
|
+
},
|
|
1868
|
+
popperTriggers: {
|
|
1869
|
+
type: Array,
|
|
1870
|
+
default: void 0
|
|
1871
|
+
},
|
|
1872
|
+
popperShowTriggers: {
|
|
1873
|
+
type: [Array, Function],
|
|
1874
|
+
default: void 0
|
|
1875
|
+
},
|
|
1876
|
+
popperHideTriggers: {
|
|
1877
|
+
type: [Array, Function],
|
|
1878
|
+
default: void 0
|
|
1879
|
+
},
|
|
1880
|
+
container: {
|
|
1881
|
+
type: [String, Object, Element, Boolean],
|
|
1882
|
+
default: void 0
|
|
1883
|
+
},
|
|
1884
|
+
boundary: {
|
|
1885
|
+
type: [String, Element],
|
|
1886
|
+
default: void 0
|
|
1887
|
+
},
|
|
1888
|
+
strategy: {
|
|
1889
|
+
type: String,
|
|
1890
|
+
default: void 0
|
|
1891
|
+
},
|
|
1892
|
+
autoHide: {
|
|
1893
|
+
type: [Boolean, Function],
|
|
1894
|
+
default: void 0
|
|
1895
|
+
},
|
|
1896
|
+
handleResize: {
|
|
1897
|
+
type: Boolean,
|
|
1898
|
+
default: void 0
|
|
1899
|
+
},
|
|
1900
|
+
instantMove: {
|
|
1901
|
+
type: Boolean,
|
|
1902
|
+
default: void 0
|
|
1903
|
+
},
|
|
1904
|
+
eagerMount: {
|
|
1905
|
+
type: Boolean,
|
|
1906
|
+
default: void 0
|
|
1907
|
+
},
|
|
1908
|
+
popperClass: {
|
|
1909
|
+
type: [String, Array, Object],
|
|
1910
|
+
default: void 0
|
|
1911
|
+
},
|
|
1912
|
+
computeTransformOrigin: {
|
|
1913
|
+
type: Boolean,
|
|
1914
|
+
default: void 0
|
|
1915
|
+
},
|
|
1916
|
+
/**
|
|
1917
|
+
* @deprecated
|
|
1918
|
+
*/
|
|
1919
|
+
autoMinSize: {
|
|
1920
|
+
type: Boolean,
|
|
1921
|
+
default: void 0
|
|
1922
|
+
},
|
|
1923
|
+
autoSize: {
|
|
1924
|
+
type: [Boolean, String],
|
|
1925
|
+
default: void 0
|
|
1926
|
+
},
|
|
1927
|
+
/**
|
|
1928
|
+
* @deprecated
|
|
1929
|
+
*/
|
|
1930
|
+
autoMaxSize: {
|
|
1931
|
+
type: Boolean,
|
|
1932
|
+
default: void 0
|
|
1933
|
+
},
|
|
1934
|
+
autoBoundaryMaxSize: {
|
|
1935
|
+
type: Boolean,
|
|
1936
|
+
default: void 0
|
|
1937
|
+
},
|
|
1938
|
+
preventOverflow: {
|
|
1939
|
+
type: Boolean,
|
|
1940
|
+
default: void 0
|
|
1941
|
+
},
|
|
1942
|
+
overflowPadding: {
|
|
1943
|
+
type: [Number, String],
|
|
1944
|
+
default: void 0
|
|
1945
|
+
},
|
|
1946
|
+
arrowPadding: {
|
|
1947
|
+
type: [Number, String],
|
|
1948
|
+
default: void 0
|
|
1949
|
+
},
|
|
1950
|
+
arrowOverflow: {
|
|
1951
|
+
type: Boolean,
|
|
1952
|
+
default: void 0
|
|
1953
|
+
},
|
|
1954
|
+
flip: {
|
|
1955
|
+
type: Boolean,
|
|
1956
|
+
default: void 0
|
|
1957
|
+
},
|
|
1958
|
+
shift: {
|
|
1959
|
+
type: Boolean,
|
|
1960
|
+
default: void 0
|
|
1961
|
+
},
|
|
1962
|
+
shiftCrossAxis: {
|
|
1963
|
+
type: Boolean,
|
|
1964
|
+
default: void 0
|
|
1965
|
+
},
|
|
1966
|
+
noAutoFocus: {
|
|
1967
|
+
type: Boolean,
|
|
1968
|
+
default: void 0
|
|
1969
|
+
},
|
|
1970
|
+
disposeTimeout: {
|
|
1971
|
+
type: Number,
|
|
1972
|
+
default: void 0
|
|
1973
|
+
}
|
|
1974
|
+
},
|
|
1975
|
+
emits: {
|
|
1976
|
+
show: () => !0,
|
|
1977
|
+
hide: () => !0,
|
|
1978
|
+
"update:shown": (e) => !0,
|
|
1979
|
+
"apply-show": () => !0,
|
|
1980
|
+
"apply-hide": () => !0,
|
|
1981
|
+
"close-group": () => !0,
|
|
1982
|
+
"close-directive": () => !0,
|
|
1983
|
+
"auto-hide": () => !0,
|
|
1984
|
+
resize: () => !0
|
|
1985
|
+
},
|
|
1986
|
+
computed: {
|
|
1987
|
+
finalTheme() {
|
|
1988
|
+
return this.theme ?? this.$options.vPopperTheme;
|
|
1989
|
+
}
|
|
1990
|
+
},
|
|
1991
|
+
methods: {
|
|
1992
|
+
getTargetNodes() {
|
|
1993
|
+
return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
});
|
|
1997
|
+
function no(e, t, n, o, i, s) {
|
|
1998
|
+
const r = we("PopperContent"), l = we("Popper");
|
|
1999
|
+
return G(), Le(l, xt({ ref: "popper" }, e.$props, {
|
|
2000
|
+
theme: e.finalTheme,
|
|
2001
|
+
"target-nodes": e.getTargetNodes,
|
|
2002
|
+
"popper-node": () => e.$refs.popperContent.$el,
|
|
2003
|
+
class: [
|
|
2004
|
+
e.themeClass
|
|
2005
|
+
],
|
|
2006
|
+
onShow: t[0] || (t[0] = () => e.$emit("show")),
|
|
2007
|
+
onHide: t[1] || (t[1] = () => e.$emit("hide")),
|
|
2008
|
+
"onUpdate:shown": t[2] || (t[2] = (c) => e.$emit("update:shown", c)),
|
|
2009
|
+
onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
|
|
2010
|
+
onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
|
|
2011
|
+
onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
|
|
2012
|
+
onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
|
|
2013
|
+
onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
|
|
2014
|
+
onResize: t[8] || (t[8] = () => e.$emit("resize"))
|
|
2015
|
+
}), {
|
|
2016
|
+
default: Ae(({
|
|
2017
|
+
popperId: c,
|
|
2018
|
+
isShown: d,
|
|
2019
|
+
shouldMountContent: a,
|
|
2020
|
+
skipTransition: u,
|
|
2021
|
+
autoHide: p,
|
|
2022
|
+
show: h,
|
|
2023
|
+
hide: f,
|
|
2024
|
+
handleResize: m,
|
|
2025
|
+
onResize: w,
|
|
2026
|
+
classes: g,
|
|
2027
|
+
result: v
|
|
2028
|
+
}) => [
|
|
2029
|
+
Pe(e.$slots, "default", {
|
|
2030
|
+
shown: d,
|
|
2031
|
+
show: h,
|
|
2032
|
+
hide: f
|
|
2033
|
+
}),
|
|
2034
|
+
_t(r, {
|
|
2035
|
+
ref: "popperContent",
|
|
2036
|
+
"popper-id": c,
|
|
2037
|
+
theme: e.finalTheme,
|
|
2038
|
+
shown: d,
|
|
2039
|
+
mounted: a,
|
|
2040
|
+
"skip-transition": u,
|
|
2041
|
+
"auto-hide": p,
|
|
2042
|
+
"handle-resize": m,
|
|
2043
|
+
classes: g,
|
|
2044
|
+
result: v,
|
|
2045
|
+
onHide: f,
|
|
2046
|
+
onResize: w
|
|
2047
|
+
}, {
|
|
2048
|
+
default: Ae(() => [
|
|
2049
|
+
Pe(e.$slots, "popper", {
|
|
2050
|
+
shown: d,
|
|
2051
|
+
hide: f
|
|
2052
|
+
})
|
|
2053
|
+
]),
|
|
2054
|
+
_: 2
|
|
2055
|
+
}, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
2056
|
+
]),
|
|
2057
|
+
_: 3
|
|
2058
|
+
}, 16, ["theme", "target-nodes", "popper-node", "class"]);
|
|
2059
|
+
}
|
|
2060
|
+
const et = /* @__PURE__ */ De(to, [["render", no]]);
|
|
2061
|
+
({
|
|
2062
|
+
...et
|
|
2063
|
+
});
|
|
2064
|
+
({
|
|
2065
|
+
...et
|
|
2066
|
+
});
|
|
2067
|
+
const oo = {
|
|
2068
|
+
...et,
|
|
2069
|
+
name: "VTooltip",
|
|
2070
|
+
vPopperTheme: "tooltip"
|
|
2071
|
+
}, io = Re({
|
|
2072
|
+
name: "VTooltipDirective",
|
|
2073
|
+
components: {
|
|
2074
|
+
Popper: Dt(),
|
|
2075
|
+
PopperContent: Ft
|
|
2076
|
+
},
|
|
2077
|
+
mixins: [
|
|
2078
|
+
Wt
|
|
2079
|
+
],
|
|
2080
|
+
inheritAttrs: !1,
|
|
2081
|
+
props: {
|
|
2082
|
+
theme: {
|
|
2083
|
+
type: String,
|
|
2084
|
+
default: "tooltip"
|
|
2085
|
+
},
|
|
2086
|
+
html: {
|
|
2087
|
+
type: Boolean,
|
|
2088
|
+
default: (e) => ze(e.theme, "html")
|
|
2089
|
+
},
|
|
2090
|
+
content: {
|
|
2091
|
+
type: [String, Number, Function],
|
|
2092
|
+
default: null
|
|
2093
|
+
},
|
|
2094
|
+
loadingContent: {
|
|
2095
|
+
type: String,
|
|
2096
|
+
default: (e) => ze(e.theme, "loadingContent")
|
|
2097
|
+
},
|
|
2098
|
+
targetNodes: {
|
|
2099
|
+
type: Function,
|
|
2100
|
+
required: !0
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
data() {
|
|
2104
|
+
return {
|
|
2105
|
+
asyncContent: null
|
|
2106
|
+
};
|
|
2107
|
+
},
|
|
2108
|
+
computed: {
|
|
2109
|
+
isContentAsync() {
|
|
2110
|
+
return typeof this.content == "function";
|
|
2111
|
+
},
|
|
2112
|
+
loading() {
|
|
2113
|
+
return this.isContentAsync && this.asyncContent == null;
|
|
2114
|
+
},
|
|
2115
|
+
finalContent() {
|
|
2116
|
+
return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
|
|
2117
|
+
}
|
|
2118
|
+
},
|
|
2119
|
+
watch: {
|
|
2120
|
+
content: {
|
|
2121
|
+
handler() {
|
|
2122
|
+
this.fetchContent(!0);
|
|
2123
|
+
},
|
|
2124
|
+
immediate: !0
|
|
2125
|
+
},
|
|
2126
|
+
async finalContent() {
|
|
2127
|
+
await this.$nextTick(), this.$refs.popper.onResize();
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
created() {
|
|
2131
|
+
this.$_fetchId = 0;
|
|
2132
|
+
},
|
|
2133
|
+
methods: {
|
|
2134
|
+
fetchContent(e) {
|
|
2135
|
+
if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
|
|
2136
|
+
this.asyncContent = null, this.$_loading = !0;
|
|
2137
|
+
const t = ++this.$_fetchId, n = this.content(this);
|
|
2138
|
+
n.then ? n.then((o) => this.onResult(t, o)) : this.onResult(t, n);
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
onResult(e, t) {
|
|
2142
|
+
e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
|
|
2143
|
+
},
|
|
2144
|
+
onShow() {
|
|
2145
|
+
this.$_isShown = !0, this.fetchContent();
|
|
2146
|
+
},
|
|
2147
|
+
onHide() {
|
|
2148
|
+
this.$_isShown = !1;
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
}), so = ["innerHTML"], ro = ["textContent"];
|
|
2152
|
+
function lo(e, t, n, o, i, s) {
|
|
2153
|
+
const r = we("PopperContent"), l = we("Popper");
|
|
2154
|
+
return G(), Le(l, xt({ ref: "popper" }, e.$attrs, {
|
|
2155
|
+
theme: e.theme,
|
|
2156
|
+
"target-nodes": e.targetNodes,
|
|
2157
|
+
"popper-node": () => e.$refs.popperContent.$el,
|
|
2158
|
+
onApplyShow: e.onShow,
|
|
2159
|
+
onApplyHide: e.onHide
|
|
2160
|
+
}), {
|
|
2161
|
+
default: Ae(({
|
|
2162
|
+
popperId: c,
|
|
2163
|
+
isShown: d,
|
|
2164
|
+
shouldMountContent: a,
|
|
2165
|
+
skipTransition: u,
|
|
2166
|
+
autoHide: p,
|
|
2167
|
+
hide: h,
|
|
2168
|
+
handleResize: f,
|
|
2169
|
+
onResize: m,
|
|
2170
|
+
classes: w,
|
|
2171
|
+
result: g
|
|
2172
|
+
}) => [
|
|
2173
|
+
_t(r, {
|
|
2174
|
+
ref: "popperContent",
|
|
2175
|
+
class: Xe({
|
|
2176
|
+
"v-popper--tooltip-loading": e.loading
|
|
2177
|
+
}),
|
|
2178
|
+
"popper-id": c,
|
|
2179
|
+
theme: e.theme,
|
|
2180
|
+
shown: d,
|
|
2181
|
+
mounted: a,
|
|
2182
|
+
"skip-transition": u,
|
|
2183
|
+
"auto-hide": p,
|
|
2184
|
+
"handle-resize": f,
|
|
2185
|
+
classes: w,
|
|
2186
|
+
result: g,
|
|
2187
|
+
onHide: h,
|
|
2188
|
+
onResize: m
|
|
2189
|
+
}, {
|
|
2190
|
+
default: Ae(() => [
|
|
2191
|
+
e.html ? (G(), ge("div", {
|
|
2192
|
+
key: 0,
|
|
2193
|
+
innerHTML: e.finalContent
|
|
2194
|
+
}, null, 8, so)) : (G(), ge("div", {
|
|
2195
|
+
key: 1,
|
|
2196
|
+
textContent: sn(e.finalContent)
|
|
2197
|
+
}, null, 8, ro))
|
|
2198
|
+
]),
|
|
2199
|
+
_: 2
|
|
2200
|
+
}, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
2201
|
+
]),
|
|
2202
|
+
_: 1
|
|
2203
|
+
}, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
2204
|
+
}
|
|
2205
|
+
const ao = /* @__PURE__ */ De(io, [["render", lo]]), jt = "v-popper--has-tooltip";
|
|
2206
|
+
function co(e, t) {
|
|
2207
|
+
let n = e.placement;
|
|
2208
|
+
if (!n && t)
|
|
2209
|
+
for (const o of kt)
|
|
2210
|
+
t[o] && (n = o);
|
|
2211
|
+
return n || (n = ze(e.theme || "tooltip", "placement")), n;
|
|
2212
|
+
}
|
|
2213
|
+
function uo(e, t, n) {
|
|
2214
|
+
let o;
|
|
2215
|
+
const i = typeof t;
|
|
2216
|
+
return i === "string" ? o = { content: t } : t && i === "object" ? o = t : o = { content: !1 }, o.placement = co(o, n), o.targetNodes = () => [e], o.referenceNode = () => e, o;
|
|
2217
|
+
}
|
|
2218
|
+
let je, xe, po = 0;
|
|
2219
|
+
function ho() {
|
|
2220
|
+
if (je)
|
|
2221
|
+
return;
|
|
2222
|
+
xe = z([]), je = nn({
|
|
2223
|
+
name: "VTooltipDirectiveApp",
|
|
2224
|
+
setup() {
|
|
2225
|
+
return {
|
|
2226
|
+
directives: xe
|
|
2227
|
+
};
|
|
2228
|
+
},
|
|
2229
|
+
render() {
|
|
2230
|
+
return this.directives.map((t) => on(ao, {
|
|
2231
|
+
...t.options,
|
|
2232
|
+
shown: t.shown || t.options.shown,
|
|
2233
|
+
key: t.id
|
|
2234
|
+
}));
|
|
2235
|
+
},
|
|
2236
|
+
devtools: {
|
|
2237
|
+
hide: !0
|
|
2238
|
+
}
|
|
2239
|
+
});
|
|
2240
|
+
const e = document.createElement("div");
|
|
2241
|
+
document.body.appendChild(e), je.mount(e);
|
|
2242
|
+
}
|
|
2243
|
+
function fo(e, t, n) {
|
|
2244
|
+
ho();
|
|
2245
|
+
const o = z(uo(e, t, n)), i = z(!1), s = {
|
|
2246
|
+
id: po++,
|
|
2247
|
+
options: o,
|
|
2248
|
+
shown: i
|
|
2249
|
+
};
|
|
2250
|
+
return xe.value.push(s), e.classList && e.classList.add(jt), e.$_popper = {
|
|
2251
|
+
options: o,
|
|
2252
|
+
item: s,
|
|
2253
|
+
show() {
|
|
2254
|
+
i.value = !0;
|
|
2255
|
+
},
|
|
2256
|
+
hide() {
|
|
2257
|
+
i.value = !1;
|
|
2258
|
+
}
|
|
2259
|
+
};
|
|
2260
|
+
}
|
|
2261
|
+
function mo(e) {
|
|
2262
|
+
if (e.$_popper) {
|
|
2263
|
+
const t = xe.value.indexOf(e.$_popper.item);
|
|
2264
|
+
t !== -1 && xe.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
|
|
2265
|
+
}
|
|
2266
|
+
e.classList && e.classList.remove(jt);
|
|
2267
|
+
}
|
|
2268
|
+
const No = oo;
|
|
2269
|
+
function tt(e) {
|
|
2270
|
+
return ln() ? (an(e), !0) : !1;
|
|
2271
|
+
}
|
|
2272
|
+
function L(e) {
|
|
2273
|
+
return typeof e == "function" ? e() : rn(e);
|
|
2274
|
+
}
|
|
2275
|
+
const Vt = typeof window < "u" && typeof document < "u";
|
|
2276
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2277
|
+
const go = (e) => typeof e < "u", wo = Object.prototype.toString, vo = (e) => wo.call(e) === "[object Object]", I = () => {
|
|
2278
|
+
}, yo = /* @__PURE__ */ $o();
|
|
2279
|
+
function $o() {
|
|
2280
|
+
var e, t;
|
|
2281
|
+
return Vt && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
2282
|
+
}
|
|
2283
|
+
function qt(e, t) {
|
|
2284
|
+
function n(...o) {
|
|
2285
|
+
return new Promise((i, s) => {
|
|
2286
|
+
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(i).catch(s);
|
|
2287
|
+
});
|
|
2288
|
+
}
|
|
2289
|
+
return n;
|
|
2290
|
+
}
|
|
2291
|
+
function bo(e, t = {}) {
|
|
2292
|
+
let n, o, i = I;
|
|
2293
|
+
const s = (l) => {
|
|
2294
|
+
clearTimeout(l), i(), i = I;
|
|
2295
|
+
};
|
|
2296
|
+
return (l) => {
|
|
2297
|
+
const c = L(e), d = L(t.maxWait);
|
|
2298
|
+
return n && s(n), c <= 0 || d !== void 0 && d <= 0 ? (o && (s(o), o = null), Promise.resolve(l())) : new Promise((a, u) => {
|
|
2299
|
+
i = t.rejectOnCancel ? u : a, d && !o && (o = setTimeout(() => {
|
|
2300
|
+
n && s(n), o = null, a(l());
|
|
2301
|
+
}, d)), n = setTimeout(() => {
|
|
2302
|
+
o && s(o), o = null, a(l());
|
|
2303
|
+
}, c);
|
|
2304
|
+
});
|
|
2305
|
+
};
|
|
2306
|
+
}
|
|
2307
|
+
function xo(...e) {
|
|
2308
|
+
let t = 0, n, o = !0, i = I, s, r, l, c, d;
|
|
2309
|
+
!dn(e[0]) && typeof e[0] == "object" ? { delay: r, trailing: l = !0, leading: c = !0, rejectOnCancel: d = !1 } = e[0] : [r, l = !0, c = !0, d = !1] = e;
|
|
2310
|
+
const a = () => {
|
|
2311
|
+
n && (clearTimeout(n), n = void 0, i(), i = I);
|
|
2312
|
+
};
|
|
2313
|
+
return (p) => {
|
|
2314
|
+
const h = L(r), f = Date.now() - t, m = () => s = p();
|
|
2315
|
+
return a(), h <= 0 ? (t = Date.now(), m()) : (f > h && (c || !o) ? (t = Date.now(), m()) : l && (s = new Promise((w, g) => {
|
|
2316
|
+
i = d ? g : w, n = setTimeout(() => {
|
|
2317
|
+
t = Date.now(), o = !0, w(m()), a();
|
|
2318
|
+
}, Math.max(0, h - f));
|
|
2319
|
+
})), !c && !n && (n = setTimeout(() => o = !0, h)), o = !1, s);
|
|
2320
|
+
};
|
|
2321
|
+
}
|
|
2322
|
+
const Eo = {
|
|
2323
|
+
mounted: "mounted",
|
|
2324
|
+
updated: "updated",
|
|
2325
|
+
unmounted: "unmounted"
|
|
2326
|
+
};
|
|
2327
|
+
function _o(e, t) {
|
|
2328
|
+
var n;
|
|
2329
|
+
if (typeof e == "number")
|
|
2330
|
+
return e + t;
|
|
2331
|
+
const o = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", i = e.slice(o.length), s = Number.parseFloat(o) + t;
|
|
2332
|
+
return Number.isNaN(s) ? e : s + i;
|
|
2333
|
+
}
|
|
2334
|
+
function So(e) {
|
|
2335
|
+
return e || Ke();
|
|
2336
|
+
}
|
|
2337
|
+
function zo(...e) {
|
|
2338
|
+
if (e.length !== 1)
|
|
2339
|
+
return cn(...e);
|
|
2340
|
+
const t = e[0];
|
|
2341
|
+
return typeof t == "function" ? un(pn(() => ({ get: t, set: I }))) : z(t);
|
|
2342
|
+
}
|
|
2343
|
+
function To(e, t = 200, n = {}) {
|
|
2344
|
+
return qt(
|
|
2345
|
+
bo(t, n),
|
|
2346
|
+
e
|
|
2347
|
+
);
|
|
2348
|
+
}
|
|
2349
|
+
function Po(e, t = 200, n = !1, o = !0, i = !1) {
|
|
2350
|
+
return qt(
|
|
2351
|
+
xo(t, n, o, i),
|
|
2352
|
+
e
|
|
2353
|
+
);
|
|
2354
|
+
}
|
|
2355
|
+
function Gt(e, t = !0, n) {
|
|
2356
|
+
So() ? St(e, n) : t ? e() : Ue(e);
|
|
2357
|
+
}
|
|
2358
|
+
function J(e) {
|
|
2359
|
+
var t;
|
|
2360
|
+
const n = L(e);
|
|
2361
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
2362
|
+
}
|
|
2363
|
+
const ae = Vt ? window : void 0;
|
|
2364
|
+
function D(...e) {
|
|
2365
|
+
let t, n, o, i;
|
|
2366
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, i] = e, t = ae) : [t, n, o, i] = e, !t)
|
|
2367
|
+
return I;
|
|
2368
|
+
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
2369
|
+
const s = [], r = () => {
|
|
2370
|
+
s.forEach((a) => a()), s.length = 0;
|
|
2371
|
+
}, l = (a, u, p, h) => (a.addEventListener(u, p, h), () => a.removeEventListener(u, p, h)), c = ve(
|
|
2372
|
+
() => [J(t), L(i)],
|
|
2373
|
+
([a, u]) => {
|
|
2374
|
+
if (r(), !a)
|
|
2375
|
+
return;
|
|
2376
|
+
const p = vo(u) ? { ...u } : u;
|
|
2377
|
+
s.push(
|
|
2378
|
+
...n.flatMap((h) => o.map((f) => l(a, h, f, p)))
|
|
2379
|
+
);
|
|
2380
|
+
},
|
|
2381
|
+
{ immediate: !0, flush: "post" }
|
|
2382
|
+
), d = () => {
|
|
2383
|
+
c(), r();
|
|
2384
|
+
};
|
|
2385
|
+
return tt(d), d;
|
|
2386
|
+
}
|
|
2387
|
+
let $t = !1;
|
|
2388
|
+
function Ro(e, t, n = {}) {
|
|
2389
|
+
const { window: o = ae, ignore: i = [], capture: s = !0, detectIframe: r = !1 } = n;
|
|
2390
|
+
if (!o)
|
|
2391
|
+
return I;
|
|
2392
|
+
yo && !$t && ($t = !0, Array.from(o.document.body.children).forEach((p) => p.addEventListener("click", I)), o.document.documentElement.addEventListener("click", I));
|
|
2393
|
+
let l = !0;
|
|
2394
|
+
const c = (p) => i.some((h) => {
|
|
2395
|
+
if (typeof h == "string")
|
|
2396
|
+
return Array.from(o.document.querySelectorAll(h)).some((f) => f === p.target || p.composedPath().includes(f));
|
|
2397
|
+
{
|
|
2398
|
+
const f = J(h);
|
|
2399
|
+
return f && (p.target === f || p.composedPath().includes(f));
|
|
2400
|
+
}
|
|
2401
|
+
}), a = [
|
|
2402
|
+
D(o, "click", (p) => {
|
|
2403
|
+
const h = J(e);
|
|
2404
|
+
if (!(!h || h === p.target || p.composedPath().includes(h))) {
|
|
2405
|
+
if (p.detail === 0 && (l = !c(p)), !l) {
|
|
2406
|
+
l = !0;
|
|
2407
|
+
return;
|
|
2408
|
+
}
|
|
2409
|
+
t(p);
|
|
2410
|
+
}
|
|
2411
|
+
}, { passive: !0, capture: s }),
|
|
2412
|
+
D(o, "pointerdown", (p) => {
|
|
2413
|
+
const h = J(e);
|
|
2414
|
+
l = !c(p) && !!(h && !p.composedPath().includes(h));
|
|
2415
|
+
}, { passive: !0 }),
|
|
2416
|
+
r && D(o, "blur", (p) => {
|
|
2417
|
+
setTimeout(() => {
|
|
2418
|
+
var h;
|
|
2419
|
+
const f = J(e);
|
|
2420
|
+
((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && t(p);
|
|
2421
|
+
}, 0);
|
|
2422
|
+
})
|
|
2423
|
+
].filter(Boolean);
|
|
2424
|
+
return () => a.forEach((p) => p());
|
|
2425
|
+
}
|
|
2426
|
+
function Ao() {
|
|
2427
|
+
const e = z(!1), t = Ke();
|
|
2428
|
+
return t && St(() => {
|
|
2429
|
+
e.value = !0;
|
|
2430
|
+
}, t), e;
|
|
2431
|
+
}
|
|
2432
|
+
function Yt(e) {
|
|
2433
|
+
const t = Ao();
|
|
2434
|
+
return re(() => (t.value, !!e()));
|
|
2435
|
+
}
|
|
2436
|
+
function de(e, t = {}) {
|
|
2437
|
+
const { window: n = ae } = t, o = Yt(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
|
|
2438
|
+
let i;
|
|
2439
|
+
const s = z(!1), r = (d) => {
|
|
2440
|
+
s.value = d.matches;
|
|
2441
|
+
}, l = () => {
|
|
2442
|
+
i && ("removeEventListener" in i ? i.removeEventListener("change", r) : i.removeListener(r));
|
|
2443
|
+
}, c = hn(() => {
|
|
2444
|
+
o.value && (l(), i = n.matchMedia(L(e)), "addEventListener" in i ? i.addEventListener("change", r) : i.addListener(r), s.value = i.matches);
|
|
2445
|
+
});
|
|
2446
|
+
return tt(() => {
|
|
2447
|
+
c(), l(), i = void 0;
|
|
2448
|
+
}), s;
|
|
2449
|
+
}
|
|
2450
|
+
const Lo = {
|
|
2451
|
+
sm: 640,
|
|
2452
|
+
md: 768,
|
|
2453
|
+
lg: 1024,
|
|
2454
|
+
xl: 1280,
|
|
2455
|
+
"2xl": 1536
|
|
2456
|
+
};
|
|
2457
|
+
function Mo(e, t = {}) {
|
|
2458
|
+
function n(a, u) {
|
|
2459
|
+
let p = L(e[L(a)]);
|
|
2460
|
+
return u != null && (p = _o(p, u)), typeof p == "number" && (p = `${p}px`), p;
|
|
2461
|
+
}
|
|
2462
|
+
const { window: o = ae, strategy: i = "min-width" } = t;
|
|
2463
|
+
function s(a) {
|
|
2464
|
+
return o ? o.matchMedia(a).matches : !1;
|
|
2465
|
+
}
|
|
2466
|
+
const r = (a) => de(() => `(min-width: ${n(a)})`, t), l = (a) => de(() => `(max-width: ${n(a)})`, t), c = Object.keys(e).reduce((a, u) => (Object.defineProperty(a, u, {
|
|
2467
|
+
get: () => i === "min-width" ? r(u) : l(u),
|
|
2468
|
+
enumerable: !0,
|
|
2469
|
+
configurable: !0
|
|
2470
|
+
}), a), {});
|
|
2471
|
+
function d() {
|
|
2472
|
+
const a = Object.keys(e).map((u) => [u, r(u)]);
|
|
2473
|
+
return re(() => a.filter(([, u]) => u.value).map(([u]) => u));
|
|
2474
|
+
}
|
|
2475
|
+
return Object.assign(c, {
|
|
2476
|
+
greaterOrEqual: r,
|
|
2477
|
+
smallerOrEqual: l,
|
|
2478
|
+
greater(a) {
|
|
2479
|
+
return de(() => `(min-width: ${n(a, 0.1)})`, t);
|
|
2480
|
+
},
|
|
2481
|
+
smaller(a) {
|
|
2482
|
+
return de(() => `(max-width: ${n(a, -0.1)})`, t);
|
|
2483
|
+
},
|
|
2484
|
+
between(a, u) {
|
|
2485
|
+
return de(() => `(min-width: ${n(a)}) and (max-width: ${n(u, -0.1)})`, t);
|
|
2486
|
+
},
|
|
2487
|
+
isGreater(a) {
|
|
2488
|
+
return s(`(min-width: ${n(a, 0.1)})`);
|
|
2489
|
+
},
|
|
2490
|
+
isGreaterOrEqual(a) {
|
|
2491
|
+
return s(`(min-width: ${n(a)})`);
|
|
2492
|
+
},
|
|
2493
|
+
isSmaller(a) {
|
|
2494
|
+
return s(`(max-width: ${n(a, -0.1)})`);
|
|
2495
|
+
},
|
|
2496
|
+
isSmallerOrEqual(a) {
|
|
2497
|
+
return s(`(max-width: ${n(a)})`);
|
|
2498
|
+
},
|
|
2499
|
+
isInBetween(a, u) {
|
|
2500
|
+
return s(`(min-width: ${n(a)}) and (max-width: ${n(u, -0.1)})`);
|
|
2501
|
+
},
|
|
2502
|
+
current: d,
|
|
2503
|
+
active() {
|
|
2504
|
+
const a = d();
|
|
2505
|
+
return re(() => a.value.length === 0 ? "" : a.value.at(-1));
|
|
2506
|
+
}
|
|
2507
|
+
});
|
|
2508
|
+
}
|
|
2509
|
+
function Co(e) {
|
|
2510
|
+
return JSON.parse(JSON.stringify(e));
|
|
2511
|
+
}
|
|
2512
|
+
function Ho(e, t, n = {}) {
|
|
2513
|
+
const { window: o = ae, ...i } = n;
|
|
2514
|
+
let s;
|
|
2515
|
+
const r = Yt(() => o && "ResizeObserver" in o), l = () => {
|
|
2516
|
+
s && (s.disconnect(), s = void 0);
|
|
2517
|
+
}, c = re(() => Array.isArray(e) ? e.map((u) => J(u)) : [J(e)]), d = ve(
|
|
2518
|
+
c,
|
|
2519
|
+
(u) => {
|
|
2520
|
+
if (l(), r.value && o) {
|
|
2521
|
+
s = new ResizeObserver(t);
|
|
2522
|
+
for (const p of u)
|
|
2523
|
+
p && s.observe(p, i);
|
|
2524
|
+
}
|
|
2525
|
+
},
|
|
2526
|
+
{ immediate: !0, flush: "post" }
|
|
2527
|
+
), a = () => {
|
|
2528
|
+
l(), d();
|
|
2529
|
+
};
|
|
2530
|
+
return tt(a), {
|
|
2531
|
+
isSupported: r,
|
|
2532
|
+
stop: a
|
|
2533
|
+
};
|
|
2534
|
+
}
|
|
2535
|
+
const bt = 1;
|
|
2536
|
+
function ko(e, t = {}) {
|
|
2537
|
+
const {
|
|
2538
|
+
throttle: n = 0,
|
|
2539
|
+
idle: o = 200,
|
|
2540
|
+
onStop: i = I,
|
|
2541
|
+
onScroll: s = I,
|
|
2542
|
+
offset: r = {
|
|
2543
|
+
left: 0,
|
|
2544
|
+
right: 0,
|
|
2545
|
+
top: 0,
|
|
2546
|
+
bottom: 0
|
|
2547
|
+
},
|
|
2548
|
+
eventListenerOptions: l = {
|
|
2549
|
+
capture: !1,
|
|
2550
|
+
passive: !0
|
|
2551
|
+
},
|
|
2552
|
+
behavior: c = "auto",
|
|
2553
|
+
window: d = ae,
|
|
2554
|
+
onError: a = (y) => {
|
|
2555
|
+
console.error(y);
|
|
2556
|
+
}
|
|
2557
|
+
} = t, u = z(0), p = z(0), h = re({
|
|
2558
|
+
get() {
|
|
2559
|
+
return u.value;
|
|
2560
|
+
},
|
|
2561
|
+
set(y) {
|
|
2562
|
+
m(y, void 0);
|
|
2563
|
+
}
|
|
2564
|
+
}), f = re({
|
|
2565
|
+
get() {
|
|
2566
|
+
return p.value;
|
|
2567
|
+
},
|
|
2568
|
+
set(y) {
|
|
2569
|
+
m(void 0, y);
|
|
2570
|
+
}
|
|
2571
|
+
});
|
|
2572
|
+
function m(y, E) {
|
|
2573
|
+
var S, _, C, A;
|
|
2574
|
+
if (!d)
|
|
2575
|
+
return;
|
|
2576
|
+
const P = L(e);
|
|
2577
|
+
if (!P)
|
|
2578
|
+
return;
|
|
2579
|
+
(C = P instanceof Document ? d.document.body : P) == null || C.scrollTo({
|
|
2580
|
+
top: (S = L(E)) != null ? S : f.value,
|
|
2581
|
+
left: (_ = L(y)) != null ? _ : h.value,
|
|
2582
|
+
behavior: L(c)
|
|
2583
|
+
});
|
|
2584
|
+
const R = ((A = P == null ? void 0 : P.document) == null ? void 0 : A.documentElement) || (P == null ? void 0 : P.documentElement) || P;
|
|
2585
|
+
h != null && (u.value = R.scrollLeft), f != null && (p.value = R.scrollTop);
|
|
2586
|
+
}
|
|
2587
|
+
const w = z(!1), g = ot({
|
|
2588
|
+
left: !0,
|
|
2589
|
+
right: !1,
|
|
2590
|
+
top: !0,
|
|
2591
|
+
bottom: !1
|
|
2592
|
+
}), v = ot({
|
|
2593
|
+
left: !1,
|
|
2594
|
+
right: !1,
|
|
2595
|
+
top: !1,
|
|
2596
|
+
bottom: !1
|
|
2597
|
+
}), $ = (y) => {
|
|
2598
|
+
w.value && (w.value = !1, v.left = !1, v.right = !1, v.top = !1, v.bottom = !1, i(y));
|
|
2599
|
+
}, T = To($, n + o), x = (y) => {
|
|
2600
|
+
var E;
|
|
2601
|
+
if (!d)
|
|
2602
|
+
return;
|
|
2603
|
+
const S = ((E = y == null ? void 0 : y.document) == null ? void 0 : E.documentElement) || (y == null ? void 0 : y.documentElement) || J(y), { display: _, flexDirection: C } = getComputedStyle(S), A = S.scrollLeft;
|
|
2604
|
+
v.left = A < u.value, v.right = A > u.value;
|
|
2605
|
+
const P = Math.abs(A) <= (r.left || 0), R = Math.abs(A) + S.clientWidth >= S.scrollWidth - (r.right || 0) - bt;
|
|
2606
|
+
_ === "flex" && C === "row-reverse" ? (g.left = R, g.right = P) : (g.left = P, g.right = R), u.value = A;
|
|
2607
|
+
let N = S.scrollTop;
|
|
2608
|
+
y === d.document && !N && (N = d.document.body.scrollTop), v.top = N < p.value, v.bottom = N > p.value;
|
|
2609
|
+
const F = Math.abs(N) <= (r.top || 0), H = Math.abs(N) + S.clientHeight >= S.scrollHeight - (r.bottom || 0) - bt;
|
|
2610
|
+
_ === "flex" && C === "column-reverse" ? (g.top = H, g.bottom = F) : (g.top = F, g.bottom = H), p.value = N;
|
|
2611
|
+
}, O = (y) => {
|
|
2612
|
+
var E;
|
|
2613
|
+
if (!d)
|
|
2614
|
+
return;
|
|
2615
|
+
const S = (E = y.target.documentElement) != null ? E : y.target;
|
|
2616
|
+
x(S), w.value = !0, T(y), s(y);
|
|
2617
|
+
};
|
|
2618
|
+
return D(
|
|
2619
|
+
e,
|
|
2620
|
+
"scroll",
|
|
2621
|
+
n ? Po(O, n, !0, !1) : O,
|
|
2622
|
+
l
|
|
2623
|
+
), Gt(() => {
|
|
2624
|
+
try {
|
|
2625
|
+
const y = L(e);
|
|
2626
|
+
if (!y)
|
|
2627
|
+
return;
|
|
2628
|
+
x(y);
|
|
2629
|
+
} catch (y) {
|
|
2630
|
+
a(y);
|
|
2631
|
+
}
|
|
2632
|
+
}), D(
|
|
2633
|
+
e,
|
|
2634
|
+
"scrollend",
|
|
2635
|
+
$,
|
|
2636
|
+
l
|
|
2637
|
+
), {
|
|
2638
|
+
x: h,
|
|
2639
|
+
y: f,
|
|
2640
|
+
isScrolling: w,
|
|
2641
|
+
arrivedState: g,
|
|
2642
|
+
directions: v,
|
|
2643
|
+
measure() {
|
|
2644
|
+
const y = L(e);
|
|
2645
|
+
d && y && x(y);
|
|
2646
|
+
}
|
|
2647
|
+
};
|
|
2648
|
+
}
|
|
2649
|
+
function Do(e, t, n, o = {}) {
|
|
2650
|
+
var i, s, r;
|
|
2651
|
+
const {
|
|
2652
|
+
clone: l = !1,
|
|
2653
|
+
passive: c = !1,
|
|
2654
|
+
eventName: d,
|
|
2655
|
+
deep: a = !1,
|
|
2656
|
+
defaultValue: u,
|
|
2657
|
+
shouldEmit: p
|
|
2658
|
+
} = o, h = Ke(), f = n || (h == null ? void 0 : h.emit) || ((i = h == null ? void 0 : h.$emit) == null ? void 0 : i.bind(h)) || ((r = (s = h == null ? void 0 : h.proxy) == null ? void 0 : s.$emit) == null ? void 0 : r.bind(h == null ? void 0 : h.proxy));
|
|
2659
|
+
let m = d;
|
|
2660
|
+
t || (t = "modelValue"), m = m || `update:${t.toString()}`;
|
|
2661
|
+
const w = ($) => l ? typeof l == "function" ? l($) : Co($) : $, g = () => go(e[t]) ? w(e[t]) : u, v = ($) => {
|
|
2662
|
+
p ? p($) && f(m, $) : f(m, $);
|
|
2663
|
+
};
|
|
2664
|
+
if (c) {
|
|
2665
|
+
const $ = g(), T = z($);
|
|
2666
|
+
let x = !1;
|
|
2667
|
+
return ve(
|
|
2668
|
+
() => e[t],
|
|
2669
|
+
(O) => {
|
|
2670
|
+
x || (x = !0, T.value = w(O), Ue(() => x = !1));
|
|
2671
|
+
}
|
|
2672
|
+
), ve(
|
|
2673
|
+
T,
|
|
2674
|
+
(O) => {
|
|
2675
|
+
!x && (O !== e[t] || a) && v(O);
|
|
2676
|
+
},
|
|
2677
|
+
{ deep: a }
|
|
2678
|
+
), T;
|
|
2679
|
+
} else
|
|
2680
|
+
return re({
|
|
2681
|
+
get() {
|
|
2682
|
+
return g();
|
|
2683
|
+
},
|
|
2684
|
+
set($) {
|
|
2685
|
+
v($);
|
|
2686
|
+
}
|
|
2687
|
+
});
|
|
2688
|
+
}
|
|
2689
|
+
function Bo(e = {}) {
|
|
2690
|
+
const {
|
|
2691
|
+
window: t = ae,
|
|
2692
|
+
initialWidth: n = Number.POSITIVE_INFINITY,
|
|
2693
|
+
initialHeight: o = Number.POSITIVE_INFINITY,
|
|
2694
|
+
listenOrientation: i = !0,
|
|
2695
|
+
includeScrollbar: s = !0
|
|
2696
|
+
} = e, r = z(n), l = z(o), c = () => {
|
|
2697
|
+
t && (s ? (r.value = t.innerWidth, l.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, l.value = t.document.documentElement.clientHeight));
|
|
2698
|
+
};
|
|
2699
|
+
if (c(), Gt(c), D("resize", c, { passive: !0 }), i) {
|
|
2700
|
+
const d = de("(orientation: portrait)");
|
|
2701
|
+
ve(d, () => c());
|
|
2702
|
+
}
|
|
2703
|
+
return { width: r, height: l };
|
|
2704
|
+
}
|
|
2705
|
+
function Io(e = 5e3) {
|
|
2706
|
+
const t = z([]);
|
|
2707
|
+
let n = 1;
|
|
2708
|
+
return {
|
|
2709
|
+
notifications: t,
|
|
2710
|
+
addNotification: (s) => {
|
|
2711
|
+
const r = { ...s, id: n++ };
|
|
2712
|
+
t.value.push(r), setTimeout(() => {
|
|
2713
|
+
const l = t.value.indexOf(r);
|
|
2714
|
+
l !== -1 && t.value.splice(l, 1);
|
|
2715
|
+
}, e);
|
|
2716
|
+
},
|
|
2717
|
+
removeNotificationById: (s) => {
|
|
2718
|
+
const r = t.value.findIndex(
|
|
2719
|
+
(l) => l.id === s
|
|
2720
|
+
);
|
|
2721
|
+
r !== -1 && t.value.splice(r, 1);
|
|
2722
|
+
}
|
|
2723
|
+
};
|
|
2724
|
+
}
|
|
2725
|
+
function Fo() {
|
|
2726
|
+
const e = z(0);
|
|
2727
|
+
return {
|
|
2728
|
+
tabIndex: e,
|
|
2729
|
+
updateTabIndex: (n) => {
|
|
2730
|
+
e.value = n;
|
|
2731
|
+
}
|
|
2732
|
+
};
|
|
2733
|
+
}
|
|
2734
|
+
function Wo() {
|
|
2735
|
+
const e = (i) => new Promise((s) => setTimeout(s, i)), n = "RN-ui-tool-chip";
|
|
2736
|
+
return {
|
|
2737
|
+
hideAllPoppers: In,
|
|
2738
|
+
showPopper: ({
|
|
2739
|
+
name: i,
|
|
2740
|
+
element: s,
|
|
2741
|
+
message: r,
|
|
2742
|
+
placement: l = "auto",
|
|
2743
|
+
hasDone: c = !0,
|
|
2744
|
+
timeout: d = 5e3,
|
|
2745
|
+
autoHideOnUserInteraction: a = !0,
|
|
2746
|
+
displayOnce: u = !1,
|
|
2747
|
+
strategy: p = "absolute"
|
|
2748
|
+
}) => {
|
|
2749
|
+
const h = fo(
|
|
2750
|
+
s,
|
|
2751
|
+
{
|
|
2752
|
+
triggers: [],
|
|
2753
|
+
theme: "tooltip",
|
|
2754
|
+
placement: l,
|
|
2755
|
+
shiftCrossAxis: !0,
|
|
2756
|
+
strategy: p,
|
|
2757
|
+
content: `
|
|
2758
|
+
<div id="${i}" class="${n}">
|
|
2759
|
+
<div class="${n}-content">
|
|
2760
|
+
<div><span class="${n}-text RN-text--size-body">${r}</span></div>
|
|
2761
|
+
${c ? `<button class="${n}-done" id="${i}-done">OK</button>` : ""}
|
|
2762
|
+
</div>
|
|
2763
|
+
</div>
|
|
2764
|
+
`,
|
|
2765
|
+
html: !0
|
|
2766
|
+
},
|
|
2767
|
+
null
|
|
2768
|
+
), f = () => {
|
|
2769
|
+
const w = `tooltip-shown-${i}`;
|
|
2770
|
+
localStorage.getItem(w) || h.show();
|
|
2771
|
+
}, m = async () => {
|
|
2772
|
+
if (u) {
|
|
2773
|
+
const w = `tooltip-shown-${i}`;
|
|
2774
|
+
localStorage.setItem(w, "true");
|
|
2775
|
+
}
|
|
2776
|
+
h.hide(), await e(100), mo(s);
|
|
2777
|
+
};
|
|
2778
|
+
f(), setTimeout(() => {
|
|
2779
|
+
D(
|
|
2780
|
+
document.getElementById(`${i}-done`),
|
|
2781
|
+
"click",
|
|
2782
|
+
m
|
|
2783
|
+
), a && (D(document, "click", m), D(document, "touchmove", m), D(document, "scroll", m), D(window, "scroll", m));
|
|
2784
|
+
}, 500), d != null && setTimeout(m, d);
|
|
2785
|
+
}
|
|
2786
|
+
};
|
|
2787
|
+
}
|
|
2788
|
+
function jo() {
|
|
2789
|
+
const e = z(""), t = z(!1), n = z(""), o = z(() => {
|
|
2790
|
+
}), i = ({ _title: l = "", _content: c = "", _confirmHandler: d = () => {
|
|
2791
|
+
} }) => {
|
|
2792
|
+
e.value = l, n.value = c, o.value = d, t.value = !0;
|
|
2793
|
+
}, s = () => {
|
|
2794
|
+
t.value = !1, e.value = "", n.value = "", o.value = () => {
|
|
2795
|
+
};
|
|
2796
|
+
};
|
|
2797
|
+
return {
|
|
2798
|
+
visible: t,
|
|
2799
|
+
title: e,
|
|
2800
|
+
content: n,
|
|
2801
|
+
confirmHandler: o,
|
|
2802
|
+
show: i,
|
|
2803
|
+
hide: s,
|
|
2804
|
+
confirm: () => {
|
|
2805
|
+
o.value(), s();
|
|
2806
|
+
}
|
|
2807
|
+
};
|
|
2808
|
+
}
|
|
2809
|
+
export {
|
|
2810
|
+
No as W,
|
|
2811
|
+
To as a,
|
|
2812
|
+
Lo as b,
|
|
2813
|
+
Po as c,
|
|
2814
|
+
Eo as d,
|
|
2815
|
+
Gt as e,
|
|
2816
|
+
tt as f,
|
|
2817
|
+
zo as g,
|
|
2818
|
+
Vt as h,
|
|
2819
|
+
vo as i,
|
|
2820
|
+
yo as j,
|
|
2821
|
+
Do as k,
|
|
2822
|
+
ko as l,
|
|
2823
|
+
Bo as m,
|
|
2824
|
+
I as n,
|
|
2825
|
+
Ro as o,
|
|
2826
|
+
Ho as p,
|
|
2827
|
+
Io as q,
|
|
2828
|
+
Fo as r,
|
|
2829
|
+
Wo as s,
|
|
2830
|
+
L as t,
|
|
2831
|
+
Mo as u,
|
|
2832
|
+
jo as v
|
|
2833
|
+
};
|