@ahmetilhn/hanui 2.0.5 → 2.0.6

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/build/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as a, jsxs as g, Fragment as fe } from "react/jsx-runtime";
3
- import { useContext as cn, createContext as ln, useMemo as Tt, useEffect as R, useRef as S, useCallback as z, useState as P, useLayoutEffect as Ea, memo as I, forwardRef as xe, useId as J, isValidElement as La, cloneElement as Sa, Children as dn } from "react";
3
+ import { useContext as cn, createContext as ln, useMemo as Tt, useEffect as S, useRef as R, useCallback as z, useState as P, useLayoutEffect as Ea, memo as I, forwardRef as xe, useId as J, isValidElement as La, cloneElement as Sa, Children as dn } from "react";
4
4
  import { isClient as he, isDefined as ut, normalize as pa, isNumber as ma } from "@ahmetilhn/handy-utils";
5
5
  import { ArrowRight as _n, XLg as He, Search as Ra, CaretDownFill as Aa, CheckLg as Ht, StarFill as ea, DashLg as Ma, PlusLg as un, ExclamationCircleFill as Ft, CloudArrowUpFill as hn, XCircleFill as Ba, ExclamationTriangleFill as ra, CheckCircleFill as Fa, InfoCircleFill as Pa, CaretRightFill as Kt, CaretLeftFill as Oa, ClipboardCheckFill as pn, ClipboardFill as mn, StarHalf as bn, ArrowDownShort as gn, ArrowUpShort as fn, QuestionCircleFill as vn, TrashFill as yn } from "react-bootstrap-icons";
6
6
  import { createPortal as Et } from "react-dom";
