@ahmetilhn/hanui 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 bn, createContext as gn, useMemo as Et, useEffect as S, useRef as R, useCallback as H, useState as O, useLayoutEffect as Fa, memo as T, forwardRef as Ie, useId as J, isValidElement as Pa, cloneElement as Oa, Children as fn } from "react";
3
+ import { useContext as bn, createContext as gn, useMemo as Et, useEffect as R, useRef as S, useCallback as H, useState as O, useLayoutEffect as Fa, memo as I, forwardRef as Ie, useId as J, isValidElement as Pa, cloneElement as Oa, Children as fn } from "react";
4
4
  import { isClient as he, isDefined as ht, normalize as ya, isNumber as wa } from "@ahmetilhn/handy-utils";
5
5
  import { ArrowRight as vn, XLg as Ue, Search as Ha, CaretDownFill as za, CheckLg as Yt, StarFill as oa, DashLg as Ka, PlusLg as yn, EyeSlashFill as wn, EyeFill as xn, ExclamationCircleFill as Ot, CloudArrowUpFill as Nn, XCircleFill as Ua, ExclamationTriangleFill as la, CheckCircleFill as Ya, InfoCircleFill as qa, CaretRightFill as qt, CaretLeftFill as ja, ClipboardCheckFill as kn, ClipboardFill as $n, StarHalf as In, ArrowDownShort as Tn, ArrowUpShort as Dn, QuestionCircleFill as Cn, TrashFill as En } from "react-bootstrap-icons";
6
6
  import { createPortal as St } from "react-dom";
