@dialpad/dialtone-vue 3.105.2 → 3.107.0

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.
Files changed (45) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +27 -0
  3. package/dist/component-documentation.json +1 -1
  4. package/dist/dialtone-vue.cjs +5 -5
  5. package/dist/dialtone-vue.js +2857 -2264
  6. package/dist/directives.cjs +1 -1
  7. package/dist/directives.js +1 -1
  8. package/dist/{emoji-WjzabgKs.js → emoji-BTNutvt9.js} +3929 -3915
  9. package/dist/emoji-rlL92lZG.cjs +1 -0
  10. package/dist/emoji.cjs +1 -1
  11. package/dist/emoji.js +4 -4
  12. package/dist/{emoji_picker-J3yCpi0n.js → emoji_picker-nmJ2h6aY.js} +2 -2
  13. package/dist/{emoji_picker-Uhm2r1e3.cjs → emoji_picker-yry3pYOn.cjs} +1 -1
  14. package/dist/emoji_text_wrapper--VteZTud.js +85 -0
  15. package/dist/emoji_text_wrapper-c3aPthCy.cjs +1 -0
  16. package/dist/message_input.cjs +1 -92
  17. package/dist/message_input.js +156 -13406
  18. package/dist/rich_text_editor-2sh3YgmO.js +16664 -0
  19. package/dist/rich_text_editor-rl8EpCt1.cjs +97 -0
  20. package/dist/style.css +1 -1
  21. package/dist/{tooltip-Cr_G7ib3.js → tooltip-3O-FaSCC.js} +167 -148
  22. package/dist/{tooltip-gZ2LW6l0.cjs → tooltip-POX7tOJg.cjs} +5 -5
  23. package/dist/types/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
  24. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +16 -1
  25. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  26. package/dist/types/components/rich_text_editor/rich_text_editor_constants.d.ts +2 -0
  27. package/dist/types/components/rich_text_editor/rich_text_editor_constants.d.ts.map +1 -1
  28. package/dist/types/components/tooltip/tooltip.vue.d.ts +33 -1
  29. package/dist/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
  30. package/dist/types/components/tooltip/tooltip_constants.d.ts +2 -0
  31. package/dist/types/components/tooltip/tooltip_constants.d.ts.map +1 -1
  32. package/dist/types/index.d.ts +1 -0
  33. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +522 -0
  34. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -0
  35. package/dist/types/recipes/conversation_view/editor/editor_constants.d.ts +8 -0
  36. package/dist/types/recipes/conversation_view/editor/editor_constants.d.ts.map +1 -0
  37. package/dist/types/recipes/conversation_view/editor/index.d.ts +2 -0
  38. package/dist/types/recipes/conversation_view/editor/index.d.ts.map +1 -0
  39. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  40. package/package.json +14 -4
  41. package/dist/emoji-wyzCAeMh.cjs +0 -1
  42. package/dist/emoji_text_wrapper-N_7eQTWM.js +0 -86
  43. package/dist/emoji_text_wrapper-PF5FAHE8.cjs +0 -1
  44. package/dist/stack--3ERj1r4.cjs +0 -2
  45. package/dist/stack-tU3sgAgJ.js +0 -1905
@@ -3,22 +3,22 @@ const he = {
3
3
  ERROR: "error",
4
4
  WARNING: "warning",
5
5
  SUCCESS: "success"
6
- }, Lo = {
6
+ }, Ro = {
7
7
  LARGE: "lg",
8
8
  EXTRA_LARGE: "xl"
9
- }, Ro = {
9
+ }, Po = {
10
10
  xs: "",
11
11
  sm: "",
12
12
  md: "",
13
13
  lg: "d-description--lg",
14
14
  xl: "d-description--xl"
15
- }, Po = {
15
+ }, Io = {
16
16
  xs: "d-label--xs",
17
17
  sm: "d-label--sm",
18
18
  md: "",
19
19
  lg: "d-label--lg",
20
20
  xl: "d-label--xl"
21
- }, Io = {
21
+ }, No = {
22
22
  esc: "Esc",
23
23
  escape: "Escape",
24
24
  tab: "Tab",
@@ -140,25 +140,25 @@ const dn = pn(), xr = new RegExp(
140
140
  ].join("|"),
141
141
  "gi"
142
142
  );