@@ -146,7 +146,7 @@ const T = {
146
146
  /** 9,82:1 koyu zemin üzerinde. */
147
147
  dark: "#f0b429"
148
148
  }, B = (e, t) => {
149
- const n = e.replace("#", ""), r = n.length === 3 ? n.split("").map((d) => d + d).join("") : n, o = parseInt(r.slice(0, 2), 16), s = parseInt(r.slice(2, 4), 16), i = parseInt(r.slice(4, 6), 16);
149
+ const n = e.replace("#", ""), r = n.length === 3 ? n.split("").map((_) => _ + _).join("") : n, o = parseInt(r.slice(0, 2), 16), s = parseInt(r.slice(2, 4), 16), i = parseInt(r.slice(4, 6), 16);
150
150
  return `rgba(${o}, ${s}, ${i}, ${t})`;
151
151
  }, ie = "#000000", wn = {
152
152
  // --- Yüzey ---
@@ -549,11 +549,11 @@ const T = {
549
549
  const n = e === "dark" ? xn : wn, r = (e === "dark" ? t == null ? void 0 : t.dark : t == null ? void 0 : t.light) ?? {};
550
550
  return { ...n, ...r };
551
551
  }, kn = (e) => {
552
- const t = [], n = (i, d = " ") => Object.entries(i).map(([u, l]) => `${d}${ba}${u}: ${l};`).join(`
552
+ const t = [], n = (i, _ = " ") => Object.entries(i).map(([u, d]) => `${_}${ba}${u}: ${d};`).join(`
553
553
  `), r = e.fonts ?? {}, o = Object.entries(r).filter(([, i]) => !!i);
554
554
  o.length > 0 && t.push(
555
555
  `:root {
556
- ${o.map(([i, d]) => ` ${ba}font-${i}: ${d};`).join(`
556
+ ${o.map(([i, _]) => ` ${ba}font-${i}: ${_};`).join(`
557
557
  `)}
558
558
  }`
559
559
  );
@@ -603,10 +603,10 @@ ${n(
603
603
  r.id = ga, r.textContent = t, n || document.head.appendChild(r);
604
604
  }, Ua = ln({}), j = () => cn(Ua), ru = ({ children: e, theme: t, linkComponent: n, labels: r }) => {
605
605
  const o = Tt(() => t ? JSON.stringify(t) : "", [t]);
606
- R(() => {
606
+ S(() => {
607
607
  Ka(t);
608
608
  }, [o]);
609
- const s = S(t);
609
+ const s = R(t);
610
610
  s.current = t;
611
611
  const i = Tt(
612
612
  () => ({ theme: s.current, linkComponent: n, labels: r }),
@@ -644,53 +644,53 @@ ${n(
644
644
  return e === "dark" || e === "light" ? e : "system";
645
645
  }, iu = () => {
646
646
  const [e, t] = P("light"), [n, r] = P("light"), [o, s] = P(!1);
647
- R(() => {
647
+ S(() => {
648
648
  t(In()), r(va()), s(!0);
649
- }, []), R(() => {
649
+ }, []), S(() => {
650
650
  if (!he() || !window.matchMedia) return;
651
- const l = window.matchMedia("(prefers-color-scheme: dark)"), c = () => r(va());
652
- return l.addEventListener("change", c), () => l.removeEventListener("change", c);
651
+ const d = window.matchMedia("(prefers-color-scheme: dark)"), c = () => r(va());
652
+ return d.addEventListener("change", c), () => d.removeEventListener("change", c);
653
653
  }, []);
654
- const i = e === "system" ? n : e, d = z((l) => {
654
+ const i = e === "system" ? n : e, _ = z((d) => {
655
655
  if (!he()) return;
656
656
  const c = document.documentElement;
657
- c.classList.add(fa), l === "system" ? c.removeAttribute(Ve) : c.setAttribute(Ve, l), t(l), window.requestAnimationFrame(() => {
657
+ c.classList.add(fa), d === "system" ? c.removeAttribute(Ve) : c.setAttribute(Ve, d), t(d), window.requestAnimationFrame(() => {
658
658
  window.requestAnimationFrame(() => c.classList.remove(fa));
659
659
  });
660
660
  }, []), u = z(
661
- () => d(i === "dark" ? "light" : "dark"),
662
- [i, d]
661
+ () => _(i === "dark" ? "light" : "dark"),
662
+ [i, _]
663
663
  );
664
- return { scheme: i, preference: e, setScheme: d, toggle: u, isReady: o };
664
+ return { scheme: i, preference: e, setScheme: _, toggle: u, isReady: o };
665
665
  }, ia = (e, t) => {
666
666
  typeof (e == null ? void 0 : e.scrollIntoView) == "function" && e.scrollIntoView(t);
667
667
  }, qa = ({ count: e, isOpen: t, initialIndex: n = 0, onSelect: r, onClose: o }, { hasSpaceSelect: s = !1 } = {}) => {
668
- const [i, d] = P(n), u = S(null);
669
- R(() => {
670
- t && d(n);
671
- }, [t, n]), R(() => {
672
- d((c) => c >= e ? Math.max(0, e - 1) : c);
673
- }, [e]), R(() => {
668
+ const [i, _] = P(n), u = R(null);
669
+ S(() => {
670
+ t && _(n);
671
+ }, [t, n]), S(() => {
672
+ _((c) => c >= e ? Math.max(0, e - 1) : c);
673
+ }, [e]), S(() => {
674
674
  var c;
675
675
  t && ia((c = u.current) == null ? void 0 : c.querySelector(`[data-index="${i}"]`), {
676
676
  block: "nearest"
677
677
  });
678
678
  }, [i, t, e]);
679
- const l = z(
679
+ const d = z(
680
680
  (c) => {
681
- const _ = e - 1;
681
+ const l = e - 1;
682
682
  switch (c.key) {
683
683
  case "ArrowDown":
684
- c.preventDefault(), d((h) => h >= _ ? 0 : h + 1);
684
+ c.preventDefault(), _((h) => h >= l ? 0 : h + 1);
685
685
  break;
686
686
  case "ArrowUp":
687
- c.preventDefault(), d((h) => h <= 0 ? _ : h - 1);
687
+ c.preventDefault(), _((h) => h <= 0 ? l : h - 1);
688
688
  break;
689
689
  case "Home":
690
- c.preventDefault(), d(0);
690
+ c.preventDefault(), _(0);
691
691
  break;
692
692
  case "End":
693
- c.preventDefault(), d(_);
693
+ c.preventDefault(), _(l);
694
694
  break;
695
695
  case " ":
696
696
  case "Enter": {
@@ -708,7 +708,7 @@ ${n(
708
708
  },
709
709
  [i, e, s, o, r]
710
710
  );
711
- return { activeIndex: i, setActiveIndex: d, listRef: u, handleKeyDown: l };
711
+ return { activeIndex: i, setActiveIndex: _, listRef: u, handleKeyDown: d };
712
712
  }, Qt = {
713
713
  top: "bottom",
714
714
  bottom: "top",
@@ -720,10 +720,10 @@ ${n(
720
720
  bottom: e.top + e.height + o,
721
721
  left: e.left - t.width - o,
722
722
  right: e.left + e.width + o
723
- }[n], d = s ? e.left : e.top, u = s ? e.width : e.height, l = s ? t.width : t.height, c = {
724
- start: d,
725
- center: d + u / 2 - l / 2,
726
- end: d + u - l
723
+ }[n], _ = s ? e.left : e.top, u = s ? e.width : e.height, d = s ? t.width : t.height, c = {
724
+ start: _,
725
+ center: _ + u / 2 - d / 2,
726
+ end: _ + u - d
727
727
  }[r];
728
728
  return s ? { top: i, left: c } : { top: c, left: i };
729
729
  }, wa = (e, t, n, r, o) => ({
@@ -732,11 +732,11 @@ ${n(
732
732
  left: e.left >= r,
733
733
  right: e.left + t.width <= o.width - r
734
734
  })[n], Ut = (e, t, { side: n = "top", align: r = "center", offset: o = 8, padding: s = 8, isOpen: i }) => {
735
- const [d, u] = P({
735
+ const [_, u] = P({
736
736
  style: { position: "fixed", top: 0, left: 0 },
737
737
  side: n,
738
738
  isPositioned: !1
739
- }), l = S(0), c = z(() => {
739
+ }), d = R(0), c = z(() => {
740
740
  const m = e.current, x = t.current;
741
741
  if (!m || !x) return;
742
742
  const b = m.getBoundingClientRect(), p = x.getBoundingClientRect(), y = { width: window.innerWidth, height: window.innerHeight }, D = Wt(b, p, n, r, o), N = wa(D, p, n, s, y) ? n : wa(
@@ -755,56 +755,56 @@ ${n(
755
755
  side: N,
756
756
  isPositioned: !0
757
757
  });
758
- }, [e, t, n, r, o, s]), _ = z(() => {
759
- l.current || (l.current = window.requestAnimationFrame(() => {
760
- l.current = 0, c();
758
+ }, [e, t, n, r, o, s]), l = z(() => {
759
+ d.current || (d.current = window.requestAnimationFrame(() => {
760
+ d.current = 0, c();
761
761
  }));
762
762
  }, [c]);
763
- return (he() ? Ea : R)(() => {
763
+ return (he() ? Ea : S)(() => {
764
764
  if (!i) {
765
765
  u((x) => x.isPositioned ? { ...x, isPositioned: !1 } : x);
766
766
  return;
767
767
  }
768
- c(), window.addEventListener("resize", _), document.addEventListener("scroll", _, !0);
769
- const m = typeof ResizeObserver > "u" ? null : new ResizeObserver(_);
768
+ c(), window.addEventListener("resize", l), document.addEventListener("scroll", l, !0);
769
+ const m = typeof ResizeObserver > "u" ? null : new ResizeObserver(l);
770
770
  return m && t.current && m.observe(t.current), m && e.current && m.observe(e.current), () => {
771
- window.removeEventListener("resize", _), document.removeEventListener("scroll", _, !0), m == null || m.disconnect(), l.current && (window.cancelAnimationFrame(l.current), l.current = 0);
771
+ window.removeEventListener("resize", l), document.removeEventListener("scroll", l, !0), m == null || m.disconnect(), d.current && (window.cancelAnimationFrame(d.current), d.current = 0);
772
772
  };
773
- }, [i, c, _, e, t]), d;
773
+ }, [i, c, l, e, t]), _;
774
774
  }, Tn = (e, { rowHeight: t = 40, overscan: n = 6, isEnabled: r = !0 } = {}) => {
775
- const o = S(null), [s, i] = P({
775
+ const o = R(null), [s, i] = P({
776
776
  start: 0,
777
777
  end: e,
778
778
  totalHeight: e * t,
779
779
  offset: 0
780
- }), d = z(() => {
781
- const l = o.current;
782
- if (!r || !l || l.clientHeight === 0) {
783
- i({ start: 0, end: e, totalHeight: e * t, offset: 0 });
784
- return;
785
- }
786
- const c = Math.ceil(l.clientHeight / t), _ = Math.floor(l.scrollTop / t), h = Math.max(0, _ - n), m = Math.min(e, _ + c + n);
787
- i({ start: h, end: m, totalHeight: e * t, offset: h * t });
780
+ }), _ = z(() => {
781
+ const d = o.current, c = !r || !d || d.clientHeight === 0 ? { start: 0, end: e, totalHeight: e * t, offset: 0 } : (() => {
782
+ const l = Math.ceil(d.clientHeight / t), h = Math.floor(d.scrollTop / t), m = Math.max(0, h - n), x = Math.min(e, h + l + n);
783
+ return { start: m, end: x, totalHeight: e * t, offset: m * t };
784
+ })();
785
+ i(
786
+ (l) => l.start === c.start && l.end === c.end && l.totalHeight === c.totalHeight && l.offset === c.offset ? l : c
787
+ );
788
788
  }, [e, r, n, t]);
789
- R(() => {
790
- const l = o.current;
791
- if (!l) return;
792
- d(), l.addEventListener("scroll", d, { passive: !0 });
793
- const c = typeof ResizeObserver > "u" ? null : new ResizeObserver(d);
794
- return c == null || c.observe(l), () => {
795
- l.removeEventListener("scroll", d), c == null || c.disconnect();
789
+ S(_), S(() => {
790
+ const d = o.current;
791
+ if (!d) return;
792
+ d.addEventListener("scroll", _, { passive: !0 });
793
+ const c = typeof ResizeObserver > "u" ? null : new ResizeObserver(_);
794
+ return c == null || c.observe(d), () => {
795
+ d.removeEventListener("scroll", _), c == null || c.disconnect();
796
796
  };
797
- }, [d]);
797
+ }, [_]);
798
798
  const u = z(
799
- (l) => {
799
+ (d) => {
800
800
  const c = o.current;
801
801
  if (!c || !r) return;
802
- const _ = l * t, h = _ + t;
803
- _ < c.scrollTop ? c.scrollTop = _ : h > c.scrollTop + c.clientHeight && (c.scrollTop = h - c.clientHeight);
802
+ const l = d * t, h = l + t;
803
+ l < c.scrollTop ? c.scrollTop = l : h > c.scrollTop + c.clientHeight && (c.scrollTop = h - c.clientHeight);
804
804
  },
805
805
  [r, t]
806
806
  );
807
- return { scrollRef: o, range: s, scrollToIndex: u, measure: d };
807
+ return { scrollRef: o, range: s, scrollToIndex: u, measure: _ };
808
808
  };
809
809
  let $t = 0, Ee = null;
810
810
  const Cn = () => /iP(hone|ad|od)/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1, En = () => {
@@ -825,7 +825,7 @@ const Cn = () => /iP(hone|ad|od)/.test(navigator.platform) || navigator.platform
825
825
  const { body: e } = document, { scrollY: t } = Ee;
826
826
  e.style.overflow = Ee.overflow, e.style.position = Ee.position, e.style.top = Ee.top, e.style.width = Ee.width, e.style.paddingRight = Ee.paddingRight, document.documentElement.style.removeProperty("scrollbar-gutter"), Ee = null, window.scrollTo(0, t);
827
827
  }, qt = (e = !0) => {
828
- R(() => {
828
+ S(() => {
829
829
  if (e)
830
830
  return En(), Ln;
831
831
  }, [e]);
@@ -843,7 +843,7 @@ const Sn = 240, Ga = () => {
843
843
  }, xa = () => {
844
844
  ht && (window.cancelAnimationFrame(ht), ht = 0);
845
845
  }, Rn = (e = !0) => {
846
- R(() => {
846
+ S(() => {
847
847
  if (!e) return;
848
848
  const t = window.visualViewport;
849
849
  if (t)
@@ -957,11 +957,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
957
957
  startIcon: o,
958
958
  endIcon: s,
959
959
  className: i,
960
- children: d,
960
+ children: _,
961
961
  disabled: u,
962
- href: l,
962
+ href: d,
963
963
  isExternal: c,
964
- linkProps: _,
964
+ linkProps: l,
965
965
  testId: h,
966
966
  ...m
967
967
  }, x) => {
@@ -975,13 +975,13 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
975
975
  ), p = /* @__PURE__ */ g(fe, { children: [
976
976
  n && /* @__PURE__ */ a(Xa, { size: "sm", className: $e.button__spinner, label: "" }),
977
977
  !n && o && /* @__PURE__ */ a("span", { className: $e.button__icon, children: o }),
978
- /* @__PURE__ */ a("span", { className: $e.button__label, children: d }),
978
+ /* @__PURE__ */ a("span", { className: $e.button__label, children: _ }),
979
979
  s && /* @__PURE__ */ a("span", { className: $e.button__icon, children: s })
980
980
  ] });
981
- return l && c ? /* @__PURE__ */ a(
981
+ return d && c ? /* @__PURE__ */ a(
982
982
  "a",
983
983
  {
984
- href: l,
984
+ href: d,
985
985
  className: b,
986
986
  target: "_blank",
987
987
  rel: "noopener noreferrer",
@@ -989,7 +989,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
989
989
  "data-testid": h,
990
990
  children: p
991
991
  }
992
- ) : l ? /* @__PURE__ */ a(ke, { href: l, className: b, "data-testid": h, ..._, children: p }) : /* @__PURE__ */ a(
992
+ ) : d ? /* @__PURE__ */ a(ke, { href: d, className: b, "data-testid": h, ...l, children: p }) : /* @__PURE__ */ a(
993
993
  "button",
994
994
  {
995
995
  ref: x,
@@ -1020,11 +1020,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1020
1020
  className: o,
1021
1021
  type: s = "button",
1022
1022
  href: i,
1023
- linkProps: d,
1023
+ linkProps: _,
1024
1024
  testId: u,
1025
- ...l
1025
+ ...d
1026
1026
  }, c) => {
1027
- const _ = f(
1027
+ const l = f(
1028
1028
  Zt.iconButton,
1029
1029
  Zt[`iconButton--${n}`],
1030
1030
  Zt[`iconButton--${r}`],
@@ -1034,11 +1034,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1034
1034
  ke,
1035
1035
  {
1036
1036
  href: i,
1037
- className: _,
1037
+ className: l,
1038
1038
  "aria-label": t,
1039
- title: l.title,
1039
+ title: d.title,
1040
1040
  "data-testid": u,
1041
- ...d,
1041
+ ..._,
1042
1042
  children: e
1043
1043
  }
1044
1044
  ) : /* @__PURE__ */ a(
@@ -1046,10 +1046,10 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1046
1046
  {
1047
1047
  ref: c,
1048
1048
  type: s,
1049
- className: _,
1049
+ className: l,
1050
1050
  "aria-label": t,
1051
1051
  "data-testid": u,
1052
- ...l,
1052
+ ...d,
1053
1053
  children: e
1054
1054
  }
1055
1055
  );
@@ -1072,14 +1072,14 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1072
1072
  size: o = "md",
1073
1073
  className: s,
1074
1074
  linkProps: i,
1075
- ...d
1075
+ ..._
1076
1076
  }) => /* @__PURE__ */ g(
1077
1077
  ke,
1078
1078
  {
1079
1079
  href: e,
1080
1080
  className: f(gt.link, gt[`link--${r}`], gt[`link--${o}`], s),
1081
1081
  ...i,
1082
- ...d,
1082
+ ..._,
1083
1083
  children: [
1084
1084
  /* @__PURE__ */ a("span", { className: gt.link__label, children: t }),
1085
1085
  n && /* @__PURE__ */ a(_n, { "aria-hidden": !0, className: gt.link__arrow })
@@ -1097,30 +1097,30 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1097
1097
  "bubble--right": "hanui-bubble--right-EQjUT",
1098
1098
  "hanui-fade-in": "hanui-hanui-fade-in-wwrDx"
1099
1099
  }, ar = 120, nr = 500, rr = ({ content: e, children: t, side: n, position: r, openDelay: o = 300, className: s }) => {
1100
- const [i, d] = P(!1), u = J(), l = n ?? r ?? "top", c = S(null), _ = S(null), h = S(0), m = S(0), x = Ut(c, _, {
1101
- side: l,
1100
+ const [i, _] = P(!1), u = J(), d = n ?? r ?? "top", c = R(null), l = R(null), h = R(0), m = R(0), x = Ut(c, l, {
1101
+ side: d,
1102
1102
  align: "center",
1103
1103
  isOpen: i
1104
1104
  }), b = z(() => {
1105
1105
  h.current && window.clearTimeout(h.current), h.current = 0;
1106
1106
  }, []), p = z(
1107
1107
  (v) => {
1108
- b(), h.current = window.setTimeout(() => d(!0), v);
1108
+ b(), h.current = window.setTimeout(() => _(!0), v);
1109
1109
  },
1110
1110
  [b]
1111
1111
  ), y = z(
1112
1112
  (v = ar) => {
1113
- b(), h.current = window.setTimeout(() => d(!1), v);
1113
+ b(), h.current = window.setTimeout(() => _(!1), v);
1114
1114
  },
1115
1115
  [b]
1116
1116
  );
1117
- R(() => b, [b]), R(() => {
1117
+ S(() => b, [b]), S(() => {
1118
1118
  if (!i) return;
1119
1119
  const v = ($) => {
1120
1120
  $.key === "Escape" && y(0);
1121
1121
  };
1122
1122
  return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
1123
- }, [i, y]), R(() => {
1123
+ }, [i, y]), S(() => {
1124
1124
  if (!i) return;
1125
1125
  const v = ($) => {
1126
1126
  var k;
@@ -1131,7 +1131,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1131
1131
  const D = () => {
1132
1132
  m.current && window.clearTimeout(m.current), m.current = 0;
1133
1133
  }, N = (v) => {
1134
- v.pointerType !== "mouse" && (m.current = window.setTimeout(() => d(!0), nr));
1134
+ v.pointerType !== "mouse" && (m.current = window.setTimeout(() => _(!0), nr));
1135
1135
  };
1136
1136
  return /* @__PURE__ */ g(fe, { children: [
1137
1137
  /* @__PURE__ */ a(
@@ -1158,7 +1158,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1158
1158
  /* @__PURE__ */ a(
1159
1159
  "span",
1160
1160
  {
1161
- ref: _,
1161
+ ref: l,
1162
1162
  id: u,
1163
1163
  role: "tooltip",
1164
1164
  className: f(Rt.bubble, Rt[`bubble--${x.side}`]),
@@ -1197,7 +1197,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1197
1197
  className: s,
1198
1198
  testId: i
1199
1199
  }) => {
1200
- const d = J(), u = S(null), l = S(null), c = S(null), _ = S({ text: "", at: 0 }), [h, m] = P(!1), [x, b] = P(0), p = Ut(u, l, { side: r, align: o, isOpen: h }), y = cr(t), D = z(
1200
+ const _ = J(), u = R(null), d = R(null), c = R(null), l = R({ text: "", at: 0 }), [h, m] = P(!1), [x, b] = P(0), p = Ut(u, d, { side: r, align: o, isOpen: h }), y = cr(t), D = z(
1201
1201
  (w) => {
1202
1202
  y.length !== 0 && (c.current = pt(), b(w === "first" ? y[0] : y[y.length - 1]), m(!0));
1203
1203
  },
@@ -1206,15 +1206,15 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1206
1206
  var w;
1207
1207
  m(!1), (w = c.current) == null || w.call(c), c.current = null;
1208
1208
  }, []);
1209
- R(() => {
1209
+ S(() => {
1210
1210
  var w, M;
1211
- h && ((M = (w = l.current) == null ? void 0 : w.querySelector(`[data-index="${x}"]`)) == null || M.focus({ preventScroll: !0 }));
1212
- }, [h, x]), R(() => {
1211
+ h && ((M = (w = d.current) == null ? void 0 : w.querySelector(`[data-index="${x}"]`)) == null || M.focus({ preventScroll: !0 }));
1212
+ }, [h, x]), S(() => {
1213
1213
  if (!h) return;
1214
1214
  const w = (M) => {
1215
1215
  var W, Z;
1216
1216
  const U = M.target;
1217
- (W = l.current) != null && W.contains(U) || (Z = u.current) != null && Z.contains(U) || N();
1217
+ (W = d.current) != null && W.contains(U) || (Z = u.current) != null && Z.contains(U) || N();
1218
1218
  };
1219
1219
  return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
1220
1220
  }, [h, N]);
@@ -1222,8 +1222,8 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1222
1222
  const U = (y.indexOf(x) + w + y.length) % y.length;
1223
1223
  b(y[U]);
1224
1224
  }, $ = (w) => {
1225
- const M = Date.now(), U = M - _.current.at > 500 ? w : _.current.text + w;
1226
- _.current = { text: U, at: M };
1225
+ const M = Date.now(), U = M - l.current.at > 500 ? w : l.current.text + w;
1226
+ l.current = { text: U, at: M };
1227
1227
  const W = y.find(
1228
1228
  (Z) => t[Z].label.toLocaleLowerCase("tr").startsWith(U.toLocaleLowerCase("tr"))
1229
1229
  );
@@ -1263,7 +1263,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1263
1263
  ref: u,
1264
1264
  "aria-haspopup": "menu",
1265
1265
  "aria-expanded": h,
1266
- "aria-controls": h ? d : void 0,
1266
+ "aria-controls": h ? _ : void 0,
1267
1267
  onClick: (w) => {
1268
1268
  var M;
1269
1269
  (M = C.onClick) == null || M.call(C, w), h ? N() : D("first");
@@ -1279,8 +1279,8 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1279
1279
  /* @__PURE__ */ a(
1280
1280
  "div",
1281
1281
  {
1282
- ref: l,
1283
- id: d,
1282
+ ref: d,
1283
+ id: _,
1284
1284
  role: "menu",
1285
1285
  "aria-label": n,
1286
1286
  className: f(ft.menu, ft[`menu--${p.side}`], s),
@@ -1332,31 +1332,31 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1332
1332
  align: o = "start",
1333
1333
  isOpen: s,
1334
1334
  onOpenChange: i,
1335
- className: d,
1335
+ className: _,
1336
1336
  testId: u
1337
1337
  }) => {
1338
- const l = J(), c = S(null), _ = S(null), h = S(null), [m, x] = P(!1), b = s !== void 0, p = b ? s : m, y = Ut(c, _, { side: r, align: o, isOpen: p }), D = z(
1338
+ const d = J(), c = R(null), l = R(null), h = R(null), [m, x] = P(!1), b = s !== void 0, p = b ? s : m, y = Ut(c, l, { side: r, align: o, isOpen: p }), D = z(
1339
1339
  ($) => {
1340
1340
  b || x($), i == null || i($);
1341
1341
  },
1342
1342
  [b, i]
1343
1343
  );
1344
- if (R(() => {
1344
+ if (S(() => {
1345
1345
  if (!p) return;
1346
1346
  h.current = pt();
1347
- const $ = _.current;
1347
+ const $ = l.current;
1348
1348
  return $ && jt($), () => {
1349
1349
  var k;
1350
1350
  (k = h.current) == null || k.call(h), h.current = null;
1351
1351
  };
1352
- }, [p]), R(() => {
1352
+ }, [p]), S(() => {
1353
1353
  if (!p) return;
1354
1354
  const $ = (L) => {
1355
1355
  L.key === "Escape" && D(!1);
1356
1356
  }, k = (L) => {
1357
1357
  var E, w;
1358
1358
  const C = L.target;
1359
- (E = _.current) != null && E.contains(C) || (w = c.current) != null && w.contains(C) || D(!1);
1359
+ (E = l.current) != null && E.contains(C) || (w = c.current) != null && w.contains(C) || D(!1);
1360
1360
  };
1361
1361
  return document.addEventListener("keydown", $), document.addEventListener("mousedown", k), () => {
1362
1362
  document.removeEventListener("keydown", $), document.removeEventListener("mousedown", k);
@@ -1366,7 +1366,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1366
1366
  ref: c,
1367
1367
  "aria-expanded": p,
1368
1368
  "aria-haspopup": "dialog",
1369
- "aria-controls": p ? l : void 0,
1369
+ "aria-controls": p ? d : void 0,
1370
1370
  onClick: ($) => {
1371
1371
  var k;
1372
1372
  (k = N.onClick) == null || k.call(N, $), D(!p);
@@ -1378,11 +1378,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1378
1378
  /* @__PURE__ */ a(
1379
1379
  "div",
1380
1380
  {
1381
- ref: _,
1382
- id: l,
1381
+ ref: l,
1382
+ id: d,
1383
1383
  role: "dialog",
1384
1384
  "aria-label": n,
1385
- className: f($a.popover, $a[`popover--${y.side}`], d),
1385
+ className: f($a.popover, $a[`popover--${y.side}`], _),
1386
1386
  style: {
1387
1387
  ...y.style,
1388
1388
  visibility: y.isPositioned ? "visible" : "hidden"
@@ -1416,11 +1416,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1416
1416
  isSelected: o,
1417
1417
  size: s = "md",
1418
1418
  label: i,
1419
- href: d,
1419
+ href: _,
1420
1420
  linkProps: u,
1421
- className: l,
1421
+ className: d,
1422
1422
  type: c = "button",
1423
- role: _,
1423
+ role: l,
1424
1424
  testId: h,
1425
1425
  ...m
1426
1426
  }, x) => {
@@ -1429,17 +1429,17 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1429
1429
  Me[`chip--${s}`],
1430
1430
  o && Me["chip--selected"],
1431
1431
  !e && Me["chip--iconOnly"],
1432
- l
1432
+ d
1433
1433
  ), p = /* @__PURE__ */ g(fe, { children: [
1434
1434
  t && /* @__PURE__ */ a("span", { className: Me.chip__icon, "aria-hidden": !0, children: t }),
1435
1435
  e && /* @__PURE__ */ a("span", { className: Me.chip__label, children: e }),
1436
1436
  ut(r) && /* @__PURE__ */ a("span", { className: Me.chip__count, children: r }),
1437
1437
  n && /* @__PURE__ */ a("span", { className: Me.chip__icon, "aria-hidden": !0, children: n })
1438
1438
  ] });
1439
- return d ? /* @__PURE__ */ a(
1439
+ return _ ? /* @__PURE__ */ a(
1440
1440
  ke,
1441
1441
  {
1442
- href: d,
1442
+ href: _,
1443
1443
  className: b,
1444
1444
  "aria-label": e ? void 0 : i,
1445
1445
  "aria-current": o ? "page" : void 0,
@@ -1452,11 +1452,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1452
1452
  {
1453
1453
  ref: x,
1454
1454
  type: c,
1455
- role: _,
1455
+ role: l,
1456
1456
  className: b,
1457
1457
  "aria-label": e ? void 0 : i,
1458
1458
  "data-testid": h,
1459
- ..._ === "radio" ? { "aria-checked": !!o } : { "aria-pressed": !!o },
1459
+ ...l === "radio" ? { "aria-checked": !!o } : { "aria-pressed": !!o },
1460
1460
  ...m,
1461
1461
  children: p
1462
1462
  }
@@ -1473,15 +1473,15 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1473
1473
  className: o,
1474
1474
  ...s
1475
1475
  }) => {
1476
- var _;
1477
- const i = S(null), d = (h) => s.isMultiple ? s.value.includes(h) : s.value === h, u = (h) => {
1476
+ var l;
1477
+ const i = R(null), _ = (h) => s.isMultiple ? s.value.includes(h) : s.value === h, u = (h) => {
1478
1478
  if (s.isMultiple) {
1479
1479
  const m = s.value.includes(h) ? s.value.filter((x) => x !== h) : [...s.value, h];
1480
1480
  s.onChange(m);
1481
1481
  return;
1482
1482
  }
1483
1483
  s.onChange(s.value === h ? null : h);
1484
- }, l = (h) => {
1484
+ }, d = (h) => {
1485
1485
  var y, D;
1486
1486
  if (s.isMultiple) return;
1487
1487
  const m = h.key === "ArrowRight" || h.key === "ArrowDown" ? 1 : h.key === "ArrowLeft" || h.key === "ArrowUp" ? -1 : 0;
@@ -1491,7 +1491,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1491
1491
  if (x.length === 0) return;
1492
1492
  const b = x.findIndex((N) => N.value === s.value), p = x[(b + m + x.length) % x.length];
1493
1493
  s.onChange(p.value), (D = (y = i.current) == null ? void 0 : y.querySelector(`[data-chip-value="${p.value}"]`)) == null || D.focus();
1494
- }, c = s.isMultiple ? null : s.value ?? ((_ = e.find((h) => !h.isDisabled)) == null ? void 0 : _.value) ?? null;
1494
+ }, c = s.isMultiple ? null : s.value ?? ((l = e.find((h) => !h.isDisabled)) == null ? void 0 : l.value) ?? null;
1495
1495
  return /* @__PURE__ */ a(
1496
1496
  "div",
1497
1497
  {
@@ -1499,14 +1499,14 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1499
1499
  className: f(Da.group, r && Da["group--scrollable"], o),
1500
1500
  role: s.isMultiple ? "group" : "radiogroup",
1501
1501
  "aria-label": t,
1502
- onKeyDown: l,
1502
+ onKeyDown: d,
1503
1503
  children: e.map((h) => /* @__PURE__ */ a(
1504
1504
  gr,
1505
1505
  {
1506
1506
  size: n,
1507
1507
  icon: h.icon,
1508
1508
  count: h.count,
1509
- isSelected: d(h.value),
1509
+ isSelected: _(h.value),
1510
1510
  disabled: h.isDisabled,
1511
1511
  role: s.isMultiple ? void 0 : "radio",
1512
1512
  tabIndex: s.isMultiple || h.value === c ? 0 : -1,
@@ -1533,16 +1533,16 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1533
1533
  toolbar: o,
1534
1534
  footer: s,
1535
1535
  closeAbove: i = sa,
1536
- className: d,
1536
+ className: _,
1537
1537
  testId: u
1538
1538
  }) => {
1539
- const { labels: l } = j(), c = J(), _ = S(null);
1540
- Rn(), qt(), R(() => {
1539
+ const { labels: d } = j(), c = J(), l = R(null);
1540
+ Rn(), qt(), S(() => {
1541
1541
  const x = pt(), { token: b, pop: p } = Yt();
1542
- return _.current = b, () => {
1543
- p(), _.current = null, x();
1542
+ return l.current = b, () => {
1543
+ p(), l.current = null, x();
1544
1544
  };
1545
- }, []), R(() => {
1545
+ }, []), S(() => {
1546
1546
  const x = window.matchMedia(i);
1547
1547
  return x.addEventListener("change", n), () => x.removeEventListener("change", n);
1548
1548
  }, [i, n]);
@@ -1559,11 +1559,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1559
1559
  "dialog",
1560
1560
  {
1561
1561
  ref: h,
1562
- className: f(qe.sheet, d),
1562
+ className: f(qe.sheet, _),
1563
1563
  "aria-labelledby": c,
1564
1564
  "data-testid": u,
1565
1565
  onCancel: (x) => {
1566
- x.preventDefault(), !(_.current && !Gt(_.current)) && n();
1566
+ x.preventDefault(), !(l.current && !Gt(l.current)) && n();
1567
1567
  },
1568
1568
  onClick: m,
1569
1569
  children: [
@@ -1573,7 +1573,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1573
1573
  Re,
1574
1574
  {
1575
1575
  icon: /* @__PURE__ */ a(He, { "aria-hidden": !0 }),
1576
- label: H("BottomSheet.closeLabel", t, l == null ? void 0 : l.close),
1576
+ label: H("BottomSheet.closeLabel", t, d == null ? void 0 : d.close),
1577
1577
  variant: "ghost",
1578
1578
  size: "sm",
1579
1579
  onClick: n
@@ -1623,11 +1623,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1623
1623
  isSearchHidden: o,
1624
1624
  onSearch: s,
1625
1625
  isLoading: i,
1626
- isDisabled: d,
1626
+ isDisabled: _,
1627
1627
  isClearable: u,
1628
- icon: l,
1628
+ icon: d,
1629
1629
  id: c,
1630
- className: _,
1630
+ className: l,
1631
1631
  testId: h,
1632
1632
  "aria-describedby": m,
1633
1633
  "aria-invalid": x
@@ -1662,18 +1662,18 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1662
1662
  var A;
1663
1663
  return H("Combobox.clearLabel", r.clearLabel, (A = b == null ? void 0 : b.combobox) == null ? void 0 : A.clearLabel);
1664
1664
  }
1665
- }, y = J(), D = c ?? y, N = `${D}-listbox`, v = S(null), $ = S(null), k = S(null), L = S(null), [C, E] = P(null), w = C !== null, [M, U] = P(""), [W, Z] = P(null), Y = Tt(() => {
1665
+ }, y = J(), D = c ?? y, N = `${D}-listbox`, v = R(null), $ = R(null), k = R(null), L = R(null), [C, E] = P(null), w = C !== null, [M, U] = P(""), [W, Z] = P(null), Y = Tt(() => {
1666
1666
  if (s || M.trim() === "") return e;
1667
1667
  const A = M.trim();
1668
1668
  return e.filter(
1669
1669
  (oe) => Ot(oe.label, A) || (oe.description ? Ot(oe.description, A) : !1)
1670
1670
  );
1671
1671
  }, [e, M, s]), de = e.find((A) => A.value === t) ?? null;
1672
- R(() => {
1672
+ S(() => {
1673
1673
  de ? Z(de.label) : t === null && Z(null);
1674
1674
  }, [de, t]);
1675
- const at = (de == null ? void 0 : de.label) ?? W, Ne = S(s);
1676
- Ne.current = s, R(() => {
1675
+ const at = (de == null ? void 0 : de.label) ?? W, Ne = R(s);
1676
+ Ne.current = s, S(() => {
1677
1677
  if (!w || !Ne.current) return;
1678
1678
  const A = window.setTimeout(() => {
1679
1679
  var oe;
@@ -1684,23 +1684,23 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1684
1684
  const Ae = z(() => {
1685
1685
  E(null), U("");
1686
1686
  }, []), Lt = z(() => {
1687
- d || (E(window.matchMedia(sa).matches ? "popover" : "sheet"), U(""));
1688
- }, [d]);
1689
- R(() => {
1687
+ _ || (E(window.matchMedia(sa).matches ? "popover" : "sheet"), U(""));
1688
+ }, [_]);
1689
+ S(() => {
1690
1690
  if (C !== "popover") return;
1691
1691
  const A = (oe) => {
1692
1692
  var pe;
1693
1693
  (pe = v.current) != null && pe.contains(oe.target) || Ae();
1694
1694
  };
1695
1695
  return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
1696
- }, [C, Ae]), R(() => {
1696
+ }, [C, Ae]), S(() => {
1697
1697
  var A;
1698
1698
  C === "popover" && ((A = L.current) == null || A.focus({ preventScroll: !0 }));
1699
1699
  }, [C]);
1700
1700
  const mt = (A) => {
1701
1701
  A.isDisabled || (Z(A.label), n(A.value), Ae());
1702
- }, K = S(!1);
1703
- R(() => {
1702
+ }, K = R(!1);
1703
+ S(() => {
1704
1704
  var A;
1705
1705
  K.current && !w && ((A = $.current) == null || A.focus()), K.current = w;
1706
1706
  }, [w]);
@@ -1725,7 +1725,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1725
1725
  rowHeight: Ia,
1726
1726
  isEnabled: Ke
1727
1727
  });
1728
- R(() => {
1728
+ S(() => {
1729
1729
  Ke && da(re);
1730
1730
  }, [re, Ke, da]);
1731
1731
  const an = (A) => {
@@ -1803,7 +1803,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1803
1803
  }
1804
1804
  );
1805
1805
  };
1806
- return /* @__PURE__ */ g("div", { ref: v, className: f(q.combobox, _), "data-testid": h, children: [
1806
+ return /* @__PURE__ */ g("div", { ref: v, className: f(q.combobox, l), "data-testid": h, children: [
1807
1807
  /* @__PURE__ */ g(
1808
1808
  "button",
1809
1809
  {
@@ -1815,9 +1815,9 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1815
1815
  !at && q["combobox__trigger--empty"],
1816
1816
  w && q["combobox__trigger--open"],
1817
1817
  x && q["combobox__trigger--invalid"],
1818
- u && at && !d && q["combobox__trigger--clearable"]
1818
+ u && at && !_ && q["combobox__trigger--clearable"]
1819
1819
  ),
1820
- disabled: d,
1820
+ disabled: _,
1821
1821
  "aria-haspopup": "listbox",
1822
1822
  "aria-expanded": w,
1823
1823
  "aria-controls": w ? N : void 0,
@@ -1825,7 +1825,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1825
1825
  "aria-describedby": m,
1826
1826
  onClick: () => w ? Ae() : Lt(),
1827
1827
  children: [
1828
- l && /* @__PURE__ */ a("span", { className: q.combobox__leadingIcon, "aria-hidden": !0, children: l }),
1828
+ d && /* @__PURE__ */ a("span", { className: q.combobox__leadingIcon, "aria-hidden": !0, children: d }),
1829
1829
  /* @__PURE__ */ a("span", { className: q.combobox__value, children: at ?? r.placeholder }),
1830
1830
  /* @__PURE__ */ a(
1831
1831
  Aa,
@@ -1837,7 +1837,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1837
1837
  ]
1838
1838
  }
1839
1839
  ),
1840
- u && at && !d && /* @__PURE__ */ a(
1840
+ u && at && !_ && /* @__PURE__ */ a(
1841
1841
  "button",
1842
1842
  {
1843
1843
  type: "button",
@@ -1893,16 +1893,16 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1893
1893
  isIconOnly: o,
1894
1894
  size: s = "md",
1895
1895
  className: i,
1896
- testId: d
1896
+ testId: _
1897
1897
  }) => {
1898
- const u = S(null), l = (c) => {
1898
+ const u = R(null), d = (c) => {
1899
1899
  var b, p;
1900
- const _ = c.key === "ArrowRight" || c.key === "ArrowDown" ? 1 : c.key === "ArrowLeft" || c.key === "ArrowUp" ? -1 : 0;
1901
- if (_ === 0) return;
1900
+ const l = c.key === "ArrowRight" || c.key === "ArrowDown" ? 1 : c.key === "ArrowLeft" || c.key === "ArrowUp" ? -1 : 0;
1901
+ if (l === 0) return;
1902
1902
  c.preventDefault();
1903
1903
  const h = e.filter((y) => !y.isDisabled);
1904
1904
  if (h.length === 0) return;
1905
- const m = h.findIndex((y) => y.value === t), x = h[(m + _ + h.length) % h.length];
1905
+ const m = h.findIndex((y) => y.value === t), x = h[(m + l + h.length) % h.length];
1906
1906
  n(x.value), (p = (b = u.current) == null ? void 0 : b.querySelector(`[data-value="${x.value}"]`)) == null || p.focus({ preventScroll: !0 });
1907
1907
  };
1908
1908
  return /* @__PURE__ */ a(
@@ -1912,25 +1912,25 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1912
1912
  role: "radiogroup",
1913
1913
  "aria-label": r,
1914
1914
  className: f(ot.segmented, ot[`segmented--${s}`], i),
1915
- "data-testid": d,
1916
- onKeyDown: l,
1915
+ "data-testid": _,
1916
+ onKeyDown: d,
1917
1917
  children: e.map((c) => {
1918
- const _ = c.value === t;
1918
+ const l = c.value === t;
1919
1919
  return /* @__PURE__ */ g(
1920
1920
  "button",
1921
1921
  {
1922
1922
  type: "button",
1923
1923
  role: "radio",
1924
- "aria-checked": _,
1924
+ "aria-checked": l,
1925
1925
  "aria-label": o ? c.label : void 0,
1926
1926
  "data-value": c.value,
1927
1927
  disabled: c.isDisabled,
1928
- tabIndex: _ ? 0 : -1,
1928
+ tabIndex: l ? 0 : -1,
1929
1929
  className: f(
1930
1930
  ot.segmented__item,
1931
- _ && ot["segmented__item--selected"]
1931
+ l && ot["segmented__item--selected"]
1932
1932
  ),
1933
- onClick: () => !_ && n(c.value),
1933
+ onClick: () => !l && n(c.value),
1934
1934
  children: [
1935
1935
  c.icon && /* @__PURE__ */ a("span", { className: ot.segmented__icon, "aria-hidden": !0, children: c.icon }),
1936
1936
  !o && /* @__PURE__ */ a("span", { className: ot.segmented__label, children: c.label })
@@ -1973,24 +1973,24 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
1973
1973
  placeholder: o,
1974
1974
  closeLabel: s,
1975
1975
  icon: i,
1976
- size: d = "md",
1976
+ size: _ = "md",
1977
1977
  align: u = "start",
1978
- isDisabled: l,
1978
+ isDisabled: d,
1979
1979
  id: c,
1980
- className: _,
1980
+ className: l,
1981
1981
  testId: h,
1982
1982
  "aria-describedby": m,
1983
1983
  "aria-invalid": x
1984
1984
  }) => {
1985
- const { labels: b } = j(), p = H("Select.placeholder", o, b == null ? void 0 : b.selectPlaceholder), y = J(), D = c ?? y, N = `${D}-listbox`, v = (K) => `${D}-option-${K}`, $ = S(null), k = S(null), [L, C] = P(null), E = L !== null, w = e.findIndex((K) => K.value === t), M = w >= 0 ? e[w] : null, U = z(() => C(null), []), W = z(() => {
1986
- l || e.length === 0 || C(window.matchMedia(sa).matches ? "popover" : "sheet");
1987
- }, [l, e.length]), Z = (K) => {
1985
+ const { labels: b } = j(), p = H("Select.placeholder", o, b == null ? void 0 : b.selectPlaceholder), y = J(), D = c ?? y, N = `${D}-listbox`, v = (K) => `${D}-option-${K}`, $ = R(null), k = R(null), [L, C] = P(null), E = L !== null, w = e.findIndex((K) => K.value === t), M = w >= 0 ? e[w] : null, U = z(() => C(null), []), W = z(() => {
1986
+ d || e.length === 0 || C(window.matchMedia(sa).matches ? "popover" : "sheet");
1987
+ }, [d, e.length]), Z = (K) => {
1988
1988
  K.isDisabled || (n(K.value), U());
1989
- }, Y = S(!1);
1990
- R(() => {
1989
+ }, Y = R(!1);
1990
+ S(() => {
1991
1991
  var K;
1992
1992
  Y.current && !E && ((K = k.current) == null || K.focus()), Y.current = E;
1993
- }, [E]), R(() => {
1993
+ }, [E]), S(() => {
1994
1994
  if (L !== "popover") return;
1995
1995
  const K = (ee) => {
1996
1996
  var re;
@@ -2008,7 +2008,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2008
2008
  },
2009
2009
  onClose: U
2010
2010
  });
2011
- R(() => {
2011
+ S(() => {
2012
2012
  var K;
2013
2013
  L === "sheet" && ((K = Ne.current) == null || K.focus({ preventScroll: !0 }));
2014
2014
  }, [L, Ne]);
@@ -2057,7 +2057,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2057
2057
  })
2058
2058
  }
2059
2059
  );
2060
- return /* @__PURE__ */ g("span", { ref: $, className: f(X.select, _), "data-testid": h, children: [
2060
+ return /* @__PURE__ */ g("span", { ref: $, className: f(X.select, l), "data-testid": h, children: [
2061
2061
  /* @__PURE__ */ g(
2062
2062
  "button",
2063
2063
  {
@@ -2067,11 +2067,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2067
2067
  role: "combobox",
2068
2068
  className: f(
2069
2069
  X.trigger,
2070
- X[`trigger--${d}`],
2070
+ X[`trigger--${_}`],
2071
2071
  !M && X["trigger--empty"],
2072
2072
  E && X["trigger--open"]
2073
2073
  ),
2074
- disabled: l,
2074
+ disabled: d,
2075
2075
  "aria-haspopup": "listbox",
2076
2076
  "aria-expanded": E,
2077
2077
  "aria-controls": E ? N : void 0,
@@ -2121,7 +2121,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2121
2121
  switch__thumb: vo,
2122
2122
  switch__text: yo
2123
2123
  }, wo = xe(
2124
- ({ label: e, hint: t, isLabelFirst: n, className: r, id: o, testId: s, ...i }, d) => /* @__PURE__ */ g(
2124
+ ({ label: e, hint: t, isLabelFirst: n, className: r, id: o, testId: s, ...i }, _) => /* @__PURE__ */ g(
2125
2125
  "label",
2126
2126
  {
2127
2127
  className: f(Be.switch, n && Be["switch--labelFirst"], r),
@@ -2130,7 +2130,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2130
2130
  /* @__PURE__ */ a(
2131
2131
  "input",
2132
2132
  {
2133
- ref: d,
2133
+ ref: _,
2134
2134
  type: "checkbox",
2135
2135
  role: "switch",
2136
2136
  id: o,
@@ -2177,7 +2177,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2177
2177
  onChange: o,
2178
2178
  children: s,
2179
2179
  className: i,
2180
- id: d,
2180
+ id: _,
2181
2181
  testId: u
2182
2182
  }) => /* @__PURE__ */ g(
2183
2183
  "label",
@@ -2194,7 +2194,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2194
2194
  "input",
2195
2195
  {
2196
2196
  type: "radio",
2197
- id: d,
2197
+ id: _,
2198
2198
  name: e,
2199
2199
  value: t,
2200
2200
  checked: n,
@@ -2224,15 +2224,15 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2224
2224
  onChange: o,
2225
2225
  onCommit: s,
2226
2226
  formatValue: i = String,
2227
- label: d,
2227
+ label: _,
2228
2228
  minLabel: u,
2229
- maxLabel: l,
2229
+ maxLabel: d,
2230
2230
  isDisabled: c,
2231
- className: _,
2231
+ className: l,
2232
2232
  testId: h
2233
2233
  }) => {
2234
2234
  var E, w;
2235
- const { labels: m } = j(), x = H("RangeSlider.minLabel", u, (E = m == null ? void 0 : m.range) == null ? void 0 : E.min), b = H("RangeSlider.maxLabel", l, (w = m == null ? void 0 : m.range) == null ? void 0 : w.max), [p, y] = r, D = z(
2235
+ const { labels: m } = j(), x = H("RangeSlider.minLabel", u, (E = m == null ? void 0 : m.range) == null ? void 0 : E.min), b = H("RangeSlider.maxLabel", d, (w = m == null ? void 0 : m.range) == null ? void 0 : w.max), [p, y] = r, D = z(
2236
2236
  (M) => o([Math.min(M, y), y]),
2237
2237
  [y, o]
2238
2238
  ), N = z(
@@ -2242,9 +2242,9 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2242
2242
  return /* @__PURE__ */ g(
2243
2243
  "div",
2244
2244
  {
2245
- className: f(me.range, c && me["range--disabled"], _),
2245
+ className: f(me.range, c && me["range--disabled"], l),
2246
2246
  role: "group",
2247
- "aria-label": d,
2247
+ "aria-label": _,
2248
2248
  "data-testid": h,
2249
2249
  children: [
2250
2250
  /* @__PURE__ */ g("div", { className: me.range__readout, children: [
@@ -2272,7 +2272,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2272
2272
  step: n,
2273
2273
  value: p,
2274
2274
  disabled: c,
2275
- "aria-label": `${d} — ${x}`,
2275
+ "aria-label": `${_} — ${x}`,
2276
2276
  "aria-valuetext": i(p),
2277
2277
  onChange: (M) => D(Number(M.target.value)),
2278
2278
  onPointerUp: v,
@@ -2290,7 +2290,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2290
2290
  step: n,
2291
2291
  value: y,
2292
2292
  disabled: c,
2293
- "aria-label": `${d} — ${b}`,
2293
+ "aria-label": `${_} — ${b}`,
2294
2294
  "aria-valuetext": i(y),
2295
2295
  onChange: (M) => N(Number(M.target.value)),
2296
2296
  onPointerUp: v,
@@ -2323,16 +2323,16 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2323
2323
  formatStarCount: o,
2324
2324
  isDisabled: s,
2325
2325
  className: i,
2326
- testId: d
2326
+ testId: _
2327
2327
  }) => {
2328
2328
  var x;
2329
- const { labels: u } = j(), l = r ?? ((x = u == null ? void 0 : u.rating) == null ? void 0 : x.scale), c = J(), [_, h] = P(null), m = _ ?? e;
2329
+ const { labels: u } = j(), d = r ?? ((x = u == null ? void 0 : u.rating) == null ? void 0 : x.scale), c = J(), [l, h] = P(null), m = l ?? e;
2330
2330
  return /* @__PURE__ */ g(
2331
2331
  "fieldset",
2332
2332
  {
2333
2333
  className: f(De.rating, s && De["rating--disabled"], i),
2334
2334
  disabled: s,
2335
- "data-testid": d,
2335
+ "data-testid": _,
2336
2336
  children: [
2337
2337
  /* @__PURE__ */ a("legend", { className: De.rating__legend, children: n }),
2338
2338
  /* @__PURE__ */ a("div", { className: De.rating__stars, onMouseLeave: () => h(null), children: Qo.map((b) => {
@@ -2366,14 +2366,14 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2366
2366
  ),
2367
2367
  " ",
2368
2368
  "— ",
2369
- (l == null ? void 0 : l[b]) ?? ""
2369
+ (d == null ? void 0 : d[b]) ?? ""
2370
2370
  ] })
2371
2371
  ]
2372
2372
  },
2373
2373
  b
2374
2374
  );
2375
2375
  }) }),
2376
- m !== null && /* @__PURE__ */ a("span", { className: De.rating__caption, "aria-hidden": !0, children: (l == null ? void 0 : l[m]) ?? "" })
2376
+ m !== null && /* @__PURE__ */ a("span", { className: De.rating__caption, "aria-hidden": !0, children: (d == null ? void 0 : d[m]) ?? "" })
2377
2377
  ]
2378
2378
  }
2379
2379
  );
@@ -2391,13 +2391,13 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2391
2391
  increaseLabel: o,
2392
2392
  min: s = 1,
2393
2393
  max: i = 99,
2394
- isDisabled: d,
2394
+ isDisabled: _,
2395
2395
  size: u = "md",
2396
- className: l,
2396
+ className: d,
2397
2397
  testId: c
2398
2398
  }) => {
2399
2399
  var p, y, D;
2400
- const { labels: _ } = j(), h = H("QuantityStepper.label", n, (p = _ == null ? void 0 : _.quantity) == null ? void 0 : p.label), [m, x] = P(null), b = (N) => {
2400
+ const { labels: l } = j(), h = H("QuantityStepper.label", n, (p = l == null ? void 0 : l.quantity) == null ? void 0 : p.label), [m, x] = P(null), b = (N) => {
2401
2401
  x(null);
2402
2402
  const v = Number(N.replace(/\D/g, ""));
2403
2403
  v && t(Math.min(Math.max(v, s), i));
@@ -2405,7 +2405,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2405
2405
  return /* @__PURE__ */ g(
2406
2406
  "div",
2407
2407
  {
2408
- className: f(yt.stepper, yt[`stepper--${u}`], l),
2408
+ className: f(yt.stepper, yt[`stepper--${u}`], d),
2409
2409
  role: "group",
2410
2410
  "aria-label": h,
2411
2411
  "data-testid": c,
@@ -2416,11 +2416,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2416
2416
  type: "button",
2417
2417
  className: yt.stepper__button,
2418
2418
  onClick: () => t(Math.max(e - 1, s)),
2419
- disabled: d || e <= s,
2419
+ disabled: _ || e <= s,
2420
2420
  "aria-label": H(
2421
2421
  "QuantityStepper.decreaseLabel",
2422
2422
  r,
2423
- (y = _ == null ? void 0 : _.quantity) == null ? void 0 : y.decrease
2423
+ (y = l == null ? void 0 : l.quantity) == null ? void 0 : y.decrease
2424
2424
  ),
2425
2425
  children: /* @__PURE__ */ a(Ma, { "aria-hidden": !0 })
2426
2426
  }
@@ -2436,7 +2436,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2436
2436
  N.key === "Enter" && (N.preventDefault(), b(N.target.value));
2437
2437
  },
2438
2438
  inputMode: "numeric",
2439
- disabled: d,
2439
+ disabled: _,
2440
2440
  "aria-label": `${h} (${s}-${i})`
2441
2441
  }
2442
2442
  ),
@@ -2446,11 +2446,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2446
2446
  type: "button",
2447
2447
  className: yt.stepper__button,
2448
2448
  onClick: () => t(Math.min(e + 1, i)),
2449
- disabled: d || e >= i,
2449
+ disabled: _ || e >= i,
2450
2450
  "aria-label": H(
2451
2451
  "QuantityStepper.increaseLabel",
2452
2452
  o,
2453
- (D = _ == null ? void 0 : _.quantity) == null ? void 0 : D.increase
2453
+ (D = l == null ? void 0 : l.quantity) == null ? void 0 : D.increase
2454
2454
  ),
2455
2455
  children: /* @__PURE__ */ a(un, { "aria-hidden": !0 })
2456
2456
  }
@@ -2519,14 +2519,14 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2519
2519
  removeLabel: o,
2520
2520
  separators: s = ["Enter", ","],
2521
2521
  maxTags: i,
2522
- isDisabled: d,
2522
+ isDisabled: _,
2523
2523
  id: u,
2524
- className: l,
2524
+ className: d,
2525
2525
  testId: c,
2526
- "aria-describedby": _,
2526
+ "aria-describedby": l,
2527
2527
  "aria-invalid": h
2528
2528
  }) => {
2529
- const m = J(), x = u ?? m, b = S(null), p = oa(), [y, D] = P(""), [N, v] = P(null), $ = i !== void 0 && e.length >= i, k = (E) => {
2529
+ const m = J(), x = u ?? m, b = R(null), p = oa(), [y, D] = P(""), [N, v] = P(null), $ = i !== void 0 && e.length >= i, k = (E) => {
2530
2530
  const w = E.trim();
2531
2531
  if (w !== "") {
2532
2532
  if (e.includes(w)) {
@@ -2549,9 +2549,9 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2549
2549
  {
2550
2550
  className: f(
2551
2551
  Ye.tagInput,
2552
- d && Ye["tagInput--disabled"],
2552
+ _ && Ye["tagInput--disabled"],
2553
2553
  h && Ye["tagInput--invalid"],
2554
- l
2554
+ d
2555
2555
  ),
2556
2556
  "data-testid": c,
2557
2557
  onClick: () => {
@@ -2574,7 +2574,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2574
2574
  type: "button",
2575
2575
  className: Ye.tagInput__remove,
2576
2576
  "aria-label": `${E} — ${o}`,
2577
- disabled: d,
2577
+ disabled: _,
2578
2578
  onClick: (w) => {
2579
2579
  w.stopPropagation(), L(E);
2580
2580
  },
@@ -2595,9 +2595,9 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2595
2595
  value: y,
2596
2596
  placeholder: e.length === 0 ? r : void 0,
2597
2597
  "aria-label": n,
2598
- "aria-describedby": _,
2598
+ "aria-describedby": l,
2599
2599
  "aria-invalid": h,
2600
- disabled: d || $,
2600
+ disabled: _ || $,
2601
2601
  onChange: (E) => D(E.target.value),
2602
2602
  onKeyDown: C,
2603
2603
  onBlur: () => k(y)
@@ -2621,16 +2621,16 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2621
2621
  hasCounter: o,
2622
2622
  maxLength: s,
2623
2623
  value: i,
2624
- defaultValue: d,
2624
+ defaultValue: _,
2625
2625
  onChange: u,
2626
- testId: l,
2626
+ testId: d,
2627
2627
  ...c
2628
- }, _) => {
2629
- const h = S(null), [m, x] = P(String(d ?? "").length), b = i === void 0 ? m : String(i).length, p = z(
2628
+ }, l) => {
2629
+ const h = R(null), [m, x] = P(String(_ ?? "").length), b = i === void 0 ? m : String(i).length, p = z(
2630
2630
  (D) => {
2631
- h.current = D, typeof _ == "function" ? _(D) : _ && (_.current = D);
2631
+ h.current = D, typeof l == "function" ? l(D) : l && (l.current = D);
2632
2632
  },
2633
- [_]
2633
+ [l]
2634
2634
  );
2635
2635
  Ea(() => {
2636
2636
  const D = h.current;
@@ -2640,7 +2640,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2640
2640
  D.style.height = `${Math.min(D.scrollHeight, v)}px`, D.style.overflowY = D.scrollHeight > v ? "auto" : "hidden";
2641
2641
  }, [n, r, i, b]);
2642
2642
  const y = s !== void 0 && b >= s * 0.9;
2643
- return /* @__PURE__ */ g("div", { className: f(wt.wrapper, e), "data-testid": l, children: [
2643
+ return /* @__PURE__ */ g("div", { className: f(wt.wrapper, e), "data-testid": d, children: [
2644
2644
  /* @__PURE__ */ a(
2645
2645
  "textarea",
2646
2646
  {
@@ -2649,7 +2649,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2649
2649
  className: f(wt.textarea, n && wt["textarea--autoSize"]),
2650
2650
  maxLength: s,
2651
2651
  value: i,
2652
- defaultValue: d,
2652
+ defaultValue: _,
2653
2653
  onChange: (D) => {
2654
2654
  x(D.target.value.length), u == null || u(D);
2655
2655
  },
@@ -2698,21 +2698,21 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2698
2698
  separator: o = "–",
2699
2699
  min: s,
2700
2700
  max: i,
2701
- isSummaryVisible: d,
2701
+ isSummaryVisible: _,
2702
2702
  isDisabled: u,
2703
- className: l,
2703
+ className: d,
2704
2704
  testId: c
2705
2705
  }) => {
2706
- const { labels: _ } = j(), h = (() => {
2707
- if (!d || !(_ != null && _.locale) || e.start === "" || e.end === "") return null;
2706
+ const { labels: l } = j(), h = (() => {
2707
+ if (!_ || !(l != null && l.locale) || e.start === "" || e.end === "") return null;
2708
2708
  try {
2709
- const m = new Intl.DateTimeFormat(_.locale, { dateStyle: "medium" });
2709
+ const m = new Intl.DateTimeFormat(l.locale, { dateStyle: "medium" });
2710
2710
  return `${m.format(new Date(e.start))} ${o} ${m.format(new Date(e.end))}`;
2711
2711
  } catch {
2712
2712
  return null;
2713
2713
  }
2714
2714
  })();
2715
- return /* @__PURE__ */ g("div", { className: f(Je.range, l), "data-testid": c, children: [
2715
+ return /* @__PURE__ */ g("div", { className: f(Je.range, d), "data-testid": c, children: [
2716
2716
  /* @__PURE__ */ g("div", { className: Je.range__row, children: [
2717
2717
  /* @__PURE__ */ a(
2718
2718
  ta,
@@ -2759,14 +2759,14 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2759
2759
  isRequired: o,
2760
2760
  requiredLabel: s,
2761
2761
  isLabelHidden: i,
2762
- className: d
2762
+ className: _
2763
2763
  }) => {
2764
- const { labels: u } = j(), l = J(), c = `${l}-error`, _ = `${l}-hint`;
2765
- return /* @__PURE__ */ g("div", { className: f(Fe.field, d), children: [
2764
+ const { labels: u } = j(), d = J(), c = `${d}-error`, l = `${d}-hint`;
2765
+ return /* @__PURE__ */ g("div", { className: f(Fe.field, _), children: [
2766
2766
  /* @__PURE__ */ g(
2767
2767
  "label",
2768
2768
  {
2769
- htmlFor: l,
2769
+ htmlFor: d,
2770
2770
  className: f(Fe.field__label, i && Fe["field__label--hidden"]),
2771
2771
  children: [
2772
2772
  e,
@@ -2778,7 +2778,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2778
2778
  }
2779
2779
  ),
2780
2780
  t({
2781
- id: l,
2781
+ id: d,
2782
2782
  required: o || void 0,
2783
2783
  "aria-invalid": r ? !0 : void 0,
2784
2784
  /*
@@ -2793,13 +2793,13 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2793
2793
  * Sira ONEMLI: once hata, sonra yardim. Ekran okuyucu bagli metinleri
2794
2794
  * yazildiklari sirayla okuyor ve once "ne yanlis" duyulmali.
2795
2795
  */
2796
- "aria-describedby": [r && c, n && _].filter(Boolean).join(" ") || void 0
2796
+ "aria-describedby": [r && c, n && l].filter(Boolean).join(" ") || void 0
2797
2797
  }),
2798
2798
  r && /* @__PURE__ */ g("p", { id: c, className: Fe.field__error, role: "alert", children: [
2799
2799
  /* @__PURE__ */ a(Ft, { "aria-hidden": !0, className: Fe.field__errorIcon }),
2800
2800
  r
2801
2801
  ] }),
2802
- n && /* @__PURE__ */ a("p", { id: _, className: Fe.field__hint, children: n })
2802
+ n && /* @__PURE__ */ a("p", { id: l, className: Fe.field__hint, children: n })
2803
2803
  ] });
2804
2804
  }, Mi = /* @__PURE__ */ I(Ai), Bi = "hanui-progress-99MrX", Fi = "hanui-progress__track-Qbp9t", Pi = "hanui-progress__fill-Bam55", Oi = "hanui-progress__value-3FYxj", zi = "hanui-circle-9cn2w", Hi = "hanui-circle__svg-0IwkR", Ki = "hanui-circle__track-zY2qc", Ui = "hanui-circle__fill-Jbde6", qi = "hanui-circle__label-A3nJB", ne = {
2805
2805
  progress: Bi,
@@ -2831,35 +2831,35 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2831
2831
  isValueVisible: o,
2832
2832
  tone: s = "brand",
2833
2833
  size: i = "md",
2834
- className: d,
2834
+ className: _,
2835
2835
  testId: u
2836
2836
  }) => {
2837
- const l = e === void 0, c = l ? 0 : Wa(e, t);
2838
- return /* @__PURE__ */ g("div", { className: f(ne.progress, d), "data-testid": u, children: [
2837
+ const d = e === void 0, c = d ? 0 : Wa(e, t);
2838
+ return /* @__PURE__ */ g("div", { className: f(ne.progress, _), "data-testid": u, children: [
2839
2839
  /* @__PURE__ */ a(
2840
2840
  "div",
2841
2841
  {
2842
2842
  role: "progressbar",
2843
2843
  "aria-label": n,
2844
- "aria-valuenow": l ? void 0 : Math.round(c),
2845
- "aria-valuemin": l ? void 0 : 0,
2846
- "aria-valuemax": l ? void 0 : 100,
2847
- "aria-valuetext": l ? void 0 : r,
2844
+ "aria-valuenow": d ? void 0 : Math.round(c),
2845
+ "aria-valuemin": d ? void 0 : 0,
2846
+ "aria-valuemax": d ? void 0 : 100,
2847
+ "aria-valuetext": d ? void 0 : r,
2848
2848
  className: f(
2849
2849
  ne.progress__track,
2850
2850
  ne[`progress__track--${i}`],
2851
- l && ne["progress__track--indeterminate"]
2851
+ d && ne["progress__track--indeterminate"]
2852
2852
  ),
2853
2853
  children: /* @__PURE__ */ a(
2854
2854
  "span",
2855
2855
  {
2856
2856
  className: f(ne.progress__fill, ne[`progress__fill--${s}`]),
2857
- style: l ? void 0 : { inlineSize: `${c}%` }
2857
+ style: d ? void 0 : { inlineSize: `${c}%` }
2858
2858
  }
2859
2859
  )
2860
2860
  }
2861
2861
  ),
2862
- o && !l && /* Gorsel yuzde `aria-hidden`: ayni bilgi zaten `progressbar`in
2862
+ o && !d && /* Gorsel yuzde `aria-hidden`: ayni bilgi zaten `progressbar`in
2863
2863
  degerinde ve iki kez duyurulmasi gurultu. */
2864
2864
  /* @__PURE__ */ a("span", { className: ne.progress__value, "aria-hidden": !0, children: r ?? `%${Math.round(c)}` })
2865
2865
  ] });
@@ -2871,14 +2871,14 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2871
2871
  isValueVisible: o,
2872
2872
  tone: s = "brand",
2873
2873
  size: i = 44,
2874
- className: d,
2874
+ className: _,
2875
2875
  testId: u
2876
2876
  }) => {
2877
- const l = e === void 0, c = l ? 25 : Wa(e, t), _ = Math.max(3, Math.round(i * 0.1)), h = (i - _) / 2, m = 2 * Math.PI * h;
2877
+ const d = e === void 0, c = d ? 25 : Wa(e, t), l = Math.max(3, Math.round(i * 0.1)), h = (i - l) / 2, m = 2 * Math.PI * h;
2878
2878
  return /* @__PURE__ */ g(
2879
2879
  "div",
2880
2880
  {
2881
- className: f(ne.circle, l && ne["circle--indeterminate"], d),
2881
+ className: f(ne.circle, d && ne["circle--indeterminate"], _),
2882
2882
  style: { width: i, height: i },
2883
2883
  "data-testid": u,
2884
2884
  children: [
@@ -2891,10 +2891,10 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2891
2891
  viewBox: `0 0 ${i} ${i}`,
2892
2892
  role: "progressbar",
2893
2893
  "aria-label": n,
2894
- "aria-valuenow": l ? void 0 : Math.round(c),
2895
- "aria-valuemin": l ? void 0 : 0,
2896
- "aria-valuemax": l ? void 0 : 100,
2897
- "aria-valuetext": l ? void 0 : r,
2894
+ "aria-valuenow": d ? void 0 : Math.round(c),
2895
+ "aria-valuemin": d ? void 0 : 0,
2896
+ "aria-valuemax": d ? void 0 : 100,
2897
+ "aria-valuetext": d ? void 0 : r,
2898
2898
  children: [
2899
2899
  /* @__PURE__ */ a(
2900
2900
  "circle",
@@ -2904,7 +2904,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2904
2904
  cy: i / 2,
2905
2905
  r: h,
2906
2906
  fill: "none",
2907
- strokeWidth: _
2907
+ strokeWidth: l
2908
2908
  }
2909
2909
  ),
2910
2910
  /* @__PURE__ */ a(
@@ -2915,7 +2915,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2915
2915
  cy: i / 2,
2916
2916
  r: h,
2917
2917
  fill: "none",
2918
- strokeWidth: _,
2918
+ strokeWidth: l,
2919
2919
  strokeDasharray: m,
2920
2920
  strokeDashoffset: m * (1 - c / 100)
2921
2921
  }
@@ -2923,7 +2923,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2923
2923
  ]
2924
2924
  }
2925
2925
  ),
2926
- o && !l && /* @__PURE__ */ a("span", { className: ne.circle__label, "aria-hidden": !0, children: r ?? `%${Math.round(c)}` })
2926
+ o && !d && /* @__PURE__ */ a("span", { className: ne.circle__label, "aria-hidden": !0, children: r ?? `%${Math.round(c)}` })
2927
2927
  ]
2928
2928
  }
2929
2929
  );
@@ -2957,24 +2957,24 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2957
2957
  hint: o,
2958
2958
  accept: s,
2959
2959
  isMultiple: i,
2960
- maxSize: d,
2960
+ maxSize: _,
2961
2961
  removeLabel: u,
2962
- dropLabel: l,
2962
+ dropLabel: d,
2963
2963
  sizeErrorText: c = "{name} çok büyük (en fazla {max}).",
2964
- isDisabled: _,
2964
+ isDisabled: l,
2965
2965
  error: h,
2966
2966
  children: m,
2967
2967
  className: x,
2968
2968
  testId: b
2969
2969
  }) => {
2970
- const p = J(), y = J(), D = S(null), N = oa(), [v, $] = P(!1), [k, L] = P([]), C = (w) => {
2970
+ const p = J(), y = J(), D = R(null), N = oa(), [v, $] = P(!1), [k, L] = P([]), C = (w) => {
2971
2971
  if (!w || w.length === 0) return;
2972
- const M = [...w], U = d === void 0 ? [] : M.filter((Y) => Y.size > d), W = M.filter((Y) => !U.includes(Y)), Z = U.map(
2973
- (Y) => c.replace("{name}", Y.name).replace("{max}", Ta(d ?? 0))
2972
+ const M = [...w], U = _ === void 0 ? [] : M.filter((Y) => Y.size > _), W = M.filter((Y) => !U.includes(Y)), Z = U.map(
2973
+ (Y) => c.replace("{name}", Y.name).replace("{max}", Ta(_ ?? 0))
2974
2974
  );
2975
2975
  L(Z), W.length > 0 && (t(W), N(`${W.length} dosya eklendi`)), Z.length > 0 && N(Z.join(" "), "assertive");
2976
2976
  }, E = (w) => {
2977
- w.preventDefault(), $(!1), !_ && C(w.dataTransfer.files);
2977
+ w.preventDefault(), $(!1), !l && C(w.dataTransfer.files);
2978
2978
  };
2979
2979
  return /* @__PURE__ */ g("div", { className: f(Q.upload, x), "data-testid": b, children: [
2980
2980
  /* @__PURE__ */ g(
@@ -2984,18 +2984,18 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
2984
2984
  className: f(
2985
2985
  Q.upload__drop,
2986
2986
  v && Q["upload__drop--dragging"],
2987
- _ && Q["upload__drop--disabled"],
2987
+ l && Q["upload__drop--disabled"],
2988
2988
  h && Q["upload__drop--invalid"]
2989
2989
  ),
2990
2990
  onDragOver: (w) => {
2991
- w.preventDefault(), _ || $(!0);
2991
+ w.preventDefault(), l || $(!0);
2992
2992
  },
2993
2993
  onDragLeave: () => $(!1),
2994
2994
  onDrop: E,
2995
2995
  children: [
2996
2996
  /* @__PURE__ */ a(hn, { "aria-hidden": !0, className: Q.upload__icon }),
2997
2997
  /* @__PURE__ */ a("span", { className: Q.upload__label, children: r }),
2998
- /* @__PURE__ */ a("span", { className: Q.upload__drag, children: l }),
2998
+ /* @__PURE__ */ a("span", { className: Q.upload__drag, children: d }),
2999
2999
  o && /* @__PURE__ */ a("span", { id: y, className: Q.upload__hint, children: o }),
3000
3000
  /* @__PURE__ */ a(
3001
3001
  "input",
@@ -3006,7 +3006,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3006
3006
  className: Q.upload__input,
3007
3007
  accept: s,
3008
3008
  multiple: i,
3009
- disabled: _,
3009
+ disabled: l,
3010
3010
  "aria-describedby": o ? y : void 0,
3011
3011
  "aria-invalid": h ? !0 : void 0,
3012
3012
  onChange: (w) => {
@@ -3178,12 +3178,12 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3178
3178
  className: r,
3179
3179
  "aria-label": H("Breadcrumb.label", t, s == null ? void 0 : s.breadcrumb),
3180
3180
  "data-testid": o,
3181
- children: /* @__PURE__ */ a("ol", { className: f(xt.breadcrumb), children: e.map((i, d) => {
3182
- const u = d === e.length - 1;
3181
+ children: /* @__PURE__ */ a("ol", { className: f(xt.breadcrumb), children: e.map((i, _) => {
3182
+ const u = _ === e.length - 1;
3183
3183
  return /* @__PURE__ */ g("li", { className: xt.breadcrumb__item, children: [
3184
3184
  i.href && !u ? /* @__PURE__ */ a(ke, { href: i.href, className: xt.breadcrumb__link, ...n, children: i.label }) : /* @__PURE__ */ a("span", { className: xt.breadcrumb__current, "aria-current": "page", children: i.label }),
3185
3185
  !u && /* @__PURE__ */ a(Kt, { "aria-hidden": !0, className: xt.breadcrumb__separator })
3186
- ] }, `${i.label}-${d}`);
3186
+ ] }, `${i.label}-${_}`);
3187
3187
  }) })
3188
3188
  }
3189
3189
  );
@@ -3262,9 +3262,9 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3262
3262
  formatDotLabel: o,
3263
3263
  itemMinWidth: s = 240,
3264
3264
  className: i,
3265
- testId: d
3265
+ testId: _
3266
3266
  }) => {
3267
- const u = S(null), [l, c] = P(!1), [_, h] = P(!1), [m, x] = P(0), [b, p] = P(1), [y, D] = P(!1), N = z(() => {
3267
+ const u = R(null), [d, c] = P(!1), [l, h] = P(!1), [m, x] = P(0), [b, p] = P(1), [y, D] = P(!1), N = z(() => {
3268
3268
  const $ = u.current;
3269
3269
  if (!$) return;
3270
3270
  const { scrollLeft: k, scrollWidth: L, clientWidth: C } = $;
@@ -3272,7 +3272,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3272
3272
  L > C && $.querySelector("a, button, input, select, textarea, [tabindex]") === null
3273
3273
  );
3274
3274
  }, []);
3275
- R(() => {
3275
+ S(() => {
3276
3276
  const $ = u.current;
3277
3277
  if (!$) return;
3278
3278
  N(), $.addEventListener("scroll", N, { passive: !0 });
@@ -3288,7 +3288,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3288
3288
  behavior: "smooth"
3289
3289
  });
3290
3290
  };
3291
- return /* @__PURE__ */ g("section", { className: f(Pe.carousel, i), "aria-label": t, "data-testid": d, children: [
3291
+ return /* @__PURE__ */ g("section", { className: f(Pe.carousel, i), "aria-label": t, "data-testid": _, children: [
3292
3292
  /* @__PURE__ */ g("div", { className: Pe.carousel__controls, children: [
3293
3293
  /* @__PURE__ */ a(
3294
3294
  Re,
@@ -3297,7 +3297,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3297
3297
  label: n,
3298
3298
  variant: "outline",
3299
3299
  size: "sm",
3300
- disabled: !l,
3300
+ disabled: !d,
3301
3301
  onClick: () => v(-1)
3302
3302
  }
3303
3303
  ),
@@ -3308,7 +3308,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3308
3308
  label: r,
3309
3309
  variant: "outline",
3310
3310
  size: "sm",
3311
- disabled: !_,
3311
+ disabled: !l,
3312
3312
  onClick: () => v(1)
3313
3313
  }
3314
3314
  )
@@ -3362,13 +3362,13 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3362
3362
  size: o = "sm",
3363
3363
  isReadOnly: s,
3364
3364
  className: i,
3365
- testId: d
3365
+ testId: _
3366
3366
  }) => {
3367
3367
  var b, p, y;
3368
- const { labels: u } = j(), [l, c] = P(!1), _ = S(null), h = S(void 0);
3369
- R(() => () => window.clearTimeout(h.current), []);
3368
+ const { labels: u } = j(), [d, c] = P(!1), l = R(null), h = R(void 0);
3369
+ S(() => () => window.clearTimeout(h.current), []);
3370
3370
  const m = z(() => {
3371
- const D = _.current;
3371
+ const D = l.current;
3372
3372
  if (!D) return;
3373
3373
  const N = document.createRange();
3374
3374
  N.selectNodeContents(D);
@@ -3381,19 +3381,19 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3381
3381
  m();
3382
3382
  }
3383
3383
  }, [e, m]);
3384
- return /* @__PURE__ */ g("span", { className: f(ct.copy, ct[`copy--${o}`], i), "data-testid": d, children: [
3385
- /* @__PURE__ */ a("span", { className: ct.copy__code, ref: _, children: e }),
3384
+ return /* @__PURE__ */ g("span", { className: f(ct.copy, ct[`copy--${o}`], i), "data-testid": _, children: [
3385
+ /* @__PURE__ */ a("span", { className: ct.copy__code, ref: l, children: e }),
3386
3386
  !s && /* @__PURE__ */ a(
3387
3387
  "button",
3388
3388
  {
3389
3389
  type: "button",
3390
- className: f(ct.copy__button, l && ct["copy__button--done"]),
3390
+ className: f(ct.copy__button, d && ct["copy__button--done"]),
3391
3391
  onClick: x,
3392
- "aria-label": l ? n ?? zt("CopyField.copiedLabel", (b = u == null ? void 0 : u.copyField) == null ? void 0 : b.copied, e) : t ?? zt("CopyField.copyLabel", (p = u == null ? void 0 : u.copyField) == null ? void 0 : p.copy, e),
3393
- children: l ? /* @__PURE__ */ a(pn, { "aria-hidden": !0 }) : /* @__PURE__ */ a(mn, { "aria-hidden": !0 })
3392
+ "aria-label": d ? n ?? zt("CopyField.copiedLabel", (b = u == null ? void 0 : u.copyField) == null ? void 0 : b.copied, e) : t ?? zt("CopyField.copyLabel", (p = u == null ? void 0 : u.copyField) == null ? void 0 : p.copy, e),
3393
+ children: d ? /* @__PURE__ */ a(pn, { "aria-hidden": !0 }) : /* @__PURE__ */ a(mn, { "aria-hidden": !0 })
3394
3394
  }
3395
3395
  ),
3396
- /* @__PURE__ */ a("span", { "aria-live": "polite", className: ct.copy__srOnly, children: l ? H(
3396
+ /* @__PURE__ */ a("span", { "aria-live": "polite", className: ct.copy__srOnly, children: d ? H(
3397
3397
  "CopyField.copiedAnnouncement",
3398
3398
  r,
3399
3399
  (y = u == null ? void 0 : u.copyField) == null ? void 0 : y.announcement
@@ -3462,12 +3462,12 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3462
3462
  secondaryAction: o,
3463
3463
  tone: s = "empty",
3464
3464
  size: i = "md",
3465
- className: d,
3465
+ className: _,
3466
3466
  testId: u
3467
3467
  }) => /* @__PURE__ */ g(
3468
3468
  "div",
3469
3469
  {
3470
- className: f(Xe.empty, Xe[`empty--${i}`], Xe[`empty--${s}`], d),
3470
+ className: f(Xe.empty, Xe[`empty--${i}`], Xe[`empty--${s}`], _),
3471
3471
  role: s === "error" ? "alert" : void 0,
3472
3472
  "data-testid": u,
3473
3473
  children: [
@@ -3499,16 +3499,16 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3499
3499
  breadcrumb: o,
3500
3500
  meta: s,
3501
3501
  children: i,
3502
- as: d = "h1",
3502
+ as: _ = "h1",
3503
3503
  className: u,
3504
- testId: l
3505
- }) => /* @__PURE__ */ g("header", { className: f(ve.header, u), "data-testid": l, children: [
3504
+ testId: d
3505
+ }) => /* @__PURE__ */ g("header", { className: f(ve.header, u), "data-testid": d, children: [
3506
3506
  o && /* @__PURE__ */ a("div", { className: ve.header__breadcrumb, children: o }),
3507
3507
  /* @__PURE__ */ g("div", { className: ve.header__top, children: [
3508
3508
  /* @__PURE__ */ g("div", { className: ve.header__text, children: [
3509
3509
  t && /* @__PURE__ */ a("span", { className: ve.header__eyebrow, children: t }),
3510
3510
  /* @__PURE__ */ g("div", { className: ve.header__titleRow, children: [
3511
- /* @__PURE__ */ a(d, { className: ve.header__title, children: e }),
3511
+ /* @__PURE__ */ a(_, { className: ve.header__title, children: e }),
3512
3512
  s && /* @__PURE__ */ a("span", { className: ve.header__meta, children: s })
3513
3513
  ] }),
3514
3514
  n && /* @__PURE__ */ a("p", { className: ve.header__description, children: n })
@@ -3542,12 +3542,12 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3542
3542
  icon: o,
3543
3543
  isFlush: s,
3544
3544
  gap: i = "md",
3545
- footer: d,
3545
+ footer: _,
3546
3546
  as: u = "section",
3547
- className: l,
3547
+ className: d,
3548
3548
  bodyClassName: c,
3549
- testId: _
3550
- }) => /* @__PURE__ */ g(u, { className: f(V.panel, l), "data-testid": _, children: [
3549
+ testId: l
3550
+ }) => /* @__PURE__ */ g(u, { className: f(V.panel, d), "data-testid": l, children: [
3551
3551
  (t || r) && /* @__PURE__ */ g("div", { className: V.panel__header, children: [
3552
3552
  /* @__PURE__ */ g("div", { className: V.panel__heading, children: [
3553
3553
  o && /* @__PURE__ */ a("span", { className: V.panel__icon, children: o }),
@@ -3570,7 +3570,7 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3570
3570
  children: e
3571
3571
  }
3572
3572
  ),
3573
- d && /* @__PURE__ */ a("div", { className: V.panel__footer, children: /* @__PURE__ */ a("div", { className: V.panel__footerInner, children: d }) })
3573
+ _ && /* @__PURE__ */ a("div", { className: V.panel__footer, children: /* @__PURE__ */ a("div", { className: V.panel__footerInner, children: _ }) })
3574
3574
  ] }), Xu = /* @__PURE__ */ F(
3575
3575
  /* @__PURE__ */ I(({ children: e, columns: t = 1, className: n }) => /* @__PURE__ */ a("div", { className: f(V.form, V[`form--${t}`], n), children: e })),
3576
3576
  "PanelForm"
@@ -3592,31 +3592,31 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3592
3592
  currency: t,
3593
3593
  listValue: n,
3594
3594
  discountPercent: r,
3595
- formatDiscount: o = (l) => `%${l}`,
3595
+ formatDiscount: o = (d) => `%${d}`,
3596
3596
  isFormatted: s,
3597
3597
  size: i = "md",
3598
- className: d,
3598
+ className: _,
3599
3599
  testId: u
3600
3600
  }) => {
3601
- const { labels: l } = j(), c = H("Price.currency", t, l == null ? void 0 : l.currency), _ = (h) => {
3602
- if (!s || !(l != null && l.locale) || !/\d/.test(h)) return h;
3601
+ const { labels: d } = j(), c = H("Price.currency", t, d == null ? void 0 : d.currency), l = (h) => {
3602
+ if (!s || !(d != null && d.locale) || !/\d/.test(h)) return h;
3603
3603
  const m = Number(
3604
3604
  h.replace(/[^\d.,-]/g, "").replace(/\.(?=\d{3}\b)/g, "").replace(",", ".")
3605
3605
  );
3606
3606
  if (!Number.isFinite(m)) return h;
3607
3607
  try {
3608
- return new Intl.NumberFormat(l.locale).format(m);
3608
+ return new Intl.NumberFormat(d.locale).format(m);
3609
3609
  } catch {
3610
3610
  return h;
3611
3611
  }
3612
3612
  };
3613
- return /* @__PURE__ */ g("span", { className: f(Qe.price, Qe[`price--${i}`], d), "data-testid": u, children: [
3613
+ return /* @__PURE__ */ g("span", { className: f(Qe.price, Qe[`price--${i}`], _), "data-testid": u, children: [
3614
3614
  /* @__PURE__ */ g("span", { className: Qe.price__current, children: [
3615
- _(e),
3615
+ l(e),
3616
3616
  /* @__PURE__ */ a("span", { className: Qe.price__currency, children: c })
3617
3617
  ] }),
3618
3618
  n && /* @__PURE__ */ g("s", { className: Qe.price__list, children: [
3619
- _(n),
3619
+ l(n),
3620
3620
  /* @__PURE__ */ a("span", { className: Qe.price__currency, children: c })
3621
3621
  ] }),
3622
3622
  r !== void 0 && r > 0 && /* @__PURE__ */ a("span", { className: Qe.price__discount, children: o(r) })
@@ -3631,11 +3631,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3631
3631
  "rating--md": "hanui-rating--md-Q0nxN"
3632
3632
  }, rl = ({ value: e, count: t, srLabel: n, size: r = "sm", className: o, testId: s }) => {
3633
3633
  var u;
3634
- const { labels: i } = j(), d = Math.round(e * 2) / 2;
3634
+ const { labels: i } = j(), _ = Math.round(e * 2) / 2;
3635
3635
  return /* @__PURE__ */ g("span", { className: f(lt.rating, lt[`rating--${r}`], o), "data-testid": s, children: [
3636
- /* @__PURE__ */ a("span", { className: lt.rating__stars, "aria-hidden": !0, children: Array.from({ length: 5 }, (l, c) => {
3637
- const _ = c + 1;
3638
- return d >= _ ? /* @__PURE__ */ a(ea, {}, c) : d >= _ - 0.5 ? /* @__PURE__ */ a(bn, {}, c) : /* @__PURE__ */ a(ea, { className: lt.rating__empty }, c);
3636
+ /* @__PURE__ */ a("span", { className: lt.rating__stars, "aria-hidden": !0, children: Array.from({ length: 5 }, (d, c) => {
3637
+ const l = c + 1;
3638
+ return _ >= l ? /* @__PURE__ */ a(ea, {}, c) : _ >= l - 0.5 ? /* @__PURE__ */ a(bn, {}, c) : /* @__PURE__ */ a(ea, { className: lt.rating__empty }, c);
3639
3639
  }) }),
3640
3640
  /* @__PURE__ */ a("span", { className: lt.rating__srOnly, children: n ?? zt("Rating.srLabel", (u = i == null ? void 0 : i.rating) == null ? void 0 : u.srLabel, e, t) }),
3641
3641
  ut(t) && /* @__PURE__ */ g("span", { className: lt.rating__count, "aria-hidden": !0, children: [
@@ -3661,8 +3661,8 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3661
3661
  as: o = "h2",
3662
3662
  size: s = "md",
3663
3663
  className: i,
3664
- testId: d
3665
- }) => /* @__PURE__ */ g("header", { className: f(We.header, We[`header--${s}`], i), "data-testid": d, children: [
3664
+ testId: _
3665
+ }) => /* @__PURE__ */ g("header", { className: f(We.header, We[`header--${s}`], i), "data-testid": _, children: [
3666
3666
  /* @__PURE__ */ g("div", { className: We.header__text, children: [
3667
3667
  n && /* @__PURE__ */ a("span", { className: We.header__overline, children: n }),
3668
3668
  /* @__PURE__ */ a(o, { className: We.header__title, children: e }),
@@ -3684,25 +3684,25 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3684
3684
  className: s,
3685
3685
  testId: i
3686
3686
  }) => {
3687
- const d = S(null), [u, l] = P(!1);
3688
- return R(() => {
3689
- const c = d.current;
3687
+ const _ = R(null), [u, d] = P(!1);
3688
+ return S(() => {
3689
+ const c = _.current;
3690
3690
  if (!c || typeof ResizeObserver > "u") return;
3691
- const _ = () => {
3691
+ const l = () => {
3692
3692
  const m = c.scrollHeight > c.clientHeight, x = c.scrollWidth > c.clientWidth;
3693
- l(
3693
+ d(
3694
3694
  n === "horizontal" ? x : n === "vertical" ? m : m || x
3695
3695
  );
3696
3696
  };
3697
- _();
3698
- const h = new ResizeObserver(_);
3697
+ l();
3698
+ const h = new ResizeObserver(l);
3699
3699
  h.observe(c);
3700
3700
  for (const m of c.children) h.observe(m);
3701
3701
  return () => h.disconnect();
3702
3702
  }, [n, e]), /* @__PURE__ */ a(
3703
3703
  "div",
3704
3704
  {
3705
- ref: d,
3705
+ ref: _,
3706
3706
  className: f(
3707
3707
  Vt.scrollArea,
3708
3708
  Vt[`scrollArea--${n}`],
@@ -3739,13 +3739,13 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3739
3739
  width: ma(e) ? `${e}px` : e,
3740
3740
  height: ma(t) ? `${t}px` : t
3741
3741
  };
3742
- return n === "text" && r > 1 ? /* @__PURE__ */ a("span", { className: f(le.group, o), "aria-hidden": !0, children: Array.from({ length: r }, (i, d) => /* @__PURE__ */ a(
3742
+ return n === "text" && r > 1 ? /* @__PURE__ */ a("span", { className: f(le.group, o), "aria-hidden": !0, children: Array.from({ length: r }, (i, _) => /* @__PURE__ */ a(
3743
3743
  "span",
3744
3744
  {
3745
3745
  className: f(le.skeleton, le["skeleton--text"]),
3746
- style: d === r - 1 ? { width: "60%" } : void 0
3746
+ style: _ === r - 1 ? { width: "60%" } : void 0
3747
3747
  },
3748
- d
3748
+ _
3749
3749
  )) }) : /* @__PURE__ */ a(
3750
3750
  "span",
3751
3751
  {
@@ -3799,11 +3799,11 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3799
3799
  trend: o,
3800
3800
  isUpPositive: s = !0,
3801
3801
  description: i,
3802
- icon: d,
3802
+ icon: _,
3803
3803
  variant: u = "card",
3804
- size: l = "md",
3804
+ size: d = "md",
3805
3805
  className: c,
3806
- testId: _
3806
+ testId: l
3807
3807
  }) => {
3808
3808
  const h = o === "flat" ? void 0 : o === "up" === s;
3809
3809
  return (
@@ -3815,10 +3815,10 @@ const An = 640, su = 768, Mn = 1024, cu = `(min-width: ${Mn + 1}px)`, sa = `(min
3815
3815
  /* @__PURE__ */ g(
3816
3816
  "div",
3817
3817
  {
3818
- className: f(_e.stat, _e[`stat--${l}`], _e[`stat--${u}`], c),
3819
- "data-testid": _,
3818
+ className: f(_e.stat, _e[`stat--${d}`], _e[`stat--${u}`], c),
3819
+ "data-testid": l,
3820
3820
  children: [
3821
- d && /* @__PURE__ */ a("span", { className: _e.stat__icon, "aria-hidden": !0, children: d }),
3821
+ _ && /* @__PURE__ */ a("span", { className: _e.stat__icon, "aria-hidden": !0, children: _ }),
3822
3822
  /* @__PURE__ */ a("span", { className: _e.stat__label, children: e }),
3823
3823
  /* @__PURE__ */ g("span", { className: _e.stat__value, children: [
3824
3824
  t,
@@ -3890,13 +3890,13 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
3890
3890
  tt = [], la();
3891
3891
  }
3892
3892
  }, Xl = ({ toast: e, closeLabel: t, onDismiss: n }) => {
3893
- const r = e.tone ?? "info", o = e.duration ?? Gl[r], [s, i] = P(!1), d = S(o), u = S(0);
3894
- return R(() => {
3893
+ const r = e.tone ?? "info", o = e.duration ?? Gl[r], [s, i] = P(!1), _ = R(o), u = R(0);
3894
+ return S(() => {
3895
3895
  if (o === 0 || s) return;
3896
3896
  u.current = Date.now();
3897
- const l = window.setTimeout(() => n(e.id), d.current);
3897
+ const d = window.setTimeout(() => n(e.id), _.current);
3898
3898
  return () => {
3899
- window.clearTimeout(l), d.current = Math.max(0, d.current - (Date.now() - u.current));
3899
+ window.clearTimeout(d), _.current = Math.max(0, _.current - (Date.now() - u.current));
3900
3900
  };
3901
3901
  }, [o, s, n, e.id]), /* @__PURE__ */ g(
3902
3902
  "div",
@@ -3919,8 +3919,8 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
3919
3919
  type: "button",
3920
3920
  className: Le.toast__action,
3921
3921
  onClick: () => {
3922
- var l;
3923
- (l = e.action) == null || l.onClick(), n(e.id);
3922
+ var d;
3923
+ (d = e.action) == null || d.onClick(), n(e.id);
3924
3924
  },
3925
3925
  children: e.action.label
3926
3926
  }
@@ -3941,19 +3941,19 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
3941
3941
  );
3942
3942
  }, Ql = ({ closeLabel: e, className: t }) => {
3943
3943
  const { labels: n } = j(), [r, o] = P([]);
3944
- R(() => (aa.add(o), o(tt), () => {
3944
+ S(() => (aa.add(o), o(tt), () => {
3945
3945
  aa.delete(o);
3946
3946
  }), []);
3947
3947
  const s = z((u) => na(u), []);
3948
- R(() => {
3948
+ S(() => {
3949
3949
  if (r.length === 0) return;
3950
- const u = (l) => {
3951
- l.key === "Escape" && na(r[r.length - 1].id);
3950
+ const u = (d) => {
3951
+ d.key === "Escape" && na(r[r.length - 1].id);
3952
3952
  };
3953
3953
  return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
3954
3954
  }, [r]);
3955
- const [i, d] = P(!1);
3956
- return R(() => d(!0), []), i ? Et(
3955
+ const [i, _] = P(!1);
3956
+ return S(() => _(!0), []), i ? Et(
3957
3957
  /* @__PURE__ */ a("div", { className: f(Le.hub, t), children: r.map((u) => /* @__PURE__ */ a(
3958
3958
  Xl,
3959
3959
  {
@@ -3984,15 +3984,15 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
3984
3984
  className: s,
3985
3985
  testId: i
3986
3986
  }) => {
3987
- const d = J(), [u, l] = P(n ?? []), c = r !== void 0, _ = c ? r : u, h = z(
3987
+ const _ = J(), [u, d] = P(n ?? []), c = r !== void 0, l = c ? r : u, h = z(
3988
3988
  (m, x) => {
3989
- const b = x ? t ? [m] : [..._.filter((p) => p !== m), m] : _.filter((p) => p !== m);
3990
- c || l(b), o == null || o(b);
3989
+ const b = x ? t ? [m] : [...l.filter((p) => p !== m), m] : l.filter((p) => p !== m);
3990
+ c || d(b), o == null || o(b);
3991
3991
  },
3992
- [c, t, o, _]
3992
+ [c, t, o, l]
3993
3993
  );
3994
3994
  return /* @__PURE__ */ a("div", { className: f(Ie.accordion, s), "data-testid": i, children: e.map((m) => {
3995
- const x = _.includes(m.id);
3995
+ const x = l.includes(m.id);
3996
3996
  return /* @__PURE__ */ g(
3997
3997
  "details",
3998
3998
  {
@@ -4009,7 +4009,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4009
4009
  /* @__PURE__ */ g(
4010
4010
  "summary",
4011
4011
  {
4012
- id: `${d}-${m.id}`,
4012
+ id: `${_}-${m.id}`,
4013
4013
  className: Ie.accordion__summary,
4014
4014
  "aria-disabled": m.isDisabled,
4015
4015
  tabIndex: m.isDisabled ? -1 : void 0,
@@ -4058,31 +4058,31 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4058
4058
  className: f(be.steps, be[`steps--${o}`], s),
4059
4059
  "aria-label": r,
4060
4060
  "data-testid": i,
4061
- children: e.map((d, u) => {
4062
- const l = hd(u, t), c = !!n && l === "done", _ = /* @__PURE__ */ g(fe, { children: [
4063
- /* @__PURE__ */ a("span", { className: be.steps__marker, "aria-hidden": !0, children: l === "done" ? /* @__PURE__ */ a(Ht, {}) : u + 1 }),
4061
+ children: e.map((_, u) => {
4062
+ const d = hd(u, t), c = !!n && d === "done", l = /* @__PURE__ */ g(fe, { children: [
4063
+ /* @__PURE__ */ a("span", { className: be.steps__marker, "aria-hidden": !0, children: d === "done" ? /* @__PURE__ */ a(Ht, {}) : u + 1 }),
4064
4064
  /* @__PURE__ */ g("span", { className: be.steps__text, children: [
4065
- /* @__PURE__ */ a("span", { className: be.steps__label, children: d.label }),
4066
- d.description && /* @__PURE__ */ a("span", { className: be.steps__description, children: d.description })
4065
+ /* @__PURE__ */ a("span", { className: be.steps__label, children: _.label }),
4066
+ _.description && /* @__PURE__ */ a("span", { className: be.steps__description, children: _.description })
4067
4067
  ] }),
4068
- /* @__PURE__ */ a("span", { className: be.steps__status, children: pd[l] })
4068
+ /* @__PURE__ */ a("span", { className: be.steps__status, children: pd[d] })
4069
4069
  ] });
4070
4070
  return /* @__PURE__ */ a(
4071
4071
  "li",
4072
4072
  {
4073
- className: f(be.steps__item, be[`steps__item--${l}`]),
4074
- "aria-current": l === "current" ? "step" : void 0,
4073
+ className: f(be.steps__item, be[`steps__item--${d}`]),
4074
+ "aria-current": d === "current" ? "step" : void 0,
4075
4075
  children: c ? /* @__PURE__ */ a(
4076
4076
  "button",
4077
4077
  {
4078
4078
  type: "button",
4079
4079
  className: be.steps__button,
4080
4080
  onClick: () => n == null ? void 0 : n(u),
4081
- children: _
4081
+ children: l
4082
4082
  }
4083
- ) : /* @__PURE__ */ a("span", { className: be.steps__button, children: _ })
4083
+ ) : /* @__PURE__ */ a("span", { className: be.steps__button, children: l })
4084
4084
  },
4085
- d.id
4085
+ _.id
4086
4086
  );
4087
4087
  })
4088
4088
  }
@@ -4101,11 +4101,11 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4101
4101
  ariaLabel: o,
4102
4102
  isManualActivation: s,
4103
4103
  className: i,
4104
- testId: d
4104
+ testId: _
4105
4105
  }) => {
4106
4106
  var $;
4107
- const u = J(), [l, c] = P(t ?? (($ = e[0]) == null ? void 0 : $.id)), _ = ut(n), h = _ ? n : l, m = e.findIndex((k) => k.id === h), [x, b] = P(m < 0 ? 0 : m), p = S(null), y = e[m] ?? e[0];
4108
- R(() => {
4107
+ const u = J(), [d, c] = P(t ?? (($ = e[0]) == null ? void 0 : $.id)), l = ut(n), h = l ? n : d, m = e.findIndex((k) => k.id === h), [x, b] = P(m < 0 ? 0 : m), p = R(null), y = e[m] ?? e[0];
4108
+ S(() => {
4109
4109
  var k;
4110
4110
  ia((k = p.current) == null ? void 0 : k.querySelector('[aria-selected="true"]'), {
4111
4111
  block: "nearest",
@@ -4113,7 +4113,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4113
4113
  });
4114
4114
  }, [h]);
4115
4115
  const D = (k) => {
4116
- _ || c(k), r == null || r(k);
4116
+ l || c(k), r == null || r(k);
4117
4117
  }, N = (k) => {
4118
4118
  var E;
4119
4119
  if (s && (k.key === "Enter" || k.key === " ")) {
@@ -4128,7 +4128,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4128
4128
  };
4129
4129
  if (e.length === 0) return null;
4130
4130
  const v = ut(y == null ? void 0 : y.content);
4131
- return /* @__PURE__ */ g("div", { className: f(dt.tabs, i), "data-testid": d, children: [
4131
+ return /* @__PURE__ */ g("div", { className: f(dt.tabs, i), "data-testid": _, children: [
4132
4132
  /* @__PURE__ */ a(
4133
4133
  "div",
4134
4134
  {
@@ -4179,13 +4179,13 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4179
4179
  tile__label: Nd,
4180
4180
  tile__meta: $d,
4181
4181
  "tile--active": "hanui-tile--active-z0F2M"
4182
- }, Dd = ({ label: e, icon: t, href: n, meta: r, isActive: o, linkProps: s, className: i, testId: d }) => /* @__PURE__ */ g(
4182
+ }, Dd = ({ label: e, icon: t, href: n, meta: r, isActive: o, linkProps: s, className: i, testId: _ }) => /* @__PURE__ */ g(
4183
4183
  ke,
4184
4184
  {
4185
4185
  href: n,
4186
4186
  className: f(Nt.tile, o && Nt["tile--active"], i),
4187
4187
  "aria-current": o ? "page" : void 0,
4188
- "data-testid": d,
4188
+ "data-testid": _,
4189
4189
  ...s,
4190
4190
  children: [
4191
4191
  /* @__PURE__ */ a("span", { className: Nt.tile__medallion, "aria-hidden": !0, children: t }),
@@ -4266,15 +4266,15 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4266
4266
  children: o,
4267
4267
  description: s,
4268
4268
  footer: i,
4269
- icon: d,
4269
+ icon: _,
4270
4270
  tone: u = "neutral",
4271
- size: l = "md",
4271
+ size: d = "md",
4272
4272
  isDismissable: c = !0,
4273
- className: _,
4273
+ className: l,
4274
4274
  testId: h
4275
4275
  }) => {
4276
- const { labels: m } = j(), x = S(null), b = S(null), p = J(), y = J();
4277
- R(() => {
4276
+ const { labels: m } = j(), x = R(null), b = R(null), p = J(), y = J();
4277
+ S(() => {
4278
4278
  const N = x.current;
4279
4279
  if (!N) return;
4280
4280
  if (!e) {
@@ -4287,7 +4287,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4287
4287
  return b.current = $, () => {
4288
4288
  k(), b.current = null, v();
4289
4289
  };
4290
- }, [e]), qt(e), R(() => {
4290
+ }, [e]), qt(e), S(() => {
4291
4291
  const N = x.current;
4292
4292
  if (!N) return;
4293
4293
  const v = ($) => {
@@ -4305,14 +4305,14 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4305
4305
  "dialog",
4306
4306
  {
4307
4307
  ref: x,
4308
- className: f(se.modal, se[`modal--${l}`], _),
4308
+ className: f(se.modal, se[`modal--${d}`], l),
4309
4309
  "aria-labelledby": p,
4310
4310
  "aria-describedby": s ? y : void 0,
4311
4311
  "data-testid": h,
4312
4312
  onClick: D,
4313
4313
  children: /* @__PURE__ */ g("div", { className: se.modal__panel, children: [
4314
4314
  /* @__PURE__ */ g("header", { className: se.modal__header, children: [
4315
- d && /* @__PURE__ */ a("span", { className: f(se.modal__icon, se[`modal__icon--${u}`]), children: d }),
4315
+ _ && /* @__PURE__ */ a("span", { className: f(se.modal__icon, se[`modal__icon--${u}`]), children: _ }),
4316
4316
  /* @__PURE__ */ g("div", { className: se.modal__heading, children: [
4317
4317
  /* @__PURE__ */ a("h2", { id: p, className: se.modal__title, children: n }),
4318
4318
  s && /* @__PURE__ */ a("p", { id: y, className: se.modal__description, children: s })
@@ -4357,16 +4357,16 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4357
4357
  searchPlaceholder: o,
4358
4358
  emptyMessage: s,
4359
4359
  className: i,
4360
- testId: d
4360
+ testId: _
4361
4361
  }) => {
4362
- const u = J(), l = `${u}-listbox`, c = S(null), _ = S(null), h = S(null), [m, x] = P(""), [b, p] = P(0), y = Tt(() => {
4362
+ const u = J(), d = `${u}-listbox`, c = R(null), l = R(null), h = R(null), [m, x] = P(""), [b, p] = P(0), y = Tt(() => {
4363
4363
  if (m.trim() === "") return n;
4364
4364
  const v = m.trim();
4365
4365
  return n.filter(
4366
4366
  ($) => Ot($.label, v) || ($.description ? Ot($.description, v) : !1)
4367
4367
  );
4368
4368
  }, [n, m]);
4369
- qt(e), R(() => {
4369
+ qt(e), S(() => {
4370
4370
  var C;
4371
4371
  const v = c.current;
4372
4372
  if (!v) return;
@@ -4375,19 +4375,19 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4375
4375
  return;
4376
4376
  }
4377
4377
  const $ = pt();
4378
- v.open || v.showModal(), (C = _.current) == null || C.focus({ preventScroll: !0 }), x(""), p(0);
4378
+ v.open || v.showModal(), (C = l.current) == null || C.focus({ preventScroll: !0 }), x(""), p(0);
4379
4379
  const { token: k, pop: L } = Yt();
4380
4380
  return h.current = k, () => {
4381
4381
  L(), h.current = null, $();
4382
4382
  };
4383
- }, [e]), R(() => {
4383
+ }, [e]), S(() => {
4384
4384
  const v = c.current;
4385
4385
  if (!v) return;
4386
4386
  const $ = (k) => {
4387
4387
  k.preventDefault(), !(h.current && !Gt(h.current)) && t();
4388
4388
  };
4389
4389
  return v.addEventListener("cancel", $), () => v.removeEventListener("cancel", $);
4390
- }, [t]), R(() => {
4390
+ }, [t]), S(() => {
4391
4391
  var v;
4392
4392
  ia((v = c.current) == null ? void 0 : v.querySelector(`[data-index="${b}"]`), {
4393
4393
  block: "nearest"
@@ -4424,7 +4424,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4424
4424
  ref: c,
4425
4425
  className: f(te.palette, i),
4426
4426
  "aria-label": r,
4427
- "data-testid": d,
4427
+ "data-testid": _,
4428
4428
  onClick: (v) => v.target === c.current && t(),
4429
4429
  children: [
4430
4430
  /* @__PURE__ */ g("div", { className: te.palette__search, children: [
@@ -4432,7 +4432,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4432
4432
  /* @__PURE__ */ a(
4433
4433
  "input",
4434
4434
  {
4435
- ref: _,
4435
+ ref: l,
4436
4436
  type: "text",
4437
4437
  role: "combobox",
4438
4438
  className: te.palette__input,
@@ -4442,7 +4442,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4442
4442
  autoComplete: "off",
4443
4443
  "aria-autocomplete": "list",
4444
4444
  "aria-expanded": !0,
4445
- "aria-controls": l,
4445
+ "aria-controls": d,
4446
4446
  "aria-activedescendant": y[b] ? `${u}-option-${b}` : void 0,
4447
4447
  onChange: (v) => {
4448
4448
  x(v.target.value), p(0);
@@ -4451,7 +4451,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4451
4451
  }
4452
4452
  )
4453
4453
  ] }),
4454
- /* @__PURE__ */ g("ul", { id: l, role: "listbox", "aria-label": r, className: te.palette__list, children: [
4454
+ /* @__PURE__ */ g("ul", { id: d, role: "listbox", "aria-label": r, className: te.palette__list, children: [
4455
4455
  y.map((v, $) => {
4456
4456
  var L;
4457
4457
  const k = v.group !== void 0 && v.group !== ((L = y[$ - 1]) == null ? void 0 : L.group);
@@ -4511,12 +4511,12 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4511
4511
  description: o,
4512
4512
  confirmLabel: s,
4513
4513
  cancelLabel: i,
4514
- closeLabel: d,
4514
+ closeLabel: _,
4515
4515
  variant: u,
4516
- kind: l,
4516
+ kind: d,
4517
4517
  children: c
4518
4518
  }) => {
4519
- const { labels: _ } = j(), [h, m] = P(!1), x = u ?? l ?? "neutral", b = async () => {
4519
+ const { labels: l } = j(), [h, m] = P(!1), x = u ?? d ?? "neutral", b = async () => {
4520
4520
  m(!0);
4521
4521
  try {
4522
4522
  await n();
@@ -4530,7 +4530,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4530
4530
  isOpen: e,
4531
4531
  onClose: t,
4532
4532
  title: r,
4533
- closeLabel: d ?? (_ == null ? void 0 : _.close),
4533
+ closeLabel: _ ?? (l == null ? void 0 : l.close),
4534
4534
  description: o,
4535
4535
  icon: l_[x],
4536
4536
  tone: d_[x],
@@ -4544,7 +4544,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4544
4544
  size: et.MEDIUM,
4545
4545
  onClick: t,
4546
4546
  disabled: h,
4547
- children: H("ConfirmDialog.cancelLabel", i, _ == null ? void 0 : _.cancel)
4547
+ children: H("ConfirmDialog.cancelLabel", i, l == null ? void 0 : l.cancel)
4548
4548
  }
4549
4549
  ),
4550
4550
  /* @__PURE__ */ a(
@@ -4582,13 +4582,13 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4582
4582
  children: o,
4583
4583
  side: s = "end",
4584
4584
  size: i = "md",
4585
- footer: d,
4585
+ footer: _,
4586
4586
  toolbar: u,
4587
- className: l,
4587
+ className: d,
4588
4588
  testId: c
4589
4589
  }) => {
4590
- const { labels: _ } = j(), h = S(null), m = S(null), x = J();
4591
- R(() => {
4590
+ const { labels: l } = j(), h = R(null), m = R(null), x = J();
4591
+ S(() => {
4592
4592
  const p = h.current;
4593
4593
  if (!p) return;
4594
4594
  if (!e) {
@@ -4601,7 +4601,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4601
4601
  return m.current = D, () => {
4602
4602
  N(), m.current = null, y();
4603
4603
  };
4604
- }, [e]), qt(e), R(() => {
4604
+ }, [e]), qt(e), S(() => {
4605
4605
  const p = h.current;
4606
4606
  if (!p) return;
4607
4607
  const y = (D) => {
@@ -4619,7 +4619,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4619
4619
  "dialog",
4620
4620
  {
4621
4621
  ref: h,
4622
- className: f(ye.drawer, ye[`drawer--${s}`], ye[`drawer--${i}`], l),
4622
+ className: f(ye.drawer, ye[`drawer--${s}`], ye[`drawer--${i}`], d),
4623
4623
  "aria-labelledby": x,
4624
4624
  "data-testid": c,
4625
4625
  onClick: b,
@@ -4630,7 +4630,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4630
4630
  Re,
4631
4631
  {
4632
4632
  icon: /* @__PURE__ */ a(He, { "aria-hidden": !0 }),
4633
- label: H("Drawer.closeLabel", r, _ == null ? void 0 : _.close),
4633
+ label: H("Drawer.closeLabel", r, l == null ? void 0 : l.close),
4634
4634
  variant: "ghost",
4635
4635
  size: "sm",
4636
4636
  className: ye.drawer__close,
@@ -4640,7 +4640,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4640
4640
  ] }),
4641
4641
  u && /* @__PURE__ */ a("div", { className: ye.drawer__toolbar, children: u }),
4642
4642
  /* @__PURE__ */ a("div", { className: ye.drawer__body, children: o }),
4643
- d && /* @__PURE__ */ a("div", { className: ye.drawer__footer, children: d })
4643
+ _ && /* @__PURE__ */ a("div", { className: ye.drawer__footer, children: _ })
4644
4644
  ]
4645
4645
  }
4646
4646
  );
@@ -4654,21 +4654,21 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4654
4654
  label: o,
4655
4655
  submitLabel: s,
4656
4656
  cancelLabel: i,
4657
- closeLabel: d,
4657
+ closeLabel: _,
4658
4658
  description: u,
4659
- hint: l,
4659
+ hint: d,
4660
4660
  placeholder: c,
4661
- defaultValue: _ = "",
4661
+ defaultValue: l = "",
4662
4662
  isRequired: h,
4663
4663
  requiredLabel: m,
4664
4664
  inputMode: x = "text",
4665
4665
  maxLength: b,
4666
4666
  rows: p = 4
4667
4667
  }) => {
4668
- const { labels: y } = j(), D = J(), [N, v] = P(_), [$, k] = P(!1), L = S(!1);
4669
- R(() => {
4670
- e && !L.current && v(_), L.current = e;
4671
- }, [e, _]);
4668
+ const { labels: y } = j(), D = J(), [N, v] = P(l), [$, k] = P(!1), L = R(!1);
4669
+ S(() => {
4670
+ e && !L.current && v(l), L.current = e;
4671
+ }, [e, l]);
4672
4672
  const C = N.trim(), E = !!h && C === "", w = (U) => x === "multiline" ? /* @__PURE__ */ a(
4673
4673
  vi,
4674
4674
  {
@@ -4706,7 +4706,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4706
4706
  isOpen: e,
4707
4707
  onClose: t,
4708
4708
  title: r,
4709
- closeLabel: d ?? (y == null ? void 0 : y.close),
4709
+ closeLabel: _ ?? (y == null ? void 0 : y.close),
4710
4710
  description: u,
4711
4711
  size: "sm",
4712
4712
  isDismissable: !$,
@@ -4742,7 +4742,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4742
4742
  onSubmit: (U) => {
4743
4743
  U.preventDefault(), M();
4744
4744
  },
4745
- children: /* @__PURE__ */ a(Mi, { label: o, hint: l, isRequired: h, requiredLabel: m, children: w })
4745
+ children: /* @__PURE__ */ a(Mi, { label: o, hint: d, isRequired: h, requiredLabel: m, children: w })
4746
4746
  }
4747
4747
  )
4748
4748
  }
@@ -4809,13 +4809,13 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4809
4809
  emptyMessage: o,
4810
4810
  loadingMessage: s,
4811
4811
  hasViewportCap: i,
4812
- onSort: d,
4812
+ onSort: _,
4813
4813
  bulkBar: u,
4814
- className: l,
4814
+ className: d,
4815
4815
  testId: c
4816
4816
  }) => {
4817
4817
  var x, b;
4818
- const { labels: _ } = j(), h = dn.count(t), m = (p, y) => /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
4818
+ const { labels: l } = j(), h = dn.count(t), m = (p, y) => /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
4819
4819
  "td",
4820
4820
  {
4821
4821
  colSpan: e.length,
@@ -4826,13 +4826,13 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4826
4826
  return /* @__PURE__ */ g(
4827
4827
  "div",
4828
4828
  {
4829
- className: f(ae.wrapper, i && ae["wrapper--capped"], l),
4829
+ className: f(ae.wrapper, i && ae["wrapper--capped"], d),
4830
4830
  "data-testid": c,
4831
4831
  children: [
4832
4832
  u && /* @__PURE__ */ a("div", { className: ae.bulkBar, children: u }),
4833
4833
  /* @__PURE__ */ g("table", { className: ae.table, children: [
4834
4834
  /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ a("tr", { children: e.map((p) => {
4835
- const y = !!(p.isSortable && d), D = p.ariaSort === "ascending" ? "descending" : "ascending";
4835
+ const y = !!(p.isSortable && _), D = p.ariaSort === "ascending" ? "descending" : "ascending";
4836
4836
  return /* @__PURE__ */ a(
4837
4837
  "th",
4838
4838
  {
@@ -4851,7 +4851,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4851
4851
  {
4852
4852
  type: "button",
4853
4853
  className: ae.sort,
4854
- onClick: () => d == null ? void 0 : d(p.key, D),
4854
+ onClick: () => _ == null ? void 0 : _(p.key, D),
4855
4855
  children: [
4856
4856
  p.label,
4857
4857
  p.srLabel && /* @__PURE__ */ a("span", { className: ae.srOnly, children: p.srLabel }),
@@ -4887,10 +4887,10 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4887
4887
  H(
4888
4888
  "DataTable.loadingMessage",
4889
4889
  s,
4890
- (x = _ == null ? void 0 : _.dataTable) == null ? void 0 : x.loading
4890
+ (x = l == null ? void 0 : l.dataTable) == null ? void 0 : x.loading
4891
4891
  )
4892
4892
  ) : h === 0 ? m(
4893
- H("DataTable.emptyMessage", o, (b = _ == null ? void 0 : _.dataTable) == null ? void 0 : b.empty)
4893
+ H("DataTable.emptyMessage", o, (b = l == null ? void 0 : l.dataTable) == null ? void 0 : b.empty)
4894
4894
  ) : t })
4895
4895
  ] })
4896
4896
  ]
@@ -4913,8 +4913,8 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4913
4913
  className: f(It.bar, o),
4914
4914
  "aria-label": H("FilterBar.label", r, i == null ? void 0 : i.filters),
4915
4915
  "data-testid": s,
4916
- onSubmit: (d) => {
4917
- d.preventDefault(), e();
4916
+ onSubmit: (_) => {
4917
+ _.preventDefault(), e();
4918
4918
  },
4919
4919
  children: [
4920
4920
  t,
@@ -4949,14 +4949,14 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4949
4949
  nextLabel: o,
4950
4950
  buildHref: s,
4951
4951
  onPageChange: i,
4952
- linkProps: d,
4952
+ linkProps: _,
4953
4953
  formatAnnouncement: u,
4954
- className: l,
4954
+ className: d,
4955
4955
  testId: c
4956
4956
  }) => {
4957
4957
  var p, y, D;
4958
- const { labels: _ } = j(), h = oa(), m = S(e);
4959
- R(() => {
4958
+ const { labels: l } = j(), h = oa(), m = R(e);
4959
+ S(() => {
4960
4960
  m.current !== e && (m.current = e, u && h(u(e, t)));
4961
4961
  }, [e, t, u, h]);
4962
4962
  const x = Tt(() => G_(e, t), [e, t]);
@@ -4967,8 +4967,8 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4967
4967
  return /* @__PURE__ */ g(
4968
4968
  "nav",
4969
4969
  {
4970
- className: f(Ce.pagination, l),
4971
- "aria-label": H("Pagination.label", n, (p = _ == null ? void 0 : _.pagination) == null ? void 0 : p.label),
4970
+ className: f(Ce.pagination, d),
4971
+ "aria-label": H("Pagination.label", n, (p = l == null ? void 0 : l.pagination) == null ? void 0 : p.label),
4972
4972
  "data-testid": c,
4973
4973
  children: [
4974
4974
  /* @__PURE__ */ a(
@@ -4979,7 +4979,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4979
4979
  label: H(
4980
4980
  "Pagination.previousLabel",
4981
4981
  r,
4982
- (y = _ == null ? void 0 : _.pagination) == null ? void 0 : y.previous
4982
+ (y = l == null ? void 0 : l.pagination) == null ? void 0 : y.previous
4983
4983
  ),
4984
4984
  variant: "outline",
4985
4985
  disabled: e <= 1,
@@ -4996,7 +4996,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
4996
4996
  N === e && Ce["pagination__page--active"]
4997
4997
  ),
4998
4998
  "aria-current": N === e ? "page" : void 0,
4999
- ...d,
4999
+ ..._,
5000
5000
  children: N
5001
5001
  }
5002
5002
  ) : /* @__PURE__ */ a(
@@ -5019,7 +5019,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
5019
5019
  {
5020
5020
  className: Ce.pagination__arrow,
5021
5021
  icon: /* @__PURE__ */ a(Kt, { "aria-hidden": !0 }),
5022
- label: H("Pagination.nextLabel", o, (D = _ == null ? void 0 : _.pagination) == null ? void 0 : D.next),
5022
+ label: H("Pagination.nextLabel", o, (D = l == null ? void 0 : l.pagination) == null ? void 0 : D.next),
5023
5023
  variant: "outline",
5024
5024
  disabled: e >= t,
5025
5025
  onClick: () => b(e + 1)