@useinsider/ab-components 0.0.100 → 0.0.101

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.
@@ -349,9 +349,9 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
349
349
  const { value: m } = p.target, V = p.target, { selectionStart: $ } = V;
350
350
  if ($ === null)
351
351
  return;
352
- const A = $ - 1, E = y(), N = [...m.matchAll(E)].map((oe) => oe.index), K = m.split("");
352
+ const A = $ - 1, E = w(), N = [...m.matchAll(E)].map((oe) => oe.index), K = m.split("");
353
353
  N.length > 1 && A >= 0 && (K[A] = ""), p.target.value = K.join(""), N.length > 1 && A >= 0 && V.setSelectionRange(A, A);
354
- }, y = () => {
354
+ }, w = () => {
355
355
  let p = "";
356
356
  return t.allowDecimal && (p += "."), t.allowComma && (p += ","), new RegExp(`[${p}]`, "g");
357
357
  }, x = () => {
@@ -359,7 +359,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
359
359
  return t.allowDecimal && (p += "\\."), t.allowComma && (p += ","), new RegExp(`[^${p}]+`, "g");
360
360
  }, b = (p) => {
361
361
  n("keyup", p);
362
- }, w = (p) => {
362
+ }, y = (p) => {
363
363
  p.key === "Enter" && n("keypress", p), c.value && h(p.key) && p.preventDefault();
364
364
  }, R = (p) => {
365
365
  n("focus", p);
@@ -406,7 +406,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
406
406
  const m = p.target, V = m.selectionStart, $ = m.selectionEnd;
407
407
  if (V === null || $ === null)
408
408
  return;
409
- const { value: A } = m, E = A.includes(".") || A.includes(","), N = ((Q = p.clipboardData) == null ? void 0 : Q.getData("text/plain")) || "", K = y(), oe = x();
409
+ const { value: A } = m, E = A.includes(".") || A.includes(","), N = ((Q = p.clipboardData) == null ? void 0 : Q.getData("text/plain")) || "", K = w(), oe = x();
410
410
  let te = N.replace(oe, "");
411
411
  const Ze = [...te.matchAll(K)], de = [];
412
412
  Ze.forEach((ne) => {
@@ -484,7 +484,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
484
484
  onClick: F,
485
485
  onFocus: R,
486
486
  onInput: G,
487
- onKeypress: w,
487
+ onKeypress: y,
488
488
  onKeyup: b,
489
489
  onPaste: U
490
490
  }, null, 40, no),
@@ -603,7 +603,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
603
603
  for (let E = A; E < m.length; E += $)
604
604
  V.push(m.slice(E, E + $));
605
605
  return V;
606
- }), y = C(() => {
606
+ }), w = C(() => {
607
607
  const m = i.value, V = 1 - Math.abs(m * 6 % 2 - 1);
608
608
  let $ = 0, A = 0, E = 0;
609
609
  return m < 1 / 6 ? ($ = 1, A = V) : m < 2 / 6 ? ($ = V, A = 1) : m < 3 / 6 ? (A = 1, E = V) : m < 4 / 6 ? (A = V, E = 1) : m < 5 / 6 ? ($ = V, E = 1) : ($ = 1, E = V), `rgb(${Math.round($ * 255)}, ${Math.round(A * 255)}, ${Math.round(E * 255)})`;
@@ -616,7 +616,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
616
616
  return m ? l.value < 1 ? `rgba(${m[0]}, ${m[1]}, ${m[2]}, ${l.value})` : `rgb(${m[0]}, ${m[1]}, ${m[2]})` : x.value;
617
617
  });
618
618
  le([i, r, a, l], () => {
619
- w(), d.value || n("color-change", b.value);
619
+ y(), d.value || n("color-change", b.value);
620
620
  }), le(
621
621
  () => t.color,
622
622
  (m) => {
@@ -626,7 +626,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
626
626
  },
627
627
  { immediate: !0 }
628
628
  );
