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