@dialpad/dialtone-vue 3.94.2 → 3.95.1
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/CHANGELOG.json +1 -1
- package/CHANGELOG.md +40 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +5 -5
- package/dist/dialtone-vue.js +966 -990
- package/dist/directives.cjs +1 -1
- package/dist/directives.js +1 -1
- package/dist/{emoji-eca45193.js → emoji-bI5MJWZH.js} +2 -3
- package/dist/emoji-ujF0T0kZ.cjs +1 -0
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +3 -3
- package/dist/{message_input-adace257.js → message_input-KktXM8gs.js} +944 -882
- package/dist/{message_input-cd4bb4eb.cjs → message_input-r_-Jg43r.cjs} +10 -10
- package/dist/message_input.cjs +1 -1
- package/dist/message_input.js +3 -3
- package/dist/style.css +1 -1
- package/dist/{tooltip-4736031b.cjs → tooltip_constants-mcMQGvF_.cjs} +4 -4
- package/dist/{tooltip-e2013b2a.js → tooltip_constants-pAtd8bjI.js} +191 -192
- package/dist/types/components/banner/banner.vue.d.ts.map +1 -1
- package/dist/types/components/notice/index.d.ts +3 -0
- package/dist/types/components/toast/index.d.ts +1 -1
- package/dist/types/components/toast/toast.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +64 -1
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/package.json +16 -16
- package/dist/emoji-36138d23.cjs +0 -1
|
@@ -35,18 +35,18 @@ const ge = {
|
|
|
35
35
|
arrowdown: "ArrowDown",
|
|
36
36
|
home: "Home",
|
|
37
37
|
end: "End"
|
|
38
|
-
}, cr = ge.ERROR,
|
|
39
|
-
let
|
|
38
|
+
}, cr = ge.ERROR, pr = "dt";
|
|
39
|
+
let lr = 0, kt;
|
|
40
40
|
const fr = typeof setImmediate == "function" ? setImmediate : setTimeout;
|
|
41
|
-
function cn(e =
|
|
42
|
-
return `${e}${
|
|
41
|
+
function cn(e = pr) {
|
|
42
|
+
return `${e}${lr++}`;
|
|
43
43
|
}
|
|
44
44
|
function dr(e, t) {
|
|
45
45
|
if (t) {
|
|
46
46
|
const n = vr(t);
|
|
47
47
|
return e[Math.abs(n) % e.length];
|
|
48
48
|
} else
|
|
49
|
-
return e[
|
|
49
|
+
return e[pn(e.length)];
|
|
50
50
|
}
|
|
51
51
|
function vr(e) {
|
|
52
52
|
let t;
|
|
@@ -54,7 +54,7 @@ function vr(e) {
|
|
|
54
54
|
t = Math.imul(31, t) + e.charCodeAt(n) | 0;
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function pn(e) {
|
|
58
58
|
return Math.floor(Math.random() * e);
|
|
59
59
|
}
|
|
60
60
|
function hr(e) {
|
|
@@ -64,10 +64,10 @@ function hr(e) {
|
|
|
64
64
|
} : t) : [];
|
|
65
65
|
}
|
|
66
66
|
function mr(e) {
|
|
67
|
-
const t =
|
|
67
|
+
const t = ln(e);
|
|
68
68
|
return !e || !t ? [] : e.filter((n) => !!n.message && n.type === t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ln(e) {
|
|
71
71
|
return e ? st(e, ge.ERROR) ? ge.ERROR : st(e, ge.WARNING) ? ge.WARNING : st(e, ge.SUCCESS) ? ge.SUCCESS : null : null;
|
|
72
72
|
}
|
|
73
73
|
function st(e, t) {
|
|
@@ -156,16 +156,16 @@ function Nr(e) {
|
|
|
156
156
|
return e.filter((t) => !!t).join(" ");
|
|
157
157
|
}
|
|
158
158
|
function Ir(e, t = "en-US") {
|
|
159
|
-
return e.replace(
|
|
159
|
+
return e.replace(new RegExp("^\\p{CWU}", "u"), (n) => n.toLocaleUpperCase(t));
|
|
160
160
|
}
|
|
161
161
|
const Uo = {
|
|
162
162
|
getUniqueString: cn,
|
|
163
163
|
getRandomElement: dr,
|
|
164
|
-
getRandomInt:
|
|
164
|
+
getRandomInt: pn,
|
|
165
165
|
formatMessages: hr,
|
|
166
166
|
filterFormattedMessages: mr,
|
|
167
167
|
hasFormattedMessageOfType: st,
|
|
168
|
-
getValidationState:
|
|
168
|
+
getValidationState: ln,
|
|
169
169
|
htmlFragment: gr,
|
|
170
170
|
flushPromises: yr,
|
|
171
171
|
kebabCaseToPascalCase: wr,
|
|
@@ -259,9 +259,9 @@ function jr(e, t, n, r, o, a) {
|
|
|
259
259
|
}, 16, ["name", "appear", "css"]);
|
|
260
260
|
}
|
|
261
261
|
const kr = /* @__PURE__ */ bn(Mr, [["render", jr]]);
|
|
262
|
-
var B = "top", Y = "bottom", X = "right", $ = "left",
|
|
262
|
+
var B = "top", Y = "bottom", X = "right", $ = "left", lt = "auto", qe = [B, Y, X, $], Re = "start", Ue = "end", Vr = "clippingParents", wn = "viewport", Ve = "popper", _r = "reference", Vt = /* @__PURE__ */ qe.reduce(function(e, t) {
|
|
263
263
|
return e.concat([t + "-" + Re, t + "-" + Ue]);
|
|
264
|
-
}, []), En = /* @__PURE__ */ [].concat(qe, [
|
|
264
|
+
}, []), En = /* @__PURE__ */ [].concat(qe, [lt]).reduce(function(e, t) {
|
|
265
265
|
return e.concat([t, t + "-" + Re, t + "-" + Ue]);
|
|
266
266
|
}, []), Br = "beforeRead", $r = "read", Ur = "afterRead", Hr = "beforeMain", Fr = "main", Wr = "afterMain", qr = "beforeWrite", zr = "write", Yr = "afterWrite", Et = [Br, $r, Ur, Hr, Fr, Wr, qr, zr, Yr];
|
|
267
267
|
function ne(e) {
|
|
@@ -294,9 +294,9 @@ function Xr(e) {
|
|
|
294
294
|
var t = e.state;
|
|
295
295
|
Object.keys(t.elements).forEach(function(n) {
|
|
296
296
|
var r = t.styles[n] || {}, o = t.attributes[n] || {}, a = t.elements[n];
|
|
297
|
-
!W(a) || !ne(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(
|
|
298
|
-
var c = o[
|
|
299
|
-
c === !1 ? a.removeAttribute(
|
|
297
|
+
!W(a) || !ne(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(p) {
|
|
298
|
+
var c = o[p];
|
|
299
|
+
c === !1 ? a.removeAttribute(p) : a.setAttribute(p, c === !0 ? "" : c);
|
|
300
300
|
}));
|
|
301
301
|
});
|
|
302
302
|
}
|
|
@@ -315,7 +315,7 @@ function Gr(e) {
|
|
|
315
315
|
};
|
|
316
316
|
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
|
317
317
|
Object.keys(t.elements).forEach(function(r) {
|
|
318
|
-
var o = t.elements[r], a = t.attributes[r] || {},
|
|
318
|
+
var o = t.elements[r], a = t.attributes[r] || {}, p = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), c = p.reduce(function(u, f) {
|
|
319
319
|
return u[f] = "", u;
|
|
320
320
|
}, {});
|
|
321
321
|
!W(o) || !ne(o) || (Object.assign(o.style, c), Object.keys(a).forEach(function(u) {
|
|
@@ -349,16 +349,16 @@ function Ce(e, t, n) {
|
|
|
349
349
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
350
350
|
var r = e.getBoundingClientRect(), o = 1, a = 1;
|
|
351
351
|
t && W(e) && (o = e.offsetWidth > 0 && Le(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Le(r.height) / e.offsetHeight || 1);
|
|
352
|
-
var
|
|
352
|
+
var p = we(e) ? q(e) : window, c = p.visualViewport, u = !xn() && n, f = (r.left + (u && c ? c.offsetLeft : 0)) / o, l = (r.top + (u && c ? c.offsetTop : 0)) / a, g = r.width / o, x = r.height / a;
|
|
353
353
|
return {
|
|
354
354
|
width: g,
|
|
355
355
|
height: x,
|
|
356
|
-
top:
|
|
356
|
+
top: l,
|
|
357
357
|
right: f + g,
|
|
358
|
-
bottom:
|
|
358
|
+
bottom: l + x,
|
|
359
359
|
left: f,
|
|
360
360
|
x: f,
|
|
361
|
-
y:
|
|
361
|
+
y: l
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
function Rt(e) {
|
|
@@ -390,7 +390,7 @@ function Z(e) {
|
|
|
390
390
|
function Kr(e) {
|
|
391
391
|
return ["table", "td", "th"].indexOf(ne(e)) >= 0;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function le(e) {
|
|
394
394
|
return ((we(e) ? e.ownerDocument : (
|
|
395
395
|
// $FlowFixMe[prop-missing]
|
|
396
396
|
e.document
|
|
@@ -405,7 +405,7 @@ function ft(e) {
|
|
|
405
405
|
e.parentNode || // DOM Element detected
|
|
406
406
|
(Dt(e) ? e.host : null) || // ShadowRoot detected
|
|
407
407
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
408
|
-
|
|
408
|
+
le(e)
|
|
409
409
|
);
|
|
410
410
|
}
|
|
411
411
|
function _t(e) {
|
|
@@ -465,9 +465,9 @@ var Qr = function(t, n) {
|
|
|
465
465
|
})) : t, Sn(typeof t != "number" ? t : Dn(t, qe));
|
|
466
466
|
};
|
|
467
467
|
function ei(e) {
|
|
468
|
-
var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow,
|
|
469
|
-
if (!(!a || !
|
|
470
|
-
var g = Qr(o.padding, n), x = Rt(a), m = u === "y" ? B : $, w = u === "y" ? Y : X, y = n.rects.reference[
|
|
468
|
+
var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, p = n.modifiersData.popperOffsets, c = K(n.placement), u = Lt(c), f = [$, X].indexOf(c) >= 0, l = f ? "height" : "width";
|
|
469
|
+
if (!(!a || !p)) {
|
|
470
|
+
var g = Qr(o.padding, n), x = Rt(a), m = u === "y" ? B : $, w = u === "y" ? Y : X, y = n.rects.reference[l] + n.rects.reference[u] - p[u] - n.rects.popper[l], b = p[u] - n.rects.reference[u], T = ze(a), R = T ? u === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, C = y / 2 - b / 2, i = g[m], E = R - x[l] - g[w], d = R / 2 - x[l] / 2 + C, D = _e(i, d, E), I = u;
|
|
471
471
|
n.modifiersData[r] = (t = {}, t[I] = D, t.centerOffset = D - d, t);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
@@ -507,7 +507,7 @@ function ii(e, t) {
|
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
509
|
function Bt(e) {
|
|
510
|
-
var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation,
|
|
510
|
+
var t, n = e.popper, r = e.popperRect, o = e.placement, a = e.variation, p = e.offsets, c = e.position, u = e.gpuAcceleration, f = e.adaptive, l = e.roundOffsets, g = e.isFixed, x = p.x, m = x === void 0 ? 0 : x, w = p.y, y = w === void 0 ? 0 : w, b = typeof l == "function" ? l({
|
|
511
511
|
x: m,
|
|
512
512
|
y
|
|
513
513
|
}) : {
|
|
@@ -515,10 +515,10 @@ function Bt(e) {
|
|
|
515
515
|
y
|
|
516
516
|
};
|
|
517
517
|
m = b.x, y = b.y;
|
|
518
|
-
var T =
|
|
518
|
+
var T = p.hasOwnProperty("x"), R = p.hasOwnProperty("y"), C = $, i = B, E = window;
|
|
519
519
|
if (f) {
|
|
520
520
|
var d = ze(n), D = "clientHeight", I = "clientWidth";
|
|
521
|
-
if (d === q(n) && (d =
|
|
521
|
+
if (d === q(n) && (d = le(n), Z(d).position !== "static" && c === "absolute" && (D = "scrollHeight", I = "scrollWidth")), d = d, o === B || (o === $ || o === X) && a === Ue) {
|
|
522
522
|
i = Y;
|
|
523
523
|
var M = g && d === E && E.visualViewport ? E.visualViewport.height : (
|
|
524
524
|
// $FlowFixMe[prop-missing]
|
|
@@ -537,7 +537,7 @@ function Bt(e) {
|
|
|
537
537
|
}
|
|
538
538
|
var A = Object.assign({
|
|
539
539
|
position: c
|
|
540
|
-
}, f && ri), L =
|
|
540
|
+
}, f && ri), L = l === !0 ? ii({
|
|
541
541
|
x: m,
|
|
542
542
|
y
|
|
543
543
|
}, q(n)) : {
|
|
@@ -551,10 +551,10 @@ function Bt(e) {
|
|
|
551
551
|
return Object.assign({}, A, (t = {}, t[i] = R ? y + "px" : "", t[C] = T ? m + "px" : "", t.transform = "", t));
|
|
552
552
|
}
|
|
553
553
|
function oi(e) {
|
|
554
|
-
var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive,
|
|
554
|
+
var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, p = a === void 0 ? !0 : a, c = n.roundOffsets, u = c === void 0 ? !0 : c;
|
|
555
555
|
if (process.env.NODE_ENV !== "production") {
|
|
556
556
|
var f = Z(t.elements.popper).transitionProperty || "";
|
|
557
|
-
|
|
557
|
+
p && ["transform", "top", "right", "bottom", "left"].some(function(g) {
|
|
558
558
|
return f.indexOf(g) >= 0;
|
|
559
559
|
}) && console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', `
|
|
560
560
|
|
|
@@ -562,7 +562,7 @@ function oi(e) {
|
|
|
562
562
|
|
|
563
563
|
`, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
|
|
564
564
|
}
|
|
565
|
-
var
|
|
565
|
+
var l = {
|
|
566
566
|
placement: K(t.placement),
|
|
567
567
|
variation: Pe(t.placement),
|
|
568
568
|
popper: t.elements.popper,
|
|
@@ -570,12 +570,12 @@ function oi(e) {
|
|
|
570
570
|
gpuAcceleration: o,
|
|
571
571
|
isFixed: t.options.strategy === "fixed"
|
|
572
572
|
};
|
|
573
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Bt(Object.assign({},
|
|
573
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Bt(Object.assign({}, l, {
|
|
574
574
|
offsets: t.modifiersData.popperOffsets,
|
|
575
575
|
position: t.options.strategy,
|
|
576
|
-
adaptive:
|
|
576
|
+
adaptive: p,
|
|
577
577
|
roundOffsets: u
|
|
578
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Bt(Object.assign({},
|
|
578
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Bt(Object.assign({}, l, {
|
|
579
579
|
offsets: t.modifiersData.arrow,
|
|
580
580
|
position: "absolute",
|
|
581
581
|
adaptive: !1,
|
|
@@ -595,12 +595,12 @@ var ot = {
|
|
|
595
595
|
passive: !0
|
|
596
596
|
};
|
|
597
597
|
function si(e) {
|
|
598
|
-
var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o,
|
|
599
|
-
return a && f.forEach(function(
|
|
600
|
-
|
|
598
|
+
var t = e.state, n = e.instance, r = e.options, o = r.scroll, a = o === void 0 ? !0 : o, p = r.resize, c = p === void 0 ? !0 : p, u = q(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
599
|
+
return a && f.forEach(function(l) {
|
|
600
|
+
l.addEventListener("scroll", n.update, ot);
|
|
601
601
|
}), c && u.addEventListener("resize", n.update, ot), function() {
|
|
602
|
-
a && f.forEach(function(
|
|
603
|
-
|
|
602
|
+
a && f.forEach(function(l) {
|
|
603
|
+
l.removeEventListener("scroll", n.update, ot);
|
|
604
604
|
}), c && u.removeEventListener("resize", n.update, ot);
|
|
605
605
|
};
|
|
606
606
|
}
|
|
@@ -624,13 +624,13 @@ function ut(e) {
|
|
|
624
624
|
return ci[t];
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
|
-
var
|
|
627
|
+
var pi = {
|
|
628
628
|
start: "end",
|
|
629
629
|
end: "start"
|
|
630
630
|
};
|
|
631
631
|
function $t(e) {
|
|
632
632
|
return e.replace(/start|end/g, function(t) {
|
|
633
|
-
return
|
|
633
|
+
return pi[t];
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
function Ct(e) {
|
|
@@ -641,27 +641,27 @@ function Ct(e) {
|
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
643
|
function Pt(e) {
|
|
644
|
-
return Ce(
|
|
644
|
+
return Ce(le(e)).left + Ct(e).scrollLeft;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
var n = q(e), r =
|
|
646
|
+
function li(e, t) {
|
|
647
|
+
var n = q(e), r = le(e), o = n.visualViewport, a = r.clientWidth, p = r.clientHeight, c = 0, u = 0;
|
|
648
648
|
if (o) {
|
|
649
|
-
a = o.width,
|
|
649
|
+
a = o.width, p = o.height;
|
|
650
650
|
var f = xn();
|
|
651
651
|
(f || !f && t === "fixed") && (c = o.offsetLeft, u = o.offsetTop);
|
|
652
652
|
}
|
|
653
653
|
return {
|
|
654
654
|
width: a,
|
|
655
|
-
height:
|
|
655
|
+
height: p,
|
|
656
656
|
x: c + Pt(e),
|
|
657
657
|
y: u
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
660
|
function fi(e) {
|
|
661
|
-
var t, n =
|
|
661
|
+
var t, n = le(e), r = Ct(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = be(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), p = be(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -r.scrollLeft + Pt(e), u = -r.scrollTop;
|
|
662
662
|
return Z(o || n).direction === "rtl" && (c += be(n.clientWidth, o ? o.clientWidth : 0) - a), {
|
|
663
663
|
width: a,
|
|
664
|
-
height:
|
|
664
|
+
height: p,
|
|
665
665
|
x: c,
|
|
666
666
|
y: u
|
|
667
667
|
};
|
|
@@ -676,10 +676,10 @@ function Rn(e) {
|
|
|
676
676
|
function Be(e, t) {
|
|
677
677
|
var n;
|
|
678
678
|
t === void 0 && (t = []);
|
|
679
|
-
var r = Rn(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = q(r),
|
|
679
|
+
var r = Rn(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), a = q(r), p = o ? [a].concat(a.visualViewport || [], Nt(r) ? r : []) : r, c = t.concat(p);
|
|
680
680
|
return o ? c : (
|
|
681
681
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
682
|
-
c.concat(Be(ft(
|
|
682
|
+
c.concat(Be(ft(p)))
|
|
683
683
|
);
|
|
684
684
|
}
|
|
685
685
|
function xt(e) {
|
|
@@ -695,7 +695,7 @@ function di(e, t) {
|
|
|
695
695
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
696
696
|
}
|
|
697
697
|
function Ut(e, t, n) {
|
|
698
|
-
return t === wn ? xt(
|
|
698
|
+
return t === wn ? xt(li(e, n)) : we(t) ? di(t, n) : xt(fi(le(e)));
|
|
699
699
|
}
|
|
700
700
|
function vi(e) {
|
|
701
701
|
var t = Be(ft(e)), n = ["absolute", "fixed"].indexOf(Z(e).position) >= 0, r = n && W(e) ? ze(e) : e;
|
|
@@ -704,24 +704,24 @@ function vi(e) {
|
|
|
704
704
|
}) : [];
|
|
705
705
|
}
|
|
706
706
|
function hi(e, t, n, r) {
|
|
707
|
-
var o = t === "clippingParents" ? vi(e) : [].concat(t), a = [].concat(o, [n]),
|
|
708
|
-
var
|
|
709
|
-
return u.top = be(
|
|
710
|
-
}, Ut(e,
|
|
707
|
+
var o = t === "clippingParents" ? vi(e) : [].concat(t), a = [].concat(o, [n]), p = a[0], c = a.reduce(function(u, f) {
|
|
708
|
+
var l = Ut(e, f, r);
|
|
709
|
+
return u.top = be(l.top, u.top), u.right = ct(l.right, u.right), u.bottom = ct(l.bottom, u.bottom), u.left = be(l.left, u.left), u;
|
|
710
|
+
}, Ut(e, p, r));
|
|
711
711
|
return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
|
|
712
712
|
}
|
|
713
713
|
function Ln(e) {
|
|
714
|
-
var t = e.reference, n = e.element, r = e.placement, o = r ? K(r) : null, a = r ? Pe(r) : null,
|
|
714
|
+
var t = e.reference, n = e.element, r = e.placement, o = r ? K(r) : null, a = r ? Pe(r) : null, p = t.x + t.width / 2 - n.width / 2, c = t.y + t.height / 2 - n.height / 2, u;
|
|
715
715
|
switch (o) {
|
|
716
716
|
case B:
|
|
717
717
|
u = {
|
|
718
|
-
x:
|
|
718
|
+
x: p,
|
|
719
719
|
y: t.y - n.height
|
|
720
720
|
};
|
|
721
721
|
break;
|
|
722
722
|
case Y:
|
|
723
723
|
u = {
|
|
724
|
-
x:
|
|
724
|
+
x: p,
|
|
725
725
|
y: t.y + t.height
|
|
726
726
|
};
|
|
727
727
|
break;
|
|
@@ -745,13 +745,13 @@ function Ln(e) {
|
|
|
745
745
|
}
|
|
746
746
|
var f = o ? Lt(o) : null;
|
|
747
747
|
if (f != null) {
|
|
748
|
-
var
|
|
748
|
+
var l = f === "y" ? "height" : "width";
|
|
749
749
|
switch (a) {
|
|
750
750
|
case Re:
|
|
751
|
-
u[f] = u[f] - (t[
|
|
751
|
+
u[f] = u[f] - (t[l] / 2 - n[l] / 2);
|
|
752
752
|
break;
|
|
753
753
|
case Ue:
|
|
754
|
-
u[f] = u[f] + (t[
|
|
754
|
+
u[f] = u[f] + (t[l] / 2 - n[l] / 2);
|
|
755
755
|
break;
|
|
756
756
|
}
|
|
757
757
|
}
|
|
@@ -759,7 +759,7 @@ function Ln(e) {
|
|
|
759
759
|
}
|
|
760
760
|
function He(e, t) {
|
|
761
761
|
t === void 0 && (t = {});
|
|
762
|
-
var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy,
|
|
762
|
+
var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, p = a === void 0 ? e.strategy : a, c = n.boundary, u = c === void 0 ? Vr : c, f = n.rootBoundary, l = f === void 0 ? wn : f, g = n.elementContext, x = g === void 0 ? Ve : g, m = n.altBoundary, w = m === void 0 ? !1 : m, y = n.padding, b = y === void 0 ? 0 : y, T = Sn(typeof b != "number" ? b : Dn(b, qe)), R = x === Ve ? _r : Ve, C = e.rects.popper, i = e.elements[w ? R : x], E = hi(we(i) ? i : i.contextElement || le(e.elements.popper), u, l, p), d = Ce(e.elements.reference), D = Ln({
|
|
763
763
|
reference: d,
|
|
764
764
|
element: C,
|
|
765
765
|
strategy: "absolute",
|
|
@@ -781,8 +781,8 @@ function He(e, t) {
|
|
|
781
781
|
}
|
|
782
782
|
function mi(e, t) {
|
|
783
783
|
t === void 0 && (t = {});
|
|
784
|
-
var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary,
|
|
785
|
-
return Pe(w) ===
|
|
784
|
+
var n = t, r = n.placement, o = n.boundary, a = n.rootBoundary, p = n.padding, c = n.flipVariations, u = n.allowedAutoPlacements, f = u === void 0 ? En : u, l = Pe(r), g = l ? c ? Vt : Vt.filter(function(w) {
|
|
785
|
+
return Pe(w) === l;
|
|
786
786
|
}) : qe, x = g.filter(function(w) {
|
|
787
787
|
return f.indexOf(w) >= 0;
|
|
788
788
|
});
|
|
@@ -792,7 +792,7 @@ function mi(e, t) {
|
|
|
792
792
|
placement: y,
|
|
793
793
|
boundary: o,
|
|
794
794
|
rootBoundary: a,
|
|
795
|
-
padding:
|
|
795
|
+
padding: p
|
|
796
796
|
})[K(y)], w;
|
|
797
797
|
}, {});
|
|
798
798
|
return Object.keys(m).sort(function(w, y) {
|
|
@@ -800,7 +800,7 @@ function mi(e, t) {
|
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
802
|
function gi(e) {
|
|
803
|
-
if (K(e) ===
|
|
803
|
+
if (K(e) === lt)
|
|
804
804
|
return [];
|
|
805
805
|
var t = ut(e);
|
|
806
806
|
return [$t(e), t, $t(t)];
|
|
@@ -808,10 +808,10 @@ function gi(e) {
|
|
|
808
808
|
function yi(e) {
|
|
809
809
|
var t = e.state, n = e.options, r = e.name;
|
|
810
810
|
if (!t.modifiersData[r]._skip) {
|
|
811
|
-
for (var o = n.mainAxis, a = o === void 0 ? !0 : o,
|
|
812
|
-
return re.concat(K(G) ===
|
|
811
|
+
for (var o = n.mainAxis, a = o === void 0 ? !0 : o, p = n.altAxis, c = p === void 0 ? !0 : p, u = n.fallbackPlacements, f = n.padding, l = n.boundary, g = n.rootBoundary, x = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, y = n.allowedAutoPlacements, b = t.options.placement, T = K(b), R = T === b, C = u || (R || !w ? [ut(b)] : gi(b)), i = [b].concat(C).reduce(function(re, G) {
|
|
812
|
+
return re.concat(K(G) === lt ? mi(t, {
|
|
813
813
|
placement: G,
|
|
814
|
-
boundary:
|
|
814
|
+
boundary: l,
|
|
815
815
|
rootBoundary: g,
|
|
816
816
|
padding: f,
|
|
817
817
|
flipVariations: w,
|
|
@@ -820,7 +820,7 @@ function yi(e) {
|
|
|
820
820
|
}, []), E = t.rects.reference, d = t.rects.popper, D = /* @__PURE__ */ new Map(), I = !0, M = i[0], P = 0; P < i.length; P++) {
|
|
821
821
|
var A = i[P], L = K(A), N = Pe(A) === Re, U = [B, Y].indexOf(L) >= 0, H = U ? "width" : "height", k = He(t, {
|
|
822
822
|
placement: A,
|
|
823
|
-
boundary:
|
|
823
|
+
boundary: l,
|
|
824
824
|
rootBoundary: g,
|
|
825
825
|
altBoundary: x,
|
|
826
826
|
padding: f
|
|
@@ -881,18 +881,18 @@ function Ft(e) {
|
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
883
|
function wi(e) {
|
|
884
|
-
var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow,
|
|
884
|
+
var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, p = He(t, {
|
|
885
885
|
elementContext: "reference"
|
|
886
886
|
}), c = He(t, {
|
|
887
887
|
altBoundary: !0
|
|
888
|
-
}), u = Ht(
|
|
888
|
+
}), u = Ht(p, r), f = Ht(c, o, a), l = Ft(u), g = Ft(f);
|
|
889
889
|
t.modifiersData[n] = {
|
|
890
890
|
referenceClippingOffsets: u,
|
|
891
891
|
popperEscapeOffsets: f,
|
|
892
|
-
isReferenceHidden:
|
|
892
|
+
isReferenceHidden: l,
|
|
893
893
|
hasPopperEscaped: g
|
|
894
894
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
895
|
-
"data-popper-reference-hidden":
|
|
895
|
+
"data-popper-reference-hidden": l,
|
|
896
896
|
"data-popper-escaped": g
|
|
897
897
|
});
|
|
898
898
|
}
|
|
@@ -906,20 +906,20 @@ const Ei = {
|
|
|
906
906
|
function Oi(e, t, n) {
|
|
907
907
|
var r = K(e), o = [$, B].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, {
|
|
908
908
|
placement: e
|
|
909
|
-
})) : n,
|
|
910
|
-
return
|
|
909
|
+
})) : n, p = a[0], c = a[1];
|
|
910
|
+
return p = p || 0, c = (c || 0) * o, [$, X].indexOf(r) >= 0 ? {
|
|
911
911
|
x: c,
|
|
912
|
-
y:
|
|
912
|
+
y: p
|
|
913
913
|
} : {
|
|
914
|
-
x:
|
|
914
|
+
x: p,
|
|
915
915
|
y: c
|
|
916
916
|
};
|
|
917
917
|
}
|
|
918
918
|
function xi(e) {
|
|
919
|
-
var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o,
|
|
920
|
-
return
|
|
921
|
-
}, {}), c =
|
|
922
|
-
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] =
|
|
919
|
+
var t = e.state, n = e.options, r = e.name, o = n.offset, a = o === void 0 ? [0, 0] : o, p = En.reduce(function(l, g) {
|
|
920
|
+
return l[g] = Oi(g, t.rects, a), l;
|
|
921
|
+
}, {}), c = p[t.placement], u = c.x, f = c.y;
|
|
922
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += f), t.modifiersData[r] = p;
|
|
923
923
|
}
|
|
924
924
|
const Ai = {
|
|
925
925
|
name: "offset",
|
|
@@ -948,11 +948,11 @@ function Di(e) {
|
|
|
948
948
|
return e === "x" ? "y" : "x";
|
|
949
949
|
}
|
|
950
950
|
function Ri(e) {
|
|
951
|
-
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o,
|
|
951
|
+
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, p = n.altAxis, c = p === void 0 ? !1 : p, u = n.boundary, f = n.rootBoundary, l = n.altBoundary, g = n.padding, x = n.tether, m = x === void 0 ? !0 : x, w = n.tetherOffset, y = w === void 0 ? 0 : w, b = He(t, {
|
|
952
952
|
boundary: u,
|
|
953
953
|
rootBoundary: f,
|
|
954
954
|
padding: g,
|
|
955
|
-
altBoundary:
|
|
955
|
+
altBoundary: l
|
|
956
956
|
}), T = K(t.placement), R = Pe(t.placement), C = !R, i = Lt(T), E = Di(i), d = t.modifiersData.popperOffsets, D = t.rects.reference, I = t.rects.popper, M = typeof y == "function" ? y(Object.assign({}, t.rects, {
|
|
957
957
|
placement: t.placement
|
|
958
958
|
})) : y, P = typeof M == "number" ? {
|
|
@@ -1002,7 +1002,7 @@ function Ni(e) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
function Ii(e, t, n) {
|
|
1004
1004
|
n === void 0 && (n = !1);
|
|
1005
|
-
var r = W(t), o = W(t) && Ni(t), a =
|
|
1005
|
+
var r = W(t), o = W(t) && Ni(t), a = le(t), p = Ce(e, o, n), c = {
|
|
1006
1006
|
scrollLeft: 0,
|
|
1007
1007
|
scrollTop: 0
|
|
1008
1008
|
}, u = {
|
|
@@ -1011,10 +1011,10 @@ function Ii(e, t, n) {
|
|
|
1011
1011
|
};
|
|
1012
1012
|
return (r || !r && !n) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1013
1013
|
Nt(a)) && (c = Pi(t)), W(t) ? (u = Ce(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : a && (u.x = Pt(a))), {
|
|
1014
|
-
x:
|
|
1015
|
-
y:
|
|
1016
|
-
width:
|
|
1017
|
-
height:
|
|
1014
|
+
x: p.left + c.scrollLeft - u.x,
|
|
1015
|
+
y: p.top + c.scrollTop - u.y,
|
|
1016
|
+
width: p.width,
|
|
1017
|
+
height: p.height
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
1020
|
function Mi(e) {
|
|
@@ -1024,8 +1024,8 @@ function Mi(e) {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
function o(a) {
|
|
1026
1026
|
n.add(a.name);
|
|
1027
|
-
var
|
|
1028
|
-
|
|
1027
|
+
var p = [].concat(a.requires || [], a.requiresIfExists || []);
|
|
1028
|
+
p.forEach(function(c) {
|
|
1029
1029
|
if (!n.has(c)) {
|
|
1030
1030
|
var u = t.get(c);
|
|
1031
1031
|
u && o(u);
|
|
@@ -1054,7 +1054,7 @@ function ki(e) {
|
|
|
1054
1054
|
})), t;
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function pe(e) {
|
|
1058
1058
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
1059
1059
|
n[r - 1] = arguments[r];
|
|
1060
1060
|
return [].concat(n).reduce(function(o, a) {
|
|
@@ -1069,25 +1069,25 @@ function _i(e) {
|
|
|
1069
1069
|
}).forEach(function(n) {
|
|
1070
1070
|
switch (n) {
|
|
1071
1071
|
case "name":
|
|
1072
|
-
typeof t.name != "string" && console.error(
|
|
1072
|
+
typeof t.name != "string" && console.error(pe(me, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
|
|
1073
1073
|
break;
|
|
1074
1074
|
case "enabled":
|
|
1075
|
-
typeof t.enabled != "boolean" && console.error(
|
|
1075
|
+
typeof t.enabled != "boolean" && console.error(pe(me, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
|
|
1076
1076
|
break;
|
|
1077
1077
|
case "phase":
|
|
1078
|
-
Et.indexOf(t.phase) < 0 && console.error(
|
|
1078
|
+
Et.indexOf(t.phase) < 0 && console.error(pe(me, t.name, '"phase"', "either " + Et.join(", "), '"' + String(t.phase) + '"'));
|
|
1079
1079
|
break;
|
|
1080
1080
|
case "fn":
|
|
1081
|
-
typeof t.fn != "function" && console.error(
|
|
1081
|
+
typeof t.fn != "function" && console.error(pe(me, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
|
|
1082
1082
|
break;
|
|
1083
1083
|
case "effect":
|
|
1084
|
-
t.effect != null && typeof t.effect != "function" && console.error(
|
|
1084
|
+
t.effect != null && typeof t.effect != "function" && console.error(pe(me, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
|
|
1085
1085
|
break;
|
|
1086
1086
|
case "requires":
|
|
1087
|
-
t.requires != null && !Array.isArray(t.requires) && console.error(
|
|
1087
|
+
t.requires != null && !Array.isArray(t.requires) && console.error(pe(me, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
|
|
1088
1088
|
break;
|
|
1089
1089
|
case "requiresIfExists":
|
|
1090
|
-
Array.isArray(t.requiresIfExists) || console.error(
|
|
1090
|
+
Array.isArray(t.requiresIfExists) || console.error(pe(me, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
|
|
1091
1091
|
break;
|
|
1092
1092
|
case "options":
|
|
1093
1093
|
case "data":
|
|
@@ -1100,7 +1100,7 @@ function _i(e) {
|
|
|
1100
1100
|
t.requires && t.requires.forEach(function(r) {
|
|
1101
1101
|
e.find(function(o) {
|
|
1102
1102
|
return o.name === r;
|
|
1103
|
-
}) == null && console.error(
|
|
1103
|
+
}) == null && console.error(pe(Vi, String(t.name), r, r));
|
|
1104
1104
|
});
|
|
1105
1105
|
});
|
|
1106
1106
|
});
|
|
@@ -1142,7 +1142,7 @@ function Hi(e) {
|
|
|
1142
1142
|
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, a = o === void 0 ? zt : o;
|
|
1143
1143
|
return function(c, u, f) {
|
|
1144
1144
|
f === void 0 && (f = a);
|
|
1145
|
-
var
|
|
1145
|
+
var l = {
|
|
1146
1146
|
placement: "bottom",
|
|
1147
1147
|
orderedModifiers: [],
|
|
1148
1148
|
options: Object.assign({}, zt, a),
|
|
@@ -1154,23 +1154,23 @@ function Hi(e) {
|
|
|
1154
1154
|
attributes: {},
|
|
1155
1155
|
styles: {}
|
|
1156
1156
|
}, g = [], x = !1, m = {
|
|
1157
|
-
state:
|
|
1157
|
+
state: l,
|
|
1158
1158
|
setOptions: function(T) {
|
|
1159
|
-
var R = typeof T == "function" ? T(
|
|
1160
|
-
y(),
|
|
1159
|
+
var R = typeof T == "function" ? T(l.options) : T;
|
|
1160
|
+
y(), l.options = Object.assign({}, a, l.options, R), l.scrollParents = {
|
|
1161
1161
|
reference: we(c) ? Be(c) : c.contextElement ? Be(c.contextElement) : [],
|
|
1162
1162
|
popper: Be(u)
|
|
1163
1163
|
};
|
|
1164
|
-
var C = ji($i([].concat(r,
|
|
1165
|
-
if (
|
|
1164
|
+
var C = ji($i([].concat(r, l.options.modifiers)));
|
|
1165
|
+
if (l.orderedModifiers = C.filter(function(A) {
|
|
1166
1166
|
return A.enabled;
|
|
1167
1167
|
}), process.env.NODE_ENV !== "production") {
|
|
1168
|
-
var i = Bi([].concat(C,
|
|
1168
|
+
var i = Bi([].concat(C, l.options.modifiers), function(A) {
|
|
1169
1169
|
var L = A.name;
|
|
1170
1170
|
return L;
|
|
1171
1171
|
});
|
|
1172
|
-
if (_i(i), K(
|
|
1173
|
-
var E =
|
|
1172
|
+
if (_i(i), K(l.options.placement) === lt) {
|
|
1173
|
+
var E = l.orderedModifiers.find(function(A) {
|
|
1174
1174
|
var L = A.name;
|
|
1175
1175
|
return L === "flip";
|
|
1176
1176
|
});
|
|
@@ -1190,33 +1190,33 @@ function Hi(e) {
|
|
|
1190
1190
|
// prefer the async Popper#update method
|
|
1191
1191
|
forceUpdate: function() {
|
|
1192
1192
|
if (!x) {
|
|
1193
|
-
var T =
|
|
1193
|
+
var T = l.elements, R = T.reference, C = T.popper;
|
|
1194
1194
|
if (!Yt(R, C)) {
|
|
1195
1195
|
process.env.NODE_ENV !== "production" && console.error(qt);
|
|
1196
1196
|
return;
|
|
1197
1197
|
}
|
|
1198
|
-
|
|
1199
|
-
reference: Ii(R, ze(C),
|
|
1198
|
+
l.rects = {
|
|
1199
|
+
reference: Ii(R, ze(C), l.options.strategy === "fixed"),
|
|
1200
1200
|
popper: Rt(C)
|
|
1201
|
-
},
|
|
1202
|
-
return
|
|
1201
|
+
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(A) {
|
|
1202
|
+
return l.modifiersData[A.name] = Object.assign({}, A.data);
|
|
1203
1203
|
});
|
|
1204
|
-
for (var i = 0, E = 0; E <
|
|
1204
|
+
for (var i = 0, E = 0; E < l.orderedModifiers.length; E++) {
|
|
1205
1205
|
if (process.env.NODE_ENV !== "production" && (i += 1, i > 100)) {
|
|
1206
1206
|
console.error(Ui);
|
|
1207
1207
|
break;
|
|
1208
1208
|
}
|
|
1209
|
-
if (
|
|
1210
|
-
|
|
1209
|
+
if (l.reset === !0) {
|
|
1210
|
+
l.reset = !1, E = -1;
|
|
1211
1211
|
continue;
|
|
1212
1212
|
}
|
|
1213
|
-
var d =
|
|
1214
|
-
typeof D == "function" && (
|
|
1215
|
-
state:
|
|
1213
|
+
var d = l.orderedModifiers[E], D = d.fn, I = d.options, M = I === void 0 ? {} : I, P = d.name;
|
|
1214
|
+
typeof D == "function" && (l = D({
|
|
1215
|
+
state: l,
|
|
1216
1216
|
options: M,
|
|
1217
1217
|
name: P,
|
|
1218
1218
|
instance: m
|
|
1219
|
-
}) ||
|
|
1219
|
+
}) || l);
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
},
|
|
@@ -1224,7 +1224,7 @@ function Hi(e) {
|
|
|
1224
1224
|
// not necessary (debounced to run at most once-per-tick)
|
|
1225
1225
|
update: ki(function() {
|
|
1226
1226
|
return new Promise(function(b) {
|
|
1227
|
-
m.forceUpdate(), b(
|
|
1227
|
+
m.forceUpdate(), b(l);
|
|
1228
1228
|
});
|
|
1229
1229
|
}),
|
|
1230
1230
|
destroy: function() {
|
|
@@ -1237,11 +1237,11 @@ function Hi(e) {
|
|
|
1237
1237
|
!x && f.onFirstUpdate && f.onFirstUpdate(b);
|
|
1238
1238
|
});
|
|
1239
1239
|
function w() {
|
|
1240
|
-
|
|
1240
|
+
l.orderedModifiers.forEach(function(b) {
|
|
1241
1241
|
var T = b.name, R = b.options, C = R === void 0 ? {} : R, i = b.effect;
|
|
1242
1242
|
if (typeof i == "function") {
|
|
1243
1243
|
var E = i({
|
|
1244
|
-
state:
|
|
1244
|
+
state: l,
|
|
1245
1245
|
name: T,
|
|
1246
1246
|
instance: m,
|
|
1247
1247
|
options: C
|
|
@@ -1317,7 +1317,7 @@ function Ki(e) {
|
|
|
1317
1317
|
function Zi(e) {
|
|
1318
1318
|
return e.split("-")[0];
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function pt(e) {
|
|
1321
1321
|
return [].slice.call(e);
|
|
1322
1322
|
}
|
|
1323
1323
|
function Kt(e) {
|
|
@@ -1343,7 +1343,7 @@ function eo(e) {
|
|
|
1343
1343
|
return !!(e && e._tippy && e._tippy.reference === e);
|
|
1344
1344
|
}
|
|
1345
1345
|
function to(e) {
|
|
1346
|
-
return Fe(e) ? [e] : Ji(e) ?
|
|
1346
|
+
return Fe(e) ? [e] : Ji(e) ? pt(e) : Array.isArray(e) ? e : pt(document.querySelectorAll(e));
|
|
1347
1347
|
}
|
|
1348
1348
|
function mt(e, t) {
|
|
1349
1349
|
e.forEach(function(n) {
|
|
@@ -1362,10 +1362,10 @@ function no(e) {
|
|
|
1362
1362
|
function ro(e, t) {
|
|
1363
1363
|
var n = t.clientX, r = t.clientY;
|
|
1364
1364
|
return e.every(function(o) {
|
|
1365
|
-
var a = o.popperRect,
|
|
1366
|
-
if (!
|
|
1365
|
+
var a = o.popperRect, p = o.popperState, c = o.props, u = c.interactiveBorder, f = Zi(p.placement), l = p.modifiersData.offset;
|
|
1366
|
+
if (!l)
|
|
1367
1367
|
return !0;
|
|
1368
|
-
var g = f === "bottom" ?
|
|
1368
|
+
var g = f === "bottom" ? l.top.y : 0, x = f === "top" ? l.bottom.y : 0, m = f === "right" ? l.left.x : 0, w = f === "left" ? l.right.x : 0, y = a.top - r + g > u, b = r - a.bottom - x > u, T = a.left - n + m > u, R = n - a.right - w > u;
|
|
1369
1369
|
return y || b || T || R;
|
|
1370
1370
|
});
|
|
1371
1371
|
}
|
|
@@ -1437,8 +1437,8 @@ function kn(e) {
|
|
|
1437
1437
|
];
|
|
1438
1438
|
}
|
|
1439
1439
|
var We;
|
|
1440
|
-
process.env.NODE_ENV !== "production" &&
|
|
1441
|
-
function
|
|
1440
|
+
process.env.NODE_ENV !== "production" && po();
|
|
1441
|
+
function po() {
|
|
1442
1442
|
We = /* @__PURE__ */ new Set();
|
|
1443
1443
|
}
|
|
1444
1444
|
function se(e, t) {
|
|
@@ -1453,7 +1453,7 @@ function At(e, t) {
|
|
|
1453
1453
|
We.add(t), (n = console).error.apply(n, kn(t));
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1456
|
+
function lo(e) {
|
|
1457
1457
|
var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
|
|
1458
1458
|
At(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), At(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
1459
1459
|
}
|
|
@@ -1529,10 +1529,10 @@ var Vn = {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
function _n(e) {
|
|
1531
1531
|
var t = e.plugins || [], n = t.reduce(function(r, o) {
|
|
1532
|
-
var a = o.name,
|
|
1532
|
+
var a = o.name, p = o.defaultValue;
|
|
1533
1533
|
if (a) {
|
|
1534
1534
|
var c;
|
|
1535
|
-
r[a] = e[a] !== void 0 ? e[a] : (c = F[a]) != null ? c :
|
|
1535
|
+
r[a] = e[a] !== void 0 ? e[a] : (c = F[a]) != null ? c : p;
|
|
1536
1536
|
}
|
|
1537
1537
|
return r;
|
|
1538
1538
|
}, {});
|
|
@@ -1542,16 +1542,16 @@ function mo(e, t) {
|
|
|
1542
1542
|
var n = t ? Object.keys(_n(Object.assign({}, F, {
|
|
1543
1543
|
plugins: t
|
|
1544
1544
|
}))) : vo, r = n.reduce(function(o, a) {
|
|
1545
|
-
var
|
|
1546
|
-
if (!
|
|
1545
|
+
var p = (e.getAttribute("data-tippy-" + a) || "").trim();
|
|
1546
|
+
if (!p)
|
|
1547
1547
|
return o;
|
|
1548
1548
|
if (a === "content")
|
|
1549
|
-
o[a] =
|
|
1549
|
+
o[a] = p;
|
|
1550
1550
|
else
|
|
1551
1551
|
try {
|
|
1552
|
-
o[a] = JSON.parse(
|
|
1552
|
+
o[a] = JSON.parse(p);
|
|
1553
1553
|
} catch {
|
|
1554
|
-
o[a] =
|
|
1554
|
+
o[a] = p;
|
|
1555
1555
|
}
|
|
1556
1556
|
return o;
|
|
1557
1557
|
}, {});
|
|
@@ -1571,8 +1571,8 @@ function Bn(e, t) {
|
|
|
1571
1571
|
var n = Object.keys(e);
|
|
1572
1572
|
n.forEach(function(r) {
|
|
1573
1573
|
var o = Xi(F, Object.keys(Vn)), a = !Yi(o, r);
|
|
1574
|
-
a && (a = t.filter(function(
|
|
1575
|
-
return
|
|
1574
|
+
a && (a = t.filter(function(p) {
|
|
1575
|
+
return p.name === r;
|
|
1576
1576
|
}).length === 0), se(a, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
1577
1577
|
|
|
1578
1578
|
`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
@@ -1593,7 +1593,7 @@ function rn(e, t) {
|
|
|
1593
1593
|
Fe(t.content) ? (Tt(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Tt(e, t.content) : e.textContent = t.content);
|
|
1594
1594
|
}
|
|
1595
1595
|
function St(e) {
|
|
1596
|
-
var t = e.firstElementChild, n =
|
|
1596
|
+
var t = e.firstElementChild, n = pt(t.children);
|
|
1597
1597
|
return {
|
|
1598
1598
|
box: t,
|
|
1599
1599
|
content: n.find(function(r) {
|
|
@@ -1612,9 +1612,9 @@ function $n(e) {
|
|
|
1612
1612
|
n.className = qi, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
1613
1613
|
var r = $e();
|
|
1614
1614
|
r.className = Cn, r.setAttribute("data-state", "hidden"), rn(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
|
|
1615
|
-
function o(a,
|
|
1616
|
-
var c = St(t), u = c.box, f = c.content,
|
|
1617
|
-
|
|
1615
|
+
function o(a, p) {
|
|
1616
|
+
var c = St(t), u = c.box, f = c.content, l = c.arrow;
|
|
1617
|
+
p.theme ? u.setAttribute("data-theme", p.theme) : u.removeAttribute("data-theme"), typeof p.animation == "string" ? u.setAttribute("data-animation", p.animation) : u.removeAttribute("data-animation"), p.inertia ? u.setAttribute("data-inertia", "") : u.removeAttribute("data-inertia"), u.style.maxWidth = typeof p.maxWidth == "number" ? p.maxWidth + "px" : p.maxWidth, p.role ? u.setAttribute("role", p.role) : u.removeAttribute("role"), (a.content !== p.content || a.allowHTML !== p.allowHTML) && rn(f, e.props), p.arrow ? l ? a.arrow !== p.arrow && (u.removeChild(l), u.appendChild(nn(p.arrow))) : u.appendChild(nn(p.arrow)) : l && u.removeChild(l);
|
|
1618
1618
|
}
|
|
1619
1619
|
return {
|
|
1620
1620
|
popper: t,
|
|
@@ -1624,7 +1624,7 @@ function $n(e) {
|
|
|
1624
1624
|
$n.$$tippy = !0;
|
|
1625
1625
|
var yo = 1, at = [], yt = [];
|
|
1626
1626
|
function bo(e, t) {
|
|
1627
|
-
var n = tn(e, Object.assign({}, F, _n(Kt(t)))), r, o, a,
|
|
1627
|
+
var n = tn(e, Object.assign({}, F, _n(Kt(t)))), r, o, a, p = !1, c = !1, u = !1, f = !1, l, g, x, m = [], w = Xt(Ge, n.interactiveDebounce), y, b = yo++, T = null, R = Ki(n.plugins), C = {
|
|
1628
1628
|
// Is the instance currently enabled?
|
|
1629
1629
|
isEnabled: !0,
|
|
1630
1630
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -1690,7 +1690,7 @@ function bo(e, t) {
|
|
|
1690
1690
|
return St(d);
|
|
1691
1691
|
}
|
|
1692
1692
|
function k(s) {
|
|
1693
|
-
return i.state.isMounted && !i.state.isVisible || te.isTouch ||
|
|
1693
|
+
return i.state.isMounted && !i.state.isVisible || te.isTouch || l && l.type === "focus" ? 0 : ht(i.props.delay, s ? 0 : 1, F.delay);
|
|
1694
1694
|
}
|
|
1695
1695
|
function V(s) {
|
|
1696
1696
|
s === void 0 && (s = !1), d.style.pointerEvents = i.props.interactive && !s ? "" : "none", d.style.zIndex = "" + i.props.zIndex;
|
|
@@ -1820,10 +1820,10 @@ function bo(e, t) {
|
|
|
1820
1820
|
function Ne(s) {
|
|
1821
1821
|
var v, h = !1;
|
|
1822
1822
|
if (!(!i.state.isEnabled || Me(s) || c)) {
|
|
1823
|
-
var S = ((v =
|
|
1824
|
-
|
|
1823
|
+
var S = ((v = l) == null ? void 0 : v.type) === "focus";
|
|
1824
|
+
l = s, y = s.currentTarget, Q(), !i.state.isVisible && Qi(s) && at.forEach(function(O) {
|
|
1825
1825
|
return O(s);
|
|
1826
|
-
}), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 ||
|
|
1826
|
+
}), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || p) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : je(s), s.type === "click" && (p = !h), h && !S && ve(s);
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
1829
1829
|
function Ge(s) {
|
|
@@ -1841,7 +1841,7 @@ function bo(e, t) {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
function Ke(s) {
|
|
1844
|
-
var v = Me(s) || i.props.trigger.indexOf("click") >= 0 &&
|
|
1844
|
+
var v = Me(s) || i.props.trigger.indexOf("click") >= 0 && p;
|
|
1845
1845
|
if (!v) {
|
|
1846
1846
|
if (i.props.interactive) {
|
|
1847
1847
|
i.hideWithInteractivity(s);
|
|
@@ -1927,7 +1927,7 @@ function bo(e, t) {
|
|
|
1927
1927
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
1928
1928
|
}
|
|
1929
1929
|
function ce() {
|
|
1930
|
-
return
|
|
1930
|
+
return pt(d.querySelectorAll("[data-tippy-root]"));
|
|
1931
1931
|
}
|
|
1932
1932
|
function je(s) {
|
|
1933
1933
|
i.clearDelayTimeouts(), s && j("onTrigger", [i, s]), G();
|
|
@@ -1941,7 +1941,7 @@ function bo(e, t) {
|
|
|
1941
1941
|
ie();
|
|
1942
1942
|
return;
|
|
1943
1943
|
}
|
|
1944
|
-
if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(s.type) >= 0 &&
|
|
1944
|
+
if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(s.type) >= 0 && p)) {
|
|
1945
1945
|
var v = k(!1);
|
|
1946
1946
|
v ? o = setTimeout(function() {
|
|
1947
1947
|
i.state.isVisible && i.hide();
|
|
@@ -2003,7 +2003,7 @@ function bo(e, t) {
|
|
|
2003
2003
|
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, Se("hide"));
|
|
2004
2004
|
var s = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, S = ht(i.props.duration, 1, F.duration);
|
|
2005
2005
|
if (!(s || v || h) && (j("onHide", [i], !1), i.props.onHide(i) !== !1)) {
|
|
2006
|
-
if (i.state.isVisible = !1, i.state.isShown = !1, f = !1,
|
|
2006
|
+
if (i.state.isVisible = !1, i.state.isShown = !1, f = !1, p = !1, L() && (d.style.visibility = "hidden"), fe(), ie(), V(!0), L()) {
|
|
2007
2007
|
var O = H(), _ = O.box, z = O.content;
|
|
2008
2008
|
i.props.animation && (mt([_, z], S), Zt([_, z], "hidden"));
|
|
2009
2009
|
}
|
|
@@ -2027,13 +2027,13 @@ function bo(e, t) {
|
|
|
2027
2027
|
function Ye(e, t) {
|
|
2028
2028
|
t === void 0 && (t = {});
|
|
2029
2029
|
var n = F.plugins.concat(t.plugins || []);
|
|
2030
|
-
process.env.NODE_ENV !== "production" && (
|
|
2030
|
+
process.env.NODE_ENV !== "production" && (lo(e), Bn(t, n)), ao();
|
|
2031
2031
|
var r = Object.assign({}, t, {
|
|
2032
2032
|
plugins: n
|
|
2033
2033
|
}), o = to(e);
|
|
2034
2034
|
if (process.env.NODE_ENV !== "production") {
|
|
2035
|
-
var a = Fe(r.content),
|
|
2036
|
-
se(a &&
|
|
2035
|
+
var a = Fe(r.content), p = o.length > 1;
|
|
2036
|
+
se(a && p, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
2037
2037
|
|
|
2038
2038
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
2039
2039
|
|
|
@@ -2041,8 +2041,8 @@ function Ye(e, t) {
|
|
|
2041
2041
|
`, "2) content: () => element.cloneNode(true)"].join(" "));
|
|
2042
2042
|
}
|
|
2043
2043
|
var c = o.reduce(function(u, f) {
|
|
2044
|
-
var
|
|
2045
|
-
return
|
|
2044
|
+
var l = f && bo(f, r);
|
|
2045
|
+
return l && u.push(l), u;
|
|
2046
2046
|
}, []);
|
|
2047
2047
|
return Fe(e) ? c[0] : c;
|
|
2048
2048
|
}
|
|
@@ -2077,10 +2077,10 @@ var wo = {
|
|
|
2077
2077
|
function a(f) {
|
|
2078
2078
|
return t.props.sticky === !0 || t.props.sticky === f;
|
|
2079
2079
|
}
|
|
2080
|
-
var
|
|
2080
|
+
var p = null, c = null;
|
|
2081
2081
|
function u() {
|
|
2082
|
-
var f = a("reference") ? o().getBoundingClientRect() : null,
|
|
2083
|
-
(f && on(
|
|
2082
|
+
var f = a("reference") ? o().getBoundingClientRect() : null, l = a("popper") ? r.getBoundingClientRect() : null;
|
|
2083
|
+
(f && on(p, f) || l && on(c, l)) && t.popperInstance && t.popperInstance.update(), p = f, c = l, t.state.isMounted && requestAnimationFrame(u);
|
|
2084
2084
|
}
|
|
2085
2085
|
return {
|
|
2086
2086
|
onMount: function() {
|
|
@@ -2165,17 +2165,7 @@ const Eo = (e) => ({
|
|
|
2165
2165
|
return t.className = "tippy-box d-ps-absolute", t.appendChild(e), {
|
|
2166
2166
|
popper: t
|
|
2167
2167
|
};
|
|
2168
|
-
}, Lo =
|
|
2169
|
-
...Oo
|
|
2170
|
-
], Co = 300, Po = {
|
|
2171
|
-
hover: "d-tooltip--hover",
|
|
2172
|
-
show: "d-tooltip--show",
|
|
2173
|
-
inverted: "d-tooltip--inverted",
|
|
2174
|
-
hide: "d-tooltip--hide"
|
|
2175
|
-
}, No = [
|
|
2176
|
-
...xo
|
|
2177
|
-
], Ho = [!0, !1, "toggle"];
|
|
2178
|
-
const Io = {
|
|
2168
|
+
}, Lo = {
|
|
2179
2169
|
// eslint-disable-next-line vue/multi-word-component-names
|
|
2180
2170
|
name: "DtTooltip",
|
|
2181
2171
|
components: {
|
|
@@ -2250,7 +2240,7 @@ const Io = {
|
|
|
2250
2240
|
type: String,
|
|
2251
2241
|
default: "top",
|
|
2252
2242
|
validator(e) {
|
|
2253
|
-
return
|
|
2243
|
+
return No.includes(e);
|
|
2254
2244
|
}
|
|
2255
2245
|
},
|
|
2256
2246
|
/**
|
|
@@ -2271,7 +2261,7 @@ const Io = {
|
|
|
2271
2261
|
sticky: {
|
|
2272
2262
|
type: [Boolean, String],
|
|
2273
2263
|
default: !1,
|
|
2274
|
-
validator: (e) =>
|
|
2264
|
+
validator: (e) => jo.includes(e)
|
|
2275
2265
|
},
|
|
2276
2266
|
/**
|
|
2277
2267
|
* Additional css classes for the tooltip content element.
|
|
@@ -2357,7 +2347,7 @@ const Io = {
|
|
|
2357
2347
|
],
|
|
2358
2348
|
data() {
|
|
2359
2349
|
return {
|
|
2360
|
-
TOOLTIP_KIND_MODIFIERS:
|
|
2350
|
+
TOOLTIP_KIND_MODIFIERS: Mo,
|
|
2361
2351
|
hasSlotContent: br,
|
|
2362
2352
|
tip: null,
|
|
2363
2353
|
inTimer: null,
|
|
@@ -2442,7 +2432,7 @@ const Io = {
|
|
|
2442
2432
|
onEnterAnchor(e) {
|
|
2443
2433
|
this.delay ? this.inTimer = setTimeout((function(t) {
|
|
2444
2434
|
this.triggerShow(t);
|
|
2445
|
-
}).bind(this, e),
|
|
2435
|
+
}).bind(this, e), Io) : this.triggerShow(e);
|
|
2446
2436
|
},
|
|
2447
2437
|
triggerShow(e) {
|
|
2448
2438
|
e.type === "focusin" ? this.show === null && this.hasVisibleFocus() && (this.isShown = !0) : this.show === null && (this.isShown = !0);
|
|
@@ -2496,10 +2486,10 @@ const Io = {
|
|
|
2496
2486
|
});
|
|
2497
2487
|
}
|
|
2498
2488
|
}
|
|
2499
|
-
},
|
|
2500
|
-
function
|
|
2501
|
-
const
|
|
2502
|
-
return bt(), jt("div",
|
|
2489
|
+
}, Co = { "data-qa": "dt-tooltip-container" };
|
|
2490
|
+
function Po(e, t, n, r, o, a) {
|
|
2491
|
+
const p = rr("dt-lazy-show");
|
|
2492
|
+
return bt(), jt("div", Co, [
|
|
2503
2493
|
n.externalAnchor ? un("", !0) : (bt(), jt("span", {
|
|
2504
2494
|
key: 0,
|
|
2505
2495
|
ref: "anchor",
|
|
@@ -2512,7 +2502,7 @@ function jo(e, t, n, r, o, a) {
|
|
|
2512
2502
|
}, [
|
|
2513
2503
|
wt(e.$slots, "anchor")
|
|
2514
2504
|
], 544)),
|
|
2515
|
-
or(
|
|
2505
|
+
or(p, an({
|
|
2516
2506
|
id: n.id,
|
|
2517
2507
|
ref: "content",
|
|
2518
2508
|
show: a.isVisible,
|
|
@@ -2539,16 +2529,25 @@ function jo(e, t, n, r, o, a) {
|
|
|
2539
2529
|
}, 16, ["id", "show", "appear", "transition", "class"])
|
|
2540
2530
|
]);
|
|
2541
2531
|
}
|
|
2542
|
-
const
|
|
2532
|
+
const Ho = /* @__PURE__ */ bn(Lo, [["render", Po]]), No = [
|
|
2533
|
+
...Oo
|
|
2534
|
+
], Io = 300, Mo = {
|
|
2535
|
+
hover: "d-tooltip--hover",
|
|
2536
|
+
show: "d-tooltip--show",
|
|
2537
|
+
inverted: "d-tooltip--inverted",
|
|
2538
|
+
hide: "d-tooltip--hide"
|
|
2539
|
+
}, jo = [
|
|
2540
|
+
...xo
|
|
2541
|
+
], Fo = [!0, !1, "toggle"];
|
|
2543
2542
|
export {
|
|
2544
|
-
|
|
2543
|
+
Ho as D,
|
|
2545
2544
|
$o as E,
|
|
2546
2545
|
Bo as L,
|
|
2547
|
-
|
|
2546
|
+
No as T,
|
|
2548
2547
|
ge as V,
|
|
2549
2548
|
bn as _,
|
|
2550
2549
|
kr as a,
|
|
2551
|
-
|
|
2550
|
+
ln as b,
|
|
2552
2551
|
_o as c,
|
|
2553
2552
|
Ir as d,
|
|
2554
2553
|
Er as e,
|
|
@@ -2558,10 +2557,10 @@ export {
|
|
|
2558
2557
|
Vo as i,
|
|
2559
2558
|
cr as j,
|
|
2560
2559
|
mr as k,
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2560
|
+
Io as l,
|
|
2561
|
+
Mo as m,
|
|
2562
|
+
jo as n,
|
|
2563
|
+
Fo as o,
|
|
2565
2564
|
dr as p,
|
|
2566
2565
|
xo as q,
|
|
2567
2566
|
xr as r,
|