energy-components 1.7.0 → 1.8.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.
Files changed (93) hide show
  1. package/dist/components/accordion.es.js +13 -13
  2. package/dist/components/accordionGroup.es.js +2 -2
  3. package/dist/components/actionButton.es.js +2 -2
  4. package/dist/components/breadcrumbs.es.js +3 -3
  5. package/dist/components/button.es.js +2 -2
  6. package/dist/components/card.es.js +5 -5
  7. package/dist/components/checkbox.es.js +5 -5
  8. package/dist/components/datepicker.es.js +588 -590
  9. package/dist/components/divider.es.js +2 -2
  10. package/dist/components/dragAndDrop.es.js +187 -0
  11. package/dist/components/dropdown.es.js +92 -92
  12. package/dist/components/filterChip.es.js +2 -2
  13. package/dist/components/floatingActionButton.es.js +2 -2
  14. package/dist/components/{icon-svg-BmDOQ0kL.js → icon-svg-_WCkLP8-.js} +12 -63
  15. package/dist/components/iconList.es.js +4 -4
  16. package/dist/components/iconSvg.es.js +1 -1
  17. package/dist/components/index.es.js +81 -75
  18. package/dist/components/indicator.es.js +6 -6
  19. package/dist/components/infoBox.es.js +16 -16
  20. package/dist/components/link.es.js +2 -2
  21. package/dist/components/modal.es.js +26 -26
  22. package/dist/components/multiselect.es.js +5 -5
  23. package/dist/components/multiselectcontentwrapper.es.js +6 -6
  24. package/dist/components/overlay.es.js +3 -3
  25. package/dist/components/pagination.es.js +1 -1
  26. package/dist/components/persistentToast.es.js +12 -12
  27. package/dist/components/progressBar.es.js +86 -0
  28. package/dist/components/quantitySelector.es.js +9 -9
  29. package/dist/components/{radio-group.vue_vue_type_script_setup_true_lang-B-kg-575.js → radio-group.vue_vue_type_script_setup_true_lang-DpguLlRK.js} +2 -2
  30. package/dist/components/radioButton.es.js +4 -4
  31. package/dist/components/radioGroup.es.js +1 -1
  32. package/dist/components/selectionChip.es.js +3 -3
  33. package/dist/components/sidebar.es.js +13 -13
  34. package/dist/components/sidedrawer.es.js +11 -11
  35. package/dist/components/style/actionButton.css +1 -1
  36. package/dist/components/style/button.css +1 -1
  37. package/dist/components/style/dragAndDrop.css +1 -0
  38. package/dist/components/style/progressBar.css +1 -0
  39. package/dist/components/style/switch.css +1 -1
  40. package/dist/components/style/tabBar.css +1 -1
  41. package/dist/components/style/textField.css +1 -1
  42. package/dist/components/switch.es.js +45 -38
  43. package/dist/components/tabBar.es.js +84 -70
  44. package/dist/components/tablepaginatedcomponent.es.js +22 -22
  45. package/dist/components/tableslotedcomponent.es.js +26 -26
  46. package/dist/components/tag.es.js +2 -2
  47. package/dist/components/textArea.es.js +2 -2
  48. package/dist/components/textField.es.js +134 -110
  49. package/dist/components/toggle.es.js +2 -2
  50. package/dist/components/tooltip.es.js +319 -311
  51. package/dist/energy-components.es.js +4874 -4612
  52. package/dist/energy-components.umd.js +2 -1
  53. package/dist/style.css +1 -1
  54. package/dist/types/src/components/buttons/action-button/action-button.vue.d.ts +1 -1
  55. package/dist/types/src/components/buttons/button/button.vue.d.ts +6 -11
  56. package/dist/types/src/components/buttons/floating-action-button/floating-action-button.vue.d.ts +1 -1
  57. package/dist/types/src/components/content/accordion/accordion.vue.d.ts +6 -17
  58. package/dist/types/src/components/content/acordion-group/accordion-group.vue.d.ts +6 -11
  59. package/dist/types/src/components/content/card/card.vue.d.ts +6 -11
  60. package/dist/types/src/components/content/divider/divider.vue.d.ts +1 -1
  61. package/dist/types/src/components/content/table/table-paginated/TablePaginatedComponent.vue.d.ts +88 -0
  62. package/dist/types/src/components/content/table/table-sloted/TableSlotedComponent.vue.d.ts +32 -31
  63. package/dist/types/src/components/content/tag/tag.vue.d.ts +1 -1
  64. package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +1 -4
  65. package/dist/types/src/components/feedback/info-box/info-box.vue.d.ts +8 -18
  66. package/dist/types/src/components/feedback/persistent-toast/persistent-toast.vue.d.ts +8 -12
  67. package/dist/types/src/components/feedback/progress-bar/progress-bar.vue.d.ts +101 -0
  68. package/dist/types/src/components/icon-svg/icon-svg.vue.d.ts +1 -1
  69. package/dist/types/src/components/index.d.ts +2 -0
  70. package/dist/types/src/components/input/checkbox/checkbox.vue.d.ts +6 -11
  71. package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +258 -0
  72. package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +203 -0
  73. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +30 -550
  74. package/dist/types/src/components/input/filter-chip/filter-chip.vue.d.ts +1 -3
  75. package/dist/types/src/components/input/quantity-selector/quantity-selector.vue.d.ts +1 -4
  76. package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +1 -1
  77. package/dist/types/src/components/input/radio-button/radio-group.vue.d.ts +6 -11
  78. package/dist/types/src/components/input/selection-chip/selection-chip.vue.d.ts +1 -3
  79. package/dist/types/src/components/input/switch/switch.vue.d.ts +24 -21
  80. package/dist/types/src/components/input/text-area/text-area.vue.d.ts +12 -15
  81. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +33 -21
  82. package/dist/types/src/components/input/toggle/toggle.vue.d.ts +1 -1
  83. package/dist/types/src/components/layout/sidebar/sidebar.vue.d.ts +10 -17
  84. package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +8 -16
  85. package/dist/types/src/components/navigation/link/link.vue.d.ts +7 -11
  86. package/dist/types/src/components/navigation/pagination/pagination.vue.d.ts +1 -1
  87. package/dist/types/src/components/navigation/tab-bar/tab-bar.vue.d.ts +24 -18
  88. package/dist/types/src/components/overlay/modal/modal.vue.d.ts +10 -141
  89. package/dist/types/src/components/overlay/overlay/overlay.vue.d.ts +5 -10
  90. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +8 -20
  91. package/dist/types/src/helpers/mobileMockup.vue.d.ts +1 -1
  92. package/dist/types/tsconfig.tsbuildinfo +1 -1
  93. package/package.json +3 -3
