@udixio/ui-react 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,23 +1,12 @@
1
1
  import { jsx as i, jsxs as P, Fragment as te } from "react/jsx-runtime";
2
+ import { clsx as ie } from "clsx";
2
3
  import { extendTailwindMerge as xe } from "tailwind-merge";
3
- import W, { useState as S, useEffect as $, useRef as O, useLayoutEffect as ie, isValidElement as we, cloneElement as ve, useMemo as be } from "react";
4
- import { motion as U, AnimatePresence as z, useScroll as Ne, useMotionValueEvent as oe, motionValue as ue, useTransform as re } from "motion/react";
4
+ import $, { useState as S, useEffect as D, useRef as X, useLayoutEffect as ue, isValidElement as ge, cloneElement as we, useMemo as ve } from "react";
5
+ import { motion as U, AnimatePresence as z, useScroll as be, useMotionValueEvent as oe, motionValue as fe, useTransform as re } from "motion/react";
6
+ import { throttle as Ne } from "throttle-debounce";
5
7
  import { createPortal as Le } from "react-dom";
6
8
  import Ee from "react-textarea-autosize";
7
- function fe(e) {
8
- var t, r, n = "";
9
- if (typeof e == "string" || typeof e == "number") n += e;
10
- else if (typeof e == "object") if (Array.isArray(e)) {
11
- var l = e.length;
12
- for (t = 0; t < l; t++) e[t] && (r = fe(e[t])) && (n && (n += " "), n += r);
13
- } else for (r in e) e[r] && (n && (n += " "), n += r);
14
- return n;
15
- }
16
- function de() {
17
- for (var e, t, r = 0, n = "", l = arguments.length; r < l; r++) (e = arguments[r]) && (t = fe(e)) && (n && (n += " "), n += t);
18
- return n;
19
- }
20
- const me = xe({
9
+ const de = xe({
21
10
  override: {
22
11
  classGroups: {
23
12
  "text-color": [
@@ -43,41 +32,41 @@ const me = xe({
43
32
  font: ["font"]
44
33
  }
45
34
  }
46
- }), f = (...e) => me(de(e)), Ie = (...e) => me(de(e));
35
+ }), f = (...e) => de(ie(e)), Ie = (...e) => de(ie(e));
47
36
  function ke(e) {
48
37
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
49
38
  }
50
- const Me = (e) => {
39
+ const Re = (e) => {
51
40
  const t = {};
52
- e.classNameList.forEach((n) => {
41
+ e.classNameList.forEach((r) => {
53
42
  var l;
54
- if (n)
55
- if (typeof n == "string")
56
- (t[l = e.default] ?? (t[l] = [])).push(n);
43
+ if (r)
44
+ if (typeof r == "string")
45
+ (t[l = e.default] ?? (t[l] = [])).push(r);
57
46
  else {
58
- const c = n(e.states);
47
+ const c = r(e.states);
59
48
  Object.entries(c).map((o) => {
60
49
  const [s, d] = o;
61
50
  (t[s] ?? (t[s] = [])).push(d);
62
51
  });
63
52
  }
64
53
  });
65
- const r = t;
66
- return Object.entries(t).map((n) => {
67
- let [l, c] = n;
68
- c = c.reverse(), l == e.default && c.unshift("relative"), c.unshift(ke(l)), r[l] = Ie(...c);
69
- }), r;
70
- }, H = (e, t) => (r) => Me({
71
- classNameList: [r.className, t],
54
+ const n = t;
55
+ return Object.entries(t).map((r) => {
56
+ let [l, c] = r;
57
+ c = c.reverse(), l == e.default && c.unshift("relative"), c.unshift(ke(l)), n[l] = Ie(...c);
58
+ }), n;
59
+ }, H = (e, t) => (n) => Re({
60
+ classNameList: [n.className, t],
72
61
  default: e,
73
- states: r
74
- }), Re = H(
62
+ states: n
63
+ }), Me = H(
75
64
  "button",
76
65
  ({
77
66
  variant: e,
78
67
  disabled: t,
79
- iconPosition: r,
80
- icon: n,
68
+ iconPosition: n,
69
+ icon: r,
81
70
  loading: l,
82
71
  shape: c,
83
72
  size: o,
@@ -264,20 +253,20 @@ const Me = (e) => {
264
253
  }
265
254
  )
266
255
  })
267
- ), De = H(
256
+ ), We = H(
268
257
  "fab",
269
- ({ size: e, variant: t, isExtended: r }) => ({
258
+ ({ size: e, variant: t, isExtended: n }) => ({
270
259
  fab: f(
271
260
  "flex shadow-3 hover:shadow-4 group overflow-hidden outline-none items-center cursor-pointer",
272
261
  {
273
- "rounded-[12px]": e == "small" && !r,
274
- "rounded-[16px]": e == "medium" || r,
275
- "rounded-[28px]": e == "large" && !r
262
+ "rounded-[12px]": e == "small" && !n,
263
+ "rounded-[16px]": e == "medium" || n,
264
+ "rounded-[28px]": e == "large" && !n
276
265
  },
277
266
  {
278
- "p-2": e == "small" && !r,
279
- "p-4": e == "medium" || r,
280
- "p-[30px]": e == "large" && !r
267
+ "p-2": e == "small" && !n,
268
+ "p-4": e == "medium" || n,
269
+ "p-[30px]": e == "large" && !n
281
270
  },
282
271
  t === "surface" && "bg-surface-container",
283
272
  t === "primary" && "bg-primary-container",
@@ -293,8 +282,8 @@ const Me = (e) => {
293
282
  ),
294
283
  icon: f(
295
284
  {
296
- "size-6": e == "small" || e == "medium" || r,
297
- "size-9": e == "large" && !r
285
+ "size-6": e == "small" || e == "medium" || n,
286
+ "size-9": e == "large" && !n
298
287
  },
299
288
  t === "surface" && "text-primary",
300
289
  t === "primary" && "text-on-primary-container",
@@ -309,13 +298,13 @@ const Me = (e) => {
309
298
  t === "tertiary" && "text-on-tertiary-container"
310
299
  )
311
300
  })
312
- ), $e = H(
301
+ ), De = H(
313
302
  "iconButton",
314
303
  ({
315
304
  variant: e,
316
305
  disabled: t,
317
- onToggle: r,
318
- isActive: n,
306
+ onToggle: n,
307
+ isActive: r,
319
308
  size: l,
320
309
  width: c,
321
310
  shape: o,
@@ -329,12 +318,12 @@ const Me = (e) => {
329
318
  ),
330
319
  container: f(
331
320
  "rounded-full relative flex overflow-hidden transition-all duration-300",
332
- (o === "rounded" || o === "squared" && r && !t && n && s) && {
321
+ (o === "rounded" || o === "squared" && n && !t && r && s) && {
333
322
  "rounded-[30px]": l === "xSmall" || l == "small",
334
323
  "rounded-[40px]": l === "medium",
335
324
  "rounded-[70px]": l === "large" || l == "xLarge"
336
325
  },
337
- (o === "squared" || o === "rounded" && r && !t && n && s) && {
326
+ (o === "squared" || o === "rounded" && n && !t && r && s) && {
338
327
  "rounded-[12px]": l === "xSmall" || l == "small",
339
328
  "rounded-[16px]": l === "medium",
340
329
  "rounded-[28px]": l === "large" || l == "xLarge"
@@ -346,26 +335,26 @@ const Me = (e) => {
346
335
  },
347
336
  e === "filled" && [
348
337
  !t && {
349
- "bg-surface-container": !n && !!r,
350
- "bg-primary": n || !r
338
+ "bg-surface-container": !r && !!n,
339
+ "bg-primary": r || !n
351
340
  },
352
341
  !!t && "bg-on-surface/[0.12]"
353
342
  ],
354
343
  e === "tonal" && [
355
344
  !t && {
356
- "bg-surface-container": !n && !!r,
357
- "bg-secondary-container": n || !r
345
+ "bg-surface-container": !r && !!n,
346
+ "bg-secondary-container": r || !n
358
347
  },
359
348
  !!t && "bg-on-surface/[0.12]"
360
349
  ],
361
350
  e === "outlined" && [
362
351
  !t && {
363
- "border border-outline": !n,
364
- "border border-transparent bg-inverse-surface": n
352
+ "border border-outline": !r,
353
+ "border border-transparent bg-inverse-surface": r
365
354
  },
366
355
  !!t && {
367
- "border border-on-surface/[0.12]": !n,
368
- "border border-transparent bg-on-surface/[0.12]": n
356
+ "border border-on-surface/[0.12]": !r,
357
+ "border border-transparent bg-on-surface/[0.12]": r
369
358
  }
370
359
  ]
371
360
  ),
@@ -373,20 +362,20 @@ const Me = (e) => {
373
362
  "absolute top-0 left-0 h-full w-full ",
374
363
  !t && [
375
364
  e === "standard" && {
376
- "state-on-surface-variant": !n,
377
- "state-primary": n
365
+ "state-on-surface-variant": !r,
366
+ "state-primary": r
378
367
  },
379
368
  e === "filled" && {
380
- "state-primary": !n && !!r,
381
- "state-inverse-on-surface": n || !r
369
+ "state-primary": !r && !!n,
370
+ "state-inverse-on-surface": r || !n
382
371
  },
383
372
  e === "tonal" && {
384
- "state-on-surface-variant": !n && !!r,
385
- "state-on-secondary-container": n || !r
373
+ "state-on-surface-variant": !r && !!n,
374
+ "state-on-secondary-container": r || !n
386
375
  },
387
376
  e === "outlined" && {
388
- "state-on-surface-variant": !n,
389
- "state-on-primary": n
377
+ "state-on-surface-variant": !r,
378
+ "state-on-primary": r
390
379
  }
391
380
  ]
392
381
  ),
@@ -413,26 +402,26 @@ const Me = (e) => {
413
402
  ],
414
403
  !t && [
415
404
  e === "standard" && {
416
- "text-on-surface-variant": !n,
417
- "text-primary": n
405
+ "text-on-surface-variant": !r,
406
+ "text-primary": r
418
407
  },
419
408
  e === "filled" && {
420
- "text-primary": !n && !!r,
421
- "text-on-primary": n || !r
409
+ "text-primary": !r && !!n,
410
+ "text-on-primary": r || !n
422
411
  },
423
412
  e === "tonal" && {
424
- "text-on-surface-variant": !n && !!r,
425
- "text-on-secondary-container": n || !r
413
+ "text-on-surface-variant": !r && !!n,
414
+ "text-on-secondary-container": r || !n
426
415
  },
427
416
  e === "outlined" && {
428
- "text-on-surface-variant": !n,
429
- "text-inverse-on-surface": n
417
+ "text-on-surface-variant": !r,
418
+ "text-inverse-on-surface": r
430
419
  }
431
420
  ],
432
421
  !!t && "text-on-surface/[0.38]"
433
422
  )
434
423
  })
435
- ), We = H(
424
+ ), $e = H(
436
425
  "progressIndicator",
437
426
  ({ variant: e, isVisible: t }) => ({
438
427
  progressIndicator: f(
@@ -486,7 +475,7 @@ const Me = (e) => {
486
475
  })
487
476
  ), je = H(
488
477
  "switch",
489
- ({ isSelected: e, disabled: t, inactiveIcon: r }) => ({
478
+ ({ isSelected: e, disabled: t, inactiveIcon: n }) => ({
490
479
  switch: f(
491
480
  "group w-[52px] h-[32px] outline-none rounded-full border-2 flex items-center",
492
481
  { "bg-on-surface/[0.12] border-transparent": t },
@@ -505,8 +494,8 @@ const Me = (e) => {
505
494
  ),
506
495
  handle: f(
507
496
  "transition-all duration-100 z-10 rounded-full flex items-center justify-center",
508
- { "w-[16px] h-[16px]": !e && !r },
509
- { "w-[24px] h-[24px]": !(!e && !r) },
497
+ { "w-[16px] h-[16px]": !e && !n },
498
+ { "w-[24px] h-[24px]": !(!e && !n) },
510
499
  !t && [
511
500
  "cursor-pointer group-active:h-[28px] group-active:w-[28px]",
512
501
  { "bg-on-primary group-hover:bg-primary-container": e },
@@ -527,66 +516,66 @@ const Me = (e) => {
527
516
  { "text-on-surface/[0.38]": t }
528
517
  )
529
518
  })
530
- ), Oe = H(
519
+ ), Xe = H(
531
520
  "tab",
532
- ({ isSelected: e, icon: t, label: r, variant: n }) => ({
521
+ ({ isSelected: e, icon: t, label: n, variant: r }) => ({
533
522
  tab: f(
534
523
  "bg-surface flex-1 group outline-none flex px-4 justify-center items-center cursor-pointer",
535
524
  { "z-10": e },
536
- !!(t && r) && n === "primary" && "h-16",
537
- !(t && r && n === "primary") && "h-12"
525
+ !!(t && n) && r === "primary" && "h-16",
526
+ !(t && n && r === "primary") && "h-12"
538
527
  ),
539
528
  stateLayer: f(
540
529
  "absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",
541
- n === "primary" && {
530
+ r === "primary" && {
542
531
  "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface": !e,
543
532
  "group-hover:hover-state-primary group-focus-visible:focus-state-primary": e
544
533
  },
545
- n === "secondary" && "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"
534
+ r === "secondary" && "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"
546
535
  ),
547
536
  content: f(
548
537
  "flex gap-0.5 h-full justify-center",
549
538
  {
550
- relative: n == "primary"
539
+ relative: r == "primary"
551
540
  },
552
541
  {
553
- "": !!(r && !t)
542
+ "": !!(n && !t)
554
543
  },
555
- n === "primary" && "flex-col items-center",
556
- n === "secondary" && {
557
- "flex-col items-center": !(r && t),
558
- "flex-row items-center gap-2": !!(r && t)
544
+ r === "primary" && "flex-col items-center",
545
+ r === "secondary" && {
546
+ "flex-col items-center": !(n && t),
547
+ "flex-row items-center gap-2": !!(n && t)
559
548
  }
560
549
  ),
561
550
  icon: f(
562
551
  "h-6 w-6 p-0.5 !box-border",
563
- n === "primary" && {
552
+ r === "primary" && {
564
553
  "text-on-surface-variant": !e,
565
554
  "text-primary": e
566
555
  },
567
- n === "secondary" && {
556
+ r === "secondary" && {
568
557
  "text-on-surface-variant": !e,
569
558
  "text-on-surface": e
570
559
  }
571
560
  ),
572
561
  label: f(
573
562
  "text-title-small text-nowrap",
574
- n === "primary" && {
563
+ r === "primary" && {
575
564
  "text-on-surface-variant": !e,
576
565
  "text-primary": e
577
566
  },
578
- n === "secondary" && {
567
+ r === "secondary" && {
579
568
  "text-on-surface-variant": !e,
580
569
  "text-on-surface": e
581
570
  }
582
571
  ),
583
572
  underline: f(
584
573
  "bg-primary absolute w-full left-0 bottom-0",
585
- n === "primary" && "h-[3px] rounded-t",
586
- n === "secondary" && "h-0.5"
574
+ r === "primary" && "h-[3px] rounded-t",
575
+ r === "secondary" && "h-0.5"
587
576
  )
588
577
  })
589
- ), Xe = H(
578
+ ), Fe = H(
590
579
  "tabs",
591
580
  ({ scrollable: e }) => ({
592
581
  tabs: f(
@@ -595,13 +584,13 @@ const Me = (e) => {
595
584
  { "overflow-x-auto": e }
596
585
  )
597
586
  })
598
- ), Fe = H(
587
+ ), Oe = H(
599
588
  "textField",
600
589
  ({
601
590
  disabled: e,
602
591
  leadingIcon: t,
603
- trailingIcon: r,
604
- variant: n,
592
+ trailingIcon: n,
593
+ variant: r,
605
594
  errorText: l,
606
595
  isFocused: c,
607
596
  value: o,
@@ -615,17 +604,17 @@ const Me = (e) => {
615
604
  "group transition-border duration-200 relative flex items-center ",
616
605
  { "h-14": d == "singleLine" },
617
606
  {
618
- "border-on-surface-variant": !(l != null && l.length) && !c && n == "filled",
619
- "border-outline": !(l != null && l.length) && !c && n == "outlined",
607
+ "border-on-surface-variant": !(l != null && l.length) && !c && r == "filled",
608
+ "border-outline": !(l != null && l.length) && !c && r == "outlined",
620
609
  "border-primary": !(l != null && l.length) && c,
621
610
  "border-error": !!(l != null && l.length)
622
611
  },
623
612
  { "bg-on-surface/[0.04]": e },
624
- n == "filled" && [
613
+ r == "filled" && [
625
614
  "rounded-t overflow-hidden border-b",
626
615
  { "bg-surface-container-highest": !e }
627
616
  ],
628
- n == "outlined" && [
617
+ r == "outlined" && [
629
618
  "border rounded box-border",
630
619
  {
631
620
  "border-[3px]": c
@@ -635,7 +624,7 @@ const Me = (e) => {
635
624
  stateLayer: f(
636
625
  "absolute -z-10 w-full h-full top-0 left-0",
637
626
  {
638
- hidden: n == "outlined"
627
+ hidden: r == "outlined"
639
628
  },
640
629
  {
641
630
  "group-state-on-surface": !e,
@@ -658,12 +647,12 @@ const Me = (e) => {
658
647
  {
659
648
  "pr-0": !!s
660
649
  },
661
- n == "filled" && " pb-2 pt-6",
662
- n == "outlined" && "py-4 relative z-10"
650
+ r == "filled" && " pb-2 pt-6",
651
+ r == "outlined" && "py-4 relative z-10"
663
652
  ),
664
653
  activeIndicator: f(
665
654
  "absolute w-0 inset-x-0 border-rounded mx-auto bottom-0",
666
- n == "filled" && [
655
+ r == "filled" && [
667
656
  "h-[2px] transition-all duration-300",
668
657
  { "bg-primary": !(l != null && l.length) },
669
658
  { "bg-error": !!(l != null && l.length) },
@@ -679,15 +668,15 @@ const Me = (e) => {
679
668
  ),
680
669
  leadingIcon: f([
681
670
  "h-12 ml-3 flex items-center justify-center",
682
- { "cursor-text": !W.isValidElement(t) }
671
+ { "cursor-text": !$.isValidElement(t) }
683
672
  ]),
684
673
  trailingIcon: f("h-12 w-12 flex items-center justify-center", {
685
- "cursor-text": !W.isValidElement(r)
674
+ "cursor-text": !$.isValidElement(n)
686
675
  }),
687
676
  suffix: f(
688
677
  "text-on-surface-variant pl-0 pr-4",
689
- n == "filled" && " pb-2 pt-6",
690
- n == "outlined" && "py-4 relative z-10"
678
+ r == "filled" && " pb-2 pt-6",
679
+ r == "outlined" && "py-4 relative z-10"
691
680
  )
692
681
  })
693
682
  ), Ke = H(
@@ -721,8 +710,8 @@ const Me = (e) => {
721
710
  ),
722
711
  supportingText: f("")
723
712
  })
724
- ), J = ({ icon: e, colors: t = [], className: r }) => {
725
- const { icon: n } = e, [l, c, , , o] = n || [], s = (d) => {
713
+ ), Q = ({ icon: e, colors: t = [], className: n }) => {
714
+ const { icon: r } = e, [l, c, , , o] = r || [], s = (d) => {
726
715
  switch (d.length) {
727
716
  case 2:
728
717
  return {
@@ -738,7 +727,7 @@ const Me = (e) => {
738
727
  return /* @__PURE__ */ i(
739
728
  "svg",
740
729
  {
741
- className: f("size-5 box-content", r),
730
+ className: f("size-5 box-content", n),
742
731
  style: {
743
732
  ...s(t)
744
733
  },
@@ -752,42 +741,42 @@ const Me = (e) => {
752
741
  }, Ge = ({
753
742
  variant: e = "linear-determinate",
754
743
  minHeight: t = 4,
755
- value: r = 0,
756
- transitionDuration: n = 1e3,
744
+ value: n = 0,
745
+ transitionDuration: r = 1e3,
757
746
  className: l,
758
747
  ...c
759
748
  }) => {
760
- const [o, s] = S(r), [d, u] = S(1.5);
761
- $(() => {
762
- r > 100 && (r = 100), r < 0 && (r = 0), s(r);
763
- }, [r]);
764
- const [p, w] = S(!0), a = () => p ? d : d * 0.5;
765
- $(() => {
749
+ const [o, s] = S(n), [d, u] = S(1.5);
750
+ D(() => {
751
+ n > 100 && (n = 100), n < 0 && (n = 0), s(n);
752
+ }, [n]);
753
+ const [g, w] = S(!0), a = () => g ? d : d * 0.5;
754
+ D(() => {
766
755
  if ((e === "circular-indeterminate" || e === "linear-indeterminate") && o !== 100) {
767
756
  const L = setInterval(() => {
768
- s(p ? 10 : 90), w(!p);
757
+ s(g ? 10 : 90), w(!g);
769
758
  }, a() * 1e3);
770
759
  return () => clearInterval(L);
771
760
  }
772
- }, [e, p, o]);
773
- const [y, v] = S(!1);
774
- $(() => {
761
+ }, [e, g, o]);
762
+ const [p, v] = S(!1);
763
+ D(() => {
775
764
  if (o >= 100) {
776
765
  const L = setTimeout(() => {
777
766
  v(!1);
778
- }, n);
767
+ }, r);
779
768
  return () => {
780
769
  clearTimeout(L);
781
770
  };
782
771
  } else
783
772
  v(!0);
784
- }, [o, n]);
785
- const b = We({
773
+ }, [o, r]);
774
+ const b = $e({
786
775
  className: l,
787
776
  variant: e,
788
- value: r,
789
- transitionDuration: n,
790
- isVisible: y,
777
+ value: n,
778
+ transitionDuration: r,
779
+ isVisible: p,
791
780
  minHeight: t
792
781
  });
793
782
  return /* @__PURE__ */ P(te, { children: [
@@ -802,7 +791,7 @@ const Me = (e) => {
802
791
  "div",
803
792
  {
804
793
  style: {
805
- height: y ? `${t}px` : "0px",
794
+ height: p ? `${t}px` : "0px",
806
795
  width: `${o}%`,
807
796
  transition: `width 1ms ease-in-out ${o == 100 ? ", height 200ms 0.5s ease-in-out" : ""}`
808
797
  },
@@ -813,9 +802,9 @@ const Me = (e) => {
813
802
  "div",
814
803
  {
815
804
  style: {
816
- height: y ? `${t}px` : "0px",
805
+ height: p ? `${t}px` : "0px",
817
806
  marginLeft: o != 100 ? "6px" : "0px",
818
- transition: `width ${n}ms ease-in-out ${o == 100 ? `, height 200ms 0.5s ease-in-out, margin-left ${n}ms ${n / 1.5}ms` : ""}`
807
+ transition: `width ${r}ms ease-in-out ${o == 100 ? `, height 200ms 0.5s ease-in-out, margin-left ${r}ms ${r / 1.5}ms` : ""}`
819
808
  },
820
809
  className: b.activeIndicator
821
810
  }
@@ -824,9 +813,9 @@ const Me = (e) => {
824
813
  "div",
825
814
  {
826
815
  style: {
827
- height: y ? `${t}px` : "0px",
816
+ height: p ? `${t}px` : "0px",
828
817
  width: `${t}px`,
829
- transition: `width ${n}ms ease-in-out, height 200ms 0.5s ease-in-out`
818
+ transition: `width ${r}ms ease-in-out, height 200ms 0.5s ease-in-out`
830
819
  },
831
820
  className: b.stop
832
821
  }
@@ -854,7 +843,7 @@ const Me = (e) => {
854
843
  {
855
844
  cx: "50%",
856
845
  cy: "50%",
857
- r: y ? "calc(50% - 2px)" : "50%",
846
+ r: p ? "calc(50% - 2px)" : "50%",
858
847
  style: {
859
848
  strokeLinecap: "round"
860
849
  },
@@ -863,10 +852,10 @@ const Me = (e) => {
863
852
  className: b.activeIndicator,
864
853
  variants: {
865
854
  hidden: {
866
- pathLength: p ? 10 / 100 : 90 / 100
855
+ pathLength: g ? 10 / 100 : 90 / 100
867
856
  },
868
857
  visible: {
869
- pathLength: p ? 90 / 100 : 10 / 100
858
+ pathLength: g ? 90 / 100 : 10 / 100
870
859
  }
871
860
  },
872
861
  transition: {
@@ -880,14 +869,14 @@ const Me = (e) => {
880
869
  }
881
870
  )
882
871
  },
883
- p + ""
872
+ g + ""
884
873
  )
885
874
  ] });
886
875
  }, ne = ({
887
876
  colorName: e = "on-surface",
888
877
  triggerRef: t
889
878
  }) => {
890
- const r = {
879
+ const n = {
891
880
  initial: {
892
881
  opacity: 0,
893
882
  borderRadius: "50%",
@@ -904,28 +893,28 @@ const Me = (e) => {
904
893
  borderRadius: { duration: 0.3, delay: 0.3 }
905
894
  }
906
895
  }
907
- }, [n, l] = S(!0), [c, o] = S(!1), [s, d] = S({ x: 0, y: 0 });
908
- $(() => {
896
+ }, [r, l] = S(!0), [c, o] = S(!1), [s, d] = S({ x: 0, y: 0 });
897
+ D(() => {
909
898
  c && (l(!0), l(!1));
910
- }, [c]), $(() => {
899
+ }, [c]), D(() => {
911
900
  const a = t == null ? void 0 : t.current;
912
901
  if (a)
913
- return a.addEventListener("mousedown", u), a.addEventListener("mouseup", w), a.addEventListener("mouseleave", p), () => {
914
- a.removeEventListener("mousedown", u), a.removeEventListener("mouseup", w), a.removeEventListener("mouseleave", p);
902
+ return a.addEventListener("mousedown", u), a.addEventListener("mouseup", w), a.addEventListener("mouseleave", g), () => {
903
+ a.removeEventListener("mousedown", u), a.removeEventListener("mouseup", w), a.removeEventListener("mouseleave", g);
915
904
  };
916
905
  }, [t]);
917
906
  const u = (a) => {
918
- const y = t == null ? void 0 : t.current, v = y.getBoundingClientRect();
907
+ const p = t == null ? void 0 : t.current, v = p.getBoundingClientRect();
919
908
  o(!0), d({
920
- x: (a.clientX - v.left) / y.clientWidth * 100,
921
- y: (a.clientY - v.top) / y.clientHeight * 100
909
+ x: (a.clientX - v.left) / p.clientWidth * 100,
910
+ y: (a.clientY - v.top) / p.clientHeight * 100
922
911
  });
923
- }, p = (a) => {
912
+ }, g = (a) => {
924
913
  o(!1);
925
914
  }, w = (a) => {
926
915
  o(!1);
927
916
  };
928
- return /* @__PURE__ */ i(z, { mode: "wait", children: (c || !c && !n) && /* @__PURE__ */ i(
917
+ return /* @__PURE__ */ i(z, { mode: "wait", children: (c || !c && !r) && /* @__PURE__ */ i(
929
918
  U.div,
930
919
  {
931
920
  style: {
@@ -937,7 +926,7 @@ const Me = (e) => {
937
926
  background: `color-mix(in srgb, var(--color-${e}) 12%, transparent)`,
938
927
  pointerEvents: "none"
939
928
  },
940
- variants: r,
929
+ variants: n,
941
930
  initial: "initial",
942
931
  animate: "animate",
943
932
  exit: { opacity: 0, transition: { duration: 0 } },
@@ -945,35 +934,9 @@ const Me = (e) => {
945
934
  className: "transform -translate-x-1/2 -translate-y-1/2"
946
935
  }
947
936
  ) });
948
- };
949
- function qe(e, t, r) {
950
- var n = {}, l = n.noTrailing, c = l === void 0 ? !1 : l, o = n.noLeading, s = o === void 0 ? !1 : o, d = n.debounceMode, u = d === void 0 ? void 0 : d, p, w = !1, a = 0;
951
- function y() {
952
- p && clearTimeout(p);
953
- }
954
- function v(L) {
955
- var E = L || {}, m = E.upcomingOnly, N = m === void 0 ? !1 : m;
956
- y(), w = !N;
957
- }
958
- function b() {
959
- for (var L = arguments.length, E = new Array(L), m = 0; m < L; m++)
960
- E[m] = arguments[m];
961
- var N = this, I = Date.now() - a;
962
- if (w)
963
- return;
964
- function k() {
965
- a = Date.now(), t.apply(N, E);
966
- }
967
- function C() {
968
- p = void 0;
969
- }
970
- !s && u && !p && k(), y(), u === void 0 && I > e ? s ? (a = Date.now(), c || (p = setTimeout(u ? C : k, e))) : k() : c !== !0 && (p = setTimeout(u ? C : k, u === void 0 ? e - I : e));
971
- }
972
- return b.cancel = v, b;
973
- }
974
- const He = H(
937
+ }, qe = H(
975
938
  "customScroll",
976
- ({ orientation: e, draggable: t, isDragging: r }) => ({
939
+ ({ orientation: e, draggable: t, isDragging: n }) => ({
977
940
  customScroll: f(
978
941
  "flex h-full w-full",
979
942
  t && [
@@ -981,8 +944,8 @@ const He = H(
981
944
  "[&::-webkit-scrollbar-track]:bg-transparent",
982
945
  "[&::-webkit-scrollbar-thumb]:rounded-full",
983
946
  {
984
- "[&::-webkit-scrollbar-thumb]:bg-outline": r,
985
- "[&::-webkit-scrollbar-thumb]:bg-transparent": !r
947
+ "[&::-webkit-scrollbar-thumb]:bg-outline": n,
948
+ "[&::-webkit-scrollbar-thumb]:bg-transparent": !n
986
949
  },
987
950
  { "[&::-webkit-scrollbar]:h-2": e === "horizontal" },
988
951
  { "[&::-webkit-scrollbar]:w-2": e === "vertical" }
@@ -990,8 +953,8 @@ const He = H(
990
953
  {
991
954
  "overflow-y-scroll flex-col": e === "vertical",
992
955
  "overflow-x-scroll flex-row": e === "horizontal",
993
- "cursor-grab": t && !r,
994
- "cursor-grabbing": t && r
956
+ "cursor-grab": t && !n,
957
+ "cursor-grabbing": t && n
995
958
  }
996
959
  ),
997
960
  track: f("overflow-hidden flex-none sticky", {
@@ -999,126 +962,126 @@ const He = H(
999
962
  "top-0 w-full": e === "vertical"
1000
963
  })
1001
964
  })
1002
- ), pe = ({
965
+ ), me = ({
1003
966
  children: e,
1004
967
  orientation: t = "vertical",
1005
- scrollSize: r,
1006
- onScroll: n,
968
+ scrollSize: n,
969
+ onScroll: r,
1007
970
  className: l,
1008
971
  draggable: c = !1,
1009
972
  throttleDuration: o = 75
1010
973
  }) => {
1011
- var V, X;
1012
- const s = O(null), d = O(null), [u, p] = S({
974
+ var V, F;
975
+ const s = X(null), d = X(null), [u, g] = S({
1013
976
  width: null,
1014
977
  height: null
1015
978
  });
1016
- $(() => {
979
+ D(() => {
1017
980
  if (!s.current) return;
1018
- const M = new ResizeObserver((F) => {
1019
- for (const K of F)
1020
- K.target === s.current && p({
981
+ const I = new ResizeObserver((O) => {
982
+ for (const K of O)
983
+ K.target === s.current && g({
1021
984
  width: K.contentRect.width,
1022
985
  height: K.contentRect.height
1023
986
  // On observe aussi la hauteur maintenant
1024
987
  });
1025
988
  });
1026
- return M.observe(s.current), () => {
1027
- M.disconnect();
989
+ return I.observe(s.current), () => {
990
+ I.disconnect();
1028
991
  };
1029
992
  }, [s]);
1030
- const w = O(null), a = O(null), y = () => {
1031
- const M = d.current;
1032
- return M ? {
1033
- width: r ?? M.scrollWidth,
1034
- height: r ?? M.scrollHeight
993
+ const w = X(null), a = X(null), p = () => {
994
+ const I = d.current;
995
+ return I ? {
996
+ width: n ?? I.scrollWidth,
997
+ height: n ?? I.scrollHeight
1035
998
  } : null;
1036
999
  }, v = () => {
1037
- const M = s.current;
1038
- return M ? {
1039
- width: M.clientWidth,
1040
- height: M.clientHeight
1000
+ const I = s.current;
1001
+ return I ? {
1002
+ width: I.clientWidth,
1003
+ height: I.clientHeight
1041
1004
  // Correction ici pour retourner la bonne hauteur
1042
1005
  } : null;
1043
- }, { scrollYProgress: b, scrollXProgress: L } = Ne({
1006
+ }, { scrollYProgress: b, scrollXProgress: L } = be({
1044
1007
  container: s
1045
- }), E = O(null);
1046
- E.current || (E.current = qe(
1008
+ }), E = X(null);
1009
+ E.current || (E.current = Ne(
1047
1010
  o,
1048
- (M, F) => {
1049
- !a.current || !w.current || n && (t === "horizontal" && F === "x" && n({
1050
- scrollProgress: M,
1051
- scroll: M * w.current.width,
1011
+ (I, O) => {
1012
+ !a.current || !w.current || r && (t === "horizontal" && O === "x" && r({
1013
+ scrollProgress: I,
1014
+ scroll: I * w.current.width,
1052
1015
  scrollTotal: w.current.width,
1053
1016
  scrollVisible: a.current.width
1054
- }), t === "vertical" && F === "y" && n({
1055
- scrollProgress: M,
1056
- scroll: M * w.current.height,
1017
+ }), t === "vertical" && O === "y" && r({
1018
+ scrollProgress: I,
1019
+ scroll: I * w.current.height,
1057
1020
  scrollTotal: w.current.height,
1058
1021
  scrollVisible: a.current.height
1059
1022
  }));
1060
1023
  }
1061
1024
  ));
1062
- const m = (M, F) => {
1063
- E.current && E.current(M, F);
1025
+ const y = (I, O) => {
1026
+ E.current && E.current(I, O);
1064
1027
  };
1065
- $(() => {
1066
- u.width && m(L.get(), "x"), u.height && m(b.get(), "y");
1067
- }, [u]), oe(L, "change", (M) => {
1068
- m(M, "x");
1069
- }), oe(b, "change", (M) => {
1070
- m(M, "y");
1028
+ D(() => {
1029
+ u.width && y(L.get(), "x"), u.height && y(b.get(), "y");
1030
+ }, [u]), oe(L, "change", (I) => {
1031
+ y(I, "x");
1032
+ }), oe(b, "change", (I) => {
1033
+ y(I, "y");
1071
1034
  });
1072
- const [N, I] = S(!1);
1073
- ie(() => {
1074
- N || !a.current || !w.current || !n || (n({
1035
+ const [N, k] = S(!1);
1036
+ ue(() => {
1037
+ N || !a.current || !w.current || !r || (r({
1075
1038
  scrollProgress: 0,
1076
1039
  scroll: 0,
1077
1040
  scrollTotal: t == "vertical" ? w.current.height : w.current.width,
1078
1041
  scrollVisible: t == "vertical" ? a.current.height : a.current.width
1079
- }), I(!0));
1080
- }, [a, w, n]), w.current = y(), a.current = v();
1081
- const [k, C] = S(!1), B = He({
1082
- isDragging: k,
1042
+ }), k(!0));
1043
+ }, [a, w, r]), w.current = p(), a.current = v();
1044
+ const [M, C] = S(!1), B = qe({
1045
+ isDragging: M,
1083
1046
  children: e,
1084
1047
  className: l,
1085
- onScroll: n,
1048
+ onScroll: r,
1086
1049
  orientation: t,
1087
- scrollSize: r,
1050
+ scrollSize: n,
1088
1051
  draggable: c,
1089
1052
  throttleDuration: o
1090
- }), [D, R] = S(0), [h, j] = S(0), A = (M) => {
1053
+ }), [W, R] = S(0), [m, j] = S(0), _ = (I) => {
1091
1054
  if (!c) return;
1092
- const F = s.current;
1093
- if (!F || D == null) return;
1094
- const Z = (M.pageX - F.offsetLeft - D) * 1.5;
1095
- F.scrollLeft = h - Z;
1096
- }, q = (M) => {
1097
- const F = s.current;
1098
- F && (C(!0), R(M.pageX - F.offsetLeft), j(F.scrollLeft));
1099
- }, Y = (M) => {
1100
- k && (M.preventDefault(), A(M));
1055
+ const O = s.current;
1056
+ if (!O || W == null) return;
1057
+ const J = (I.pageX - O.offsetLeft - W) * 1.5;
1058
+ O.scrollLeft = m - J;
1059
+ }, q = (I) => {
1060
+ const O = s.current;
1061
+ O && (C(!0), R(I.pageX - O.offsetLeft), j(O.scrollLeft));
1062
+ }, Z = (I) => {
1063
+ M && (I.preventDefault(), _(I));
1101
1064
  }, G = () => {
1102
1065
  C(!1);
1103
- }, Q = () => {
1066
+ }, A = () => {
1104
1067
  C(!1);
1105
- }, x = (M) => {
1106
- M.preventDefault();
1107
- }, g = O(null);
1108
- return $(() => () => {
1109
- g.current && clearTimeout(g.current);
1068
+ }, x = (I) => {
1069
+ I.preventDefault();
1070
+ }, h = X(null);
1071
+ return D(() => () => {
1072
+ h.current && clearTimeout(h.current);
1110
1073
  }, []), /* @__PURE__ */ P(
1111
1074
  "div",
1112
1075
  {
1113
1076
  className: B.customScroll,
1114
1077
  ref: s,
1115
1078
  onMouseDown: q,
1116
- onMouseMove: Y,
1079
+ onMouseMove: Z,
1117
1080
  onMouseUp: G,
1118
- onMouseLeave: Q,
1081
+ onMouseLeave: A,
1119
1082
  onDragStart: x,
1120
- onScroll: (M) => {
1121
- k || (R(null), C(!0), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
1083
+ onScroll: (I) => {
1084
+ M || (R(null), C(!0), h.current && clearTimeout(h.current), h.current = setTimeout(() => {
1122
1085
  C(!1);
1123
1086
  }, 1e3));
1124
1087
  },
@@ -1127,7 +1090,7 @@ const He = H(
1127
1090
  "div",
1128
1091
  {
1129
1092
  ref: d,
1130
- style: t === "vertical" ? { height: ((V = a == null ? void 0 : a.current) == null ? void 0 : V.height) ?? "100%" } : { width: ((X = a == null ? void 0 : a.current) == null ? void 0 : X.width) ?? "100%" },
1093
+ style: t === "vertical" ? { height: ((V = a == null ? void 0 : a.current) == null ? void 0 : V.height) ?? "100%" } : { width: ((F = a == null ? void 0 : a.current) == null ? void 0 : F.width) ?? "100%" },
1131
1094
  className: B.track,
1132
1095
  children: e
1133
1096
  }
@@ -1155,61 +1118,61 @@ const He = H(
1155
1118
  ]
1156
1119
  }
1157
1120
  );
1158
- }, mt = ({
1121
+ }, pt = ({
1159
1122
  children: e,
1160
1123
  transition: t = ".5s",
1161
- orientation: r = "vertical",
1162
- throttleDuration: n = 25,
1124
+ orientation: n = "vertical",
1125
+ throttleDuration: r = 25,
1163
1126
  ...l
1164
1127
  }) => {
1165
- const [c, o] = S(null), s = ue((c == null ? void 0 : c.scrollProgress) ?? 0), d = re(
1128
+ const [c, o] = S(null), s = fe((c == null ? void 0 : c.scrollProgress) ?? 0), d = re(
1166
1129
  s,
1167
1130
  [0, 1],
1168
1131
  [0, 1 - ((c == null ? void 0 : c.scrollVisible) ?? 0) / ((c == null ? void 0 : c.scrollTotal) ?? 0)]
1169
1132
  ), u = re(
1170
1133
  d,
1171
1134
  (a) => `${-a * 100}%`
1172
- ), p = (a) => {
1135
+ ), g = (a) => {
1173
1136
  s.set(a.scrollProgress), a.scrollTotal > 0 && o(a);
1174
- }, w = O(null);
1137
+ }, w = X(null);
1175
1138
  return oe(u, "change", (a) => {
1176
- const y = performance.now();
1139
+ const p = performance.now();
1177
1140
  if (w.current !== null) {
1178
- const v = y - w.current;
1141
+ const v = p - w.current;
1179
1142
  console.log(`Delta temps : ${v} ms`);
1180
1143
  }
1181
- w.current = y, console.log(a);
1144
+ w.current = p, console.log(a);
1182
1145
  }), /* @__PURE__ */ i(
1183
- pe,
1146
+ me,
1184
1147
  {
1185
- onScroll: p,
1186
- throttleDuration: n,
1148
+ onScroll: g,
1149
+ throttleDuration: r,
1187
1150
  ...l,
1188
1151
  children: /* @__PURE__ */ i(
1189
1152
  U.div,
1190
1153
  {
1191
1154
  className: f("transition-transform ease-out", {
1192
- "w-fit h-full": r === "horizontal",
1193
- "h-fit w-full": r === "vertical"
1155
+ "w-fit h-full": n === "horizontal",
1156
+ "h-fit w-full": n === "vertical"
1194
1157
  }),
1195
1158
  style: {
1196
1159
  transitionDuration: t,
1197
- ...r == "vertical" ? { y: u } : { x: u }
1160
+ ...n == "vertical" ? { y: u } : { x: u }
1198
1161
  },
1199
1162
  children: e
1200
1163
  }
1201
1164
  )
1202
1165
  }
1203
1166
  );
1204
- }, _e = ({
1167
+ }, He = ({
1205
1168
  targetRef: e,
1206
1169
  children: t
1207
1170
  }) => {
1208
- const [r, n] = S(null), l = O(null), c = () => {
1171
+ const [n, r] = S(null), l = X(null), c = () => {
1209
1172
  const o = e.current;
1210
1173
  if (!o) return;
1211
1174
  const s = o.getBoundingClientRect();
1212
- console.log(o), n({
1175
+ console.log(o), r({
1213
1176
  position: "fixed",
1214
1177
  top: s.top,
1215
1178
  left: s.left,
@@ -1221,63 +1184,63 @@ const He = H(
1221
1184
  // personnalise si besoin
1222
1185
  });
1223
1186
  };
1224
- return $(() => {
1187
+ return D(() => {
1225
1188
  const o = e.current;
1226
1189
  if (o)
1227
1190
  return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), l.current = new ResizeObserver(c), l.current.observe(o), () => {
1228
1191
  var s;
1229
1192
  window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), (s = l.current) == null || s.disconnect();
1230
1193
  };
1231
- }, [e]), r ? Le(/* @__PURE__ */ i("div", { style: r, children: t }), document.body) : null;
1232
- }, Ae = ({
1194
+ }, [e]), n ? Le(/* @__PURE__ */ i("div", { style: n, children: t }), document.body) : null;
1195
+ }, Ye = ({
1233
1196
  variant: e = "filled",
1234
1197
  disabled: t = !1,
1235
- icon: r,
1236
- href: n,
1198
+ icon: n,
1199
+ href: r,
1237
1200
  label: l,
1238
1201
  className: c,
1239
1202
  iconPosition: o = "left",
1240
1203
  loading: s = !1,
1241
1204
  shape: d = "rounded",
1242
1205
  onClick: u,
1243
- ref: p,
1206
+ ref: g,
1244
1207
  size: w = "medium",
1245
1208
  allowShapeTransformation: a = !0,
1246
- transition: y,
1209
+ transition: p,
1247
1210
  ...v
1248
1211
  }) => {
1249
- const b = n ? "a" : "button", L = O(null), E = p || L, m = Re({
1212
+ const b = r ? "a" : "button", L = X(null), E = g || L, y = Me({
1250
1213
  allowShapeTransformation: a,
1251
1214
  size: w,
1252
1215
  shape: d,
1253
- href: n,
1216
+ href: r,
1254
1217
  disabled: t,
1255
- icon: r,
1218
+ icon: n,
1256
1219
  iconPosition: o,
1257
1220
  label: l,
1258
1221
  loading: s,
1259
1222
  variant: e,
1260
- transition: y,
1223
+ transition: p,
1261
1224
  className: c
1262
- }), N = r ? /* @__PURE__ */ i(J, { icon: r, className: m.icon }) : /* @__PURE__ */ i(te, {});
1263
- return y = { duration: 0.3, ...y }, /* @__PURE__ */ i(
1225
+ }), N = n ? /* @__PURE__ */ i(Q, { icon: n, className: y.icon }) : /* @__PURE__ */ i(te, {});
1226
+ return p = { duration: 0.3, ...p }, /* @__PURE__ */ i(
1264
1227
  b,
1265
1228
  {
1266
1229
  ref: E,
1267
- href: n,
1268
- className: m.button,
1230
+ href: r,
1231
+ className: y.button,
1269
1232
  ...v,
1270
- onClick: (I) => {
1271
- t ? I.preventDefault() : u && u(I);
1233
+ onClick: (k) => {
1234
+ t ? k.preventDefault() : u && u(k);
1272
1235
  },
1273
1236
  disabled: t,
1274
1237
  children: /* @__PURE__ */ P(
1275
1238
  "div",
1276
1239
  {
1277
- className: m.container,
1278
- style: { transition: y.duration + "s" },
1240
+ className: y.container,
1241
+ style: { transition: p.duration + "s" },
1279
1242
  children: [
1280
- /* @__PURE__ */ i("div", { className: m.stateLayer, children: !t && /* @__PURE__ */ i(
1243
+ /* @__PURE__ */ i("div", { className: y.stateLayer, children: !t && /* @__PURE__ */ i(
1281
1244
  ne,
1282
1245
  {
1283
1246
  colorName: e === "elevated" && "primary" || e === "filled" && "on-primary" || e === "filledTonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
@@ -1322,48 +1285,48 @@ const He = H(
1322
1285
  )
1323
1286
  }
1324
1287
  ),
1325
- /* @__PURE__ */ i("span", { className: m.label, children: l }),
1288
+ /* @__PURE__ */ i("span", { className: y.label, children: l }),
1326
1289
  o === "right" && N
1327
1290
  ]
1328
1291
  }
1329
1292
  )
1330
1293
  }
1331
1294
  );
1332
- }, pt = ({
1295
+ }, ht = ({
1333
1296
  variant: e = "outlined",
1334
1297
  className: t,
1335
- children: r,
1336
- isInteractive: n = !1,
1298
+ children: n,
1299
+ isInteractive: r = !1,
1337
1300
  ref: l,
1338
1301
  ...c
1339
1302
  }) => {
1340
- const o = Se({ className: t, isInteractive: n, variant: e }), s = O(null), d = l || s;
1303
+ const o = Se({ className: t, isInteractive: r, variant: e }), s = X(null), d = l || s;
1341
1304
  return /* @__PURE__ */ P("div", { ...c, ref: d, className: o.card, children: [
1342
- /* @__PURE__ */ i("div", { className: o.stateLayer, children: n && /* @__PURE__ */ i(ne, { colorName: "on-surface", triggerRef: d }) }),
1343
- r
1305
+ /* @__PURE__ */ i("div", { className: o.stateLayer, children: r && /* @__PURE__ */ i(ne, { colorName: "on-surface", triggerRef: d }) }),
1306
+ n
1344
1307
  ] });
1345
- }, Ye = (e, t, r = [0, 1]) => {
1346
- const [n, l] = t, [c, o] = r, d = (Math.max(n, Math.min(e, l)) - n) / (l - n);
1308
+ }, _e = (e, t, n = [0, 1]) => {
1309
+ const [r, l] = t, [c, o] = n, d = (Math.max(r, Math.min(e, l)) - r) / (l - r);
1347
1310
  return c + d * (o - c);
1348
1311
  }, Ze = ({
1349
1312
  className: e,
1350
1313
  children: t,
1351
- width: r = 1,
1352
- index: n = 0,
1314
+ width: n = 1,
1315
+ index: r = 0,
1353
1316
  ref: l,
1354
1317
  ...c
1355
1318
  }) => {
1356
- const o = O(null), s = l || o, d = Ce({
1319
+ const o = X(null), s = l || o, d = Ce({
1357
1320
  className: e,
1358
- index: n,
1359
- width: r,
1321
+ index: r,
1322
+ width: n,
1360
1323
  children: t
1361
1324
  });
1362
1325
  return /* @__PURE__ */ i(
1363
1326
  U.div,
1364
1327
  {
1365
1328
  ref: s,
1366
- animate: { width: r + "px" },
1329
+ animate: { width: n + "px" },
1367
1330
  transition: {
1368
1331
  duration: 0.5,
1369
1332
  ease: "linear"
@@ -1373,23 +1336,23 @@ const He = H(
1373
1336
  children: t
1374
1337
  }
1375
1338
  );
1376
- }, ht = ({
1339
+ }, yt = ({
1377
1340
  variant: e = "hero",
1378
1341
  className: t,
1379
- children: r,
1380
- ref: n,
1342
+ children: n,
1343
+ ref: r,
1381
1344
  marginPourcent: l = 0,
1382
1345
  inputRange: c = [0.21, 0.65],
1383
1346
  outputRange: o = [42, 300],
1384
1347
  gap: s = 8,
1385
1348
  onChange: d,
1386
1349
  scrollSensitivity: u = 1.25,
1387
- ...p
1350
+ ...g
1388
1351
  }) => {
1389
- var G, Q;
1390
- const w = O(null), a = n || w, y = Ve({
1352
+ var G, A;
1353
+ const w = X(null), a = r || w, p = Ve({
1391
1354
  className: t,
1392
- children: r,
1355
+ children: n,
1393
1356
  variant: e,
1394
1357
  inputRange: c,
1395
1358
  outputRange: o,
@@ -1397,77 +1360,77 @@ const He = H(
1397
1360
  onChange: d,
1398
1361
  gap: s,
1399
1362
  scrollSensitivity: u
1400
- }), v = W.Children.toArray(r).filter(
1401
- (x) => W.isValidElement(x) && x.type === Ze
1402
- ), b = O(null), [L, E] = S([]), [m, N] = S(null), I = () => {
1403
- var F;
1404
- if (!b.current || !a.current || !m) return [];
1405
- const { scrollVisible: x, scrollProgress: g } = m;
1406
- function V(K, Z) {
1363
+ }), v = $.Children.toArray(n).filter(
1364
+ (x) => $.isValidElement(x) && x.type === Ze
1365
+ ), b = X(null), [L, E] = S([]), [y, N] = S(null), k = () => {
1366
+ var O;
1367
+ if (!b.current || !a.current || !y) return [];
1368
+ const { scrollVisible: x, scrollProgress: h } = y;
1369
+ function V(K, J) {
1407
1370
  return K.map(
1408
- (T) => (T - Z) / Math.abs(K[1] - K[0])
1371
+ (T) => (T - J) / Math.abs(K[1] - K[0])
1409
1372
  );
1410
1373
  }
1411
- let X = v.map((K, Z) => {
1412
- if (!k[Z].current || !b.current) return 0;
1413
- let ee = Z / (v.length - 1);
1374
+ let F = v.map((K, J) => {
1375
+ if (!M[J].current || !b.current) return 0;
1376
+ let ee = J / (v.length - 1);
1414
1377
  return ee > 1 && (ee = 1), ee < 0 && (ee = 0), ee;
1415
1378
  });
1416
- X = V(X, g);
1417
- let M = ((((F = a.current) == null ? void 0 : F.clientWidth) ?? x) - (o[0] + s)) / (o[1] + s);
1418
- return X.map((K, Z) => ({ value: Math.abs(K), originalIndex: Z })).sort((K, Z) => K.value - Z.value).forEach((K, Z) => {
1419
- Z === 0 && B(K.originalIndex);
1420
- let T = Ye(M, [0, 1], [0, o[1]]);
1421
- T < o[0] && (T = o[0]), M--, X[K.originalIndex] = T;
1422
- }), X;
1423
- }, k = O([]).current, [C, B] = S(0);
1424
- $(() => {
1379
+ F = V(F, h);
1380
+ let I = ((((O = a.current) == null ? void 0 : O.clientWidth) ?? x) - (o[0] + s)) / (o[1] + s);
1381
+ return F.map((K, J) => ({ value: Math.abs(K), originalIndex: J })).sort((K, J) => K.value - J.value).forEach((K, J) => {
1382
+ J === 0 && B(K.originalIndex);
1383
+ let T = _e(I, [0, 1], [0, o[1]]);
1384
+ T < o[0] && (T = o[0]), I--, F[K.originalIndex] = T;
1385
+ }), F;
1386
+ }, M = X([]).current, [C, B] = S(0);
1387
+ D(() => {
1425
1388
  d && d(C);
1426
- }, [C]), k.length !== v.length && v.forEach((x, g) => {
1427
- k[g] || (k[g] = W.createRef());
1389
+ }, [C]), M.length !== v.length && v.forEach((x, h) => {
1390
+ M[h] || (M[h] = $.createRef());
1428
1391
  });
1429
- const D = v.map((x, g) => W.cloneElement(
1392
+ const W = v.map((x, h) => $.cloneElement(
1430
1393
  x,
1431
1394
  {
1432
- width: L[g],
1433
- ref: k[g],
1434
- key: g,
1435
- index: g
1395
+ width: L[h],
1396
+ ref: M[h],
1397
+ key: h,
1398
+ index: h
1436
1399
  }
1437
- )), R = ue((m == null ? void 0 : m.scrollProgress) ?? 0), h = re(
1400
+ )), R = fe((y == null ? void 0 : y.scrollProgress) ?? 0), m = re(
1438
1401
  R,
1439
1402
  [0, 1],
1440
1403
  [
1441
1404
  0,
1442
- 1 - (((G = a.current) == null ? void 0 : G.clientWidth) ?? 0) / (((Q = b == null ? void 0 : b.current) == null ? void 0 : Q.clientWidth) ?? 0)
1405
+ 1 - (((G = a.current) == null ? void 0 : G.clientWidth) ?? 0) / (((A = b == null ? void 0 : b.current) == null ? void 0 : A.clientWidth) ?? 0)
1443
1406
  ]
1444
1407
  ), j = re(
1445
- h,
1408
+ m,
1446
1409
  (x) => `${-x * 100}%`
1447
- ), A = (x) => {
1410
+ ), _ = (x) => {
1448
1411
  x.scrollTotal > 0 && N(x);
1449
1412
  };
1450
- $(() => {
1451
- const x = I();
1413
+ D(() => {
1414
+ const x = k();
1452
1415
  E(x);
1453
- }, [m]);
1454
- const [q, Y] = S(0);
1455
- return ie(() => {
1416
+ }, [y]);
1417
+ const [q, Z] = S(0);
1418
+ return ue(() => {
1456
1419
  let x = o[1];
1457
- m && x > m.scrollVisible && (x = m.scrollVisible);
1458
- const g = (x + s) * D.length / u;
1459
- Y(g);
1460
- }, [a, k, m]), /* @__PURE__ */ i("div", { className: y.carousel, ref: a, ...p, children: /* @__PURE__ */ i(
1461
- pe,
1420
+ y && x > y.scrollVisible && (x = y.scrollVisible);
1421
+ const h = (x + s) * W.length / u;
1422
+ Z(h);
1423
+ }, [a, M, y]), /* @__PURE__ */ i("div", { className: p.carousel, ref: a, ...g, children: /* @__PURE__ */ i(
1424
+ me,
1462
1425
  {
1463
1426
  draggable: !0,
1464
1427
  orientation: "horizontal",
1465
- onScroll: A,
1428
+ onScroll: _,
1466
1429
  scrollSize: q,
1467
1430
  children: /* @__PURE__ */ i(
1468
1431
  U.div,
1469
1432
  {
1470
- className: y.track,
1433
+ className: p.track,
1471
1434
  ref: b,
1472
1435
  style: {
1473
1436
  transitionDuration: "0.5s",
@@ -1475,27 +1438,27 @@ const He = H(
1475
1438
  gap: `${s}px`,
1476
1439
  x: j
1477
1440
  },
1478
- children: D
1441
+ children: W
1479
1442
  }
1480
1443
  )
1481
1444
  }
1482
1445
  ) });
1483
- }, yt = ({
1446
+ }, xt = ({
1484
1447
  orientation: e = "horizontal",
1485
1448
  className: t,
1486
- ...r
1449
+ ...n
1487
1450
  }) => {
1488
- const n = Be({ orientation: e, className: t });
1489
- return /* @__PURE__ */ i("hr", { className: n.divider, ...r });
1490
- }, _ = [];
1451
+ const r = Be({ orientation: e, className: t });
1452
+ return /* @__PURE__ */ i("hr", { className: r.divider, ...n });
1453
+ }, Y = [];
1491
1454
  for (let e = 0; e < 256; ++e)
1492
- _.push((e + 256).toString(16).slice(1));
1455
+ Y.push((e + 256).toString(16).slice(1));
1493
1456
  function Je(e, t = 0) {
1494
- return (_[e[t + 0]] + _[e[t + 1]] + _[e[t + 2]] + _[e[t + 3]] + "-" + _[e[t + 4]] + _[e[t + 5]] + "-" + _[e[t + 6]] + _[e[t + 7]] + "-" + _[e[t + 8]] + _[e[t + 9]] + "-" + _[e[t + 10]] + _[e[t + 11]] + _[e[t + 12]] + _[e[t + 13]] + _[e[t + 14]] + _[e[t + 15]]).toLowerCase();
1457
+ return (Y[e[t + 0]] + Y[e[t + 1]] + Y[e[t + 2]] + Y[e[t + 3]] + "-" + Y[e[t + 4]] + Y[e[t + 5]] + "-" + Y[e[t + 6]] + Y[e[t + 7]] + "-" + Y[e[t + 8]] + Y[e[t + 9]] + "-" + Y[e[t + 10]] + Y[e[t + 11]] + Y[e[t + 12]] + Y[e[t + 13]] + Y[e[t + 14]] + Y[e[t + 15]]).toLowerCase();
1495
1458
  }
1496
1459
  let le;
1497
1460
  const Qe = new Uint8Array(16);
1498
- function ze() {
1461
+ function Ae() {
1499
1462
  if (!le) {
1500
1463
  if (typeof crypto > "u" || !crypto.getRandomValues)
1501
1464
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
@@ -1503,114 +1466,114 @@ function ze() {
1503
1466
  }
1504
1467
  return le(Qe);
1505
1468
  }
1506
- const Te = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), se = { randomUUID: Te };
1507
- function ae(e, t, r) {
1469
+ const ze = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), se = { randomUUID: ze };
1470
+ function ae(e, t, n) {
1508
1471
  var l;
1509
1472
  if (se.randomUUID && !e)
1510
1473
  return se.randomUUID();
1511
1474
  e = e || {};
1512
- const n = e.random ?? ((l = e.rng) == null ? void 0 : l.call(e)) ?? ze();
1513
- if (n.length < 16)
1475
+ const r = e.random ?? ((l = e.rng) == null ? void 0 : l.call(e)) ?? Ae();
1476
+ if (r.length < 16)
1514
1477
  throw new Error("Random bytes length must be >= 16");
1515
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Je(n);
1478
+ return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Je(r);
1516
1479
  }
1517
- const he = ({
1480
+ const pe = ({
1518
1481
  variant: e = "plain",
1519
1482
  buttons: t,
1520
- className: r,
1521
- children: n,
1483
+ className: n,
1484
+ children: r,
1522
1485
  title: l,
1523
1486
  text: c,
1524
1487
  position: o,
1525
1488
  targetRef: s,
1526
1489
  ref: d,
1527
1490
  trigger: u = ["hover", "focus"],
1528
- ...p
1491
+ ...g
1529
1492
  }) => {
1530
- if (!n && !s)
1493
+ if (!r && !s)
1531
1494
  throw new Error("ToolTip must have a child or a targetRef");
1532
1495
  Array.isArray(u) || (u = [u]), t && !Array.isArray(t) && (t = [t]);
1533
- const w = O(null), a = s || w, [y, v] = S(null), [b] = S(ae()), [L, E] = S(!1), m = O(null);
1534
- $(() => {
1535
- const h = (j) => {
1496
+ const w = X(null), a = s || w, [p, v] = S(null), [b] = S(ae()), [L, E] = S(!1), y = X(null);
1497
+ D(() => {
1498
+ const m = (j) => {
1536
1499
  v(j.detail);
1537
1500
  };
1538
- return document.addEventListener("tooltip-update", h), () => {
1501
+ return document.addEventListener("tooltip-update", m), () => {
1539
1502
  document.removeEventListener(
1540
1503
  "tooltip-update",
1541
- h
1504
+ m
1542
1505
  );
1543
1506
  };
1544
- }, []), $(() => {
1545
- m.current && clearTimeout(m.current), y ? E(y === b) : m.current = setTimeout(() => {
1507
+ }, []), D(() => {
1508
+ y.current && clearTimeout(y.current), p ? E(p === b) : y.current = setTimeout(() => {
1546
1509
  E(!1);
1547
1510
  }, 1200);
1548
- }, [y, b]);
1511
+ }, [p, b]);
1549
1512
  const N = () => {
1550
1513
  if (u.includes("hover")) {
1551
- const h = new CustomEvent("tooltip-update", { detail: b });
1552
- document.dispatchEvent(h);
1514
+ const m = new CustomEvent("tooltip-update", { detail: b });
1515
+ document.dispatchEvent(m);
1553
1516
  }
1554
- }, I = () => {
1517
+ }, k = () => {
1555
1518
  if (u.includes("hover")) {
1556
- const h = new CustomEvent("tooltip-update", { detail: null });
1557
- document.dispatchEvent(h);
1519
+ const m = new CustomEvent("tooltip-update", { detail: null });
1520
+ document.dispatchEvent(m);
1558
1521
  }
1559
- }, k = () => {
1522
+ }, M = () => {
1560
1523
  if (u.includes("click")) {
1561
- const h = new CustomEvent("tooltip-update", {
1524
+ const m = new CustomEvent("tooltip-update", {
1562
1525
  detail: L ? null : b
1563
1526
  });
1564
- document.dispatchEvent(h);
1527
+ document.dispatchEvent(m);
1565
1528
  }
1566
1529
  }, C = () => {
1567
1530
  if (u.includes("focus")) {
1568
- const h = new CustomEvent("tooltip-update", { detail: b });
1569
- document.dispatchEvent(h);
1531
+ const m = new CustomEvent("tooltip-update", { detail: b });
1532
+ document.dispatchEvent(m);
1570
1533
  }
1571
1534
  }, B = () => {
1572
1535
  if (u.includes("focus")) {
1573
- const h = new CustomEvent("tooltip-update", { detail: null });
1574
- document.dispatchEvent(h);
1536
+ const m = new CustomEvent("tooltip-update", { detail: null });
1537
+ document.dispatchEvent(m);
1575
1538
  }
1576
1539
  };
1577
- $(() => {
1540
+ D(() => {
1578
1541
  if (a != null && a.current) {
1579
- const h = a.current;
1580
- return h.addEventListener("mouseenter", N), h.addEventListener("mouseleave", I), h.addEventListener("click", k), h.addEventListener("focus", C), h.addEventListener("blur", B), () => {
1581
- h.removeEventListener("mouseenter", N), h.removeEventListener("mouseleave", I), h.removeEventListener("click", k), h.removeEventListener("focus", C), h.removeEventListener("blur", B);
1542
+ const m = a.current;
1543
+ return m.addEventListener("mouseenter", N), m.addEventListener("mouseleave", k), m.addEventListener("click", M), m.addEventListener("focus", C), m.addEventListener("blur", B), () => {
1544
+ m.removeEventListener("mouseenter", N), m.removeEventListener("mouseleave", k), m.removeEventListener("click", M), m.removeEventListener("focus", C), m.removeEventListener("blur", B);
1582
1545
  };
1583
1546
  }
1584
1547
  }, [a, u, b, L]);
1585
- const D = !s && we(n) ? ve(n, { ref: w }) : n;
1548
+ const W = !s && ge(r) ? we(r, { ref: w }) : r;
1586
1549
  if (!o && typeof window < "u" && a != null && a.current && !o) {
1587
- const h = a.current.getBoundingClientRect(), j = window.innerWidth, A = window.innerHeight, q = h.left / j, Y = h.top / A;
1588
- e === "plain" ? q < 1 / 3 ? o = "right" : q > 2 / 3 ? o = "left" : o = Y > 0.5 ? "top" : "bottom" : q < 1 / 2 && Y < 1 / 2 ? o = "bottom-right" : q > 1 / 2 && Y < 1 / 2 ? o = "bottom-left" : q > 1 / 2 && Y > 1 / 2 ? o = "top-left" : q < 1 / 2 && Y > 1 / 2 && (o = "top-right");
1550
+ const m = a.current.getBoundingClientRect(), j = window.innerWidth, _ = window.innerHeight, q = m.left / j, Z = m.top / _;
1551
+ e === "plain" ? q < 1 / 3 ? o = "right" : q > 2 / 3 ? o = "left" : o = Z > 0.5 ? "top" : "bottom" : q < 1 / 2 && Z < 1 / 2 ? o = "bottom-right" : q > 1 / 2 && Z < 1 / 2 ? o = "bottom-left" : q > 1 / 2 && Z > 1 / 2 ? o = "top-left" : q < 1 / 2 && Z > 1 / 2 && (o = "top-right");
1589
1552
  }
1590
1553
  const R = Ke({
1591
1554
  variant: e,
1592
1555
  buttons: t,
1593
- className: r,
1556
+ className: n,
1594
1557
  title: l,
1595
1558
  text: c,
1596
1559
  position: o,
1597
1560
  trigger: u,
1598
1561
  targetRef: s,
1599
- children: n
1562
+ children: r
1600
1563
  });
1601
1564
  return /* @__PURE__ */ P(te, { children: [
1602
- D,
1603
- /* @__PURE__ */ i(z, { children: L && /* @__PURE__ */ i(_e, { targetRef: a, children: /* @__PURE__ */ i(
1565
+ W,
1566
+ /* @__PURE__ */ i(z, { children: L && /* @__PURE__ */ i(He, { targetRef: a, children: /* @__PURE__ */ i(
1604
1567
  U.div,
1605
1568
  {
1606
- initial: { opacity: y ? 1 : 0 },
1569
+ initial: { opacity: p ? 1 : 0 },
1607
1570
  animate: { opacity: 1 },
1608
- transition: { duration: y ? 0 : 0.3 },
1609
- exit: { opacity: y ? 1 : 0 },
1571
+ transition: { duration: p ? 0 : 0.3 },
1572
+ exit: { opacity: p ? 1 : 0 },
1610
1573
  className: R.toolTip,
1611
- ...p,
1574
+ ...g,
1612
1575
  onMouseEnter: N,
1613
- onMouseLeave: I,
1576
+ onMouseLeave: k,
1614
1577
  children: /* @__PURE__ */ P(
1615
1578
  U.div,
1616
1579
  {
@@ -1624,12 +1587,12 @@ const he = ({
1624
1587
  children: [
1625
1588
  l && /* @__PURE__ */ i("div", { className: R.subHead, children: l }),
1626
1589
  /* @__PURE__ */ i("div", { className: R.supportingText, children: c }),
1627
- t && /* @__PURE__ */ i("div", { className: R.actions, children: Array.isArray(t) && t.map((h, j) => /* @__PURE__ */ i(
1628
- Ae,
1590
+ t && /* @__PURE__ */ i("div", { className: R.actions, children: Array.isArray(t) && t.map((m, j) => /* @__PURE__ */ i(
1591
+ Ye,
1629
1592
  {
1630
1593
  size: "small",
1631
1594
  variant: "text",
1632
- ...h
1595
+ ...m
1633
1596
  },
1634
1597
  j
1635
1598
  )) })
@@ -1642,28 +1605,28 @@ const he = ({
1642
1605
  }, ce = ({
1643
1606
  className: e,
1644
1607
  label: t,
1645
- variant: r = "primary",
1646
- size: n = "medium",
1608
+ variant: n = "primary",
1609
+ size: r = "medium",
1647
1610
  href: l,
1648
1611
  type: c,
1649
1612
  icon: o,
1650
1613
  isExtended: s = !1,
1651
1614
  ref: d,
1652
1615
  transition: u,
1653
- ...p
1616
+ ...g
1654
1617
  }) => {
1655
- const w = l ? "a" : "button", a = De({
1618
+ const w = l ? "a" : "button", a = We({
1656
1619
  href: l,
1657
1620
  icon: o,
1658
1621
  isExtended: s,
1659
1622
  label: t,
1660
- size: n,
1661
- variant: r,
1623
+ size: r,
1624
+ variant: n,
1662
1625
  className: e,
1663
1626
  transition: u
1664
1627
  });
1665
1628
  u = { duration: 0.3, ...u };
1666
- const y = O(null), v = d || y, b = {
1629
+ const p = X(null), v = d || p, b = {
1667
1630
  visible: {
1668
1631
  width: "auto",
1669
1632
  marginLeft: 12,
@@ -1692,14 +1655,14 @@ const he = ({
1692
1655
  return /* @__PURE__ */ P(
1693
1656
  w,
1694
1657
  {
1695
- ...p,
1658
+ ...g,
1696
1659
  ref: v,
1697
1660
  href: l,
1698
1661
  "aria-label": s ? void 0 : t,
1699
1662
  className: a.fab,
1700
1663
  children: [
1701
1664
  /* @__PURE__ */ i(
1702
- he,
1665
+ pe,
1703
1666
  {
1704
1667
  trigger: s ? null : void 0,
1705
1668
  text: t,
@@ -1710,15 +1673,15 @@ const he = ({
1710
1673
  ne,
1711
1674
  {
1712
1675
  colorName: f({
1713
- primary: r == "surface",
1714
- "on-primary-container": r == "primary",
1715
- "on-secondary-container": r == "secondary",
1716
- "on-tertiary-container": r == "tertiary"
1676
+ primary: n == "surface",
1677
+ "on-primary-container": n == "primary",
1678
+ "on-secondary-container": n == "secondary",
1679
+ "on-tertiary-container": n == "tertiary"
1717
1680
  }),
1718
1681
  triggerRef: v
1719
1682
  }
1720
1683
  ) }),
1721
- /* @__PURE__ */ i(J, { icon: o, className: a.icon }),
1684
+ /* @__PURE__ */ i(Q, { icon: o, className: a.icon }),
1722
1685
  /* @__PURE__ */ i(z, { children: s && /* @__PURE__ */ i(
1723
1686
  U.span,
1724
1687
  {
@@ -1733,38 +1696,38 @@ const he = ({
1733
1696
  ]
1734
1697
  }
1735
1698
  );
1736
- }, ye = ({
1699
+ }, he = ({
1737
1700
  variant: e = "standard",
1738
1701
  href: t,
1739
- disabled: r = !1,
1740
- type: n = "button",
1702
+ disabled: n = !1,
1703
+ type: r = "button",
1741
1704
  title: l,
1742
1705
  arialLabel: c,
1743
1706
  onToggle: o,
1744
1707
  activated: s = !1,
1745
1708
  onClick: d,
1746
1709
  icon: u,
1747
- size: p = "medium",
1710
+ size: g = "medium",
1748
1711
  iconSelected: w,
1749
1712
  className: a,
1750
- ref: y,
1713
+ ref: p,
1751
1714
  width: v = "default",
1752
1715
  shape: b = "rounded",
1753
1716
  allowShapeTransformation: L = !0,
1754
1717
  transition: E,
1755
- ...m
1718
+ ...y
1756
1719
  }) => {
1757
1720
  l || (l = c);
1758
- const [N, I] = W.useState(s);
1759
- let k;
1760
- o ? o && (k = (h) => {
1761
- r && h.preventDefault(), I(!N), o(!!N);
1762
- }, u = N && w || u) : k = (h) => {
1763
- r && h.preventDefault(), d && d(h);
1764
- }, $(() => {
1765
- I(s);
1721
+ const [N, k] = $.useState(s);
1722
+ let M;
1723
+ o ? o && (M = (m) => {
1724
+ n && m.preventDefault(), k(!N), o(!!N);
1725
+ }, u = N && w || u) : M = (m) => {
1726
+ n && m.preventDefault(), d && d(m);
1727
+ }, D(() => {
1728
+ k(s);
1766
1729
  }, [s]);
1767
- const C = t ? "a" : "button", B = $e({
1730
+ const C = t ? "a" : "button", B = De({
1768
1731
  transition: E,
1769
1732
  shape: b,
1770
1733
  allowShapeTransformation: L,
@@ -1775,30 +1738,30 @@ const he = ({
1775
1738
  iconSelected: w,
1776
1739
  isActive: N,
1777
1740
  onToggle: o,
1778
- disabled: r,
1741
+ disabled: n,
1779
1742
  icon: u,
1780
1743
  variant: e,
1781
1744
  className: a,
1782
- size: p,
1783
- ...m
1784
- }), D = O(null), R = y || D;
1745
+ size: g,
1746
+ ...y
1747
+ }), W = X(null), R = p || W;
1785
1748
  return E = { duration: 0.3, ...E }, /* @__PURE__ */ P(
1786
1749
  C,
1787
1750
  {
1788
- disabled: r,
1751
+ disabled: n,
1789
1752
  href: t,
1790
1753
  className: B.iconButton,
1791
1754
  "aria-label": c,
1792
- ...m,
1755
+ ...y,
1793
1756
  title: void 0,
1794
- onClick: k,
1757
+ onClick: M,
1795
1758
  ref: R,
1796
1759
  children: [
1797
1760
  /* @__PURE__ */ i(
1798
- he,
1761
+ pe,
1799
1762
  {
1800
1763
  targetRef: R,
1801
- trigger: r ? null : void 0,
1764
+ trigger: n ? null : void 0,
1802
1765
  text: l
1803
1766
  }
1804
1767
  ),
@@ -1808,7 +1771,7 @@ const he = ({
1808
1771
  style: { transition: E.duration + "s" },
1809
1772
  className: B.container,
1810
1773
  children: [
1811
- /* @__PURE__ */ i("div", { className: B.stateLayer, children: !r && /* @__PURE__ */ i(
1774
+ /* @__PURE__ */ i("div", { className: B.stateLayer, children: !n && /* @__PURE__ */ i(
1812
1775
  ne,
1813
1776
  {
1814
1777
  colorName: f(
@@ -1832,7 +1795,7 @@ const he = ({
1832
1795
  triggerRef: R
1833
1796
  }
1834
1797
  ) }),
1835
- u && /* @__PURE__ */ i(J, { icon: u, className: B.icon })
1798
+ u && /* @__PURE__ */ i(Q, { icon: u, className: B.icon })
1836
1799
  ]
1837
1800
  }
1838
1801
  )
@@ -1842,8 +1805,8 @@ const he = ({
1842
1805
  }, gt = ({
1843
1806
  className: e,
1844
1807
  valueFormatter: t,
1845
- step: r = 10,
1846
- name: n,
1808
+ step: n = 10,
1809
+ name: r,
1847
1810
  value: l = 0,
1848
1811
  min: c = 0,
1849
1812
  max: o = 100,
@@ -1859,21 +1822,21 @@ const he = ({
1859
1822
  ],
1860
1823
  ref: d,
1861
1824
  onChange: u,
1862
- ...p
1825
+ ...g
1863
1826
  }) => {
1864
1827
  const w = (x) => {
1865
- const g = y(), V = a();
1866
- return x === 1 / 0 ? 100 : x === -1 / 0 ? 0 : (x - g) / (V - g) * 100;
1867
- }, a = (x = !1) => x ? o : o == 1 / 0 ? s[(s == null ? void 0 : s.length) - 1].value : o, y = (x = !1) => x ? c : c == -1 / 0 ? s[0].value : c, v = (x) => {
1868
- const g = y(!1);
1869
- return (a(!1) - g) * x / 100 + g;
1870
- }, [b, L] = S(!1), E = O(null), m = d || E, [N, I] = S(l), [k, C] = S(w(l)), [B, D] = S(!1), R = (x) => {
1871
- D(!0), L(!0), A(x);
1872
- }, h = () => {
1873
- D(!1), L(!1);
1828
+ const h = p(), V = a();
1829
+ return x === 1 / 0 ? 100 : x === -1 / 0 ? 0 : (x - h) / (V - h) * 100;
1830
+ }, a = (x = !1) => x ? o : o == 1 / 0 ? s[(s == null ? void 0 : s.length) - 1].value : o, p = (x = !1) => x ? c : c == -1 / 0 ? s[0].value : c, v = (x) => {
1831
+ const h = p(!1);
1832
+ return (a(!1) - h) * x / 100 + h;
1833
+ }, [b, L] = S(!1), E = X(null), y = d || E, [N, k] = S(l), [M, C] = S(w(l)), [B, W] = S(!1), R = (x) => {
1834
+ W(!0), L(!0), _(x);
1835
+ }, m = () => {
1836
+ W(!1), L(!1);
1874
1837
  };
1875
- $(() => (B ? (window.addEventListener("mouseup", h), window.addEventListener("mousemove", A), window.addEventListener("touchend", h), window.addEventListener("touchmove", A)) : (window.removeEventListener("mouseup", h), window.removeEventListener("mousemove", A), window.removeEventListener("touchend", h), window.removeEventListener("touchmove", A)), () => {
1876
- window.removeEventListener("mouseup", h), window.removeEventListener("mousemove", A), window.removeEventListener("touchend", h), window.removeEventListener("touchmove", A);
1838
+ D(() => (B ? (window.addEventListener("mouseup", m), window.addEventListener("mousemove", _), window.addEventListener("touchend", m), window.addEventListener("touchmove", _)) : (window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", _), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", _)), () => {
1839
+ window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", _), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", _);
1877
1840
  }), [B]);
1878
1841
  const j = Pe({
1879
1842
  className: e,
@@ -1881,51 +1844,51 @@ const he = ({
1881
1844
  marks: s,
1882
1845
  max: o,
1883
1846
  min: c,
1884
- name: n,
1885
- step: r,
1847
+ name: r,
1848
+ step: n,
1886
1849
  value: N,
1887
1850
  valueFormatter: t,
1888
1851
  onChange: u
1889
- }), A = (x) => {
1890
- const g = m == null ? void 0 : m.current;
1891
- if (g) {
1892
- const V = g.getBoundingClientRect().left, M = ((x.type === "touchmove" || x.type === "touchstart" ? x.touches[0].clientX : x.clientX) - V) / g.offsetWidth * 100;
1893
- q({ pourcent: M });
1852
+ }), _ = (x) => {
1853
+ const h = y == null ? void 0 : y.current;
1854
+ if (h) {
1855
+ const V = h.getBoundingClientRect().left, I = ((x.type === "touchmove" || x.type === "touchstart" ? x.touches[0].clientX : x.clientX) - V) / h.offsetWidth * 100;
1856
+ q({ pourcent: I });
1894
1857
  }
1895
1858
  }, q = ({
1896
1859
  pourcent: x,
1897
- value: g
1860
+ value: h
1898
1861
  }) => {
1899
1862
  if (x) {
1900
1863
  if (x >= 100) {
1901
- I(a(!0)), C(100);
1864
+ k(a(!0)), C(100);
1902
1865
  return;
1903
1866
  }
1904
1867
  if (x <= 0) {
1905
- I(y(!0)), C(0);
1868
+ k(p(!0)), C(0);
1906
1869
  return;
1907
1870
  }
1908
- g = v(x), g == y() && (g = y(!0)), g == a() && (g = a(!0));
1909
- } else if (g != null) {
1910
- if (g >= a()) {
1911
- I(a(!0)), C(100);
1871
+ h = v(x), h == p() && (h = p(!0)), h == a() && (h = a(!0));
1872
+ } else if (h != null) {
1873
+ if (h >= a()) {
1874
+ k(a(!0)), C(100);
1912
1875
  return;
1913
1876
  }
1914
- if (g <= y()) {
1915
- I(y(!0)), C(0);
1877
+ if (h <= p()) {
1878
+ k(p(!0)), C(0);
1916
1879
  return;
1917
1880
  }
1918
- x = w(g);
1881
+ x = w(h);
1919
1882
  } else
1920
1883
  return;
1921
- r != null ? g = Math.round((g - y()) / r) * r + y() : s && (g = s.reduce((V, X, M) => {
1922
- let F = X.value === 1 / 0 ? a() : X.value === -1 / 0 ? y() : X.value, K = V.value === 1 / 0 ? a() : V.value === -1 / 0 ? y() : V.value;
1923
- return F = Math.abs(F - g), K = Math.abs(K - g), F < K ? X : V;
1924
- }).value), g >= a() && (g = a(!0)), g <= y() && (g = y(!0)), x = w(g), I(g), C(x), u && u(g);
1925
- }, [Y, G] = S(0);
1926
- return $(() => {
1884
+ n != null ? h = Math.round((h - p()) / n) * n + p() : s && (h = s.reduce((V, F, I) => {
1885
+ let O = F.value === 1 / 0 ? a() : F.value === -1 / 0 ? p() : F.value, K = V.value === 1 / 0 ? a() : V.value === -1 / 0 ? p() : V.value;
1886
+ return O = Math.abs(O - h), K = Math.abs(K - h), O < K ? F : V;
1887
+ }).value), h >= a() && (h = a(!0)), h <= p() && (h = p(!0)), x = w(h), k(h), C(x), u && u(h);
1888
+ }, [Z, G] = S(0);
1889
+ return D(() => {
1927
1890
  const x = () => {
1928
- m.current && G(m.current.offsetWidth);
1891
+ y.current && G(y.current.offsetWidth);
1929
1892
  };
1930
1893
  return x(), window.addEventListener("resize", x), () => {
1931
1894
  window.removeEventListener("resize", x);
@@ -1937,19 +1900,19 @@ const he = ({
1937
1900
  onKeyDown: (x) => {
1938
1901
  switch (x.key) {
1939
1902
  case "ArrowRight":
1940
- if (r)
1941
- q({ value: N + r });
1903
+ if (n)
1904
+ q({ value: N + n });
1942
1905
  else if (s) {
1943
- const g = s.find((V) => V.value > N);
1944
- g && q({ value: g.value });
1906
+ const h = s.find((V) => V.value > N);
1907
+ h && q({ value: h.value });
1945
1908
  }
1946
1909
  break;
1947
1910
  case "ArrowLeft":
1948
- if (r)
1949
- q({ value: N - r });
1911
+ if (n)
1912
+ q({ value: N - n });
1950
1913
  else if (s) {
1951
- const g = s.slice(0).reverse().find((V, X, M) => N === 1 / 0 ? X === 1 : V.value < N);
1952
- g && q({ value: g.value });
1914
+ const h = s.slice(0).reverse().find((V, F, I) => N === 1 / 0 ? F === 1 : V.value < N);
1915
+ h && q({ value: h.value });
1953
1916
  }
1954
1917
  break;
1955
1918
  default:
@@ -1957,24 +1920,24 @@ const he = ({
1957
1920
  }
1958
1921
  },
1959
1922
  role: "slider",
1960
- "aria-valuemin": y(!0),
1923
+ "aria-valuemin": p(!0),
1961
1924
  "aria-valuemax": a(!0),
1962
1925
  "aria-valuenow": N,
1963
1926
  "aria-valuetext": N.toString(),
1964
1927
  className: j.slider,
1965
1928
  onMouseDown: R,
1966
- onClick: A,
1967
- ref: m,
1929
+ onClick: _,
1930
+ ref: y,
1968
1931
  onTouchStart: R,
1969
1932
  onDragStart: (x) => x.preventDefault(),
1970
- ...p,
1933
+ ...g,
1971
1934
  children: [
1972
- /* @__PURE__ */ i("input", { type: "hidden", name: n, value: N }),
1935
+ /* @__PURE__ */ i("input", { type: "hidden", name: r, value: N }),
1973
1936
  /* @__PURE__ */ i(
1974
1937
  "div",
1975
1938
  {
1976
1939
  className: j.activeTrack,
1977
- style: { flex: k / 100 }
1940
+ style: { flex: M / 100 }
1978
1941
  }
1979
1942
  ),
1980
1943
  /* @__PURE__ */ i("div", { className: j.handle, children: /* @__PURE__ */ i(z, { children: b && /* @__PURE__ */ i(
@@ -2001,17 +1964,17 @@ const he = ({
2001
1964
  "div",
2002
1965
  {
2003
1966
  className: j.inactiveTrack,
2004
- style: { flex: 1 - k / 100 }
1967
+ style: { flex: 1 - M / 100 }
2005
1968
  }
2006
1969
  ),
2007
1970
  /* @__PURE__ */ i(
2008
1971
  "div",
2009
1972
  {
2010
1973
  className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
2011
- children: s && s.map((x, g) => {
1974
+ children: s && s.map((x, h) => {
2012
1975
  let V = null;
2013
- const X = (b ? 9 : 10) / Y * 100, M = w(x.value);
2014
- return M <= k - X ? V = !0 : M >= k + X && (V = !1), /* @__PURE__ */ i(
1976
+ const F = (b ? 9 : 10) / Z * 100, I = w(x.value);
1977
+ return I <= M - F ? V = !0 : I >= M + F && (V = !1), /* @__PURE__ */ i(
2015
1978
  "div",
2016
1979
  {
2017
1980
  className: f(j.dot, {
@@ -2022,7 +1985,7 @@ const he = ({
2022
1985
  left: `${w(x.value)}%`
2023
1986
  }
2024
1987
  },
2025
- g
1988
+ h
2026
1989
  );
2027
1990
  })
2028
1991
  }
@@ -2036,39 +1999,39 @@ const he = ({
2036
1999
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2037
2000
  * Copyright 2024 Fonticons, Inc.
2038
2001
  */
2039
- const et = {
2002
+ const Te = {
2040
2003
  prefix: "fas",
2041
2004
  iconName: "bars",
2042
2005
  icon: [448, 512, ["navicon"], "f0c9", "M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]
2043
- }, tt = {
2006
+ }, et = {
2044
2007
  prefix: "fas",
2045
2008
  iconName: "circle-exclamation",
2046
2009
  icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]
2047
- }, ge = {
2010
+ }, ye = {
2048
2011
  prefix: "fas",
2049
2012
  iconName: "xmark",
2050
2013
  icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]
2051
- }, xt = ({
2014
+ }, wt = ({
2052
2015
  supportingText: e,
2053
2016
  className: t,
2054
- duration: r,
2055
- closeIcon: n = ge,
2017
+ duration: n,
2018
+ closeIcon: r = ye,
2056
2019
  onClose: l,
2057
2020
  ...c
2058
2021
  }) => {
2059
2022
  const [o, s] = S(!0), d = Ue({
2060
2023
  className: t,
2061
- closeIcon: n,
2062
- duration: r,
2024
+ closeIcon: r,
2025
+ duration: n,
2063
2026
  isVisible: o,
2064
2027
  onClose: l,
2065
2028
  supportingText: e
2066
2029
  });
2067
- $(() => {
2068
- r && setTimeout(() => {
2030
+ D(() => {
2031
+ n && setTimeout(() => {
2069
2032
  u();
2070
- }, r);
2071
- }, [r]);
2033
+ }, n);
2034
+ }, [n]);
2072
2035
  const u = () => {
2073
2036
  s(!1), l == null || l();
2074
2037
  };
@@ -2084,22 +2047,22 @@ const et = {
2084
2047
  children: /* @__PURE__ */ P("div", { className: d.container, children: [
2085
2048
  /* @__PURE__ */ i("p", { className: d.supportingText, children: e }),
2086
2049
  /* @__PURE__ */ i(
2087
- ye,
2050
+ he,
2088
2051
  {
2089
2052
  onClick: () => u(),
2090
2053
  className: d.icon,
2091
- icon: n,
2054
+ icon: r,
2092
2055
  arialLabel: "close the snackbar"
2093
2056
  }
2094
2057
  )
2095
2058
  ] })
2096
2059
  }
2097
2060
  ) });
2098
- }, wt = ({
2061
+ }, vt = ({
2099
2062
  selected: e = !1,
2100
2063
  className: t,
2101
- activeIcon: r,
2102
- disabled: n = !1,
2064
+ activeIcon: n,
2065
+ disabled: r = !1,
2103
2066
  inactiveIcon: l,
2104
2067
  onChange: c,
2105
2068
  onClick: o,
@@ -2107,39 +2070,39 @@ const et = {
2107
2070
  ref: d,
2108
2071
  ...u
2109
2072
  }) => {
2110
- const [p, w] = S(e), a = (m) => {
2111
- n || (v(), o && o(m));
2112
- }, y = (m) => {
2113
- n || ((m.key === " " || m.key === "Enter") && (m.preventDefault(), v()), s && s(m));
2073
+ const [g, w] = S(e), a = (y) => {
2074
+ r || (v(), o && o(y));
2075
+ }, p = (y) => {
2076
+ r || ((y.key === " " || y.key === "Enter") && (y.preventDefault(), v()), s && s(y));
2114
2077
  }, v = () => {
2115
- w(!p), c == null || c(!p);
2078
+ w(!g), c == null || c(!g);
2116
2079
  }, b = je({
2117
2080
  className: t,
2118
- isSelected: p,
2119
- activeIcon: r,
2081
+ isSelected: g,
2082
+ activeIcon: n,
2120
2083
  inactiveIcon: l,
2121
- disabled: n,
2122
- selected: p,
2084
+ disabled: r,
2085
+ selected: g,
2123
2086
  onChange: c
2124
- }), L = O(null), E = d || L;
2087
+ }), L = X(null), E = d || L;
2125
2088
  return /* @__PURE__ */ P(
2126
2089
  U.div,
2127
2090
  {
2128
2091
  role: "switch",
2129
- "aria-checked": p,
2130
- tabIndex: n ? -1 : 0,
2131
- onKeyDown: y,
2092
+ "aria-checked": g,
2093
+ tabIndex: r ? -1 : 0,
2094
+ onKeyDown: p,
2132
2095
  onClick: a,
2133
2096
  ref: E,
2134
2097
  className: b.switch,
2135
2098
  ...u,
2136
2099
  children: [
2137
- /* @__PURE__ */ i("input", { type: "hidden", value: p ? "1" : "0" }),
2100
+ /* @__PURE__ */ i("input", { type: "hidden", value: g ? "1" : "0" }),
2138
2101
  /* @__PURE__ */ P(
2139
2102
  U.div,
2140
2103
  {
2141
2104
  layout: !0,
2142
- style: { translate: p ? "50%" : "-50%" },
2105
+ style: { translate: g ? "50%" : "-50%" },
2143
2106
  transition: {
2144
2107
  type: "spring",
2145
2108
  stiffness: 700,
@@ -2147,11 +2110,11 @@ const et = {
2147
2110
  },
2148
2111
  className: b.handleContainer,
2149
2112
  children: [
2150
- /* @__PURE__ */ i("div", { className: b.handle, children: (p ? r : l) && /* @__PURE__ */ i(
2151
- J,
2113
+ /* @__PURE__ */ i("div", { className: b.handle, children: (g ? n : l) && /* @__PURE__ */ i(
2114
+ Q,
2152
2115
  {
2153
2116
  className: b.icon,
2154
- icon: p ? r : l
2117
+ icon: g ? n : l
2155
2118
  }
2156
2119
  ) }),
2157
2120
  /* @__PURE__ */ i("div", { className: b.handleStateLayer })
@@ -2161,47 +2124,47 @@ const et = {
2161
2124
  ]
2162
2125
  }
2163
2126
  );
2164
- }, nt = ({
2127
+ }, tt = ({
2165
2128
  className: e,
2166
2129
  onClick: t,
2167
- label: r,
2168
- variant: n = "primary",
2130
+ label: n,
2131
+ variant: r = "primary",
2169
2132
  href: l,
2170
2133
  icon: c,
2171
2134
  selectedTab: o,
2172
2135
  setSelectedTab: s,
2173
2136
  tabsId: d,
2174
2137
  index: u,
2175
- onTabSelected: p,
2138
+ onTabSelected: g,
2176
2139
  scrollable: w = !1,
2177
2140
  selected: a = !1,
2178
- ref: y,
2141
+ ref: p,
2179
2142
  ...v
2180
2143
  }) => {
2181
- const b = O(null), L = y || b, [E, m] = S(a);
2182
- $(() => {
2183
- a && o == null ? m(!0) : m(o == u && u != null);
2184
- }, [o]), $(() => {
2185
- o == u && p && p({
2144
+ const b = X(null), L = p || b, [E, y] = S(a);
2145
+ D(() => {
2146
+ a && o == null ? y(!0) : y(o == u && u != null);
2147
+ }, [o]), D(() => {
2148
+ o == u && g && g({
2186
2149
  ref: L,
2187
2150
  index: u || 0,
2188
- label: r,
2151
+ label: n,
2189
2152
  icon: c
2190
2153
  });
2191
2154
  }, [o]);
2192
- const N = l ? "a" : "button", I = (C) => {
2155
+ const N = l ? "a" : "button", k = (C) => {
2193
2156
  s && s(u ?? null), t && t(C);
2194
- }, k = Oe({
2157
+ }, M = Xe({
2195
2158
  className: e,
2196
- onTabSelected: p,
2159
+ onTabSelected: g,
2197
2160
  scrollable: w,
2198
2161
  selectedTab: o,
2199
2162
  index: u,
2200
2163
  tabsId: d,
2201
2164
  selected: E,
2202
- variant: n,
2165
+ variant: r,
2203
2166
  icon: c,
2204
- label: r,
2167
+ label: n,
2205
2168
  isSelected: E,
2206
2169
  setSelectedTab: s,
2207
2170
  href: l
@@ -2214,25 +2177,25 @@ const et = {
2214
2177
  "aria-selected": E,
2215
2178
  ref: L,
2216
2179
  href: l,
2217
- className: k.tab,
2218
- onClick: I,
2180
+ className: M.tab,
2181
+ onClick: k,
2219
2182
  ...v,
2220
2183
  children: [
2221
- /* @__PURE__ */ i("span", { className: k.stateLayer, children: /* @__PURE__ */ i(
2184
+ /* @__PURE__ */ i("span", { className: M.stateLayer, children: /* @__PURE__ */ i(
2222
2185
  ne,
2223
2186
  {
2224
- colorName: n === "primary" && E ? "primary" : "on-surface",
2187
+ colorName: r === "primary" && E ? "primary" : "on-surface",
2225
2188
  triggerRef: L
2226
2189
  }
2227
2190
  ) }),
2228
- /* @__PURE__ */ P("span", { className: k.content, children: [
2229
- c && /* @__PURE__ */ i(J, { icon: c, className: k.icon }),
2230
- /* @__PURE__ */ i("span", { className: k.label, children: r }),
2191
+ /* @__PURE__ */ P("span", { className: M.content, children: [
2192
+ c && /* @__PURE__ */ i(Q, { icon: c, className: M.icon }),
2193
+ /* @__PURE__ */ i("span", { className: M.label, children: n }),
2231
2194
  E && /* @__PURE__ */ i(
2232
2195
  U.span,
2233
2196
  {
2234
2197
  layoutId: `underline-${d}`,
2235
- className: k.underline,
2198
+ className: M.underline,
2236
2199
  transition: { duration: 0.3 }
2237
2200
  }
2238
2201
  )
@@ -2240,11 +2203,11 @@ const et = {
2240
2203
  ]
2241
2204
  }
2242
2205
  );
2243
- }, vt = ({
2206
+ }, bt = ({
2244
2207
  variant: e = "primary",
2245
2208
  onTabSelected: t,
2246
- children: r,
2247
- className: n,
2209
+ children: n,
2210
+ className: r,
2248
2211
  selectedTab: l,
2249
2212
  setSelectedTab: c,
2250
2213
  scrollable: o = !1
@@ -2254,115 +2217,115 @@ const et = {
2254
2217
  );
2255
2218
  let u;
2256
2219
  l == 0 || l != null ? u = l : u = s;
2257
- const p = c || d, w = W.Children.toArray(r).filter(
2258
- (L) => W.isValidElement(L) && L.type === nt
2259
- ), a = W.useRef(null), y = (L) => {
2220
+ const g = c || d, w = $.Children.toArray(n).filter(
2221
+ (L) => $.isValidElement(L) && L.type === tt
2222
+ ), a = $.useRef(null), p = (L) => {
2260
2223
  if (t == null || t(L), o) {
2261
- const E = a.current, m = L.ref.current;
2262
- if (E && m) {
2263
- const N = m.offsetLeft + m.offsetWidth / 2 - E.offsetWidth / 2;
2224
+ const E = a.current, y = L.ref.current;
2225
+ if (E && y) {
2226
+ const N = y.offsetLeft + y.offsetWidth / 2 - E.offsetWidth / 2;
2264
2227
  E.scrollTo({ left: N, behavior: "smooth" });
2265
2228
  }
2266
2229
  }
2267
- }, v = be(() => ae(), []), b = Xe({
2268
- children: r,
2230
+ }, v = ve(() => ae(), []), b = Fe({
2231
+ children: n,
2269
2232
  onTabSelected: t,
2270
2233
  scrollable: o,
2271
2234
  selectedTab: u,
2272
- setSelectedTab: p,
2273
- className: n,
2235
+ setSelectedTab: g,
2236
+ className: r,
2274
2237
  variant: e
2275
2238
  });
2276
- return /* @__PURE__ */ i("div", { ref: a, role: "tablist", className: b.tabs, children: w.map((L, E) => W.cloneElement(L, {
2239
+ return /* @__PURE__ */ i("div", { ref: a, role: "tablist", className: b.tabs, children: w.map((L, E) => $.cloneElement(L, {
2277
2240
  key: E,
2278
2241
  index: E,
2279
2242
  variant: e,
2280
2243
  selectedTab: u,
2281
- setSelectedTab: p,
2244
+ setSelectedTab: g,
2282
2245
  tabsId: v,
2283
- onTabSelected: y,
2246
+ onTabSelected: p,
2284
2247
  scrollable: o
2285
2248
  })) });
2286
- }, bt = ({
2249
+ }, Nt = ({
2287
2250
  variant: e = "filled",
2288
2251
  disabled: t = !1,
2289
- errorText: r,
2290
- placeholder: n,
2252
+ errorText: n,
2253
+ placeholder: r,
2291
2254
  suffix: l,
2292
2255
  name: c,
2293
2256
  label: o,
2294
2257
  className: s,
2295
2258
  supportingText: d,
2296
2259
  trailingIcon: u,
2297
- leadingIcon: p,
2260
+ leadingIcon: g,
2298
2261
  type: w = "text",
2299
2262
  textLine: a = "singleLine",
2300
- autoComplete: y = "on",
2263
+ autoComplete: p = "on",
2301
2264
  onChange: v,
2302
2265
  value: b,
2303
2266
  showSupportingText: L = !1,
2304
2267
  ...E
2305
2268
  }) => {
2306
- const [m, N] = S(b ?? ""), [I, k] = S(!1), [C, B] = S(!1), [D, R] = S(
2269
+ const [y, N] = S(b ?? ""), [k, M] = S(!1), [C, B] = S(!1), [W, R] = S(
2307
2270
  L
2308
2271
  );
2309
- $(() => {
2272
+ D(() => {
2310
2273
  N(b ?? "");
2311
- }, [b]), $(() => {
2312
- r != null && r.length ? B(!0) : B(!1);
2313
- }, [r]), $(() => {
2274
+ }, [b]), D(() => {
2275
+ n != null && n.length ? B(!0) : B(!1);
2276
+ }, [n]), D(() => {
2314
2277
  L ? R(L) : d != null && d.length ? R(!0) : R(!1);
2315
- }, [D, d]), $(() => {
2316
- I && B(!1);
2317
- }, [I]);
2318
- const h = W.useRef(null), j = () => {
2319
- h.current && !I && h.current.focus();
2320
- }, A = () => {
2321
- k(!0);
2278
+ }, [W, d]), D(() => {
2279
+ k && B(!1);
2280
+ }, [k]);
2281
+ const m = $.useRef(null), j = () => {
2282
+ m.current && !k && m.current.focus();
2283
+ }, _ = () => {
2284
+ M(!0);
2322
2285
  }, q = (V) => {
2323
- const X = V.target.value;
2324
- N(X), B(!1), typeof v == "function" && v(X);
2325
- }, Y = () => {
2326
- k(!1);
2327
- }, G = Fe({
2328
- showSupportingText: D,
2329
- isFocused: I,
2286
+ const F = V.target.value;
2287
+ N(F), B(!1), typeof v == "function" && v(F);
2288
+ }, Z = () => {
2289
+ M(!1);
2290
+ }, G = Oe({
2291
+ showSupportingText: W,
2292
+ isFocused: k,
2330
2293
  showErrorIcon: C,
2331
2294
  disabled: t,
2332
2295
  name: c,
2333
2296
  label: o,
2334
- autoComplete: y,
2297
+ autoComplete: p,
2335
2298
  className: s,
2336
2299
  onChange: v,
2337
- placeholder: n,
2300
+ placeholder: r,
2338
2301
  supportingText: d,
2339
2302
  type: w,
2340
- leadingIcon: p,
2303
+ leadingIcon: g,
2341
2304
  trailingIcon: u,
2342
2305
  variant: e,
2343
- errorText: r,
2344
- value: m,
2306
+ errorText: n,
2307
+ value: y,
2345
2308
  suffix: l,
2346
2309
  textLine: a
2347
- }), [Q] = S(ae());
2348
- let x, g;
2310
+ }), [A] = S(ae());
2311
+ let x, h;
2349
2312
  switch (a) {
2350
2313
  case "multiLine":
2351
- g = Ee, x = {};
2314
+ h = Ee, x = {};
2352
2315
  break;
2353
2316
  case "textAreas":
2354
- g = "textarea", x = {};
2317
+ h = "textarea", x = {};
2355
2318
  break;
2356
2319
  case "singleLine":
2357
2320
  default:
2358
- g = "input", x = { type: w };
2321
+ h = "input", x = { type: w };
2359
2322
  break;
2360
2323
  }
2361
2324
  return /* @__PURE__ */ P("div", { className: G.textField, ...E, children: [
2362
2325
  /* @__PURE__ */ P("fieldset", { onClick: j, className: G.content, children: [
2363
2326
  /* @__PURE__ */ i("div", { className: G.stateLayer }),
2364
- p && /* @__PURE__ */ i("div", { className: G.leadingIcon, children: W.isValidElement(p) ? p : /* @__PURE__ */ i(J, { className: "w-5 h-5", icon: p }) }),
2365
- !(!I && !m.length || e == "filled") && /* @__PURE__ */ i(
2327
+ g && /* @__PURE__ */ i("div", { className: G.leadingIcon, children: $.isValidElement(g) ? g : /* @__PURE__ */ i(Q, { className: "w-5 h-5", icon: g }) }),
2328
+ !(!k && !y.length || e == "filled") && /* @__PURE__ */ i(
2366
2329
  U.legend,
2367
2330
  {
2368
2331
  variants: {
@@ -2370,7 +2333,7 @@ const et = {
2370
2333
  visible: { width: "auto", padding: "0 8px" }
2371
2334
  },
2372
2335
  initial: "hidden",
2373
- animate: !I && !m.length ? "hidden" : "visible",
2336
+ animate: !k && !y.length ? "hidden" : "visible",
2374
2337
  className: "max-w-full ml-2 px-2 text-body-small h-0",
2375
2338
  transition: { duration: 0.2 },
2376
2339
  children: /* @__PURE__ */ i("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ i(
@@ -2378,22 +2341,22 @@ const et = {
2378
2341
  {
2379
2342
  className: G.label,
2380
2343
  transition: { duration: 0.3 },
2381
- layoutId: Q,
2344
+ layoutId: A,
2382
2345
  children: o
2383
2346
  }
2384
2347
  ) })
2385
2348
  }
2386
2349
  ),
2387
2350
  /* @__PURE__ */ P("div", { className: "flex-1 relative", children: [
2388
- (!I && !m.length || e == "filled") && /* @__PURE__ */ i(
2351
+ (!k && !y.length || e == "filled") && /* @__PURE__ */ i(
2389
2352
  U.label,
2390
2353
  {
2391
2354
  htmlFor: c,
2392
2355
  className: f(
2393
2356
  "absolute left-4 transition-all duration-300",
2394
2357
  {
2395
- "text-body-small top-2": e == "filled" && !(!I && !m.length),
2396
- "text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!I && !m.length))
2358
+ "text-body-small top-2": e == "filled" && !(!k && !y.length),
2359
+ "text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!k && !y.length))
2397
2360
  }
2398
2361
  ),
2399
2362
  transition: { duration: 0.3 },
@@ -2402,27 +2365,27 @@ const et = {
2402
2365
  {
2403
2366
  className: G.label,
2404
2367
  transition: { duration: 0.3 },
2405
- layoutId: e == "outlined" ? Q : void 0,
2368
+ layoutId: e == "outlined" ? A : void 0,
2406
2369
  children: o
2407
2370
  }
2408
2371
  )
2409
2372
  }
2410
2373
  ),
2411
2374
  /* @__PURE__ */ i(
2412
- g,
2375
+ h,
2413
2376
  {
2414
- ref: h,
2415
- value: m,
2377
+ ref: m,
2378
+ value: y,
2416
2379
  onChange: q,
2417
2380
  className: G.input,
2418
2381
  id: c,
2419
2382
  name: c,
2420
- placeholder: I ? n ?? void 0 : "",
2421
- onFocus: A,
2422
- onBlur: Y,
2383
+ placeholder: k ? r ?? void 0 : "",
2384
+ onFocus: _,
2385
+ onBlur: Z,
2423
2386
  disabled: t,
2424
- autoComplete: y,
2425
- "aria-invalid": !!(r != null && r.length),
2387
+ autoComplete: p,
2388
+ "aria-invalid": !!(n != null && n.length),
2426
2389
  "aria-label": o,
2427
2390
  ...x
2428
2391
  }
@@ -2437,7 +2400,7 @@ const et = {
2437
2400
  V.stopPropagation();
2438
2401
  },
2439
2402
  className: G.trailingIcon,
2440
- children: W.isValidElement(u) ? u : /* @__PURE__ */ i(J, { className: "h-5", icon: u })
2403
+ children: $.isValidElement(u) ? u : /* @__PURE__ */ i(Q, { className: "h-5", icon: u })
2441
2404
  }
2442
2405
  ),
2443
2406
  !u && l && /* @__PURE__ */ i("span", { className: G.suffix, children: l })
@@ -2449,39 +2412,39 @@ const et = {
2449
2412
  " absolute right-0": !u
2450
2413
  }),
2451
2414
  children: /* @__PURE__ */ i(
2452
- J,
2415
+ Q,
2453
2416
  {
2454
2417
  className: "h-5 text-error",
2455
- icon: tt
2418
+ icon: et
2456
2419
  }
2457
2420
  )
2458
2421
  }
2459
2422
  )
2460
2423
  ] }),
2461
- D && /* @__PURE__ */ i("p", { className: G.supportingText, children: r != null && r.length ? r : d != null && d.length ? d : " " })
2424
+ W && /* @__PURE__ */ i("p", { className: G.supportingText, children: n != null && n.length ? n : d != null && d.length ? d : " " })
2462
2425
  ] });
2463
- }, rt = H(
2426
+ }, nt = H(
2464
2427
  "navigationRailItem",
2465
- ({ isSelected: e, icon: t, label: r, variant: n }) => ({
2428
+ ({ isSelected: e, icon: t, label: n, variant: r }) => ({
2466
2429
  navigationRailItem: f(" group flex flex-col pt-1 pb-1.5 cursor-pointer", {
2467
2430
  "text-on-surface-variant": !e,
2468
2431
  "text-on-secondary-container": e,
2469
- "gap-2 h-[68px]": n == "vertical",
2470
- "gap-0 h-[66px]": n == "horizontal"
2432
+ "gap-2 h-[68px]": r == "vertical",
2433
+ "gap-0 h-[66px]": r == "horizontal"
2471
2434
  }),
2472
2435
  container: f(
2473
2436
  " w-fit flex justify-center relative rounded-full items-center mx-5",
2474
2437
  {
2475
2438
  "bg-secondary-container overflow-hidden": e,
2476
- "gap-2 ": n == "horizontal",
2477
- "gap-0 ": n == "vertical",
2478
- "p-4": !r
2439
+ "gap-2 ": r == "horizontal",
2440
+ "gap-0 ": r == "vertical",
2441
+ "p-4": !n
2479
2442
  },
2480
- r && [
2443
+ n && [
2481
2444
  "px-4",
2482
2445
  {
2483
- "py-1 ": n == "vertical",
2484
- "py-4 ": n == "horizontal"
2446
+ "py-1 ": r == "vertical",
2447
+ "py-4 ": r == "horizontal"
2485
2448
  }
2486
2449
  ]
2487
2450
  ),
@@ -2494,61 +2457,61 @@ const et = {
2494
2457
  ),
2495
2458
  icon: f("size-6 flex"),
2496
2459
  label: f("w-fit mx-auto", {
2497
- "text-label-large ": n == "horizontal",
2498
- "text-label-medium": n == "vertical"
2460
+ "text-label-large ": r == "horizontal",
2461
+ "text-label-medium": r == "vertical"
2499
2462
  })
2500
2463
  })
2501
- ), lt = ({ label: e }) => /* @__PURE__ */ i("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ i("p", { className: "text-label-large text-on-surface-variant", children: e }) }), ot = ({
2464
+ ), rt = ({ label: e }) => /* @__PURE__ */ i("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ i("p", { className: "text-label-large text-on-surface-variant", children: e }) }), lt = ({
2502
2465
  className: e,
2503
2466
  onClick: t,
2504
- label: r,
2505
- variant: n = "vertical",
2467
+ label: n,
2468
+ variant: r = "vertical",
2506
2469
  href: l,
2507
2470
  icon: c,
2508
2471
  selectedItem: o,
2509
2472
  setSelectedItem: s,
2510
2473
  index: d,
2511
2474
  onItemSelected: u,
2512
- selected: p = !1,
2475
+ selected: g = !1,
2513
2476
  ref: w,
2514
2477
  transition: a,
2515
- isExtended: y,
2478
+ isExtended: p,
2516
2479
  iconSelected: v,
2517
2480
  style: b,
2518
2481
  extendedOnly: L,
2519
2482
  ...E
2520
2483
  }) => {
2521
- const m = O(null), N = w || m, [I, k] = S(p);
2522
- $(() => {
2523
- p && o == null ? k(!0) : k(o == d && d != null);
2524
- }, [o]), $(() => {
2484
+ const y = X(null), N = w || y, [k, M] = S(g);
2485
+ D(() => {
2486
+ g && o == null ? M(!0) : M(o == d && d != null);
2487
+ }, [o]), D(() => {
2525
2488
  o == d && u && u({
2526
2489
  ref: N,
2527
2490
  index: d || 0,
2528
- label: r,
2491
+ label: n,
2529
2492
  icon: c
2530
2493
  });
2531
2494
  }, [o]);
2532
2495
  const C = l ? "a" : "button", B = (R) => {
2533
2496
  s && s(d ?? null), t && t(R);
2534
- }, D = rt({
2535
- isExtended: y,
2497
+ }, W = nt({
2498
+ isExtended: p,
2536
2499
  extendedOnly: L,
2537
2500
  className: e,
2538
2501
  onItemSelected: u,
2539
2502
  selectedItem: o,
2540
2503
  index: d,
2541
2504
  transition: a,
2542
- selected: I,
2543
- variant: n,
2505
+ selected: k,
2506
+ variant: r,
2544
2507
  icon: c,
2545
- label: r,
2546
- isSelected: I,
2508
+ label: n,
2509
+ isSelected: k,
2547
2510
  setSelectedItem: s,
2548
2511
  href: l,
2549
2512
  iconSelected: v
2550
2513
  });
2551
- return a = { duration: 0.3, ...a }, L && !y ? null : (
2514
+ return a = { duration: 0.3, ...a }, L && !p ? null : (
2552
2515
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2553
2516
  // @ts-expect-error
2554
2517
  /* @__PURE__ */ P(
@@ -2556,10 +2519,10 @@ const et = {
2556
2519
  {
2557
2520
  ...E,
2558
2521
  role: "tab",
2559
- "aria-selected": I,
2522
+ "aria-selected": k,
2560
2523
  ref: N,
2561
2524
  href: l,
2562
- className: D.navigationRailItem,
2525
+ className: W.navigationRailItem,
2563
2526
  onClick: B,
2564
2527
  style: { transition: a.duration + "s", ...b },
2565
2528
  children: [
@@ -2567,27 +2530,27 @@ const et = {
2567
2530
  U.div,
2568
2531
  {
2569
2532
  style: {
2570
- transition: n == "horizontal" ? a.duration + `s, gap ${a.duration / 2}s ${a.duration - a.duration / 2}s` : a.duration + `s, gap ${a.duration / 3}s ${a.duration - a.duration / 3}s`
2533
+ transition: r == "horizontal" ? a.duration + `s, gap ${a.duration / 2}s ${a.duration - a.duration / 2}s` : a.duration + `s, gap ${a.duration / 3}s ${a.duration - a.duration / 3}s`
2571
2534
  },
2572
2535
  transition: a,
2573
- className: D.container,
2536
+ className: W.container,
2574
2537
  children: [
2575
- /* @__PURE__ */ i(U.div, { layout: !0, className: D.stateLayer }),
2538
+ /* @__PURE__ */ i(U.div, { layout: !0, className: W.stateLayer }),
2576
2539
  c && /* @__PURE__ */ i(
2577
- J,
2540
+ Q,
2578
2541
  {
2579
- icon: I ? v : c,
2580
- className: D.icon
2542
+ icon: k ? v : c,
2543
+ className: W.icon
2581
2544
  }
2582
2545
  ),
2583
- /* @__PURE__ */ i(z, { children: n == "horizontal" && (() => {
2546
+ /* @__PURE__ */ i(z, { children: r == "horizontal" && (() => {
2584
2547
  const R = {
2585
2548
  width: 0,
2586
2549
  opacity: 0,
2587
2550
  transition: {
2588
2551
  ...a
2589
2552
  }
2590
- }, h = {
2553
+ }, m = {
2591
2554
  width: "auto",
2592
2555
  opacity: 1,
2593
2556
  transition: {
@@ -2602,17 +2565,17 @@ const et = {
2602
2565
  U.span,
2603
2566
  {
2604
2567
  initial: R,
2605
- animate: h,
2568
+ animate: m,
2606
2569
  exit: R,
2607
- className: D.label,
2608
- children: r
2570
+ className: W.label,
2571
+ children: n
2609
2572
  }
2610
2573
  );
2611
2574
  })() })
2612
2575
  ]
2613
2576
  }
2614
2577
  ),
2615
- /* @__PURE__ */ i(z, { children: n == "vertical" && (() => {
2578
+ /* @__PURE__ */ i(z, { children: r == "vertical" && (() => {
2616
2579
  const R = {
2617
2580
  height: 0,
2618
2581
  opacity: 0,
@@ -2622,7 +2585,7 @@ const et = {
2622
2585
  duration: 0
2623
2586
  }
2624
2587
  }
2625
- }, h = {
2588
+ }, m = {
2626
2589
  height: "auto",
2627
2590
  opacity: 1,
2628
2591
  transition: {
@@ -2637,11 +2600,11 @@ const et = {
2637
2600
  U.span,
2638
2601
  {
2639
2602
  initial: R,
2640
- animate: h,
2603
+ animate: m,
2641
2604
  exit: R,
2642
- className: D.label,
2605
+ className: W.label,
2643
2606
  transition: a,
2644
- children: r
2607
+ children: n
2645
2608
  }
2646
2609
  );
2647
2610
  })() })
@@ -2649,7 +2612,7 @@ const et = {
2649
2612
  }
2650
2613
  )
2651
2614
  );
2652
- }, at = H(
2615
+ }, ot = H(
2653
2616
  "navigationRail",
2654
2617
  ({ isExtended: e, alignment: t }) => ({
2655
2618
  navigationRail: f("flex flex-col left-0 h-full top-0 pt-11", {
@@ -2665,71 +2628,71 @@ const et = {
2665
2628
  "w-fit items-start": e
2666
2629
  })
2667
2630
  })
2668
- ), Nt = ({
2631
+ ), Lt = ({
2669
2632
  variant: e = "standard",
2670
2633
  onItemSelected: t,
2671
- children: r,
2672
- className: n,
2634
+ children: n,
2635
+ className: r,
2673
2636
  selectedItem: l,
2674
2637
  extended: c,
2675
2638
  alignment: o = "top",
2676
2639
  menu: s = {
2677
2640
  closed: {
2678
- icon: et,
2641
+ icon: Te,
2679
2642
  label: "Open menu"
2680
2643
  },
2681
2644
  opened: {
2682
- icon: ge,
2645
+ icon: ye,
2683
2646
  label: "Close menu"
2684
2647
  }
2685
2648
  },
2686
2649
  style: d,
2687
2650
  onExtendedChange: u,
2688
- transition: p,
2651
+ transition: g,
2689
2652
  setSelectedItem: w
2690
2653
  }) => {
2691
- const [a, y] = S(null), [v, b] = S(c);
2654
+ const [a, p] = S(null), [v, b] = S(c);
2692
2655
  let L;
2693
2656
  l == 0 || l != null ? L = l : L = a;
2694
- const E = w || y, m = W.useRef(null), N = (R) => {
2657
+ const E = w || p, y = $.useRef(null), N = (R) => {
2695
2658
  t == null || t(R);
2696
2659
  };
2697
- function I(R) {
2698
- const h = [];
2699
- return W.Children.forEach(R, (j) => {
2700
- W.isValidElement(j) && j.type === W.Fragment ? h.push(...I(j.props.children)) : h.push(j);
2701
- }), h;
2660
+ function k(R) {
2661
+ const m = [];
2662
+ return $.Children.forEach(R, (j) => {
2663
+ $.isValidElement(j) && j.type === $.Fragment ? m.push(...k(j.props.children)) : m.push(j);
2664
+ }), m;
2702
2665
  }
2703
- const k = I(r), C = k.filter(
2704
- (R) => W.isValidElement(R) && R.type === ce
2705
- ), B = at({
2706
- children: r,
2666
+ const M = k(n), C = M.filter(
2667
+ (R) => $.isValidElement(R) && R.type === ce
2668
+ ), B = ot({
2669
+ children: n,
2707
2670
  onItemSelected: t,
2708
2671
  selectedItem: L,
2709
2672
  setSelectedItem: E,
2710
- className: n,
2673
+ className: r,
2711
2674
  variant: e,
2712
2675
  extended: v,
2713
2676
  isExtended: v,
2714
2677
  alignment: o,
2715
2678
  menu: s,
2716
- transition: p,
2679
+ transition: g,
2717
2680
  onExtendedChange: u
2718
2681
  });
2719
- p = { duration: 0.3, ...p };
2720
- const D = O(!1);
2721
- return D.current = !1, $(() => {
2682
+ g = { duration: 0.3, ...g };
2683
+ const W = X(!1);
2684
+ return W.current = !1, D(() => {
2722
2685
  u == null || u(v ?? !1);
2723
2686
  }, [v]), /* @__PURE__ */ P(
2724
2687
  "div",
2725
2688
  {
2726
- style: { transition: p.duration + "s", ...d },
2727
- ref: m,
2689
+ style: { transition: g.duration + "s", ...d },
2690
+ ref: y,
2728
2691
  className: B.navigationRail,
2729
2692
  children: [
2730
2693
  /* @__PURE__ */ P("div", { className: B.header, children: [
2731
2694
  /* @__PURE__ */ i(
2732
- ye,
2695
+ he,
2733
2696
  {
2734
2697
  onClick: () => b(!v),
2735
2698
  arialLabel: v ? s == null ? void 0 : s.opened.label : s == null ? void 0 : s.closed.label,
@@ -2737,10 +2700,10 @@ const et = {
2737
2700
  icon: v ? s.opened.icon : s == null ? void 0 : s.closed.icon
2738
2701
  }
2739
2702
  ),
2740
- C.length > 0 && W.cloneElement(
2703
+ C.length > 0 && $.cloneElement(
2741
2704
  C[0],
2742
2705
  {
2743
- transition: p,
2706
+ transition: g,
2744
2707
  isExtended: v,
2745
2708
  className: "!shadow-none mx-5 " + C[0].props.className
2746
2709
  }
@@ -2748,8 +2711,8 @@ const et = {
2748
2711
  ] }),
2749
2712
  /* @__PURE__ */ i("div", { className: B.segments, children: (() => {
2750
2713
  let R = 0;
2751
- return k.map((h) => W.isValidElement(h) && h.type === ot ? W.cloneElement(
2752
- h,
2714
+ return M.map((m) => $.isValidElement(m) && m.type === lt ? $.cloneElement(
2715
+ m,
2753
2716
  {
2754
2717
  key: R,
2755
2718
  index: R++,
@@ -2758,14 +2721,14 @@ const et = {
2758
2721
  selectedItem: L,
2759
2722
  setSelectedItem: E,
2760
2723
  onItemSelected: N,
2761
- transition: p,
2762
- extendedOnly: D.current,
2724
+ transition: g,
2725
+ extendedOnly: W.current,
2763
2726
  isExtended: v
2764
2727
  }
2765
- ) : W.isValidElement(h) && h.type === ce ? null : W.isValidElement(h) && h.type === lt ? (D.current = !0, v ? W.cloneElement(
2766
- h,
2728
+ ) : $.isValidElement(m) && m.type === ce ? null : $.isValidElement(m) && m.type === rt ? (W.current = !0, v ? $.cloneElement(
2729
+ m,
2767
2730
  {}
2768
- ) : null) : h);
2731
+ ) : null) : m);
2769
2732
  })() }),
2770
2733
  /* @__PURE__ */ i("div", { className: "flex-1 max-h-[160px]" })
2771
2734
  ]
@@ -2773,48 +2736,48 @@ const et = {
2773
2736
  );
2774
2737
  };
2775
2738
  export {
2776
- Ae as Button,
2777
- pt as Card,
2778
- ht as Carousel,
2739
+ Ye as Button,
2740
+ ht as Card,
2741
+ yt as Carousel,
2779
2742
  Ze as CarouselItem,
2780
- pe as CustomScroll,
2781
- yt as Divider,
2743
+ me as CustomScroll,
2744
+ xt as Divider,
2782
2745
  ce as Fab,
2783
- J as Icon,
2784
- ye as IconButton,
2785
- Nt as NavigationRail,
2786
- ot as NavigationRailItem,
2787
- lt as NavigationRailSection,
2746
+ Q as Icon,
2747
+ he as IconButton,
2748
+ Lt as NavigationRail,
2749
+ lt as NavigationRailItem,
2750
+ rt as NavigationRailSection,
2788
2751
  Ge as ProgressIndicator,
2789
2752
  ne as RippleEffect,
2790
2753
  gt as Slider,
2791
- mt as SmoothScroll,
2792
- xt as Snackbar,
2793
- wt as Switch,
2794
- _e as SyncedFixedWrapper,
2795
- nt as Tab,
2796
- vt as Tabs,
2797
- bt as TextField,
2798
- he as ToolTip,
2799
- Re as buttonStyle,
2754
+ pt as SmoothScroll,
2755
+ wt as Snackbar,
2756
+ vt as Switch,
2757
+ He as SyncedFixedWrapper,
2758
+ tt as Tab,
2759
+ bt as Tabs,
2760
+ Nt as TextField,
2761
+ pe as ToolTip,
2762
+ Me as buttonStyle,
2800
2763
  Se as cardStyle,
2801
2764
  Ce as carouselItemStyle,
2802
2765
  Ve as carouselStyle,
2803
2766
  f as classNames,
2804
2767
  Ie as classnames,
2805
- He as customScrollStyle,
2768
+ qe as customScrollStyle,
2806
2769
  H as defaultClassNames,
2807
2770
  Be as dividerStyle,
2808
- De as fabStyle,
2809
- Me as getClassNames,
2810
- $e as iconButtonStyle,
2811
- Ye as normalize,
2812
- We as progressIndicatorStyle,
2771
+ We as fabStyle,
2772
+ Re as getClassNames,
2773
+ De as iconButtonStyle,
2774
+ _e as normalize,
2775
+ $e as progressIndicatorStyle,
2813
2776
  Pe as sliderStyle,
2814
2777
  Ue as snackbarStyle,
2815
2778
  je as switchStyle,
2816
- Oe as tabStyle,
2817
- Xe as tabsStyle,
2818
- Fe as textFieldStyle,
2779
+ Xe as tabStyle,
2780
+ Fe as tabsStyle,
2781
+ Oe as textFieldStyle,
2819
2782
  Ke as toolStyle
2820
2783
  };