143
- function Ar(e) {
143
+ function Tr(e) {
144
144
  var t;
145
145
  return !e || !["string", "number"].includes(typeof e) ? !1 : (e = e.toString(), ((t = dn.exec(e)) == null ? void 0 : t[0]) === e);
146
146
  }
147
- function Tr(e) {
147
+ function Ar(e) {
148
148
  var t, n;
149
149
  return !e || typeof e != "string" ? !1 : ((t = cn.exec(e)) == null ? void 0 : t[0]) === e || ((n = ln.exec(e)) == null ? void 0 : n[0]) === e;
150
150
  }
151
- function Dr(e) {
151
+ function Sr(e) {
152
152
  var t;
153
153
  return !e || typeof e != "string" ? !1 : ((t = fn.exec(e)) == null ? void 0 : t[0]) === e;
154
154
  }
155
- function Sr(e) {
155
+ function Dr(e) {
156
156
  return e.filter((t) => !!t).join(" ");
157
157
  }
158
158
  function Cr(e, t = "en-US") {
159
159
  return e.replace(new RegExp("^\\p{CWU}", "u"), (n) => n.toLocaleUpperCase(t));
160
160
  }
161
- const No = {
161
+ const Mo = {
162
162
  getUniqueString: rn,
163
163
  getRandomElement: ur,
164
164
  getRandomInt: on,
@@ -174,10 +174,10 @@ const No = {
174
174
  isOutOfViewPort: yr,
175
175
  getPhoneNumberRegex: pn,
176
176
  linkRegex: xr,
177
- isEmailAddress: Dr,
178
- isPhoneNumber: Ar,
179
- isURL: Tr,
180
- safeConcatStrings: Sr,
177
+ isEmailAddress: Sr,
178
+ isPhoneNumber: Tr,
179
+ isURL: Ar,
180
+ safeConcatStrings: Dr,
181
181
  capitalizeFirstLetter: Cr
182
182
  }, vn = (e, t) => {
183
183
  const n = e.__vccOpts || e;
@@ -259,10 +259,10 @@ function Rr(e, t, n, r, o, a) {
259
259
  }, 16, ["name", "appear", "css"]);
260
260
  }
261
261
  const Pr = /* @__PURE__ */ vn(Lr, [["render", Rr]]);
262
- var _ = "top", Y = "bottom", X = "right", $ = "left", xt = "auto", We = [_, Y, X, $], De = "start", _e = "end", Ir = "clippingParents", hn = "viewport", je = "popper", Nr = "reference", Mt = /* @__PURE__ */ We.reduce(function(e, t) {
263
- return e.concat([t + "-" + De, t + "-" + _e]);
262
+ var _ = "top", Y = "bottom", X = "right", $ = "left", xt = "auto", We = [_, Y, X, $], Se = "start", _e = "end", Ir = "clippingParents", hn = "viewport", je = "popper", Nr = "reference", Mt = /* @__PURE__ */ We.reduce(function(e, t) {
263
+ return e.concat([t + "-" + Se, t + "-" + _e]);
264
264
  }, []), mn = /* @__PURE__ */ [].concat(We, [xt]).reduce(function(e, t) {
265
- return e.concat([t, t + "-" + De, t + "-" + _e]);
265
+ return e.concat([t, t + "-" + Se, t + "-" + _e]);
266
266
  }, []), Mr = "beforeRead", jr = "read", kr = "afterRead", Vr = "beforeMain", Br = "main", _r = "afterMain", $r = "beforeWrite", Ur = "write", Hr = "afterWrite", Wr = [Mr, jr, kr, Vr, Br, _r, $r, Ur, Hr];
267
267
  function te(e) {
268
268
  return e ? (e.nodeName || "").toLowerCase() : null;
@@ -284,7 +284,7 @@ function q(e) {
284
284
  var t = F(e).HTMLElement;
285
285
  return e instanceof t || e instanceof HTMLElement;
286
286
  }
287
- function At(e) {
287
+ function Tt(e) {
288
288
  if (typeof ShadowRoot > "u")
289
289
  return !1;
290
290
  var t = F(e).ShadowRoot;
@@ -335,7 +335,7 @@ const gn = {
335
335
  function ee(e) {
336
336
  return e.split("-")[0];
337
337
  }
338
- var ge = Math.max, st = Math.min, Se = Math.round;
338
+ var ge = Math.max, st = Math.min, De = Math.round;
339
339
  function yt() {
340
340
  var e = navigator.userAgentData;
341
341
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
@@ -348,7 +348,7 @@ function yn() {
348
348
  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
- t && q(e) && (o = e.offsetWidth > 0 && Se(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Se(r.height) / e.offsetHeight || 1);
351
+ t && q(e) && (o = e.offsetWidth > 0 && De(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && De(r.height) / e.offsetHeight || 1);
352
352
  var l = ye(e) ? F(e) : window, u = l.visualViewport, c = !yn() && n, p = (r.left + (c && u ? u.offsetLeft : 0)) / o, f = (r.top + (c && u ? u.offsetTop : 0)) / a, b = r.width / o, O = r.height / a;
353
353
  return {
354
354
  width: b,
@@ -361,7 +361,7 @@ function Ce(e, t, n) {
361
361
  y: f
362
362
  };
363
363
  }
364
- function Tt(e) {
364
+ function At(e) {
365
365
  var t = Ce(e), n = e.offsetWidth, r = e.offsetHeight;
366
366
  return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
367
367
  x: e.offsetLeft,
@@ -374,7 +374,7 @@ function bn(e, t) {
374
374
  var n = t.getRootNode && t.getRootNode();
375
375
  if (e.contains(t))
376
376
  return !0;
377
- if (n && At(n)) {
377
+ if (n && Tt(n)) {
378
378
  var r = t;
379
379
  do {
380
380
  if (r && e.isSameNode(r))
@@ -403,7 +403,7 @@ function ct(e) {
403
403
  // $FlowFixMe[prop-missing]
404
404
  e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
405
405
  e.parentNode || // DOM Element detected
406
- (At(e) ? e.host : null) || // ShadowRoot detected
406
+ (Tt(e) ? e.host : null) || // ShadowRoot detected
407
407
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
408
408
  le(e)
409
409
  );
@@ -420,7 +420,7 @@ function Yr(e) {
420
420
  return null;
421
421
  }
422
422
  var o = ct(e);
423
- for (At(o) && (o = o.host); q(o) && ["html", "body"].indexOf(te(o)) < 0; ) {
423
+ for (Tt(o) && (o = o.host); q(o) && ["html", "body"].indexOf(te(o)) < 0; ) {
424
424
  var a = se(o);
425
425
  if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
426
426
  return o;
@@ -433,7 +433,7 @@ function Fe(e) {
433
433
  n = jt(n);
434
434
  return n && (te(n) === "html" || te(n) === "body" && se(n).position === "static") ? t : n || Yr(e) || t;
435
435
  }
436
- function Dt(e) {
436
+ function St(e) {
437
437
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
438
438
  }
439
439
  function ke(e, t, n) {
@@ -465,10 +465,10 @@ var Kr = function(t, n) {
465
465
  })) : t, En(typeof t != "number" ? t : On(t, We));
466
466
  };
467
467
  function Gr(e) {
468
- var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, l = n.modifiersData.popperOffsets, u = ee(n.placement), c = Dt(u), p = [$, X].indexOf(u) >= 0, f = p ? "height" : "width";
468
+ var t, n = e.state, r = e.name, o = e.options, a = n.elements.arrow, l = n.modifiersData.popperOffsets, u = ee(n.placement), c = St(u), p = [$, X].indexOf(u) >= 0, f = p ? "height" : "width";
469
469
  if (!(!a || !l)) {
470
- var b = Kr(o.padding, n), O = Tt(a), m = c === "y" ? _ : $, w = c === "y" ? Y : X, g = n.rects.reference[f] + n.rects.reference[c] - l[c] - n.rects.popper[f], y = l[c] - n.rects.reference[c], A = Fe(a), D = A ? c === "y" ? A.clientHeight || 0 : A.clientWidth || 0 : 0, C = g / 2 - y / 2, i = b[m], x = D - O[f] - b[w], d = D / 2 - O[f] / 2 + C, S = ke(i, d, x), N = c;
471
- n.modifiersData[r] = (t = {}, t[N] = S, t.centerOffset = S - d, t);
470
+ var b = Kr(o.padding, n), O = At(a), m = c === "y" ? _ : $, w = c === "y" ? Y : X, g = n.rects.reference[f] + n.rects.reference[c] - l[c] - n.rects.popper[f], y = l[c] - n.rects.reference[c], T = Fe(a), S = T ? c === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, C = g / 2 - y / 2, i = b[m], x = S - O[f] - b[w], d = S / 2 - O[f] / 2 + C, D = ke(i, d, x), N = c;
471
+ n.modifiersData[r] = (t = {}, t[N] = D, t.centerOffset = D - d, t);
472
472
  }
473
473
  }
474
474
  function Zr(e) {
@@ -496,8 +496,8 @@ var Jr = {
496
496
  function ei(e, t) {
497
497
  var n = e.x, r = e.y, o = t.devicePixelRatio || 1;
498
498
  return {
499
- x: Se(n * o) / o || 0,
500
- y: Se(r * o) / o || 0
499
+ x: De(n * o) / o || 0,
500
+ y: De(r * o) / o || 0
501
501
  };
502
502
  }
503
503
  function kt(e) {
@@ -509,14 +509,14 @@ function kt(e) {
509
509
  y: g
510
510
  };
511
511
  m = y.x, g = y.y;
512
- var A = l.hasOwnProperty("x"), D = l.hasOwnProperty("y"), C = $, i = _, x = window;
512
+ var T = l.hasOwnProperty("x"), S = l.hasOwnProperty("y"), C = $, i = _, x = window;
513
513
  if (p) {
514
- var d = Fe(n), S = "clientHeight", N = "clientWidth";
515
- if (d === F(n) && (d = le(n), se(d).position !== "static" && u === "absolute" && (S = "scrollHeight", N = "scrollWidth")), d = d, o === _ || (o === $ || o === X) && a === _e) {
514
+ var d = Fe(n), D = "clientHeight", N = "clientWidth";
515
+ if (d === F(n) && (d = le(n), se(d).position !== "static" && u === "absolute" && (D = "scrollHeight", N = "scrollWidth")), d = d, o === _ || (o === $ || o === X) && a === _e) {
516
516
  i = Y;
517
517
  var I = b && d === x && x.visualViewport ? x.visualViewport.height : (
518
518
  // $FlowFixMe[prop-missing]
519
- d[S]
519
+ d[D]
520
520
  );
521
521
  g -= I - r.height, g *= c ? 1 : -1;
522
522
  }
@@ -540,9 +540,9 @@ function kt(e) {
540
540
  };
541
541
  if (m = P.x, g = P.y, c) {
542
542
  var L;
543
- return Object.assign({}, M, (L = {}, L[i] = D ? "0" : "", L[C] = A ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + g + "px)" : "translate3d(" + m + "px, " + g + "px, 0)", L));
543
+ return Object.assign({}, M, (L = {}, L[i] = S ? "0" : "", L[C] = T ? "0" : "", L.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + g + "px)" : "translate3d(" + m + "px, " + g + "px, 0)", L));
544
544
  }
545
- return Object.assign({}, M, (t = {}, t[i] = D ? g + "px" : "", t[C] = A ? m + "px" : "", t.transform = "", t));
545
+ return Object.assign({}, M, (t = {}, t[i] = S ? g + "px" : "", t[C] = T ? m + "px" : "", t.transform = "", t));
546
546
  }
547
547
  function ti(e) {
548
548
  var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, l = a === void 0 ? !0 : a, u = n.roundOffsets, c = u === void 0 ? !0 : u, p = {
@@ -616,7 +616,7 @@ function Vt(e) {
616
616
  return ai[t];
617
617
  });
618
618
  }
619
- function St(e) {
619
+ function Dt(e) {
620
620
  var t = F(e), n = t.pageXOffset, r = t.pageYOffset;
621
621
  return {
622
622
  scrollLeft: n,
@@ -624,7 +624,7 @@ function St(e) {
624
624
  };
625
625
  }
626
626
  function Ct(e) {
627
- return Ce(le(e)).left + St(e).scrollLeft;
627
+ return Ce(le(e)).left + Dt(e).scrollLeft;
628
628
  }
629
629
  function si(e, t) {
630
630
  var n = F(e), r = le(e), o = n.visualViewport, a = r.clientWidth, l = r.clientHeight, u = 0, c = 0;
@@ -641,7 +641,7 @@ function si(e, t) {
641
641
  };
642
642
  }
643
643
  function ui(e) {
644
- var t, n = le(e), r = St(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = ge(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = ge(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), u = -r.scrollLeft + Ct(e), c = -r.scrollTop;
644
+ var t, n = le(e), r = Dt(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = ge(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = ge(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), u = -r.scrollLeft + Ct(e), c = -r.scrollTop;
645
645
  return se(o || n).direction === "rtl" && (u += ge(n.clientWidth, o ? o.clientWidth : 0) - a), {
646
646
  width: a,
647
647
  height: l,
@@ -693,7 +693,7 @@ function fi(e, t, n, r) {
693
693
  }, Bt(e, l, r));
694
694
  return u.width = u.right - u.left, u.height = u.bottom - u.top, u.x = u.left, u.y = u.top, u;
695
695
  }
696
- function An(e) {
696
+ function Tn(e) {
697
697
  var t = e.reference, n = e.element, r = e.placement, o = r ? ee(r) : null, a = r ? Le(r) : null, l = t.x + t.width / 2 - n.width / 2, u = t.y + t.height / 2 - n.height / 2, c;
698
698
  switch (o) {
699
699
  case _:
@@ -726,11 +726,11 @@ function An(e) {
726
726
  y: t.y
727
727
  };
728
728
  }
729
- var p = o ? Dt(o) : null;
729
+ var p = o ? St(o) : null;
730
730
  if (p != null) {
731
731
  var f = p === "y" ? "height" : "width";
732
732
  switch (a) {
733
- case De:
733
+ case Se:
734
734
  c[p] = c[p] - (t[f] / 2 - n[f] / 2);
735
735
  break;
736
736
  case _e:
@@ -742,16 +742,16 @@ function An(e) {
742
742
  }
743
743
  function $e(e, t) {
744
744
  t === void 0 && (t = {});
745
- var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, l = a === void 0 ? e.strategy : a, u = n.boundary, c = u === void 0 ? Ir : u, p = n.rootBoundary, f = p === void 0 ? hn : p, b = n.elementContext, O = b === void 0 ? je : b, m = n.altBoundary, w = m === void 0 ? !1 : m, g = n.padding, y = g === void 0 ? 0 : g, A = En(typeof y != "number" ? y : On(y, We)), D = O === je ? Nr : je, C = e.rects.popper, i = e.elements[w ? D : O], x = fi(ye(i) ? i : i.contextElement || le(e.elements.popper), c, f, l), d = Ce(e.elements.reference), S = An({
745
+ var n = t, r = n.placement, o = r === void 0 ? e.placement : r, a = n.strategy, l = a === void 0 ? e.strategy : a, u = n.boundary, c = u === void 0 ? Ir : u, p = n.rootBoundary, f = p === void 0 ? hn : p, b = n.elementContext, O = b === void 0 ? je : b, m = n.altBoundary, w = m === void 0 ? !1 : m, g = n.padding, y = g === void 0 ? 0 : g, T = En(typeof y != "number" ? y : On(y, We)), S = O === je ? Nr : je, C = e.rects.popper, i = e.elements[w ? S : O], x = fi(ye(i) ? i : i.contextElement || le(e.elements.popper), c, f, l), d = Ce(e.elements.reference), D = Tn({
746
746
  reference: d,
747
747
  element: C,
748
748
  strategy: "absolute",
749
749
  placement: o
750
- }), N = bt(Object.assign({}, C, S)), I = O === je ? N : d, R = {
751
- top: x.top - I.top + A.top,
752
- bottom: I.bottom - x.bottom + A.bottom,
753
- left: x.left - I.left + A.left,
754
- right: I.right - x.right + A.right
750
+ }), N = bt(Object.assign({}, C, D)), I = O === je ? N : d, R = {
751
+ top: x.top - I.top + T.top,
752
+ bottom: I.bottom - x.bottom + T.bottom,
753
+ left: x.left - I.left + T.left,
754
+ right: I.right - x.right + T.right
755
755
  }, M = e.modifiersData.offset;
756
756
  if (O === je && M) {
757
757
  var P = M[o];
@@ -791,7 +791,7 @@ function di(e) {
791
791
  function vi(e) {
792
792
  var t = e.state, n = e.options, r = e.name;
793
793
  if (!t.modifiersData[r]._skip) {
794
- for (var o = n.mainAxis, a = o === void 0 ? !0 : o, l = n.altAxis, u = l === void 0 ? !0 : l, c = n.fallbackPlacements, p = n.padding, f = n.boundary, b = n.rootBoundary, O = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, g = n.allowedAutoPlacements, y = t.options.placement, A = ee(y), D = A === y, C = c || (D || !w ? [at(y)] : di(y)), i = [y].concat(C).reduce(function(ne, K) {
794
+ for (var o = n.mainAxis, a = o === void 0 ? !0 : o, l = n.altAxis, u = l === void 0 ? !0 : l, c = n.fallbackPlacements, p = n.padding, f = n.boundary, b = n.rootBoundary, O = n.altBoundary, m = n.flipVariations, w = m === void 0 ? !0 : m, g = n.allowedAutoPlacements, y = t.options.placement, T = ee(y), S = T === y, C = c || (S || !w ? [at(y)] : di(y)), i = [y].concat(C).reduce(function(ne, K) {
795
795
  return ne.concat(ee(K) === xt ? pi(t, {
796
796
  placement: K,
797
797
  boundary: f,
@@ -800,8 +800,8 @@ function vi(e) {
800
800
  flipVariations: w,
801
801
  allowedAutoPlacements: g
802
802
  }) : K);
803
- }, []), x = t.rects.reference, d = t.rects.popper, S = /* @__PURE__ */ new Map(), N = !0, I = i[0], R = 0; R < i.length; R++) {
804
- var M = i[R], P = ee(M), L = Le(M) === De, U = [_, Y].indexOf(P) >= 0, H = U ? "width" : "height", k = $e(t, {
803
+ }, []), x = t.rects.reference, d = t.rects.popper, D = /* @__PURE__ */ new Map(), N = !0, I = i[0], R = 0; R < i.length; R++) {
804
+ var M = i[R], P = ee(M), L = Le(M) === Se, U = [_, Y].indexOf(P) >= 0, H = U ? "width" : "height", k = $e(t, {
805
805
  placement: M,
806
806
  boundary: f,
807
807
  rootBoundary: b,
@@ -816,12 +816,12 @@ function vi(e) {
816
816
  I = M, N = !1;
817
817
  break;
818
818
  }
819
- S.set(M, G);
819
+ D.set(M, G);
820
820
  }
821
821
  if (N)
822
822
  for (var Z = w ? 3 : 1, fe = function(K) {
823
823
  var re = i.find(function(be) {
824
- var ie = S.get(be);
824
+ var ie = D.get(be);
825
825
  if (ie)
826
826
  return ie.slice(0, K).every(function(we) {
827
827
  return we;
@@ -913,7 +913,7 @@ const wi = {
913
913
  };
914
914
  function Ei(e) {
915
915
  var t = e.state, n = e.name;
916
- t.modifiersData[n] = An({
916
+ t.modifiersData[n] = Tn({
917
917
  reference: t.rects.reference,
918
918
  element: t.rects.popper,
919
919
  strategy: "absolute",
@@ -930,13 +930,13 @@ const Oi = {
930
930
  function xi(e) {
931
931
  return e === "x" ? "y" : "x";
932
932
  }
933
- function Ai(e) {
933
+ function Ti(e) {
934
934
  var t = e.state, n = e.options, r = e.name, o = n.mainAxis, a = o === void 0 ? !0 : o, l = n.altAxis, u = l === void 0 ? !1 : l, c = n.boundary, p = n.rootBoundary, f = n.altBoundary, b = n.padding, O = n.tether, m = O === void 0 ? !0 : O, w = n.tetherOffset, g = w === void 0 ? 0 : w, y = $e(t, {
935
935
  boundary: c,
936
936
  rootBoundary: p,
937
937
  padding: b,
938
938
  altBoundary: f
939
- }), A = ee(t.placement), D = Le(t.placement), C = !D, i = Dt(A), x = xi(i), d = t.modifiersData.popperOffsets, S = t.rects.reference, N = t.rects.popper, I = typeof g == "function" ? g(Object.assign({}, t.rects, {
939
+ }), T = ee(t.placement), S = Le(t.placement), C = !S, i = St(T), x = xi(i), d = t.modifiersData.popperOffsets, D = t.rects.reference, N = t.rects.popper, I = typeof g == "function" ? g(Object.assign({}, t.rects, {
940
940
  placement: t.placement
941
941
  })) : g, R = typeof I == "number" ? {
942
942
  mainAxis: I,
@@ -950,37 +950,37 @@ function Ai(e) {
950
950
  };
951
951
  if (d) {
952
952
  if (a) {
953
- var L, U = i === "y" ? _ : $, H = i === "y" ? Y : X, k = i === "y" ? "height" : "width", V = d[i], j = V + y[U], G = V - y[H], Z = m ? -N[k] / 2 : 0, fe = D === De ? S[k] : N[k], Q = D === De ? -N[k] : -S[k], pe = t.elements.arrow, ne = m && pe ? Tt(pe) : {
953
+ var L, U = i === "y" ? _ : $, H = i === "y" ? Y : X, k = i === "y" ? "height" : "width", V = d[i], j = V + y[U], G = V - y[H], Z = m ? -N[k] / 2 : 0, fe = S === Se ? D[k] : N[k], Q = S === Se ? -N[k] : -D[k], pe = t.elements.arrow, ne = m && pe ? At(pe) : {
954
954
  width: 0,
955
955
  height: 0
956
- }, K = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : wn(), re = K[U], be = K[H], ie = ke(0, S[k], ne[k]), we = C ? S[k] / 2 - Z - ie - re - R.mainAxis : fe - ie - re - R.mainAxis, ue = C ? -S[k] / 2 + Z + ie + be + R.mainAxis : Q + ie + be + R.mainAxis, Ee = t.elements.arrow && Fe(t.elements.arrow), qe = Ee ? i === "y" ? Ee.clientTop || 0 : Ee.clientLeft || 0 : 0, Re = (L = M == null ? void 0 : M[i]) != null ? L : 0, Ye = V + we - Re - qe, Xe = V + ue - Re, Pe = ke(m ? st(j, Ye) : j, V, m ? ge(G, Xe) : G);
956
+ }, K = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : wn(), re = K[U], be = K[H], ie = ke(0, D[k], ne[k]), we = C ? D[k] / 2 - Z - ie - re - R.mainAxis : fe - ie - re - R.mainAxis, ue = C ? -D[k] / 2 + Z + ie + be + R.mainAxis : Q + ie + be + R.mainAxis, Ee = t.elements.arrow && Fe(t.elements.arrow), qe = Ee ? i === "y" ? Ee.clientTop || 0 : Ee.clientLeft || 0 : 0, Re = (L = M == null ? void 0 : M[i]) != null ? L : 0, Ye = V + we - Re - qe, Xe = V + ue - Re, Pe = ke(m ? st(j, Ye) : j, V, m ? ge(G, Xe) : G);
957
957
  d[i] = Pe, P[i] = Pe - V;
958
958
  }
959
959
  if (u) {
960
- var Ie, Ke = i === "x" ? _ : $, Ge = i === "x" ? Y : X, oe = d[x], ce = x === "y" ? "height" : "width", Ne = oe + y[Ke], de = oe - y[Ge], Me = [_, $].indexOf(A) !== -1, Ze = (Ie = M == null ? void 0 : M[x]) != null ? Ie : 0, Qe = Me ? Ne : oe - S[ce] - N[ce] - Ze + R.altAxis, Je = Me ? oe + S[ce] + N[ce] - Ze - R.altAxis : de, et = m && Me ? Xr(Qe, oe, Je) : ke(m ? Qe : Ne, oe, m ? Je : de);
960
+ var Ie, Ke = i === "x" ? _ : $, Ge = i === "x" ? Y : X, oe = d[x], ce = x === "y" ? "height" : "width", Ne = oe + y[Ke], de = oe - y[Ge], Me = [_, $].indexOf(T) !== -1, Ze = (Ie = M == null ? void 0 : M[x]) != null ? Ie : 0, Qe = Me ? Ne : oe - D[ce] - N[ce] - Ze + R.altAxis, Je = Me ? oe + D[ce] + N[ce] - Ze - R.altAxis : de, et = m && Me ? Xr(Qe, oe, Je) : ke(m ? Qe : Ne, oe, m ? Je : de);
961
961
  d[x] = et, P[x] = et - oe;
962
962
  }
963
963
  t.modifiersData[r] = P;
964
964
  }
965
965
  }
966
- const Ti = {
966
+ const Ai = {
967
967
  name: "preventOverflow",
968
968
  enabled: !0,
969
969
  phase: "main",
970
- fn: Ai,
970
+ fn: Ti,
971
971
  requiresIfExists: ["offset"]
972
972
  };
973
- function Di(e) {
973
+ function Si(e) {
974
974
  return {
975
975
  scrollLeft: e.scrollLeft,
976
976
  scrollTop: e.scrollTop
977
977
  };
978
978
  }
979
- function Si(e) {
980
- return e === F(e) || !q(e) ? St(e) : Di(e);
979
+ function Di(e) {
980
+ return e === F(e) || !q(e) ? Dt(e) : Si(e);
981
981
  }
982
982
  function Ci(e) {
983
- var t = e.getBoundingClientRect(), n = Se(t.width) / e.offsetWidth || 1, r = Se(t.height) / e.offsetHeight || 1;
983
+ var t = e.getBoundingClientRect(), n = De(t.width) / e.offsetWidth || 1, r = De(t.height) / e.offsetHeight || 1;
984
984
  return n !== 1 || r !== 1;
985
985
  }
986
986
  function Li(e, t, n) {
@@ -993,7 +993,7 @@ function Li(e, t, n) {
993
993
  y: 0
994
994
  };
995
995
  return (r || !r && !n) && ((te(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
996
- Lt(a)) && (u = Si(t)), q(t) ? (c = Ce(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = Ct(a))), {
996
+ Lt(a)) && (u = Di(t)), q(t) ? (c = Ce(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = Ct(a))), {
997
997
  x: l.left + u.scrollLeft - c.x,
998
998
  y: l.top + u.scrollTop - c.y,
999
999
  width: l.width,
@@ -1079,9 +1079,9 @@ function Mi(e) {
1079
1079
  styles: {}
1080
1080
  }, b = [], O = !1, m = {
1081
1081
  state: f,
1082
- setOptions: function(A) {
1083
- var D = typeof A == "function" ? A(f.options) : A;
1084
- g(), f.options = Object.assign({}, a, f.options, D), f.scrollParents = {
1082
+ setOptions: function(T) {
1083
+ var S = typeof T == "function" ? T(f.options) : T;
1084
+ g(), f.options = Object.assign({}, a, f.options, S), f.scrollParents = {
1085
1085
  reference: ye(u) ? Ve(u) : u.contextElement ? Ve(u.contextElement) : [],
1086
1086
  popper: Ve(c)
1087
1087
  };
@@ -1097,11 +1097,11 @@ function Mi(e) {
1097
1097
  // prefer the async Popper#update method
1098
1098
  forceUpdate: function() {
1099
1099
  if (!O) {
1100
- var A = f.elements, D = A.reference, C = A.popper;
1101
- if (Ht(D, C)) {
1100
+ var T = f.elements, S = T.reference, C = T.popper;
1101
+ if (Ht(S, C)) {
1102
1102
  f.rects = {
1103
- reference: Li(D, Fe(C), f.options.strategy === "fixed"),
1104
- popper: Tt(C)
1103
+ reference: Li(S, Fe(C), f.options.strategy === "fixed"),
1104
+ popper: At(C)
1105
1105
  }, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(R) {
1106
1106
  return f.modifiersData[R.name] = Object.assign({}, R.data);
1107
1107
  });
@@ -1110,7 +1110,7 @@ function Mi(e) {
1110
1110
  f.reset = !1, i = -1;
1111
1111
  continue;
1112
1112
  }
1113
- var x = f.orderedModifiers[i], d = x.fn, S = x.options, N = S === void 0 ? {} : S, I = x.name;
1113
+ var x = f.orderedModifiers[i], d = x.fn, D = x.options, N = D === void 0 ? {} : D, I = x.name;
1114
1114
  typeof d == "function" && (f = d({
1115
1115
  state: f,
1116
1116
  options: N,
@@ -1139,11 +1139,11 @@ function Mi(e) {
1139
1139
  });
1140
1140
  function w() {
1141
1141
  f.orderedModifiers.forEach(function(y) {
1142
- var A = y.name, D = y.options, C = D === void 0 ? {} : D, i = y.effect;
1142
+ var T = y.name, S = y.options, C = S === void 0 ? {} : S, i = y.effect;
1143
1143
  if (typeof i == "function") {
1144
1144
  var x = i({
1145
1145
  state: f,
1146
- name: A,
1146
+ name: T,
1147
1147
  instance: m,
1148
1148
  options: C
1149
1149
  }), d = function() {
@@ -1160,9 +1160,9 @@ function Mi(e) {
1160
1160
  return m;
1161
1161
  };
1162
1162
  }
1163
- var ji = [ii, Oi, ni, gn, wi, hi, Ti, Qr, gi], ki = /* @__PURE__ */ Mi({
1163
+ var ji = [ii, Oi, ni, gn, wi, hi, Ai, Qr, gi], ki = /* @__PURE__ */ Mi({
1164
1164
  defaultModifiers: ji
1165
- }), Vi = "tippy-box", Tn = "tippy-content", Bi = "tippy-backdrop", Dn = "tippy-arrow", Sn = "tippy-svg-arrow", me = {
1165
+ }), Vi = "tippy-box", An = "tippy-content", Bi = "tippy-backdrop", Sn = "tippy-arrow", Dn = "tippy-svg-arrow", me = {
1166
1166
  passive: !0,
1167
1167
  capture: !0
1168
1168
  }, Cn = function() {
@@ -1204,7 +1204,7 @@ function $i(e, t) {
1204
1204
  function Ui(e) {
1205
1205
  return e.split(/\s+/).filter(Boolean);
1206
1206
  }
1207
- function Te(e) {
1207
+ function Ae(e) {
1208
1208
  return [].concat(e);
1209
1209
  }
1210
1210
  function Ft(e, t) {
@@ -1257,7 +1257,7 @@ function qt(e, t) {
1257
1257
  });
1258
1258
  }
1259
1259
  function Xi(e) {
1260
- var t, n = Te(e), r = n[0];
1260
+ var t, n = Ae(e), r = n[0];
1261
1261
  return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
1262
1262
  }
1263
1263
  function Ki(e, t) {
@@ -1266,8 +1266,8 @@ function Ki(e, t) {
1266
1266
  var a = o.popperRect, l = o.popperState, u = o.props, c = u.interactiveBorder, p = Wi(l.placement), f = l.modifiersData.offset;
1267
1267
  if (!f)
1268
1268
  return !0;
1269
- var b = p === "bottom" ? f.top.y : 0, O = p === "top" ? f.bottom.y : 0, m = p === "right" ? f.left.x : 0, w = p === "left" ? f.right.x : 0, g = a.top - r + b > c, y = r - a.bottom - O > c, A = a.left - n + m > c, D = n - a.right - w > c;
1270
- return g || y || A || D;
1269
+ var b = p === "bottom" ? f.top.y : 0, O = p === "top" ? f.bottom.y : 0, m = p === "right" ? f.left.x : 0, w = p === "left" ? f.right.x : 0, g = a.top - r + b > c, y = r - a.bottom - O > c, T = a.left - n + m > c, S = n - a.right - w > c;
1270
+ return g || y || T || S;
1271
1271
  });
1272
1272
  }
1273
1273
  function vt(e, t, n) {
@@ -1309,7 +1309,7 @@ var Ji = typeof window < "u" && typeof document < "u", eo = Ji ? (
1309
1309
  // @ts-ignore
1310
1310
  !!window.msCrypto
1311
1311
  ) : !1;
1312
- function Ae(e) {
1312
+ function Te(e) {
1313
1313
  var t = e === "destroy" ? "n already-" : " ";
1314
1314
  return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
1315
1315
  }
@@ -1488,7 +1488,7 @@ function Et(e, t) {
1488
1488
  }
1489
1489
  function Zt(e) {
1490
1490
  var t = Be();
1491
- return e === !0 ? t.className = Dn : (t.className = Sn, Ue(e) ? t.appendChild(e) : Et(t, e)), t;
1491
+ return e === !0 ? t.className = Sn : (t.className = Dn, Ue(e) ? t.appendChild(e) : Et(t, e)), t;
1492
1492
  }
1493
1493
  function Qt(e, t) {
1494
1494
  Ue(t.content) ? (Et(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Et(e, t.content) : e.textContent = t.content);
@@ -1498,10 +1498,10 @@ function Ot(e) {
1498
1498
  return {
1499
1499
  box: t,
1500
1500
  content: n.find(function(r) {
1501
- return r.classList.contains(Tn);
1501
+ return r.classList.contains(An);
1502
1502
  }),
1503
1503
  arrow: n.find(function(r) {
1504
- return r.classList.contains(Dn) || r.classList.contains(Sn);
1504
+ return r.classList.contains(Sn) || r.classList.contains(Dn);
1505
1505
  }),
1506
1506
  backdrop: n.find(function(r) {
1507
1507
  return r.classList.contains(Bi);
@@ -1512,7 +1512,7 @@ function jn(e) {
1512
1512
  var t = Be(), n = Be();
1513
1513
  n.className = Vi, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
1514
1514
  var r = Be();
1515
- r.className = Tn, r.setAttribute("data-state", "hidden"), Qt(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
1515
+ r.className = An, r.setAttribute("data-state", "hidden"), Qt(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
1516
1516
  function o(a, l) {
1517
1517
  var u = Ot(t), c = u.box, p = u.content, f = u.arrow;
1518
1518
  l.theme ? c.setAttribute("data-theme", l.theme) : c.removeAttribute("data-theme"), typeof l.animation == "string" ? c.setAttribute("data-animation", l.animation) : c.removeAttribute("data-animation"), l.inertia ? c.setAttribute("data-inertia", "") : c.removeAttribute("data-inertia"), c.style.maxWidth = typeof l.maxWidth == "number" ? l.maxWidth + "px" : l.maxWidth, l.role ? c.setAttribute("role", l.role) : c.removeAttribute("role"), (a.content !== l.content || a.allowHTML !== l.allowHTML) && Qt(p, e.props), l.arrow ? f ? a.arrow !== l.arrow && (c.removeChild(f), c.appendChild(Zt(l.arrow))) : c.appendChild(Zt(l.arrow)) : f && c.removeChild(f);
@@ -1525,7 +1525,7 @@ function jn(e) {
1525
1525
  jn.$$tippy = !0;
1526
1526
  var co = 1, it = [], ht = [];
1527
1527
  function lo(e, t) {
1528
- var n = Gt(e, Object.assign({}, W, Nn(zt(t)))), r, o, a, l = !1, u = !1, c = !1, p = !1, f, b, O, m = [], w = Wt(Ye, n.interactiveDebounce), g, y = co++, A = null, D = Hi(n.plugins), C = {
1528
+ var n = Gt(e, Object.assign({}, W, Nn(zt(t)))), r, o, a, l = !1, u = !1, c = !1, p = !1, f, b, O, m = [], w = Wt(Ye, n.interactiveDebounce), g, y = co++, T = null, S = Hi(n.plugins), C = {
1529
1529
  // Is the instance currently enabled?
1530
1530
  isEnabled: !0,
1531
1531
  // Is the tippy currently showing and not transitioning out?
@@ -1541,10 +1541,10 @@ function lo(e, t) {
1541
1541
  id: y,
1542
1542
  reference: e,
1543
1543
  popper: Be(),
1544
- popperInstance: A,
1544
+ popperInstance: T,
1545
1545
  props: n,
1546
1546
  state: C,
1547
- plugins: D,
1547
+ plugins: S,
1548
1548
  // methods
1549
1549
  clearDelayTimeouts: Qe,
1550
1550
  setProps: Je,
@@ -1559,9 +1559,9 @@ function lo(e, t) {
1559
1559
  };
1560
1560
  if (!n.render)
1561
1561
  return process.env.NODE_ENV !== "production" && wt(!0, "render() function has not been supplied."), i;
1562
- var x = n.render(i), d = x.popper, S = x.onUpdate;
1562
+ var x = n.render(i), d = x.popper, D = x.onUpdate;
1563
1563
  d.setAttribute("data-tippy-root", ""), d.id = "tippy-" + i.id, i.popper = d, e._tippy = i, d._tippy = i;
1564
- var N = D.map(function(s) {
1564
+ var N = S.map(function(s) {
1565
1565
  return s.fn(i);
1566
1566
  }), I = e.hasAttribute("aria-expanded");
1567
1567
  return Ee(), Z(), V(), j("onCreate", [i]), n.showOnCreate && Ne(), d.addEventListener("mouseenter", function() {
@@ -1600,15 +1600,15 @@ function lo(e, t) {
1600
1600
  if (h === void 0 && (h = !0), N.forEach(function(E) {
1601
1601
  E[s] && E[s].apply(E, v);
1602
1602
  }), h) {
1603
- var T;
1604
- (T = i.props)[s].apply(T, v);
1603
+ var A;
1604
+ (A = i.props)[s].apply(A, v);
1605
1605
  }
1606
1606
  }
1607
1607
  function G() {
1608
1608
  var s = i.props.aria;
1609
1609
  if (s.content) {
1610
- var v = "aria-" + s.content, h = d.id, T = Te(i.props.triggerTarget || e);
1611
- T.forEach(function(E) {
1610
+ var v = "aria-" + s.content, h = d.id, A = Ae(i.props.triggerTarget || e);
1611
+ A.forEach(function(E) {
1612
1612
  var B = E.getAttribute(v);
1613
1613
  if (i.state.isVisible)
1614
1614
  E.setAttribute(v, B ? B + " " + h : h);
@@ -1621,7 +1621,7 @@ function lo(e, t) {
1621
1621
  }
1622
1622
  function Z() {
1623
1623
  if (!(I || !i.props.aria.expanded)) {
1624
- var s = Te(i.props.triggerTarget || e);
1624
+ var s = Ae(i.props.triggerTarget || e);
1625
1625
  s.forEach(function(v) {
1626
1626
  i.props.interactive ? v.setAttribute("aria-expanded", i.state.isVisible && v === L() ? "true" : "false") : v.removeAttribute("aria-expanded");
1627
1627
  });
@@ -1636,7 +1636,7 @@ function lo(e, t) {
1636
1636
  if (!(J.isTouch && (c || s.type === "mousedown"))) {
1637
1637
  var v = s.composedPath && s.composedPath()[0] || s.target;
1638
1638
  if (!(i.props.interactive && Yt(d, v))) {
1639
- if (Te(i.props.triggerTarget || e).some(function(h) {
1639
+ if (Ae(i.props.triggerTarget || e).some(function(h) {
1640
1640
  return Yt(h, v);
1641
1641
  })) {
1642
1642
  if (J.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
@@ -1673,17 +1673,17 @@ function lo(e, t) {
1673
1673
  }
1674
1674
  function we(s, v) {
1675
1675
  var h = H().box;
1676
- function T(E) {
1677
- E.target === h && (vt(h, "remove", T), v());
1676
+ function A(E) {
1677
+ E.target === h && (vt(h, "remove", A), v());
1678
1678
  }
1679
1679
  if (s === 0)
1680
1680
  return v();
1681
- vt(h, "remove", b), vt(h, "add", T), b = T;
1681
+ vt(h, "remove", b), vt(h, "add", A), b = A;
1682
1682
  }
1683
1683
  function ue(s, v, h) {
1684
1684
  h === void 0 && (h = !1);
1685
- var T = Te(i.props.triggerTarget || e);
1686
- T.forEach(function(E) {
1685
+ var A = Ae(i.props.triggerTarget || e);
1686
+ A.forEach(function(E) {
1687
1687
  E.addEventListener(s, v, h), m.push({
1688
1688
  node: E,
1689
1689
  eventType: s,
@@ -1714,23 +1714,23 @@ function lo(e, t) {
1714
1714
  }
1715
1715
  function qe() {
1716
1716
  m.forEach(function(s) {
1717
- var v = s.node, h = s.eventType, T = s.handler, E = s.options;
1718
- v.removeEventListener(h, T, E);
1717
+ var v = s.node, h = s.eventType, A = s.handler, E = s.options;
1718
+ v.removeEventListener(h, A, E);
1719
1719
  }), m = [];
1720
1720
  }
1721
1721
  function Re(s) {
1722
1722
  var v, h = !1;
1723
1723
  if (!(!i.state.isEnabled || Ie(s) || u)) {
1724
- var T = ((v = f) == null ? void 0 : v.type) === "focus";
1724
+ var A = ((v = f) == null ? void 0 : v.type) === "focus";
1725
1725
  f = s, g = s.currentTarget, Z(), !i.state.isVisible && zi(s) && it.forEach(function(E) {
1726
1726
  return E(s);
1727
- }), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || l) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : Ne(s), s.type === "click" && (l = !h), h && !T && de(s);
1727
+ }), s.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || l) && i.props.hideOnClick !== !1 && i.state.isVisible ? h = !0 : Ne(s), s.type === "click" && (l = !h), h && !A && de(s);
1728
1728
  }
1729
1729
  }
1730
1730
  function Ye(s) {
1731
1731
  var v = s.target, h = L().contains(v) || d.contains(v);
1732
1732
  if (!(s.type === "mousemove" && h)) {
1733
- var T = ce().concat(d).map(function(E) {
1733
+ var A = ce().concat(d).map(function(E) {
1734
1734
  var B, z = E._tippy, Oe = (B = z.popperInstance) == null ? void 0 : B.state;
1735
1735
  return Oe ? {
1736
1736
  popperRect: E.getBoundingClientRect(),
@@ -1738,7 +1738,7 @@ function lo(e, t) {
1738
1738
  props: n
1739
1739
  } : null;
1740
1740
  }).filter(Boolean);
1741
- Ki(T, s) && (fe(), de(s));
1741
+ Ki(A, s) && (fe(), de(s));
1742
1742
  }
1743
1743
  }
1744
1744
  function Xe(s) {
@@ -1759,7 +1759,7 @@ function lo(e, t) {
1759
1759
  }
1760
1760
  function Ke() {
1761
1761
  Ge();
1762
- var s = i.props, v = s.popperOptions, h = s.placement, T = s.offset, E = s.getReferenceClientRect, B = s.moveTransition, z = P() ? Ot(d).arrow : null, Oe = E ? {
1762
+ var s = i.props, v = s.popperOptions, h = s.placement, A = s.offset, E = s.getReferenceClientRect, B = s.moveTransition, z = P() ? Ot(d).arrow : null, Oe = E ? {
1763
1763
  getBoundingClientRect: E,
1764
1764
  contextElement: E.contextElement || L()
1765
1765
  } : e, Pt = {
@@ -1779,7 +1779,7 @@ function lo(e, t) {
1779
1779
  }, ve = [{
1780
1780
  name: "offset",
1781
1781
  options: {
1782
- offset: T
1782
+ offset: A
1783
1783
  }
1784
1784
  }, {
1785
1785
  name: "preventOverflow",
@@ -1832,8 +1832,8 @@ function lo(e, t) {
1832
1832
  }
1833
1833
  function Ne(s) {
1834
1834
  i.clearDelayTimeouts(), s && j("onTrigger", [i, s]), K();
1835
- var v = k(!0), h = R(), T = h[0], E = h[1];
1836
- J.isTouch && T === "hold" && E && (v = E), v ? r = setTimeout(function() {
1835
+ var v = k(!0), h = R(), A = h[0], E = h[1];
1836
+ J.isTouch && A === "hold" && E && (v = E), v ? r = setTimeout(function() {
1837
1837
  i.show();
1838
1838
  }, v) : i.show();
1839
1839
  }
@@ -1861,15 +1861,15 @@ function lo(e, t) {
1861
1861
  clearTimeout(r), clearTimeout(o), cancelAnimationFrame(a);
1862
1862
  }
1863
1863
  function Je(s) {
1864
- if (process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ae("setProps")), !i.state.isDestroyed) {
1864
+ if (process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("setProps")), !i.state.isDestroyed) {
1865
1865
  j("onBeforeUpdate", [i, s]), qe();
1866
1866
  var v = i.props, h = Gt(e, Object.assign({}, v, zt(s), {
1867
1867
  ignoreAttributes: !0
1868
1868
  }));
1869
- i.props = h, Ee(), v.interactiveDebounce !== h.interactiveDebounce && (fe(), w = Wt(Ye, h.interactiveDebounce)), v.triggerTarget && !h.triggerTarget ? Te(v.triggerTarget).forEach(function(T) {
1870
- T.removeAttribute("aria-expanded");
1871
- }) : h.triggerTarget && e.removeAttribute("aria-expanded"), Z(), V(), S && S(v, h), i.popperInstance && (Ke(), ce().forEach(function(T) {
1872
- requestAnimationFrame(T._tippy.popperInstance.forceUpdate);
1869
+ i.props = h, Ee(), v.interactiveDebounce !== h.interactiveDebounce && (fe(), w = Wt(Ye, h.interactiveDebounce)), v.triggerTarget && !h.triggerTarget ? Ae(v.triggerTarget).forEach(function(A) {
1870
+ A.removeAttribute("aria-expanded");
1871
+ }) : h.triggerTarget && e.removeAttribute("aria-expanded"), Z(), V(), D && D(v, h), i.popperInstance && (Ke(), ce().forEach(function(A) {
1872
+ requestAnimationFrame(A._tippy.popperInstance.forceUpdate);
1873
1873
  })), j("onAfterUpdate", [i, s]);
1874
1874
  }
1875
1875
  }
@@ -1879,9 +1879,9 @@ function lo(e, t) {
1879
1879
  });
1880
1880
  }
1881
1881
  function kn() {
1882
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ae("show"));
1883
- var s = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, T = J.isTouch && !i.props.touch, E = pt(i.props.duration, 0, W.duration);
1884
- if (!(s || v || h || T) && !L().hasAttribute("disabled") && (j("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1882
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("show"));
1883
+ var s = i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, A = J.isTouch && !i.props.touch, E = pt(i.props.duration, 0, W.duration);
1884
+ if (!(s || v || h || A) && !L().hasAttribute("disabled") && (j("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1885
1885
  if (i.state.isVisible = !0, P() && (d.style.visibility = "visible"), V(), K(), i.state.isMounted || (d.style.transition = "none"), P()) {
1886
1886
  var B = H(), z = B.box, Oe = B.content;
1887
1887
  dt([z, Oe], 0);
@@ -1901,28 +1901,28 @@ function lo(e, t) {
1901
1901
  }
1902
1902
  }
1903
1903
  function Vn() {
1904
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ae("hide"));
1905
- var s = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, T = pt(i.props.duration, 1, W.duration);
1904
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("hide"));
1905
+ var s = !i.state.isVisible, v = i.state.isDestroyed, h = !i.state.isEnabled, A = pt(i.props.duration, 1, W.duration);
1906
1906
  if (!(s || v || h) && (j("onHide", [i], !1), i.props.onHide(i) !== !1)) {
1907
1907
  if (i.state.isVisible = !1, i.state.isShown = !1, p = !1, l = !1, P() && (d.style.visibility = "hidden"), fe(), re(), V(!0), P()) {
1908
1908
  var E = H(), B = E.box, z = E.content;
1909
- i.props.animation && (dt([B, z], T), qt([B, z], "hidden"));
1909
+ i.props.animation && (dt([B, z], A), qt([B, z], "hidden"));
1910
1910
  }
1911
- G(), Z(), i.props.animation ? P() && be(T, i.unmount) : i.unmount();
1911
+ G(), Z(), i.props.animation ? P() && be(A, i.unmount) : i.unmount();
1912
1912
  }
1913
1913
  }
1914
1914
  function Bn(s) {
1915
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ae("hideWithInteractivity")), U().addEventListener("mousemove", w), Ft(it, w), w(s);
1915
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("hideWithInteractivity")), U().addEventListener("mousemove", w), Ft(it, w), w(s);
1916
1916
  }
1917
1917
  function _n() {
1918
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ae("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Ge(), ce().forEach(function(s) {
1918
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Ge(), ce().forEach(function(s) {
1919
1919
  s._tippy.unmount();
1920
1920
  }), d.parentNode && d.parentNode.removeChild(d), ht = ht.filter(function(s) {
1921
1921
  return s !== i;
1922
1922
  }), i.state.isMounted = !1, j("onHidden", [i]));
1923
1923
  }
1924
1924
  function $n() {
1925
- process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ae("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), qe(), delete e._tippy, i.state.isDestroyed = !0, j("onDestroy", [i]));
1925
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Te("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), qe(), delete e._tippy, i.state.isDestroyed = !0, j("onDestroy", [i]));
1926
1926
  }
1927
1927
  }
1928
1928
  function ze(e, t) {
@@ -2068,14 +2068,14 @@ const po = (e) => ({
2068
2068
  };
2069
2069
  }, Eo = [
2070
2070
  ...vo
2071
- ], Oo = 300, xo = {
2071
+ ], Oo = ["parent", "body"], xo = 300, To = {
2072
2072
  hover: "d-tooltip--hover",
2073
2073
  show: "d-tooltip--show",
2074
2074
  inverted: "d-tooltip--inverted",
2075
2075
  hide: "d-tooltip--hide"
2076
2076
  }, Ao = [
2077
2077
  ...ho
2078
- ], Mo = [!0, !1, "toggle"], To = {
2078
+ ], jo = [!0, !1, "toggle"], So = {
2079
2079
  name: "DtTooltip",
2080
2080
  components: {
2081
2081
  DtLazyShow: Pr
@@ -2090,6 +2090,16 @@ const po = (e) => ({
2090
2090
  return rn();
2091
2091
  }
2092
2092
  },
2093
+ /**
2094
+ * Sets the element to which the popover is going to append to.
2095
+ * 'body' will append to the nearest body (supports shadow DOM).
2096
+ * @values 'body', 'parent', HTMLElement,
2097
+ */
2098
+ appendTo: {
2099
+ type: [HTMLElement, String],
2100
+ default: "body",
2101
+ validator: (e) => Oo.includes(e) || e instanceof HTMLElement
2102
+ },
2093
2103
  /**
2094
2104
  * If the popover does not fit in the direction described by "placement",
2095
2105
  * it will attempt to change its direction to the "fallbackPlacements"
@@ -2257,7 +2267,7 @@ const po = (e) => ({
2257
2267
  ],
2258
2268
  data() {
2259
2269
  return {
2260
- TOOLTIP_KIND_MODIFIERS: xo,
2270
+ TOOLTIP_KIND_MODIFIERS: To,
2261
2271
  hasSlotContent: vr,
2262
2272
  tip: null,
2263
2273
  inTimer: null,
@@ -2267,7 +2277,9 @@ const po = (e) => ({
2267
2277
  // this is where the placement currently is, this can be different than
2268
2278
  // the placement prop when there is not enough available room for the tip
2269
2279
  // to display and it uses a fallback placement.
2270
- currentPlacement: this.placement
2280
+ currentPlacement: this.placement,
2281
+ // reference to the anchor element
2282
+ anchor: null
2271
2283
  };
2272
2284
  },
2273
2285
  computed: {
@@ -2285,11 +2297,16 @@ const po = (e) => ({
2285
2297
  }
2286
2298
  };
2287
2299
  },
2300
+ appendToElement() {
2301
+ var e, t;
2302
+ return this.appendTo === "body" ? (t = (e = this.anchor) == null ? void 0 : e.getRootNode()) == null ? void 0 : t.querySelector("body") : this.appendTo;
2303
+ },
2288
2304
  tippyProps() {
2289
2305
  return {
2290
2306
  offset: this.offset,
2291
2307
  interactive: !1,
2292
2308
  trigger: "manual",
2309
+ appendTo: this.appendToElement,
2293
2310
  placement: this.placement,
2294
2311
  sticky: this.sticky,
2295
2312
  popperOptions: go({
@@ -2298,9 +2315,6 @@ const po = (e) => ({
2298
2315
  onChangePlacement: this.onChangePlacement
2299
2316
  })
2300
2317
  };
2301
- },
2302
- anchor() {
2303
- return this.externalAnchor ? document.body.querySelector(this.externalAnchor) : bo(this.$refs.anchor);
2304
2318
  }
2305
2319
  },
2306
2320
  watch: {
@@ -2323,8 +2337,9 @@ const po = (e) => ({
2323
2337
  });
2324
2338
  }
2325
2339
  },
2340
+ // eslint-disable-next-line complexity
2326
2341
  mounted() {
2327
- !this.enabled && this.show != null && (console.warn("Tooltip: You cannot use both the enabled and show props at the same time."), console.warn("The show prop will be ignored.")), this.externalAnchor && this.addExternalAnchorEventListeners(), this.tip = mo(this.anchor, this.initOptions()), this.isShown && this.tip.show();
2342
+ !this.enabled && this.show != null && (console.warn("Tooltip: You cannot use both the enabled and show props at the same time."), console.warn("The show prop will be ignored.")), this.anchor = this.externalAnchor ? document.body.querySelector(this.externalAnchor) : bo(this.$refs.anchor), this.externalAnchor && this.addExternalAnchorEventListeners(), this.tip = mo(this.anchor, this.initOptions());
2328
2343
  },
2329
2344
  beforeUnmount() {
2330
2345
  var e;
@@ -2342,7 +2357,7 @@ const po = (e) => ({
2342
2357
  onEnterAnchor(e) {
2343
2358
  this.delay ? this.inTimer = setTimeout((function(t) {
2344
2359
  this.triggerShow(t);
2345
- }).bind(this, e), Oo) : this.triggerShow(e);
2360
+ }).bind(this, e), xo) : this.triggerShow(e);
2346
2361
  },
2347
2362
  triggerShow(e) {
2348
2363
  e.type === "focusin" ? this.show === null && this.hasVisibleFocus() && (this.isShown = !0) : this.show === null && (this.isShown = !0);
@@ -2372,12 +2387,16 @@ const po = (e) => ({
2372
2387
  onMount() {
2373
2388
  this.setProps();
2374
2389
  },
2390
+ onCreate(e) {
2391
+ this.isShown && e.show();
2392
+ },
2375
2393
  initOptions() {
2376
2394
  return {
2377
2395
  contentElement: this.$refs.content.$el,
2378
2396
  allowHTML: !0,
2379
2397
  zIndex: this.calculateAnchorZindex(),
2380
2398
  onMount: this.onMount,
2399
+ onCreate: this.onCreate,
2381
2400
  ...this.tippyProps
2382
2401
  };
2383
2402
  },
@@ -2397,7 +2416,7 @@ const po = (e) => ({
2397
2416
  }
2398
2417
  }
2399
2418
  }, Do = { "data-qa": "dt-tooltip-container" };
2400
- function So(e, t, n, r, o, a) {
2419
+ function Co(e, t, n, r, o, a) {
2401
2420
  const l = Qn("dt-lazy-show");
2402
2421
  return mt(), It("div", Do, [
2403
2422
  n.externalAnchor ? nn("", !0) : (mt(), It("span", {
@@ -2439,12 +2458,12 @@ function So(e, t, n, r, o, a) {
2439
2458
  }, 16, ["id", "show", "appear", "transition", "class"])
2440
2459
  ]);
2441
2460
  }
2442
- const jo = /* @__PURE__ */ vn(To, [["render", So]]);
2461
+ const ko = /* @__PURE__ */ vn(So, [["render", Co]]);
2443
2462
  export {
2444
2463
  vo as B,
2445
- jo as D,
2446
- Io as E,
2447
- Po as L,
2464
+ ko as D,
2465
+ No as E,
2466
+ Io as L,
2448
2467
  Eo as T,
2449
2468
  he as V,
2450
2469
  vn as _,
@@ -2453,7 +2472,7 @@ export {
2453
2472
  Pr as c,
2454
2473
  go as d,
2455
2474
  mo as e,
2456
- Oo as f,
2475
+ xo as f,
2457
2476
  rn as g,
2458
2477
  vr as h,
2459
2478
  yr as i,
@@ -2462,15 +2481,15 @@ export {
2462
2481
  xr as l,
2463
2482
  lr as m,
2464
2483
  an as n,
2465
- Ro as o,
2484
+ Po as o,
2466
2485
  Cr as p,
2467
- Lo as q,
2486
+ Ro as q,
2468
2487
  ir as r,
2469
- Sr as s,
2488
+ Dr as s,
2470
2489
  ze as t,
2471
- No as u,
2490
+ Mo as u,
2472
2491
  fr as v,
2473
- xo as w,
2492
+ To as w,
2474
2493
  Ao as x,
2475
- Mo as y
2494
+ jo as y
2476
2495
  };