629
- function w() {
629
+ function y() {
630
630
  if (l.value === 0) {
631
631
  s.value = "";
632
632
  return;
@@ -697,7 +697,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
697
697
  }
698
698
  function U() {
699
699
  const m = t.showOpacityInHex ? 8 : 6;
700
- s.value.length !== m && w();
700
+ s.value.length !== m && y();
701
701
  }
702
702
  function T(m) {
703
703
  const V = m.startsWith("#") ? m.slice(1) : m, $ = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(V), A = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(V), E = A || $;
@@ -708,7 +708,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
708
708
  let ze = 0;
709
709
  Pe !== 0 && ($e === ne ? ze = ((ve - Ie) / Pe + (ve < Ie ? 6 : 0)) / 6 : $e === ve ? ze = ((Ie - ne) / Pe + 2) / 6 : ze = ((ne - ve) / Pe + 4) / 6);
710
710
  const et = $e === 0 ? 0 : Pe / $e, Ne = $e;
711
- i.value = ze, r.value = et, a.value = Ne, l.value = Je, w();
711
+ i.value = ze, r.value = et, a.value = Ne, l.value = Je, y();
712
712
  return;
713
713
  }
714
714
  return;
@@ -761,7 +761,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
761
761
  class: "color-picker__color-canvas",
762
762
  style: se({
763
763
  background: `linear-gradient(to bottom, transparent, black),
764
- linear-gradient(to right, white, ${y.value})`
764
+ linear-gradient(to right, white, ${w.value})`
765
765
  }),
766
766
  onMousedown: R
767
767
  }, [
@@ -954,13 +954,13 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
954
954
  shouldOpenUp: p,
955
955
  height: n.menuHeight
956
956
  };
957
- }, y = () => {
957
+ }, w = () => {
958
958
  M(), l.value = !l.value;
959
959
  }, x = () => {
960
960
  d.value = null, c.value = "", k.splice(0, k.length, ...g);
961
961
  }, b = () => {
962
962
  l.value = !1, x();
963
- }, w = (T) => {
963
+ }, y = (T) => {
964
964
  s.value = T, i("select-item", T), i("update:modelValue", T.value), b();
965
965
  }, R = () => {
966
966
  const T = c.value.trim(), H = n.validateAddItem(T, g);
@@ -1023,7 +1023,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
1023
1023
  [u(re)["dropdown__valueContent--open"]]: l.value
1024
1024
  }
1025
1025
  ]),
1026
- onClick: y
1026
+ onClick: w
1027
1027
  }, [
1028
1028
  S("span", {
1029
1029
  class: v(u(re).dropdown__value)
@@ -1099,7 +1099,7 @@ const Sn = "_button__size_default_aw3lw_1", In = "_button__size_small_aw3lw_8",
1099
1099
  [u(re)["menu__item--active"]]: s.value && q.value === s.value.value
1100
1100
  }
1101
1101
  ]),
1102
- onClick: (ie) => w(q)
1102
+ onClick: (ie) => y(q)
1103
1103
  }, D(q.text), 11, qo))), 128))
1104
1104
  ], 2)
1105
1105
  ], 6)), [
@@ -1529,12 +1529,12 @@ const da = async (e, o, t) => {
1529
1529
  x: d,
1530
1530
  y: h
1531
1531
  } = Gt(c, n, s), k = n, g = {}, M = 0;
1532
- for (let y = 0; y < l.length; y++) {
1532
+ for (let w = 0; w < l.length; w++) {
1533
1533
  const {
1534
1534
  name: x,
1535
1535
  fn: b
1536
- } = l[y], {
1537
- x: w,
1536
+ } = l[w], {
1537
+ x: y,
1538
1538
  y: R,
1539
1539
  data: I,
1540
1540
  reset: F
@@ -1552,7 +1552,7 @@ const da = async (e, o, t) => {
1552
1552
  floating: o
1553
1553
  }
1554
1554
  });
1555
- d = w ?? d, h = R ?? h, g = {
1555
+ d = y ?? d, h = R ?? h, g = {
1556
1556
  ...g,
1557
1557
  [x]: {
1558
1558
  ...g[x],
@@ -1565,7 +1565,7 @@ const da = async (e, o, t) => {
1565
1565
  }) : F.rects), {
1566
1566
  x: d,
1567
1567
  y: h
1568
- } = Gt(c, k, s)), y = -1);
1568
+ } = Gt(c, k, s)), w = -1);
1569
1569
  }
1570
1570
  return {
1571
1571
  x: d,
@@ -1596,7 +1596,7 @@ async function zt(e, o) {
1596
1596
  boundary: c,
1597
1597
  rootBoundary: d,
1598
1598
  strategy: s
1599
- })), w = h === "floating" ? {
1599
+ })), y = h === "floating" ? {
1600
1600
  x: n,
1601
1601
  y: i,
1602
1602
  width: a.floating.width,
@@ -1609,10 +1609,10 @@ async function zt(e, o) {
1609
1609
  y: 1
1610
1610
  }, F = gt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
1611
1611
  elements: l,
1612
- rect: w,
1612
+ rect: y,
1613
1613
  offsetParent: R,
1614
1614
  strategy: s
1615
- }) : w);
1615
+ }) : y);
1616
1616
  return {
1617
1617
  top: (b.top - F.top + M.top) / I.y,
1618
1618
  bottom: (F.bottom - b.bottom + M.bottom) / I.y,
@@ -1641,10 +1641,10 @@ const _a = (e) => ({
1641
1641
  const h = un(d), k = {
1642
1642
  x: t,
1643
1643
  y: n
1644
- }, g = Pt(i), M = Ot(g), y = await a.getDimensions(c), x = g === "y", b = x ? "top" : "left", w = x ? "bottom" : "right", R = x ? "clientHeight" : "clientWidth", I = r.reference[M] + r.reference[g] - k[g] - r.floating[M], F = k[g] - r.reference[g], G = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
1644
+ }, g = Pt(i), M = Ot(g), w = await a.getDimensions(c), x = g === "y", b = x ? "top" : "left", y = x ? "bottom" : "right", R = x ? "clientHeight" : "clientWidth", I = r.reference[M] + r.reference[g] - k[g] - r.floating[M], F = k[g] - r.reference[g], G = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
1645
1645
  let z = G ? G[R] : 0;
1646
1646
  (!z || !await (a.isElement == null ? void 0 : a.isElement(G))) && (z = l.floating[R] || r.floating[M]);
1647
- const U = I / 2 - F / 2, T = z / 2 - y[M] / 2 - 1, H = Le(h[b], T), q = Le(h[w], T), X = H, ie = z - y[M] - q, p = z / 2 - y[M] / 2 + U, m = St(X, p, ie), V = !s.arrow && Xe(i) != null && p !== m && r.reference[M] / 2 - (p < X ? H : q) - y[M] / 2 < 0, $ = V ? p < X ? p - X : p - ie : 0;
1647
+ const U = I / 2 - F / 2, T = z / 2 - w[M] / 2 - 1, H = Le(h[b], T), q = Le(h[y], T), X = H, ie = z - w[M] - q, p = z / 2 - w[M] / 2 + U, m = St(X, p, ie), V = !s.arrow && Xe(i) != null && p !== m && r.reference[M] / 2 - (p < X ? H : q) - w[M] / 2 < 0, $ = V ? p < X ? p - X : p - ie : 0;
1648
1648
  return {
1649
1649
  [g]: k[g] + $,
1650
1650
  data: {
@@ -1676,13 +1676,13 @@ const _a = (e) => ({
1676
1676
  fallbackPlacements: k,
1677
1677
  fallbackStrategy: g = "bestFit",
1678
1678
  fallbackAxisSideDirection: M = "none",
1679
- flipAlignment: y = !0,
1679
+ flipAlignment: w = !0,
1680
1680
  ...x
1681
1681
  } = je(e, o);
1682
1682
  if ((t = r.arrow) != null && t.alignmentOffset)
1683
1683
  return {};
1684
- const b = Ee(i), w = Te(l), R = Ee(l) === l, I = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), F = k || (R || !y ? [vt(l)] : la(l)), G = M !== "none";
1685
- !k && G && F.push(...ua(l, y, M, I));
1684
+ const b = Ee(i), y = Te(l), R = Ee(l) === l, I = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), F = k || (R || !w ? [vt(l)] : la(l)), G = M !== "none";
1685
+ !k && G && F.push(...ua(l, w, M, I));
1686
1686
  const z = [l, ...F], U = await zt(o, x), T = [];
1687
1687
  let H = ((n = r.flip) == null ? void 0 : n.overflows) || [];
1688
1688
  if (d && T.push(U[b]), h) {
@@ -1695,9 +1695,9 @@ const _a = (e) => ({
1695
1695
  }], !T.every((p) => p <= 0)) {
1696
1696
  var q, X;
1697
1697
  const p = (((q = r.flip) == null ? void 0 : q.index) || 0) + 1, m = z[p];
1698
- if (m && (!(h === "alignment" ? w !== Te(m) : !1) || // We leave the current main axis only if every placement on that axis
1698
+ if (m && (!(h === "alignment" ? y !== Te(m) : !1) || // We leave the current main axis only if every placement on that axis
1699
1699
  // overflows the main axis.
1700
- H.every((A) => Te(A.placement) === w ? A.overflows[0] > 0 : !0)))
1700
+ H.every((A) => Te(A.placement) === y ? A.overflows[0] > 0 : !0)))
1701
1701
  return {
1702
1702
  data: {
1703
1703
  index: p,
@@ -1715,7 +1715,7 @@ const _a = (e) => ({
1715
1715
  const $ = (ie = H.filter((A) => {
1716
1716
  if (G) {
1717
1717
  const E = Te(A.placement);
1718
- return E === w || // Create a bias to the `y` side axis due to horizontal
1718
+ return E === y || // Create a bias to the `y` side axis due to horizontal
1719
1719
  // reading directions favoring greater width.
1720
1720
  E === "y";
1721
1721
  }
@@ -1804,11 +1804,11 @@ const ha = function(e) {
1804
1804
  fn: (x) => {
1805
1805
  let {
1806
1806
  x: b,
1807
- y: w
1807
+ y
1808
1808
  } = x;
1809
1809
  return {
1810
1810
  x: b,
1811
- y: w
1811
+ y
1812
1812
  };
1813
1813
  }
1814
1814
  },
@@ -1819,23 +1819,23 @@ const ha = function(e) {
1819
1819
  }, d = await zt(o, s), h = Te(Ee(i)), k = rn(h);
1820
1820
  let g = c[k], M = c[h];
1821
1821
  if (r) {
1822
- const x = k === "y" ? "top" : "left", b = k === "y" ? "bottom" : "right", w = g + d[x], R = g - d[b];
1823
- g = St(w, g, R);
1822
+ const x = k === "y" ? "top" : "left", b = k === "y" ? "bottom" : "right", y = g + d[x], R = g - d[b];
1823
+ g = St(y, g, R);
1824
1824
  }
1825
1825
  if (a) {
1826
- const x = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", w = M + d[x], R = M - d[b];
1827
- M = St(w, M, R);
1826
+ const x = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", y = M + d[x], R = M - d[b];
1827
+ M = St(y, M, R);
1828
1828
  }
1829
- const y = l.fn({
1829
+ const w = l.fn({
1830
1830
  ...o,
1831
1831
  [k]: g,
1832
1832
  [h]: M
1833
1833
  });
1834
1834
  return {
1835
- ...y,
1835
+ ...w,
1836
1836
  data: {
1837
- x: y.x - t,
1838
- y: y.y - n,
1837
+ x: w.x - t,
1838
+ y: w.y - n,
1839
1839
  enabled: {
1840
1840
  [k]: r,
1841
1841
  [h]: a
@@ -1861,15 +1861,15 @@ const ha = function(e) {
1861
1861
  ...c
1862
1862
  } = je(e, o), d = await zt(o, c), h = Ee(i), k = Xe(i), g = Te(i) === "y", {
1863
1863
  width: M,
1864
- height: y
1864
+ height: w
1865
1865
  } = r.floating;
1866
1866
  let x, b;
1867
1867
  h === "top" || h === "bottom" ? (x = h, b = k === (await (a.isRTL == null ? void 0 : a.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (b = h, x = k === "end" ? "top" : "bottom");
1868
- const w = y - d.top - d.bottom, R = M - d.left - d.right, I = Le(y - d[x], w), F = Le(M - d[b], R), G = !o.middlewareData.shift;
1868
+ const y = w - d.top - d.bottom, R = M - d.left - d.right, I = Le(w - d[x], y), F = Le(M - d[b], R), G = !o.middlewareData.shift;
1869
1869
  let z = I, U = F;
1870
- if ((t = o.middlewareData.shift) != null && t.enabled.x && (U = R), (n = o.middlewareData.shift) != null && n.enabled.y && (z = w), G && !k) {
1870
+ if ((t = o.middlewareData.shift) != null && t.enabled.x && (U = R), (n = o.middlewareData.shift) != null && n.enabled.y && (z = y), G && !k) {
1871
1871
  const H = _e(d.left, 0), q = _e(d.right, 0), X = _e(d.top, 0), ie = _e(d.bottom, 0);
1872
- g ? U = M - 2 * (H !== 0 || q !== 0 ? H + q : _e(d.left, d.right)) : z = y - 2 * (X !== 0 || ie !== 0 ? X + ie : _e(d.top, d.bottom));
1872
+ g ? U = M - 2 * (H !== 0 || q !== 0 ? H + q : _e(d.left, d.right)) : z = w - 2 * (X !== 0 || ie !== 0 ? X + ie : _e(d.top, d.bottom));
1873
1873
  }
1874
1874
  await s({
1875
1875
  ...o,
@@ -1877,7 +1877,7 @@ const ha = function(e) {
1877
1877
  availableHeight: z
1878
1878
  });
1879
1879
  const T = await a.getDimensions(l.floating);
1880
- return M !== T.width || y !== T.height ? {
1880
+ return M !== T.width || w !== T.height ? {
1881
1881
  reset: {
1882
1882
  rects: !0
1883
1883
  }
@@ -2047,10 +2047,10 @@ function He(e, o, t, n) {
2047
2047
  let s = (i.left + l.x) / a.x, c = (i.top + l.y) / a.y, d = i.width / a.x, h = i.height / a.y;
2048
2048
  if (r) {
2049
2049
  const k = pe(r), g = n && we(n) ? pe(n) : n;
2050
- let M = k, y = $t(M);
2051
- for (; y && n && g !== M; ) {
2052
- const x = Qe(y), b = y.getBoundingClientRect(), w = ye(y), R = b.left + (y.clientLeft + parseFloat(w.paddingLeft)) * x.x, I = b.top + (y.clientTop + parseFloat(w.paddingTop)) * x.y;
2053
- s *= x.x, c *= x.y, d *= x.x, h *= x.y, s += R, c += I, M = pe(y), y = $t(M);
2050
+ let M = k, w = $t(M);
2051
+ for (; w && n && g !== M; ) {
2052
+ const x = Qe(w), b = w.getBoundingClientRect(), y = ye(w), R = b.left + (w.clientLeft + parseFloat(y.paddingLeft)) * x.x, I = b.top + (w.clientTop + parseFloat(y.paddingTop)) * x.y;
2053
+ s *= x.x, c *= x.y, d *= x.x, h *= x.y, s += R, c += I, M = pe(w), w = $t(M);
2054
2054
  }
2055
2055
  }
2056
2056
  return gt({
@@ -2307,8 +2307,8 @@ function Wa(e, o) {
2307
2307
  } = c;
2308
2308
  if (l || o(), !k || !g)
2309
2309
  return;
2310
- const M = dt(h), y = dt(i.clientWidth - (d + k)), x = dt(i.clientHeight - (h + g)), b = dt(d), R = {
2311
- rootMargin: -M + "px " + -y + "px " + -x + "px " + -b + "px",
2310
+ const M = dt(h), w = dt(i.clientWidth - (d + k)), x = dt(i.clientHeight - (h + g)), b = dt(d), R = {
2311
+ rootMargin: -M + "px " + -w + "px " + -x + "px " + -b + "px",
2312
2312
  threshold: _e(0, Le(1, s)) || 1
2313
2313
  };
2314
2314
  let I = !0;
@@ -2353,22 +2353,22 @@ function Mt(e, o, t, n) {
2353
2353
  const h = c && l ? Wa(c, t) : null;
2354
2354
  let k = -1, g = null;
2355
2355
  a && (g = new ResizeObserver((b) => {
2356
- let [w] = b;
2357
- w && w.target === c && g && (g.unobserve(o), cancelAnimationFrame(k), k = requestAnimationFrame(() => {
2356
+ let [y] = b;
2357
+ y && y.target === c && g && (g.unobserve(o), cancelAnimationFrame(k), k = requestAnimationFrame(() => {
2358
2358
  var R;
2359
2359
  (R = g) == null || R.observe(o);
2360
2360
  })), t();
2361
2361
  }), c && !s && g.observe(c), g.observe(o));
2362
- let M, y = s ? He(e) : null;
2362
+ let M, w = s ? He(e) : null;
2363
2363
  s && x();
2364
2364
  function x() {
2365
2365
  const b = He(e);
2366
- y && !hn(y, b) && t(), y = b, M = requestAnimationFrame(x);
2366
+ w && !hn(w, b) && t(), w = b, M = requestAnimationFrame(x);
2367
2367
  }
2368
2368
  return t(), () => {
2369
2369
  var b;
2370
- d.forEach((w) => {
2371
- i && w.removeEventListener("scroll", t), r && w.removeEventListener("resize", t);
2370
+ d.forEach((y) => {
2371
+ i && y.removeEventListener("scroll", t), r && y.removeEventListener("resize", t);
2372
2372
  }), h == null || h(), (b = g) == null || b.disconnect(), g = null, s && cancelAnimationFrame(M);
2373
2373
  };
2374
2374
  }
@@ -2432,7 +2432,7 @@ function Et(e, o, t) {
2432
2432
  }), s = C(() => {
2433
2433
  var z;
2434
2434
  return (z = Ke(t.transform)) != null ? z : !0;
2435
- }), c = C(() => Lt(e.value)), d = C(() => Lt(o.value)), h = O(0), k = O(0), g = O(l.value), M = O(a.value), y = wn({}), x = O(!1), b = C(() => {
2435
+ }), c = C(() => Lt(e.value)), d = C(() => Lt(o.value)), h = O(0), k = O(0), g = O(l.value), M = O(a.value), w = wn({}), x = O(!1), b = C(() => {
2436
2436
  const z = {
2437
2437
  position: g.value,
2438
2438
  left: "0",
@@ -2453,7 +2453,7 @@ function Et(e, o, t) {
2453
2453
  top: T + "px"
2454
2454
  };
2455
2455
  });
2456
- let w;
2456
+ let y;
2457
2457
  function R() {
2458
2458
  if (c.value == null || d.value == null)
2459
2459
  return;
@@ -2463,11 +2463,11 @@ function Et(e, o, t) {
2463
2463
  placement: a.value,
2464
2464
  strategy: l.value
2465
2465
  }).then((U) => {
2466
- h.value = U.x, k.value = U.y, g.value = U.strategy, M.value = U.placement, y.value = U.middlewareData, x.value = z !== !1;
2466
+ h.value = U.x, k.value = U.y, g.value = U.strategy, M.value = U.placement, w.value = U.middlewareData, x.value = z !== !1;
2467
2467
  });
2468
2468
  }
2469
2469
  function I() {
2470
- typeof w == "function" && (w(), w = void 0);
2470
+ typeof y == "function" && (y(), y = void 0);
2471
2471
  }
2472
2472
  function F() {
2473
2473
  if (I(), n === void 0) {
@@ -2475,7 +2475,7 @@ function Et(e, o, t) {
2475
2475
  return;
2476
2476
  }
2477
2477
  if (c.value != null && d.value != null) {
2478
- w = n(c.value, d.value, R);
2478
+ y = n(c.value, d.value, R);
2479
2479
  return;
2480
2480
  }
2481
2481
  }
@@ -2493,7 +2493,7 @@ function Et(e, o, t) {
2493
2493
  y: We(k),
2494
2494
  strategy: We(g),
2495
2495
  placement: We(M),
2496
- middlewareData: We(y),
2496
+ middlewareData: We(w),
2497
2497
  isPositioned: We(x),
2498
2498
  floatingStyles: b,
2499
2499
  update: R
@@ -2581,13 +2581,13 @@ const Ga = ["data-testid"], ja = {
2581
2581
  const t = e, n = o, i = O(null), r = O(null), a = O(null), l = O(""), s = O(""), c = /* @__PURE__ */ new Map(), d = `in-cascading-menu-search-${Math.random().toString(36).slice(2, 9)}`, h = C(() => t.searchInputId ?? d), k = C(() => `${h.value}-child`), g = C(() => t.items.flatMap((B) => "kind" in B && B.kind === "group" ? [
2582
2582
  { type: "group-header", label: B.label },
2583
2583
  ...B.items.map((W) => ({ type: "item", item: W }))
2584
- ] : [{ type: "item", item: B }])), M = C(() => g.value.filter((B) => B.type === "item").map((B) => B.item)), y = C(() => t.searchable), x = C(() => y.value && s.value.trim().length > 0), b = C(() => {
2584
+ ] : [{ type: "item", item: B }])), M = C(() => g.value.filter((B) => B.type === "item").map((B) => B.item)), w = C(() => t.searchable), x = C(() => w.value && s.value.trim().length > 0), b = C(() => {
2585
2585
  const B = {
2586
2586
  width: `${t.width}px`,
2587
2587
  maxWidth: `${t.width}px`
2588
2588
  };
2589
2589
  return t.menuMaxHeight && (B.maxHeight = `${t.menuMaxHeight}px`), B;
2590
- }), w = C(() => ({ width: `${t.listWidth}px` })), R = C(() => a.value ? M.value.find((B) => B.id === a.value) ?? null : null), I = C(() => {
2590
+ }), y = C(() => ({ width: `${t.listWidth}px` })), R = C(() => a.value ? M.value.find((B) => B.id === a.value) ?? null : null), I = C(() => {
2591
2591
  var B;
2592
2592
  return ((B = R.value) == null ? void 0 : B.subList) ?? null;
2593
2593
  }), F = C(() => a.value ? c.get(a.value) ?? null : null), G = C(() => t.open && !x.value && I.value !== null), z = C(() => t.anchor), { floatingStyles: U } = Et(z, i, {
@@ -2780,7 +2780,7 @@ const Ga = ["data-testid"], ja = {
2780
2780
  class: "in-cascading-list",
2781
2781
  role: "dialog",
2782
2782
  "data-testid": B.listTestId ?? I.value.testId,
2783
- style: se([u(ie), w.value, B.listStyle])
2783
+ style: se([u(ie), y.value, B.listStyle])
2784
2784
  }, [
2785
2785
  I.value.searchable ? (_(), f("div", _l, [
2786
2786
  J(it, {
@@ -2856,12 +2856,12 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
2856
2856
  emits: ["update:modelValue", "escape", "clear"],
2857
2857
  setup(e, { expose: o, emit: t }) {
2858
2858
  const n = e, i = t, r = gn("search"), a = C(() => n.id || r), l = C(() => n.name || a.value), s = O(null), c = C(() => n.modelValue.length > 0), d = C(() => n.clearable && c.value ? $l : "line-search");
2859
- function h(y) {
2860
- i("update:modelValue", String(y));
2859
+ function h(w) {
2860
+ i("update:modelValue", String(w));
2861
2861
  }
2862
- function k(y) {
2863
- if (y.key === "Escape") {
2864
- if (y.stopPropagation(), n.modelValue) {
2862
+ function k(w) {
2863
+ if (w.key === "Escape") {
2864
+ if (w.stopPropagation(), n.modelValue) {
2865
2865
  i("update:modelValue", ""), i("clear");
2866
2866
  return;
2867
2867
  }
@@ -2873,11 +2873,11 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
2873
2873
  }
2874
2874
  function M() {
2875
2875
  var x, b;
2876
- const y = (b = (x = s.value) == null ? void 0 : x.$el) == null ? void 0 : b.querySelector("input");
2877
- y == null || y.focus();
2876
+ const w = (b = (x = s.value) == null ? void 0 : x.$el) == null ? void 0 : b.querySelector("input");
2877
+ w == null || w.focus();
2878
2878
  }
2879
- return o({ focus: M }), (y, x) => (_(), f("div", {
2880
- class: v([u(tn).root, y.size === "medium" && u(tn).sizeMedium]),
2879
+ return o({ focus: M }), (w, x) => (_(), f("div", {
2880
+ class: v([u(tn).root, w.size === "medium" && u(tn).sizeMedium]),
2881
2881
  onKeydown: k
2882
2882
  }, [
2883
2883
  J(it, {
@@ -2887,9 +2887,9 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
2887
2887
  "right-icon-status": "",
2888
2888
  "helper-message-status": !1,
2889
2889
  "label-status": !1,
2890
- "model-value": y.modelValue,
2890
+ "model-value": w.modelValue,
2891
2891
  name: l.value,
2892
- "placeholder-text": y.placeholder,
2892
+ "placeholder-text": w.placeholder,
2893
2893
  "right-icon-name": d.value,
2894
2894
  onRightIconClick: g,
2895
2895
  "onUpdate:modelValue": h
@@ -3050,7 +3050,8 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3050
3050
  position: { default: "bottom" },
3051
3051
  width: {},
3052
3052
  positionStrategy: { default: "fixed" },
3053
- closeOnClickOutside: { type: Boolean, default: !1 }
3053
+ closeOnClickOutside: { type: Boolean, default: !1 },
3054
+ elevated: { type: Boolean, default: !1 }
3054
3055
  },
3055
3056
  emits: ["update:modelValue", "open", "close"],
3056
3057
  setup(e, { expose: o, emit: t }) {
@@ -3058,27 +3059,27 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3058
3059
  function h() {
3059
3060
  if (!a.value || !l.value)
3060
3061
  return;
3061
- const y = a.value.getBoundingClientRect(), x = l.value.getBoundingClientRect();
3062
+ const w = a.value.getBoundingClientRect(), x = l.value.getBoundingClientRect();
3062
3063
  if (x.width === 0 || x.height === 0) {
3063
3064
  s.value = !1, requestAnimationFrame(() => requestAnimationFrame(h));
3064
3065
  return;
3065
3066
  }
3066
3067
  const b = 4;
3067
- let w, R;
3068
+ let y, R;
3068
3069
  switch (i.align) {
3069
3070
  case "left-side":
3070
- w = y.bottom - x.height, R = y.left - x.width - b;
3071
+ y = w.bottom - x.height, R = w.left - x.width - b;
3071
3072
  break;
3072
3073
  case "right-side":
3073
- w = y.bottom - x.height, R = y.right + b;
3074
+ y = w.bottom - x.height, R = w.right + b;
3074
3075
  break;
3075
3076
  default:
3076
- if (w = i.position === "top" ? y.top - x.height - b : y.bottom + b, i.align === "right")
3077
- R = y.right - x.width;
3077
+ if (y = i.position === "top" ? w.top - x.height - b : w.bottom + b, i.align === "right")
3078
+ R = w.right - x.width;
3078
3079
  else if (i.align === "center")
3079
- R = y.left + (y.width - x.width) / 2;
3080
+ R = w.left + (w.width - x.width) / 2;
3080
3081
  else {
3081
- const { left: F } = y;
3082
+ const { left: F } = w;
3082
3083
  R = F;
3083
3084
  }
3084
3085
  }
@@ -3087,12 +3088,12 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3087
3088
  zIndex: "10000",
3088
3089
  position: i.positionStrategy
3089
3090
  };
3090
- i.positionStrategy === "fixed" ? (I.top = `${w}px`, I.left = `${R}px`) : (I.width = "100%", I.top = "calc(100% + 4px)"), i.width && (I.width = `${i.width}px`, I.minWidth = `${i.width}px`), c.value = I;
3091
+ i.positionStrategy === "fixed" ? (I.top = `${y}px`, I.left = `${R}px`) : (I.width = "100%", I.top = "calc(100% + 4px)"), i.width && (I.width = `${i.width}px`, I.minWidth = `${i.width}px`), c.value = I;
3091
3092
  }
3092
3093
  le(
3093
3094
  () => i.modelValue,
3094
- (y) => {
3095
- d.value = y, y && lt(h);
3095
+ (w) => {
3096
+ d.value = w, w && lt(h);
3096
3097
  }
3097
3098
  );
3098
3099
  const k = () => {
@@ -3108,12 +3109,12 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3108
3109
  isOpen: d,
3109
3110
  toggle: k,
3110
3111
  close: g
3111
- }), (y, x) => (_(), f("div", {
3112
+ }), (w, x) => (_(), f("div", {
3112
3113
  ref_key: "popoverRef",
3113
3114
  ref: a,
3114
3115
  class: "popover"
3115
3116
  }, [
3116
- ce(y.$slots, "trigger", {
3117
+ ce(w.$slots, "trigger", {
3117
3118
  isOpen: d.value,
3118
3119
  toggle: k
3119
3120
  }, void 0, !0),
@@ -3121,14 +3122,17 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3121
3122
  key: 0,
3122
3123
  ref_key: "contentRef",
3123
3124
  ref: l,
3124
- class: v(["popover__content", { "popover__content--visible": s.value }]),
3125
+ class: v(["popover__content", {
3126
+ "popover__content--visible": s.value,
3127
+ "popover__content--elevated": w.elevated
3128
+ }]),
3125
3129
  style: se(c.value),
3126
3130
  onClick: x[0] || (x[0] = rt(() => {
3127
3131
  }, ["prevent"]))
3128
3132
  }, [
3129
3133
  J(u(Zo), null, {
3130
3134
  default: be(() => [
3131
- ce(y.$slots, "default", {}, void 0, !0)
3135
+ ce(w.$slots, "default", {}, void 0, !0)
3132
3136
  ]),
3133
3137
  _: 3
3134
3138
  })
@@ -3137,7 +3141,7 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3137
3141
  ]) : L("", !0)
3138
3142
  ], 512));
3139
3143
  }
3140
- }), Xl = /* @__PURE__ */ me(jl, [["__scopeId", "data-v-10f562c7"]]), Zl = {
3144
+ }), Xl = /* @__PURE__ */ me(jl, [["__scopeId", "data-v-180814ad"]]), Zl = {
3141
3145
  key: 0,
3142
3146
  class: "in-dropdown-menu__search-container"
3143
3147
  }, Jl = { class: "in-dropdown-menu__item-container" }, ei = ["onClick"], ti = /* @__PURE__ */ Y({
@@ -3158,7 +3162,7 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3158
3162
  },
3159
3163
  emits: ["update:modelValue", "add-error", "item-added", "select-item"],
3160
3164
  setup(e, { expose: o, emit: t }) {
3161
- An((w) => ({
3165
+ An((y) => ({
3162
3166
  "28296e80": `${n.menuHeight}px`
3163
3167
  }));
3164
3168
  const n = e, i = t, r = O(!1), a = O(null), l = O(""), s = O(null), c = O([...n.items]), d = O([...n.items]), h = () => {
@@ -3168,27 +3172,27 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3168
3172
  };
3169
3173
  le(
3170
3174
  () => r.value,
3171
- (w) => {
3172
- w || k();
3175
+ (y) => {
3176
+ y || k();
3173
3177
  }
3174
3178
  );
3175
3179
  const g = () => {
3176
3180
  r.value = !1, k();
3177
- }, M = (w) => {
3178
- a.value = w, i("select-item", w), i("update:modelValue", w.value), g();
3179
- }, y = () => {
3180
- const w = l.value.trim(), R = n.validateAddItem(w, d.value);
3181
+ }, M = (y) => {
3182
+ a.value = y, i("select-item", y), i("update:modelValue", y.value), g();
3183
+ }, w = () => {
3184
+ const y = l.value.trim(), R = n.validateAddItem(y, d.value);
3181
3185
  if (R) {
3182
3186
  s.value = R, i("add-error", R);
3183
3187
  return;
3184
3188
  }
3185
3189
  const I = {
3186
- text: w,
3187
- value: w
3190
+ text: y,
3191
+ value: y
3188
3192
  };
3189
3193
  d.value.push(I), k(), i("item-added", I);
3190
- }, x = (w) => {
3191
- l.value = String(w);
3194
+ }, x = (y) => {
3195
+ l.value = String(y);
3192
3196
  const R = mt(d.value, "text", l.value);
3193
3197
  c.value = R;
3194
3198
  }, b = () => {
@@ -3196,22 +3200,22 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3196
3200
  };
3197
3201
  return Ge(() => {
3198
3202
  if (n.modelValue) {
3199
- const w = d.value.find((R) => R.value === n.modelValue);
3200
- w && (a.value = w);
3203
+ const y = d.value.find((R) => R.value === n.modelValue);
3204
+ y && (a.value = y);
3201
3205
  }
3202
3206
  }), le(
3203
3207
  () => n.modelValue,
3204
- (w) => {
3208
+ (y) => {
3205
3209
  var R;
3206
- if (((R = a.value) == null ? void 0 : R.value) !== w) {
3207
- const I = d.value.find((F) => F.value === w);
3210
+ if (((R = a.value) == null ? void 0 : R.value) !== y) {
3211
+ const I = d.value.find((F) => F.value === y);
3208
3212
  I ? a.value = I : a.value = null;
3209
3213
  }
3210
3214
  }
3211
3215
  ), le(
3212
3216
  () => n.items,
3213
- (w) => {
3214
- d.value = [...w], c.value = [...w];
3217
+ (y) => {
3218
+ d.value = [...y], c.value = [...y];
3215
3219
  },
3216
3220
  { deep: !0 }
3217
3221
  ), o({
@@ -3219,7 +3223,7 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3219
3223
  toggleMenu: h,
3220
3224
  closeMenu: g,
3221
3225
  selectedItem: a
3222
- }), (w, R) => (_(), ee(u(Xl), {
3226
+ }), (y, R) => (_(), ee(u(Xl), {
3223
3227
  class: v(["in-dropdown-menu", {
3224
3228
  "in-dropdown-menu--open": r.value,
3225
3229
  "in-dropdown-menu--rotate-arrow": n.rotateArrow,
@@ -3231,7 +3235,7 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3231
3235
  "onUpdate:modelValue": R[2] || (R[2] = (I) => r.value = I)
3232
3236
  }, {
3233
3237
  trigger: be(({ isOpen: I }) => [
3234
- ce(w.$slots, "trigger", {
3238
+ ce(y.$slots, "trigger", {
3235
3239
  isOpen: I,
3236
3240
  toggle: h
3237
3241
  }, void 0, !0)
@@ -3242,7 +3246,7 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3242
3246
  onClick: R[1] || (R[1] = rt(() => {
3243
3247
  }, ["prevent"]))
3244
3248
  }, [
3245
- w.searchable ? (_(), f("div", Zl, [
3249
+ y.searchable ? (_(), f("div", Zl, [
3246
3250
  J(it, {
3247
3251
  id: "dropdown-search-input",
3248
3252
  "right-icon-status": "",
@@ -3250,7 +3254,7 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3250
3254
  "right-icon-name": "line-search",
3251
3255
  "helper-message-status": !1,
3252
3256
  "label-status": !1,
3253
- "placeholder-text": w.searchPlaceholder,
3257
+ "placeholder-text": y.searchPlaceholder,
3254
3258
  "state-message": s.value || "",
3255
3259
  states: s.value ? "error" : "default",
3256
3260
  modelValue: l.value,
@@ -3258,14 +3262,14 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3258
3262
  onFocus: b,
3259
3263
  onInput: x
3260
3264
  }, null, 8, ["placeholder-text", "state-message", "states", "modelValue"]),
3261
- w.addable ? (_(), ee(u(ft), {
3265
+ y.addable ? (_(), ee(u(ft), {
3262
3266
  key: 0,
3263
3267
  color: "primary",
3264
3268
  "left-icon-name": "line-plus-netural",
3265
3269
  size: "small",
3266
3270
  variant: "text",
3267
- label: w.addButtonText,
3268
- onClick: y
3271
+ label: y.addButtonText,
3272
+ onClick: w
3269
3273
  }, null, 8, ["label"])) : L("", !0)
3270
3274
  ])) : L("", !0),
3271
3275
  S("ul", Jl, [
@@ -3275,7 +3279,7 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3275
3279
  key: `${I.value}-${F}`,
3276
3280
  class: "in-dropdown-menu__item"
3277
3281
  }, [
3278
- w.$slots.item ? (_(), f("div", {
3282
+ y.$slots.item ? (_(), f("div", {
3279
3283
  key: 0,
3280
3284
  class: v(["in-dropdown-menu__item-content", [
3281
3285
  {
@@ -3284,7 +3288,7 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3284
3288
  ]]),
3285
3289
  onClick: (U) => M(I)
3286
3290
  }, [
3287
- ce(w.$slots, "item", {
3291
+ ce(y.$slots, "item", {
3288
3292
  isSelected: ((G = a.value) == null ? void 0 : G.value) === I.value,
3289
3293
  item: I
3290
3294
  }, void 0, !0)
@@ -3391,20 +3395,20 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3391
3395
  }, h = (b) => {
3392
3396
  x(), r("click", b);
3393
3397
  }, k = (b) => {
3394
- const w = b.target;
3395
- x(), r("update:modelValue", w.value);
3398
+ const y = b.target;
3399
+ x(), r("update:modelValue", y.value);
3396
3400
  }, g = (b) => {
3397
3401
  x(), r("cut", b);
3398
3402
  }, M = (b) => {
3399
3403
  x(), r("paste", b);
3400
- }, y = (b) => {
3404
+ }, w = (b) => {
3401
3405
  x(), r("blur", b);
3402
3406
  }, x = () => {
3403
3407
  n.preventXss && a.value && (a.value.value = l(a.value.value));
3404
3408
  };
3405
3409
  return o({
3406
3410
  textareaRef: a
3407
- }), (b, w) => (_(), f("fieldset", {
3411
+ }), (b, y) => (_(), f("fieldset", {
3408
3412
  class: v([
3409
3413
  u(ke)["in-form-item"],
3410
3414
  u(ke)["in-textarea-wrapper"],
@@ -3436,7 +3440,7 @@ const Sl = "_root_avx14_36", Il = "_sizeMedium_avx14_44", tn = {
3436
3440
  rows: b.rowLength,
3437
3441
  style: se(i.value),
3438
3442
  value: s.value,
3439
- onBlur: y,
3443
+ onBlur: w,
3440
3444
  onClick: h,
3441
3445
  onCut: g,
3442
3446
  onInput: k,
@@ -4228,7 +4232,7 @@ const ys = "_bubble_6zub9_1", xs = "_trigger_6zub9_43", ks = "_trigger__icon_6zu
4228
4232
  Vt(),
4229
4233
  Ya({ element: s, padding: Bt })
4230
4234
  ]
4231
- }), y = () => {
4235
+ }), w = () => {
4232
4236
  t.value && (clearTimeout(t.value), t.value = null), n.value && (clearTimeout(n.value), n.value = null), window.wasTooltipShown ? c.value = !0 : t.value = setTimeout(() => {
4233
4237
  if (!i.value) {
4234
4238
  t.value = null;
@@ -4243,8 +4247,8 @@ const ys = "_bubble_6zub9_1", xs = "_trigger_6zub9_43", ks = "_trigger__icon_6zu
4243
4247
  i.value && (c.value = !1), n.value = null;
4244
4248
  }, T) : c.value = !1;
4245
4249
  }, b = () => {
4246
- y();
4247
- }, w = () => {
4250
+ w();
4251
+ }, y = () => {
4248
4252
  x();
4249
4253
  }, R = () => {
4250
4254
  i.value && l.value && a.value && k();
@@ -4298,7 +4302,7 @@ const ys = "_bubble_6zub9_1", xs = "_trigger_6zub9_43", ks = "_trigger__icon_6zu
4298
4302
  ref: l,
4299
4303
  class: v(u(nt).trigger),
4300
4304
  onMouseenter: b,
4301
- onMouseleave: w
4305
+ onMouseleave: y
4302
4306
  }, [
4303
4307
  T.iconName ? (_(), ee(u(j), {
4304
4308
  key: 0,
@@ -4313,7 +4317,7 @@ const ys = "_bubble_6zub9_1", xs = "_trigger_6zub9_43", ks = "_trigger__icon_6zu
4313
4317
  class: v(["qa-tooltip", u(nt).bubble]),
4314
4318
  style: se(F.value),
4315
4319
  onMouseenter: b,
4316
- onMouseleave: w
4320
+ onMouseleave: y
4317
4321
  }, [
4318
4322
  S("div", {
4319
4323
  class: v(u(nt).bubble__content)