@udixio/ui-react 2.8.1 → 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as m, jsxs as Y, Fragment as me } from "react/jsx-runtime";
2
2
  import { clsx as Ve } from "clsx";
3
3
  import { extendTailwindMerge as ut } from "tailwind-merge";
4
- import Z, { useMemo as Me, useState as R, useEffect as $, useRef as W, useLayoutEffect as Ye, isValidElement as pe, cloneElement as xe, Children as dt, Fragment as ft } from "react";
4
+ import Z, { useMemo as $e, useState as $, useEffect as R, useRef as W, useLayoutEffect as Ye, isValidElement as pe, cloneElement as xe, Children as dt, Fragment as ft } from "react";
5
5
  import { motion as q, AnimatePresence as se, useScroll as mt, useMotionValueEvent as De, animate as ht } from "motion/react";
6
6
  import { animate as pt } from "motion";
7
7
  import { createPortal as Ue } from "react-dom";
@@ -38,7 +38,7 @@ const je = ut({
38
38
  function Lt(e) {
39
39
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
40
40
  }
41
- const $e = (e) => {
41
+ const Re = (e) => {
42
42
  const t = {};
43
43
  e.classNameList.forEach((l) => {
44
44
  var r;
@@ -58,12 +58,12 @@ const $e = (e) => {
58
58
  let [r, s] = l;
59
59
  s = s.reverse(), r == e.default && s.unshift("relative"), s.unshift(Lt(r)), n[r] = bt(...s);
60
60
  }), n;
61
- }, Q = (e, t) => (n) => $e({
61
+ }, Q = (e, t) => (n) => Re({
62
62
  classNameList: [n.className, t],
63
63
  default: e,
64
64
  states: n
65
- }), J = (e, t) => (n) => Me(
66
- () => $e({
65
+ }), J = (e, t) => (n) => $e(
66
+ () => Re({
67
67
  classNameList: [n.className, t],
68
68
  default: e,
69
69
  states: n
@@ -71,8 +71,8 @@ const $e = (e) => {
71
71
  [n]
72
72
  );
73
73
  function Mn(e, t, n) {
74
- return Me(
75
- () => $e({
74
+ return $e(
75
+ () => Re({
76
76
  classNameList: [n == null ? void 0 : n.className, t],
77
77
  default: e,
78
78
  states: n
@@ -865,12 +865,12 @@ const qe = ({
865
865
  className: l,
866
866
  ...r
867
867
  }) => {
868
- const [s, c] = R(t), [a] = R(1.5);
869
- $(() => {
868
+ const [s, c] = $(t), [a] = $(1.5);
869
+ R(() => {
870
870
  t > 100 && (t = 100), t < 0 && (t = 0), c(t);
871
871
  }, [t]);
872
- const [u, o] = R(!0), p = () => u ? a : a * 0.5;
873
- $(() => {
872
+ const [u, o] = $(!0), p = () => u ? a : a * 0.5;
873
+ R(() => {
874
874
  if ((e === "circular-indeterminate" || e === "linear-indeterminate") && s !== 100) {
875
875
  const d = setInterval(() => {
876
876
  c(u ? 10 : 90), o(!u);
@@ -878,8 +878,8 @@ const qe = ({
878
878
  return () => clearInterval(d);
879
879
  }
880
880
  }, [e, u, s]);
881
- const [v, f] = R(!1);
882
- $(() => {
881
+ const [v, f] = $(!1);
882
+ R(() => {
883
883
  if (s >= 100) {
884
884
  const d = setTimeout(() => {
885
885
  f(!1);
@@ -1002,10 +1002,10 @@ const qe = ({
1002
1002
  duration: 0.3
1003
1003
  }
1004
1004
  }
1005
- }, [l, r] = R(!0), [s, c] = R(!1), [a, u] = R({ x: 50, y: 50 });
1006
- $(() => {
1005
+ }, [l, r] = $(!0), [s, c] = $(!1), [a, u] = $({ x: 50, y: 50 });
1006
+ R(() => {
1007
1007
  s && (r(!0), r(!1));
1008
- }, [s]), $(() => {
1008
+ }, [s]), R(() => {
1009
1009
  const d = t == null ? void 0 : t.current;
1010
1010
  if (d)
1011
1011
  return d.addEventListener("mousedown", o), d.addEventListener("mouseup", v), d.addEventListener("mouseleave", p), () => {
@@ -1101,11 +1101,11 @@ const jt = ({
1101
1101
  setScroll: u
1102
1102
  }) => {
1103
1103
  var le, ue;
1104
- const o = W(null), p = W(null), [v, f] = R({
1104
+ const o = W(null), p = W(null), [v, f] = $({
1105
1105
  width: null,
1106
1106
  height: null
1107
1107
  });
1108
- $(() => {
1108
+ R(() => {
1109
1109
  if (!o.current) return;
1110
1110
  const C = new ResizeObserver((N) => {
1111
1111
  for (const D of N)
@@ -1134,8 +1134,8 @@ const jt = ({
1134
1134
  } : null;
1135
1135
  }, { scrollYProgress: b, scrollXProgress: g } = mt({
1136
1136
  container: o
1137
- }), S = W(null);
1138
- S.current || (S.current = Xt(
1137
+ }), I = W(null);
1138
+ I.current || (I.current = Xt(
1139
1139
  c,
1140
1140
  (C, N) => {
1141
1141
  !d.current || !i.current || !o.current || (N === (t === "horizontal" ? "x" : "y") && (u == null || u(C)), l && (t === "horizontal" && N === "x" && l({
@@ -1152,11 +1152,11 @@ const jt = ({
1152
1152
  }
1153
1153
  ));
1154
1154
  const E = (C, N) => {
1155
- S.current && S.current(C, N);
1155
+ I.current && I.current(C, N);
1156
1156
  };
1157
- $(() => {
1157
+ R(() => {
1158
1158
  v.width && E(g.get(), "x"), v.height && E(b.get(), "y");
1159
- }, [v]), $(() => {
1159
+ }, [v]), R(() => {
1160
1160
  const C = o.current, N = p.current;
1161
1161
  if (!C || !N || typeof a != "number") return;
1162
1162
  const D = (F, j, X) => Math.min(X, Math.max(j, F));
@@ -1172,7 +1172,7 @@ const jt = ({
1172
1172
  }), De(b, "change", (C) => {
1173
1173
  E(C, "y");
1174
1174
  });
1175
- const [A, L] = R(!1);
1175
+ const [A, L] = $(!1);
1176
1176
  Ye(() => {
1177
1177
  A || !d.current || !i.current || !l || (l({
1178
1178
  scrollProgress: 0,
@@ -1181,7 +1181,7 @@ const jt = ({
1181
1181
  scrollVisible: t == "vertical" ? d.current.height : d.current.width
1182
1182
  }), L(!0));
1183
1183
  }, [d, i, l]), i.current = h(), d.current = w();
1184
- const [V, H] = R(!1), M = Ut({
1184
+ const [V, H] = $(!1), M = Ut({
1185
1185
  isDragging: V,
1186
1186
  children: e,
1187
1187
  className: r,
@@ -1190,7 +1190,7 @@ const jt = ({
1190
1190
  scrollSize: n,
1191
1191
  draggable: s,
1192
1192
  throttleDuration: c
1193
- }), [x, I] = R(0), [O, G] = R(0), T = (C) => {
1193
+ }), [x, S] = $(0), [O, G] = $(0), te = (C) => {
1194
1194
  if (!s) return;
1195
1195
  const N = o.current;
1196
1196
  if (!N || x == null) return;
@@ -1198,9 +1198,9 @@ const jt = ({
1198
1198
  N.scrollLeft = O - F;
1199
1199
  }, _ = (C) => {
1200
1200
  const N = o.current;
1201
- N && (H(!0), I(C.pageX - N.offsetLeft), G(N.scrollLeft));
1201
+ N && (H(!0), S(C.pageX - N.offsetLeft), G(N.scrollLeft));
1202
1202
  }, ne = (C) => {
1203
- V && (C.preventDefault(), T(C));
1203
+ V && (C.preventDefault(), te(C));
1204
1204
  }, B = () => {
1205
1205
  H(!1);
1206
1206
  }, k = () => {
@@ -1208,9 +1208,9 @@ const jt = ({
1208
1208
  }, U = (C) => {
1209
1209
  C.preventDefault();
1210
1210
  }, K = W(null);
1211
- return $(() => () => {
1211
+ return R(() => () => {
1212
1212
  K.current && clearTimeout(K.current);
1213
- }, []), $(() => {
1213
+ }, []), R(() => {
1214
1214
  const C = o.current;
1215
1215
  if (!C) return;
1216
1216
  const N = (D) => {
@@ -1261,7 +1261,7 @@ const jt = ({
1261
1261
  onMouseLeave: k,
1262
1262
  onDragStart: U,
1263
1263
  onScroll: (C) => {
1264
- V || (I(null), H(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => {
1264
+ V || (S(null), H(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => {
1265
1265
  H(!1);
1266
1266
  }, 1e3));
1267
1267
  },
@@ -1304,7 +1304,7 @@ const jt = ({
1304
1304
  touch: n = !0
1305
1305
  }) => {
1306
1306
  const l = W(null), r = W(0), s = W(0);
1307
- $(() => {
1307
+ R(() => {
1308
1308
  if (!t) return;
1309
1309
  r.current = t.scrollTop, s.current = t.scrollLeft;
1310
1310
  const c = (i) => {
@@ -1341,8 +1341,8 @@ const jt = ({
1341
1341
  if (!d || !l.current) return;
1342
1342
  const h = l.current.x - d.clientX, w = l.current.y - d.clientY, b = i.target, g = a(b);
1343
1343
  if (g && g !== t) {
1344
- const S = g.scrollTop < g.scrollHeight - g.clientHeight, E = g.scrollTop > 0;
1345
- if (w > 0 && S || w < 0 && E) {
1344
+ const I = g.scrollTop < g.scrollHeight - g.clientHeight, E = g.scrollTop > 0;
1345
+ if (w > 0 && I || w < 0 && E) {
1346
1346
  l.current = { x: d.clientX, y: d.clientY };
1347
1347
  return;
1348
1348
  }
@@ -1407,12 +1407,12 @@ const jt = ({
1407
1407
  orientation: t = "vertical",
1408
1408
  throttleDuration: n = 25
1409
1409
  }) => {
1410
- const [l, r] = R(0), [s, c] = R(), a = W(!1), u = W(), o = W(0);
1411
- $(() => {
1410
+ const [l, r] = $(0), [s, c] = $(), a = W(!1), u = W(), o = W(0);
1411
+ R(() => {
1412
1412
  c(document);
1413
1413
  const f = document.documentElement.scrollTop;
1414
1414
  r(f), o.current = f;
1415
- }, []), $(() => {
1415
+ }, []), R(() => {
1416
1416
  const f = () => {
1417
1417
  a.current || r(document.documentElement.scrollTop);
1418
1418
  };
@@ -1421,7 +1421,7 @@ const jt = ({
1421
1421
  };
1422
1422
  }, [s]);
1423
1423
  const p = W(), v = W(null);
1424
- return $(() => {
1424
+ return R(() => {
1425
1425
  const f = l;
1426
1426
  if (v.current && (v.current.stop(), v.current = null), !a.current) {
1427
1427
  p.current = f;
@@ -1463,13 +1463,13 @@ const jt = ({
1463
1463
  stateClassName: n = "state-ripple-group",
1464
1464
  className: l
1465
1465
  }) => {
1466
- const r = W(null), s = W(null), [c, a] = R(!1), u = Kt({
1466
+ const r = W(null), s = W(null), [c, a] = $(!1), u = Kt({
1467
1467
  isClient: c,
1468
1468
  stateClassName: n,
1469
1469
  className: l,
1470
1470
  colorName: t
1471
1471
  });
1472
- return $(() => {
1472
+ return R(() => {
1473
1473
  if (r.current && n !== "state-layer") {
1474
1474
  const o = n.includes("[") ? n.split("[")[1].split("]")[0] : "group", p = r.current.closest(
1475
1475
  `.${o}:not(.${o} .${o})`
@@ -1504,7 +1504,7 @@ const jt = ({
1504
1504
  targetRef: e,
1505
1505
  children: t
1506
1506
  }) => {
1507
- const [n, l] = R(null), r = W(null), s = () => {
1507
+ const [n, l] = $(null), r = W(null), s = () => {
1508
1508
  const c = e.current;
1509
1509
  if (!c) return;
1510
1510
  const a = c.getBoundingClientRect();
@@ -1520,7 +1520,7 @@ const jt = ({
1520
1520
  // personnalise si besoin
1521
1521
  });
1522
1522
  };
1523
- return $(() => {
1523
+ return R(() => {
1524
1524
  const c = e.current;
1525
1525
  if (c)
1526
1526
  return s(), window.addEventListener("scroll", s, !0), window.addEventListener("resize", s), r.current = new ResizeObserver(s), r.current.observe(c), () => {
@@ -1539,15 +1539,15 @@ const Gn = ({
1539
1539
  onLoad: n,
1540
1540
  loadTheme: l = !1
1541
1541
  }) => {
1542
- const [r, s] = R(null);
1543
- $(() => {
1542
+ const [r, s] = $(null);
1543
+ R(() => {
1544
1544
  (async () => {
1545
1545
  const f = await yt(e, l);
1546
1546
  s(f);
1547
1547
  })();
1548
1548
  }, []);
1549
- const [c, a] = R(null), u = W(null), o = W(0), p = W(null);
1550
- $(() => {
1549
+ const [c, a] = $(null), u = W(null), o = W(0), p = W(null);
1550
+ R(() => {
1551
1551
  if (!r) return;
1552
1552
  const f = {
1553
1553
  ...e,
@@ -1578,7 +1578,7 @@ const Gn = ({
1578
1578
  const i = r == null ? void 0 : r.plugins.getPlugin(Xe).getInstance().outputCss;
1579
1579
  a(i), n == null || n(r);
1580
1580
  };
1581
- return $(() => () => {
1581
+ return R(() => () => {
1582
1582
  u.current && (clearTimeout(u.current), u.current = null);
1583
1583
  }, []), c ? /* @__PURE__ */ m("style", { dangerouslySetInnerHTML: { __html: c } }) : null;
1584
1584
  };
@@ -1595,7 +1595,7 @@ function Zt() {
1595
1595
  function Qt() {
1596
1596
  return typeof window > "u" || !("matchMedia" in window) ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1597
1597
  }
1598
- function Re(e) {
1598
+ function Be(e) {
1599
1599
  if (!(e instanceof HTMLElement)) return !1;
1600
1600
  const t = e.classList;
1601
1601
  return Array.from(t).some(
@@ -1607,8 +1607,8 @@ function We(e) {
1607
1607
  const t = e.classList;
1608
1608
  return Array.from(t).some((n) => n.startsWith("anim-"));
1609
1609
  }
1610
- function Ee(e, t) {
1611
- if (!Re(e)) return;
1610
+ function Se(e, t) {
1611
+ if (!Be(e)) return;
1612
1612
  if (e.hasAttribute(`data-${t}-scroll`)) {
1613
1613
  const c = (e.getAttribute(`data-${t}-scroll`) || "").trim().toLowerCase(), a = c === "x" || c === "inline" ? "inline" : c === "y" || c === "block" ? "block" : "auto";
1614
1614
  e.classList.contains(`${t}-timeline`) || e.classList.contains(`${t}-timeline-inline`) || e.classList.contains(`${t}-timeline-block`) || e.classList.contains(`${t}-timeline-x`) || e.classList.contains(`${t}-timeline-y`) || (a === "inline" ? e.classList.add(`${t}-timeline-inline`) : a === "block" ? e.classList.add(`${t}-timeline-block`) : e.classList.add(`${t}-scroll`));
@@ -1620,12 +1620,12 @@ function Ee(e, t) {
1620
1620
  const r = e.hasAttribute(`data-${t}-paused`) || e.classList.contains(`${t}-paused`), s = e.hasAttribute(`data-${t}-run`) || e.classList.contains(`${t}-run`);
1621
1621
  !r && !s && e.setAttribute(`data-${t}-run`, "");
1622
1622
  }
1623
- function Se(e = document, t) {
1623
+ function Ie(e = document, t) {
1624
1624
  return Array.from(
1625
1625
  e.querySelectorAll(
1626
1626
  `[class*="${t}-"][class*="-scroll"]`
1627
1627
  )
1628
- ).filter((l) => Re(l));
1628
+ ).filter((l) => Be(l));
1629
1629
  }
1630
1630
  function Tt(e = document, t) {
1631
1631
  const n = Array.from(
@@ -1649,7 +1649,7 @@ function Tt(e = document, t) {
1649
1649
  const s = r.classList;
1650
1650
  return s.contains(`${t}-in`) || s.contains(`${t}-out`) || Array.from(s).some(
1651
1651
  (u) => u.startsWith(`${t}-`) && !u.includes("scroll") && !l.has(u)
1652
- ) ? !0 : !Re(r);
1652
+ ) ? !0 : !Be(r);
1653
1653
  });
1654
1654
  }
1655
1655
  function zt(e, t) {
@@ -1708,19 +1708,19 @@ function ct(e = {}) {
1708
1708
  (() => {
1709
1709
  f == null && (f = requestAnimationFrame(() => {
1710
1710
  f = null;
1711
- const d = Se(void 0, t);
1712
- for (const h of d) Ee(h, t);
1711
+ const d = Ie(void 0, t);
1712
+ for (const h of d) Se(h, t);
1713
1713
  }));
1714
1714
  })(), v = new MutationObserver((d) => {
1715
1715
  for (const h of d)
1716
1716
  if (h.type === "attributes") {
1717
1717
  const w = h.target;
1718
- w instanceof HTMLElement && (Ee(w, t), We(w) && (r.has(w) || (r.add(w), u.observe(w), Fe(w, t))));
1718
+ w instanceof HTMLElement && (Se(w, t), We(w) && (r.has(w) || (r.add(w), u.observe(w), Fe(w, t))));
1719
1719
  } else if (h.type === "childList" && h.addedNodes && h.addedNodes.length) {
1720
1720
  for (const w of Array.from(h.addedNodes))
1721
1721
  if (w instanceof HTMLElement) {
1722
- const b = Se(w, t);
1723
- for (const g of b) Ee(g, t);
1722
+ const b = Ie(w, t);
1723
+ for (const g of b) Se(g, t);
1724
1724
  o(w);
1725
1725
  }
1726
1726
  }
@@ -1741,7 +1741,7 @@ function ct(e = {}) {
1741
1741
  };
1742
1742
  else {
1743
1743
  let i;
1744
- Se(void 0, t).length > 0 && import("./scrollDriven-AP2yWhzi.js").then((h) => {
1744
+ Ie(void 0, t).length > 0 && import("./scrollDriven-AP2yWhzi.js").then((h) => {
1745
1745
  i = h.initScrollViewFallback({ once: n });
1746
1746
  }), p = () => {
1747
1747
  typeof i == "function" && i();
@@ -1759,7 +1759,7 @@ function tn(e) {
1759
1759
  };
1760
1760
  return e && e in t ? t[e] : e || "filled";
1761
1761
  }
1762
- const ke = ({
1762
+ const Ce = ({
1763
1763
  variant: e = "filled",
1764
1764
  disabled: t = !1,
1765
1765
  icon: n,
@@ -1785,17 +1785,17 @@ const ke = ({
1785
1785
  "Button component requires either a label prop or children content"
1786
1786
  );
1787
1787
  e = tn(e);
1788
- const S = l ? "a" : "button", E = W(null), A = i || E, [L, V] = Z.useState(f);
1789
- $(() => {
1788
+ const I = l ? "a" : "button", E = W(null), A = i || E, [L, V] = Z.useState(f);
1789
+ R(() => {
1790
1790
  V(f);
1791
1791
  }, [f]), w = { duration: 0.3, ...w };
1792
1792
  let H;
1793
- v ? v && (H = (I) => {
1794
- t && I.preventDefault();
1793
+ v ? v && (H = (S) => {
1794
+ t && S.preventDefault();
1795
1795
  const O = !L;
1796
1796
  V(O), v(O);
1797
- }) : H = (I) => {
1798
- t && I.preventDefault(), p && p(I);
1797
+ }) : H = (S) => {
1798
+ t && S.preventDefault(), p && p(S);
1799
1799
  };
1800
1800
  const M = Nt({
1801
1801
  allowShapeTransformation: h,
@@ -1817,7 +1817,7 @@ const ke = ({
1817
1817
  children: r
1818
1818
  }), x = n ? /* @__PURE__ */ m(ie, { icon: n, className: M.icon }) : /* @__PURE__ */ m(me, {});
1819
1819
  return /* @__PURE__ */ Y(
1820
- S,
1820
+ I,
1821
1821
  {
1822
1822
  ref: A,
1823
1823
  href: l,
@@ -1972,7 +1972,7 @@ const ke = ({
1972
1972
  scrollSensitivity: v = 1.25,
1973
1973
  ...f
1974
1974
  }) => {
1975
- const i = W(null), d = l || i, [h, w] = R(0), b = It({
1975
+ const i = W(null), d = l || i, [h, w] = $(0), b = It({
1976
1976
  index: p,
1977
1977
  className: t,
1978
1978
  children: n,
@@ -1986,89 +1986,89 @@ const ke = ({
1986
1986
  onMetricsChange: o
1987
1987
  }), g = Z.Children.toArray(n).filter(
1988
1988
  (N) => Z.isValidElement(N) && N.type === nn
1989
- ), S = W(null), [E, A] = R(
1989
+ ), I = W(null), [E, A] = $(
1990
1990
  {}
1991
- ), [L, V] = R(null), H = W(0), M = W(null), x = () => {
1991
+ ), [L, V] = $(null), H = W(0), M = W(null), x = () => {
1992
1992
  var fe, we;
1993
- if (!S.current || !d.current || (L == null ? void 0 : L.scrollProgress) === void 0)
1993
+ if (!I.current || !d.current || (L == null ? void 0 : L.scrollProgress) === void 0)
1994
1994
  return [];
1995
1995
  const N = (L == null ? void 0 : L.scrollVisible) ?? ((fe = d.current) == null ? void 0 : fe.clientWidth) ?? 0;
1996
- function D(P, z) {
1997
- return P.map((te, ve) => {
1998
- const Ne = (te - z) / Math.abs(P[1] - P[0]);
1996
+ function D(P, T) {
1997
+ return P.map((ee, ve) => {
1998
+ const Ee = (ee - T) / Math.abs(P[1] - P[0]);
1999
1999
  return {
2000
- itemScrollXCenter: te,
2001
- relativeIndex: Ne,
2000
+ itemScrollXCenter: ee,
2001
+ relativeIndex: Ee,
2002
2002
  index: ve,
2003
2003
  width: 0
2004
2004
  };
2005
2005
  });
2006
2006
  }
2007
- const F = g.map((P, z) => {
2008
- if (!I[z].current || !S.current) return 0;
2009
- const ve = z / (g.length - 1);
2007
+ const F = g.map((P, T) => {
2008
+ if (!S[T].current || !I.current) return 0;
2009
+ const ve = T / (g.length - 1);
2010
2010
  return he(ve, [0, 1], [0, 1]);
2011
2011
  }), j = D(
2012
2012
  F,
2013
2013
  (L == null ? void 0 : L.scrollProgress) ?? 0
2014
- ).sort((P, z) => P.index - z.index);
2014
+ ).sort((P, T) => P.index - T.index);
2015
2015
  let X = (((we = d.current) == null ? void 0 : we.clientWidth) ?? N) + a + c[0] + a;
2016
- const re = j.sort((P, z) => Math.abs(P.relativeIndex) - Math.abs(z.relativeIndex)).map((P, z) => {
2016
+ const re = j.sort((P, T) => Math.abs(P.relativeIndex) - Math.abs(T.relativeIndex)).map((P, T) => {
2017
2017
  if (!(X <= 0)) {
2018
- if (z == 0 && G(P.index), P.width = he(
2018
+ if (T == 0 && G(P.index), P.width = he(
2019
2019
  X - a,
2020
2020
  [c[0], c[1]],
2021
2021
  [c[0], c[1]]
2022
2022
  ), X -= P.width + a, X != 0 && X < (c[0] + a) * 2) {
2023
- const te = P.width - ((c[0] + a) * 2 - X);
2024
- X += P.width, P.width = te, X -= P.width;
2023
+ const ee = P.width - ((c[0] + a) * 2 - X);
2024
+ X += P.width, P.width = ee, X -= P.width;
2025
2025
  } else if (X == 0 && P.width >= c[0] * 2 + a) {
2026
- const te = P.width - (c[0] + a - X);
2027
- X += P.width, P.width = te, X -= P.width;
2026
+ const ee = P.width - (c[0] + a - X);
2027
+ X += P.width, P.width = ee, X -= P.width;
2028
2028
  }
2029
2029
  return P;
2030
2030
  }
2031
2031
  }).filter(Boolean), ae = re.reverse(), de = [...re].sort(
2032
- (P, z) => Math.abs(P.index) - Math.abs(z.index)
2032
+ (P, T) => Math.abs(P.index) - Math.abs(T.index)
2033
2033
  );
2034
- ae.forEach((P, z) => {
2035
- const te = ae[z + 1];
2036
- if (!te) return;
2037
- const ve = 1 - (Math.abs(P.relativeIndex) - Math.abs(te == null ? void 0 : te.relativeIndex)), Ne = he(
2034
+ ae.forEach((P, T) => {
2035
+ const ee = ae[T + 1];
2036
+ if (!ee) return;
2037
+ const ve = 1 - (Math.abs(P.relativeIndex) - Math.abs(ee == null ? void 0 : ee.relativeIndex)), Ee = he(
2038
2038
  ve,
2039
2039
  [0, 2],
2040
- [P.width + X, te.width]
2040
+ [P.width + X, ee.width]
2041
2041
  );
2042
- X += P.width, P.width = Ne, X -= P.width;
2042
+ X += P.width, P.width = Ee, X -= P.width;
2043
2043
  });
2044
2044
  const ce = re.length / 2, oe = he(
2045
2045
  Math.abs(de[0].relativeIndex),
2046
2046
  [de[0].index == 0 ? 0 : ce - 1, ce],
2047
2047
  [0, 1]
2048
- ), Le = he(oe, [0, 1], [0, 1]) * -(c[0] + a);
2049
- return w(Le), Object.fromEntries(
2048
+ ), Ne = he(oe, [0, 1], [0, 1]) * -(c[0] + a);
2049
+ return w(Ne), Object.fromEntries(
2050
2050
  re.map((P) => [P.index, P.width])
2051
2051
  );
2052
- }, I = W([]).current, [O, G] = R(0);
2053
- $(() => {
2052
+ }, S = W([]).current, [O, G] = $(0);
2053
+ R(() => {
2054
2054
  u && u(O);
2055
- }, [O]), $(() => {
2055
+ }, [O]), R(() => {
2056
2056
  typeof p == "number" && g.length > 0 && p !== O && ne(p);
2057
- }, [p, g.length]), $(() => {
2057
+ }, [p, g.length]), R(() => {
2058
2058
  _(O);
2059
- }, [O]), I.length !== g.length && g.forEach((N, D) => {
2060
- I[D] || (I[D] = Z.createRef());
2059
+ }, [O]), S.length !== g.length && g.forEach((N, D) => {
2060
+ S[D] || (S[D] = Z.createRef());
2061
2061
  });
2062
- const [T, _] = R(0), ne = (N, D = {}) => {
2062
+ const [te, _] = $(0), ne = (N, D = {}) => {
2063
2063
  if (!g.length) return 0;
2064
- const F = I[N];
2065
- if (!F || !F.current || !S.current) return 0;
2064
+ const F = S[N];
2065
+ if (!F || !F.current || !I.current) return 0;
2066
2066
  const j = he(
2067
2067
  N / Math.max(1, g.length - 1),
2068
2068
  [0, 1],
2069
2069
  [0, 1]
2070
2070
  );
2071
- return _(N), S.current.dispatchEvent(
2071
+ return _(N), I.current.dispatchEvent(
2072
2072
  new CustomEvent("udx:customScroll:set", {
2073
2073
  bubbles: !0,
2074
2074
  detail: {
@@ -2088,7 +2088,7 @@ const ke = ({
2088
2088
  {
2089
2089
  width: E[D],
2090
2090
  outputRange: c,
2091
- ref: I[D],
2091
+ ref: S[D],
2092
2092
  key: D,
2093
2093
  index: D,
2094
2094
  role: "option",
@@ -2116,32 +2116,32 @@ const ke = ({
2116
2116
  });
2117
2117
  }
2118
2118
  };
2119
- $(() => {
2119
+ R(() => {
2120
2120
  const N = x();
2121
2121
  A(N);
2122
2122
  }, [L]);
2123
2123
  const U = W(o);
2124
- $(() => {
2124
+ R(() => {
2125
2125
  U.current = o;
2126
2126
  }, [o]);
2127
2127
  const K = W(null);
2128
- $(() => {
2129
- var z;
2128
+ R(() => {
2129
+ var T;
2130
2130
  const N = U.current;
2131
2131
  if (!N || !(d != null && d.current)) return;
2132
2132
  const D = g.length;
2133
2133
  if (D <= 0) return;
2134
- const F = ((z = d.current) == null ? void 0 : z.clientWidth) ?? 0, j = c[1], X = H.current ?? (L == null ? void 0 : L.scrollProgress) ?? 0, re = (F + a) / (j + a), ae = Math.max(1, Math.floor(re)), de = Math.max(1, Math.round(ae * (2 / 3))), ce = Math.min(
2134
+ const F = ((T = d.current) == null ? void 0 : T.clientWidth) ?? 0, j = c[1], X = H.current ?? (L == null ? void 0 : L.scrollProgress) ?? 0, re = (F + a) / (j + a), ae = Math.max(1, Math.floor(re)), de = Math.max(1, Math.round(ae * (2 / 3))), ce = Math.min(
2135
2135
  Math.max(0, O),
2136
2136
  Math.max(0, D - 1)
2137
- ), oe = ce > 0, Le = ce < D - 1, fe = {
2137
+ ), oe = ce > 0, Ne = ce < D - 1, fe = {
2138
2138
  total: D,
2139
2139
  selectedIndex: ce,
2140
2140
  visibleApprox: re,
2141
2141
  visibleFull: ae,
2142
2142
  stepHalf: de,
2143
2143
  canPrev: oe,
2144
- canNext: Le,
2144
+ canNext: Ne,
2145
2145
  scrollProgress: X,
2146
2146
  viewportWidth: F,
2147
2147
  itemMaxWidth: j,
@@ -2149,27 +2149,27 @@ const ke = ({
2149
2149
  }, we = K.current;
2150
2150
  let P = !we;
2151
2151
  if (!P) {
2152
- for (const te in fe)
2153
- if (fe[te] !== we[te]) {
2152
+ for (const ee in fe)
2153
+ if (fe[ee] !== we[ee]) {
2154
2154
  P = !0;
2155
2155
  break;
2156
2156
  }
2157
2157
  }
2158
2158
  P && (K.current = fe, N(fe));
2159
- }, [d, g.length, O, L, a, c]), $(() => () => {
2159
+ }, [d, g.length, O, L, a, c]), R(() => () => {
2160
2160
  var N;
2161
2161
  (N = M.current) == null || N.stop();
2162
2162
  }, []);
2163
- const [le, ue] = R(0);
2163
+ const [le, ue] = $(0);
2164
2164
  Ye(() => {
2165
2165
  let N = c[1];
2166
2166
  L && N > L.scrollVisible && (N = L.scrollVisible);
2167
2167
  const D = (N + a) * B.length / v;
2168
2168
  ue(D);
2169
- }, [d, I, L]);
2169
+ }, [d, S, L]);
2170
2170
  const C = (N) => {
2171
2171
  if (!g.length) return;
2172
- const D = T ?? O;
2172
+ const D = te ?? O;
2173
2173
  switch (N.key) {
2174
2174
  case "ArrowLeft":
2175
2175
  N.preventDefault(), ne(Math.max(0, D - 1));
@@ -2189,7 +2189,7 @@ const ke = ({
2189
2189
  break;
2190
2190
  }
2191
2191
  };
2192
- return $(() => {
2192
+ return R(() => {
2193
2193
  const N = d.current;
2194
2194
  if (!N) return;
2195
2195
  const D = (F) => {
@@ -2222,7 +2222,7 @@ const ke = ({
2222
2222
  "div",
2223
2223
  {
2224
2224
  className: b.track,
2225
- ref: S,
2225
+ ref: I,
2226
2226
  style: {
2227
2227
  gap: `${a}px`,
2228
2228
  translate: h,
@@ -2242,24 +2242,24 @@ const ke = ({
2242
2242
  }) => {
2243
2243
  const l = kt({ orientation: e, className: t });
2244
2244
  return /* @__PURE__ */ m("hr", { className: l.divider, ...n });
2245
- }, ee = [];
2245
+ }, z = [];
2246
2246
  for (let e = 0; e < 256; ++e)
2247
- ee.push((e + 256).toString(16).slice(1));
2247
+ z.push((e + 256).toString(16).slice(1));
2248
2248
  function on(e, t = 0) {
2249
- return (ee[e[t + 0]] + ee[e[t + 1]] + ee[e[t + 2]] + ee[e[t + 3]] + "-" + ee[e[t + 4]] + ee[e[t + 5]] + "-" + ee[e[t + 6]] + ee[e[t + 7]] + "-" + ee[e[t + 8]] + ee[e[t + 9]] + "-" + ee[e[t + 10]] + ee[e[t + 11]] + ee[e[t + 12]] + ee[e[t + 13]] + ee[e[t + 14]] + ee[e[t + 15]]).toLowerCase();
2249
+ return (z[e[t + 0]] + z[e[t + 1]] + z[e[t + 2]] + z[e[t + 3]] + "-" + z[e[t + 4]] + z[e[t + 5]] + "-" + z[e[t + 6]] + z[e[t + 7]] + "-" + z[e[t + 8]] + z[e[t + 9]] + "-" + z[e[t + 10]] + z[e[t + 11]] + z[e[t + 12]] + z[e[t + 13]] + z[e[t + 14]] + z[e[t + 15]]).toLowerCase();
2250
2250
  }
2251
- let Ie;
2251
+ let ke;
2252
2252
  const ln = new Uint8Array(16);
2253
2253
  function an() {
2254
- if (!Ie) {
2254
+ if (!ke) {
2255
2255
  if (typeof crypto > "u" || !crypto.getRandomValues)
2256
2256
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2257
- Ie = crypto.getRandomValues.bind(crypto);
2257
+ ke = crypto.getRandomValues.bind(crypto);
2258
2258
  }
2259
- return Ie(ln);
2259
+ return ke(ln);
2260
2260
  }
2261
2261
  const sn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Oe = { randomUUID: sn };
2262
- function Be(e, t, n) {
2262
+ function ge(e, t, n) {
2263
2263
  var r;
2264
2264
  if (Oe.randomUUID && !e)
2265
2265
  return Oe.randomUUID();
@@ -2285,10 +2285,10 @@ const it = ({
2285
2285
  if (!l && !a)
2286
2286
  throw new Error("ToolTip must have a child or a targetRef");
2287
2287
  Array.isArray(o) || (o = [o]), t && !Array.isArray(t) && (t = [t]);
2288
- const v = W(null), f = a || v, [i, d] = R(null), [h] = R(Be()), [w, b] = R(!1), g = W(null);
2289
- $(() => {
2290
- const x = (I) => {
2291
- d(I.detail);
2288
+ const v = W(null), f = a || v, [i, d] = $(null), [h] = $(ge()), [w, b] = $(!1), g = W(null);
2289
+ R(() => {
2290
+ const x = (S) => {
2291
+ d(S.detail);
2292
2292
  };
2293
2293
  return document.addEventListener("tooltip-update", x), () => {
2294
2294
  document.removeEventListener(
@@ -2296,12 +2296,12 @@ const it = ({
2296
2296
  x
2297
2297
  );
2298
2298
  };
2299
- }, []), $(() => {
2299
+ }, []), R(() => {
2300
2300
  g.current && clearTimeout(g.current), i ? b(i === h) : g.current = setTimeout(() => {
2301
2301
  b(!1);
2302
2302
  }, 1200);
2303
2303
  }, [i, h]);
2304
- const S = () => {
2304
+ const I = () => {
2305
2305
  if (o.includes("hover")) {
2306
2306
  const x = new CustomEvent("tooltip-update", { detail: h });
2307
2307
  document.dispatchEvent(x);
@@ -2329,18 +2329,18 @@ const it = ({
2329
2329
  document.dispatchEvent(x);
2330
2330
  }
2331
2331
  };
2332
- $(() => {
2332
+ R(() => {
2333
2333
  if (f != null && f.current) {
2334
2334
  const x = f.current;
2335
- return x.addEventListener("mouseenter", S), x.addEventListener("mouseleave", E), x.addEventListener("click", A), x.addEventListener("focus", L), x.addEventListener("blur", V), () => {
2336
- x.removeEventListener("mouseenter", S), x.removeEventListener("mouseleave", E), x.removeEventListener("click", A), x.removeEventListener("focus", L), x.removeEventListener("blur", V);
2335
+ return x.addEventListener("mouseenter", I), x.addEventListener("mouseleave", E), x.addEventListener("click", A), x.addEventListener("focus", L), x.addEventListener("blur", V), () => {
2336
+ x.removeEventListener("mouseenter", I), x.removeEventListener("mouseleave", E), x.removeEventListener("click", A), x.removeEventListener("focus", L), x.removeEventListener("blur", V);
2337
2337
  };
2338
2338
  }
2339
2339
  }, [f, o, h, w]);
2340
2340
  const H = !a && pe(l) ? xe(l, { ref: v }) : l;
2341
2341
  if (!c && typeof window < "u" && f != null && f.current && !c) {
2342
- const x = f.current.getBoundingClientRect(), I = window.innerWidth, O = window.innerHeight, G = x.left / I, T = x.top / O;
2343
- e === "plain" ? G < 1 / 3 ? c = "right" : G > 2 / 3 ? c = "left" : c = T > 0.5 ? "top" : "bottom" : G < 1 / 2 && T < 1 / 2 ? c = "bottom-right" : G > 1 / 2 && T < 1 / 2 ? c = "bottom-left" : G > 1 / 2 && T > 1 / 2 ? c = "top-left" : G < 1 / 2 && T > 1 / 2 && (c = "top-right");
2342
+ const x = f.current.getBoundingClientRect(), S = window.innerWidth, O = window.innerHeight, G = x.left / S, te = x.top / O;
2343
+ e === "plain" ? G < 1 / 3 ? c = "right" : G > 2 / 3 ? c = "left" : c = te > 0.5 ? "top" : "bottom" : G < 1 / 2 && te < 1 / 2 ? c = "bottom-right" : G > 1 / 2 && te < 1 / 2 ? c = "bottom-left" : G > 1 / 2 && te > 1 / 2 ? c = "top-left" : G < 1 / 2 && te > 1 / 2 && (c = "top-right");
2344
2344
  }
2345
2345
  const M = Ot({
2346
2346
  variant: e,
@@ -2364,7 +2364,7 @@ const it = ({
2364
2364
  exit: { opacity: i ? 1 : 0 },
2365
2365
  className: M.toolTip,
2366
2366
  ...p,
2367
- onMouseEnter: S,
2367
+ onMouseEnter: I,
2368
2368
  onMouseLeave: E,
2369
2369
  children: /* @__PURE__ */ Y(
2370
2370
  q.div,
@@ -2379,14 +2379,14 @@ const it = ({
2379
2379
  children: [
2380
2380
  r && /* @__PURE__ */ m("div", { className: M.subHead, children: r }),
2381
2381
  /* @__PURE__ */ m("div", { className: M.supportingText, children: s }),
2382
- t && /* @__PURE__ */ m("div", { className: M.actions, children: Array.isArray(t) && t.map((x, I) => /* @__PURE__ */ m(
2383
- ke,
2382
+ t && /* @__PURE__ */ m("div", { className: M.actions, children: Array.isArray(t) && t.map((x, S) => /* @__PURE__ */ m(
2383
+ Ce,
2384
2384
  {
2385
2385
  size: "small",
2386
2386
  variant: "text",
2387
2387
  ...x
2388
2388
  },
2389
- I
2389
+ S
2390
2390
  )) })
2391
2391
  ]
2392
2392
  }
@@ -2394,7 +2394,7 @@ const it = ({
2394
2394
  }
2395
2395
  ) }) })
2396
2396
  ] });
2397
- }, Ce = ({
2397
+ }, Me = ({
2398
2398
  className: e,
2399
2399
  label: t,
2400
2400
  variant: n = "primary",
@@ -2498,7 +2498,7 @@ const it = ({
2498
2498
  ]
2499
2499
  }
2500
2500
  );
2501
- }, ge = ({
2501
+ }, be = ({
2502
2502
  variant: e = "standard",
2503
2503
  href: t,
2504
2504
  disabled: n = !1,
@@ -2518,7 +2518,7 @@ const it = ({
2518
2518
  allowShapeTransformation: w = !0,
2519
2519
  transition: b,
2520
2520
  children: g,
2521
- ...S
2521
+ ...I
2522
2522
  }) => {
2523
2523
  if (g && (s = g), !s)
2524
2524
  throw new Error(
@@ -2527,11 +2527,11 @@ const it = ({
2527
2527
  r || (r = s);
2528
2528
  const [E, A] = Z.useState(a);
2529
2529
  let L;
2530
- c ? c && (L = (I) => {
2531
- n && I.preventDefault(), A(!E), c(!!E);
2532
- }, o = E && v || o) : L = (I) => {
2533
- n && I.preventDefault(), u && u(I);
2534
- }, $(() => {
2530
+ c ? c && (L = (S) => {
2531
+ n && S.preventDefault(), A(!E), c(!!E);
2532
+ }, o = E && v || o) : L = (S) => {
2533
+ n && S.preventDefault(), u && u(S);
2534
+ }, R(() => {
2535
2535
  A(a);
2536
2536
  }, [a]);
2537
2537
  const V = t ? "a" : "button", H = $t({
@@ -2551,7 +2551,7 @@ const it = ({
2551
2551
  className: f,
2552
2552
  size: p,
2553
2553
  children: s,
2554
- ...S
2554
+ ...I
2555
2555
  }), M = W(null), x = i || M;
2556
2556
  return b = { duration: 0.3, ...b }, /* @__PURE__ */ Y(
2557
2557
  V,
@@ -2561,7 +2561,7 @@ const it = ({
2561
2561
  style: { transition: b.duration + "s" },
2562
2562
  className: H.iconButton,
2563
2563
  "aria-label": s,
2564
- ...S,
2564
+ ...I,
2565
2565
  title: void 0,
2566
2566
  onClick: L,
2567
2567
  ref: x,
@@ -2615,11 +2615,11 @@ var cn = {
2615
2615
  prefix: "fas",
2616
2616
  iconName: "circle-exclamation",
2617
2617
  icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]
2618
- }, be = {
2618
+ }, Le = {
2619
2619
  prefix: "fas",
2620
2620
  iconName: "xmark",
2621
2621
  icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
2622
- }, un = be, dn = {
2622
+ }, un = Le, dn = {
2623
2623
  prefix: "fas",
2624
2624
  iconName: "bars",
2625
2625
  icon: [448, 512, ["navicon"], "f0c9", "M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]
@@ -2641,10 +2641,10 @@ const zn = ({
2641
2641
  ...i
2642
2642
  }) => {
2643
2643
  u = { duration: 0.3, ease: "easeInOut", ...u };
2644
- const d = W(null), h = a || d, w = typeof p == "boolean", [b, g] = R(v), S = w ? p : b, E = (x) => {
2645
- w || g(x), f == null || f(x);
2644
+ const d = W(null), h = a || d, w = typeof p == "boolean", [b, g] = $(v), I = w ? p : b, E = (S) => {
2645
+ w || g(S), f == null || f(S);
2646
2646
  }, A = Z.Children.toArray(o).filter(
2647
- (x) => Z.isValidElement(x) && x.type === ke
2647
+ (S) => Z.isValidElement(S) && S.type === Ce
2648
2648
  ), L = Mt({
2649
2649
  href: r,
2650
2650
  icon: s,
@@ -2655,10 +2655,10 @@ const zn = ({
2655
2655
  className: e,
2656
2656
  transition: u,
2657
2657
  children: t,
2658
- open: S
2659
- }), V = q.create(Ce), H = q.create(ge);
2660
- q.create(ke);
2661
- const M = (x) => /* @__PURE__ */ m(
2658
+ open: I
2659
+ }), V = q.create(Me), H = q.create(be);
2660
+ q.create(Ce);
2661
+ const M = (S) => /* @__PURE__ */ m(
2662
2662
  V,
2663
2663
  {
2664
2664
  icon: s,
@@ -2667,7 +2667,7 @@ const zn = ({
2667
2667
  variant: n + "Container",
2668
2668
  size: l,
2669
2669
  className: L.fab + " " + (e ?? ""),
2670
- "aria-expanded": S,
2670
+ "aria-expanded": I,
2671
2671
  onClick: () => E(!0),
2672
2672
  style: { transition: "border-radius 0.3s ease-in-out" },
2673
2673
  transition: {
@@ -2677,24 +2677,24 @@ const zn = ({
2677
2677
  background: { duration: u.duration, ease: "easeInOut" },
2678
2678
  ...u
2679
2679
  },
2680
- ...x
2680
+ ...S
2681
2681
  }
2682
- );
2682
+ ), [x] = $(ge());
2683
2683
  return /* @__PURE__ */ Y("div", { className: L.fabMenu, ref: h, ...i, children: [
2684
- /* @__PURE__ */ m(se, { children: S && /* @__PURE__ */ m("div", { className: L.actions, role: "menu", "aria-hidden": !S, children: (() => {
2685
- const x = A.length;
2686
- return A.map((I, O) => {
2687
- I.props;
2688
- const G = x - 1 - O, T = ((u == null ? void 0 : u.delay) ?? 0) + G * 0.06, _ = {
2684
+ /* @__PURE__ */ m(se, { children: I && /* @__PURE__ */ m("div", { className: L.actions, role: "menu", "aria-hidden": !I, children: (() => {
2685
+ const S = A.length;
2686
+ return A.map((O, G) => {
2687
+ O.props;
2688
+ const te = S - 1 - G, _ = ((u == null ? void 0 : u.delay) ?? 0) + te * 0.06, ne = {
2689
2689
  open: {
2690
2690
  overflow: "visible",
2691
2691
  opacity: 1,
2692
2692
  width: "auto",
2693
2693
  transition: {
2694
2694
  ...u,
2695
- delay: T,
2695
+ delay: _,
2696
2696
  opacity: {
2697
- delay: (u == null ? void 0 : u.duration) / 2 + T
2697
+ delay: (u == null ? void 0 : u.duration) / 2 + _
2698
2698
  }
2699
2699
  }
2700
2700
  },
@@ -2704,7 +2704,7 @@ const zn = ({
2704
2704
  width: 0,
2705
2705
  transition: {
2706
2706
  ...u,
2707
- delay: T,
2707
+ delay: _,
2708
2708
  opacity: {
2709
2709
  duration: (u == null ? void 0 : u.duration) / 1.5
2710
2710
  }
@@ -2716,18 +2716,18 @@ const zn = ({
2716
2716
  {
2717
2717
  initial: "close",
2718
2718
  animate: "open",
2719
- variants: _,
2719
+ variants: ne,
2720
2720
  transition: u,
2721
2721
  exit: "close",
2722
2722
  children: Z.cloneElement(
2723
- I,
2723
+ O,
2724
2724
  {
2725
- key: O,
2725
+ key: G,
2726
2726
  shape: "rounded",
2727
2727
  variant: "filled",
2728
2728
  className: () => ({
2729
2729
  button: y("max-w-full overflow-hidden", {
2730
- "px-0": !S,
2730
+ "px-0": !I,
2731
2731
  "bg-primary-container text-on-primary-container ": n === "primary",
2732
2732
  "bg-secondary-container text-on-secondary-container": n === "secondary",
2733
2733
  "bg-tertiary-container text-on-tertiary-container": n === "tertiary"
@@ -2748,16 +2748,16 @@ const zn = ({
2748
2748
  className: "invisible pointer-events-none"
2749
2749
  }),
2750
2750
  /* @__PURE__ */ Y("div", { className: "absolute right-0 top-0", children: [
2751
- !S && M({
2751
+ !I && M({
2752
2752
  className: "",
2753
2753
  layout: !0,
2754
- layoutId: "fab-menu"
2754
+ layoutId: "fab-menu" + x
2755
2755
  }),
2756
- S && /* @__PURE__ */ m(me, { children: /* @__PURE__ */ m(
2756
+ I && /* @__PURE__ */ m(me, { children: /* @__PURE__ */ m(
2757
2757
  H,
2758
2758
  {
2759
2759
  layout: !0,
2760
- layoutId: "fab-menu",
2760
+ layoutId: "fab-menu" + x,
2761
2761
  variant: "filled",
2762
2762
  className: () => ({
2763
2763
  iconButton: y("", {
@@ -2820,15 +2820,15 @@ const zn = ({
2820
2820
  }, f = (B = !1) => B ? c : c == 1 / 0 ? a[(a == null ? void 0 : a.length) - 1].value : c, i = (B = !1) => B ? s : s == -1 / 0 ? a[0].value : s, d = (B) => {
2821
2821
  const k = i(!1);
2822
2822
  return (f(!1) - k) * B / 100 + k;
2823
- }, [h, w] = R(!1), b = W(null), g = u || b, [S, E] = R(r), [A, L] = R(v(r)), [V, H] = R(!1), M = (B) => {
2823
+ }, [h, w] = $(!1), b = W(null), g = u || b, [I, E] = $(r), [A, L] = $(v(r)), [V, H] = $(!1), M = (B) => {
2824
2824
  H(!0), w(!0), O(B);
2825
2825
  }, x = () => {
2826
2826
  H(!1), w(!1);
2827
2827
  };
2828
- $(() => (V ? (window.addEventListener("mouseup", x), window.addEventListener("mousemove", O), window.addEventListener("touchend", x), window.addEventListener("touchmove", O)) : (window.removeEventListener("mouseup", x), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", x), window.removeEventListener("touchmove", O)), () => {
2828
+ R(() => (V ? (window.addEventListener("mouseup", x), window.addEventListener("mousemove", O), window.addEventListener("touchend", x), window.addEventListener("touchmove", O)) : (window.removeEventListener("mouseup", x), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", x), window.removeEventListener("touchmove", O)), () => {
2829
2829
  window.removeEventListener("mouseup", x), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", x), window.removeEventListener("touchmove", O);
2830
2830
  }), [V]);
2831
- const I = Dt({
2831
+ const S = Dt({
2832
2832
  className: e,
2833
2833
  isChanging: h,
2834
2834
  marks: a,
@@ -2836,7 +2836,7 @@ const zn = ({
2836
2836
  min: s,
2837
2837
  name: l,
2838
2838
  step: n,
2839
- value: S,
2839
+ value: I,
2840
2840
  valueFormatter: t,
2841
2841
  onChange: o
2842
2842
  }), O = (B) => {
@@ -2875,8 +2875,8 @@ const zn = ({
2875
2875
  let ue = K.value === 1 / 0 ? f() : K.value === -1 / 0 ? i() : K.value, C = U.value === 1 / 0 ? f() : U.value === -1 / 0 ? i() : U.value;
2876
2876
  return ue = Math.abs(ue - k), C = Math.abs(C - k), ue < C ? K : U;
2877
2877
  }).value), k >= f() && (k = f(!0)), k <= i() && (k = i(!0)), B = v(k), E(k), L(B), o && o(k);
2878
- }, [T, _] = R(0);
2879
- return $(() => {
2878
+ }, [te, _] = $(0);
2879
+ return R(() => {
2880
2880
  const B = () => {
2881
2881
  g.current && _(g.current.offsetWidth);
2882
2882
  };
@@ -2891,17 +2891,17 @@ const zn = ({
2891
2891
  switch (B.key) {
2892
2892
  case "ArrowRight":
2893
2893
  if (n)
2894
- G({ value: S + n });
2894
+ G({ value: I + n });
2895
2895
  else if (a) {
2896
- const k = a.find((U) => U.value > S);
2896
+ const k = a.find((U) => U.value > I);
2897
2897
  k && G({ value: k.value });
2898
2898
  }
2899
2899
  break;
2900
2900
  case "ArrowLeft":
2901
2901
  if (n)
2902
- G({ value: S - n });
2902
+ G({ value: I - n });
2903
2903
  else if (a) {
2904
- const k = a.slice(0).reverse().find((U, K, le) => S === 1 / 0 ? K === 1 : U.value < S);
2904
+ const k = a.slice(0).reverse().find((U, K, le) => I === 1 / 0 ? K === 1 : U.value < I);
2905
2905
  k && G({ value: k.value });
2906
2906
  }
2907
2907
  break;
@@ -2912,9 +2912,9 @@ const zn = ({
2912
2912
  role: "slider",
2913
2913
  "aria-valuemin": i(!0),
2914
2914
  "aria-valuemax": f(!0),
2915
- "aria-valuenow": S,
2916
- "aria-valuetext": S.toString(),
2917
- className: I.slider,
2915
+ "aria-valuenow": I,
2916
+ "aria-valuetext": I.toString(),
2917
+ className: S.slider,
2918
2918
  onMouseDown: M,
2919
2919
  onClick: O,
2920
2920
  ref: g,
@@ -2922,12 +2922,12 @@ const zn = ({
2922
2922
  onDragStart: (B) => B.preventDefault(),
2923
2923
  ...p,
2924
2924
  children: [
2925
- /* @__PURE__ */ m("input", { type: "hidden", name: l, value: S }),
2926
- /* @__PURE__ */ m("div", { className: I.activeTrack, style: { flex: A / 100 } }),
2927
- /* @__PURE__ */ m("div", { className: I.handle, children: /* @__PURE__ */ m(se, { children: h && /* @__PURE__ */ m(
2925
+ /* @__PURE__ */ m("input", { type: "hidden", name: l, value: I }),
2926
+ /* @__PURE__ */ m("div", { className: S.activeTrack, style: { flex: A / 100 } }),
2927
+ /* @__PURE__ */ m("div", { className: S.handle, children: /* @__PURE__ */ m(se, { children: h && /* @__PURE__ */ m(
2928
2928
  q.div,
2929
2929
  {
2930
- className: I.valueIndicator,
2930
+ className: S.valueIndicator,
2931
2931
  initial: "hidden",
2932
2932
  animate: "visible",
2933
2933
  exit: "hidden",
@@ -2941,13 +2941,13 @@ const zn = ({
2941
2941
  hidden: { opacity: 1, scale: 0 }
2942
2942
  },
2943
2943
  transition: { duration: 0.1 },
2944
- children: t ? t(S) : S
2944
+ children: t ? t(I) : I
2945
2945
  }
2946
2946
  ) }) }),
2947
2947
  /* @__PURE__ */ m(
2948
2948
  "div",
2949
2949
  {
2950
- className: I.inactiveTrack,
2950
+ className: S.inactiveTrack,
2951
2951
  style: { flex: 1 - A / 100 }
2952
2952
  }
2953
2953
  ),
@@ -2957,11 +2957,11 @@ const zn = ({
2957
2957
  className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
2958
2958
  children: a && a.map((B, k) => {
2959
2959
  let U = null;
2960
- const K = (h ? 9 : 10) / T * 100, le = v(B.value);
2960
+ const K = (h ? 9 : 10) / te * 100, le = v(B.value);
2961
2961
  return le <= A - K ? U = !0 : le >= A + K && (U = !1), /* @__PURE__ */ m(
2962
2962
  "div",
2963
2963
  {
2964
- className: y(I.dot, {
2964
+ className: y(S.dot, {
2965
2965
  "bg-primary-container": U != null && U,
2966
2966
  "bg-primary": U != null && !U
2967
2967
  }),
@@ -2986,12 +2986,12 @@ const zn = ({
2986
2986
  extended: s,
2987
2987
  divider: c,
2988
2988
  onExtendedChange: a,
2989
- closeIcon: u = be,
2989
+ closeIcon: u = Le,
2990
2990
  transition: o,
2991
2991
  ...p
2992
2992
  }) => {
2993
2993
  o = { duration: 0.3, ...o };
2994
- const [v, f] = R(s ?? !0), i = Bt({
2994
+ const [v, f] = $(s ?? !0), i = Bt({
2995
2995
  transition: o,
2996
2996
  title: l,
2997
2997
  position: r,
@@ -3004,9 +3004,9 @@ const zn = ({
3004
3004
  extended: v,
3005
3005
  variant: e
3006
3006
  });
3007
- $(() => {
3007
+ R(() => {
3008
3008
  a == null || a(v ?? !1);
3009
- }, [v]), $(() => {
3009
+ }, [v]), R(() => {
3010
3010
  s != null && f(s);
3011
3011
  }, [s]);
3012
3012
  const d = {
@@ -3047,7 +3047,7 @@ const zn = ({
3047
3047
  /* @__PURE__ */ Y("div", { className: i.header, children: [
3048
3048
  l && /* @__PURE__ */ m("p", { className: i.title, children: l }),
3049
3049
  /* @__PURE__ */ m(
3050
- ge,
3050
+ be,
3051
3051
  {
3052
3052
  size: "small",
3053
3053
  label: "close",
@@ -3078,11 +3078,11 @@ const zn = ({
3078
3078
  message: e,
3079
3079
  className: t,
3080
3080
  duration: n,
3081
- closeIcon: l = be,
3081
+ closeIcon: l = Le,
3082
3082
  onClose: r,
3083
3083
  ...s
3084
3084
  }) => {
3085
- const [c, a] = R(!0), u = Wt({
3085
+ const [c, a] = $(!0), u = Wt({
3086
3086
  className: t,
3087
3087
  closeIcon: l,
3088
3088
  duration: n,
@@ -3090,7 +3090,7 @@ const zn = ({
3090
3090
  onClose: r,
3091
3091
  message: e
3092
3092
  });
3093
- $(() => {
3093
+ R(() => {
3094
3094
  n && setTimeout(() => {
3095
3095
  o();
3096
3096
  }, n);
@@ -3110,7 +3110,7 @@ const zn = ({
3110
3110
  children: /* @__PURE__ */ Y("div", { className: u.container, children: [
3111
3111
  /* @__PURE__ */ m("p", { className: u.supportingText, children: e }),
3112
3112
  /* @__PURE__ */ m(
3113
- ge,
3113
+ be,
3114
3114
  {
3115
3115
  onClick: () => o(),
3116
3116
  className: u.icon,
@@ -3133,7 +3133,7 @@ const zn = ({
3133
3133
  ref: u,
3134
3134
  ...o
3135
3135
  }) => {
3136
- const [p, v] = R(e), f = (g) => {
3136
+ const [p, v] = $(e), f = (g) => {
3137
3137
  l || (d(), c && c(g));
3138
3138
  }, i = (g) => {
3139
3139
  l || ((g.key === " " || g.key === "Enter") && (g.preventDefault(), d()), a && a(g));
@@ -3204,10 +3204,10 @@ const zn = ({
3204
3204
  ref: i,
3205
3205
  ...d
3206
3206
  }) => {
3207
- const h = W(null), w = i || h, [b, g] = R(f);
3208
- $(() => {
3207
+ const h = W(null), w = i || h, [b, g] = $(f);
3208
+ R(() => {
3209
3209
  f && c == null ? g(!0) : g(c == o && o != null);
3210
- }, [c]), $(() => {
3210
+ }, [c]), R(() => {
3211
3211
  c == o && p && p({
3212
3212
  ref: w,
3213
3213
  index: o || 0,
@@ -3215,7 +3215,7 @@ const zn = ({
3215
3215
  icon: s
3216
3216
  });
3217
3217
  }, [c]);
3218
- const S = r ? "a" : "button", E = (L) => {
3218
+ const I = r ? "a" : "button", E = (L) => {
3219
3219
  a && a(o ?? null), t && t(L);
3220
3220
  }, A = Pt({
3221
3221
  className: e,
@@ -3233,7 +3233,7 @@ const zn = ({
3233
3233
  href: r
3234
3234
  });
3235
3235
  return /* @__PURE__ */ Y(
3236
- S,
3236
+ I,
3237
3237
  {
3238
3238
  ...d,
3239
3239
  role: "tab",
@@ -3277,7 +3277,7 @@ const zn = ({
3277
3277
  setSelectedTab: s,
3278
3278
  scrollable: c = !1
3279
3279
  }) => {
3280
- const [a, u] = R(
3280
+ const [a, u] = $(
3281
3281
  null
3282
3282
  );
3283
3283
  let o;
@@ -3288,11 +3288,11 @@ const zn = ({
3288
3288
  if (t == null || t(w), c) {
3289
3289
  const b = f.current, g = w.ref.current;
3290
3290
  if (b && g) {
3291
- const S = g.offsetLeft + g.offsetWidth / 2 - b.offsetWidth / 2;
3292
- b.scrollTo({ left: S, behavior: "smooth" });
3291
+ const I = g.offsetLeft + g.offsetWidth / 2 - b.offsetWidth / 2;
3292
+ b.scrollTo({ left: I, behavior: "smooth" });
3293
3293
  }
3294
3294
  }
3295
- }, d = Me(() => Be(), []), h = Ht({
3295
+ }, d = $e(() => ge(), []), h = Ht({
3296
3296
  children: n,
3297
3297
  onTabSelected: t,
3298
3298
  scrollable: c,
@@ -3331,26 +3331,26 @@ const zn = ({
3331
3331
  showSupportingText: w = !1,
3332
3332
  ...b
3333
3333
  }) => {
3334
- const [g, S] = R(h ?? ""), [E, A] = R(!1), [L, V] = R(!1), [H, M] = R(
3334
+ const [g, I] = $(h ?? ""), [E, A] = $(!1), [L, V] = $(!1), [H, M] = $(
3335
3335
  w
3336
3336
  );
3337
- $(() => {
3338
- S(h ?? "");
3339
- }, [h]), $(() => {
3337
+ R(() => {
3338
+ I(h ?? "");
3339
+ }, [h]), R(() => {
3340
3340
  n != null && n.length ? V(!0) : V(!1);
3341
- }, [n]), $(() => {
3341
+ }, [n]), R(() => {
3342
3342
  w ? M(w) : u != null && u.length ? M(!0) : M(!1);
3343
- }, [H, u]), $(() => {
3343
+ }, [H, u]), R(() => {
3344
3344
  E && V(!1);
3345
3345
  }, [E]);
3346
- const x = Z.useRef(null), I = () => {
3346
+ const x = Z.useRef(null), S = () => {
3347
3347
  x.current && !E && x.current.focus();
3348
3348
  }, O = () => {
3349
3349
  A(!0);
3350
3350
  }, G = (U) => {
3351
3351
  const K = U.target.value;
3352
- S(K), V(!1), typeof d == "function" && d(K);
3353
- }, T = () => {
3352
+ I(K), V(!1), typeof d == "function" && d(K);
3353
+ }, te = () => {
3354
3354
  A(!1);
3355
3355
  }, _ = Ft({
3356
3356
  showSupportingText: H,
@@ -3372,7 +3372,7 @@ const zn = ({
3372
3372
  value: g,
3373
3373
  suffix: r,
3374
3374
  textLine: f
3375
- }), [ne] = R(Be());
3375
+ }), [ne] = $(ge());
3376
3376
  let B, k;
3377
3377
  switch (f) {
3378
3378
  case "multiLine":
@@ -3387,7 +3387,7 @@ const zn = ({
3387
3387
  break;
3388
3388
  }
3389
3389
  return /* @__PURE__ */ Y("div", { className: _.textField, ...b, children: [
3390
- /* @__PURE__ */ Y("fieldset", { onClick: I, className: _.content, children: [
3390
+ /* @__PURE__ */ Y("fieldset", { onClick: S, className: _.content, children: [
3391
3391
  /* @__PURE__ */ m("div", { className: _.stateLayer }),
3392
3392
  p && /* @__PURE__ */ m("div", { className: _.leadingIcon, children: Z.isValidElement(p) ? p : /* @__PURE__ */ m(ie, { className: "w-5 h-5", icon: p }) }),
3393
3393
  !(!E && !g.length || e == "filled") && /* @__PURE__ */ m(
@@ -3447,7 +3447,7 @@ const zn = ({
3447
3447
  name: s,
3448
3448
  placeholder: E ? l ?? void 0 : "",
3449
3449
  onFocus: O,
3450
- onBlur: T,
3450
+ onBlur: te,
3451
3451
  disabled: t,
3452
3452
  autoComplete: i,
3453
3453
  "aria-invalid": !!(n != null && n.length),
@@ -3545,10 +3545,10 @@ const zn = ({
3545
3545
  ...g
3546
3546
  }) => {
3547
3547
  b && (n = b);
3548
- const S = W(null), E = v || S, [A, L] = R(p);
3549
- $(() => {
3548
+ const I = W(null), E = v || I, [A, L] = $(p);
3549
+ R(() => {
3550
3550
  p && c == null ? L(!0) : L(c == u && u != null);
3551
- }, [c]), $(() => {
3551
+ }, [c]), R(() => {
3552
3552
  c == u && o && o({
3553
3553
  ref: E,
3554
3554
  index: u || 0,
@@ -3626,7 +3626,7 @@ const zn = ({
3626
3626
  transition: {
3627
3627
  ...f
3628
3628
  }
3629
- }, I = {
3629
+ }, S = {
3630
3630
  width: "auto",
3631
3631
  opacity: 1,
3632
3632
  transition: {
@@ -3641,7 +3641,7 @@ const zn = ({
3641
3641
  q.span,
3642
3642
  {
3643
3643
  initial: x,
3644
- animate: I,
3644
+ animate: S,
3645
3645
  exit: x,
3646
3646
  className: M.label,
3647
3647
  children: n
@@ -3661,7 +3661,7 @@ const zn = ({
3661
3661
  duration: 0
3662
3662
  }
3663
3663
  }
3664
- }, I = {
3664
+ }, S = {
3665
3665
  height: "auto",
3666
3666
  opacity: 1,
3667
3667
  transition: {
@@ -3675,8 +3675,8 @@ const zn = ({
3675
3675
  return /* @__PURE__ */ m(
3676
3676
  q.span,
3677
3677
  {
3678
- initial: I,
3679
- animate: I,
3678
+ initial: S,
3679
+ animate: S,
3680
3680
  exit: x,
3681
3681
  className: M.label,
3682
3682
  transition: f,
@@ -3721,7 +3721,7 @@ const zn = ({
3721
3721
  label: "Open menu"
3722
3722
  },
3723
3723
  opened: {
3724
- icon: be,
3724
+ icon: Le,
3725
3725
  label: "Close menu"
3726
3726
  }
3727
3727
  },
@@ -3730,20 +3730,20 @@ const zn = ({
3730
3730
  transition: p,
3731
3731
  setSelectedItem: v
3732
3732
  }) => {
3733
- const [f, i] = R(null), [d, h] = R(s);
3733
+ const [f, i] = $(null), [d, h] = $(s);
3734
3734
  let w;
3735
3735
  r == 0 || r != null ? w = r : w = f;
3736
- const b = v || i, g = W(null), S = (M) => {
3736
+ const b = v || i, g = W(null), I = (M) => {
3737
3737
  t == null || t(M);
3738
3738
  };
3739
3739
  function E(M) {
3740
3740
  const x = [];
3741
- return dt.forEach(M, (I) => {
3742
- pe(I) && I.type === ft ? x.push(...E(I.props.children)) : x.push(I);
3741
+ return dt.forEach(M, (S) => {
3742
+ pe(S) && S.type === ft ? x.push(...E(S.props.children)) : x.push(S);
3743
3743
  }), x;
3744
3744
  }
3745
3745
  const A = E(n), L = A.filter(
3746
- (M) => pe(M) && M.type === Ce
3746
+ (M) => pe(M) && M.type === Me
3747
3747
  ), V = vn({
3748
3748
  children: n,
3749
3749
  onItemSelected: t,
@@ -3760,7 +3760,7 @@ const zn = ({
3760
3760
  });
3761
3761
  p = { duration: 0.3, ...p };
3762
3762
  const H = W(!1);
3763
- return H.current = !1, $(() => {
3763
+ return H.current = !1, R(() => {
3764
3764
  o == null || o(d ?? !1);
3765
3765
  }, [d]), /* @__PURE__ */ Y(
3766
3766
  "div",
@@ -3771,7 +3771,7 @@ const zn = ({
3771
3771
  children: [
3772
3772
  /* @__PURE__ */ Y("div", { className: V.header, children: [
3773
3773
  /* @__PURE__ */ m(
3774
- ge,
3774
+ be,
3775
3775
  {
3776
3776
  onClick: () => h(!d),
3777
3777
  label: d ? a == null ? void 0 : a.opened.label : a == null ? void 0 : a.closed.label,
@@ -3796,12 +3796,12 @@ const zn = ({
3796
3796
  variant: d ? "horizontal" : "vertical",
3797
3797
  selectedItem: w,
3798
3798
  setSelectedItem: b,
3799
- onItemSelected: S,
3799
+ onItemSelected: I,
3800
3800
  transition: p,
3801
3801
  extendedOnly: H.current,
3802
3802
  isExtended: d
3803
3803
  }
3804
- ) : pe(x) && x.type === Ce ? null : pe(x) && x.type === pn ? (H.current = !0, d ? xe(x, {}) : null) : x);
3804
+ ) : pe(x) && x.type === Me ? null : pe(x) && x.type === pn ? (H.current = !0, d ? xe(x, {}) : null) : x);
3805
3805
  })() }),
3806
3806
  /* @__PURE__ */ m("div", { className: "flex-1 max-h-[160px]" })
3807
3807
  ]
@@ -3817,16 +3817,16 @@ function sr(e) {
3817
3817
  }
3818
3818
  export {
3819
3819
  Jn as AnimateOnScrollInit,
3820
- ke as Button,
3820
+ Ce as Button,
3821
3821
  Qn as Card,
3822
3822
  Tn as Carousel,
3823
3823
  nn as CarouselItem,
3824
3824
  jt as CustomScroll,
3825
3825
  rn as Divider,
3826
- Ce as Fab,
3826
+ Me as Fab,
3827
3827
  zn as FabMenu,
3828
3828
  ie as Icon,
3829
- ge as IconButton,
3829
+ be as IconButton,
3830
3830
  ar as NavigationRail,
3831
3831
  yn as NavigationRailItem,
3832
3832
  pn as NavigationRailSection,
@@ -3859,7 +3859,7 @@ export {
3859
3859
  Wn as dividerStyle,
3860
3860
  Pn as fabMenuStyle,
3861
3861
  An as fabStyle,
3862
- $e as getClassNames,
3862
+ Re as getClassNames,
3863
3863
  Hn as iconButtonStyle,
3864
3864
  ct as initAnimateOnScroll,
3865
3865
  he as normalize,