@@ -1,56 +1,56 @@
1
- import { unref as at, defineComponent as Ft, toRefs as Ht, ref as U, computed as jt, openBlock as bt, createElementBlock as vt, createElementVNode as Z, renderSlot as At, normalizeClass as Rt, toDisplayString as Ct, createVNode as It, createCommentVNode as Yt, createTextVNode as zt } from "vue";
2
- import { R as Xt } from "./icon-svg-BmDOQ0kL.js";
3
- import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import './style/tooltip.css';const Y = Math.min, O = Math.max, nt = Math.round, k = (t) => ({
1
+ import { unref as ft, defineComponent as Ht, toRefs as jt, ref as Z, computed as It, createElementBlock as bt, openBlock as At, createElementVNode as tt, renderSlot as Rt, normalizeClass as Ct, createCommentVNode as Yt, createVNode as zt, toDisplayString as Ot, createTextVNode as Xt } from "vue";
2
+ import { R as Kt } from "./icon-svg-_WCkLP8-.js";
3
+ import { _ as qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import './style/tooltip.css';const K = Math.min, O = Math.max, ot = Math.round, $ = (t) => ({
5
5
  x: t,
6
6
  y: t
7
- }), qt = {
7
+ }), Gt = {
8
8
  left: "right",
9
9
  right: "left",
10
10
  bottom: "top",
11
11
  top: "bottom"
12
- }, Gt = {
12
+ }, Jt = {
13
13
  start: "end",
14
14
  end: "start"
15
15
  };
16
- function ft(t, e, o) {
17
- return O(t, Y(e, o));
16
+ function ut(t, e, o) {
17
+ return O(t, K(e, o));
18
18
  }
19
- function J(t, e) {
19
+ function Q(t, e) {
20
20
  return typeof t == "function" ? t(e) : t;
21
21
  }
22
- function j(t) {
22
+ function Y(t) {
23
23
  return t.split("-")[0];
24
24
  }
25
- function Q(t) {
25
+ function U(t) {
26
26
  return t.split("-")[1];
27
27
  }
28
- function Dt(t) {
28
+ function Lt(t) {
29
29
  return t === "x" ? "y" : "x";
30
30
  }
31
- function mt(t) {
31
+ function pt(t) {
32
32
  return t === "y" ? "height" : "width";
33
33
  }
34
- function z(t) {
35
- return ["top", "bottom"].includes(j(t)) ? "y" : "x";
34
+ function I(t) {
35
+ return ["top", "bottom"].includes(Y(t)) ? "y" : "x";
36
36
  }
37
- function pt(t) {
38
- return Dt(z(t));
37
+ function gt(t) {
38
+ return Lt(I(t));
39
39
  }
40
- function Jt(t, e, o) {
40
+ function Qt(t, e, o) {
41
41
  o === void 0 && (o = !1);
42
- const n = Q(t), i = pt(t), r = mt(i);
42
+ const n = U(t), i = gt(t), r = pt(i);
43
43
  let s = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
44
- return e.reference[r] > e.floating[r] && (s = ot(s)), [s, ot(s)];
44
+ return e.reference[r] > e.floating[r] && (s = it(s)), [s, it(s)];
45
45
  }
46
- function Qt(t) {
47
- const e = ot(t);
48
- return [ut(t), e, ut(e)];
46
+ function Ut(t) {
47
+ const e = it(t);
48
+ return [dt(t), e, dt(e)];
49
49
  }
50
- function ut(t) {
51
- return t.replace(/start|end/g, (e) => Gt[e]);
50
+ function dt(t) {
51
+ return t.replace(/start|end/g, (e) => Jt[e]);
52
52
  }
53
- function Ut(t, e, o) {
53
+ function Zt(t, e, o) {
54
54
  const n = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
55
55
  switch (t) {
56
56
  case "top":
@@ -63,15 +63,15 @@ function Ut(t, e, o) {
63
63
  return [];
64
64
  }
65
65
  }
66
- function Zt(t, e, o, n) {
67
- const i = Q(t);
68
- let r = Ut(j(t), o === "start", n);
69
- return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ut)))), r;
66
+ function te(t, e, o, n) {
67
+ const i = U(t);
68
+ let r = Zt(Y(t), o === "start", n);
69
+ return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(dt)))), r;
70
70
  }
71
- function ot(t) {
72
- return t.replace(/left|right|bottom|top/g, (e) => qt[e]);
71
+ function it(t) {
72
+ return t.replace(/left|right|bottom|top/g, (e) => Gt[e]);
73
73
  }
74
- function te(t) {
74
+ function ee(t) {
75
75
  return {
76
76
  top: 0,
77
77
  right: 0,
@@ -81,14 +81,14 @@ function te(t) {
81
81
  };
82
82
  }
83
83
  function Et(t) {
84
- return typeof t != "number" ? te(t) : {
84
+ return typeof t != "number" ? ee(t) : {
85
85
  top: t,
86
86
  right: t,
87
87
  bottom: t,
88
88
  left: t
89
89
  };
90
90
  }
91
- function it(t) {
91
+ function st(t) {
92
92
  const {
93
93
  x: e,
94
94
  y: o,
@@ -106,12 +106,12 @@ function it(t) {
106
106
  y: o
107
107
  };
108
108
  }
109
- function Ot(t, e, o) {
109
+ function St(t, e, o) {
110
110
  let {
111
111
  reference: n,
112
112
  floating: i
113
113
  } = t;
114
- const r = z(e), s = pt(e), l = mt(s), c = j(e), a = r === "y", f = n.x + n.width / 2 - i.width / 2, u = n.y + n.height / 2 - i.height / 2, p = n[l] / 2 - i[l] / 2;
114
+ const r = I(e), s = gt(e), l = pt(s), c = Y(e), a = r === "y", f = n.x + n.width / 2 - i.width / 2, u = n.y + n.height / 2 - i.height / 2, p = n[l] / 2 - i[l] / 2;
115
115
  let d;
116
116
  switch (c) {
117
117
  case "top":
@@ -144,7 +144,7 @@ function Ot(t, e, o) {
144
144
  y: n.y
145
145
  };
146
146
  }
147
- switch (Q(e)) {
147
+ switch (U(e)) {
148
148
  case "start":
149
149
  d[s] -= p * (o && a ? -1 : 1);
150
150
  break;
@@ -154,7 +154,7 @@ function Ot(t, e, o) {
154
154
  }
155
155
  return d;
156
156
  }
157
- const ee = async (t, e, o) => {
157
+ const ne = async (t, e, o) => {
158
158
  const {
159
159
  placement: n = "bottom",
160
160
  strategy: i = "absolute",
@@ -168,7 +168,7 @@ const ee = async (t, e, o) => {
168
168
  }), {
169
169
  x: f,
170
170
  y: u
171
- } = Ot(a, n, c), p = n, d = {}, m = 0;
171
+ } = St(a, n, c), p = n, d = {}, m = 0;
172
172
  for (let g = 0; g < l.length; g++) {
173
173
  const {
174
174
  name: h,
@@ -176,8 +176,8 @@ const ee = async (t, e, o) => {
176
176
  } = l[g], {
177
177
  x,
178
178
  y,
179
- data: v,
180
- reset: b
179
+ data: b,
180
+ reset: v
181
181
  } = await w({
182
182
  x: f,
183
183
  y: u,
@@ -196,16 +196,16 @@ const ee = async (t, e, o) => {
196
196
  ...d,
197
197
  [h]: {
198
198
  ...d[h],
199
- ...v
199
+ ...b
200
200
  }
201
- }, b && m <= 50 && (m++, typeof b == "object" && (b.placement && (p = b.placement), b.rects && (a = b.rects === !0 ? await s.getElementRects({
201
+ }, v && m <= 50 && (m++, typeof v == "object" && (v.placement && (p = v.placement), v.rects && (a = v.rects === !0 ? await s.getElementRects({
202
202
  reference: t,
203
203
  floating: e,
204
204
  strategy: i
205
- }) : b.rects), {
205
+ }) : v.rects), {
206
206
  x: f,
207
207
  y: u
208
- } = Ot(a, p, c)), g = -1);
208
+ } = St(a, p, c)), g = -1);
209
209
  }
210
210
  return {
211
211
  x: f,
@@ -215,7 +215,7 @@ const ee = async (t, e, o) => {
215
215
  middlewareData: d
216
216
  };
217
217
  };
218
- async function gt(t, e) {
218
+ async function ht(t, e) {
219
219
  var o;
220
220
  e === void 0 && (e = {});
221
221
  const {
@@ -231,7 +231,7 @@ async function gt(t, e) {
231
231
  elementContext: u = "floating",
232
232
  altBoundary: p = !1,
233
233
  padding: d = 0
234
- } = J(e, t), m = Et(d), h = l[p ? u === "floating" ? "reference" : "floating" : u], w = it(await r.getClippingRect({
234
+ } = Q(e, t), m = Et(d), h = l[p ? u === "floating" ? "reference" : "floating" : u], w = st(await r.getClippingRect({
235
235
  element: (o = await (r.isElement == null ? void 0 : r.isElement(h))) == null || o ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
236
236
  boundary: a,
237
237
  rootBoundary: f,
@@ -241,26 +241,26 @@ async function gt(t, e) {
241
241
  y: i,
242
242
  width: s.floating.width,
243
243
  height: s.floating.height
244
- } : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), v = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
244
+ } : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), b = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
245
245
  x: 1,
246
246
  y: 1
247
247
  } : {
248
248
  x: 1,
249
249
  y: 1
250
- }, b = it(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
250
+ }, v = st(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
251
251
  elements: l,
252
252
  rect: x,
253
253
  offsetParent: y,
254
254
  strategy: c
255
255
  }) : x);
256
256
  return {
257
- top: (w.top - b.top + m.top) / v.y,
258
- bottom: (b.bottom - w.bottom + m.bottom) / v.y,
259
- left: (w.left - b.left + m.left) / v.x,
260
- right: (b.right - w.right + m.right) / v.x
257
+ top: (w.top - v.top + m.top) / b.y,
258
+ bottom: (v.bottom - w.bottom + m.bottom) / b.y,
259
+ left: (w.left - v.left + m.left) / b.x,
260
+ right: (v.right - w.right + m.right) / b.x
261
261
  };
262
262
  }
263
- const ne = (t) => ({
263
+ const oe = (t) => ({
264
264
  name: "arrow",
265
265
  options: t,
266
266
  async fn(e) {
@@ -275,29 +275,29 @@ const ne = (t) => ({
275
275
  } = e, {
276
276
  element: a,
277
277
  padding: f = 0
278
- } = J(t, e) || {};
278
+ } = Q(t, e) || {};
279
279
  if (a == null)
280
280
  return {};
281
281
  const u = Et(f), p = {
282
282
  x: o,
283
283
  y: n
284
- }, d = pt(i), m = mt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", v = r.reference[m] + r.reference[d] - p[d] - r.floating[m], b = p[d] - r.reference[d], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
285
- let R = D ? D[y] : 0;
286
- (!R || !await (s.isElement == null ? void 0 : s.isElement(D))) && (R = l.floating[y] || r.floating[m]);
287
- const N = v / 2 - b / 2, E = R / 2 - g[m] / 2 - 1, S = Y(u[w], E), V = Y(u[x], E), L = S, B = R - g[m] - V, A = R / 2 - g[m] / 2 + N, K = ft(L, A, B), W = !c.arrow && Q(i) != null && A !== K && r.reference[m] / 2 - (A < L ? S : V) - g[m] / 2 < 0, P = W ? A < L ? A - L : A - B : 0;
284
+ }, d = gt(i), m = pt(d), g = await s.getDimensions(a), h = d === "y", w = h ? "top" : "left", x = h ? "bottom" : "right", y = h ? "clientHeight" : "clientWidth", b = r.reference[m] + r.reference[d] - p[d] - r.floating[m], v = p[d] - r.reference[d], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
285
+ let A = D ? D[y] : 0;
286
+ (!A || !await (s.isElement == null ? void 0 : s.isElement(D))) && (A = l.floating[y] || r.floating[m]);
287
+ const N = b / 2 - v / 2, L = A / 2 - g[m] / 2 - 1, C = K(u[w], L), B = K(u[x], L), E = C, F = A - g[m] - B, P = A / 2 - g[m] / 2 + N, S = ut(E, P, F), X = !c.arrow && U(i) != null && P !== S && r.reference[m] / 2 - (P < E ? C : B) - g[m] / 2 < 0, W = X ? P < E ? P - E : P - F : 0;
288
288
  return {
289
- [d]: p[d] + P,
289
+ [d]: p[d] + W,
290
290
  data: {
291
- [d]: K,
292
- centerOffset: A - K - P,
293
- ...W && {
294
- alignmentOffset: P
291
+ [d]: S,
292
+ centerOffset: P - S - W,
293
+ ...X && {
294
+ alignmentOffset: W
295
295
  }
296
296
  },
297
- reset: W
297
+ reset: X
298
298
  };
299
299
  }
300
- }), oe = function(t) {
300
+ }), ie = function(t) {
301
301
  return t === void 0 && (t = {}), {
302
302
  name: "flip",
303
303
  options: t,
@@ -318,48 +318,52 @@ const ne = (t) => ({
318
318
  fallbackAxisSideDirection: m = "none",
319
319
  flipAlignment: g = !0,
320
320
  ...h
321
- } = J(t, e);
321
+ } = Q(t, e);
322
322
  if ((o = r.arrow) != null && o.alignmentOffset)
323
323
  return {};
324
- const w = j(i), x = z(l), y = j(l) === l, v = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), b = p || (y || !g ? [ot(l)] : Qt(l)), D = m !== "none";
325
- !p && D && b.push(...Zt(l, g, m, v));
326
- const R = [l, ...b], N = await gt(e, h), E = [];
327
- let S = ((n = r.flip) == null ? void 0 : n.overflows) || [];
328
- if (f && E.push(N[w]), u) {
329
- const A = Jt(i, s, v);
330
- E.push(N[A[0]], N[A[1]]);
324
+ const w = Y(i), x = I(l), y = Y(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), v = p || (y || !g ? [it(l)] : Ut(l)), D = m !== "none";
325
+ !p && D && v.push(...te(l, g, m, b));
326
+ const A = [l, ...v], N = await ht(e, h), L = [];
327
+ let C = ((n = r.flip) == null ? void 0 : n.overflows) || [];
328
+ if (f && L.push(N[w]), u) {
329
+ const S = Qt(i, s, b);
330
+ L.push(N[S[0]], N[S[1]]);
331
331
  }
332
- if (S = [...S, {
332
+ if (C = [...C, {
333
333
  placement: i,
334
- overflows: E
335
- }], !E.every((A) => A <= 0)) {
336
- var V, L;
337
- const A = (((V = r.flip) == null ? void 0 : V.index) || 0) + 1, K = R[A];
338
- if (K)
339
- return {
340
- data: {
341
- index: A,
342
- overflows: S
343
- },
344
- reset: {
345
- placement: K
346
- }
347
- };
348
- let W = (L = S.filter((P) => P.overflows[0] <= 0).sort((P, F) => P.overflows[1] - F.overflows[1])[0]) == null ? void 0 : L.placement;
334
+ overflows: L
335
+ }], !L.every((S) => S <= 0)) {
336
+ var B, E;
337
+ const S = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, X = A[S];
338
+ if (X) {
339
+ var F;
340
+ const H = u === "alignment" ? x !== I(X) : !1, k = ((F = C[0]) == null ? void 0 : F.overflows[0]) > 0;
341
+ if (!H || k)
342
+ return {
343
+ data: {
344
+ index: S,
345
+ overflows: C
346
+ },
347
+ reset: {
348
+ placement: X
349
+ }
350
+ };
351
+ }
352
+ let W = (E = C.filter((H) => H.overflows[0] <= 0).sort((H, k) => H.overflows[1] - k.overflows[1])[0]) == null ? void 0 : E.placement;
349
353
  if (!W)
350
354
  switch (d) {
351
355
  case "bestFit": {
352
- var B;
353
- const P = (B = S.filter((F) => {
356
+ var P;
357
+ const H = (P = C.filter((k) => {
354
358
  if (D) {
355
- const H = z(F.placement);
356
- return H === x || // Create a bias to the `y` side axis due to horizontal
359
+ const j = I(k.placement);
360
+ return j === x || // Create a bias to the `y` side axis due to horizontal
357
361
  // reading directions favoring greater width.
358
- H === "y";
362
+ j === "y";
359
363
  }
360
364
  return !0;
361
- }).map((F) => [F.placement, F.overflows.filter((H) => H > 0).reduce((H, Bt) => H + Bt, 0)]).sort((F, H) => F[1] - H[1])[0]) == null ? void 0 : B[0];
362
- P && (W = P);
365
+ }).map((k) => [k.placement, k.overflows.filter((j) => j > 0).reduce((j, Ft) => j + Ft, 0)]).sort((k, j) => k[1] - j[1])[0]) == null ? void 0 : P[0];
366
+ H && (W = H);
363
367
  break;
364
368
  }
365
369
  case "initialPlacement":
@@ -377,12 +381,12 @@ const ne = (t) => ({
377
381
  }
378
382
  };
379
383
  };
380
- async function ie(t, e) {
384
+ async function se(t, e) {
381
385
  const {
382
386
  placement: o,
383
387
  platform: n,
384
388
  elements: i
385
- } = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = j(o), l = Q(o), c = z(o) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, u = J(e, t);
389
+ } = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = Y(o), l = U(o), c = I(o) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = r && c ? -1 : 1, u = Q(e, t);
386
390
  let {
387
391
  mainAxis: p,
388
392
  crossAxis: d,
@@ -404,7 +408,7 @@ async function ie(t, e) {
404
408
  y: d * f
405
409
  };
406
410
  }
407
- const se = function(t) {
411
+ const re = function(t) {
408
412
  return t === void 0 && (t = 0), {
409
413
  name: "offset",
410
414
  options: t,
@@ -415,7 +419,7 @@ const se = function(t) {
415
419
  y: r,
416
420
  placement: s,
417
421
  middlewareData: l
418
- } = e, c = await ie(e, t);
422
+ } = e, c = await se(e, t);
419
423
  return s === ((o = l.offset) == null ? void 0 : o.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
420
424
  x: i + c.x,
421
425
  y: r + c.y,
@@ -426,7 +430,7 @@ const se = function(t) {
426
430
  };
427
431
  }
428
432
  };
429
- }, re = function(t) {
433
+ }, le = function(t) {
430
434
  return t === void 0 && (t = {}), {
431
435
  name: "shift",
432
436
  options: t,
@@ -451,18 +455,18 @@ const se = function(t) {
451
455
  }
452
456
  },
453
457
  ...c
454
- } = J(t, e), a = {
458
+ } = Q(t, e), a = {
455
459
  x: o,
456
460
  y: n
457
- }, f = await gt(e, c), u = z(j(i)), p = Dt(u);
461
+ }, f = await ht(e, c), u = I(Y(i)), p = Lt(u);
458
462
  let d = a[p], m = a[u];
459
463
  if (r) {
460
464
  const h = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", x = d + f[h], y = d - f[w];
461
- d = ft(x, d, y);
465
+ d = ut(x, d, y);
462
466
  }
463
467
  if (s) {
464
468
  const h = u === "y" ? "top" : "left", w = u === "y" ? "bottom" : "right", x = m + f[h], y = m - f[w];
465
- m = ft(x, m, y);
469
+ m = ut(x, m, y);
466
470
  }
467
471
  const g = l.fn({
468
472
  ...e,
@@ -482,7 +486,7 @@ const se = function(t) {
482
486
  };
483
487
  }
484
488
  };
485
- }, le = function(t) {
489
+ }, ce = function(t) {
486
490
  return t === void 0 && (t = {}), {
487
491
  name: "size",
488
492
  options: t,
@@ -497,25 +501,25 @@ const se = function(t) {
497
501
  apply: c = () => {
498
502
  },
499
503
  ...a
500
- } = J(t, e), f = await gt(e, a), u = j(i), p = Q(i), d = z(i) === "y", {
504
+ } = Q(t, e), f = await ht(e, a), u = Y(i), p = U(i), d = I(i) === "y", {
501
505
  width: m,
502
506
  height: g
503
507
  } = r.floating;
504
508
  let h, w;
505
509
  u === "top" || u === "bottom" ? (h = u, w = p === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (w = u, h = p === "end" ? "top" : "bottom");
506
- const x = g - f.top - f.bottom, y = m - f.left - f.right, v = Y(g - f[h], x), b = Y(m - f[w], y), D = !e.middlewareData.shift;
507
- let R = v, N = b;
508
- if ((o = e.middlewareData.shift) != null && o.enabled.x && (N = y), (n = e.middlewareData.shift) != null && n.enabled.y && (R = x), D && !p) {
509
- const S = O(f.left, 0), V = O(f.right, 0), L = O(f.top, 0), B = O(f.bottom, 0);
510
- d ? N = m - 2 * (S !== 0 || V !== 0 ? S + V : O(f.left, f.right)) : R = g - 2 * (L !== 0 || B !== 0 ? L + B : O(f.top, f.bottom));
510
+ const x = g - f.top - f.bottom, y = m - f.left - f.right, b = K(g - f[h], x), v = K(m - f[w], y), D = !e.middlewareData.shift;
511
+ let A = b, N = v;
512
+ if ((o = e.middlewareData.shift) != null && o.enabled.x && (N = y), (n = e.middlewareData.shift) != null && n.enabled.y && (A = x), D && !p) {
513
+ const C = O(f.left, 0), B = O(f.right, 0), E = O(f.top, 0), F = O(f.bottom, 0);
514
+ d ? N = m - 2 * (C !== 0 || B !== 0 ? C + B : O(f.left, f.right)) : A = g - 2 * (E !== 0 || F !== 0 ? E + F : O(f.top, f.bottom));
511
515
  }
512
516
  await c({
513
517
  ...e,
514
518
  availableWidth: N,
515
- availableHeight: R
519
+ availableHeight: A
516
520
  });
517
- const E = await s.getDimensions(l.floating);
518
- return m !== E.width || g !== E.height ? {
521
+ const L = await s.getDimensions(l.floating);
522
+ return m !== L.width || g !== L.height ? {
519
523
  reset: {
520
524
  rects: !0
521
525
  }
@@ -523,45 +527,45 @@ const se = function(t) {
523
527
  }
524
528
  };
525
529
  };
526
- function st() {
530
+ function rt() {
527
531
  return typeof window < "u";
528
532
  }
529
- function X(t) {
530
- return ht(t) ? (t.nodeName || "").toLowerCase() : "#document";
533
+ function q(t) {
534
+ return wt(t) ? (t.nodeName || "").toLowerCase() : "#document";
531
535
  }
532
- function C(t) {
536
+ function R(t) {
533
537
  var e;
534
538
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
535
539
  }
536
- function M(t) {
540
+ function V(t) {
537
541
  var e;
538
- return (e = (ht(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
542
+ return (e = (wt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
539
543
  }
540
- function ht(t) {
541
- return st() ? t instanceof Node || t instanceof C(t).Node : !1;
544
+ function wt(t) {
545
+ return rt() ? t instanceof Node || t instanceof R(t).Node : !1;
542
546
  }
543
- function _(t) {
544
- return st() ? t instanceof Element || t instanceof C(t).Element : !1;
547
+ function T(t) {
548
+ return rt() ? t instanceof Element || t instanceof R(t).Element : !1;
545
549
  }
546
- function $(t) {
547
- return st() ? t instanceof HTMLElement || t instanceof C(t).HTMLElement : !1;
550
+ function M(t) {
551
+ return rt() ? t instanceof HTMLElement || t instanceof R(t).HTMLElement : !1;
548
552
  }
549
- function St(t) {
550
- return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof C(t).ShadowRoot;
553
+ function Tt(t) {
554
+ return !rt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
551
555
  }
552
- function et(t) {
556
+ function nt(t) {
553
557
  const {
554
558
  overflow: e,
555
559
  overflowX: o,
556
560
  overflowY: n,
557
561
  display: i
558
- } = T(t);
562
+ } = _(t);
559
563
  return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
560
564
  }
561
- function ce(t) {
562
- return ["table", "td", "th"].includes(X(t));
565
+ function ae(t) {
566
+ return ["table", "td", "th"].includes(q(t));
563
567
  }
564
- function rt(t) {
568
+ function lt(t) {
565
569
  return [":popover-open", ":modal"].some((e) => {
566
570
  try {
567
571
  return t.matches(e);
@@ -570,32 +574,32 @@ function rt(t) {
570
574
  }
571
575
  });
572
576
  }
573
- function wt(t) {
574
- const e = xt(), o = _(t) ? T(t) : t;
577
+ function xt(t) {
578
+ const e = yt(), o = T(t) ? _(t) : t;
575
579
  return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
576
580
  }
577
- function ae(t) {
578
- let e = I(t);
579
- for (; $(e) && !G(e); ) {
580
- if (wt(e))
581
+ function fe(t) {
582
+ let e = z(t);
583
+ for (; M(e) && !J(e); ) {
584
+ if (xt(e))
581
585
  return e;
582
- if (rt(e))
586
+ if (lt(e))
583
587
  return null;
584
- e = I(e);
588
+ e = z(e);
585
589
  }
586
590
  return null;
587
591
  }
588
- function xt() {
592
+ function yt() {
589
593
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
590
594
  }
591
- function G(t) {
592
- return ["html", "body", "#document"].includes(X(t));
595
+ function J(t) {
596
+ return ["html", "body", "#document"].includes(q(t));
593
597
  }
594
- function T(t) {
595
- return C(t).getComputedStyle(t);
598
+ function _(t) {
599
+ return R(t).getComputedStyle(t);
596
600
  }
597
- function lt(t) {
598
- return _(t) ? {
601
+ function ct(t) {
602
+ return T(t) ? {
599
603
  scrollLeft: t.scrollLeft,
600
604
  scrollTop: t.scrollTop
601
605
  } : {
@@ -603,127 +607,127 @@ function lt(t) {
603
607
  scrollTop: t.scrollY
604
608
  };
605
609
  }
606
- function I(t) {
607
- if (X(t) === "html")
610
+ function z(t) {
611
+ if (q(t) === "html")
608
612
  return t;
609
613
  const e = (
610
614
  // Step into the shadow DOM of the parent of a slotted node.
611
615
  t.assignedSlot || // DOM Element detected.
612
616
  t.parentNode || // ShadowRoot detected.
613
- St(t) && t.host || // Fallback.
614
- M(t)
617
+ Tt(t) && t.host || // Fallback.
618
+ V(t)
615
619
  );
616
- return St(e) ? e.host : e;
620
+ return Tt(e) ? e.host : e;
617
621
  }
618
- function Lt(t) {
619
- const e = I(t);
620
- return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : $(e) && et(e) ? e : Lt(e);
622
+ function Pt(t) {
623
+ const e = z(t);
624
+ return J(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : M(e) && nt(e) ? e : Pt(e);
621
625
  }
622
- function Pt(t, e, o) {
626
+ function kt(t, e, o) {
623
627
  var n;
624
628
  e === void 0 && (e = []);
625
- const i = Lt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = C(i);
626
- return r ? (dt(s), e.concat(s, s.visualViewport || [], et(i) ? i : [], [])) : e.concat(i, Pt(i, []));
629
+ const i = Pt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = R(i);
630
+ return r ? (mt(s), e.concat(s, s.visualViewport || [], nt(i) ? i : [], [])) : e.concat(i, kt(i, []));
627
631
  }
628
- function dt(t) {
632
+ function mt(t) {
629
633
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
630
634
  }
631
- function kt(t) {
632
- const e = T(t);
635
+ function $t(t) {
636
+ const e = _(t);
633
637
  let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
634
- const i = $(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, l = nt(o) !== r || nt(n) !== s;
638
+ const i = M(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, l = ot(o) !== r || ot(n) !== s;
635
639
  return l && (o = r, n = s), {
636
640
  width: o,
637
641
  height: n,
638
642
  $: l
639
643
  };
640
644
  }
641
- function $t(t) {
642
- return _(t) ? t : t.contextElement;
645
+ function Mt(t) {
646
+ return T(t) ? t : t.contextElement;
643
647
  }
644
- function q(t) {
645
- const e = $t(t);
646
- if (!$(e))
647
- return k(1);
648
+ function G(t) {
649
+ const e = Mt(t);
650
+ if (!M(e))
651
+ return $(1);
648
652
  const o = e.getBoundingClientRect(), {
649
653
  width: n,
650
654
  height: i,
651
655
  $: r
652
- } = kt(e);
653
- let s = (r ? nt(o.width) : o.width) / n, l = (r ? nt(o.height) : o.height) / i;
656
+ } = $t(e);
657
+ let s = (r ? ot(o.width) : o.width) / n, l = (r ? ot(o.height) : o.height) / i;
654
658
  return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
655
659
  x: s,
656
660
  y: l
657
661
  };
658
662
  }
659
- const fe = /* @__PURE__ */ k(0);
663
+ const ue = /* @__PURE__ */ $(0);
660
664
  function Nt(t) {
661
- const e = C(t);
662
- return !xt() || !e.visualViewport ? fe : {
665
+ const e = R(t);
666
+ return !yt() || !e.visualViewport ? ue : {
663
667
  x: e.visualViewport.offsetLeft,
664
668
  y: e.visualViewport.offsetTop
665
669
  };
666
670
  }
667
- function ue(t, e, o) {
668
- return e === void 0 && (e = !1), !o || e && o !== C(t) ? !1 : e;
671
+ function de(t, e, o) {
672
+ return e === void 0 && (e = !1), !o || e && o !== R(t) ? !1 : e;
669
673
  }
670
- function tt(t, e, o, n) {
674
+ function et(t, e, o, n) {
671
675
  e === void 0 && (e = !1), o === void 0 && (o = !1);
672
- const i = t.getBoundingClientRect(), r = $t(t);
673
- let s = k(1);
674
- e && (n ? _(n) && (s = q(n)) : s = q(t));
675
- const l = ue(r, o, n) ? Nt(r) : k(0);
676
+ const i = t.getBoundingClientRect(), r = Mt(t);
677
+ let s = $(1);
678
+ e && (n ? T(n) && (s = G(n)) : s = G(t));
679
+ const l = de(r, o, n) ? Nt(r) : $(0);
676
680
  let c = (i.left + l.x) / s.x, a = (i.top + l.y) / s.y, f = i.width / s.x, u = i.height / s.y;
677
681
  if (r) {
678
- const p = C(r), d = n && _(n) ? C(n) : n;
679
- let m = p, g = dt(m);
682
+ const p = R(r), d = n && T(n) ? R(n) : n;
683
+ let m = p, g = mt(m);
680
684
  for (; g && n && d !== m; ) {
681
- const h = q(g), w = g.getBoundingClientRect(), x = T(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, v = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
682
- c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += v, m = C(g), g = dt(m);
685
+ const h = G(g), w = g.getBoundingClientRect(), x = _(g), y = w.left + (g.clientLeft + parseFloat(x.paddingLeft)) * h.x, b = w.top + (g.clientTop + parseFloat(x.paddingTop)) * h.y;
686
+ c *= h.x, a *= h.y, f *= h.x, u *= h.y, c += y, a += b, m = R(g), g = mt(m);
683
687
  }
684
688
  }
685
- return it({
689
+ return st({
686
690
  width: f,
687
691
  height: u,
688
692
  x: c,
689
693
  y: a
690
694
  });
691
695
  }
692
- function yt(t, e) {
693
- const o = lt(t).scrollLeft;
694
- return e ? e.left + o : tt(M(t)).left + o;
696
+ function vt(t, e) {
697
+ const o = ct(t).scrollLeft;
698
+ return e ? e.left + o : et(V(t)).left + o;
695
699
  }
696
700
  function Wt(t, e, o) {
697
701
  o === void 0 && (o = !1);
698
702
  const n = t.getBoundingClientRect(), i = n.left + e.scrollLeft - (o ? 0 : (
699
703
  // RTL <body> scrollbar.
700
- yt(t, n)
704
+ vt(t, n)
701
705
  )), r = n.top + e.scrollTop;
702
706
  return {
703
707
  x: i,
704
708
  y: r
705
709
  };
706
710
  }
707
- function de(t) {
711
+ function me(t) {
708
712
  let {
709
713
  elements: e,
710
714
  rect: o,
711
715
  offsetParent: n,
712
716
  strategy: i
713
717
  } = t;
714
- const r = i === "fixed", s = M(n), l = e ? rt(e.floating) : !1;
718
+ const r = i === "fixed", s = V(n), l = e ? lt(e.floating) : !1;
715
719
  if (n === s || l && r)
716
720
  return o;
717
721
  let c = {
718
722
  scrollLeft: 0,
719
723
  scrollTop: 0
720
- }, a = k(1);
721
- const f = k(0), u = $(n);
722
- if ((u || !u && !r) && ((X(n) !== "body" || et(s)) && (c = lt(n)), $(n))) {
723
- const d = tt(n);
724
- a = q(n), f.x = d.x + n.clientLeft, f.y = d.y + n.clientTop;
724
+ }, a = $(1);
725
+ const f = $(0), u = M(n);
726
+ if ((u || !u && !r) && ((q(n) !== "body" || nt(s)) && (c = ct(n)), M(n))) {
727
+ const d = et(n);
728
+ a = G(n), f.x = d.x + n.clientLeft, f.y = d.y + n.clientTop;
725
729
  }
726
- const p = s && !u && !r ? Wt(s, c, !0) : k(0);
730
+ const p = s && !u && !r ? Wt(s, c, !0) : $(0);
727
731
  return {
728
732
  width: o.width * a.x,
729
733
  height: o.height * a.y,
@@ -731,26 +735,26 @@ function de(t) {
731
735
  y: o.y * a.y - c.scrollTop * a.y + f.y + p.y
732
736
  };
733
737
  }
734
- function me(t) {
738
+ function pe(t) {
735
739
  return Array.from(t.getClientRects());
736
740
  }
737
- function pe(t) {
738
- const e = M(t), o = lt(t), n = t.ownerDocument.body, i = O(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = O(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
739
- let s = -o.scrollLeft + yt(t);
741
+ function ge(t) {
742
+ const e = V(t), o = ct(t), n = t.ownerDocument.body, i = O(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = O(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
743
+ let s = -o.scrollLeft + vt(t);
740
744
  const l = -o.scrollTop;
741
- return T(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
745
+ return _(n).direction === "rtl" && (s += O(e.clientWidth, n.clientWidth) - i), {
742
746
  width: i,
743
747
  height: r,
744
748
  x: s,
745
749
  y: l
746
750
  };
747
751
  }
748
- function ge(t, e) {
749
- const o = C(t), n = M(t), i = o.visualViewport;
752
+ function he(t, e) {
753
+ const o = R(t), n = V(t), i = o.visualViewport;
750
754
  let r = n.clientWidth, s = n.clientHeight, l = 0, c = 0;
751
755
  if (i) {
752
756
  r = i.width, s = i.height;
753
- const a = xt();
757
+ const a = yt();
754
758
  (!a || a && e === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
755
759
  }
756
760
  return {
@@ -760,8 +764,8 @@ function ge(t, e) {
760
764
  y: c
761
765
  };
762
766
  }
763
- function he(t, e) {
764
- const o = tt(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = $(t) ? q(t) : k(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, c = i * r.x, a = n * r.y;
767
+ function we(t, e) {
768
+ const o = et(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = M(t) ? G(t) : $(1), s = t.clientWidth * r.x, l = t.clientHeight * r.y, c = i * r.x, a = n * r.y;
765
769
  return {
766
770
  width: s,
767
771
  height: l,
@@ -772,11 +776,11 @@ function he(t, e) {
772
776
  function _t(t, e, o) {
773
777
  let n;
774
778
  if (e === "viewport")
775
- n = ge(t, o);
779
+ n = he(t, o);
776
780
  else if (e === "document")
777
- n = pe(M(t));
778
- else if (_(e))
779
- n = he(e, o);
781
+ n = ge(V(t));
782
+ else if (T(e))
783
+ n = we(e, o);
780
784
  else {
781
785
  const i = Nt(t);
782
786
  n = {
@@ -786,35 +790,35 @@ function _t(t, e, o) {
786
790
  height: e.height
787
791
  };
788
792
  }
789
- return it(n);
793
+ return st(n);
790
794
  }
791
- function Mt(t, e) {
792
- const o = I(t);
793
- return o === e || !_(o) || G(o) ? !1 : T(o).position === "fixed" || Mt(o, e);
795
+ function Vt(t, e) {
796
+ const o = z(t);
797
+ return o === e || !T(o) || J(o) ? !1 : _(o).position === "fixed" || Vt(o, e);
794
798
  }
795
- function we(t, e) {
799
+ function xe(t, e) {
796
800
  const o = e.get(t);
797
801
  if (o)
798
802
  return o;
799
- let n = Pt(t, []).filter((l) => _(l) && X(l) !== "body"), i = null;
800
- const r = T(t).position === "fixed";
801
- let s = r ? I(t) : t;
802
- for (; _(s) && !G(s); ) {
803
- const l = T(s), c = wt(s);
804
- !c && l.position === "fixed" && (i = null), (r ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || et(s) && !c && Mt(t, s)) ? n = n.filter((f) => f !== s) : i = l, s = I(s);
803
+ let n = kt(t, []).filter((l) => T(l) && q(l) !== "body"), i = null;
804
+ const r = _(t).position === "fixed";
805
+ let s = r ? z(t) : t;
806
+ for (; T(s) && !J(s); ) {
807
+ const l = _(s), c = xt(s);
808
+ !c && l.position === "fixed" && (i = null), (r ? !c && !i : !c && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || nt(s) && !c && Vt(t, s)) ? n = n.filter((f) => f !== s) : i = l, s = z(s);
805
809
  }
806
810
  return e.set(t, n), n;
807
811
  }
808
- function xe(t) {
812
+ function ye(t) {
809
813
  let {
810
814
  element: e,
811
815
  boundary: o,
812
816
  rootBoundary: n,
813
817
  strategy: i
814
818
  } = t;
815
- const s = [...o === "clippingAncestors" ? rt(e) ? [] : we(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
819
+ const s = [...o === "clippingAncestors" ? lt(e) ? [] : xe(e, this._c) : [].concat(o), n], l = s[0], c = s.reduce((a, f) => {
816
820
  const u = _t(e, f, i);
817
- return a.top = O(u.top, a.top), a.right = Y(u.right, a.right), a.bottom = Y(u.bottom, a.bottom), a.left = O(u.left, a.left), a;
821
+ return a.top = O(u.top, a.top), a.right = K(u.right, a.right), a.bottom = K(u.bottom, a.bottom), a.left = O(u.left, a.left), a;
818
822
  }, _t(e, l, i));
819
823
  return {
820
824
  width: c.right - c.left,
@@ -823,67 +827,71 @@ function xe(t) {
823
827
  y: c.top
824
828
  };
825
829
  }
826
- function ye(t) {
830
+ function ve(t) {
827
831
  const {
828
832
  width: e,
829
833
  height: o
830
- } = kt(t);
834
+ } = $t(t);
831
835
  return {
832
836
  width: e,
833
837
  height: o
834
838
  };
835
839
  }
836
840
  function be(t, e, o) {
837
- const n = $(e), i = M(e), r = o === "fixed", s = tt(t, !0, r, e);
841
+ const n = M(e), i = V(e), r = o === "fixed", s = et(t, !0, r, e);
838
842
  let l = {
839
843
  scrollLeft: 0,
840
844
  scrollTop: 0
841
845
  };
842
- const c = k(0);
846
+ const c = $(0);
847
+ function a() {
848
+ c.x = vt(i);
849
+ }
843
850
  if (n || !n && !r)
844
- if ((X(e) !== "body" || et(i)) && (l = lt(e)), n) {
845
- const p = tt(e, !0, r, e);
846
- c.x = p.x + e.clientLeft, c.y = p.y + e.clientTop;
847
- } else i && (c.x = yt(i));
848
- const a = i && !n && !r ? Wt(i, l) : k(0), f = s.left + l.scrollLeft - c.x - a.x, u = s.top + l.scrollTop - c.y - a.y;
851
+ if ((q(e) !== "body" || nt(i)) && (l = ct(e)), n) {
852
+ const d = et(e, !0, r, e);
853
+ c.x = d.x + e.clientLeft, c.y = d.y + e.clientTop;
854
+ } else i && a();
855
+ r && !n && i && a();
856
+ const f = i && !n && !r ? Wt(i, l) : $(0), u = s.left + l.scrollLeft - c.x - f.x, p = s.top + l.scrollTop - c.y - f.y;
849
857
  return {
850
- x: f,
851
- y: u,
858
+ x: u,
859
+ y: p,
852
860
  width: s.width,
853
861
  height: s.height
854
862
  };
855
863
  }
856
- function ct(t) {
857
- return T(t).position === "static";
864
+ function at(t) {
865
+ return _(t).position === "static";
858
866
  }
859
- function Tt(t, e) {
860
- if (!$(t) || T(t).position === "fixed")
867
+ function Dt(t, e) {
868
+ if (!M(t) || _(t).position === "fixed")
861
869
  return null;
862
870
  if (e)
863
871
  return e(t);
864
872
  let o = t.offsetParent;
865
- return M(t) === o && (o = o.ownerDocument.body), o;
873
+ return V(t) === o && (o = o.ownerDocument.body), o;
866
874
  }
867
- function Vt(t, e) {
868
- const o = C(t);
869
- if (rt(t))
875
+ function Bt(t, e) {
876
+ const o = R(t);
877
+ if (lt(t))
870
878
  return o;
871
- if (!$(t)) {
872
- let i = I(t);
873
- for (; i && !G(i); ) {
874
- if (_(i) && !ct(i))
879
+ if (!M(t)) {
880
+ let i = z(t);
881
+ for (; i && !J(i); ) {
882
+ if (T(i) && !at(i))
875
883
  return i;
876
- i = I(i);
884
+ i = z(i);
877
885
  }
878
886
  return o;
879
887
  }
880
- let n = Tt(t, e);
881
- for (; n && ce(n) && ct(n); )
882
- n = Tt(n, e);
883
- return n && G(n) && ct(n) && !wt(n) ? o : n || ae(t) || o;
888
+ let n = Dt(t, e);
889
+ for (; n && ae(n) && at(n); )
890
+ n = Dt(n, e);
891
+ return n && J(n) && at(n) && !xt(n) ? o : n || fe(t) || o;
884
892
  }
885
- const ve = async function(t) {
886
- const e = this.getOffsetParent || Vt, o = this.getDimensions, n = await o(t.floating);
893
+ const Ae = async function(t) {
894
+ const e = this.getOffsetParent || Bt, o = this.getDimensions, n = await o(t.floating);
887
895
  return {
888
896
  reference: be(t.reference, await e(t.floating), t.strategy),
889
897
  floating: {
@@ -894,29 +902,29 @@ const ve = async function(t) {
894
902
  }
895
903
  };
896
904
  };
897
- function Ae(t) {
898
- return T(t).direction === "rtl";
899
- }
900
- const Re = {
901
- convertOffsetParentRelativeRectToViewportRelativeRect: de,
902
- getDocumentElement: M,
903
- getClippingRect: xe,
904
- getOffsetParent: Vt,
905
- getElementRects: ve,
906
- getClientRects: me,
907
- getDimensions: ye,
908
- getScale: q,
909
- isElement: _,
910
- isRTL: Ae
911
- }, Ce = se, Oe = re, Se = oe, _e = le, Te = ne, De = (t, e, o) => {
905
+ function Re(t) {
906
+ return _(t).direction === "rtl";
907
+ }
908
+ const Ce = {
909
+ convertOffsetParentRelativeRectToViewportRelativeRect: me,
910
+ getDocumentElement: V,
911
+ getClippingRect: ye,
912
+ getOffsetParent: Bt,
913
+ getElementRects: Ae,
914
+ getClientRects: pe,
915
+ getDimensions: ve,
916
+ getScale: G,
917
+ isElement: T,
918
+ isRTL: Re
919
+ }, Oe = re, Se = le, Te = ie, _e = ce, De = oe, Le = (t, e, o) => {
912
920
  const n = /* @__PURE__ */ new Map(), i = {
913
- platform: Re,
921
+ platform: Ce,
914
922
  ...o
915
923
  }, r = {
916
924
  ...i.platform,
917
925
  _c: n
918
926
  };
919
- return ee(t, e, {
927
+ return ne(t, e, {
920
928
  ...i,
921
929
  platform: r
922
930
  });
@@ -924,33 +932,33 @@ const Re = {
924
932
  function Ee(t) {
925
933
  return t != null && typeof t == "object" && "$el" in t;
926
934
  }
927
- function Le(t) {
935
+ function Pe(t) {
928
936
  if (Ee(t)) {
929
937
  const e = t.$el;
930
- return ht(e) && X(e) === "#comment" ? null : e;
938
+ return wt(e) && q(e) === "#comment" ? null : e;
931
939
  }
932
940
  return t;
933
941
  }
934
- function Pe(t) {
935
- return typeof t == "function" ? t() : at(t);
936
- }
937
942
  function ke(t) {
943
+ return typeof t == "function" ? t() : ft(t);
944
+ }
945
+ function $e(t) {
938
946
  return {
939
947
  name: "arrow",
940
948
  options: t,
941
949
  fn(e) {
942
- const o = Le(Pe(t.element));
943
- return o == null ? {} : Te({
950
+ const o = Pe(ke(t.element));
951
+ return o == null ? {} : De({
944
952
  element: o,
945
953
  padding: t.padding
946
954
  }).fn(e);
947
955
  }
948
956
  };
949
957
  }
950
- const $e = { class: "rds-e-tooltip" }, Ne = {
958
+ const Me = { class: "rds-e-tooltip" }, Ne = {
951
959
  key: 0,
952
960
  class: "rds-e-tooltip__header"
953
- }, We = { class: "rds-e-tooltip__title" }, Me = { class: "rds-e-tooltip__content" }, Ve = /* @__PURE__ */ Ft({
961
+ }, We = { class: "rds-e-tooltip__title" }, Ve = { class: "rds-e-tooltip__content" }, Be = /* @__PURE__ */ Ht({
954
962
  __name: "tooltip",
955
963
  props: {
956
964
  /**
@@ -997,26 +1005,26 @@ const $e = { class: "rds-e-tooltip" }, Ne = {
997
1005
  }
998
1006
  },
999
1007
  setup(t) {
1000
- const e = t, { large: o, fullWidth: n, title: i } = Ht(e), r = U(), s = U(), l = U(), c = U(!0), a = U(""), f = async () => {
1001
- const { x: m, y: g, middlewareData: h, placement: w } = await De(
1008
+ const e = t, { large: o, fullWidth: n, title: i } = jt(e), r = Z(), s = Z(), l = Z(), c = Z(!0), a = Z(""), f = async () => {
1009
+ const { x: m, y: g, middlewareData: h, placement: w } = await Le(
1002
1010
  r.value,
1003
1011
  s.value,
1004
1012
  {
1005
1013
  placement: e.placement,
1006
1014
  middleware: [
1007
- Ce(e.offsetSpace),
1015
+ Oe(e.offsetSpace),
1016
+ Te(),
1008
1017
  Se(),
1009
- Oe(),
1010
1018
  _e({
1011
- apply({ availableHeight: b, availableWidth: D, elements: R }) {
1012
- Object.assign(R.floating.style, {
1019
+ apply({ availableHeight: v, availableWidth: D, elements: A }) {
1020
+ Object.assign(A.floating.style, {
1013
1021
  maxWidth: n.value ? `${Math.max(0, D)}px` : "380px",
1014
1022
  width: "max-content",
1015
- maxHeight: `${Math.max(0, b)}px`
1023
+ maxHeight: `${Math.max(0, v)}px`
1016
1024
  });
1017
1025
  }
1018
1026
  }),
1019
- ke({
1027
+ $e({
1020
1028
  element: l.value,
1021
1029
  padding: o.value ? 16 : 8
1022
1030
  })
@@ -1027,7 +1035,7 @@ const $e = { class: "rds-e-tooltip" }, Ne = {
1027
1035
  left: `${m}px`,
1028
1036
  top: `${g}px`
1029
1037
  });
1030
- const { x, y } = h.arrow, v = {
1038
+ const { x, y } = h.arrow, b = {
1031
1039
  left: "right",
1032
1040
  right: "left",
1033
1041
  bottom: "top",
@@ -1038,15 +1046,15 @@ const $e = { class: "rds-e-tooltip" }, Ne = {
1038
1046
  top: y != null ? `${y}px` : "",
1039
1047
  bottom: "",
1040
1048
  right: "",
1041
- [v[w.split("-")[0]]]: "-4px"
1049
+ [b[w.split("-")[0]]]: "-4px"
1042
1050
  });
1043
1051
  }, u = () => {
1044
1052
  i != null && i.value || (c.value = !0);
1045
1053
  }, p = () => {
1046
1054
  c.value = !1, f();
1047
- }, d = jt(() => `rds-e-tooltip__tooltip ${c.value ? "rds-e-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-e-tooltip__tooltip--large " : ""}`);
1048
- return (m, g) => (bt(), vt("div", $e, [
1049
- Z("div", {
1055
+ }, d = It(() => `rds-e-tooltip__tooltip ${c.value ? "rds-e-tooltip__tooltip-hidden " : ""}${o.value || i != null && i.value ? "rds-e-tooltip__tooltip--large " : ""}`);
1056
+ return (m, g) => (At(), bt("div", Me, [
1057
+ tt("div", {
1050
1058
  ref_key: "referenceRef",
1051
1059
  ref: r,
1052
1060
  class: "rds-e-tooltip__trigger",
@@ -1055,36 +1063,36 @@ const $e = { class: "rds-e-tooltip" }, Ne = {
1055
1063
  onMouseenter: p,
1056
1064
  onMouseleave: u
1057
1065
  }, [
1058
- At(m.$slots, "default", {}, void 0, !0)
1066
+ Rt(m.$slots, "default", {}, void 0, !0)
1059
1067
  ], 544),
1060
- Z("div", {
1068
+ tt("div", {
1061
1069
  ref_key: "floatingRef",
1062
1070
  ref: s,
1063
- class: Rt(d.value)
1071
+ class: Ct(d.value)
1064
1072
  }, [
1065
- at(i) ? (bt(), vt("div", Ne, [
1066
- Z("h3", We, Ct(at(i)), 1),
1067
- It(Xt, {
1073
+ ft(i) ? (At(), bt("div", Ne, [
1074
+ tt("h3", We, Ot(ft(i)), 1),
1075
+ zt(Kt, {
1068
1076
  name: "close",
1069
1077
  "aria-hidden": "true",
1070
1078
  class: "rds-e-tooltip__icon",
1071
1079
  onClick: g[0] || (g[0] = (h) => c.value = !c.value)
1072
1080
  })
1073
1081
  ])) : Yt("", !0),
1074
- Z("div", Me, [
1075
- At(m.$slots, "tooltip-content", {}, () => [
1076
- zt(Ct(t.content), 1)
1082
+ tt("div", Ve, [
1083
+ Rt(m.$slots, "tooltip-content", {}, () => [
1084
+ Xt(Ot(t.content), 1)
1077
1085
  ], !0)
1078
1086
  ]),
1079
- Z("div", {
1087
+ tt("div", {
1080
1088
  ref_key: "arrowRef",
1081
1089
  ref: l,
1082
- class: Rt(["rds-e-tooltip__tooltip-arrow", a.value])
1090
+ class: Ct(["rds-e-tooltip__tooltip-arrow", a.value])
1083
1091
  }, null, 2)
1084
1092
  ], 2)
1085
1093
  ]));
1086
1094
  }
1087
- }), je = /* @__PURE__ */ Kt(Ve, [["__scopeId", "data-v-b36c3878"]]);
1095
+ }), Ie = /* @__PURE__ */ qt(Be, [["__scopeId", "data-v-b36c3878"]]);
1088
1096
  export {
1089
- je as default
1097
+ Ie as default
1090
1098
  };