@@ -18,7 +18,7 @@ const ge = {
18
18
  slate: "#38594f",
19
19
  /** Koyu zeminde ikincil metin — koyu yeşil üzerinde 6,15:1. */
20
20
  mist: "#8fb3a7"
21
- }, C = {
21
+ }, E = {
22
22
  n0: "#ffffff",
23
23
  n25: "#f9fbfa",
24
24
  n50: "#f4f8f7",
@@ -122,7 +122,7 @@ const ge = {
122
122
  rozet, yanındaki yeşil/kâğıt yüzeylerde ayrı bir sistemden gelmiş gibi
123
123
  duruyordu. */
124
124
  offBg: "#f0f4f3",
125
- offFg: C.n700,
125
+ offFg: E.n700,
126
126
  offLine: "#cddad4",
127
127
  offBgDark: "#192e29",
128
128
  offFgDark: "#a2b9b0",
@@ -201,18 +201,18 @@ const ge = {
201
201
  return `rgba(${o}, ${i}, ${s}, ${t})`;
202
202
  }, oe = "#000000", Sn = {
203
203
  // --- Yüzey ---
204
- page: C.n50,
205
- surface: C.n0,
206
- "surface-2": C.n100,
207
- "surface-3": C.n150,
208
- "surface-inset": C.n25,
204
+ page: E.n50,
205
+ surface: E.n0,
206
+ "surface-2": E.n100,
207
+ "surface-3": E.n150,
208
+ "surface-inset": E.n25,
209
209
  // --- Kenarlık ---
210
- border: C.n250,
211
- "border-strong": C.n300,
210
+ border: E.n250,
211
+ "border-strong": E.n300,
212
212
  // --- Metin ---
213
- text: C.n900,
214
- "text-2": C.n600,
215
- "text-3": C.n550,
213
+ text: E.n900,
214
+ "text-2": E.n600,
215
+ "text-3": E.n550,
216
216
  // --- Bant: üst bant, alt bilgi, tablo başlığı, teknik blok ---
217
217
  graphite: ue.base,
218
218
  "graphite-2": ue.two,
@@ -221,13 +221,13 @@ const ge = {
221
221
  action: ue.base,
222
222
  "action-hover": ue.two,
223
223
  "action-active": ue.three,
224
- "on-action": C.n0,
224
+ "on-action": E.n0,
225
225
  /** Dolgunun SINIRI; açık temada dolgunun kendisi (bkz. `ACTION_LINE`). */
226
226
  "action-line": Ga.light,
227
227
  /** Pasif dolgu; saydamlık DEĞİL kendi rengi (bkz. Button `:disabled`). */
228
- "action-soft": C.n300,
228
+ "action-soft": E.n300,
229
229
  /** PASİF DOLGU ÜZERİNDEKİ METİN. */
230
- "on-action-soft": C.n700,
230
+ "on-action-soft": E.n700,
231
231
  /* DÖNÜŞÜM EYLEMİ — ailenin en parlak yeşili; token adı turuncu, değeri değil. */
232
232
  amber: se.base,
233
233
  "amber-hover": se.hover,
@@ -250,7 +250,7 @@ const ge = {
250
250
  * dolgunun aydınlığı ters yönlere gidiyor, tek metin token'ı ikisini birden
251
251
  * taşıyamaz.
252
252
  */
253
- "on-blue": C.n0,
253
+ "on-blue": E.n0,
254
254
  // --- Durum: tint zemin + koyu metin + eşleşen hairline ---
255
255
  "ok-bg": P.okBg,
256
256
  "ok-fg": P.okFg,
@@ -281,12 +281,12 @@ const ge = {
281
281
  // --- Yıkıcı eylem: durum tinti DEĞİL, gerçek bir dolgu ---
282
282
  "danger-solid": et.base,
283
283
  "danger-solid-hover": et.hover,
284
- "on-danger": C.n0,
284
+ "on-danger": E.n0,
285
285
  /* ÜST BANT / ALT BİLGİ / KAHRAMAN BÖLÜMÜ. */
286
- "nav-bg": C.n0,
287
- "nav-bg-2": C.n100,
288
- "nav-fg": C.n900,
289
- "nav-fg-2": C.n600,
286
+ "nav-bg": E.n0,
287
+ "nav-bg-2": E.n100,
288
+ "nav-fg": E.n900,
289
+ "nav-fg-2": E.n600,
290
290
  /*
291
291
  * `n500` DEĞİL. Ölçüldü: `n500` üst bandın beyaz zemininde 3,06:1, alt
292
292
  * bilginin `n100` zemininde 2,68:1 veriyordu — yani bandın en soluk metni
@@ -295,11 +295,11 @@ const ge = {
295
295
  * ikisi aynı işi yapıyor ve ayrı tutulmalarının tek sebebi bandın kendi
296
296
  * yüzey merdiveniydi, kendi okunurluk kuralı değil.
297
297
  */
298
- "nav-fg-3": C.n550,
299
- "nav-line": C.n200,
300
- "nav-line-strong": C.n300,
301
- "nav-hover": C.n100,
302
- "footer-bg": C.n100,
298
+ "nav-fg-3": E.n550,
299
+ "nav-line": E.n200,
300
+ "nav-line-strong": E.n300,
301
+ "nav-hover": E.n100,
302
+ "footer-bg": E.n100,
303
303
  /*
304
304
  * MARKA ŞERİDİ — `nav-*`ın TEMADAN BAĞIMSIZ kardeşi. Değerleri iki temada da
305
305
  * birebir aynı ve bu tanımın kendisi: şerit kurumsal koyu yeşil zemini
@@ -315,15 +315,15 @@ const ge = {
315
315
  "band-fg": Ke.paper,
316
316
  "band-fg-2": Ke.mist,
317
317
  "band-line": ue.darkLine,
318
- "band-hover": A(C.n0, 0.07),
318
+ "band-hover": A(E.n0, 0.07),
319
319
  // --- Gölge: nötr-serin (sıcak gölge serin gri zeminde kirli durur) ---
320
- "shadow-xs": `0 1px 2px ${A(C.n900, 0.05)}`,
321
- "shadow-sm": `0 1px 2px ${A(C.n900, 0.05)}, 0 1px 3px ${A(C.n900, 0.04)}`,
322
- "shadow-md": `0 2px 4px ${A(C.n900, 0.04)}, 0 6px 16px ${A(C.n900, 0.07)}`,
323
- "shadow-lg": `0 4px 8px ${A(C.n900, 0.05)}, 0 16px 32px ${A(C.n900, 0.1)}`,
324
- "shadow-xl": `0 8px 16px ${A(C.n900, 0.06)}, 0 28px 56px ${A(C.n900, 0.13)}`,
320
+ "shadow-xs": `0 1px 2px ${A(E.n900, 0.05)}`,
321
+ "shadow-sm": `0 1px 2px ${A(E.n900, 0.05)}, 0 1px 3px ${A(E.n900, 0.04)}`,
322
+ "shadow-md": `0 2px 4px ${A(E.n900, 0.04)}, 0 6px 16px ${A(E.n900, 0.07)}`,
323
+ "shadow-lg": `0 4px 8px ${A(E.n900, 0.05)}, 0 16px 32px ${A(E.n900, 0.1)}`,
324
+ "shadow-xl": `0 8px 16px ${A(E.n900, 0.06)}, 0 28px 56px ${A(E.n900, 0.13)}`,
325
325
  /** Yapışkan alt bar; gölge YUKARI düşer. */
326
- "shadow-up": `0 -2px 4px ${A(C.n900, 0.03)}, 0 -8px 24px ${A(C.n900, 0.08)}`,
326
+ "shadow-up": `0 -2px 4px ${A(E.n900, 0.03)}, 0 -8px 24px ${A(E.n900, 0.08)}`,
327
327
  /** Odak halkası MAVİ: odak bir gezinme olayıdır, bir dönüşüm değil. */
328
328
  ring: `0 0 0 3px ${A(te.base, 0.28)}`,
329
329
  "ring-color": te.base,
@@ -336,17 +336,17 @@ const ge = {
336
336
  * üstüne düşüyor. Ölçüldü: %55 örtü `page` üzerine düzlendiğinde beyaz metin
337
337
  * 4,27:1 — gövde metni eşiğinin altında. %60'ta 5,01:1.
338
338
  */
339
- scrim: A(C.n900, 0.6),
340
- "scrim-soft": A(C.n900, 0.32),
341
- glass: A(C.n0, 0.92),
342
- "glass-solid": C.n0,
343
- "on-scrim": C.n0,
339
+ scrim: A(E.n900, 0.6),
340
+ "scrim-soft": A(E.n900, 0.32),
341
+ glass: A(E.n0, 0.92),
342
+ "glass-solid": E.n0,
343
+ "on-scrim": E.n0,
344
344
  // --- İskelet ve dönen gösterge ---
345
- "skeleton-a": C.n100,
346
- "skeleton-b": C.n25,
347
- track: A(C.n900, 0.12),
345
+ "skeleton-a": E.n100,
346
+ "skeleton-b": E.n25,
347
+ track: A(E.n900, 0.12),
348
348
  /** Görsel yer tutucu (medya yoksa). */
349
- "media-bg": C.n100,
349
+ "media-bg": E.n100,
350
350
  /*
351
351
  * Vurgu bloğundaki ışık lekeleri. Açık temada ZEMİN DE AÇIK olduğu için
352
352
  * lekeler çok daha hafif: koyu bant için ayarlanmış %22 opaklık açık
@@ -388,11 +388,11 @@ const ge = {
388
388
  action: ge.pine,
389
389
  "action-hover": ue.two,
390
390
  "action-active": ue.three,
391
- "on-action": C.n0,
391
+ "on-action": E.n0,
392
392
  "action-line": Ga.dark,
393
393
  "action-soft": U.actionSoft,
394
394
  /* Koyu temada pasif dolgu ortada bir gri: metin AÇIK olmali (bkz. LIGHT). */
395
- "on-action-soft": C.n300,
395
+ "on-action-soft": E.n300,
396
396
  amber: se.dark,
397
397
  "amber-hover": se.darkHover,
398
398
  "amber-active": se.darkActive,
@@ -405,7 +405,7 @@ const ge = {
405
405
  "blue-tint": te.darkTint,
406
406
  "blue-line": te.darkLine,
407
407
  /* Koyu temada mavi dolgu AÇILIYOR; üzerine siyah gider (10,55:1). */
408
- "on-blue": C.n900,
408
+ "on-blue": E.n900,
409
409
  "ok-bg": P.okBgDark,
410
410
  "ok-fg": P.okFgDark,
411
411
  "ok-line": P.okLineDark,
@@ -448,14 +448,14 @@ const ge = {
448
448
  "nav-fg-3": U.textThree,
449
449
  "nav-line": U.border,
450
450
  "nav-line-strong": U.borderStrong,
451
- "nav-hover": A(C.n0, 0.07),
451
+ "nav-hover": A(E.n0, 0.07),
452
452
  "footer-bg": U.surface,
453
453
  /* AÇIK TEMADAKİYLE BİREBİR AYNI — şerit temaya göre dönmez (bkz. LIGHT). */
454
454
  "band-bg": ue.dark,
455
455
  "band-fg": Ke.paper,
456
456
  "band-fg-2": Ke.mist,
457
457
  "band-line": ue.darkLine,
458
- "band-hover": A(C.n0, 0.07),
458
+ "band-hover": A(E.n0, 0.07),
459
459
  /*
460
460
  * Koyu zeminde gölge okunmaz; derinlik daha çok kenarlıkla kurulur.
461
461
  * Gölgeler yine de KORUNUR ama daha derin: modal ve açılır liste yüzeyin
@@ -475,10 +475,10 @@ const ge = {
475
475
  "scrim-soft": A(oe, 0.45),
476
476
  glass: A(U.surfaceTwo, 0.92),
477
477
  "glass-solid": U.surfaceTwo,
478
- "on-scrim": C.n0,
478
+ "on-scrim": E.n0,
479
479
  "skeleton-a": U.surfaceTwo,
480
480
  "skeleton-b": U.surfaceThree,
481
- track: A(C.n0, 0.14),
481
+ track: A(E.n0, 0.14),
482
482
  "media-bg": U.surfaceTwo,
483
483
  "glow-1": A(ge.mint, 0.2),
484
484
  "glow-2": A(ge.pine, 0.12),
@@ -569,7 +569,7 @@ const ge = {
569
569
  const n = e === "dark" ? Rn : Sn, r = (e === "dark" ? t == null ? void 0 : t.dark : t == null ? void 0 : t.light) ?? {};
570
570
  return { ...n, ...r };
571
571
  }, An = (e) => {
572
- const t = [], n = (s, d = " ") => Object.entries(s).map(([h, l]) => `${d}${xa}${h}: ${l};`).join(`
572
+ const t = [], n = (s, d = " ") => Object.entries(s).map(([h, c]) => `${d}${xa}${h}: ${c};`).join(`
573
573
  `), r = e.fonts ?? {}, o = Object.entries(r).filter(([, s]) => !!s);
574
574
  o.length > 0 && t.push(
575
575
  `:root {
@@ -623,10 +623,10 @@ ${n(
623
623
  r.id = Na, r.textContent = t, n || document.head.appendChild(r);
624
624
  }, Ja = gn({}), j = () => bn(Ja), Iu = ({ children: e, theme: t, linkComponent: n, labels: r }) => {
625
625
  const o = Et(() => t ? JSON.stringify(t) : "", [t]);
626
- S(() => {
626
+ R(() => {
627
627
  Qa(t);
628
628
  }, [o]);
629
- const i = R(t);
629
+ const i = S(t);
630
630
  i.current = t;
631
631
  const s = Et(
632
632
  () => ({ theme: i.current, linkComponent: n, labels: r }),
@@ -664,18 +664,18 @@ ${n(
664
664
  return e === "dark" || e === "light" ? e : "system";
665
665
  }, Du = () => {
666
666
  const [e, t] = O("light"), [n, r] = O("light"), [o, i] = O(!1);
667
- S(() => {
667
+ R(() => {
668
668
  t(Pn()), r($a()), i(!0);
669
- }, []), S(() => {
669
+ }, []), R(() => {
670
670
  if (!he() || !window.matchMedia) return;
671
- const l = window.matchMedia("(prefers-color-scheme: dark)"), c = () => r($a());
672
- return l.addEventListener("change", c), () => l.removeEventListener("change", c);
671
+ const c = window.matchMedia("(prefers-color-scheme: dark)"), l = () => r($a());
672
+ return c.addEventListener("change", l), () => c.removeEventListener("change", l);
673
673
  }, []);
674
- const s = e === "system" ? n : e, d = H((l) => {
674
+ const s = e === "system" ? n : e, d = H((c) => {
675
675
  if (!he()) return;
676
- const c = document.documentElement;
677
- c.classList.add(ka), l === "system" ? c.removeAttribute(tt) : c.setAttribute(tt, l), t(l), window.requestAnimationFrame(() => {
678
- window.requestAnimationFrame(() => c.classList.remove(ka));
676
+ const l = document.documentElement;
677
+ l.classList.add(ka), c === "system" ? l.removeAttribute(tt) : l.setAttribute(tt, c), t(c), window.requestAnimationFrame(() => {
678
+ window.requestAnimationFrame(() => l.classList.remove(ka));
679
679
  });
680
680
  }, []), h = H(
681
681
  () => d(s === "dark" ? "light" : "dark"),
@@ -685,41 +685,41 @@ ${n(
685
685
  }, _a = (e, t) => {
686
686
  typeof (e == null ? void 0 : e.scrollIntoView) == "function" && e.scrollIntoView(t);
687
687
  }, Za = ({ count: e, isOpen: t, initialIndex: n = 0, onSelect: r, onClose: o }, { hasSpaceSelect: i = !1 } = {}) => {
688
- const [s, d] = O(n), h = R(null);
689
- S(() => {
688
+ const [s, d] = O(n), h = S(null);
689
+ R(() => {
690
690
  t && d(n);
691
- }, [t, n]), S(() => {
692
- d((c) => c >= e ? Math.max(0, e - 1) : c);
693
- }, [e]), S(() => {
694
- var c;
695
- t && _a((c = h.current) == null ? void 0 : c.querySelector(`[data-index="${s}"]`), {
691
+ }, [t, n]), R(() => {
692
+ d((l) => l >= e ? Math.max(0, e - 1) : l);
693
+ }, [e]), R(() => {
694
+ var l;
695
+ t && _a((l = h.current) == null ? void 0 : l.querySelector(`[data-index="${s}"]`), {
696
696
  block: "nearest"
697
697
  });
698
698
  }, [s, t, e]);
699
- const l = H(
700
- (c) => {
699
+ const c = H(
700
+ (l) => {
701
701
  const u = e - 1;
702
- switch (c.key) {
702
+ switch (l.key) {
703
703
  case "ArrowDown":
704
- c.preventDefault(), d((_) => _ >= u ? 0 : _ + 1);
704
+ l.preventDefault(), d((_) => _ >= u ? 0 : _ + 1);
705
705
  break;
706
706
  case "ArrowUp":
707
- c.preventDefault(), d((_) => _ <= 0 ? u : _ - 1);
707
+ l.preventDefault(), d((_) => _ <= 0 ? u : _ - 1);
708
708
  break;
709
709
  case "Home":
710
- c.preventDefault(), d(0);
710
+ l.preventDefault(), d(0);
711
711
  break;
712
712
  case "End":
713
- c.preventDefault(), d(u);
713
+ l.preventDefault(), d(u);
714
714
  break;
715
715
  case " ":
716
716
  case "Enter": {
717
- if (c.key === " " && !i) break;
718
- c.preventDefault(), e > 0 && r(s);
717
+ if (l.key === " " && !i) break;
718
+ l.preventDefault(), e > 0 && r(s);
719
719
  break;
720
720
  }
721
721
  case "Escape":
722
- c.preventDefault(), o();
722
+ l.preventDefault(), o();
723
723
  break;
724
724
  case "Tab":
725
725
  o();
@@ -728,7 +728,7 @@ ${n(
728
728
  },
729
729
  [s, e, i, o, r]
730
730
  );
731
- return { activeIndex: s, setActiveIndex: d, listRef: h, handleKeyDown: l };
731
+ return { activeIndex: s, setActiveIndex: d, listRef: h, handleKeyDown: c };
732
732
  }, Vt = {
733
733
  top: "bottom",
734
734
  bottom: "top",
@@ -740,12 +740,12 @@ ${n(
740
740
  bottom: e.top + e.height + o,
741
741
  left: e.left - t.width - o,
742
742
  right: e.left + e.width + o
743
- }[n], d = i ? e.left : e.top, h = i ? e.width : e.height, l = i ? t.width : t.height, c = {
743
+ }[n], d = i ? e.left : e.top, h = i ? e.width : e.height, c = i ? t.width : t.height, l = {
744
744
  start: d,
745
- center: d + h / 2 - l / 2,
746
- end: d + h - l
745
+ center: d + h / 2 - c / 2,
746
+ end: d + h - c
747
747
  }[r];
748
- return i ? { top: s, left: c } : { top: c, left: s };
748
+ return i ? { top: s, left: l } : { top: l, left: s };
749
749
  }, Ta = (e, t, n, r, o) => ({
750
750
  top: e.top >= r,
751
751
  bottom: e.top + t.height <= o.height - r,
@@ -756,71 +756,71 @@ ${n(
756
756
  style: { position: "fixed", top: 0, left: 0 },
757
757
  side: n,
758
758
  isPositioned: !1
759
- }), l = R(0), c = H(() => {
759
+ }), c = S(0), l = H(() => {
760
760
  const m = e.current, w = t.current;
761
761
  if (!m || !w) return;
762
- const b = m.getBoundingClientRect(), p = w.getBoundingClientRect(), v = { width: window.innerWidth, height: window.innerHeight }, I = ea(b, p, n, r, o), k = Ta(I, p, n, i, v) ? n : Ta(
762
+ const b = m.getBoundingClientRect(), p = w.getBoundingClientRect(), v = { width: window.innerWidth, height: window.innerHeight }, $ = ea(b, p, n, r, o), N = Ta($, p, n, i, v) ? n : Ta(
763
763
  ea(b, p, Vt[n], r, o),
764
764
  p,
765
765
  Vt[n],
766
766
  i,
767
767
  v
768
- ) ? Vt[n] : n, x = ea(b, p, k, r, o);
768
+ ) ? Vt[n] : n, x = ea(b, p, N, r, o);
769
769
  h({
770
770
  style: {
771
771
  position: "fixed",
772
772
  top: Math.round(Ia(x.top, i, v.height - p.height - i)),
773
773
  left: Math.round(Ia(x.left, i, v.width - p.width - i))
774
774
  },
775
- side: k,
775
+ side: N,
776
776
  isPositioned: !0
777
777
  });
778
778
  }, [e, t, n, r, o, i]), u = H(() => {
779
- l.current || (l.current = window.requestAnimationFrame(() => {
780
- l.current = 0, c();
779
+ c.current || (c.current = window.requestAnimationFrame(() => {
780
+ c.current = 0, l();
781
781
  }));
782
- }, [c]);
783
- return (he() ? Fa : S)(() => {
782
+ }, [l]);
783
+ return (he() ? Fa : R)(() => {
784
784
  if (!s) {
785
785
  h((w) => w.isPositioned ? { ...w, isPositioned: !1 } : w);
786
786
  return;
787
787
  }
788
- c(), window.addEventListener("resize", u), document.addEventListener("scroll", u, !0);
788
+ l(), window.addEventListener("resize", u), document.addEventListener("scroll", u, !0);
789
789
  const m = typeof ResizeObserver > "u" ? null : new ResizeObserver(u);
790
790
  return m && t.current && m.observe(t.current), m && e.current && m.observe(e.current), () => {
791
- window.removeEventListener("resize", u), document.removeEventListener("scroll", u, !0), m == null || m.disconnect(), l.current && (window.cancelAnimationFrame(l.current), l.current = 0);
791
+ window.removeEventListener("resize", u), document.removeEventListener("scroll", u, !0), m == null || m.disconnect(), c.current && (window.cancelAnimationFrame(c.current), c.current = 0);
792
792
  };
793
- }, [s, c, u, e, t]), d;
793
+ }, [s, l, u, e, t]), d;
794
794
  }, On = 40, Hn = 6, zn = (e, { rowHeight: t = On, overscan: n = Hn, isEnabled: r = !0 } = {}) => {
795
- const o = R(null), [i, s] = O({
795
+ const o = S(null), [i, s] = O({
796
796
  start: 0,
797
797
  end: e,
798
798
  totalHeight: e * t,
799
799
  offset: 0
800
800
  }), d = H(() => {
801
- const l = o.current, c = !r || !l || l.clientHeight === 0 ? { start: 0, end: e, totalHeight: e * t, offset: 0 } : (() => {
802
- const u = Math.ceil(l.clientHeight / t), _ = Math.floor(l.scrollTop / t), m = Math.max(0, _ - n), w = Math.min(e, _ + u + n);
801
+ const c = o.current, l = !r || !c || c.clientHeight === 0 ? { start: 0, end: e, totalHeight: e * t, offset: 0 } : (() => {
802
+ const u = Math.ceil(c.clientHeight / t), _ = Math.floor(c.scrollTop / t), m = Math.max(0, _ - n), w = Math.min(e, _ + u + n);
803
803
  return { start: m, end: w, totalHeight: e * t, offset: m * t };
804
804
  })();
805
805
  s(
806
- (u) => u.start === c.start && u.end === c.end && u.totalHeight === c.totalHeight && u.offset === c.offset ? u : c
806
+ (u) => u.start === l.start && u.end === l.end && u.totalHeight === l.totalHeight && u.offset === l.offset ? u : l
807
807
  );
808
808
  }, [e, r, n, t]);
809
- S(d), S(() => {
810
- const l = o.current;
811
- if (!l) return;
812
- l.addEventListener("scroll", d, { passive: !0 });
813
- const c = typeof ResizeObserver > "u" ? null : new ResizeObserver(d);
814
- return c == null || c.observe(l), () => {
815
- l.removeEventListener("scroll", d), c == null || c.disconnect();
809
+ R(d), R(() => {
810
+ const c = o.current;
811
+ if (!c) return;
812
+ c.addEventListener("scroll", d, { passive: !0 });
813
+ const l = typeof ResizeObserver > "u" ? null : new ResizeObserver(d);
814
+ return l == null || l.observe(c), () => {
815
+ c.removeEventListener("scroll", d), l == null || l.disconnect();
816
816
  };
817
817
  }, [d]);
818
818
  const h = H(
819
- (l) => {
820
- const c = o.current;
821
- if (!c || !r) return;
822
- const u = l * t, _ = u + t;
823
- u < c.scrollTop ? c.scrollTop = u : _ > c.scrollTop + c.clientHeight && (c.scrollTop = _ - c.clientHeight);
819
+ (c) => {
820
+ const l = o.current;
821
+ if (!l || !r) return;
822
+ const u = c * t, _ = u + t;
823
+ u < l.scrollTop ? l.scrollTop = u : _ > l.scrollTop + l.clientHeight && (l.scrollTop = _ - l.clientHeight);
824
824
  },
825
825
  [r, t]
826
826
  );
@@ -845,7 +845,7 @@ const Kn = () => /iP(hone|ad|od)/.test(navigator.platform) || navigator.platform
845
845
  const { body: e } = document, { scrollY: t } = Re;
846
846
  e.style.overflow = Re.overflow, e.style.position = Re.position, e.style.top = Re.top, e.style.width = Re.width, e.style.paddingRight = Re.paddingRight, document.documentElement.style.removeProperty("scrollbar-gutter"), Re = null, window.scrollTo(0, t);
847
847
  }, Gt = (e = !0) => {
848
- S(() => {
848
+ R(() => {
849
849
  if (e)
850
850
  return Un(), Yn;
851
851
  }, [e]);
@@ -863,7 +863,7 @@ const qn = 240, tn = () => {
863
863
  }, Da = () => {
864
864
  pt && (window.cancelAnimationFrame(pt), pt = 0);
865
865
  }, jn = (e = !0) => {
866
- S(() => {
866
+ R(() => {
867
867
  if (!e) return;
868
868
  const t = window.visualViewport;
869
869
  if (t)
@@ -949,7 +949,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
949
949
  }, er = ({ size: e = "md", label: t, className: n }) => {
950
950
  const { labels: r } = j();
951
951
  return /* @__PURE__ */ a("span", { className: f(ta.spinner, ta[`spinner--${e}`], n), role: "status", children: /* @__PURE__ */ a("span", { className: ta.spinner__label, children: t ?? z("Spinner.label", r == null ? void 0 : r.loading) }) });
952
- }, an = /* @__PURE__ */ T(er), tr = "hanui-button-SRu4R", ar = "hanui-button__icon-giom6", nr = "hanui-button__spinner-vexVG", rr = "hanui-button__label-qiMHm", De = {
952
+ }, an = /* @__PURE__ */ I(er), tr = "hanui-button-SRu4R", ar = "hanui-button__icon-giom6", nr = "hanui-button__spinner-vexVG", rr = "hanui-button__label-qiMHm", De = {
953
953
  button: tr,
954
954
  button__icon: ar,
955
955
  button__spinner: nr,
@@ -978,8 +978,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
978
978
  className: s,
979
979
  children: d,
980
980
  disabled: h,
981
- href: l,
982
- isExternal: c,
981
+ href: c,
982
+ isExternal: l,
983
983
  linkProps: u,
984
984
  testId: _,
985
985
  ...m
@@ -997,10 +997,10 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
997
997
  /* @__PURE__ */ a("span", { className: De.button__label, children: d }),
998
998
  i && /* @__PURE__ */ a("span", { className: De.button__icon, children: i })
999
999
  ] });
1000
- return l && c ? /* @__PURE__ */ a(
1000
+ return c && l ? /* @__PURE__ */ a(
1001
1001
  "a",
1002
1002
  {
1003
- href: l,
1003
+ href: c,
1004
1004
  className: b,
1005
1005
  target: "_blank",
1006
1006
  rel: "noopener noreferrer",
@@ -1008,7 +1008,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1008
1008
  "data-testid": _,
1009
1009
  children: p
1010
1010
  }
1011
- ) : l ? /* @__PURE__ */ a(Te, { href: l, className: b, "data-testid": _, ...u, children: p }) : /* @__PURE__ */ a(
1011
+ ) : c ? /* @__PURE__ */ a(Te, { href: c, className: b, "data-testid": _, ...u, children: p }) : /* @__PURE__ */ a(
1012
1012
  "button",
1013
1013
  {
1014
1014
  ref: w,
@@ -1021,7 +1021,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1021
1021
  }
1022
1022
  );
1023
1023
  }
1024
- ), Lt = /* @__PURE__ */ T(/* @__PURE__ */ M(or, "Button")), ir = "hanui-iconButton-JdtwM", aa = {
1024
+ ), Lt = /* @__PURE__ */ I(/* @__PURE__ */ M(or, "Button")), ir = "hanui-iconButton-JdtwM", aa = {
1025
1025
  iconButton: ir,
1026
1026
  "iconButton--sm": "hanui-iconButton--sm-wE6zE",
1027
1027
  "iconButton--md": "hanui-iconButton--md-iTNNS",
@@ -1041,8 +1041,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1041
1041
  href: s,
1042
1042
  linkProps: d,
1043
1043
  testId: h,
1044
- ...l
1045
- }, c) => {
1044
+ ...c
1045
+ }, l) => {
1046
1046
  const u = f(
1047
1047
  aa.iconButton,
1048
1048
  aa[`iconButton--${n}`],
@@ -1055,7 +1055,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1055
1055
  href: s,
1056
1056
  className: u,
1057
1057
  "aria-label": t,
1058
- title: l.title,
1058
+ title: c.title,
1059
1059
  "data-testid": h,
1060
1060
  ...d,
1061
1061
  children: e
@@ -1063,17 +1063,17 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1063
1063
  ) : /* @__PURE__ */ a(
1064
1064
  "button",
1065
1065
  {
1066
- ref: c,
1066
+ ref: l,
1067
1067
  type: i,
1068
1068
  className: u,
1069
1069
  "aria-label": t,
1070
1070
  "data-testid": h,
1071
- ...l,
1071
+ ...c,
1072
1072
  children: e
1073
1073
  }
1074
1074
  );
1075
1075
  }
1076
- ), $e = /* @__PURE__ */ T(
1076
+ ), $e = /* @__PURE__ */ I(
1077
1077
  /* @__PURE__ */ M(sr, "IconButton")
1078
1078
  ), cr = "hanui-link-WBmXY", lr = "hanui-link__label--OEu-", dr = "hanui-link__arrow-JKXm-", yt = {
1079
1079
  link: cr,
@@ -1104,8 +1104,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1104
1104
  n && /* @__PURE__ */ a(vn, { "aria-hidden": !0, className: yt.link__arrow })
1105
1105
  ]
1106
1106
  }
1107
- ), Lu = /* @__PURE__ */ T(_r), pa = (e, t) => {
1108
- S(() => {
1107
+ ), Lu = /* @__PURE__ */ I(_r), pa = (e, t) => {
1108
+ R(() => {
1109
1109
  if (!e) return;
1110
1110
  const n = (r) => {
1111
1111
  r.key === "Escape" && t();
@@ -1128,55 +1128,55 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1128
1128
  openDelay: o = gr,
1129
1129
  className: i
1130
1130
  }) => {
1131
- const [s, d] = O(!1), h = J(), l = n ?? r ?? "top", c = R(null), u = R(null), _ = R(0), m = R(0), w = jt(c, u, {
1132
- side: l,
1131
+ const [s, d] = O(!1), h = J(), c = n ?? r ?? "top", l = S(null), u = S(null), _ = S(0), m = S(0), w = jt(l, u, {
1132
+ side: c,
1133
1133
  align: "center",
1134
1134
  isOpen: s
1135
1135
  }), b = H(() => {
1136
1136
  _.current && window.clearTimeout(_.current), _.current = 0;
1137
1137
  }, []), p = H(
1138
- ($) => {
1139
- b(), _.current = window.setTimeout(() => d(!0), $);
1138
+ (T) => {
1139
+ b(), _.current = window.setTimeout(() => d(!0), T);
1140
1140
  },
1141
1141
  [b]
1142
1142
  ), v = H(
1143
- ($ = mr) => {
1144
- b(), _.current = window.setTimeout(() => d(!1), $);
1143
+ (T = mr) => {
1144
+ b(), _.current = window.setTimeout(() => d(!1), T);
1145
1145
  },
1146
1146
  [b]
1147
1147
  );
1148
- S(() => b, [b]);
1149
- const I = H(() => v(0), [v]);
1150
- pa(s, I), S(() => {
1148
+ R(() => b, [b]);
1149
+ const $ = H(() => v(0), [v]);
1150
+ pa(s, $), R(() => {
1151
1151
  if (!s) return;
1152
- const $ = (N) => {
1153
- var D;
1154
- N.pointerType !== "mouse" && ((D = c.current) != null && D.contains(N.target) || v(0));
1152
+ const T = (D) => {
1153
+ var k;
1154
+ D.pointerType !== "mouse" && ((k = l.current) != null && k.contains(D.target) || v(0));
1155
1155
  };
1156
- return document.addEventListener("pointerdown", $), () => document.removeEventListener("pointerdown", $);
1156
+ return document.addEventListener("pointerdown", T), () => document.removeEventListener("pointerdown", T);
1157
1157
  }, [s, v]);
1158
- const k = () => {
1158
+ const N = () => {
1159
1159
  m.current && window.clearTimeout(m.current), m.current = 0;
1160
- }, x = ($) => {
1161
- $.pointerType !== "mouse" && (m.current = window.setTimeout(() => d(!0), br));
1160
+ }, x = (T) => {
1161
+ T.pointerType !== "mouse" && (m.current = window.setTimeout(() => d(!0), br));
1162
1162
  };
1163
1163
  return /* @__PURE__ */ g(fe, { children: [
1164
1164
  /* @__PURE__ */ a(
1165
1165
  "span",
1166
1166
  {
1167
- ref: c,
1167
+ ref: l,
1168
1168
  className: f(At.tooltip, i),
1169
- onPointerEnter: ($) => $.pointerType === "mouse" && p(o),
1170
- onPointerLeave: ($) => {
1171
- k(), $.pointerType === "mouse" && v();
1169
+ onPointerEnter: (T) => T.pointerType === "mouse" && p(o),
1170
+ onPointerLeave: (T) => {
1171
+ N(), T.pointerType === "mouse" && v();
1172
1172
  },
1173
1173
  onPointerDown: x,
1174
- onPointerUp: k,
1175
- onPointerCancel: k,
1174
+ onPointerUp: N,
1175
+ onPointerCancel: N,
1176
1176
  onFocus: () => p(0),
1177
1177
  onBlur: () => v(0),
1178
- onContextMenu: ($) => {
1179
- (s || m.current) && $.preventDefault();
1178
+ onContextMenu: (T) => {
1179
+ (s || m.current) && T.preventDefault();
1180
1180
  },
1181
1181
  children: /* @__PURE__ */ a("span", { "aria-describedby": s ? h : void 0, className: At.tooltip__trigger, children: t })
1182
1182
  }
@@ -1203,7 +1203,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1203
1203
  document.body
1204
1204
  )
1205
1205
  ] });
1206
- }, Su = /* @__PURE__ */ T(/* @__PURE__ */ M(fr, "Tooltip")), vr = "hanui-menu-1x-FU", yr = "hanui-menu__item-d1iil", wr = "hanui-menu__icon-kzLV2", wt = {
1206
+ }, Su = /* @__PURE__ */ I(/* @__PURE__ */ M(fr, "Tooltip")), vr = "hanui-menu-1x-FU", yr = "hanui-menu__item-d1iil", wr = "hanui-menu__icon-kzLV2", wt = {
1207
1207
  menu: vr,
1208
1208
  "menu--top": "hanui-menu--top-gpo39",
1209
1209
  "menu--bottom": "hanui-menu--bottom-6sL7b",
@@ -1221,38 +1221,38 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1221
1221
  className: i,
1222
1222
  testId: s
1223
1223
  }) => {
1224
- const d = J(), h = R(null), l = R(null), c = R(null), u = R({ text: "", at: 0 }), [_, m] = O(!1), [w, b] = O(0), p = jt(h, l, { side: r, align: o, isOpen: _ }), v = xr(t), I = H(
1224
+ const d = J(), h = S(null), c = S(null), l = S(null), u = S({ text: "", at: 0 }), [_, m] = O(!1), [w, b] = O(0), p = jt(h, c, { side: r, align: o, isOpen: _ }), v = xr(t), $ = H(
1225
1225
  (y) => {
1226
- v.length !== 0 && (c.current = mt(), b(y === "first" ? v[0] : v[v.length - 1]), m(!0));
1226
+ v.length !== 0 && (l.current = mt(), b(y === "first" ? v[0] : v[v.length - 1]), m(!0));
1227
1227
  },
1228
1228
  [v]
1229
- ), k = H(() => {
1229
+ ), N = H(() => {
1230
1230
  var y;
1231
- m(!1), (y = c.current) == null || y.call(c), c.current = null;
1231
+ m(!1), (y = l.current) == null || y.call(l), l.current = null;
1232
1232
  }, []);
1233
- S(() => {
1233
+ R(() => {
1234
1234
  var y, B;
1235
- _ && ((B = (y = l.current) == null ? void 0 : y.querySelector(`[data-index="${w}"]`)) == null || B.focus({ preventScroll: !0 }));
1236
- }, [_, w]), S(() => {
1235
+ _ && ((B = (y = c.current) == null ? void 0 : y.querySelector(`[data-index="${w}"]`)) == null || B.focus({ preventScroll: !0 }));
1236
+ }, [_, w]), R(() => {
1237
1237
  if (!_) return;
1238
1238
  const y = (B) => {
1239
1239
  var Q, V;
1240
1240
  const Y = B.target;
1241
- (Q = l.current) != null && Q.contains(Y) || (V = h.current) != null && V.contains(Y) || k();
1241
+ (Q = c.current) != null && Q.contains(Y) || (V = h.current) != null && V.contains(Y) || N();
1242
1242
  };
1243
1243
  return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
1244
- }, [_, k]);
1244
+ }, [_, N]);
1245
1245
  const x = (y) => {
1246
1246
  const Y = (v.indexOf(w) + y + v.length) % v.length;
1247
1247
  b(v[Y]);
1248
- }, $ = (y) => {
1248
+ }, T = (y) => {
1249
1249
  const B = Date.now(), Y = B - u.current.at > 500 ? y : u.current.text + y;
1250
1250
  u.current = { text: Y, at: B };
1251
1251
  const Q = v.find(
1252
1252
  (V) => t[V].label.toLocaleLowerCase("tr").startsWith(Y.toLocaleLowerCase("tr"))
1253
1253
  );
1254
1254
  Q !== void 0 && b(Q);
1255
- }, N = (y) => {
1255
+ }, D = (y) => {
1256
1256
  switch (y.key) {
1257
1257
  case "ArrowDown":
1258
1258
  y.preventDefault(), x(1);
@@ -1267,43 +1267,43 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1267
1267
  y.preventDefault(), b(v[v.length - 1]);
1268
1268
  break;
1269
1269
  case "Escape":
1270
- y.preventDefault(), k();
1270
+ y.preventDefault(), N();
1271
1271
  break;
1272
1272
  case "Tab":
1273
- k();
1273
+ N();
1274
1274
  break;
1275
1275
  default:
1276
- y.key.length === 1 && !y.metaKey && !y.ctrlKey && $(y.key);
1276
+ y.key.length === 1 && !y.metaKey && !y.ctrlKey && T(y.key);
1277
1277
  }
1278
- }, D = (y) => {
1278
+ }, k = (y) => {
1279
1279
  if (y.key === "ArrowUp") {
1280
- y.preventDefault(), I("last");
1280
+ y.preventDefault(), $("last");
1281
1281
  return;
1282
1282
  }
1283
- ["ArrowDown", "Enter", " "].includes(y.key) && (y.preventDefault(), I("first"));
1283
+ ["ArrowDown", "Enter", " "].includes(y.key) && (y.preventDefault(), $("first"));
1284
1284
  };
1285
1285
  if (!Pa(e)) return null;
1286
- const E = e.props, L = Oa(e, {
1286
+ const L = e.props, C = Oa(e, {
1287
1287
  ref: h,
1288
1288
  "aria-haspopup": "menu",
1289
1289
  "aria-expanded": _,
1290
1290
  "aria-controls": _ ? d : void 0,
1291
1291
  onClick: (y) => {
1292
1292
  var B;
1293
- (B = E.onClick) == null || B.call(E, y), _ ? k() : I("first");
1293
+ (B = L.onClick) == null || B.call(L, y), _ ? N() : $("first");
1294
1294
  },
1295
1295
  onKeyDown: (y) => {
1296
1296
  var B;
1297
- (B = E.onKeyDown) == null || B.call(E, y), _ || D(y);
1297
+ (B = L.onKeyDown) == null || B.call(L, y), _ || k(y);
1298
1298
  }
1299
1299
  });
1300
1300
  return /* @__PURE__ */ g(fe, { children: [
1301
- L,
1301
+ C,
1302
1302
  _ && he() && St(
1303
1303
  /* @__PURE__ */ a(
1304
1304
  "div",
1305
1305
  {
1306
- ref: l,
1306
+ ref: c,
1307
1307
  id: d,
1308
1308
  role: "menu",
1309
1309
  "aria-label": n,
@@ -1313,7 +1313,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1313
1313
  visibility: p.isPositioned ? "visible" : "hidden"
1314
1314
  },
1315
1315
  "data-testid": s,
1316
- onKeyDown: N,
1316
+ onKeyDown: D,
1317
1317
  children: t.map((y, B) => /* @__PURE__ */ g(
1318
1318
  "button",
1319
1319
  {
@@ -1324,7 +1324,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1324
1324
  disabled: y.isDisabled,
1325
1325
  className: f(wt.menu__item, y.isDanger && wt["menu__item--danger"]),
1326
1326
  onClick: () => {
1327
- y.onSelect(), k();
1327
+ y.onSelect(), N();
1328
1328
  },
1329
1329
  onMouseEnter: () => !y.isDisabled && b(B),
1330
1330
  children: [
@@ -1339,7 +1339,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1339
1339
  document.body
1340
1340
  )
1341
1341
  ] });
1342
- }, Ru = /* @__PURE__ */ T(/* @__PURE__ */ M(Nr, "Menu")), kr = "hanui-popover-VxgiK", La = {
1342
+ }, Ru = /* @__PURE__ */ I(/* @__PURE__ */ M(Nr, "Menu")), kr = "hanui-popover-VxgiK", La = {
1343
1343
  popover: kr,
1344
1344
  "popover--top": "hanui-popover--top-OUYwo",
1345
1345
  "popover--bottom": "hanui-popover--bottom-Q1K4X",
@@ -1356,49 +1356,49 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1356
1356
  className: d,
1357
1357
  testId: h
1358
1358
  }) => {
1359
- const l = J(), c = R(null), u = R(null), _ = R(null), [m, w] = O(!1), b = i !== void 0, p = b ? i : m, v = jt(c, u, { side: r, align: o, isOpen: p }), I = H(
1360
- (N) => {
1361
- b || w(N), s == null || s(N);
1359
+ const c = J(), l = S(null), u = S(null), _ = S(null), [m, w] = O(!1), b = i !== void 0, p = b ? i : m, v = jt(l, u, { side: r, align: o, isOpen: p }), $ = H(
1360
+ (D) => {
1361
+ b || w(D), s == null || s(D);
1362
1362
  },
1363
1363
  [b, s]
1364
1364
  );
1365
- S(() => {
1365
+ R(() => {
1366
1366
  if (!p) return;
1367
1367
  _.current = mt();
1368
- const N = u.current;
1369
- return N && Wt(N), () => {
1370
- var D;
1371
- (D = _.current) == null || D.call(_), _.current = null;
1368
+ const D = u.current;
1369
+ return D && Wt(D), () => {
1370
+ var k;
1371
+ (k = _.current) == null || k.call(_), _.current = null;
1372
1372
  };
1373
1373
  }, [p]);
1374
- const k = H(() => I(!1), [I]);
1375
- if (pa(p, k), S(() => {
1374
+ const N = H(() => $(!1), [$]);
1375
+ if (pa(p, N), R(() => {
1376
1376
  if (!p) return;
1377
- const N = (D) => {
1378
- var L, y;
1379
- const E = D.target;
1380
- (L = u.current) != null && L.contains(E) || (y = c.current) != null && y.contains(E) || I(!1);
1377
+ const D = (k) => {
1378
+ var C, y;
1379
+ const L = k.target;
1380
+ (C = u.current) != null && C.contains(L) || (y = l.current) != null && y.contains(L) || $(!1);
1381
1381
  };
1382
- return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
1383
- }, [p, I]), !Pa(e)) return null;
1384
- const x = e.props, $ = Oa(e, {
1385
- ref: c,
1382
+ return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
1383
+ }, [p, $]), !Pa(e)) return null;
1384
+ const x = e.props, T = Oa(e, {
1385
+ ref: l,
1386
1386
  "aria-expanded": p,
1387
1387
  "aria-haspopup": "dialog",
1388
- "aria-controls": p ? l : void 0,
1389
- onClick: (N) => {
1390
- var D;
1391
- (D = x.onClick) == null || D.call(x, N), I(!p);
1388
+ "aria-controls": p ? c : void 0,
1389
+ onClick: (D) => {
1390
+ var k;
1391
+ (k = x.onClick) == null || k.call(x, D), $(!p);
1392
1392
  }
1393
1393
  });
1394
1394
  return /* @__PURE__ */ g(fe, { children: [
1395
- $,
1395
+ T,
1396
1396
  p && he() && St(
1397
1397
  /* @__PURE__ */ a(
1398
1398
  "div",
1399
1399
  {
1400
1400
  ref: u,
1401
- id: l,
1401
+ id: c,
1402
1402
  role: "dialog",
1403
1403
  "aria-label": n,
1404
1404
  className: f(La.popover, La[`popover--${v.side}`], d),
@@ -1407,9 +1407,9 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1407
1407
  visibility: v.isPositioned ? "visible" : "hidden"
1408
1408
  },
1409
1409
  "data-testid": h,
1410
- onBlur: (N) => {
1411
- var D;
1412
- N.currentTarget.contains(N.relatedTarget) || (D = c.current) != null && D.contains(N.relatedTarget) || I(!1);
1410
+ onBlur: (D) => {
1411
+ var k;
1412
+ D.currentTarget.contains(D.relatedTarget) || (k = l.current) != null && k.contains(D.relatedTarget) || $(!1);
1413
1413
  },
1414
1414
  children: t
1415
1415
  }
@@ -1417,7 +1417,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1417
1417
  document.body
1418
1418
  )
1419
1419
  ] });
1420
- }, Au = /* @__PURE__ */ T(/* @__PURE__ */ M($r, "Popover")), Ir = "hanui-chip--NLgU", Tr = "hanui-chip__icon-IjjSb", Dr = "hanui-chip__label-cT4hw", Cr = "hanui-chip__count-MBGO3", Be = {
1420
+ }, Au = /* @__PURE__ */ I(/* @__PURE__ */ M($r, "Popover")), Ir = "hanui-chip--NLgU", Tr = "hanui-chip__icon-IjjSb", Dr = "hanui-chip__label-cT4hw", Cr = "hanui-chip__count-MBGO3", Be = {
1421
1421
  chip: Ir,
1422
1422
  chip__icon: Tr,
1423
1423
  chip__label: Dr,
@@ -1437,8 +1437,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1437
1437
  label: s,
1438
1438
  href: d,
1439
1439
  linkProps: h,
1440
- className: l,
1441
- type: c = "button",
1440
+ className: c,
1441
+ type: l = "button",
1442
1442
  role: u,
1443
1443
  testId: _,
1444
1444
  ...m
@@ -1448,7 +1448,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1448
1448
  Be[`chip--${i}`],
1449
1449
  o && Be["chip--selected"],
1450
1450
  !e && Be["chip--iconOnly"],
1451
- l
1451
+ c
1452
1452
  ), p = /* @__PURE__ */ g(fe, { children: [
1453
1453
  t && /* @__PURE__ */ a("span", { className: Be.chip__icon, "aria-hidden": !0, children: t }),
1454
1454
  e && /* @__PURE__ */ a("span", { className: Be.chip__label, children: e }),
@@ -1470,7 +1470,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1470
1470
  "button",
1471
1471
  {
1472
1472
  ref: w,
1473
- type: c,
1473
+ type: l,
1474
1474
  role: u,
1475
1475
  className: b,
1476
1476
  "aria-label": e ? void 0 : s,
@@ -1481,7 +1481,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1481
1481
  }
1482
1482
  );
1483
1483
  }
1484
- ), Lr = /* @__PURE__ */ T(/* @__PURE__ */ M(Er, "Chip")), Sr = "hanui-group-0tnVf", Sa = {
1484
+ ), Lr = /* @__PURE__ */ I(/* @__PURE__ */ M(Er, "Chip")), Sr = "hanui-group-0tnVf", Sa = {
1485
1485
  group: Sr,
1486
1486
  "group--scrollable": "hanui-group--scrollable-PMu6V"
1487
1487
  }, Rr = ({
@@ -1493,24 +1493,24 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1493
1493
  ...i
1494
1494
  }) => {
1495
1495
  var u;
1496
- const s = R(null), d = (_) => i.isMultiple ? i.value.includes(_) : i.value === _, h = (_) => {
1496
+ const s = S(null), d = (_) => i.isMultiple ? i.value.includes(_) : i.value === _, h = (_) => {
1497
1497
  if (i.isMultiple) {
1498
1498
  const m = i.value.includes(_) ? i.value.filter((w) => w !== _) : [...i.value, _];
1499
1499
  i.onChange(m);
1500
1500
  return;
1501
1501
  }
1502
1502
  i.onChange(i.value === _ ? null : _);
1503
- }, l = (_) => {
1504
- var v, I;
1503
+ }, c = (_) => {
1504
+ var v, $;
1505
1505
  if (i.isMultiple) return;
1506
1506
  const m = _.key === "ArrowRight" || _.key === "ArrowDown" ? 1 : _.key === "ArrowLeft" || _.key === "ArrowUp" ? -1 : 0;
1507
1507
  if (m === 0) return;
1508
1508
  _.preventDefault();
1509
- const w = e.filter((k) => !k.isDisabled);
1509
+ const w = e.filter((N) => !N.isDisabled);
1510
1510
  if (w.length === 0) return;
1511
- const b = w.findIndex((k) => k.value === i.value), p = w[(b + m + w.length) % w.length];
1512
- i.onChange(p.value), (I = (v = s.current) == null ? void 0 : v.querySelector(`[data-chip-value="${p.value}"]`)) == null || I.focus();
1513
- }, c = i.isMultiple ? null : i.value ?? ((u = e.find((_) => !_.isDisabled)) == null ? void 0 : u.value) ?? null;
1511
+ const b = w.findIndex((N) => N.value === i.value), p = w[(b + m + w.length) % w.length];
1512
+ i.onChange(p.value), ($ = (v = s.current) == null ? void 0 : v.querySelector(`[data-chip-value="${p.value}"]`)) == null || $.focus();
1513
+ }, l = i.isMultiple ? null : i.value ?? ((u = e.find((_) => !_.isDisabled)) == null ? void 0 : u.value) ?? null;
1514
1514
  return /* @__PURE__ */ a(
1515
1515
  "div",
1516
1516
  {
@@ -1518,7 +1518,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1518
1518
  className: f(Sa.group, r && Sa["group--scrollable"], o),
1519
1519
  role: i.isMultiple ? "group" : "radiogroup",
1520
1520
  "aria-label": t,
1521
- onKeyDown: l,
1521
+ onKeyDown: c,
1522
1522
  children: e.map((_) => /* @__PURE__ */ a(
1523
1523
  Lr,
1524
1524
  {
@@ -1528,7 +1528,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1528
1528
  isSelected: d(_.value),
1529
1529
  disabled: _.isDisabled,
1530
1530
  role: i.isMultiple ? void 0 : "radio",
1531
- tabIndex: i.isMultiple || _.value === c ? 0 : -1,
1531
+ tabIndex: i.isMultiple || _.value === l ? 0 : -1,
1532
1532
  "data-chip-value": _.value,
1533
1533
  onClick: () => h(_.value),
1534
1534
  children: _.label
@@ -1537,9 +1537,9 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1537
1537
  ))
1538
1538
  }
1539
1539
  );
1540
- }, Mu = /* @__PURE__ */ T(Rr), Ar = (e, t, n, r) => {
1541
- const o = R(n);
1542
- o.current = n, S(() => {
1540
+ }, Mu = /* @__PURE__ */ I(Rr), Ar = (e, t, n, r) => {
1541
+ const o = S(n);
1542
+ o.current = n, R(() => {
1543
1543
  if (!t || !o.current) return;
1544
1544
  const i = window.setTimeout(() => {
1545
1545
  var s;
@@ -1565,13 +1565,13 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1565
1565
  className: d,
1566
1566
  testId: h
1567
1567
  }) => {
1568
- const { labels: l } = j(), c = J(), u = R(null);
1569
- jn(), Gt(), S(() => {
1568
+ const { labels: c } = j(), l = J(), u = S(null);
1569
+ jn(), Gt(), R(() => {
1570
1570
  const w = mt(), { token: b, pop: p } = Xt();
1571
1571
  return u.current = b, () => {
1572
1572
  p(), u.current = null, w();
1573
1573
  };
1574
- }, []), S(() => {
1574
+ }, []), R(() => {
1575
1575
  const w = window.matchMedia(s);
1576
1576
  return w.addEventListener("change", n), () => w.removeEventListener("change", n);
1577
1577
  }, [s, n]);
@@ -1589,7 +1589,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1589
1589
  {
1590
1590
  ref: _,
1591
1591
  className: f(je.sheet, d),
1592
- "aria-labelledby": c,
1592
+ "aria-labelledby": l,
1593
1593
  "data-testid": h,
1594
1594
  onCancel: (w) => {
1595
1595
  w.preventDefault(), !(u.current && !Qt(u.current)) && n();
@@ -1597,12 +1597,12 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1597
1597
  onClick: m,
1598
1598
  children: [
1599
1599
  /* @__PURE__ */ g("header", { className: je.sheet__header, children: [
1600
- /* @__PURE__ */ a("h2", { id: c, className: je.sheet__title, children: e }),
1600
+ /* @__PURE__ */ a("h2", { id: l, className: je.sheet__title, children: e }),
1601
1601
  /* @__PURE__ */ a(
1602
1602
  $e,
1603
1603
  {
1604
1604
  icon: /* @__PURE__ */ a(Ue, { "aria-hidden": !0 }),
1605
- label: z("BottomSheet.closeLabel", t, l == null ? void 0 : l.close),
1605
+ label: z("BottomSheet.closeLabel", t, c == null ? void 0 : c.close),
1606
1606
  variant: "ghost",
1607
1607
  size: "sm",
1608
1608
  onClick: n
@@ -1617,7 +1617,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1617
1617
  ),
1618
1618
  document.body
1619
1619
  ) : null;
1620
- }, nn = /* @__PURE__ */ T(zr), Kr = 80, Ra = 40, Ur = 300, Yr = "hanui-combobox-NtZoV", qr = "hanui-combobox__trigger-2riRR", jr = "hanui-combobox__leadingIcon-it2xz", Gr = "hanui-combobox__value-acDlr", Wr = "hanui-combobox__clear-EXOsc", Xr = "hanui-combobox__chevron-g-QzQ", Qr = "hanui-combobox__panel-srBxl", Jr = "hanui-combobox__search-THjer", Zr = "hanui-combobox__searchIcon-vr4Bg", Vr = "hanui-combobox__searchInput-JPp5h", eo = "hanui-combobox__list-p-eCs", to = "hanui-combobox__option-CLWh-", ao = "hanui-combobox__optionText-Zm0D6", no = "hanui-combobox__optionLabel-WvT4W", ro = "hanui-combobox__optionDescription-8OEzi", oo = "hanui-combobox__check-MKlLz", io = "hanui-combobox__empty-mZwBq", q = {
1620
+ }, nn = /* @__PURE__ */ I(zr), Kr = 80, Ra = 40, Ur = 300, Yr = "hanui-combobox-NtZoV", qr = "hanui-combobox__trigger-2riRR", jr = "hanui-combobox__leadingIcon-it2xz", Gr = "hanui-combobox__value-acDlr", Wr = "hanui-combobox__clear-EXOsc", Xr = "hanui-combobox__chevron-g-QzQ", Qr = "hanui-combobox__panel-srBxl", Jr = "hanui-combobox__search-THjer", Zr = "hanui-combobox__searchIcon-vr4Bg", Vr = "hanui-combobox__searchInput-JPp5h", eo = "hanui-combobox__list-p-eCs", to = "hanui-combobox__option-CLWh-", ao = "hanui-combobox__optionText-Zm0D6", no = "hanui-combobox__optionLabel-WvT4W", ro = "hanui-combobox__optionDescription-8OEzi", oo = "hanui-combobox__check-MKlLz", io = "hanui-combobox__empty-mZwBq", q = {
1621
1621
  combobox: Yr,
1622
1622
  combobox__trigger: qr,
1623
1623
  "combobox__trigger--empty": "hanui-combobox__trigger--empty-RxwCq",
@@ -1654,8 +1654,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1654
1654
  isLoading: s,
1655
1655
  isDisabled: d,
1656
1656
  isClearable: h,
1657
- icon: l,
1658
- id: c,
1657
+ icon: c,
1658
+ id: l,
1659
1659
  className: u,
1660
1660
  testId: _,
1661
1661
  "aria-describedby": m,
@@ -1691,45 +1691,45 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1691
1691
  var F;
1692
1692
  return z("Combobox.clearLabel", r.clearLabel, (F = b == null ? void 0 : b.combobox) == null ? void 0 : F.clearLabel);
1693
1693
  }
1694
- }, v = J(), I = c ?? v, k = `${I}-listbox`, x = R(null), $ = R(null), N = R(null), D = R(null), [E, L] = O(null), y = E !== null, [B, Y] = O(""), [Q, V] = O(null), G = Et(() => {
1694
+ }, v = J(), $ = l ?? v, N = `${$}-listbox`, x = S(null), T = S(null), D = S(null), k = S(null), [L, C] = O(null), y = L !== null, [B, Y] = O(""), [Q, V] = O(null), G = Et(() => {
1695
1695
  if (i || B.trim() === "") return e;
1696
1696
  const F = B.trim();
1697
1697
  return e.filter(
1698
1698
  (we) => zt(we.label, F) || (we.description ? zt(we.description, F) : !1)
1699
1699
  );
1700
1700
  }, [e, B, i]), de = e.find((F) => F.value === t) ?? null;
1701
- S(() => {
1701
+ R(() => {
1702
1702
  de ? V(de.label) : t === null && V(null);
1703
1703
  }, [de, t]);
1704
1704
  const rt = (de == null ? void 0 : de.label) ?? Q;
1705
1705
  Ar(B, y, i, Ur);
1706
1706
  const ve = H(() => {
1707
- L(null), Y("");
1707
+ C(null), Y("");
1708
1708
  }, []), Jt = H(() => {
1709
- d || (L(window.matchMedia(ua).matches ? "popover" : "sheet"), Y(""));
1709
+ d || (C(window.matchMedia(ua).matches ? "popover" : "sheet"), Y(""));
1710
1710
  }, [d]);
1711
- S(() => {
1712
- if (E !== "popover") return;
1711
+ R(() => {
1712
+ if (L !== "popover") return;
1713
1713
  const F = (we) => {
1714
1714
  var pe;
1715
1715
  (pe = x.current) != null && pe.contains(we.target) || ve();
1716
1716
  };
1717
1717
  return document.addEventListener("mousedown", F), () => document.removeEventListener("mousedown", F);
1718
- }, [E, ve]), S(() => {
1718
+ }, [L, ve]), R(() => {
1719
1719
  var F;
1720
- E === "popover" && ((F = D.current) == null || F.focus({ preventScroll: !0 }));
1721
- }, [E]);
1720
+ L === "popover" && ((F = k.current) == null || F.focus({ preventScroll: !0 }));
1721
+ }, [L]);
1722
1722
  const bt = (F) => {
1723
1723
  F.isDisabled || (V(F.label), n(F.value), ve());
1724
- }, gt = R(!1);
1725
- S(() => {
1724
+ }, gt = S(!1);
1725
+ R(() => {
1726
1726
  var F;
1727
- gt.current && !y && ((F = $.current) == null || F.focus()), gt.current = y;
1727
+ gt.current && !y && ((F = T.current) == null || F.focus()), gt.current = y;
1728
1728
  }, [y]);
1729
- const K = jt($, N, {
1729
+ const K = jt(T, D, {
1730
1730
  side: "bottom",
1731
1731
  align: "start",
1732
- isOpen: y && E === "popover"
1732
+ isOpen: y && L === "popover"
1733
1733
  }), { activeIndex: Z, setActiveIndex: ye, listRef: ft, handleKeyDown: cn } = Za({
1734
1734
  count: G.length,
1735
1735
  isOpen: y,
@@ -1743,11 +1743,11 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1743
1743
  },
1744
1744
  /* Odagi geri vermek kapanisi izleyen etkinin isi (bkz. `wasOpenRef`). */
1745
1745
  onClose: ve
1746
- }), ln = G.some((F) => !!F.description), Ye = E === "popover" && !ln && G.length > Kr, { scrollRef: dn, range: qe, scrollToIndex: ba } = zn(G.length, {
1746
+ }), ln = G.some((F) => !!F.description), Ye = L === "popover" && !ln && G.length > Kr, { scrollRef: dn, range: qe, scrollToIndex: ba } = zn(G.length, {
1747
1747
  rowHeight: Ra,
1748
1748
  isEnabled: Ye
1749
1749
  });
1750
- S(() => {
1750
+ R(() => {
1751
1751
  Ye && ba(Z);
1752
1752
  }, [Z, Ye, ba]);
1753
1753
  const _n = (F) => {
@@ -1759,7 +1759,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1759
1759
  /* @__PURE__ */ a(
1760
1760
  "input",
1761
1761
  {
1762
- ref: D,
1762
+ ref: k,
1763
1763
  type: "text",
1764
1764
  role: "combobox",
1765
1765
  className: q.combobox__searchInput,
@@ -1768,8 +1768,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1768
1768
  autoComplete: "off",
1769
1769
  "aria-autocomplete": "list",
1770
1770
  "aria-expanded": !0,
1771
- "aria-controls": k,
1772
- "aria-activedescendant": G[Z] ? `${I}-option-${Z}` : void 0,
1771
+ "aria-controls": N,
1772
+ "aria-activedescendant": G[Z] ? `${$}-option-${Z}` : void 0,
1773
1773
  "aria-label": p.search,
1774
1774
  onChange: (F) => {
1775
1775
  Y(F.target.value), ye(0);
@@ -1784,7 +1784,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1784
1784
  "ul",
1785
1785
  {
1786
1786
  ref: _n,
1787
- id: k,
1787
+ id: N,
1788
1788
  role: "listbox",
1789
1789
  className: f(q.combobox__list, F && q["combobox__list--sheet"]),
1790
1790
  children: [
@@ -1794,7 +1794,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1794
1794
  return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ g(
1795
1795
  "div",
1796
1796
  {
1797
- id: `${I}-option-${vt}`,
1797
+ id: `${$}-option-${vt}`,
1798
1798
  role: "option",
1799
1799
  "data-index": vt,
1800
1800
  "aria-setsize": Ye ? G.length : void 0,
@@ -1829,8 +1829,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1829
1829
  /* @__PURE__ */ g(
1830
1830
  "button",
1831
1831
  {
1832
- ref: $,
1833
- id: I,
1832
+ ref: T,
1833
+ id: $,
1834
1834
  type: "button",
1835
1835
  className: f(
1836
1836
  q.combobox__trigger,
@@ -1842,12 +1842,12 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1842
1842
  disabled: d,
1843
1843
  "aria-haspopup": "listbox",
1844
1844
  "aria-expanded": y,
1845
- "aria-controls": y ? k : void 0,
1845
+ "aria-controls": y ? N : void 0,
1846
1846
  "aria-label": r.placeholder,
1847
1847
  "aria-describedby": m,
1848
1848
  onClick: () => y ? ve() : Jt(),
1849
1849
  children: [
1850
- l && /* @__PURE__ */ a("span", { className: q.combobox__leadingIcon, "aria-hidden": !0, children: l }),
1850
+ c && /* @__PURE__ */ a("span", { className: q.combobox__leadingIcon, "aria-hidden": !0, children: c }),
1851
1851
  /* @__PURE__ */ a("span", { className: q.combobox__value, children: rt ?? r.placeholder }),
1852
1852
  /* @__PURE__ */ a(
1853
1853
  za,
@@ -1869,16 +1869,16 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1869
1869
  children: /* @__PURE__ */ a(Ue, { "aria-hidden": !0 })
1870
1870
  }
1871
1871
  ),
1872
- E === "popover" && /* @__PURE__ */ g(
1872
+ L === "popover" && /* @__PURE__ */ g(
1873
1873
  "div",
1874
1874
  {
1875
- ref: N,
1875
+ ref: D,
1876
1876
  className: q.combobox__panel,
1877
1877
  style: {
1878
1878
  ...K.style,
1879
1879
  /* Panel tetikleyiciyle AYNI genislikte: sabit konum onu
1880
1880
  kapsayicidan kopardigi icin genislik artik miras alinmiyor. */
1881
- width: (va = $.current) == null ? void 0 : va.offsetWidth,
1881
+ width: (va = T.current) == null ? void 0 : va.offsetWidth,
1882
1882
  /* Ilk karede olcu yok; yanlis yerde bir kare parlamasin. */
1883
1883
  visibility: K.isPositioned ? void 0 : "hidden"
1884
1884
  },
@@ -1888,7 +1888,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1888
1888
  ]
1889
1889
  }
1890
1890
  ),
1891
- E === "sheet" && /* @__PURE__ */ a(
1891
+ L === "sheet" && /* @__PURE__ */ a(
1892
1892
  nn,
1893
1893
  {
1894
1894
  title: r.placeholder,
@@ -1899,7 +1899,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1899
1899
  }
1900
1900
  )
1901
1901
  ] });
1902
- }, Bu = /* @__PURE__ */ T(so), co = "hanui-segmented-qo2Bw", lo = "hanui-segmented__item-mqRNZ", _o = "hanui-segmented__icon-C9CT-", uo = "hanui-segmented__label-NVXBv", it = {
1902
+ }, Bu = /* @__PURE__ */ I(so), co = "hanui-segmented-qo2Bw", lo = "hanui-segmented__item-mqRNZ", _o = "hanui-segmented__icon-C9CT-", uo = "hanui-segmented__label-NVXBv", it = {
1903
1903
  segmented: co,
1904
1904
  "segmented--sm": "hanui-segmented--sm-7tUry",
1905
1905
  "segmented--md": "hanui-segmented--md-PiSqt",
@@ -1917,11 +1917,11 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1917
1917
  className: s,
1918
1918
  testId: d
1919
1919
  }) => {
1920
- const h = R(null), l = (c) => {
1920
+ const h = S(null), c = (l) => {
1921
1921
  var b, p;
1922
- const u = c.key === "ArrowRight" || c.key === "ArrowDown" ? 1 : c.key === "ArrowLeft" || c.key === "ArrowUp" ? -1 : 0;
1922
+ const u = l.key === "ArrowRight" || l.key === "ArrowDown" ? 1 : l.key === "ArrowLeft" || l.key === "ArrowUp" ? -1 : 0;
1923
1923
  if (u === 0) return;
1924
- c.preventDefault();
1924
+ l.preventDefault();
1925
1925
  const _ = e.filter((v) => !v.isDisabled);
1926
1926
  if (_.length === 0) return;
1927
1927
  const m = _.findIndex((v) => v.value === t), w = _[(m + u + _.length) % _.length];
@@ -1935,35 +1935,35 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1935
1935
  "aria-label": r,
1936
1936
  className: f(it.segmented, it[`segmented--${i}`], s),
1937
1937
  "data-testid": d,
1938
- onKeyDown: l,
1939
- children: e.map((c) => {
1940
- const u = c.value === t;
1938
+ onKeyDown: c,
1939
+ children: e.map((l) => {
1940
+ const u = l.value === t;
1941
1941
  return /* @__PURE__ */ g(
1942
1942
  "button",
1943
1943
  {
1944
1944
  type: "button",
1945
1945
  role: "radio",
1946
1946
  "aria-checked": u,
1947
- "aria-label": o ? c.label : void 0,
1948
- "data-value": c.value,
1949
- disabled: c.isDisabled,
1947
+ "aria-label": o ? l.label : void 0,
1948
+ "data-value": l.value,
1949
+ disabled: l.isDisabled,
1950
1950
  tabIndex: u ? 0 : -1,
1951
1951
  className: f(
1952
1952
  it.segmented__item,
1953
1953
  u && it["segmented__item--selected"]
1954
1954
  ),
1955
- onClick: () => !u && n(c.value),
1955
+ onClick: () => !u && n(l.value),
1956
1956
  children: [
1957
- c.icon && /* @__PURE__ */ a("span", { className: it.segmented__icon, "aria-hidden": !0, children: c.icon }),
1958
- !o && /* @__PURE__ */ a("span", { className: it.segmented__label, children: c.label })
1957
+ l.icon && /* @__PURE__ */ a("span", { className: it.segmented__icon, "aria-hidden": !0, children: l.icon }),
1958
+ !o && /* @__PURE__ */ a("span", { className: it.segmented__label, children: l.label })
1959
1959
  ]
1960
1960
  },
1961
- c.value
1961
+ l.value
1962
1962
  );
1963
1963
  })
1964
1964
  }
1965
1965
  );
1966
- }, Fu = /* @__PURE__ */ T(
1966
+ }, Fu = /* @__PURE__ */ I(
1967
1967
  /* @__PURE__ */ M(ho, "SegmentedControl")
1968
1968
  ), po = "hanui-select-tiiPL", mo = "hanui-trigger-rHQJz", bo = "hanui-trigger__icon-apCcx", go = "hanui-trigger__value-ioH7K", fo = "hanui-trigger__chevron-FtsIZ", vo = "hanui-panel-rGOOd", yo = "hanui-list-SOKf8", wo = "hanui-option-ZDPef", xo = "hanui-option__label-SsoYB", No = "hanui-option__check-8CPSG", W = {
1969
1969
  select: po,
@@ -1996,32 +1996,32 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
1996
1996
  icon: s,
1997
1997
  size: d = "md",
1998
1998
  align: h = "start",
1999
- isDisabled: l,
2000
- id: c,
1999
+ isDisabled: c,
2000
+ id: l,
2001
2001
  className: u,
2002
2002
  testId: _,
2003
2003
  "aria-describedby": m,
2004
2004
  "aria-invalid": w
2005
2005
  }) => {
2006
- const { labels: b } = j(), p = z("Select.placeholder", o, b == null ? void 0 : b.selectPlaceholder), v = J(), I = c ?? v, k = `${I}-listbox`, x = (K) => `${I}-option-${K}`, $ = R(null), N = R(null), [D, E] = O(null), L = D !== null, y = e.findIndex((K) => K.value === t), B = y >= 0 ? e[y] : null, Y = H(() => E(null), []), Q = H(() => {
2007
- l || e.length === 0 || E(window.matchMedia(ua).matches ? "popover" : "sheet");
2008
- }, [l, e.length]), V = (K) => {
2006
+ const { labels: b } = j(), p = z("Select.placeholder", o, b == null ? void 0 : b.selectPlaceholder), v = J(), $ = l ?? v, N = `${$}-listbox`, x = (K) => `${$}-option-${K}`, T = S(null), D = S(null), [k, L] = O(null), C = k !== null, y = e.findIndex((K) => K.value === t), B = y >= 0 ? e[y] : null, Y = H(() => L(null), []), Q = H(() => {
2007
+ c || e.length === 0 || L(window.matchMedia(ua).matches ? "popover" : "sheet");
2008
+ }, [c, e.length]), V = (K) => {
2009
2009
  K.isDisabled || (n(K.value), Y());
2010
- }, G = R(!1);
2011
- S(() => {
2010
+ }, G = S(!1);
2011
+ R(() => {
2012
2012
  var K;
2013
- G.current && !L && ((K = N.current) == null || K.focus()), G.current = L;
2014
- }, [L]), S(() => {
2015
- if (D !== "popover") return;
2013
+ G.current && !C && ((K = D.current) == null || K.focus()), G.current = C;
2014
+ }, [C]), R(() => {
2015
+ if (k !== "popover") return;
2016
2016
  const K = (Z) => {
2017
2017
  var ye;
2018
- (ye = $.current) != null && ye.contains(Z.target) || Y();
2018
+ (ye = T.current) != null && ye.contains(Z.target) || Y();
2019
2019
  };
2020
2020
  return document.addEventListener("mousedown", K), () => document.removeEventListener("mousedown", K);
2021
- }, [D, Y]);
2021
+ }, [k, Y]);
2022
2022
  const { activeIndex: de, setActiveIndex: rt, listRef: ve, handleKeyDown: Jt } = Za({
2023
2023
  count: e.length,
2024
- isOpen: L,
2024
+ isOpen: C,
2025
2025
  initialIndex: y >= 0 ? y : 0,
2026
2026
  onSelect: (K) => {
2027
2027
  const Z = e[K];
@@ -2029,12 +2029,12 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2029
2029
  },
2030
2030
  onClose: Y
2031
2031
  });
2032
- S(() => {
2032
+ R(() => {
2033
2033
  var K;
2034
- D === "sheet" && ((K = ve.current) == null || K.focus({ preventScroll: !0 }));
2035
- }, [D, ve]);
2034
+ k === "sheet" && ((K = ve.current) == null || K.focus({ preventScroll: !0 }));
2035
+ }, [k, ve]);
2036
2036
  const bt = (K) => {
2037
- if (!L) {
2037
+ if (!C) {
2038
2038
  ["ArrowDown", "ArrowUp", "Enter", " "].includes(K.key) && (K.preventDefault(), Q());
2039
2039
  return;
2040
2040
  }
@@ -2043,7 +2043,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2043
2043
  "ul",
2044
2044
  {
2045
2045
  ref: ve,
2046
- id: k,
2046
+ id: N,
2047
2047
  role: "listbox",
2048
2048
  "aria-label": r,
2049
2049
  "aria-activedescendant": K && e[de] ? x(de) : void 0,
@@ -2078,29 +2078,29 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2078
2078
  })
2079
2079
  }
2080
2080
  );
2081
- return /* @__PURE__ */ g("span", { ref: $, className: f(W.select, u), "data-testid": _, children: [
2081
+ return /* @__PURE__ */ g("span", { ref: T, className: f(W.select, u), "data-testid": _, children: [
2082
2082
  /* @__PURE__ */ g(
2083
2083
  "button",
2084
2084
  {
2085
- ref: N,
2086
- id: I,
2085
+ ref: D,
2086
+ id: $,
2087
2087
  type: "button",
2088
2088
  role: "combobox",
2089
2089
  className: f(
2090
2090
  W.trigger,
2091
2091
  W[`trigger--${d}`],
2092
2092
  !B && W["trigger--empty"],
2093
- L && W["trigger--open"]
2093
+ C && W["trigger--open"]
2094
2094
  ),
2095
- disabled: l,
2095
+ disabled: c,
2096
2096
  "aria-haspopup": "listbox",
2097
- "aria-expanded": L,
2098
- "aria-controls": L ? k : void 0,
2099
- "aria-activedescendant": D === "popover" && e[de] ? x(de) : void 0,
2097
+ "aria-expanded": C,
2098
+ "aria-controls": C ? N : void 0,
2099
+ "aria-activedescendant": k === "popover" && e[de] ? x(de) : void 0,
2100
2100
  "aria-label": r,
2101
2101
  "aria-describedby": m,
2102
2102
  "aria-invalid": w,
2103
- onClick: () => L ? Y() : Q(),
2103
+ onClick: () => C ? Y() : Q(),
2104
2104
  onKeyDown: bt,
2105
2105
  children: [
2106
2106
  s && /* @__PURE__ */ a("span", { className: W.trigger__icon, "aria-hidden": !0, children: s }),
@@ -2109,16 +2109,16 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2109
2109
  za,
2110
2110
  {
2111
2111
  "aria-hidden": !0,
2112
- className: f(W.trigger__chevron, L && W["trigger__chevron--open"])
2112
+ className: f(W.trigger__chevron, C && W["trigger__chevron--open"])
2113
2113
  }
2114
2114
  )
2115
2115
  ]
2116
2116
  }
2117
2117
  ),
2118
- D === "popover" && /* @__PURE__ */ a("div", { className: f(W.panel, W[`panel--${h}`]), children: gt(!1) }),
2119
- D === "sheet" && /* @__PURE__ */ a(nn, { title: r, closeLabel: i ?? (b == null ? void 0 : b.close), onClose: Y, children: gt(!0) })
2118
+ k === "popover" && /* @__PURE__ */ a("div", { className: f(W.panel, W[`panel--${h}`]), children: gt(!1) }),
2119
+ k === "sheet" && /* @__PURE__ */ a(nn, { title: r, closeLabel: i ?? (b == null ? void 0 : b.close), onClose: Y, children: gt(!0) })
2120
2120
  ] });
2121
- }, Pu = /* @__PURE__ */ T(ko), $o = "hanui-checkbox-FaFCj", Io = "hanui-checkbox__input-nTHne", To = "hanui-checkbox__body-VAEW2", Do = "hanui-checkbox__label-sSNZY", Co = "hanui-checkbox__hint-ish-J", xt = {
2121
+ }, Pu = /* @__PURE__ */ I(ko), $o = "hanui-checkbox-FaFCj", Io = "hanui-checkbox__input-nTHne", To = "hanui-checkbox__body-VAEW2", Do = "hanui-checkbox__label-sSNZY", Co = "hanui-checkbox__hint-ish-J", xt = {
2122
2122
  checkbox: $o,
2123
2123
  checkbox__input: Io,
2124
2124
  checkbox__body: To,
@@ -2132,7 +2132,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2132
2132
  t && /* @__PURE__ */ a("span", { className: xt.checkbox__hint, children: t })
2133
2133
  ] })
2134
2134
  ] })
2135
- ), Ou = /* @__PURE__ */ T(/* @__PURE__ */ M(Eo, "Checkbox")), Lo = "hanui-switch__input-Q2UQ4", So = "hanui-switch__label-gPZuO", Ro = "hanui-switch__hint-NRuzC", Ao = "hanui-switch__track-3417m", Mo = "hanui-switch__thumb-1LHta", Bo = "hanui-switch__text-32uMY", Fe = {
2135
+ ), Ou = /* @__PURE__ */ I(/* @__PURE__ */ M(Eo, "Checkbox")), Lo = "hanui-switch__input-Q2UQ4", So = "hanui-switch__label-gPZuO", Ro = "hanui-switch__hint-NRuzC", Ao = "hanui-switch__track-3417m", Mo = "hanui-switch__thumb-1LHta", Bo = "hanui-switch__text-32uMY", Fe = {
2136
2136
  switch: "hanui-switch-KLH29",
2137
2137
  switch__input: Lo,
2138
2138
  "switch--labelFirst": "hanui-switch--labelFirst-Grirk",
@@ -2167,7 +2167,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2167
2167
  ]
2168
2168
  }
2169
2169
  )
2170
- ), Hu = /* @__PURE__ */ T(/* @__PURE__ */ M(Fo, "Switch")), Po = "hanui-radio-KoZak", Oo = "hanui-radio__input-gVMgh", Ho = "hanui-radio__body-oZWg6", zo = "hanui-radio__label-d-5ce", Ko = "hanui-radio__hint-baVbs", Uo = "hanui-radio__count-OtkUM", st = {
2170
+ ), Hu = /* @__PURE__ */ I(/* @__PURE__ */ M(Fo, "Switch")), Po = "hanui-radio-KoZak", Oo = "hanui-radio__input-gVMgh", Ho = "hanui-radio__body-oZWg6", zo = "hanui-radio__label-d-5ce", Ko = "hanui-radio__hint-baVbs", Uo = "hanui-radio__count-OtkUM", st = {
2171
2171
  radio: Po,
2172
2172
  radio__input: Oo,
2173
2173
  radio__body: Ho,
@@ -2183,7 +2183,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2183
2183
  ] }),
2184
2184
  ht(n) && /* @__PURE__ */ a("span", { className: st.radio__count, children: n })
2185
2185
  ] })
2186
- ), zu = /* @__PURE__ */ T(/* @__PURE__ */ M(Yo, "Radio")), qo = "hanui-radioCard-sndiC", jo = "hanui-radioCard__input-6vuoD", Go = "hanui-radioCard__indicator--x9LT", Wo = "hanui-radioCard__body-CFqoi", ct = {
2186
+ ), zu = /* @__PURE__ */ I(/* @__PURE__ */ M(Yo, "Radio")), qo = "hanui-radioCard-sndiC", jo = "hanui-radioCard__input-6vuoD", Go = "hanui-radioCard__indicator--x9LT", Wo = "hanui-radioCard__body-CFqoi", ct = {
2187
2187
  radioCard: qo,
2188
2188
  radioCard__input: jo,
2189
2189
  "radioCard--selected": "hanui-radioCard--selected-Mi7ee",
@@ -2228,7 +2228,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2228
2228
  /* @__PURE__ */ a("span", { className: ct.radioCard__body, children: i })
2229
2229
  ]
2230
2230
  }
2231
- ), Ku = /* @__PURE__ */ T(Xo), Qo = "hanui-range-RpDPh", Jo = "hanui-range__readout-itDMd", Zo = "hanui-range__separator-u-ZJX", Vo = "hanui-range__track-bCh5Y", ei = "hanui-range__fill-VXMCE", ti = "hanui-range__input-TAN2I", ai = "hanui-range__bounds-GIhFd", me = {
2231
+ ), Ku = /* @__PURE__ */ I(Xo), Qo = "hanui-range-RpDPh", Jo = "hanui-range__readout-itDMd", Zo = "hanui-range__separator-u-ZJX", Vo = "hanui-range__track-bCh5Y", ei = "hanui-range__fill-VXMCE", ti = "hanui-range__input-TAN2I", ai = "hanui-range__bounds-GIhFd", me = {
2232
2232
  range: Qo,
2233
2233
  "range--disabled": "hanui-range--disabled-13hlc",
2234
2234
  range__readout: Jo,
@@ -2247,23 +2247,23 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2247
2247
  formatValue: s = String,
2248
2248
  label: d,
2249
2249
  minLabel: h,
2250
- maxLabel: l,
2251
- isDisabled: c,
2250
+ maxLabel: c,
2251
+ isDisabled: l,
2252
2252
  className: u,
2253
2253
  testId: _
2254
2254
  }) => {
2255
- var L, y;
2256
- const { labels: m } = j(), w = z("RangeSlider.minLabel", h, (L = m == null ? void 0 : m.range) == null ? void 0 : L.min), b = z("RangeSlider.maxLabel", l, (y = m == null ? void 0 : m.range) == null ? void 0 : y.max), [p, v] = r, I = H(
2255
+ var C, y;
2256
+ const { labels: m } = j(), w = z("RangeSlider.minLabel", h, (C = m == null ? void 0 : m.range) == null ? void 0 : C.min), b = z("RangeSlider.maxLabel", c, (y = m == null ? void 0 : m.range) == null ? void 0 : y.max), [p, v] = r, $ = H(
2257
2257
  (B) => o([Math.min(B, v), v]),
2258
2258
  [v, o]
2259
- ), k = H(
2259
+ ), N = H(
2260
2260
  (B) => o([p, Math.max(B, p)]),
2261
2261
  [p, o]
2262
- ), x = H(() => i == null ? void 0 : i([p, v]), [p, v, i]), $ = t - e, N = $ === 0 ? 0 : ya(p - e, $), D = $ === 0 ? 0 : ya(v - e, $), E = N > 50;
2262
+ ), x = H(() => i == null ? void 0 : i([p, v]), [p, v, i]), T = t - e, D = T === 0 ? 0 : ya(p - e, T), k = T === 0 ? 0 : ya(v - e, T), L = D > 50;
2263
2263
  return /* @__PURE__ */ g(
2264
2264
  "div",
2265
2265
  {
2266
- className: f(me.range, c && me["range--disabled"], u),
2266
+ className: f(me.range, l && me["range--disabled"], u),
2267
2267
  role: "group",
2268
2268
  "aria-label": d,
2269
2269
  "data-testid": _,
@@ -2278,7 +2278,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2278
2278
  "span",
2279
2279
  {
2280
2280
  className: me.range__fill,
2281
- style: { left: `${N}%`, right: `${100 - D}%` },
2281
+ style: { left: `${D}%`, right: `${100 - k}%` },
2282
2282
  "aria-hidden": !0
2283
2283
  }
2284
2284
  ),
@@ -2287,15 +2287,15 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2287
2287
  {
2288
2288
  type: "range",
2289
2289
  className: me.range__input,
2290
- style: { zIndex: E ? 4 : 3 },
2290
+ style: { zIndex: L ? 4 : 3 },
2291
2291
  min: e,
2292
2292
  max: t,
2293
2293
  step: n,
2294
2294
  value: p,
2295
- disabled: c,
2295
+ disabled: l,
2296
2296
  "aria-label": `${d} — ${w}`,
2297
2297
  "aria-valuetext": s(p),
2298
- onChange: (B) => I(Number(B.target.value)),
2298
+ onChange: (B) => $(Number(B.target.value)),
2299
2299
  onPointerUp: x,
2300
2300
  onKeyUp: x
2301
2301
  }
@@ -2305,15 +2305,15 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2305
2305
  {
2306
2306
  type: "range",
2307
2307
  className: me.range__input,
2308
- style: { zIndex: E ? 3 : 4 },
2308
+ style: { zIndex: L ? 3 : 4 },
2309
2309
  min: e,
2310
2310
  max: t,
2311
2311
  step: n,
2312
2312
  value: v,
2313
- disabled: c,
2313
+ disabled: l,
2314
2314
  "aria-label": `${d} — ${b}`,
2315
2315
  "aria-valuetext": s(v),
2316
- onChange: (B) => k(Number(B.target.value)),
2316
+ onChange: (B) => N(Number(B.target.value)),
2317
2317
  onPointerUp: x,
2318
2318
  onKeyUp: x
2319
2319
  }
@@ -2326,7 +2326,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2326
2326
  ]
2327
2327
  }
2328
2328
  );
2329
- }, Uu = /* @__PURE__ */ T(ni), ri = "hanui-rating-neNnF", oi = "hanui-rating__legend-uYvFS", ii = "hanui-rating__stars-vJFLk", si = "hanui-rating__star-BANFJ", ci = "hanui-rating__input-s2iiO", li = "hanui-rating__srOnly-iSCoz", di = "hanui-rating__caption-13KFX", Ce = {
2329
+ }, Uu = /* @__PURE__ */ I(ni), ri = "hanui-rating-neNnF", oi = "hanui-rating__legend-uYvFS", ii = "hanui-rating__stars-vJFLk", si = "hanui-rating__star-BANFJ", ci = "hanui-rating__input-s2iiO", li = "hanui-rating__srOnly-iSCoz", di = "hanui-rating__caption-13KFX", Ce = {
2330
2330
  rating: ri,
2331
2331
  "rating--disabled": "hanui-rating--disabled-ZKjHa",
2332
2332
  rating__legend: oi,
@@ -2347,7 +2347,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2347
2347
  testId: d
2348
2348
  }) => {
2349
2349
  var w;
2350
- const { labels: h } = j(), l = r ?? ((w = h == null ? void 0 : h.rating) == null ? void 0 : w.scale), c = J(), [u, _] = O(null), m = u ?? e;
2350
+ const { labels: h } = j(), c = r ?? ((w = h == null ? void 0 : h.rating) == null ? void 0 : w.scale), l = J(), [u, _] = O(null), m = u ?? e;
2351
2351
  return /* @__PURE__ */ g(
2352
2352
  "fieldset",
2353
2353
  {
@@ -2371,7 +2371,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2371
2371
  "input",
2372
2372
  {
2373
2373
  type: "radio",
2374
- name: c,
2374
+ name: l,
2375
2375
  value: b,
2376
2376
  checked: e === b,
2377
2377
  onChange: () => t(b),
@@ -2387,18 +2387,18 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2387
2387
  ),
2388
2388
  " ",
2389
2389
  "— ",
2390
- (l == null ? void 0 : l[b]) ?? ""
2390
+ (c == null ? void 0 : c[b]) ?? ""
2391
2391
  ] })
2392
2392
  ]
2393
2393
  },
2394
2394
  b
2395
2395
  );
2396
2396
  }) }),
2397
- m !== null && /* @__PURE__ */ a("span", { className: Ce.rating__caption, "aria-hidden": !0, children: (l == null ? void 0 : l[m]) ?? "" })
2397
+ m !== null && /* @__PURE__ */ a("span", { className: Ce.rating__caption, "aria-hidden": !0, children: (c == null ? void 0 : c[m]) ?? "" })
2398
2398
  ]
2399
2399
  }
2400
2400
  );
2401
- }, Yu = /* @__PURE__ */ T(ui), hi = "hanui-stepper-8s5Ih", pi = "hanui-stepper__button-h6g7d", mi = "hanui-stepper__input-OQh5v", Nt = {
2401
+ }, Yu = /* @__PURE__ */ I(ui), hi = "hanui-stepper-8s5Ih", pi = "hanui-stepper__button-h6g7d", mi = "hanui-stepper__input-OQh5v", Nt = {
2402
2402
  stepper: hi,
2403
2403
  stepper__button: pi,
2404
2404
  stepper__input: mi,
@@ -2414,22 +2414,22 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2414
2414
  max: s = 99,
2415
2415
  isDisabled: d,
2416
2416
  size: h = "md",
2417
- className: l,
2418
- testId: c
2417
+ className: c,
2418
+ testId: l
2419
2419
  }) => {
2420
- var p, v, I;
2421
- const { labels: u } = j(), _ = z("QuantityStepper.label", n, (p = u == null ? void 0 : u.quantity) == null ? void 0 : p.label), [m, w] = O(null), b = (k) => {
2420
+ var p, v, $;
2421
+ const { labels: u } = j(), _ = z("QuantityStepper.label", n, (p = u == null ? void 0 : u.quantity) == null ? void 0 : p.label), [m, w] = O(null), b = (N) => {
2422
2422
  w(null);
2423
- const x = Number(k.replace(/\D/g, ""));
2423
+ const x = Number(N.replace(/\D/g, ""));
2424
2424
  x && t(Math.min(Math.max(x, i), s));
2425
2425
  };
2426
2426
  return /* @__PURE__ */ g(
2427
2427
  "div",
2428
2428
  {
2429
- className: f(Nt.stepper, Nt[`stepper--${h}`], l),
2429
+ className: f(Nt.stepper, Nt[`stepper--${h}`], c),
2430
2430
  role: "group",
2431
2431
  "aria-label": _,
2432
- "data-testid": c,
2432
+ "data-testid": l,
2433
2433
  children: [
2434
2434
  /* @__PURE__ */ a(
2435
2435
  "button",
@@ -2451,10 +2451,10 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2451
2451
  {
2452
2452
  className: Nt.stepper__input,
2453
2453
  value: m ?? String(e),
2454
- onChange: (k) => w(k.target.value.replace(/\D/g, "").slice(0, 2)),
2455
- onBlur: (k) => b(k.target.value),
2456
- onKeyDown: (k) => {
2457
- k.key === "Enter" && (k.preventDefault(), b(k.target.value));
2454
+ onChange: (N) => w(N.target.value.replace(/\D/g, "").slice(0, 2)),
2455
+ onBlur: (N) => b(N.target.value),
2456
+ onKeyDown: (N) => {
2457
+ N.key === "Enter" && (N.preventDefault(), b(N.target.value));
2458
2458
  },
2459
2459
  inputMode: "numeric",
2460
2460
  disabled: d,
@@ -2471,7 +2471,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2471
2471
  "aria-label": z(
2472
2472
  "QuantityStepper.increaseLabel",
2473
2473
  o,
2474
- (I = u == null ? void 0 : u.quantity) == null ? void 0 : I.increase
2474
+ ($ = u == null ? void 0 : u.quantity) == null ? void 0 : $.increase
2475
2475
  ),
2476
2476
  children: /* @__PURE__ */ a(yn, { "aria-hidden": !0 })
2477
2477
  }
@@ -2479,7 +2479,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2479
2479
  ]
2480
2480
  }
2481
2481
  );
2482
- }, qu = /* @__PURE__ */ T(bi), gi = "hanui-checkbox--dvpB", fi = {
2482
+ }, qu = /* @__PURE__ */ I(bi), gi = "hanui-checkbox--dvpB", fi = {
2483
2483
  checkbox: gi
2484
2484
  }, vi = /* @__PURE__ */ Ie(
2485
2485
  ({ label: e, className: t, testId: n, ...r }, o) => /* @__PURE__ */ a(
@@ -2493,7 +2493,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2493
2493
  ...r
2494
2494
  }
2495
2495
  )
2496
- ), ju = /* @__PURE__ */ T(
2496
+ ), ju = /* @__PURE__ */ I(
2497
2497
  /* @__PURE__ */ M(vi, "TableCheckbox")
2498
2498
  ), yi = "hanui-wrapper-IAI4E", wi = "hanui-wrapper__prefix-XKDlV", xi = "hanui-wrapper__suffix-lT35q", Ni = "hanui-input-pIS2u", Ge = {
2499
2499
  wrapper: yi,
@@ -2524,7 +2524,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2524
2524
  ),
2525
2525
  t && /* @__PURE__ */ a("span", { className: Ge.wrapper__suffix, "aria-hidden": !0, children: t })
2526
2526
  ] })
2527
- ), rn = /* @__PURE__ */ T(/* @__PURE__ */ M(ki, "Input")), $i = "hanui-password-viMea", Ii = "hanui-password__field-WI1h1", Ti = "hanui-password__toggle-O6R2a", na = {
2527
+ ), rn = /* @__PURE__ */ I(/* @__PURE__ */ M(ki, "Input")), $i = "hanui-password-viMea", Ii = "hanui-password__field-WI1h1", Ti = "hanui-password__toggle-O6R2a", na = {
2528
2528
  password: $i,
2529
2529
  password__field: Ii,
2530
2530
  password__toggle: Ti
@@ -2551,7 +2551,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2551
2551
  }
2552
2552
  )
2553
2553
  ] });
2554
- }, Gu = /* @__PURE__ */ T(
2554
+ }, Gu = /* @__PURE__ */ I(
2555
2555
  /* @__PURE__ */ M(Di, "PasswordInput")
2556
2556
  ), Ci = "hanui-tagInput-QraZR", Ei = "hanui-tagInput__field-HeWrC", Li = "hanui-tagInput__tag-D-ZWB", Si = "hanui-tagInput__remove-bpjGG", We = {
2557
2557
  tagInput: Ci,
@@ -2571,30 +2571,30 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2571
2571
  maxTags: s,
2572
2572
  isDisabled: d,
2573
2573
  id: h,
2574
- className: l,
2575
- testId: c,
2574
+ className: c,
2575
+ testId: l,
2576
2576
  "aria-describedby": u,
2577
2577
  "aria-invalid": _
2578
2578
  }) => {
2579
- const m = J(), w = h ?? m, b = R(null), p = da(), [v, I] = O(""), [k, x] = O(null), $ = s !== void 0 && e.length >= s, N = (L) => {
2580
- const y = L.trim();
2579
+ const m = J(), w = h ?? m, b = S(null), p = da(), [v, $] = O(""), [N, x] = O(null), T = s !== void 0 && e.length >= s, D = (C) => {
2580
+ const y = C.trim();
2581
2581
  if (y !== "") {
2582
2582
  if (e.includes(y)) {
2583
- x(y), window.setTimeout(() => x(null), 1e3), p(`${y} zaten ekli`, "assertive"), I("");
2583
+ x(y), window.setTimeout(() => x(null), 1e3), p(`${y} zaten ekli`, "assertive"), $("");
2584
2584
  return;
2585
2585
  }
2586
- $ || (t([...e, y]), I(""), p(`${y} eklendi`));
2586
+ T || (t([...e, y]), $(""), p(`${y} eklendi`));
2587
2587
  }
2588
- }, D = (L) => {
2589
- t(e.filter((y) => y !== L)), p(`${L} kaldırıldı`);
2590
- }, E = (L) => {
2591
- if (i.includes(L.key)) {
2592
- L.preventDefault(), N(v);
2588
+ }, k = (C) => {
2589
+ t(e.filter((y) => y !== C)), p(`${C} kaldırıldı`);
2590
+ }, L = (C) => {
2591
+ if (i.includes(C.key)) {
2592
+ C.preventDefault(), D(v);
2593
2593
  return;
2594
2594
  }
2595
- if (L.key === "Backspace" && v === "") {
2595
+ if (C.key === "Backspace" && v === "") {
2596
2596
  const y = e.at(-1);
2597
- y !== void 0 && D(y);
2597
+ y !== void 0 && k(y);
2598
2598
  }
2599
2599
  };
2600
2600
  return /* @__PURE__ */ g(
@@ -2604,39 +2604,39 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2604
2604
  We.tagInput,
2605
2605
  d && We["tagInput--disabled"],
2606
2606
  _ && We["tagInput--invalid"],
2607
- l
2607
+ c
2608
2608
  ),
2609
- "data-testid": c,
2609
+ "data-testid": l,
2610
2610
  onClick: () => {
2611
- var L;
2612
- return (L = b.current) == null ? void 0 : L.focus();
2611
+ var C;
2612
+ return (C = b.current) == null ? void 0 : C.focus();
2613
2613
  },
2614
2614
  children: [
2615
- e.map((L) => /* @__PURE__ */ g(
2615
+ e.map((C) => /* @__PURE__ */ g(
2616
2616
  "span",
2617
2617
  {
2618
2618
  className: f(
2619
2619
  We.tagInput__tag,
2620
- k === L && We["tagInput__tag--duplicate"]
2620
+ N === C && We["tagInput__tag--duplicate"]
2621
2621
  ),
2622
2622
  children: [
2623
- L,
2623
+ C,
2624
2624
  /* @__PURE__ */ a(
2625
2625
  "button",
2626
2626
  {
2627
2627
  type: "button",
2628
2628
  className: We.tagInput__remove,
2629
- "aria-label": `${L} — ${o}`,
2629
+ "aria-label": `${C} — ${o}`,
2630
2630
  disabled: d,
2631
2631
  onClick: (y) => {
2632
- y.stopPropagation(), D(L);
2632
+ y.stopPropagation(), k(C);
2633
2633
  },
2634
2634
  children: /* @__PURE__ */ a(Ue, { "aria-hidden": !0 })
2635
2635
  }
2636
2636
  )
2637
2637
  ]
2638
2638
  },
2639
- L
2639
+ C
2640
2640
  )),
2641
2641
  /* @__PURE__ */ a(
2642
2642
  "input",
@@ -2650,16 +2650,16 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2650
2650
  "aria-label": n,
2651
2651
  "aria-describedby": u,
2652
2652
  "aria-invalid": _,
2653
- disabled: d || $,
2654
- onChange: (L) => I(L.target.value),
2655
- onKeyDown: E,
2656
- onBlur: () => N(v)
2653
+ disabled: d || T,
2654
+ onChange: (C) => $(C.target.value),
2655
+ onKeyDown: L,
2656
+ onBlur: () => D(v)
2657
2657
  }
2658
2658
  )
2659
2659
  ]
2660
2660
  }
2661
2661
  );
2662
- }, Wu = /* @__PURE__ */ T(/* @__PURE__ */ M(Ri, "TagInput")), Ai = "hanui-textarea-zwJcB", Mi = "hanui-wrapper-O8aJA", Bi = "hanui-counter-bHVh3", kt = {
2662
+ }, Wu = /* @__PURE__ */ I(/* @__PURE__ */ M(Ri, "TagInput")), Ai = "hanui-textarea-zwJcB", Mi = "hanui-wrapper-O8aJA", Bi = "hanui-counter-bHVh3", kt = {
2663
2663
  textarea: Ai,
2664
2664
  wrapper: Mi,
2665
2665
  "textarea--autoSize": "hanui-textarea--autoSize--F8yj",
@@ -2676,24 +2676,24 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2676
2676
  value: s,
2677
2677
  defaultValue: d,
2678
2678
  onChange: h,
2679
- testId: l,
2680
- ...c
2679
+ testId: c,
2680
+ ...l
2681
2681
  }, u) => {
2682
- const _ = R(null), [m, w] = O(String(d ?? "").length), b = s === void 0 ? m : String(s).length, p = H(
2683
- (I) => {
2684
- _.current = I, typeof u == "function" ? u(I) : u && (u.current = I);
2682
+ const _ = S(null), [m, w] = O(String(d ?? "").length), b = s === void 0 ? m : String(s).length, p = H(
2683
+ ($) => {
2684
+ _.current = $, typeof u == "function" ? u($) : u && (u.current = $);
2685
2685
  },
2686
2686
  [u]
2687
2687
  );
2688
2688
  Fa(() => {
2689
- const I = _.current;
2690
- if (!n || !I) return;
2691
- I.style.height = "auto";
2692
- const x = (Number.parseFloat(getComputedStyle(I).lineHeight) || 20) * r;
2693
- I.style.height = `${Math.min(I.scrollHeight, x)}px`, I.style.overflowY = I.scrollHeight > x ? "auto" : "hidden";
2689
+ const $ = _.current;
2690
+ if (!n || !$) return;
2691
+ $.style.height = "auto";
2692
+ const x = (Number.parseFloat(getComputedStyle($).lineHeight) || 20) * r;
2693
+ $.style.height = `${Math.min($.scrollHeight, x)}px`, $.style.overflowY = $.scrollHeight > x ? "auto" : "hidden";
2694
2694
  }, [n, r, s, b]);
2695
2695
  const v = i !== void 0 && b >= i * 0.9;
2696
- return /* @__PURE__ */ g("div", { className: f(kt.wrapper, e), "data-testid": l, children: [
2696
+ return /* @__PURE__ */ g("div", { className: f(kt.wrapper, e), "data-testid": c, children: [
2697
2697
  /* @__PURE__ */ a(
2698
2698
  "textarea",
2699
2699
  {
@@ -2703,10 +2703,10 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2703
2703
  maxLength: i,
2704
2704
  value: s,
2705
2705
  defaultValue: d,
2706
- onChange: (I) => {
2707
- w(I.target.value.length), h == null || h(I);
2706
+ onChange: ($) => {
2707
+ w($.target.value.length), h == null || h($);
2708
2708
  },
2709
- ...c
2709
+ ...l
2710
2710
  }
2711
2711
  ),
2712
2712
  o && i !== void 0 && /* `aria-hidden`: ayni bilgi her tusta duyurulsaydi yazma kesintiye
@@ -2718,7 +2718,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2718
2718
  ] })
2719
2719
  ] });
2720
2720
  }
2721
- ), Pi = /* @__PURE__ */ T(/* @__PURE__ */ M(Fi, "Textarea")), Oi = "hanui-dateField-UnUwe", Hi = "hanui-range-nGuRH", zi = "hanui-range__row--debA", Ki = "hanui-range__separator-fEqqr", Ui = "hanui-range__field-tmoNH", Yi = "hanui-range__summary-L6v1T", Ve = {
2721
+ ), Pi = /* @__PURE__ */ I(/* @__PURE__ */ M(Fi, "Textarea")), Oi = "hanui-dateField-UnUwe", Hi = "hanui-range-nGuRH", zi = "hanui-range__row--debA", Ki = "hanui-range__separator-fEqqr", Ui = "hanui-range__field-tmoNH", Yi = "hanui-range__summary-L6v1T", Ve = {
2722
2722
  dateField: Oi,
2723
2723
  range: Hi,
2724
2724
  range__row: zi,
@@ -2736,7 +2736,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2736
2736
  ...r
2737
2737
  }
2738
2738
  )
2739
- ), Xu = /* @__PURE__ */ T(/* @__PURE__ */ M(ia, "DateField")), qi = ({
2739
+ ), Xu = /* @__PURE__ */ I(/* @__PURE__ */ M(ia, "DateField")), qi = ({
2740
2740
  value: e,
2741
2741
  onChange: t,
2742
2742
  startLabel: n,
@@ -2746,8 +2746,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2746
2746
  max: s,
2747
2747
  isSummaryVisible: d,
2748
2748
  isDisabled: h,
2749
- className: l,
2750
- testId: c
2749
+ className: c,
2750
+ testId: l
2751
2751
  }) => {
2752
2752
  const { labels: u } = j(), _ = (() => {
2753
2753
  if (!d || !(u != null && u.locale) || e.start === "" || e.end === "") return null;
@@ -2758,7 +2758,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2758
2758
  return null;
2759
2759
  }
2760
2760
  })();
2761
- return /* @__PURE__ */ g("div", { className: f(Ve.range, l), "data-testid": c, children: [
2761
+ return /* @__PURE__ */ g("div", { className: f(Ve.range, c), "data-testid": l, children: [
2762
2762
  /* @__PURE__ */ g("div", { className: Ve.range__row, children: [
2763
2763
  /* @__PURE__ */ a(
2764
2764
  ia,
@@ -2788,7 +2788,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2788
2788
  ] }),
2789
2789
  _ && /* @__PURE__ */ a("span", { className: Ve.range__summary, children: _ })
2790
2790
  ] });
2791
- }, Qu = /* @__PURE__ */ M(/* @__PURE__ */ T(qi), "DateRange"), ji = "hanui-field-KKvre", Gi = "hanui-field__label-9dlYd", Wi = "hanui-field__required-hbDJk", Xi = "hanui-field__srOnly-2WQFH", Qi = "hanui-field__hint-SQPiL", Ji = "hanui-field__error-gLlZ-", Zi = "hanui-field__errorIcon-uA3o8", Pe = {
2791
+ }, Qu = /* @__PURE__ */ M(/* @__PURE__ */ I(qi), "DateRange"), ji = "hanui-field-KKvre", Gi = "hanui-field__label-9dlYd", Wi = "hanui-field__required-hbDJk", Xi = "hanui-field__srOnly-2WQFH", Qi = "hanui-field__hint-SQPiL", Ji = "hanui-field__error-gLlZ-", Zi = "hanui-field__errorIcon-uA3o8", Pe = {
2792
2792
  field: ji,
2793
2793
  field__label: Gi,
2794
2794
  "field__label--hidden": "hanui-field__label--hidden-ufuVt",
@@ -2807,12 +2807,12 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2807
2807
  isLabelHidden: s,
2808
2808
  className: d
2809
2809
  }) => {
2810
- const { labels: h } = j(), l = J(), c = `${l}-error`, u = `${l}-hint`;
2810
+ const { labels: h } = j(), c = J(), l = `${c}-error`, u = `${c}-hint`;
2811
2811
  return /* @__PURE__ */ g("div", { className: f(Pe.field, d), children: [
2812
2812
  /* @__PURE__ */ g(
2813
2813
  "label",
2814
2814
  {
2815
- htmlFor: l,
2815
+ htmlFor: c,
2816
2816
  className: f(Pe.field__label, s && Pe["field__label--hidden"]),
2817
2817
  children: [
2818
2818
  e,
@@ -2824,19 +2824,19 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2824
2824
  }
2825
2825
  ),
2826
2826
  t({
2827
- id: l,
2827
+ id: c,
2828
2828
  required: o || void 0,
2829
2829
  "aria-invalid": r ? !0 : void 0,
2830
2830
  /* HATA VE YARDIM BIRLIKTE baglanir, biri digerini EZMEZ. */
2831
- "aria-describedby": [r && c, n && u].filter(Boolean).join(" ") || void 0
2831
+ "aria-describedby": [r && l, n && u].filter(Boolean).join(" ") || void 0
2832
2832
  }),
2833
- r && /* @__PURE__ */ g("p", { id: c, className: Pe.field__error, role: "alert", children: [
2833
+ r && /* @__PURE__ */ g("p", { id: l, className: Pe.field__error, role: "alert", children: [
2834
2834
  /* @__PURE__ */ a(Ot, { "aria-hidden": !0, className: Pe.field__errorIcon }),
2835
2835
  r
2836
2836
  ] }),
2837
2837
  n && /* @__PURE__ */ a("p", { id: u, className: Pe.field__hint, children: n })
2838
2838
  ] });
2839
- }, es = /* @__PURE__ */ T(Vi), ts = "hanui-progress-99MrX", as = "hanui-progress__track-Qbp9t", ns = "hanui-progress__fill-Bam55", rs = "hanui-progress__value-3FYxj", os = "hanui-circle-9cn2w", is = "hanui-circle__svg-0IwkR", ss = "hanui-circle__track-zY2qc", cs = "hanui-circle__fill-Jbde6", ls = "hanui-circle__label-A3nJB", re = {
2839
+ }, es = /* @__PURE__ */ I(Vi), ts = "hanui-progress-99MrX", as = "hanui-progress__track-Qbp9t", ns = "hanui-progress__fill-Bam55", rs = "hanui-progress__value-3FYxj", os = "hanui-circle-9cn2w", is = "hanui-circle__svg-0IwkR", ss = "hanui-circle__track-zY2qc", cs = "hanui-circle__fill-Jbde6", ls = "hanui-circle__label-A3nJB", re = {
2840
2840
  progress: ts,
2841
2841
  progress__track: as,
2842
2842
  "progress__track--sm": "hanui-progress__track--sm-dbHZq",
@@ -2867,36 +2867,36 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2867
2867
  className: d,
2868
2868
  testId: h
2869
2869
  }) => {
2870
- const l = e === void 0, c = l ? 0 : on(e, t);
2870
+ const c = e === void 0, l = c ? 0 : on(e, t);
2871
2871
  return /* @__PURE__ */ g("div", { className: f(re.progress, d), "data-testid": h, children: [
2872
2872
  /* @__PURE__ */ a(
2873
2873
  "div",
2874
2874
  {
2875
2875
  role: "progressbar",
2876
2876
  "aria-label": n,
2877
- "aria-valuenow": l ? void 0 : Math.round(c),
2878
- "aria-valuemin": l ? void 0 : 0,
2879
- "aria-valuemax": l ? void 0 : 100,
2880
- "aria-valuetext": l ? void 0 : r,
2877
+ "aria-valuenow": c ? void 0 : Math.round(l),
2878
+ "aria-valuemin": c ? void 0 : 0,
2879
+ "aria-valuemax": c ? void 0 : 100,
2880
+ "aria-valuetext": c ? void 0 : r,
2881
2881
  className: f(
2882
2882
  re.progress__track,
2883
2883
  re[`progress__track--${s}`],
2884
- l && re["progress__track--indeterminate"]
2884
+ c && re["progress__track--indeterminate"]
2885
2885
  ),
2886
2886
  children: /* @__PURE__ */ a(
2887
2887
  "span",
2888
2888
  {
2889
2889
  className: f(re.progress__fill, re[`progress__fill--${i}`]),
2890
- style: l ? void 0 : { inlineSize: `${c}%` }
2890
+ style: c ? void 0 : { inlineSize: `${l}%` }
2891
2891
  }
2892
2892
  )
2893
2893
  }
2894
2894
  ),
2895
- o && !l && /* Gorsel yuzde `aria-hidden`: ayni bilgi zaten `progressbar`in
2895
+ o && !c && /* Gorsel yuzde `aria-hidden`: ayni bilgi zaten `progressbar`in
2896
2896
  degerinde ve iki kez duyurulmasi gurultu. */
2897
- /* @__PURE__ */ a("span", { className: re.progress__value, "aria-hidden": !0, children: r ?? `%${Math.round(c)}` })
2897
+ /* @__PURE__ */ a("span", { className: re.progress__value, "aria-hidden": !0, children: r ?? `%${Math.round(l)}` })
2898
2898
  ] });
2899
- }, _s = /* @__PURE__ */ T(/* @__PURE__ */ M(ds, "Progress")), us = ({
2899
+ }, _s = /* @__PURE__ */ I(/* @__PURE__ */ M(ds, "Progress")), us = ({
2900
2900
  value: e,
2901
2901
  max: t = 100,
2902
2902
  label: n,
@@ -2907,11 +2907,11 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2907
2907
  className: d,
2908
2908
  testId: h
2909
2909
  }) => {
2910
- const l = e === void 0, c = l ? 25 : on(e, t), u = Math.max(3, Math.round(s * 0.1)), _ = (s - u) / 2, m = 2 * Math.PI * _;
2910
+ const c = e === void 0, l = c ? 25 : on(e, t), u = Math.max(3, Math.round(s * 0.1)), _ = (s - u) / 2, m = 2 * Math.PI * _;
2911
2911
  return /* @__PURE__ */ g(
2912
2912
  "div",
2913
2913
  {
2914
- className: f(re.circle, l && re["circle--indeterminate"], d),
2914
+ className: f(re.circle, c && re["circle--indeterminate"], d),
2915
2915
  style: { width: s, height: s },
2916
2916
  "data-testid": h,
2917
2917
  children: [
@@ -2924,10 +2924,10 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2924
2924
  viewBox: `0 0 ${s} ${s}`,
2925
2925
  role: "progressbar",
2926
2926
  "aria-label": n,
2927
- "aria-valuenow": l ? void 0 : Math.round(c),
2928
- "aria-valuemin": l ? void 0 : 0,
2929
- "aria-valuemax": l ? void 0 : 100,
2930
- "aria-valuetext": l ? void 0 : r,
2927
+ "aria-valuenow": c ? void 0 : Math.round(l),
2928
+ "aria-valuemin": c ? void 0 : 0,
2929
+ "aria-valuemax": c ? void 0 : 100,
2930
+ "aria-valuetext": c ? void 0 : r,
2931
2931
  children: [
2932
2932
  /* @__PURE__ */ a(
2933
2933
  "circle",
@@ -2950,18 +2950,18 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2950
2950
  fill: "none",
2951
2951
  strokeWidth: u,
2952
2952
  strokeDasharray: m,
2953
- strokeDashoffset: m * (1 - c / 100)
2953
+ strokeDashoffset: m * (1 - l / 100)
2954
2954
  }
2955
2955
  )
2956
2956
  ]
2957
2957
  }
2958
2958
  ),
2959
- o && !l && /* @__PURE__ */ a("span", { className: re.circle__label, "aria-hidden": !0, children: r ?? `%${Math.round(c)}` })
2959
+ o && !c && /* @__PURE__ */ a("span", { className: re.circle__label, "aria-hidden": !0, children: r ?? `%${Math.round(l)}` })
2960
2960
  ]
2961
2961
  }
2962
2962
  );
2963
2963
  }, Ju = /* @__PURE__ */ M(
2964
- /* @__PURE__ */ T(us),
2964
+ /* @__PURE__ */ I(us),
2965
2965
  "ProgressCircle"
2966
2966
  ), hs = "hanui-upload-v1pRY", ps = "hanui-upload__drop-OpNbO", ms = "hanui-upload__input-Tcg9-", bs = "hanui-upload__icon-KpMkq", gs = "hanui-upload__label-M4HJb", fs = "hanui-upload__drag-ewSQw", vs = "hanui-upload__hint-MZRJ6", ys = "hanui-upload__error-7GkCC", ws = "hanui-upload__list-lbViQ", xs = "hanui-upload__file-Znp1Q", Ns = "hanui-upload__fileText-EtJcs", ks = "hanui-upload__fileName-ArF8-", $s = "hanui-upload__fileMeta-i6sO1", Is = "hanui-upload__progress-JY2a5", X = {
2967
2967
  upload: hs,
@@ -2992,22 +2992,22 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
2992
2992
  isMultiple: s,
2993
2993
  maxSize: d,
2994
2994
  removeLabel: h,
2995
- dropLabel: l,
2996
- sizeErrorText: c = "{name} çok büyük (en fazla {max}).",
2995
+ dropLabel: c,
2996
+ sizeErrorText: l = "{name} çok büyük (en fazla {max}).",
2997
2997
  isDisabled: u,
2998
2998
  error: _,
2999
2999
  children: m,
3000
3000
  className: w,
3001
3001
  testId: b
3002
3002
  }) => {
3003
- const p = J(), v = J(), I = R(null), k = da(), [x, $] = O(!1), [N, D] = O([]), E = (y) => {
3003
+ const p = J(), v = J(), $ = S(null), N = da(), [x, T] = O(!1), [D, k] = O([]), L = (y) => {
3004
3004
  if (!y || y.length === 0) return;
3005
3005
  const B = [...y], Y = d === void 0 ? [] : B.filter((G) => G.size > d), Q = B.filter((G) => !Y.includes(G)), V = Y.map(
3006
- (G) => c.replace("{name}", G.name).replace("{max}", Ma(d ?? 0))
3006
+ (G) => l.replace("{name}", G.name).replace("{max}", Ma(d ?? 0))
3007
3007
  );
3008
- D(V), Q.length > 0 && (t(Q), k(`${Q.length} dosya eklendi`)), V.length > 0 && k(V.join(" "), "assertive");
3009
- }, L = (y) => {
3010
- y.preventDefault(), $(!1), !u && E(y.dataTransfer.files);
3008
+ k(V), Q.length > 0 && (t(Q), N(`${Q.length} dosya eklendi`)), V.length > 0 && N(V.join(" "), "assertive");
3009
+ }, C = (y) => {
3010
+ y.preventDefault(), T(!1), !u && L(y.dataTransfer.files);
3011
3011
  };
3012
3012
  return /* @__PURE__ */ g("div", { className: f(X.upload, w), "data-testid": b, children: [
3013
3013
  /* @__PURE__ */ g(
@@ -3021,19 +3021,19 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3021
3021
  _ && X["upload__drop--invalid"]
3022
3022
  ),
3023
3023
  onDragOver: (y) => {
3024
- y.preventDefault(), u || $(!0);
3024
+ y.preventDefault(), u || T(!0);
3025
3025
  },
3026
- onDragLeave: () => $(!1),
3027
- onDrop: L,
3026
+ onDragLeave: () => T(!1),
3027
+ onDrop: C,
3028
3028
  children: [
3029
3029
  /* @__PURE__ */ a(Nn, { "aria-hidden": !0, className: X.upload__icon }),
3030
3030
  /* @__PURE__ */ a("span", { className: X.upload__label, children: r }),
3031
- /* @__PURE__ */ a("span", { className: X.upload__drag, children: l }),
3031
+ /* @__PURE__ */ a("span", { className: X.upload__drag, children: c }),
3032
3032
  o && /* @__PURE__ */ a("span", { id: v, className: X.upload__hint, children: o }),
3033
3033
  /* @__PURE__ */ a(
3034
3034
  "input",
3035
3035
  {
3036
- ref: I,
3036
+ ref: $,
3037
3037
  id: p,
3038
3038
  type: "file",
3039
3039
  className: X.upload__input,
@@ -3043,7 +3043,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3043
3043
  "aria-describedby": o ? v : void 0,
3044
3044
  "aria-invalid": _ ? !0 : void 0,
3045
3045
  onChange: (y) => {
3046
- E(y.target.files), y.target.value = "";
3046
+ L(y.target.files), y.target.value = "";
3047
3047
  }
3048
3048
  }
3049
3049
  )
@@ -3054,7 +3054,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3054
3054
  /* @__PURE__ */ a(Ot, { "aria-hidden": !0 }),
3055
3055
  _
3056
3056
  ] }),
3057
- N.map((y) => /* @__PURE__ */ g("p", { className: X.upload__error, role: "alert", children: [
3057
+ D.map((y) => /* @__PURE__ */ g("p", { className: X.upload__error, role: "alert", children: [
3058
3058
  /* @__PURE__ */ a(Ot, { "aria-hidden": !0 }),
3059
3059
  y
3060
3060
  ] }, y)),
@@ -3092,7 +3092,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3092
3092
  )) }),
3093
3093
  m
3094
3094
  ] });
3095
- }, Zu = /* @__PURE__ */ T(
3095
+ }, Zu = /* @__PURE__ */ I(
3096
3096
  /* @__PURE__ */ M(Ts, "FileUpload")
3097
3097
  ), Ds = "hanui-alert-gHI-9", Cs = "hanui-alert__icon-DhiCT", Es = "hanui-alert__body-52-z2", Ls = "hanui-alert__title-I8BAh", Ss = "hanui-alert__content-lhBEo", Rs = "hanui-alert__action-1mTje", Xe = {
3098
3098
  alert: Ds,
@@ -3125,7 +3125,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3125
3125
  r && /* @__PURE__ */ a("div", { className: Xe.alert__action, children: r })
3126
3126
  ]
3127
3127
  }
3128
- ), Vu = /* @__PURE__ */ T(Ms), Bs = "hanui-avatar-qoh3P", Fs = "hanui-avatar__image-uAyAX", Mt = {
3128
+ ), Vu = /* @__PURE__ */ I(Ms), Bs = "hanui-avatar-qoh3P", Fs = "hanui-avatar__image-uAyAX", Mt = {
3129
3129
  avatar: Bs,
3130
3130
  avatar__image: Fs,
3131
3131
  "avatar--sm": "hanui-avatar--sm-GGjU4",
@@ -3164,7 +3164,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3164
3164
  children: t ? /* @__PURE__ */ a("img", { className: Mt.avatar__image, src: t, alt: "" }) : Ps(e, n ?? (s == null ? void 0 : s.locale))
3165
3165
  }
3166
3166
  );
3167
- }, eh = /* @__PURE__ */ T(zs), Ks = "hanui-badge-uLAaI", Us = "hanui-badge__icon-R2goZ", Bt = {
3167
+ }, eh = /* @__PURE__ */ I(zs), Ks = "hanui-badge-uLAaI", Us = "hanui-badge__icon-R2goZ", Bt = {
3168
3168
  badge: Ks,
3169
3169
  badge__icon: Us,
3170
3170
  "badge--neutral": "hanui-badge--neutral-6kddt",
@@ -3197,7 +3197,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3197
3197
  e
3198
3198
  ]
3199
3199
  }
3200
- ), th = /* @__PURE__ */ T(Ys), qs = "hanui-breadcrumb-amB9n", js = "hanui-breadcrumb__item-Icv1S", Gs = "hanui-breadcrumb__link-eVkPq", Ws = "hanui-breadcrumb__current-8XjhU", Xs = "hanui-breadcrumb__separator-vvaUi", $t = {
3200
+ ), th = /* @__PURE__ */ I(Ys), qs = "hanui-breadcrumb-amB9n", js = "hanui-breadcrumb__item-Icv1S", Gs = "hanui-breadcrumb__link-eVkPq", Ws = "hanui-breadcrumb__current-8XjhU", Xs = "hanui-breadcrumb__separator-vvaUi", $t = {
3201
3201
  breadcrumb: qs,
3202
3202
  breadcrumb__item: js,
3203
3203
  breadcrumb__link: Gs,
@@ -3220,7 +3220,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3220
3220
  }) })
3221
3221
  }
3222
3222
  );
3223
- }, ah = /* @__PURE__ */ T(Qs), Js = "hanui-card-CaHUG", Zs = "hanui-media__frame-eBv-s", Vs = "hanui-media-eggk5", ec = "hanui-media__link-ujyVV", tc = "hanui-overlay-AVMTX", ac = "hanui-body-DyI-6", nc = "hanui-footer-2WNCZ", ke = {
3223
+ }, ah = /* @__PURE__ */ I(Qs), Js = "hanui-card-CaHUG", Zs = "hanui-media__frame-eBv-s", Vs = "hanui-media-eggk5", ec = "hanui-media__link-ujyVV", tc = "hanui-overlay-AVMTX", ac = "hanui-body-DyI-6", nc = "hanui-footer-2WNCZ", ke = {
3224
3224
  card: Js,
3225
3225
  "card--interactive": "hanui-card--interactive-C1pXZ",
3226
3226
  media__frame: Zs,
@@ -3244,7 +3244,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3244
3244
  children: e
3245
3245
  }
3246
3246
  ), oc = (e, t) => e ?? (t === !1 ? "cover" : "contain"), nh = /* @__PURE__ */ M(
3247
- /* @__PURE__ */ T(({ children: e, ratio: t = 1, href: n, linkProps: r, fit: o, isContained: i, className: s }) => {
3247
+ /* @__PURE__ */ I(({ children: e, ratio: t = 1, href: n, linkProps: r, fit: o, isContained: i, className: s }) => {
3248
3248
  const d = /* @__PURE__ */ a(
3249
3249
  "span",
3250
3250
  {
@@ -3273,15 +3273,15 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3273
3273
  }),
3274
3274
  "CardMedia"
3275
3275
  ), rh = /* @__PURE__ */ M(
3276
- /* @__PURE__ */ T(({ children: e, position: t = "top-left", className: n }) => /* @__PURE__ */ a("div", { className: f(ke.overlay, ke[`overlay--${t}`], n), children: e })),
3276
+ /* @__PURE__ */ I(({ children: e, position: t = "top-left", className: n }) => /* @__PURE__ */ a("div", { className: f(ke.overlay, ke[`overlay--${t}`], n), children: e })),
3277
3277
  "CardOverlay"
3278
3278
  ), oh = /* @__PURE__ */ M(
3279
- /* @__PURE__ */ T(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: f(ke.body, t), children: e })),
3279
+ /* @__PURE__ */ I(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: f(ke.body, t), children: e })),
3280
3280
  "CardBody"
3281
3281
  ), ih = /* @__PURE__ */ M(
3282
- /* @__PURE__ */ T(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: f(ke.footer, t), children: e })),
3282
+ /* @__PURE__ */ I(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: f(ke.footer, t), children: e })),
3283
3283
  "CardFooter"
3284
- ), sh = /* @__PURE__ */ T(rc), ic = "hanui-carousel-GJXkW", sc = "hanui-carousel__controls-hm5ij", cc = "hanui-carousel__arrowIcon-adFey", lc = "hanui-carousel__track-mAux5", dc = "hanui-carousel__dots-iU8RJ", _c = "hanui-carousel__dot-JTLCB", Oe = {
3284
+ ), sh = /* @__PURE__ */ I(rc), ic = "hanui-carousel-GJXkW", sc = "hanui-carousel__controls-hm5ij", cc = "hanui-carousel__arrowIcon-adFey", lc = "hanui-carousel__track-mAux5", dc = "hanui-carousel__dots-iU8RJ", _c = "hanui-carousel__dot-JTLCB", Oe = {
3285
3285
  carousel: ic,
3286
3286
  carousel__controls: sc,
3287
3287
  carousel__arrowIcon: cc,
@@ -3295,35 +3295,36 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3295
3295
  previousLabel: n,
3296
3296
  nextLabel: r,
3297
3297
  formatDotLabel: o,
3298
- itemMinWidth: i = 240,
3299
- className: s,
3300
- testId: d
3298
+ itemWidth: i,
3299
+ itemMinWidth: s,
3300
+ className: d,
3301
+ testId: h
3301
3302
  }) => {
3302
- const h = R(null), [l, c] = O(!1), [u, _] = O(!1), [m, w] = O(0), [b, p] = O(1), [v, I] = O(!1), k = H(() => {
3303
- const $ = h.current;
3304
- if (!$) return;
3305
- const { scrollLeft: N, scrollWidth: D, clientWidth: E } = $;
3306
- c(N > 1), _(N + E < D - 1), w(E > 0 ? Math.round(N / E) : 0), p(E > 0 ? Math.max(1, Math.ceil(D / E)) : 1), I(
3307
- D > E && $.querySelector("a, button, input, select, textarea, [tabindex]") === null
3303
+ const c = S(null), [l, u] = O(!1), [_, m] = O(!1), [w, b] = O(0), [p, v] = O(1), [$, N] = O(!1), x = H(() => {
3304
+ const D = c.current;
3305
+ if (!D) return;
3306
+ const { scrollLeft: k, scrollWidth: L, clientWidth: C } = D;
3307
+ u(k > 1), m(k + C < L - 1), b(C > 0 ? Math.round(k / C) : 0), v(C > 0 ? Math.max(1, Math.ceil(L / C)) : 1), N(
3308
+ L > C && D.querySelector("a, button, input, select, textarea, [tabindex]") === null
3308
3309
  );
3309
3310
  }, []);
3310
- S(() => {
3311
- const $ = h.current;
3312
- if (!$) return;
3313
- k(), $.addEventListener("scroll", k, { passive: !0 });
3314
- const N = typeof ResizeObserver > "u" ? null : new ResizeObserver(k);
3315
- return N == null || N.observe($), () => {
3316
- $.removeEventListener("scroll", k), N == null || N.disconnect();
3311
+ R(() => {
3312
+ const D = c.current;
3313
+ if (!D) return;
3314
+ x(), D.addEventListener("scroll", x, { passive: !0 });
3315
+ const k = typeof ResizeObserver > "u" ? null : new ResizeObserver(x);
3316
+ return k == null || k.observe(D), () => {
3317
+ D.removeEventListener("scroll", x), k == null || k.disconnect();
3317
3318
  };
3318
- }, [k, e]);
3319
- const x = ($) => {
3320
- var N;
3321
- return (N = h.current) == null ? void 0 : N.scrollBy({
3322
- left: $ * h.current.clientWidth,
3319
+ }, [x, e]);
3320
+ const T = (D) => {
3321
+ var k;
3322
+ return (k = c.current) == null ? void 0 : k.scrollBy({
3323
+ left: D * c.current.clientWidth,
3323
3324
  behavior: "smooth"
3324
3325
  });
3325
3326
  };
3326
- return /* @__PURE__ */ g("section", { className: f(Oe.carousel, s), "aria-label": t, "data-testid": d, children: [
3327
+ return /* @__PURE__ */ g("section", { className: f(Oe.carousel, d), "aria-label": t, "data-testid": h, children: [
3327
3328
  /* @__PURE__ */ g("div", { className: Oe.carousel__controls, children: [
3328
3329
  /* @__PURE__ */ a(
3329
3330
  $e,
@@ -3333,7 +3334,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3333
3334
  variant: "outline",
3334
3335
  size: "sm",
3335
3336
  disabled: !l,
3336
- onClick: () => x(-1)
3337
+ onClick: () => T(-1)
3337
3338
  }
3338
3339
  ),
3339
3340
  /* @__PURE__ */ a(
@@ -3343,45 +3344,47 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3343
3344
  label: r,
3344
3345
  variant: "outline",
3345
3346
  size: "sm",
3346
- disabled: !u,
3347
- onClick: () => x(1)
3347
+ disabled: !_,
3348
+ onClick: () => T(1)
3348
3349
  }
3349
3350
  )
3350
3351
  ] }),
3351
3352
  /* @__PURE__ */ a(
3352
3353
  "div",
3353
3354
  {
3354
- ref: h,
3355
+ ref: c,
3355
3356
  className: Oe.carousel__track,
3356
- style: { "--hanui-carousel-item": `${i}px` },
3357
- tabIndex: v ? 0 : void 0,
3358
- role: v ? "group" : void 0,
3359
- "aria-label": v ? t : void 0,
3357
+ style: {
3358
+ "--hanui-carousel-item-default": `${i ?? s ?? 240}px`
3359
+ },
3360
+ tabIndex: $ ? 0 : void 0,
3361
+ role: $ ? "group" : void 0,
3362
+ "aria-label": $ ? t : void 0,
3360
3363
  children: e
3361
3364
  }
3362
3365
  ),
3363
- o && b > 1 && /* @__PURE__ */ a("div", { className: Oe.carousel__dots, children: Array.from({ length: b }, ($, N) => /* @__PURE__ */ a(
3366
+ o && p > 1 && /* @__PURE__ */ a("div", { className: Oe.carousel__dots, children: Array.from({ length: p }, (D, k) => /* @__PURE__ */ a(
3364
3367
  "button",
3365
3368
  {
3366
3369
  type: "button",
3367
3370
  className: f(
3368
3371
  Oe.carousel__dot,
3369
- N === m && Oe["carousel__dot--active"]
3372
+ k === w && Oe["carousel__dot--active"]
3370
3373
  ),
3371
- "aria-label": o(N + 1, b),
3372
- "aria-current": N === m ? "true" : void 0,
3374
+ "aria-label": o(k + 1, p),
3375
+ "aria-current": k === w ? "true" : void 0,
3373
3376
  onClick: () => {
3374
- var D;
3375
- return (D = h.current) == null ? void 0 : D.scrollTo({
3376
- left: N * h.current.clientWidth,
3377
+ var L;
3378
+ return (L = c.current) == null ? void 0 : L.scrollTo({
3379
+ left: k * c.current.clientWidth,
3377
3380
  behavior: "smooth"
3378
3381
  });
3379
3382
  }
3380
3383
  },
3381
- N
3384
+ k
3382
3385
  )) })
3383
3386
  ] });
3384
- }, ch = /* @__PURE__ */ T(/* @__PURE__ */ M(uc, "Carousel")), hc = "hanui-copy-Yht5s", pc = "hanui-copy__code-CYlCA", mc = "hanui-copy__button-GDdH6", bc = "hanui-copy__srOnly-WMTNN", lt = {
3387
+ }, ch = /* @__PURE__ */ I(/* @__PURE__ */ M(uc, "Carousel")), hc = "hanui-copy-Yht5s", pc = "hanui-copy__code-CYlCA", mc = "hanui-copy__button-GDdH6", bc = "hanui-copy__srOnly-WMTNN", lt = {
3385
3388
  copy: hc,
3386
3389
  "copy--sm": "hanui-copy--sm-Tjqws",
3387
3390
  copy__code: pc,
@@ -3400,18 +3403,18 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3400
3403
  testId: d
3401
3404
  }) => {
3402
3405
  var b, p, v;
3403
- const { labels: h } = j(), [l, c] = O(!1), u = R(null), _ = R(void 0);
3404
- S(() => () => window.clearTimeout(_.current), []);
3406
+ const { labels: h } = j(), [c, l] = O(!1), u = S(null), _ = S(void 0);
3407
+ R(() => () => window.clearTimeout(_.current), []);
3405
3408
  const m = H(() => {
3406
- const I = u.current;
3407
- if (!I) return;
3408
- const k = document.createRange();
3409
- k.selectNodeContents(I);
3409
+ const $ = u.current;
3410
+ if (!$) return;
3411
+ const N = document.createRange();
3412
+ N.selectNodeContents($);
3410
3413
  const x = window.getSelection();
3411
- x == null || x.removeAllRanges(), x == null || x.addRange(k);
3414
+ x == null || x.removeAllRanges(), x == null || x.addRange(N);
3412
3415
  }, []), w = H(async () => {
3413
3416
  try {
3414
- await navigator.clipboard.writeText(e), c(!0), _.current = window.setTimeout(() => c(!1), gc);
3417
+ await navigator.clipboard.writeText(e), l(!0), _.current = window.setTimeout(() => l(!1), gc);
3415
3418
  } catch {
3416
3419
  m();
3417
3420
  }
@@ -3422,23 +3425,23 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3422
3425
  "button",
3423
3426
  {
3424
3427
  type: "button",
3425
- className: f(lt.copy__button, l && lt["copy__button--done"]),
3428
+ className: f(lt.copy__button, c && lt["copy__button--done"]),
3426
3429
  onClick: w,
3427
- "aria-label": l ? n ?? Kt("CopyField.copiedLabel", (b = h == null ? void 0 : h.copyField) == null ? void 0 : b.copied, e) : t ?? Kt("CopyField.copyLabel", (p = h == null ? void 0 : h.copyField) == null ? void 0 : p.copy, e),
3428
- children: l ? /* @__PURE__ */ a(kn, { "aria-hidden": !0 }) : /* @__PURE__ */ a($n, { "aria-hidden": !0 })
3430
+ "aria-label": c ? n ?? Kt("CopyField.copiedLabel", (b = h == null ? void 0 : h.copyField) == null ? void 0 : b.copied, e) : t ?? Kt("CopyField.copyLabel", (p = h == null ? void 0 : h.copyField) == null ? void 0 : p.copy, e),
3431
+ children: c ? /* @__PURE__ */ a(kn, { "aria-hidden": !0 }) : /* @__PURE__ */ a($n, { "aria-hidden": !0 })
3429
3432
  }
3430
3433
  ),
3431
- /* @__PURE__ */ a("span", { "aria-live": "polite", className: lt.copy__srOnly, children: l ? z(
3434
+ /* @__PURE__ */ a("span", { "aria-live": "polite", className: lt.copy__srOnly, children: c ? z(
3432
3435
  "CopyField.copiedAnnouncement",
3433
3436
  r,
3434
3437
  (v = h == null ? void 0 : h.copyField) == null ? void 0 : v.announcement
3435
3438
  ) : "" })
3436
3439
  ] });
3437
- }, lh = /* @__PURE__ */ T(fc), vc = "hanui-divider-RJqCw", yc = "hanui-divider__label-M8sBA", Ft = {
3440
+ }, lh = /* @__PURE__ */ I(fc), vc = "hanui-divider-RJqCw", yc = "hanui-divider__label-M8sBA", Ft = {
3438
3441
  divider: vc,
3439
3442
  "divider--labelled": "hanui-divider--labelled-jZH1-",
3440
3443
  divider__label: yc
3441
- }, wc = ({ label: e, className: t }) => e ? /* @__PURE__ */ a("div", { className: f(Ft.divider, Ft["divider--labelled"], t), children: /* @__PURE__ */ a("span", { className: Ft.divider__label, children: e }) }) : /* @__PURE__ */ a("hr", { className: f(Ft.divider, t) }), dh = /* @__PURE__ */ T(wc), xc = "hanui-directory-badEd", Nc = "hanui-group-i6An9", kc = "hanui-group__header-rc19c", $c = "hanui-group__label-vQTcs", Ic = "hanui-group__link-es5V7", Tc = "hanui-group__meta-LtC-u", Dc = "hanui-group__list-YxBCG", Cc = "hanui-row-3LH7X", Ec = "hanui-row__name-75Wbq", Lc = "hanui-row__media-AxZEh", Sc = "hanui-row__marker-RYHb-", Rc = "hanui-jump-vpGwB", Ac = "hanui-jump__link-rRnT6", ce = {
3444
+ }, wc = ({ label: e, className: t }) => e ? /* @__PURE__ */ a("div", { className: f(Ft.divider, Ft["divider--labelled"], t), children: /* @__PURE__ */ a("span", { className: Ft.divider__label, children: e }) }) : /* @__PURE__ */ a("hr", { className: f(Ft.divider, t) }), dh = /* @__PURE__ */ I(wc), xc = "hanui-directory-badEd", Nc = "hanui-group-i6An9", kc = "hanui-group__header-rc19c", $c = "hanui-group__label-vQTcs", Ic = "hanui-group__link-es5V7", Tc = "hanui-group__meta-LtC-u", Dc = "hanui-group__list-YxBCG", Cc = "hanui-row-3LH7X", Ec = "hanui-row__name-75Wbq", Lc = "hanui-row__media-AxZEh", Sc = "hanui-row__marker-RYHb-", Rc = "hanui-jump-vpGwB", Ac = "hanui-jump__link-rRnT6", ce = {
3442
3445
  directory: xc,
3443
3446
  group: Nc,
3444
3447
  group__header: kc,
@@ -3453,7 +3456,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3453
3456
  jump: Rc,
3454
3457
  jump__link: Ac
3455
3458
  }, Mc = ({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: f(ce.directory, t), children: e }), _h = /* @__PURE__ */ M(
3456
- /* @__PURE__ */ T(({ label: e, href: t, linkProps: n, meta: r, children: o, id: i }) => /* @__PURE__ */ g("section", { className: ce.group, id: i, children: [
3459
+ /* @__PURE__ */ I(({ label: e, href: t, linkProps: n, meta: r, children: o, id: i }) => /* @__PURE__ */ g("section", { className: ce.group, id: i, children: [
3457
3460
  /* @__PURE__ */ g("header", { className: ce.group__header, children: [
3458
3461
  /* @__PURE__ */ a("h2", { className: ce.group__label, children: t ? /* @__PURE__ */ a(Te, { href: t, className: ce.group__link, ...n, children: e }) : e }),
3459
3462
  r && /* @__PURE__ */ a("span", { className: ce.group__meta, children: r })
@@ -3462,14 +3465,14 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3462
3465
  ] })),
3463
3466
  "DirectoryGroup"
3464
3467
  ), uh = /* @__PURE__ */ M(
3465
- /* @__PURE__ */ T(({ href: e, name: t, media: n, marker: r, linkProps: o, className: i }) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ g(Te, { href: e, className: f(ce.row, i), ...o, children: [
3468
+ /* @__PURE__ */ I(({ href: e, name: t, media: n, marker: r, linkProps: o, className: i }) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ g(Te, { href: e, className: f(ce.row, i), ...o, children: [
3466
3469
  n && /* @__PURE__ */ a("span", { className: ce.row__media, children: n }),
3467
3470
  /* @__PURE__ */ a("span", { className: ce.row__name, children: t }),
3468
3471
  r && /* @__PURE__ */ a("span", { className: ce.row__marker, children: r })
3469
3472
  ] }) })),
3470
3473
  "DirectoryRow"
3471
3474
  ), hh = /* @__PURE__ */ M(
3472
- /* @__PURE__ */ T(({ labels: e, toId: t, label: n }) => {
3475
+ /* @__PURE__ */ I(({ labels: e, toId: t, label: n }) => {
3473
3476
  const { labels: r } = j();
3474
3477
  return /* @__PURE__ */ a(
3475
3478
  "nav",
@@ -3481,7 +3484,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3481
3484
  );
3482
3485
  }),
3483
3486
  "DirectoryJump"
3484
- ), ph = /* @__PURE__ */ T(Mc), Bc = "hanui-empty-47qZR", Fc = "hanui-empty__icon-okfEc", Pc = "hanui-empty__title-Z7Dzd", Oc = "hanui-empty__description-6BoCk", Hc = "hanui-empty__actions-ARk-k", Qe = {
3487
+ ), ph = /* @__PURE__ */ I(Mc), Bc = "hanui-empty-47qZR", Fc = "hanui-empty__icon-okfEc", Pc = "hanui-empty__title-Z7Dzd", Oc = "hanui-empty__description-6BoCk", Hc = "hanui-empty__actions-ARk-k", Qe = {
3485
3488
  empty: Bc,
3486
3489
  empty__icon: Fc,
3487
3490
  empty__title: Pc,
@@ -3515,7 +3518,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3515
3518
  ] })
3516
3519
  ]
3517
3520
  }
3518
- ), mh = /* @__PURE__ */ T(zc), Kc = "hanui-header-yJwus", Uc = "hanui-header__top-UK4si", Yc = "hanui-header__breadcrumb-A2j0i", qc = "hanui-header__text-HIo8U", jc = "hanui-header__eyebrow-dZ9Zc", Gc = "hanui-header__titleRow-KgDZj", Wc = "hanui-header__title-s1giF", Xc = "hanui-header__meta-UxuaD", Qc = "hanui-header__description-NXbbC", Jc = "hanui-header__actions-aShpt", xe = {
3521
+ ), mh = /* @__PURE__ */ I(zc), Kc = "hanui-header-yJwus", Uc = "hanui-header__top-UK4si", Yc = "hanui-header__breadcrumb-A2j0i", qc = "hanui-header__text-HIo8U", jc = "hanui-header__eyebrow-dZ9Zc", Gc = "hanui-header__titleRow-KgDZj", Wc = "hanui-header__title-s1giF", Xc = "hanui-header__meta-UxuaD", Qc = "hanui-header__description-NXbbC", Jc = "hanui-header__actions-aShpt", xe = {
3519
3522
  header: Kc,
3520
3523
  header__top: Uc,
3521
3524
  header__breadcrumb: Yc,
@@ -3536,8 +3539,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3536
3539
  children: s,
3537
3540
  as: d = "h1",
3538
3541
  className: h,
3539
- testId: l
3540
- }) => /* @__PURE__ */ g("header", { className: f(xe.header, h), "data-testid": l, children: [
3542
+ testId: c
3543
+ }) => /* @__PURE__ */ g("header", { className: f(xe.header, h), "data-testid": c, children: [
3541
3544
  o && /* @__PURE__ */ a("div", { className: xe.header__breadcrumb, children: o }),
3542
3545
  /* @__PURE__ */ g("div", { className: xe.header__top, children: [
3543
3546
  /* @__PURE__ */ g("div", { className: xe.header__text, children: [
@@ -3551,7 +3554,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3551
3554
  r && /* @__PURE__ */ a("div", { className: xe.header__actions, children: r })
3552
3555
  ] }),
3553
3556
  s
3554
- ] }), bh = /* @__PURE__ */ T(Zc), Vc = "hanui-panel-Sv-1m", el = "hanui-panel__header-ysexh", tl = "hanui-panel__heading-xLCsB", al = "hanui-panel__icon--yPQT", nl = "hanui-panel__headingText--XqxW", rl = "hanui-panel__title-6-6uC", ol = "hanui-panel__description-qXTSM", il = "hanui-panel__actions-Ra-zy", sl = "hanui-panel__body-lo5aX", cl = "hanui-panel__footer-qLpR1", ll = "hanui-panel__footerInner-r6VQI", dl = "hanui-form-o9UqJ", _l = "hanui-row-vUGpa", ee = {
3557
+ ] }), bh = /* @__PURE__ */ I(Zc), Vc = "hanui-panel-Sv-1m", el = "hanui-panel__header-ysexh", tl = "hanui-panel__heading-xLCsB", al = "hanui-panel__icon--yPQT", nl = "hanui-panel__headingText--XqxW", rl = "hanui-panel__title-6-6uC", ol = "hanui-panel__description-qXTSM", il = "hanui-panel__actions-Ra-zy", sl = "hanui-panel__body-lo5aX", cl = "hanui-panel__footer-qLpR1", ll = "hanui-panel__footerInner-r6VQI", dl = "hanui-form-o9UqJ", _l = "hanui-row-vUGpa", ee = {
3555
3558
  panel: Vc,
3556
3559
  panel__header: el,
3557
3560
  panel__heading: tl,
@@ -3579,10 +3582,10 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3579
3582
  gap: s = "md",
3580
3583
  footer: d,
3581
3584
  as: h = "section",
3582
- className: l,
3583
- bodyClassName: c,
3585
+ className: c,
3586
+ bodyClassName: l,
3584
3587
  testId: u
3585
- }) => /* @__PURE__ */ g(h, { className: f(ee.panel, l), "data-testid": u, children: [
3588
+ }) => /* @__PURE__ */ g(h, { className: f(ee.panel, c), "data-testid": u, children: [
3586
3589
  (t || r) && /* @__PURE__ */ g("div", { className: ee.panel__header, children: [
3587
3590
  /* @__PURE__ */ g("div", { className: ee.panel__heading, children: [
3588
3591
  o && /* @__PURE__ */ a("span", { className: ee.panel__icon, children: o }),
@@ -3600,19 +3603,19 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3600
3603
  ee.panel__body,
3601
3604
  ee[`panel__body--${s}`],
3602
3605
  i && ee["panel__body--flush"],
3603
- c
3606
+ l
3604
3607
  ),
3605
3608
  children: e
3606
3609
  }
3607
3610
  ),
3608
3611
  d && /* @__PURE__ */ a("div", { className: ee.panel__footer, children: /* @__PURE__ */ a("div", { className: ee.panel__footerInner, children: d }) })
3609
3612
  ] }), gh = /* @__PURE__ */ M(
3610
- /* @__PURE__ */ T(({ children: e, columns: t = 1, className: n }) => /* @__PURE__ */ a("div", { className: f(ee.form, ee[`form--${t}`], n), children: e })),
3613
+ /* @__PURE__ */ I(({ children: e, columns: t = 1, className: n }) => /* @__PURE__ */ a("div", { className: f(ee.form, ee[`form--${t}`], n), children: e })),
3611
3614
  "PanelForm"
3612
3615
  ), fh = /* @__PURE__ */ M(
3613
- /* @__PURE__ */ T(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: f(ee.row, t), children: e })),
3616
+ /* @__PURE__ */ I(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: f(ee.row, t), children: e })),
3614
3617
  "PanelRow"
3615
- ), vh = /* @__PURE__ */ T(ul), hl = "hanui-price-Oc5Nr", pl = "hanui-price__current-2Xup2", ml = "hanui-price__currency-32NLN", bl = "hanui-price__list-MlQgT", gl = "hanui-price__discount-5Yc6W", Je = {
3618
+ ), vh = /* @__PURE__ */ I(ul), hl = "hanui-price-Oc5Nr", pl = "hanui-price__current-2Xup2", ml = "hanui-price__currency-32NLN", bl = "hanui-price__list-MlQgT", gl = "hanui-price__discount-5Yc6W", Je = {
3616
3619
  price: hl,
3617
3620
  price__current: pl,
3618
3621
  price__currency: ml,
@@ -3627,20 +3630,20 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3627
3630
  currency: t,
3628
3631
  listValue: n,
3629
3632
  discountPercent: r,
3630
- formatDiscount: o = (l) => `%${l}`,
3633
+ formatDiscount: o = (c) => `%${c}`,
3631
3634
  isFormatted: i,
3632
3635
  size: s = "md",
3633
3636
  className: d,
3634
3637
  testId: h
3635
3638
  }) => {
3636
- const { labels: l } = j(), c = z("Price.currency", t, l == null ? void 0 : l.currency), u = (_) => {
3637
- if (!i || !(l != null && l.locale) || !/\d/.test(_)) return _;
3639
+ const { labels: c } = j(), l = z("Price.currency", t, c == null ? void 0 : c.currency), u = (_) => {
3640
+ if (!i || !(c != null && c.locale) || !/\d/.test(_)) return _;
3638
3641
  const m = Number(
3639
3642
  _.replace(/[^\d.,-]/g, "").replace(/\.(?=\d{3}\b)/g, "").replace(",", ".")
3640
3643
  );
3641
3644
  if (!Number.isFinite(m)) return _;
3642
3645
  try {
3643
- return new Intl.NumberFormat(l.locale).format(m);
3646
+ return new Intl.NumberFormat(c.locale).format(m);
3644
3647
  } catch {
3645
3648
  return _;
3646
3649
  }
@@ -3648,15 +3651,15 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3648
3651
  return /* @__PURE__ */ g("span", { className: f(Je.price, Je[`price--${s}`], d), "data-testid": h, children: [
3649
3652
  /* @__PURE__ */ g("span", { className: Je.price__current, children: [
3650
3653
  u(e),
3651
- /* @__PURE__ */ a("span", { className: Je.price__currency, children: c })
3654
+ /* @__PURE__ */ a("span", { className: Je.price__currency, children: l })
3652
3655
  ] }),
3653
3656
  n && /* @__PURE__ */ g("s", { className: Je.price__list, children: [
3654
3657
  u(n),
3655
- /* @__PURE__ */ a("span", { className: Je.price__currency, children: c })
3658
+ /* @__PURE__ */ a("span", { className: Je.price__currency, children: l })
3656
3659
  ] }),
3657
3660
  r !== void 0 && r > 0 && /* @__PURE__ */ a("span", { className: Je.price__discount, children: o(r) })
3658
3661
  ] });
3659
- }, yh = /* @__PURE__ */ T(fl), vl = "hanui-rating-94dke", yl = "hanui-rating__stars-QkpVU", wl = "hanui-rating__empty-Wf6-K", xl = "hanui-rating__count-pIoEs", Nl = "hanui-rating__srOnly-E9h0d", dt = {
3662
+ }, yh = /* @__PURE__ */ I(fl), vl = "hanui-rating-94dke", yl = "hanui-rating__stars-QkpVU", wl = "hanui-rating__empty-Wf6-K", xl = "hanui-rating__count-pIoEs", Nl = "hanui-rating__srOnly-E9h0d", dt = {
3660
3663
  rating: vl,
3661
3664
  rating__stars: yl,
3662
3665
  rating__empty: wl,
@@ -3668,9 +3671,9 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3668
3671
  var h;
3669
3672
  const { labels: s } = j(), d = Math.round(e * 2) / 2;
3670
3673
  return /* @__PURE__ */ g("span", { className: f(dt.rating, dt[`rating--${r}`], o), "data-testid": i, children: [
3671
- /* @__PURE__ */ a("span", { className: dt.rating__stars, "aria-hidden": !0, children: Array.from({ length: 5 }, (l, c) => {
3672
- const u = c + 1;
3673
- return d >= u ? /* @__PURE__ */ a(oa, {}, c) : d >= u - 0.5 ? /* @__PURE__ */ a(In, {}, c) : /* @__PURE__ */ a(oa, { className: dt.rating__empty }, c);
3674
+ /* @__PURE__ */ a("span", { className: dt.rating__stars, "aria-hidden": !0, children: Array.from({ length: 5 }, (c, l) => {
3675
+ const u = l + 1;
3676
+ return d >= u ? /* @__PURE__ */ a(oa, {}, l) : d >= u - 0.5 ? /* @__PURE__ */ a(In, {}, l) : /* @__PURE__ */ a(oa, { className: dt.rating__empty }, l);
3674
3677
  }) }),
3675
3678
  /* @__PURE__ */ a("span", { className: dt.rating__srOnly, children: n ?? Kt("Rating.srLabel", (h = s == null ? void 0 : s.rating) == null ? void 0 : h.srLabel, e, t) }),
3676
3679
  ht(t) && /* @__PURE__ */ g("span", { className: dt.rating__count, "aria-hidden": !0, children: [
@@ -3679,7 +3682,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3679
3682
  ")"
3680
3683
  ] })
3681
3684
  ] });
3682
- }, wh = /* @__PURE__ */ T(kl), $l = "hanui-header-a08Jh", Il = "hanui-header__text-ArJkA", Tl = "hanui-header__overline-X5Epo", Dl = "hanui-header__title-nQQQJ", Cl = "hanui-header__description-08oCr", El = "hanui-header__action-xsxQF", Ze = {
3685
+ }, wh = /* @__PURE__ */ I(kl), $l = "hanui-header-a08Jh", Il = "hanui-header__text-ArJkA", Tl = "hanui-header__overline-X5Epo", Dl = "hanui-header__title-nQQQJ", Cl = "hanui-header__description-08oCr", El = "hanui-header__action-xsxQF", Ze = {
3683
3686
  header: $l,
3684
3687
  header__text: Il,
3685
3688
  header__overline: Tl,
@@ -3704,7 +3707,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3704
3707
  t && /* @__PURE__ */ a("p", { className: Ze.header__description, children: t })
3705
3708
  ] }),
3706
3709
  r && /* @__PURE__ */ a("div", { className: Ze.header__action, children: r })
3707
- ] }), xh = /* @__PURE__ */ T(Ll), Sl = "hanui-scrollArea-Ly-yT", ra = {
3710
+ ] }), xh = /* @__PURE__ */ I(Ll), Sl = "hanui-scrollArea-Ly-yT", ra = {
3708
3711
  scrollArea: Sl,
3709
3712
  "scrollArea--vertical": "hanui-scrollArea--vertical-2ujC7",
3710
3713
  "scrollArea--horizontal": "hanui-scrollArea--horizontal-e9pu-",
@@ -3719,17 +3722,17 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3719
3722
  className: i,
3720
3723
  testId: s
3721
3724
  }) => {
3722
- const d = R(null), [h, l] = O(!1), [c, u] = O({ start: !1, end: !1 });
3723
- return S(() => {
3725
+ const d = S(null), [h, c] = O(!1), [l, u] = O({ start: !1, end: !1 });
3726
+ return R(() => {
3724
3727
  const _ = d.current;
3725
3728
  if (!_ || typeof ResizeObserver > "u") return;
3726
3729
  const m = () => {
3727
3730
  const b = _.scrollHeight > _.clientHeight, p = _.scrollWidth > _.clientWidth;
3728
- l(
3731
+ c(
3729
3732
  n === "horizontal" ? p : n === "vertical" ? b : b || p
3730
3733
  );
3731
- const v = n === "horizontal", I = v ? _.clientWidth : _.clientHeight, k = v ? _.scrollWidth : _.scrollHeight, x = Math.abs(v ? _.scrollLeft : _.scrollTop);
3732
- u({ start: x > 1, end: x + I < k - 1 });
3734
+ const v = n === "horizontal", $ = v ? _.clientWidth : _.clientHeight, N = v ? _.scrollWidth : _.scrollHeight, x = Math.abs(v ? _.scrollLeft : _.scrollTop);
3735
+ u({ start: x > 1, end: x + $ < N - 1 });
3733
3736
  };
3734
3737
  m();
3735
3738
  const w = new ResizeObserver(m);
@@ -3749,8 +3752,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3749
3752
  i
3750
3753
  ),
3751
3754
  style: r === void 0 ? void 0 : { maxBlockSize: r },
3752
- "data-fade-start": o && c.start ? "" : void 0,
3753
- "data-fade-end": o && c.end ? "" : void 0,
3755
+ "data-fade-start": o && l.start ? "" : void 0,
3756
+ "data-fade-end": o && l.end ? "" : void 0,
3754
3757
  tabIndex: h ? 0 : void 0,
3755
3758
  role: h ? "region" : void 0,
3756
3759
  "aria-label": h ? t : void 0,
@@ -3758,7 +3761,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3758
3761
  children: e
3759
3762
  }
3760
3763
  );
3761
- }, Nh = /* @__PURE__ */ T(
3764
+ }, Nh = /* @__PURE__ */ I(
3762
3765
  /* @__PURE__ */ M(Rl, "ScrollArea")
3763
3766
  ), Al = "hanui-skeleton-n92if", Ml = "hanui-group-YMfwa", Bl = "hanui-card-XQs-Q", Fl = "hanui-card__media-YLJDv", Pl = "hanui-card__body-msRvB", Ol = "hanui-rows-EZ9Am", Hl = "hanui-row-se56N", zl = "hanui-row__text-TD4iS", Kl = "hanui-table-L328g", Ul = "hanui-table__row-rSJTK", le = {
3764
3767
  skeleton: Al,
@@ -3794,7 +3797,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3794
3797
  "aria-hidden": !0
3795
3798
  }
3796
3799
  );
3797
- }, kh = /* @__PURE__ */ T(ze), Yl = ({ count: e = 1, className: t }) => /* @__PURE__ */ a(fe, { children: Array.from({ length: e }, (n, r) => /* @__PURE__ */ g("div", { className: f(le.card, t), "aria-hidden": !0, children: [
3800
+ }, kh = /* @__PURE__ */ I(ze), Yl = ({ count: e = 1, className: t }) => /* @__PURE__ */ a(fe, { children: Array.from({ length: e }, (n, r) => /* @__PURE__ */ g("div", { className: f(le.card, t), "aria-hidden": !0, children: [
3798
3801
  /* @__PURE__ */ a(ze, { className: le.card__media }),
3799
3802
  /* @__PURE__ */ g("div", { className: le.card__body, children: [
3800
3803
  /* @__PURE__ */ a(ze, { variant: "text", width: "70%" }),
@@ -3810,7 +3813,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3810
3813
  count: e = 5,
3811
3814
  columns: t = 4,
3812
3815
  className: n
3813
- }) => /* @__PURE__ */ a("div", { className: f(le.table, n), "aria-hidden": !0, children: Array.from({ length: e }, (r, o) => /* @__PURE__ */ a("div", { className: le.table__row, children: Array.from({ length: t }, (i, s) => /* @__PURE__ */ a(ze, { variant: "text" }, s)) }, o)) }), $h = /* @__PURE__ */ M(/* @__PURE__ */ T(Yl), "SkeletonCard"), Ih = /* @__PURE__ */ M(/* @__PURE__ */ T(ql), "SkeletonRows"), Th = /* @__PURE__ */ M(/* @__PURE__ */ T(jl), "SkeletonTable"), Gl = "hanui-stat-Xb7wp", Wl = "hanui-stat__icon-MB8NU", Xl = "hanui-stat__label-kUX2m", Ql = "hanui-stat__value--6p13", Jl = "hanui-stat__unit-mjHVk", Zl = "hanui-stat__delta-YKpOu", Vl = "hanui-stat__description-Yvw6J", ed = "hanui-stat__srOnly-YKebA", _e = {
3816
+ }) => /* @__PURE__ */ a("div", { className: f(le.table, n), "aria-hidden": !0, children: Array.from({ length: e }, (r, o) => /* @__PURE__ */ a("div", { className: le.table__row, children: Array.from({ length: t }, (i, s) => /* @__PURE__ */ a(ze, { variant: "text" }, s)) }, o)) }), $h = /* @__PURE__ */ M(/* @__PURE__ */ I(Yl), "SkeletonCard"), Ih = /* @__PURE__ */ M(/* @__PURE__ */ I(ql), "SkeletonRows"), Th = /* @__PURE__ */ M(/* @__PURE__ */ I(jl), "SkeletonTable"), Gl = "hanui-stat-Xb7wp", Wl = "hanui-stat__icon-MB8NU", Xl = "hanui-stat__label-kUX2m", Ql = "hanui-stat__value--6p13", Jl = "hanui-stat__unit-mjHVk", Zl = "hanui-stat__delta-YKpOu", Vl = "hanui-stat__description-Yvw6J", ed = "hanui-stat__srOnly-YKebA", _e = {
3814
3817
  stat: Gl,
3815
3818
  "stat--sm": "hanui-stat--sm-XnK8p",
3816
3819
  "stat--plain": "hanui-stat--plain-N-3RC",
@@ -3841,8 +3844,8 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3841
3844
  description: s,
3842
3845
  icon: d,
3843
3846
  variant: h = "card",
3844
- size: l = "md",
3845
- className: c,
3847
+ size: c = "md",
3848
+ className: l,
3846
3849
  testId: u
3847
3850
  }) => {
3848
3851
  const _ = o === "flat" ? void 0 : o === "up" === i;
@@ -3855,7 +3858,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3855
3858
  /* @__PURE__ */ g(
3856
3859
  "div",
3857
3860
  {
3858
- className: f(_e.stat, _e[`stat--${l}`], _e[`stat--${h}`], c),
3861
+ className: f(_e.stat, _e[`stat--${c}`], _e[`stat--${h}`], l),
3859
3862
  "data-testid": u,
3860
3863
  children: [
3861
3864
  d && /* @__PURE__ */ a("span", { className: _e.stat__icon, "aria-hidden": !0, children: d }),
@@ -3884,7 +3887,7 @@ const Gn = 640, Cu = 768, Wn = 1024, Eu = `(min-width: ${Wn + 1}px)`, ua = `(min
3884
3887
  }
3885
3888
  )
3886
3889
  );
3887
- }, Dh = /* @__PURE__ */ T(/* @__PURE__ */ M(nd, "Stat")), rd = "hanui-hub-JoqOf", od = "hanui-toast-U27Of", id = "hanui-toast__icon-p-rgI", sd = "hanui-toast__text-rG4ji", cd = "hanui-toast__message-s6S2-", ld = "hanui-toast__description-0cYTx", dd = "hanui-toast__action-fOXU5", _d = "hanui-toast__close-QxSNP", Ae = {
3890
+ }, Dh = /* @__PURE__ */ I(/* @__PURE__ */ M(nd, "Stat")), rd = "hanui-hub-JoqOf", od = "hanui-toast-U27Of", id = "hanui-toast__icon-p-rgI", sd = "hanui-toast__text-rG4ji", cd = "hanui-toast__message-s6S2-", ld = "hanui-toast__description-0cYTx", dd = "hanui-toast__action-fOXU5", _d = "hanui-toast__close-QxSNP", Ae = {
3888
3891
  hub: rd,
3889
3892
  toast: od,
3890
3893
  "toast--info": "hanui-toast--info-S1QJr",
@@ -3929,13 +3932,13 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
3929
3932
  nt = [], ma();
3930
3933
  }
3931
3934
  }, pd = ({ toast: e, closeLabel: t, onDismiss: n }) => {
3932
- const r = e.tone ?? "info", o = e.duration ?? hd[r], [i, s] = O(!1), d = R(o), h = R(0);
3933
- return S(() => {
3935
+ const r = e.tone ?? "info", o = e.duration ?? hd[r], [i, s] = O(!1), d = S(o), h = S(0);
3936
+ return R(() => {
3934
3937
  if (o === 0 || i) return;
3935
3938
  h.current = Date.now();
3936
- const l = window.setTimeout(() => n(e.id), d.current);
3939
+ const c = window.setTimeout(() => n(e.id), d.current);
3937
3940
  return () => {
3938
- window.clearTimeout(l), d.current = Math.max(0, d.current - (Date.now() - h.current));
3941
+ window.clearTimeout(c), d.current = Math.max(0, d.current - (Date.now() - h.current));
3939
3942
  };
3940
3943
  }, [o, i, n, e.id]), /* @__PURE__ */ g(
3941
3944
  "div",
@@ -3958,8 +3961,8 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
3958
3961
  type: "button",
3959
3962
  className: Ae.toast__action,
3960
3963
  onClick: () => {
3961
- var l;
3962
- (l = e.action) == null || l.onClick(), n(e.id);
3964
+ var c;
3965
+ (c = e.action) == null || c.onClick(), n(e.id);
3963
3966
  },
3964
3967
  children: e.action.label
3965
3968
  }
@@ -3980,31 +3983,31 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
3980
3983
  );
3981
3984
  }, md = ({ closeLabel: e, className: t }) => {
3982
3985
  const { labels: n } = j(), [r, o] = O([]);
3983
- S(() => (sa.add(o), o(nt), () => {
3986
+ R(() => (sa.add(o), o(nt), () => {
3984
3987
  sa.delete(o);
3985
3988
  }), []);
3986
- const i = H((l) => ca(l), []), s = H(() => {
3987
- const l = r.at(-1);
3988
- l && ca(l.id);
3989
+ const i = H((c) => ca(c), []), s = H(() => {
3990
+ const c = r.at(-1);
3991
+ c && ca(c.id);
3989
3992
  }, [r]);
3990
3993
  pa(r.length > 0, s);
3991
3994
  const [d, h] = O(!1);
3992
- return S(() => h(!0), []), d ? St(
3993
- /* @__PURE__ */ a("div", { className: f(Ae.hub, t), children: r.map((l) => /* @__PURE__ */ a(
3995
+ return R(() => h(!0), []), d ? St(
3996
+ /* @__PURE__ */ a("div", { className: f(Ae.hub, t), children: r.map((c) => /* @__PURE__ */ a(
3994
3997
  pd,
3995
3998
  {
3996
- toast: l,
3999
+ toast: c,
3997
4000
  closeLabel: z("ToastHub.closeLabel", e, n == null ? void 0 : n.close),
3998
4001
  onDismiss: i
3999
4002
  },
4000
- l.id
4003
+ c.id
4001
4004
  )) }),
4002
4005
  document.body
4003
4006
  ) : null;
4004
- }, bd = /* @__PURE__ */ T(/* @__PURE__ */ M(md, "ToastHub")), gd = () => {
4007
+ }, bd = /* @__PURE__ */ I(/* @__PURE__ */ M(md, "ToastHub")), gd = () => {
4005
4008
  const [e, t] = O(!1);
4006
- return S(() => t(!0), []), e ? /* @__PURE__ */ a(bd, {}) : null;
4007
- }, Eh = /* @__PURE__ */ T(
4009
+ return R(() => t(!0), []), e ? /* @__PURE__ */ a(bd, {}) : null;
4010
+ }, Eh = /* @__PURE__ */ I(
4008
4011
  /* @__PURE__ */ M(gd, "ToastPortal")
4009
4012
  ), fd = "hanui-accordion-h9jLC", vd = "hanui-accordion__item--YvzK", yd = "hanui-accordion__title-qZOLY", wd = "hanui-accordion__meta-PSlsO", xd = "hanui-accordion__marker-QcWcI", Nd = "hanui-accordion__summary-QUhWh", kd = "hanui-accordion__panel--3EXE", $d = "hanui-accordion__content-fO64s", Ee = {
4010
4013
  accordion: fd,
@@ -4025,12 +4028,12 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4025
4028
  className: i,
4026
4029
  testId: s
4027
4030
  }) => {
4028
- const d = J(), [h, l] = O(n ?? []), c = r !== void 0, u = c ? r : h, _ = H(
4031
+ const d = J(), [h, c] = O(n ?? []), l = r !== void 0, u = l ? r : h, _ = H(
4029
4032
  (m, w) => {
4030
4033
  const b = w ? t ? [m] : [...u.filter((p) => p !== m), m] : u.filter((p) => p !== m);
4031
- c || l(b), o == null || o(b);
4034
+ l || c(b), o == null || o(b);
4032
4035
  },
4033
- [c, t, o, u]
4036
+ [l, t, o, u]
4034
4037
  );
4035
4038
  return /* @__PURE__ */ a("div", { className: f(Ee.accordion, i), "data-testid": s, children: e.map((m) => {
4036
4039
  const w = u.includes(m.id);
@@ -4068,7 +4071,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4068
4071
  m.id
4069
4072
  );
4070
4073
  }) });
4071
- }, Lh = /* @__PURE__ */ T(/* @__PURE__ */ M(Id, "Accordion")), Td = "hanui-steps-ntge1", Dd = "hanui-steps__item-GrU1x", Cd = "hanui-steps__button-XBsnS", Ed = "hanui-steps__marker-g-GLE", Ld = "hanui-steps__text-Mkpkh", Sd = "hanui-steps__label-NSeFM", Rd = "hanui-steps__description-bQuNT", Ad = "hanui-steps__status-wWJfP", be = {
4074
+ }, Lh = /* @__PURE__ */ I(/* @__PURE__ */ M(Id, "Accordion")), Td = "hanui-steps-ntge1", Dd = "hanui-steps__item-GrU1x", Cd = "hanui-steps__button-XBsnS", Ed = "hanui-steps__marker-g-GLE", Ld = "hanui-steps__text-Mkpkh", Sd = "hanui-steps__label-NSeFM", Rd = "hanui-steps__description-bQuNT", Ad = "hanui-steps__status-wWJfP", be = {
4072
4075
  steps: Td,
4073
4076
  "steps--horizontal": "hanui-steps--horizontal-O-mkx",
4074
4077
  "steps--vertical": "hanui-steps--vertical-agfwo",
@@ -4100,20 +4103,20 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4100
4103
  "aria-label": r,
4101
4104
  "data-testid": s,
4102
4105
  children: e.map((d, h) => {
4103
- const l = Md(h, t), c = !!n && l === "done", u = /* @__PURE__ */ g(fe, { children: [
4104
- /* @__PURE__ */ a("span", { className: be.steps__marker, "aria-hidden": !0, children: l === "done" ? /* @__PURE__ */ a(Yt, {}) : h + 1 }),
4106
+ const c = Md(h, t), l = !!n && c === "done", u = /* @__PURE__ */ g(fe, { children: [
4107
+ /* @__PURE__ */ a("span", { className: be.steps__marker, "aria-hidden": !0, children: c === "done" ? /* @__PURE__ */ a(Yt, {}) : h + 1 }),
4105
4108
  /* @__PURE__ */ g("span", { className: be.steps__text, children: [
4106
4109
  /* @__PURE__ */ a("span", { className: be.steps__label, children: d.label }),
4107
4110
  d.description && /* @__PURE__ */ a("span", { className: be.steps__description, children: d.description })
4108
4111
  ] }),
4109
- /* @__PURE__ */ a("span", { className: be.steps__status, children: Bd[l] })
4112
+ /* @__PURE__ */ a("span", { className: be.steps__status, children: Bd[c] })
4110
4113
  ] });
4111
4114
  return /* @__PURE__ */ a(
4112
4115
  "li",
4113
4116
  {
4114
- className: f(be.steps__item, be[`steps__item--${l}`]),
4115
- "aria-current": l === "current" ? "step" : void 0,
4116
- children: c ? /* @__PURE__ */ a(
4117
+ className: f(be.steps__item, be[`steps__item--${c}`]),
4118
+ "aria-current": c === "current" ? "step" : void 0,
4119
+ children: l ? /* @__PURE__ */ a(
4117
4120
  "button",
4118
4121
  {
4119
4122
  type: "button",
@@ -4127,7 +4130,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4127
4130
  );
4128
4131
  })
4129
4132
  }
4130
- ), Sh = /* @__PURE__ */ T(/* @__PURE__ */ M(Fd, "Steps")), Pd = "hanui-tabs-l4dFE", Od = "hanui-tabs__list-HJvR8", Hd = "hanui-tabs__tab-7gDW7", zd = "hanui-tabs__count-8JX8s", Kd = "hanui-tabs__panel-CPklY", _t = {
4133
+ ), Sh = /* @__PURE__ */ I(/* @__PURE__ */ M(Fd, "Steps")), Pd = "hanui-tabs-l4dFE", Od = "hanui-tabs__list-HJvR8", Hd = "hanui-tabs__tab-7gDW7", zd = "hanui-tabs__count-8JX8s", Kd = "hanui-tabs__panel-CPklY", _t = {
4131
4134
  tabs: Pd,
4132
4135
  tabs__list: Od,
4133
4136
  tabs__tab: Hd,
@@ -4144,31 +4147,35 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4144
4147
  className: s,
4145
4148
  testId: d
4146
4149
  }) => {
4147
- var $;
4148
- const h = J(), [l, c] = O(t ?? (($ = e[0]) == null ? void 0 : $.id)), u = ht(n), _ = u ? n : l, m = e.findIndex((N) => N.id === _), [w, b] = O(m < 0 ? 0 : m), p = R(null), v = e[m] ?? e[0];
4149
- S(() => {
4150
- var N;
4151
- _a((N = p.current) == null ? void 0 : N.querySelector('[aria-selected="true"]'), {
4150
+ var D;
4151
+ const h = J(), [c, l] = O(t ?? ((D = e[0]) == null ? void 0 : D.id)), u = ht(n), _ = u ? n : c, m = e.findIndex((k) => k.id === _), [w, b] = O(m < 0 ? 0 : m), p = S(null), v = e[m] ?? e[0], $ = S(!1);
4152
+ R(() => {
4153
+ var k;
4154
+ if (!$.current) {
4155
+ $.current = !0;
4156
+ return;
4157
+ }
4158
+ _a((k = p.current) == null ? void 0 : k.querySelector('[aria-selected="true"]'), {
4152
4159
  block: "nearest",
4153
4160
  inline: "nearest"
4154
4161
  });
4155
4162
  }, [_]);
4156
- const I = (N) => {
4157
- u || c(N), r == null || r(N);
4158
- }, k = (N) => {
4159
- var L;
4160
- if (i && (N.key === "Enter" || N.key === " ")) {
4161
- N.preventDefault(), I(e[w].id);
4163
+ const N = (k) => {
4164
+ u || l(k), r == null || r(k);
4165
+ }, x = (k) => {
4166
+ var y;
4167
+ if (i && (k.key === "Enter" || k.key === " ")) {
4168
+ k.preventDefault(), N(e[w].id);
4162
4169
  return;
4163
4170
  }
4164
- const D = N.key === "ArrowRight" ? 1 : N.key === "ArrowLeft" ? -1 : 0;
4165
- if (D === 0) return;
4166
- N.preventDefault();
4167
- const E = ((i ? w : m) + D + e.length) % e.length;
4168
- b(E), i || I(e[E].id), (L = document.getElementById(`${h}-tab-${e[E].id}`)) == null || L.focus();
4171
+ const L = k.key === "ArrowRight" ? 1 : k.key === "ArrowLeft" ? -1 : 0;
4172
+ if (L === 0) return;
4173
+ k.preventDefault();
4174
+ const C = ((i ? w : m) + L + e.length) % e.length;
4175
+ b(C), i || N(e[C].id), (y = document.getElementById(`${h}-tab-${e[C].id}`)) == null || y.focus();
4169
4176
  };
4170
4177
  if (e.length === 0) return null;
4171
- const x = ht(v == null ? void 0 : v.content);
4178
+ const T = ht(v == null ? void 0 : v.content);
4172
4179
  return /* @__PURE__ */ g("div", { className: f(_t.tabs, s), "data-testid": d, children: [
4173
4180
  /* @__PURE__ */ a(
4174
4181
  "div",
@@ -4177,32 +4184,32 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4177
4184
  className: _t.tabs__list,
4178
4185
  role: "tablist",
4179
4186
  "aria-label": o,
4180
- onKeyDown: k,
4181
- children: e.map((N) => {
4182
- var E;
4183
- const D = N.id === v.id;
4187
+ onKeyDown: x,
4188
+ children: e.map((k) => {
4189
+ var C;
4190
+ const L = k.id === v.id;
4184
4191
  return /* @__PURE__ */ g(
4185
4192
  "button",
4186
4193
  {
4187
- id: `${h}-tab-${N.id}`,
4194
+ id: `${h}-tab-${k.id}`,
4188
4195
  type: "button",
4189
4196
  role: "tab",
4190
- "aria-selected": D,
4191
- "aria-controls": x ? `${h}-panel-${N.id}` : void 0,
4192
- tabIndex: (i ? ((E = e[w]) == null ? void 0 : E.id) === N.id : D) ? 0 : -1,
4193
- className: f(_t.tabs__tab, D && _t["tabs__tab--active"]),
4194
- onClick: () => I(N.id),
4197
+ "aria-selected": L,
4198
+ "aria-controls": T ? `${h}-panel-${k.id}` : void 0,
4199
+ tabIndex: (i ? ((C = e[w]) == null ? void 0 : C.id) === k.id : L) ? 0 : -1,
4200
+ className: f(_t.tabs__tab, L && _t["tabs__tab--active"]),
4201
+ onClick: () => N(k.id),
4195
4202
  children: [
4196
- N.label,
4197
- ht(N.count) && /* @__PURE__ */ a("span", { className: _t.tabs__count, children: N.count })
4203
+ k.label,
4204
+ ht(k.count) && /* @__PURE__ */ a("span", { className: _t.tabs__count, children: k.count })
4198
4205
  ]
4199
4206
  },
4200
- N.id
4207
+ k.id
4201
4208
  );
4202
4209
  })
4203
4210
  }
4204
4211
  ),
4205
- x && /* @__PURE__ */ a(
4212
+ T && /* @__PURE__ */ a(
4206
4213
  "div",
4207
4214
  {
4208
4215
  id: `${h}-panel-${v.id}`,
@@ -4214,7 +4221,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4214
4221
  }
4215
4222
  )
4216
4223
  ] });
4217
- }, Rh = /* @__PURE__ */ T(Ud), Yd = "hanui-tile-TGur-", qd = "hanui-tile__medallion--Y0pz", jd = "hanui-tile__label-mI1OQ", Gd = "hanui-tile__meta-22qnR", Tt = {
4224
+ }, Rh = /* @__PURE__ */ I(Ud), Yd = "hanui-tile-TGur-", qd = "hanui-tile__medallion--Y0pz", jd = "hanui-tile__label-mI1OQ", Gd = "hanui-tile__meta-22qnR", Tt = {
4218
4225
  tile: Yd,
4219
4226
  tile__medallion: qd,
4220
4227
  tile__label: jd,
@@ -4234,7 +4241,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4234
4241
  r && /* @__PURE__ */ a("span", { className: Tt.tile__meta, children: r })
4235
4242
  ]
4236
4243
  }
4237
- ), Ah = /* @__PURE__ */ T(Wd), Xd = "hanui-timeline-GxubZ", Qd = "hanui-timeline__item-qMpF2", Jd = "hanui-timeline__marker-MDk07", Zd = "hanui-timeline__body-xJi7t", Vd = "hanui-timeline__title-pKxZJ", e_ = "hanui-timeline__time-ITWYy", t_ = "hanui-timeline__description-4vrEy", a_ = "hanui-timeline__srOnly-7K2We", Le = {
4244
+ ), Ah = /* @__PURE__ */ I(Wd), Xd = "hanui-timeline-GxubZ", Qd = "hanui-timeline__item-qMpF2", Jd = "hanui-timeline__marker-MDk07", Zd = "hanui-timeline__body-xJi7t", Vd = "hanui-timeline__title-pKxZJ", e_ = "hanui-timeline__time-ITWYy", t_ = "hanui-timeline__description-4vrEy", a_ = "hanui-timeline__srOnly-7K2We", Le = {
4238
4245
  timeline: Xd,
4239
4246
  timeline__item: Qd,
4240
4247
  timeline__marker: Jd,
@@ -4281,7 +4288,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4281
4288
  },
4282
4289
  o.id
4283
4290
  );
4284
- }) }), Mh = /* @__PURE__ */ T(/* @__PURE__ */ M(o_, "Timeline")), i_ = "hanui-modal-3IDi9", s_ = "hanui-modal__panel--qLSz", c_ = "hanui-modal__header-meWm6", l_ = "hanui-modal__icon-df2dd", d_ = "hanui-modal__heading-PwDS8", __ = "hanui-modal__title-80Sh6", u_ = "hanui-modal__description-fsCHI", h_ = "hanui-modal__close-vFPbw", p_ = "hanui-modal__body-PDF12", m_ = "hanui-modal__footer-CCCkx", ie = {
4291
+ }) }), Mh = /* @__PURE__ */ I(/* @__PURE__ */ M(o_, "Timeline")), i_ = "hanui-modal-3IDi9", s_ = "hanui-modal__panel--qLSz", c_ = "hanui-modal__header-meWm6", l_ = "hanui-modal__icon-df2dd", d_ = "hanui-modal__heading-PwDS8", __ = "hanui-modal__title-80Sh6", u_ = "hanui-modal__description-fsCHI", h_ = "hanui-modal__close-vFPbw", p_ = "hanui-modal__body-PDF12", m_ = "hanui-modal__footer-CCCkx", ie = {
4285
4292
  modal: i_,
4286
4293
  "modal--sm": "hanui-modal--sm-A7WsS",
4287
4294
  "modal--lg": "hanui-modal--lg-z99Em",
@@ -4309,48 +4316,48 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4309
4316
  footer: s,
4310
4317
  icon: d,
4311
4318
  tone: h = "neutral",
4312
- size: l = "md",
4313
- isDismissable: c = !0,
4319
+ size: c = "md",
4320
+ isDismissable: l = !0,
4314
4321
  className: u,
4315
4322
  testId: _
4316
4323
  }) => {
4317
- const { labels: m } = j(), w = R(null), b = R(null), p = J(), v = J();
4318
- S(() => {
4319
- const k = w.current;
4320
- if (!k) return;
4324
+ const { labels: m } = j(), w = S(null), b = S(null), p = J(), v = J();
4325
+ R(() => {
4326
+ const N = w.current;
4327
+ if (!N) return;
4321
4328
  if (!e) {
4322
- k.open && k.close();
4329
+ N.open && N.close();
4323
4330
  return;
4324
4331
  }
4325
4332
  const x = mt();
4326
- k.open || k.showModal(), Wt(k, `.${ie.modal__close}`), ha(k);
4327
- const { token: $, pop: N } = Xt();
4328
- return b.current = $, () => {
4329
- N(), b.current = null, x();
4333
+ N.open || N.showModal(), Wt(N, `.${ie.modal__close}`), ha(N);
4334
+ const { token: T, pop: D } = Xt();
4335
+ return b.current = T, () => {
4336
+ D(), b.current = null, x();
4330
4337
  };
4331
- }, [e]), Gt(e), S(() => {
4332
- const k = w.current;
4333
- if (!k) return;
4334
- const x = ($) => {
4335
- $.preventDefault(), c && (b.current && !Qt(b.current) || t());
4338
+ }, [e]), Gt(e), R(() => {
4339
+ const N = w.current;
4340
+ if (!N) return;
4341
+ const x = (T) => {
4342
+ T.preventDefault(), l && (b.current && !Qt(b.current) || t());
4336
4343
  };
4337
- return k.addEventListener("cancel", x), () => k.removeEventListener("cancel", x);
4338
- }, [t, c]);
4339
- const I = H(
4340
- (k) => {
4341
- c && k.target === w.current && t();
4344
+ return N.addEventListener("cancel", x), () => N.removeEventListener("cancel", x);
4345
+ }, [t, l]);
4346
+ const $ = H(
4347
+ (N) => {
4348
+ l && N.target === w.current && t();
4342
4349
  },
4343
- [c, t]
4350
+ [l, t]
4344
4351
  );
4345
4352
  return /* @__PURE__ */ a(
4346
4353
  "dialog",
4347
4354
  {
4348
4355
  ref: w,
4349
- className: f(ie.modal, ie[`modal--${l}`], u),
4356
+ className: f(ie.modal, ie[`modal--${c}`], u),
4350
4357
  "aria-labelledby": p,
4351
4358
  "aria-describedby": i ? v : void 0,
4352
4359
  "data-testid": _,
4353
- onClick: I,
4360
+ onClick: $,
4354
4361
  children: /* @__PURE__ */ g("div", { className: ie.modal__panel, children: [
4355
4362
  /* @__PURE__ */ g("header", { className: ie.modal__header, children: [
4356
4363
  d && /* @__PURE__ */ a("span", { className: f(ie.modal__icon, ie[`modal__icon--${h}`]), children: d }),
@@ -4358,7 +4365,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4358
4365
  /* @__PURE__ */ a("h2", { id: p, className: ie.modal__title, children: n }),
4359
4366
  i && /* @__PURE__ */ a("p", { id: v, className: ie.modal__description, children: i })
4360
4367
  ] }),
4361
- c && /* @__PURE__ */ a(
4368
+ l && /* @__PURE__ */ a(
4362
4369
  $e,
4363
4370
  {
4364
4371
  icon: /* @__PURE__ */ a(Ue, { "aria-hidden": !0 }),
@@ -4375,7 +4382,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4375
4382
  ] })
4376
4383
  }
4377
4384
  );
4378
- }, sn = /* @__PURE__ */ T(b_), g_ = "hanui-palette-ag-P9", f_ = "hanui-palette__search-G3aYv", v_ = "hanui-palette__searchIcon-2UYj-", y_ = "hanui-palette__input-vvLvt", w_ = "hanui-palette__list--KWiH", x_ = "hanui-palette__group-KPj5Q", N_ = "hanui-palette__item-UZzkp", k_ = "hanui-palette__icon-Fg0Lt", $_ = "hanui-palette__text-flfN9", I_ = "hanui-palette__label-8-UHe", T_ = "hanui-palette__description-eRlk9", D_ = "hanui-palette__shortcut-DwYKX", C_ = "hanui-palette__empty-vg-I3", ae = {
4385
+ }, sn = /* @__PURE__ */ I(b_), g_ = "hanui-palette-ag-P9", f_ = "hanui-palette__search-G3aYv", v_ = "hanui-palette__searchIcon-2UYj-", y_ = "hanui-palette__input-vvLvt", w_ = "hanui-palette__list--KWiH", x_ = "hanui-palette__group-KPj5Q", N_ = "hanui-palette__item-UZzkp", k_ = "hanui-palette__icon-Fg0Lt", $_ = "hanui-palette__text-flfN9", I_ = "hanui-palette__label-8-UHe", T_ = "hanui-palette__description-eRlk9", D_ = "hanui-palette__shortcut-DwYKX", C_ = "hanui-palette__empty-vg-I3", ae = {
4379
4386
  palette: g_,
4380
4387
  palette__search: f_,
4381
4388
  palette__searchIcon: v_,
@@ -4400,61 +4407,61 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4400
4407
  className: s,
4401
4408
  testId: d
4402
4409
  }) => {
4403
- const h = J(), l = `${h}-listbox`, c = R(null), u = R(null), _ = R(null), [m, w] = O(""), [b, p] = O(0), v = Et(() => {
4410
+ const h = J(), c = `${h}-listbox`, l = S(null), u = S(null), _ = S(null), [m, w] = O(""), [b, p] = O(0), v = Et(() => {
4404
4411
  if (m.trim() === "") return n;
4405
4412
  const x = m.trim();
4406
4413
  return n.filter(
4407
- ($) => zt($.label, x) || ($.description ? zt($.description, x) : !1)
4414
+ (T) => zt(T.label, x) || (T.description ? zt(T.description, x) : !1)
4408
4415
  );
4409
4416
  }, [n, m]);
4410
- Gt(e), S(() => {
4411
- var E;
4412
- const x = c.current;
4417
+ Gt(e), R(() => {
4418
+ var L;
4419
+ const x = l.current;
4413
4420
  if (!x) return;
4414
4421
  if (!e) {
4415
4422
  x.open && x.close();
4416
4423
  return;
4417
4424
  }
4418
- const $ = mt();
4419
- x.open || x.showModal(), (E = u.current) == null || E.focus({ preventScroll: !0 }), w(""), p(0);
4420
- const { token: N, pop: D } = Xt();
4421
- return _.current = N, () => {
4422
- D(), _.current = null, $();
4425
+ const T = mt();
4426
+ x.open || x.showModal(), (L = u.current) == null || L.focus({ preventScroll: !0 }), w(""), p(0);
4427
+ const { token: D, pop: k } = Xt();
4428
+ return _.current = D, () => {
4429
+ k(), _.current = null, T();
4423
4430
  };
4424
- }, [e]), S(() => {
4425
- const x = c.current;
4431
+ }, [e]), R(() => {
4432
+ const x = l.current;
4426
4433
  if (!x) return;
4427
- const $ = (N) => {
4428
- N.preventDefault(), !(_.current && !Qt(_.current)) && t();
4434
+ const T = (D) => {
4435
+ D.preventDefault(), !(_.current && !Qt(_.current)) && t();
4429
4436
  };
4430
- return x.addEventListener("cancel", $), () => x.removeEventListener("cancel", $);
4431
- }, [t]), S(() => {
4437
+ return x.addEventListener("cancel", T), () => x.removeEventListener("cancel", T);
4438
+ }, [t]), R(() => {
4432
4439
  var x;
4433
- _a((x = c.current) == null ? void 0 : x.querySelector(`[data-index="${b}"]`), {
4440
+ _a((x = l.current) == null ? void 0 : x.querySelector(`[data-index="${b}"]`), {
4434
4441
  block: "nearest"
4435
4442
  });
4436
4443
  }, [b]);
4437
- const I = (x) => {
4444
+ const $ = (x) => {
4438
4445
  x.onSelect(), t();
4439
- }, k = (x) => {
4440
- const $ = v.length - 1;
4446
+ }, N = (x) => {
4447
+ const T = v.length - 1;
4441
4448
  switch (x.key) {
4442
4449
  case "ArrowDown":
4443
- x.preventDefault(), p((N) => N >= $ ? 0 : N + 1);
4450
+ x.preventDefault(), p((D) => D >= T ? 0 : D + 1);
4444
4451
  break;
4445
4452
  case "ArrowUp":
4446
- x.preventDefault(), p((N) => N <= 0 ? $ : N - 1);
4453
+ x.preventDefault(), p((D) => D <= 0 ? T : D - 1);
4447
4454
  break;
4448
4455
  case "Home":
4449
4456
  x.preventDefault(), p(0);
4450
4457
  break;
4451
4458
  case "End":
4452
- x.preventDefault(), p($);
4459
+ x.preventDefault(), p(T);
4453
4460
  break;
4454
4461
  case "Enter": {
4455
4462
  x.preventDefault();
4456
- const N = v[b];
4457
- N && I(N);
4463
+ const D = v[b];
4464
+ D && $(D);
4458
4465
  break;
4459
4466
  }
4460
4467
  }
@@ -4462,11 +4469,11 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4462
4469
  return /* @__PURE__ */ g(
4463
4470
  "dialog",
4464
4471
  {
4465
- ref: c,
4472
+ ref: l,
4466
4473
  className: f(ae.palette, s),
4467
4474
  "aria-label": r,
4468
4475
  "data-testid": d,
4469
- onClick: (x) => x.target === c.current && t(),
4476
+ onClick: (x) => x.target === l.current && t(),
4470
4477
  children: [
4471
4478
  /* @__PURE__ */ g("div", { className: ae.palette__search, children: [
4472
4479
  /* @__PURE__ */ a(Ha, { "aria-hidden": !0, className: ae.palette__searchIcon }),
@@ -4483,36 +4490,36 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4483
4490
  autoComplete: "off",
4484
4491
  "aria-autocomplete": "list",
4485
4492
  "aria-expanded": !0,
4486
- "aria-controls": l,
4493
+ "aria-controls": c,
4487
4494
  "aria-activedescendant": v[b] ? `${h}-option-${b}` : void 0,
4488
4495
  onChange: (x) => {
4489
4496
  w(x.target.value), p(0);
4490
4497
  },
4491
- onKeyDown: k
4498
+ onKeyDown: N
4492
4499
  }
4493
4500
  )
4494
4501
  ] }),
4495
- /* @__PURE__ */ g("ul", { id: l, role: "listbox", "aria-label": r, className: ae.palette__list, children: [
4496
- v.map((x, $) => {
4497
- var D;
4498
- const N = x.group !== void 0 && x.group !== ((D = v[$ - 1]) == null ? void 0 : D.group);
4502
+ /* @__PURE__ */ g("ul", { id: c, role: "listbox", "aria-label": r, className: ae.palette__list, children: [
4503
+ v.map((x, T) => {
4504
+ var k;
4505
+ const D = x.group !== void 0 && x.group !== ((k = v[T - 1]) == null ? void 0 : k.group);
4499
4506
  return /* @__PURE__ */ g("li", { children: [
4500
- N && /* `aria-hidden`: baslik bir SECENEK degil; listbox'in cocugu
4507
+ D && /* `aria-hidden`: baslik bir SECENEK degil; listbox'in cocugu
4501
4508
  olarak okunsaydi ekran okuyucu sayimi bozuluyordu. */
4502
4509
  /* @__PURE__ */ a("span", { className: ae.palette__group, "aria-hidden": !0, children: x.group }),
4503
4510
  /* @__PURE__ */ g(
4504
4511
  "div",
4505
4512
  {
4506
- id: `${h}-option-${$}`,
4513
+ id: `${h}-option-${T}`,
4507
4514
  role: "option",
4508
- "data-index": $,
4509
- "aria-selected": $ === b,
4515
+ "data-index": T,
4516
+ "aria-selected": T === b,
4510
4517
  className: f(
4511
4518
  ae.palette__item,
4512
- $ === b && ae["palette__item--active"]
4519
+ T === b && ae["palette__item--active"]
4513
4520
  ),
4514
- onMouseEnter: () => p($),
4515
- onClick: () => I(x),
4521
+ onMouseEnter: () => p(T),
4522
+ onClick: () => $(x),
4516
4523
  children: [
4517
4524
  x.icon && /* @__PURE__ */ a("span", { className: ae.palette__icon, "aria-hidden": !0, children: x.icon }),
4518
4525
  /* @__PURE__ */ g("span", { className: ae.palette__text, children: [
@@ -4530,7 +4537,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4530
4537
  ]
4531
4538
  }
4532
4539
  );
4533
- }, Bh = /* @__PURE__ */ T(
4540
+ }, Bh = /* @__PURE__ */ I(
4534
4541
  /* @__PURE__ */ M(E_, "CommandPalette")
4535
4542
  ), L_ = {
4536
4543
  destructive: /* @__PURE__ */ a(En, { "aria-hidden": !0 }),
@@ -4554,10 +4561,10 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4554
4561
  cancelLabel: s,
4555
4562
  closeLabel: d,
4556
4563
  variant: h,
4557
- kind: l,
4558
- children: c
4564
+ kind: c,
4565
+ children: l
4559
4566
  }) => {
4560
- const { labels: u } = j(), [_, m] = O(!1), w = h ?? l ?? "neutral", b = async () => {
4567
+ const { labels: u } = j(), [_, m] = O(!1), w = h ?? c ?? "neutral", b = async () => {
4561
4568
  m(!0);
4562
4569
  try {
4563
4570
  await n();
@@ -4599,10 +4606,10 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4599
4606
  }
4600
4607
  )
4601
4608
  ] }),
4602
- children: c
4609
+ children: l
4603
4610
  }
4604
4611
  );
4605
- }, Fh = /* @__PURE__ */ T(A_), M_ = "hanui-drawer-fgfi1", B_ = "hanui-drawer__header-BDcRe", F_ = "hanui-drawer__title-9M0e8", P_ = "hanui-drawer__close-Z30oW", O_ = "hanui-drawer__toolbar-vcsYi", H_ = "hanui-drawer__body-x12SX", z_ = "hanui-drawer__footer-PajTg", Ne = {
4612
+ }, Fh = /* @__PURE__ */ I(A_), M_ = "hanui-drawer-fgfi1", B_ = "hanui-drawer__header-BDcRe", F_ = "hanui-drawer__title-9M0e8", P_ = "hanui-drawer__close-Z30oW", O_ = "hanui-drawer__toolbar-vcsYi", H_ = "hanui-drawer__body-x12SX", z_ = "hanui-drawer__footer-PajTg", Ne = {
4606
4613
  drawer: M_,
4607
4614
  "drawer--sm": "hanui-drawer--sm-ywgof",
4608
4615
  "drawer--md": "hanui-drawer--md-mN8Kg",
@@ -4625,11 +4632,11 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4625
4632
  size: s = "md",
4626
4633
  footer: d,
4627
4634
  toolbar: h,
4628
- className: l,
4629
- testId: c
4635
+ className: c,
4636
+ testId: l
4630
4637
  }) => {
4631
- const { labels: u } = j(), _ = R(null), m = R(null), w = J();
4632
- S(() => {
4638
+ const { labels: u } = j(), _ = S(null), m = S(null), w = J();
4639
+ R(() => {
4633
4640
  const p = _.current;
4634
4641
  if (!p) return;
4635
4642
  if (!e) {
@@ -4638,15 +4645,15 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4638
4645
  }
4639
4646
  const v = mt();
4640
4647
  p.open || p.showModal(), Wt(p, `.${Ne.drawer__close}`), ha(p);
4641
- const { token: I, pop: k } = Xt();
4642
- return m.current = I, () => {
4643
- k(), m.current = null, v();
4648
+ const { token: $, pop: N } = Xt();
4649
+ return m.current = $, () => {
4650
+ N(), m.current = null, v();
4644
4651
  };
4645
- }, [e]), Gt(e), S(() => {
4652
+ }, [e]), Gt(e), R(() => {
4646
4653
  const p = _.current;
4647
4654
  if (!p) return;
4648
- const v = (I) => {
4649
- I.preventDefault(), !(m.current && !Qt(m.current)) && t();
4655
+ const v = ($) => {
4656
+ $.preventDefault(), !(m.current && !Qt(m.current)) && t();
4650
4657
  };
4651
4658
  return p.addEventListener("cancel", v), () => p.removeEventListener("cancel", v);
4652
4659
  }, [t]);
@@ -4660,9 +4667,9 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4660
4667
  "dialog",
4661
4668
  {
4662
4669
  ref: _,
4663
- className: f(Ne.drawer, Ne[`drawer--${i}`], Ne[`drawer--${s}`], l),
4670
+ className: f(Ne.drawer, Ne[`drawer--${i}`], Ne[`drawer--${s}`], c),
4664
4671
  "aria-labelledby": w,
4665
- "data-testid": c,
4672
+ "data-testid": l,
4666
4673
  onClick: b,
4667
4674
  children: [
4668
4675
  /* @__PURE__ */ g("header", { className: Ne.drawer__header, children: [
@@ -4685,7 +4692,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4685
4692
  ]
4686
4693
  }
4687
4694
  );
4688
- }, Ph = /* @__PURE__ */ T(/* @__PURE__ */ M(K_, "Drawer")), U_ = "hanui-form-zpZn4", Y_ = {
4695
+ }, Ph = /* @__PURE__ */ I(/* @__PURE__ */ M(K_, "Drawer")), U_ = "hanui-form-zpZn4", Y_ = {
4689
4696
  form: U_
4690
4697
  }, q_ = ({
4691
4698
  isOpen: e,
@@ -4697,8 +4704,8 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4697
4704
  cancelLabel: s,
4698
4705
  closeLabel: d,
4699
4706
  description: h,
4700
- hint: l,
4701
- placeholder: c,
4707
+ hint: c,
4708
+ placeholder: l,
4702
4709
  defaultValue: u = "",
4703
4710
  isRequired: _,
4704
4711
  requiredLabel: m,
@@ -4706,17 +4713,17 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4706
4713
  maxLength: b,
4707
4714
  rows: p = 4
4708
4715
  }) => {
4709
- const { labels: v } = j(), I = J(), [k, x] = O(u), [$, N] = O(!1), D = R(!1);
4710
- S(() => {
4711
- e && !D.current && x(u), D.current = e;
4716
+ const { labels: v } = j(), $ = J(), [N, x] = O(u), [T, D] = O(!1), k = S(!1);
4717
+ R(() => {
4718
+ e && !k.current && x(u), k.current = e;
4712
4719
  }, [e, u]);
4713
- const E = k.trim(), L = !!_ && E === "", y = (Y) => w === "multiline" ? /* @__PURE__ */ a(
4720
+ const L = N.trim(), C = !!_ && L === "", y = (Y) => w === "multiline" ? /* @__PURE__ */ a(
4714
4721
  Pi,
4715
4722
  {
4716
4723
  ...Y,
4717
- value: k,
4724
+ value: N,
4718
4725
  onChange: (Q) => x(Q.target.value),
4719
- placeholder: c,
4726
+ placeholder: l,
4720
4727
  maxLength: b,
4721
4728
  rows: p
4722
4729
  }
@@ -4725,19 +4732,19 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4725
4732
  {
4726
4733
  ...Y,
4727
4734
  type: w === "number" ? "number" : "text",
4728
- value: k,
4735
+ value: N,
4729
4736
  onChange: (Q) => x(Q.target.value),
4730
- placeholder: c,
4737
+ placeholder: l,
4731
4738
  maxLength: b
4732
4739
  }
4733
4740
  ), B = async () => {
4734
- if (!(L || $)) {
4735
- N(!0);
4741
+ if (!(C || T)) {
4742
+ D(!0);
4736
4743
  try {
4737
- await n(E), t();
4744
+ await n(L), t();
4738
4745
  } catch {
4739
4746
  } finally {
4740
- N(!1);
4747
+ D(!1);
4741
4748
  }
4742
4749
  }
4743
4750
  };
@@ -4750,7 +4757,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4750
4757
  closeLabel: d ?? (v == null ? void 0 : v.close),
4751
4758
  description: h,
4752
4759
  size: "sm",
4753
- isDismissable: !$,
4760
+ isDismissable: !T,
4754
4761
  footer: /* @__PURE__ */ g(fe, { children: [
4755
4762
  /* @__PURE__ */ a(
4756
4763
  Lt,
@@ -4758,7 +4765,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4758
4765
  variant: Me.SECONDARY,
4759
4766
  size: at.MEDIUM,
4760
4767
  onClick: t,
4761
- disabled: $,
4768
+ disabled: T,
4762
4769
  children: z("PromptDialog.cancelLabel", s, v == null ? void 0 : v.cancel)
4763
4770
  }
4764
4771
  ),
@@ -4766,11 +4773,11 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4766
4773
  Lt,
4767
4774
  {
4768
4775
  type: "submit",
4769
- form: I,
4776
+ form: $,
4770
4777
  variant: Me.PRIMARY,
4771
4778
  size: at.MEDIUM,
4772
- disabled: L,
4773
- isLoading: $,
4779
+ disabled: C,
4780
+ isLoading: T,
4774
4781
  children: z("PromptDialog.submitLabel", i, v == null ? void 0 : v.submit)
4775
4782
  }
4776
4783
  )
@@ -4778,17 +4785,17 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4778
4785
  children: /* @__PURE__ */ a(
4779
4786
  "form",
4780
4787
  {
4781
- id: I,
4788
+ id: $,
4782
4789
  className: Y_.form,
4783
4790
  onSubmit: (Y) => {
4784
4791
  Y.preventDefault(), B();
4785
4792
  },
4786
- children: /* @__PURE__ */ a(es, { label: o, hint: l, isRequired: _, requiredLabel: m, children: y })
4793
+ children: /* @__PURE__ */ a(es, { label: o, hint: c, isRequired: _, requiredLabel: m, children: y })
4787
4794
  }
4788
4795
  )
4789
4796
  }
4790
4797
  );
4791
- }, Oh = /* @__PURE__ */ T(q_), j_ = "hanui-scroller-EtDmS", G_ = "hanui-table-uCv4q", ut = {
4798
+ }, Oh = /* @__PURE__ */ I(q_), j_ = "hanui-scroller-EtDmS", G_ = "hanui-table-uCv4q", ut = {
4792
4799
  scroller: j_,
4793
4800
  "scroller--frame": "hanui-scroller--frame-84zz6",
4794
4801
  table: G_,
@@ -4798,7 +4805,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4798
4805
  "table--sticky-head": "hanui-table--sticky-head-FO2L4",
4799
4806
  "table--row-hover": "hanui-table--row-hover--MAoe"
4800
4807
  }, Hh = /* @__PURE__ */ M(
4801
- /* @__PURE__ */ T(({ hasFrame: e = !0, className: t, children: n, ...r }) => /* @__PURE__ */ a(
4808
+ /* @__PURE__ */ I(({ hasFrame: e = !0, className: t, children: n, ...r }) => /* @__PURE__ */ a(
4802
4809
  "div",
4803
4810
  {
4804
4811
  className: f(ut.scroller, e && ut["scroller--frame"], t),
@@ -4827,7 +4834,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4827
4834
  ...i,
4828
4835
  children: o
4829
4836
  }
4830
- ), zh = /* @__PURE__ */ T(W_), X_ = "hanui-wrapper-KXCZg", Q_ = "hanui-table-LF5Ow", J_ = "hanui-state-YPPb0", Z_ = "hanui-state__message-wwbIW", V_ = "hanui-srOnly-Oia8c", eu = "hanui-sort-3Q6Fx", tu = "hanui-sort__arrow-MITWb", au = "hanui-sticky-KDEvQ", nu = "hanui-bulkBar-62qk0", ne = {
4837
+ ), zh = /* @__PURE__ */ I(W_), X_ = "hanui-wrapper-KXCZg", Q_ = "hanui-table-LF5Ow", J_ = "hanui-state-YPPb0", Z_ = "hanui-state__message-wwbIW", V_ = "hanui-srOnly-Oia8c", eu = "hanui-sort-3Q6Fx", tu = "hanui-sort__arrow-MITWb", au = "hanui-sticky-KDEvQ", nu = "hanui-bulkBar-62qk0", ne = {
4831
4838
  wrapper: X_,
4832
4839
  "wrapper--capped": "hanui-wrapper--capped-M2QUJ",
4833
4840
  table: Q_,
@@ -4852,8 +4859,8 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4852
4859
  hasViewportCap: s,
4853
4860
  onSort: d,
4854
4861
  bulkBar: h,
4855
- className: l,
4856
- testId: c
4862
+ className: c,
4863
+ testId: l
4857
4864
  }) => {
4858
4865
  var w, b;
4859
4866
  const { labels: u } = j(), _ = fn.count(t), m = (p, v) => /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
@@ -4867,13 +4874,13 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4867
4874
  return /* @__PURE__ */ g(
4868
4875
  "div",
4869
4876
  {
4870
- className: f(ne.wrapper, s && ne["wrapper--capped"], l),
4871
- "data-testid": c,
4877
+ className: f(ne.wrapper, s && ne["wrapper--capped"], c),
4878
+ "data-testid": l,
4872
4879
  children: [
4873
4880
  h && /* @__PURE__ */ a("div", { className: ne.bulkBar, children: h }),
4874
4881
  /* @__PURE__ */ g("table", { className: ne.table, children: [
4875
4882
  /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ a("tr", { children: e.map((p) => {
4876
- const v = !!(p.isSortable && d), I = p.ariaSort === "ascending" ? "descending" : "ascending";
4883
+ const v = !!(p.isSortable && d), $ = p.ariaSort === "ascending" ? "descending" : "ascending";
4877
4884
  return /* @__PURE__ */ a(
4878
4885
  "th",
4879
4886
  {
@@ -4892,7 +4899,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4892
4899
  {
4893
4900
  type: "button",
4894
4901
  className: ne.sort,
4895
- onClick: () => d == null ? void 0 : d(p.key, I),
4902
+ onClick: () => d == null ? void 0 : d(p.key, $),
4896
4903
  children: [
4897
4904
  p.label,
4898
4905
  p.srLabel && /* @__PURE__ */ a("span", { className: ne.srOnly, children: p.srLabel }),
@@ -4938,9 +4945,9 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4938
4945
  }
4939
4946
  );
4940
4947
  }, Kh = /* @__PURE__ */ M(
4941
- /* @__PURE__ */ T(({ isWarning: e, className: t, children: n, ...r }) => /* @__PURE__ */ a("tr", { className: f(e && ne["row--warning"], t), ...r, children: n })),
4948
+ /* @__PURE__ */ I(({ isWarning: e, className: t, children: n, ...r }) => /* @__PURE__ */ a("tr", { className: f(e && ne["row--warning"], t), ...r, children: n })),
4942
4949
  "DataTableRow"
4943
- ), Uh = /* @__PURE__ */ T(ru), ou = "hanui-bar-b4PP4", iu = "hanui-bar__hiddenSubmit-jeCyX", su = "hanui-bar__actions-rG69L", cu = "hanui-field-f-rvu", Ct = {
4950
+ ), Uh = /* @__PURE__ */ I(ru), ou = "hanui-bar-b4PP4", iu = "hanui-bar__hiddenSubmit-jeCyX", su = "hanui-bar__actions-rG69L", cu = "hanui-field-f-rvu", Ct = {
4944
4951
  bar: ou,
4945
4952
  bar__hiddenSubmit: iu,
4946
4953
  bar__actions: su,
@@ -4965,9 +4972,9 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4965
4972
  }
4966
4973
  );
4967
4974
  }, Yh = /* @__PURE__ */ M(
4968
- /* @__PURE__ */ T(({ children: e, isWide: t, className: n }) => /* @__PURE__ */ a("div", { className: f(Ct.field, t && Ct["field--wide"], n), children: e })),
4975
+ /* @__PURE__ */ I(({ children: e, isWide: t, className: n }) => /* @__PURE__ */ a("div", { className: f(Ct.field, t && Ct["field--wide"], n), children: e })),
4969
4976
  "FilterBarField"
4970
- ), qh = /* @__PURE__ */ T(lu), du = "hanui-pagination-K-L20", _u = "hanui-pagination__list--9HqC", uu = "hanui-pagination__arrow-XIgoX", hu = "hanui-pagination__page-TpoJM", pu = "hanui-pagination__gap-qoDyI", Se = {
4977
+ ), qh = /* @__PURE__ */ I(lu), du = "hanui-pagination-K-L20", _u = "hanui-pagination__list--9HqC", uu = "hanui-pagination__arrow-XIgoX", hu = "hanui-pagination__page-TpoJM", pu = "hanui-pagination__gap-qoDyI", Se = {
4971
4978
  pagination: du,
4972
4979
  pagination__list: _u,
4973
4980
  pagination__arrow: uu,
@@ -4992,25 +4999,25 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
4992
4999
  onPageChange: s,
4993
5000
  linkProps: d,
4994
5001
  formatAnnouncement: h,
4995
- className: l,
4996
- testId: c
5002
+ className: c,
5003
+ testId: l
4997
5004
  }) => {
4998
- var p, v, I;
4999
- const { labels: u } = j(), _ = da(), m = R(e);
5000
- S(() => {
5005
+ var p, v, $;
5006
+ const { labels: u } = j(), _ = da(), m = S(e);
5007
+ R(() => {
5001
5008
  m.current !== e && (m.current = e, h && _(h(e, t)));
5002
5009
  }, [e, t, h, _]);
5003
5010
  const w = Et(() => mu(e, t), [e, t]);
5004
5011
  if (t <= 1) return null;
5005
- const b = (k) => {
5006
- s && s(k);
5012
+ const b = (N) => {
5013
+ s && s(N);
5007
5014
  };
5008
5015
  return /* @__PURE__ */ g(
5009
5016
  "nav",
5010
5017
  {
5011
- className: f(Se.pagination, l),
5018
+ className: f(Se.pagination, c),
5012
5019
  "aria-label": z("Pagination.label", n, (p = u == null ? void 0 : u.pagination) == null ? void 0 : p.label),
5013
- "data-testid": c,
5020
+ "data-testid": l,
5014
5021
  children: [
5015
5022
  /* @__PURE__ */ a(
5016
5023
  $e,
@@ -5028,17 +5035,17 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
5028
5035
  }
5029
5036
  ),
5030
5037
  /* @__PURE__ */ a("ul", { className: Se.pagination__list, children: w.map(
5031
- (k, x) => k === "gap" ? /* @__PURE__ */ a("li", { className: Se.pagination__gap, "aria-hidden": !0, children: "…" }, `gap-${x}`) : /* @__PURE__ */ a("li", { children: i ? /* @__PURE__ */ a(
5038
+ (N, x) => N === "gap" ? /* @__PURE__ */ a("li", { className: Se.pagination__gap, "aria-hidden": !0, children: "…" }, `gap-${x}`) : /* @__PURE__ */ a("li", { children: i ? /* @__PURE__ */ a(
5032
5039
  Te,
5033
5040
  {
5034
- href: i(k),
5041
+ href: i(N),
5035
5042
  className: f(
5036
5043
  Se.pagination__page,
5037
- k === e && Se["pagination__page--active"]
5044
+ N === e && Se["pagination__page--active"]
5038
5045
  ),
5039
- "aria-current": k === e ? "page" : void 0,
5046
+ "aria-current": N === e ? "page" : void 0,
5040
5047
  ...d,
5041
- children: k
5048
+ children: N
5042
5049
  }
5043
5050
  ) : /* @__PURE__ */ a(
5044
5051
  Lt,
@@ -5047,20 +5054,20 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
5047
5054
  size: at.SMALL,
5048
5055
  className: f(
5049
5056
  Se.pagination__page,
5050
- k === e && Se["pagination__page--active"]
5057
+ N === e && Se["pagination__page--active"]
5051
5058
  ),
5052
- "aria-current": k === e ? "page" : void 0,
5053
- onClick: () => b(k),
5054
- children: k
5059
+ "aria-current": N === e ? "page" : void 0,
5060
+ onClick: () => b(N),
5061
+ children: N
5055
5062
  }
5056
- ) }, k)
5063
+ ) }, N)
5057
5064
  ) }),
5058
5065
  /* @__PURE__ */ a(
5059
5066
  $e,
5060
5067
  {
5061
5068
  className: Se.pagination__arrow,
5062
5069
  icon: /* @__PURE__ */ a(qt, { "aria-hidden": !0 }),
5063
- label: z("Pagination.nextLabel", o, (I = u == null ? void 0 : u.pagination) == null ? void 0 : I.next),
5070
+ label: z("Pagination.nextLabel", o, ($ = u == null ? void 0 : u.pagination) == null ? void 0 : $.next),
5064
5071
  variant: "outline",
5065
5072
  disabled: e >= t,
5066
5073
  onClick: () => b(e + 1)
@@ -5069,7 +5076,7 @@ const ma = () => sa.forEach((e) => e(nt)), ca = (e) => {
5069
5076
  ]
5070
5077
  }
5071
5078
  );
5072
- }, jh = /* @__PURE__ */ T(bu);
5079
+ }, jh = /* @__PURE__ */ I(bu);
5073
5080
  export {
5074
5081
  ua as ABOVE_MOBILE_MEDIA_QUERY,
5075
5082
  Eu as ABOVE_TABLET_MEDIA_QUERY,