@udixio/ui-react 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { jsx as u, jsxs as A, Fragment as T } from "react/jsx-runtime";
2
- import { clsx as we } from "clsx";
3
- import { extendTailwindMerge as Ie } from "tailwind-merge";
4
- import K, { useState as S, useEffect as R, useRef as W, useLayoutEffect as xe, useMemo as ue, isValidElement as te, cloneElement as oe, Children as ke, Fragment as Se } from "react";
5
- import { motion as F, AnimatePresence as Q, useScroll as $e, useMotionValueEvent as he, motionValue as Ce, useTransform as pe } from "motion/react";
6
- import { throttle as Me } from "throttle-debounce";
1
+ import { jsx as u, jsxs as V, Fragment as te } from "react/jsx-runtime";
2
+ import { clsx as ge } from "clsx";
3
+ import { extendTailwindMerge as Ee } from "tailwind-merge";
4
+ import K, { useState as S, useEffect as R, useRef as D, useLayoutEffect as ve, isValidElement as ee, cloneElement as oe, useMemo as Ie, Children as ke, Fragment as Se } from "react";
5
+ import { motion as F, AnimatePresence as Q, useScroll as Me, useMotionValueEvent as fe, motionValue as $e, useTransform as me } from "motion/react";
6
+ import { throttle as Ce } from "throttle-debounce";
7
7
  import { animate as Re } from "motion";
8
- import { createPortal as be } from "react-dom";
9
- import { loader as Be, defineConfig as We, FontPlugin as De, Variants as Pe } from "@udixio/theme";
10
- import { TailwindPlugin as Le } from "@udixio/tailwind";
11
- import Ae from "react-textarea-autosize";
12
- const Ne = Ie({
8
+ import { createPortal as xe } from "react-dom";
9
+ import { loader as Be, defineConfig as De, FontPlugin as We, Variants as Pe } from "@udixio/theme";
10
+ import { TailwindPlugin as we } from "@udixio/tailwind";
11
+ import Ve from "react-textarea-autosize";
12
+ const be = Ee({
13
13
  override: {
14
14
  classGroups: {
15
15
  "text-color": [
@@ -35,48 +35,48 @@ const Ne = Ie({
35
35
  font: ["font"]
36
36
  }
37
37
  }
38
- }), h = (...e) => Ne(we(e)), Ve = (...e) => Ne(we(e));
38
+ }), h = (...e) => be(ge(e)), Ae = (...e) => be(ge(e));
39
39
  function Fe(e) {
40
40
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
41
41
  }
42
42
  const He = (e) => {
43
43
  const t = {};
44
- e.classNameList.forEach((o) => {
44
+ e.classNameList.forEach((l) => {
45
45
  var r;
46
- if (o)
47
- if (typeof o == "string")
48
- (t[r = e.default] ?? (t[r] = [])).push(o);
46
+ if (l)
47
+ if (typeof l == "string")
48
+ (t[r = e.default] ?? (t[r] = [])).push(l);
49
49
  else {
50
- const c = o(e.states);
50
+ const c = l(e.states);
51
51
  Object.entries(c).map((i) => {
52
- const [s, d] = i;
53
- (t[s] ?? (t[s] = [])).push(d);
52
+ const [s, f] = i;
53
+ (t[s] ?? (t[s] = [])).push(f);
54
54
  });
55
55
  }
56
56
  });
57
57
  const n = t;
58
- return Object.entries(t).map((o) => {
59
- let [r, c] = o;
60
- c = c.reverse(), r == e.default && c.unshift("relative"), c.unshift(Fe(r)), n[r] = Ve(...c);
58
+ return Object.entries(t).map((l) => {
59
+ let [r, c] = l;
60
+ c = c.reverse(), r == e.default && c.unshift("relative"), c.unshift(Fe(r)), n[r] = Ae(...c);
61
61
  }), n;
62
- }, O = (e, t) => (n) => He({
62
+ }, j = (e, t) => (n) => He({
63
63
  classNameList: [n.className, t],
64
64
  default: e,
65
65
  states: n
66
- }), Ue = O(
66
+ }), Ue = j(
67
67
  "button",
68
68
  ({
69
69
  variant: e,
70
70
  disableTextMargins: t,
71
71
  disabled: n,
72
- iconPosition: o,
72
+ iconPosition: l,
73
73
  icon: r,
74
74
  isActive: c,
75
75
  loading: i,
76
76
  shape: s,
77
- onToggle: d,
77
+ onToggle: f,
78
78
  size: a,
79
- allowShapeTransformation: y
79
+ allowShapeTransformation: p
80
80
  }) => ({
81
81
  button: h(
82
82
  " relative cursor-pointer group outline-none inline-block flex justify-center items-center ",
@@ -90,12 +90,12 @@ const He = (e) => {
90
90
  "rounded-[40px]": a === "medium",
91
91
  "rounded-[70px]": a === "large" || a == "xLarge"
92
92
  },
93
- (s === "squared" || y && c) && {
93
+ (s === "squared" || p && c) && {
94
94
  "rounded-[12px]": a === "xSmall" || a == "small",
95
95
  "rounded-[16px]": a === "medium",
96
96
  "rounded-[28px]": a === "large" || a == "xLarge"
97
97
  },
98
- y && !n && {
98
+ p && !n && {
99
99
  "active:rounded-[12px]": a === "xSmall" || a == "small",
100
100
  "active:rounded-[16px]": a === "medium",
101
101
  "active:rounded-[28px]": a === "large" || a == "xLarge"
@@ -108,8 +108,8 @@ const He = (e) => {
108
108
  },
109
109
  e === "filled" && {
110
110
  "hover:shadow-1": !n,
111
- "bg-surface-container text-on-surface-variant": !n && !c && d,
112
- "bg-primary text-on-primary": !n && (c && d || !d),
111
+ "bg-surface-container text-on-surface-variant": !n && !c && f,
112
+ "bg-primary text-on-primary": !n && (c && f || !f),
113
113
  "text-on-surface/[38%]": n
114
114
  },
115
115
  e === "tonal" && {
@@ -157,20 +157,20 @@ const He = (e) => {
157
157
  },
158
158
  e === "filled" && {
159
159
  "bg-on-surface/[0.12]": n,
160
- "group-state-on-primary": !n && !d,
161
- "group-state-on-surface-variant": !n && d
160
+ "group-state-on-primary": !n && !f,
161
+ "group-state-on-surface-variant": !n && f
162
162
  },
163
163
  s === "rounded" && {
164
164
  "rounded-[30px]": a === "xSmall" || a == "small",
165
165
  "rounded-[40px]": a === "medium",
166
166
  "rounded-[70px]": a === "large" || a == "xLarge"
167
167
  },
168
- (s === "squared" || y && c) && {
168
+ (s === "squared" || p && c) && {
169
169
  "rounded-[12px]": a === "xSmall" || a == "small",
170
170
  "rounded-[16px]": a === "medium",
171
171
  "rounded-[28px]": a === "large" || a == "xLarge"
172
172
  },
173
- y && !n && {
173
+ p && !n && {
174
174
  "group-active:rounded-[12px]": a === "xSmall" || a == "small",
175
175
  "group-active:rounded-[16px]": a === "medium",
176
176
  "group-active:rounded-[28px]": a === "large" || a == "xLarge"
@@ -196,7 +196,7 @@ const He = (e) => {
196
196
  a === "xLarge" && "size-10"
197
197
  )
198
198
  })
199
- ), Xe = O(
199
+ ), Oe = j(
200
200
  "card",
201
201
  ({ variant: e, isInteractive: t }) => ({
202
202
  card: h(
@@ -212,12 +212,12 @@ const He = (e) => {
212
212
  }
213
213
  ])
214
214
  })
215
- ), Ye = O(
215
+ ), Xe = j(
216
216
  "carouselItem",
217
217
  () => ({
218
218
  carouselItem: h("rounded-[28px] overflow-hidden flex-none")
219
219
  })
220
- ), je = O(
220
+ ), Ye = j(
221
221
  "carousel",
222
222
  () => ({
223
223
  carousel: h(["w-full h-[400px]"]),
@@ -225,7 +225,7 @@ const He = (e) => {
225
225
  "grid grid-flow-col h-full transition-transform ease-out w-fit"
226
226
  )
227
227
  })
228
- ), Oe = O(
228
+ ), je = j(
229
229
  "divider",
230
230
  ({ orientation: e }) => ({
231
231
  divider: h(
@@ -238,7 +238,7 @@ const He = (e) => {
238
238
  }
239
239
  )
240
240
  })
241
- ), qe = O(
241
+ ), qe = j(
242
242
  "fab",
243
243
  ({ size: e, variant: t, isExtended: n }) => ({
244
244
  fab: h(
@@ -275,13 +275,13 @@ const He = (e) => {
275
275
  }),
276
276
  label: h("text-title-medium text-nowrap")
277
277
  })
278
- ), _e = O(
278
+ ), _e = j(
279
279
  "iconButton",
280
280
  ({
281
281
  variant: e,
282
282
  disabled: t,
283
283
  onToggle: n,
284
- isActive: o,
284
+ isActive: l,
285
285
  size: r,
286
286
  width: c,
287
287
  shape: i,
@@ -293,12 +293,12 @@ const He = (e) => {
293
293
  {
294
294
  "cursor-default": t
295
295
  },
296
- (i === "rounded" || i === "squared" && n && !t && o && s) && {
296
+ (i === "rounded" || i === "squared" && n && !t && l && s) && {
297
297
  "rounded-[30px]": r === "xSmall" || r == "small",
298
298
  "rounded-[40px]": r === "medium",
299
299
  "rounded-[70px]": r === "large" || r == "xLarge"
300
300
  },
301
- (i === "squared" || i === "rounded" && n && !t && o && s) && {
301
+ (i === "squared" || i === "rounded" && n && !t && l && s) && {
302
302
  "rounded-[12px]": r === "xSmall" || r == "small",
303
303
  "rounded-[16px]": r === "medium",
304
304
  "rounded-[28px]": r === "large" || r == "xLarge"
@@ -310,26 +310,26 @@ const He = (e) => {
310
310
  },
311
311
  e === "filled" && [
312
312
  !t && {
313
- "bg-surface-container": !o && !!n,
314
- "bg-primary": o || !n
313
+ "bg-surface-container": !l && !!n,
314
+ "bg-primary": l || !n
315
315
  },
316
316
  !!t && "bg-on-surface/[0.12]"
317
317
  ],
318
318
  e === "tonal" && [
319
319
  !t && {
320
- "bg-surface-container": !o && !!n,
321
- "bg-secondary-container": o || !n
320
+ "bg-surface-container": !l && !!n,
321
+ "bg-secondary-container": l || !n
322
322
  },
323
323
  !!t && "bg-on-surface/[0.12]"
324
324
  ],
325
325
  e === "outlined" && [
326
326
  !t && {
327
- "border border-outline": !o,
328
- "border border-transparent bg-inverse-surface": o
327
+ "border border-outline": !l,
328
+ "border border-transparent bg-inverse-surface": l
329
329
  },
330
330
  !!t && {
331
- "border border-on-surface/[0.12]": !o,
332
- "border border-transparent bg-on-surface/[0.12]": o
331
+ "border border-on-surface/[0.12]": !l,
332
+ "border border-transparent bg-on-surface/[0.12]": l
333
333
  }
334
334
  ]
335
335
  ),
@@ -338,12 +338,12 @@ const He = (e) => {
338
338
  ),
339
339
  stateLayer: h(
340
340
  "absolute top-0 left-0 h-full w-full overflow-hidden",
341
- (i === "rounded" || i === "squared" && n && !t && o && s) && {
341
+ (i === "rounded" || i === "squared" && n && !t && l && s) && {
342
342
  "rounded-[30px]": r === "xSmall" || r == "small",
343
343
  "rounded-[40px]": r === "medium",
344
344
  "rounded-[70px]": r === "large" || r == "xLarge"
345
345
  },
346
- (i === "squared" || i === "rounded" && n && !t && o && s) && {
346
+ (i === "squared" || i === "rounded" && n && !t && l && s) && {
347
347
  "rounded-[12px]": r === "xSmall" || r == "small",
348
348
  "rounded-[16px]": r === "medium",
349
349
  "rounded-[28px]": r === "large" || r == "xLarge"
@@ -355,20 +355,20 @@ const He = (e) => {
355
355
  },
356
356
  !t && [
357
357
  e === "standard" && {
358
- "state-on-surface-variant": !o,
359
- "state-primary": o
358
+ "state-on-surface-variant": !l,
359
+ "state-primary": l
360
360
  },
361
361
  e === "filled" && {
362
- "state-primary": !o && !!n,
363
- "state-inverse-on-surface": o || !n
362
+ "state-primary": !l && !!n,
363
+ "state-inverse-on-surface": l || !n
364
364
  },
365
365
  e === "tonal" && {
366
- "state-on-surface-variant": !o && !!n,
367
- "state-on-secondary-container": o || !n
366
+ "state-on-surface-variant": !l && !!n,
367
+ "state-on-secondary-container": l || !n
368
368
  },
369
369
  e === "outlined" && {
370
- "state-on-surface-variant": !o,
371
- "state-on-primary": o
370
+ "state-on-surface-variant": !l,
371
+ "state-on-primary": l
372
372
  }
373
373
  ]
374
374
  ),
@@ -395,26 +395,26 @@ const He = (e) => {
395
395
  ],
396
396
  !t && [
397
397
  e === "standard" && {
398
- "text-on-surface-variant": !o,
399
- "text-primary": o
398
+ "text-on-surface-variant": !l,
399
+ "text-primary": l
400
400
  },
401
401
  e === "filled" && {
402
- "text-primary": !o && !!n,
403
- "text-on-primary": o || !n
402
+ "text-primary": !l && !!n,
403
+ "text-on-primary": l || !n
404
404
  },
405
405
  e === "tonal" && {
406
- "text-on-surface-variant": !o && !!n,
407
- "text-on-secondary-container": o || !n
406
+ "text-on-surface-variant": !l && !!n,
407
+ "text-on-secondary-container": l || !n
408
408
  },
409
409
  e === "outlined" && {
410
- "text-on-surface-variant": !o,
411
- "text-inverse-on-surface": o
410
+ "text-on-surface-variant": !l,
411
+ "text-inverse-on-surface": l
412
412
  }
413
413
  ],
414
414
  !!t && "text-on-surface/[0.38]"
415
415
  )
416
416
  })
417
- ), Ke = O(
417
+ ), Ke = j(
418
418
  "progressIndicator",
419
419
  ({ variant: e, isVisible: t }) => ({
420
420
  progressIndicator: h(
@@ -446,7 +446,7 @@ const He = (e) => {
446
446
  }
447
447
  )
448
448
  })
449
- ), Ge = O(
449
+ ), Ge = j(
450
450
  "slideSheet",
451
451
  ({ variant: e, position: t }) => ({
452
452
  slideSheet: h(
@@ -473,7 +473,7 @@ const He = (e) => {
473
473
  "bg-[black]/[0.32] fixed top-0 left-0 w-screen h-screen"
474
474
  )
475
475
  })
476
- ), Je = O(
476
+ ), Je = j(
477
477
  "slider",
478
478
  ({ isChanging: e }) => ({
479
479
  slider: h([
@@ -496,7 +496,7 @@ const He = (e) => {
496
496
  "h-1 w-1 absolute transform -translate-y-1/2 -translate-x-1/2 top-1/2 rounded-full"
497
497
  ])
498
498
  })
499
- ), Ze = O(
499
+ ), Ze = j(
500
500
  "snackbar",
501
501
  () => ({
502
502
  snackbar: h(" rounded bg-inverse-surface "),
@@ -506,7 +506,7 @@ const He = (e) => {
506
506
  supportingText: h("text-body-medium text-inverse-on-surface "),
507
507
  icon: h(" ml-auto mr-0 text-inverse-on-surface block dark")
508
508
  })
509
- ), Qe = O(
509
+ ), Qe = j(
510
510
  "switch",
511
511
  ({ isSelected: e, disabled: t, inactiveIcon: n }) => ({
512
512
  switch: h(
@@ -549,66 +549,66 @@ const He = (e) => {
549
549
  { "text-on-surface/[0.38]": t }
550
550
  )
551
551
  })
552
- ), ze = O(
552
+ ), ze = j(
553
553
  "tab",
554
- ({ isSelected: e, icon: t, label: n, variant: o }) => ({
554
+ ({ isSelected: e, icon: t, label: n, variant: l }) => ({
555
555
  tab: h(
556
556
  "flex-1 group outline-none flex px-4 justify-center items-center cursor-pointer",
557
557
  { "z-10": e },
558
- !!(t && n) && o === "primary" && "h-16",
559
- !(t && n && o === "primary") && "h-12"
558
+ !!(t && n) && l === "primary" && "h-16",
559
+ !(t && n && l === "primary") && "h-12"
560
560
  ),
561
561
  stateLayer: h(
562
562
  "absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",
563
- o === "primary" && {
563
+ l === "primary" && {
564
564
  "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface": !e,
565
565
  "group-hover:hover-state-primary group-focus-visible:focus-state-primary": e
566
566
  },
567
- o === "secondary" && "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"
567
+ l === "secondary" && "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"
568
568
  ),
569
569
  content: h(
570
570
  "flex gap-0.5 h-full justify-center",
571
571
  {
572
- relative: o == "primary"
572
+ relative: l == "primary"
573
573
  },
574
574
  {
575
575
  "": !!(n && !t)
576
576
  },
577
- o === "primary" && "flex-col items-center",
578
- o === "secondary" && {
577
+ l === "primary" && "flex-col items-center",
578
+ l === "secondary" && {
579
579
  "flex-col items-center": !(n && t),
580
580
  "flex-row items-center gap-2": !!(n && t)
581
581
  }
582
582
  ),
583
583
  icon: h(
584
584
  "h-6 w-6 p-0.5 !box-border",
585
- o === "primary" && {
585
+ l === "primary" && {
586
586
  "text-on-surface-variant": !e,
587
587
  "text-primary": e
588
588
  },
589
- o === "secondary" && {
589
+ l === "secondary" && {
590
590
  "text-on-surface-variant": !e,
591
591
  "text-on-surface": e
592
592
  }
593
593
  ),
594
594
  label: h(
595
595
  "text-title-small text-nowrap",
596
- o === "primary" && {
596
+ l === "primary" && {
597
597
  "text-on-surface-variant": !e,
598
598
  "text-primary": e
599
599
  },
600
- o === "secondary" && {
600
+ l === "secondary" && {
601
601
  "text-on-surface-variant": !e,
602
602
  "text-on-surface": e
603
603
  }
604
604
  ),
605
605
  underline: h(
606
606
  "bg-primary absolute w-full left-0 bottom-0",
607
- o === "primary" && "h-[3px] rounded-t",
608
- o === "secondary" && "h-0.5"
607
+ l === "primary" && "h-[3px] rounded-t",
608
+ l === "secondary" && "h-0.5"
609
609
  )
610
610
  })
611
- ), Te = O(
611
+ ), Te = j(
612
612
  "tabs",
613
613
  ({ scrollable: e }) => ({
614
614
  tabs: h(
@@ -617,37 +617,37 @@ const He = (e) => {
617
617
  { "overflow-x-auto": e }
618
618
  )
619
619
  })
620
- ), et = O(
620
+ ), et = j(
621
621
  "textField",
622
622
  ({
623
623
  disabled: e,
624
624
  leadingIcon: t,
625
625
  trailingIcon: n,
626
- variant: o,
626
+ variant: l,
627
627
  errorText: r,
628
628
  isFocused: c,
629
629
  value: i,
630
630
  suffix: s,
631
- textLine: d
631
+ textLine: f
632
632
  }) => ({
633
633
  textField: h({
634
634
  "opacity-[.38]": e
635
635
  }),
636
636
  content: h(
637
637
  "group transition-border duration-200 relative flex items-center ",
638
- { "h-14": d == "singleLine" },
638
+ { "h-14": f == "singleLine" },
639
639
  {
640
- "border-on-surface-variant": !(r != null && r.length) && !c && o == "filled",
641
- "border-outline": !(r != null && r.length) && !c && o == "outlined",
640
+ "border-on-surface-variant": !(r != null && r.length) && !c && l == "filled",
641
+ "border-outline": !(r != null && r.length) && !c && l == "outlined",
642
642
  "border-primary": !(r != null && r.length) && c,
643
643
  "border-error": !!(r != null && r.length)
644
644
  },
645
645
  { "bg-on-surface/[0.04]": e },
646
- o == "filled" && [
646
+ l == "filled" && [
647
647
  "rounded-t overflow-hidden border-b",
648
648
  { "bg-surface-container-highest": !e }
649
649
  ],
650
- o == "outlined" && [
650
+ l == "outlined" && [
651
651
  "border rounded box-border",
652
652
  {
653
653
  "border-[3px]": c
@@ -657,7 +657,7 @@ const He = (e) => {
657
657
  stateLayer: h(
658
658
  "absolute -z-10 w-full h-full top-0 left-0",
659
659
  {
660
- hidden: o == "outlined"
660
+ hidden: l == "outlined"
661
661
  },
662
662
  {
663
663
  "group-state-on-surface": !e,
@@ -680,12 +680,12 @@ const He = (e) => {
680
680
  {
681
681
  "pr-0": !!s
682
682
  },
683
- o == "filled" && " pb-2 pt-6",
684
- o == "outlined" && "py-4 relative z-10"
683
+ l == "filled" && " pb-2 pt-6",
684
+ l == "outlined" && "py-4 relative z-10"
685
685
  ),
686
686
  activeIndicator: h(
687
687
  "absolute w-0 inset-x-0 border-rounded mx-auto bottom-0",
688
- o == "filled" && [
688
+ l == "filled" && [
689
689
  "h-[2px] transition-all duration-300",
690
690
  { "bg-primary": !(r != null && r.length) },
691
691
  { "bg-error": !!(r != null && r.length) },
@@ -708,11 +708,11 @@ const He = (e) => {
708
708
  }),
709
709
  suffix: h(
710
710
  "text-on-surface-variant pl-0 pr-4",
711
- o == "filled" && " pb-2 pt-6",
712
- o == "outlined" && "py-4 relative z-10"
711
+ l == "filled" && " pb-2 pt-6",
712
+ l == "outlined" && "py-4 relative z-10"
713
713
  )
714
714
  })
715
- ), tt = O(
715
+ ), tt = j(
716
716
  "toolTip",
717
717
  ({ position: e, variant: t }) => ({
718
718
  toolTip: h(
@@ -781,10 +781,10 @@ const He = (e) => {
781
781
  }
782
782
  );
783
783
  }
784
- const o = e;
785
- if (!(o != null && o.prefix))
784
+ const l = e;
785
+ if (!(l != null && l.prefix))
786
786
  throw new Error(`Invalid icon type: ${typeof e}`);
787
- const { icon: r } = o, [c, i, , , s] = r || [], d = (a) => {
787
+ const { icon: r } = l, [c, i, , , s] = r || [], f = (a) => {
788
788
  switch (a.length) {
789
789
  case 2:
790
790
  return {
@@ -801,55 +801,55 @@ const He = (e) => {
801
801
  "svg",
802
802
  {
803
803
  className: h("size-5 box-content", n),
804
- style: { ...d(t) },
804
+ style: { ...f(t) },
805
805
  xmlns: "http://www.w3.org/2000/svg",
806
806
  viewBox: `0 0 ${c} ${i}`,
807
807
  role: "img",
808
808
  "aria-hidden": "true",
809
- children: typeof s == "string" ? /* @__PURE__ */ u("path", { className: "fill-current", d: s }) : s.map((a, y) => /* @__PURE__ */ u("path", { d: a }, y))
809
+ children: typeof s == "string" ? /* @__PURE__ */ u("path", { className: "fill-current", d: s }) : s.map((a, p) => /* @__PURE__ */ u("path", { d: a }, p))
810
810
  }
811
811
  );
812
812
  }, nt = ({
813
813
  variant: e = "linear-determinate",
814
814
  value: t = 0,
815
815
  transitionDuration: n = 1e3,
816
- className: o,
816
+ className: l,
817
817
  ...r
818
818
  }) => {
819
819
  const [c, i] = S(t), [s] = S(1.5);
820
820
  R(() => {
821
821
  t > 100 && (t = 100), t < 0 && (t = 0), i(t);
822
822
  }, [t]);
823
- const [d, a] = S(!0), y = () => d ? s : s * 0.5;
823
+ const [f, a] = S(!0), p = () => f ? s : s * 0.5;
824
824
  R(() => {
825
825
  if ((e === "circular-indeterminate" || e === "linear-indeterminate") && c !== 100) {
826
- const m = setInterval(() => {
827
- i(d ? 10 : 90), a(!d);
828
- }, y() * 1e3);
829
- return () => clearInterval(m);
826
+ const y = setInterval(() => {
827
+ i(f ? 10 : 90), a(!f);
828
+ }, p() * 1e3);
829
+ return () => clearInterval(y);
830
830
  }
831
- }, [e, d, c]);
832
- const [p, l] = S(!1);
831
+ }, [e, f, c]);
832
+ const [m, o] = S(!1);
833
833
  R(() => {
834
834
  if (c >= 100) {
835
- const m = setTimeout(() => {
836
- l(!1);
835
+ const y = setTimeout(() => {
836
+ o(!1);
837
837
  }, n);
838
838
  return () => {
839
- clearTimeout(m);
839
+ clearTimeout(y);
840
840
  };
841
841
  } else
842
- l(!0);
842
+ o(!0);
843
843
  }, [c, n]);
844
- const f = Ke({
845
- className: o,
844
+ const d = Ke({
845
+ className: l,
846
846
  variant: e,
847
847
  value: t,
848
848
  transitionDuration: n,
849
- isVisible: p
849
+ isVisible: m
850
850
  });
851
- return /* @__PURE__ */ A(T, { children: [
852
- (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ A("div", { className: f.progressIndicator, ...r, children: [
851
+ return /* @__PURE__ */ V(te, { children: [
852
+ (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ V("div", { className: d.progressIndicator, ...r, children: [
853
853
  /* @__PURE__ */ u(
854
854
  "div",
855
855
  {
@@ -857,7 +857,7 @@ const He = (e) => {
857
857
  width: `${c}%`,
858
858
  transition: `width ${n}ms ease-in-out ${c == 100 ? ", max-height 200ms 0.5s ease-in-out" : ""}`
859
859
  },
860
- className: f.track
860
+ className: d.track
861
861
  }
862
862
  ),
863
863
  /* @__PURE__ */ u(
@@ -867,7 +867,7 @@ const He = (e) => {
867
867
  marginLeft: c != 100 ? "6px" : "0px",
868
868
  transition: `width ${n}ms ease-in-out ${c == 100 ? `, max-height 200ms 0.5s ease-in-out, margin-left ${n}ms ${n / 1.5}ms` : ""}`
869
869
  },
870
- className: f.activeIndicator
870
+ className: d.activeIndicator
871
871
  }
872
872
  ),
873
873
  /* @__PURE__ */ u(
@@ -877,7 +877,7 @@ const He = (e) => {
877
877
  width: "4 px",
878
878
  transition: `width ${n}ms ease-in-out, max-height 200ms 0.5s ease-in-out`
879
879
  },
880
- className: f.stop
880
+ className: d.stop
881
881
  }
882
882
  )
883
883
  ] }),
@@ -891,43 +891,43 @@ const He = (e) => {
891
891
  animate: { rotate: 270 },
892
892
  transition: {
893
893
  repeat: 1 / 0,
894
- duration: y(),
894
+ duration: p(),
895
895
  ease: "linear"
896
896
  },
897
- className: f.progressIndicator,
897
+ className: d.progressIndicator,
898
898
  ...r,
899
899
  children: /* @__PURE__ */ u(
900
900
  F.circle,
901
901
  {
902
902
  cx: "50%",
903
903
  cy: "50%",
904
- r: p ? "calc(50% - 2px)" : "50%",
904
+ r: m ? "calc(50% - 2px)" : "50%",
905
905
  style: {
906
906
  strokeLinecap: "round"
907
907
  },
908
908
  initial: "hidden",
909
909
  animate: "visible",
910
- className: f.activeIndicator,
910
+ className: d.activeIndicator,
911
911
  variants: {
912
912
  hidden: {
913
- pathLength: d ? 10 / 100 : 90 / 100
913
+ pathLength: f ? 10 / 100 : 90 / 100
914
914
  },
915
915
  visible: {
916
- pathLength: d ? 90 / 100 : 10 / 100
916
+ pathLength: f ? 90 / 100 : 10 / 100
917
917
  }
918
918
  },
919
919
  transition: {
920
920
  pathLength: {
921
921
  type: "tween",
922
922
  ease: "linear",
923
- duration: y(),
923
+ duration: p(),
924
924
  bounce: 0
925
925
  }
926
926
  }
927
927
  }
928
928
  )
929
929
  },
930
- d + ""
930
+ f + ""
931
931
  )
932
932
  ] });
933
933
  }, re = ({
@@ -951,28 +951,28 @@ const He = (e) => {
951
951
  borderRadius: { duration: 0.3, delay: 0.3 }
952
952
  }
953
953
  }
954
- }, [o, r] = S(!0), [c, i] = S(!1), [s, d] = S({ x: 0, y: 0 });
954
+ }, [l, r] = S(!0), [c, i] = S(!1), [s, f] = S({ x: 0, y: 0 });
955
955
  R(() => {
956
956
  c && (r(!0), r(!1));
957
957
  }, [c]), R(() => {
958
- const l = t == null ? void 0 : t.current;
959
- if (l)
960
- return l.addEventListener("mousedown", a), l.addEventListener("mouseup", p), l.addEventListener("mouseleave", y), () => {
961
- l.removeEventListener("mousedown", a), l.removeEventListener("mouseup", p), l.removeEventListener("mouseleave", y);
958
+ const o = t == null ? void 0 : t.current;
959
+ if (o)
960
+ return o.addEventListener("mousedown", a), o.addEventListener("mouseup", m), o.addEventListener("mouseleave", p), () => {
961
+ o.removeEventListener("mousedown", a), o.removeEventListener("mouseup", m), o.removeEventListener("mouseleave", p);
962
962
  };
963
963
  }, [t]);
964
- const a = (l) => {
965
- const f = t == null ? void 0 : t.current, m = f.getBoundingClientRect();
966
- i(!0), d({
967
- x: (l.clientX - m.left) / f.clientWidth * 100,
968
- y: (l.clientY - m.top) / f.clientHeight * 100
964
+ const a = (o) => {
965
+ const d = t == null ? void 0 : t.current, y = d.getBoundingClientRect();
966
+ i(!0), f({
967
+ x: (o.clientX - y.left) / d.clientWidth * 100,
968
+ y: (o.clientY - y.top) / d.clientHeight * 100
969
969
  });
970
- }, y = (l) => {
970
+ }, p = (o) => {
971
971
  i(!1);
972
- }, p = (l) => {
972
+ }, m = (o) => {
973
973
  i(!1);
974
974
  };
975
- return /* @__PURE__ */ u(Q, { mode: "wait", children: (c || !c && !o) && /* @__PURE__ */ u(
975
+ return /* @__PURE__ */ u(Q, { mode: "wait", children: (c || !c && !l) && /* @__PURE__ */ u(
976
976
  F.div,
977
977
  {
978
978
  style: {
@@ -992,7 +992,7 @@ const He = (e) => {
992
992
  className: "transform -translate-x-1/2 -translate-y-1/2"
993
993
  }
994
994
  ) });
995
- }, rt = O(
995
+ }, rt = j(
996
996
  "customScroll",
997
997
  ({ orientation: e, draggable: t, isDragging: n }) => ({
998
998
  customScroll: h(
@@ -1024,151 +1024,151 @@ const He = (e) => {
1024
1024
  children: e,
1025
1025
  orientation: t = "vertical",
1026
1026
  scrollSize: n,
1027
- onScroll: o,
1027
+ onScroll: l,
1028
1028
  className: r,
1029
1029
  draggable: c = !1,
1030
1030
  throttleDuration: i = 75
1031
1031
  }) => {
1032
1032
  var P, H;
1033
- const s = W(null), d = W(null), [a, y] = S({
1033
+ const s = D(null), f = D(null), [a, p] = S({
1034
1034
  width: null,
1035
1035
  height: null
1036
1036
  });
1037
1037
  R(() => {
1038
1038
  if (!s.current) return;
1039
- const $ = new ResizeObserver((U) => {
1040
- for (const X of U)
1041
- X.target === s.current && y({
1042
- width: X.contentRect.width,
1043
- height: X.contentRect.height
1039
+ const M = new ResizeObserver((U) => {
1040
+ for (const O of U)
1041
+ O.target === s.current && p({
1042
+ width: O.contentRect.width,
1043
+ height: O.contentRect.height
1044
1044
  // On observe aussi la hauteur maintenant
1045
1045
  });
1046
1046
  });
1047
- return $.observe(s.current), () => {
1048
- $.disconnect();
1047
+ return M.observe(s.current), () => {
1048
+ M.disconnect();
1049
1049
  };
1050
1050
  }, [s]);
1051
- const p = W(null), l = W(null), f = () => {
1052
- const $ = d.current;
1053
- return $ ? {
1054
- width: n ?? $.scrollWidth,
1055
- height: n ?? $.scrollHeight
1051
+ const m = D(null), o = D(null), d = () => {
1052
+ const M = f.current;
1053
+ return M ? {
1054
+ width: n ?? M.scrollWidth,
1055
+ height: n ?? M.scrollHeight
1056
1056
  } : null;
1057
- }, m = () => {
1058
- const $ = s.current;
1059
- return $ ? {
1060
- width: $.clientWidth,
1061
- height: $.clientHeight
1057
+ }, y = () => {
1058
+ const M = s.current;
1059
+ return M ? {
1060
+ width: M.clientWidth,
1061
+ height: M.clientHeight
1062
1062
  // Correction ici pour retourner la bonne hauteur
1063
1063
  } : null;
1064
- }, { scrollYProgress: w, scrollXProgress: g } = $e({
1064
+ }, { scrollYProgress: v, scrollXProgress: x } = Me({
1065
1065
  container: s
1066
- }), N = W(null);
1067
- N.current || (N.current = Me(
1066
+ }), E = D(null);
1067
+ E.current || (E.current = Ce(
1068
1068
  i,
1069
- ($, U) => {
1070
- !l.current || !p.current || !s.current || o && (t === "horizontal" && U === "x" && o({
1071
- scrollProgress: $,
1072
- scroll: $ * (p.current.width - s.current.clientWidth),
1073
- scrollTotal: p.current.width - s.current.clientWidth,
1074
- scrollVisible: l.current.width
1075
- }), t === "vertical" && U === "y" && o({
1076
- scrollProgress: $,
1077
- scroll: $ * (p.current.height - s.current.clientHeight),
1078
- scrollTotal: p.current.height - s.current.clientHeight,
1079
- scrollVisible: l.current.height
1069
+ (M, U) => {
1070
+ !o.current || !m.current || !s.current || l && (t === "horizontal" && U === "x" && l({
1071
+ scrollProgress: M,
1072
+ scroll: M * (m.current.width - s.current.clientWidth),
1073
+ scrollTotal: m.current.width - s.current.clientWidth,
1074
+ scrollVisible: o.current.width
1075
+ }), t === "vertical" && U === "y" && l({
1076
+ scrollProgress: M,
1077
+ scroll: M * (m.current.height - s.current.clientHeight),
1078
+ scrollTotal: m.current.height - s.current.clientHeight,
1079
+ scrollVisible: o.current.height
1080
1080
  }));
1081
1081
  }
1082
1082
  ));
1083
- const b = ($, U) => {
1084
- N.current && N.current($, U);
1083
+ const L = (M, U) => {
1084
+ E.current && E.current(M, U);
1085
1085
  };
1086
1086
  R(() => {
1087
- a.width && b(g.get(), "x"), a.height && b(w.get(), "y");
1088
- }, [a]), he(g, "change", ($) => {
1089
- b($, "x");
1090
- }), he(w, "change", ($) => {
1091
- b($, "y");
1087
+ a.width && L(x.get(), "x"), a.height && L(v.get(), "y");
1088
+ }, [a]), fe(x, "change", (M) => {
1089
+ L(M, "x");
1090
+ }), fe(v, "change", (M) => {
1091
+ L(M, "y");
1092
1092
  });
1093
- const [B, E] = S(!1);
1094
- xe(() => {
1095
- B || !l.current || !p.current || !o || (o({
1093
+ const [B, N] = S(!1);
1094
+ ve(() => {
1095
+ B || !o.current || !m.current || !l || (l({
1096
1096
  scrollProgress: 0,
1097
1097
  scroll: 0,
1098
- scrollTotal: t == "vertical" ? p.current.height : p.current.width,
1099
- scrollVisible: t == "vertical" ? l.current.height : l.current.width
1100
- }), E(!0));
1101
- }, [l, p, o]), p.current = f(), l.current = m();
1102
- const [I, C] = S(!1), V = rt({
1098
+ scrollTotal: t == "vertical" ? m.current.height : m.current.width,
1099
+ scrollVisible: t == "vertical" ? o.current.height : o.current.width
1100
+ }), N(!0));
1101
+ }, [o, m, l]), m.current = d(), o.current = y();
1102
+ const [I, $] = S(!1), A = rt({
1103
1103
  isDragging: I,
1104
1104
  children: e,
1105
1105
  className: r,
1106
- onScroll: o,
1106
+ onScroll: l,
1107
1107
  orientation: t,
1108
1108
  scrollSize: n,
1109
1109
  draggable: c,
1110
1110
  throttleDuration: i
1111
- }), [D, k] = S(0), [v, M] = S(0), Y = ($) => {
1111
+ }), [W, k] = S(0), [g, C] = S(0), X = (M) => {
1112
1112
  if (!c) return;
1113
1113
  const U = s.current;
1114
- if (!U || D == null) return;
1115
- const J = ($.pageX - U.offsetLeft - D) * 1.5;
1116
- U.scrollLeft = v - J;
1117
- }, q = ($) => {
1114
+ if (!U || W == null) return;
1115
+ const J = (M.pageX - U.offsetLeft - W) * 1.5;
1116
+ U.scrollLeft = g - J;
1117
+ }, q = (M) => {
1118
1118
  const U = s.current;
1119
- U && (C(!0), k($.pageX - U.offsetLeft), M(U.scrollLeft));
1120
- }, G = ($) => {
1121
- I && ($.preventDefault(), Y($));
1122
- }, j = () => {
1123
- C(!1);
1119
+ U && ($(!0), k(M.pageX - U.offsetLeft), C(U.scrollLeft));
1120
+ }, G = (M) => {
1121
+ I && (M.preventDefault(), X(M));
1122
+ }, Y = () => {
1123
+ $(!1);
1124
1124
  }, z = () => {
1125
- C(!1);
1126
- }, L = ($) => {
1127
- $.preventDefault();
1128
- }, x = W(null);
1125
+ $(!1);
1126
+ }, b = (M) => {
1127
+ M.preventDefault();
1128
+ }, w = D(null);
1129
1129
  return R(() => () => {
1130
- x.current && clearTimeout(x.current);
1131
- }, []), /* @__PURE__ */ A(
1130
+ w.current && clearTimeout(w.current);
1131
+ }, []), /* @__PURE__ */ V(
1132
1132
  "div",
1133
1133
  {
1134
- className: V.customScroll,
1134
+ className: A.customScroll,
1135
1135
  ref: s,
1136
1136
  onMouseDown: q,
1137
1137
  onMouseMove: G,
1138
- onMouseUp: j,
1138
+ onMouseUp: Y,
1139
1139
  onMouseLeave: z,
1140
- onDragStart: L,
1141
- onScroll: ($) => {
1142
- I || (k(null), C(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
1143
- C(!1);
1140
+ onDragStart: b,
1141
+ onScroll: (M) => {
1142
+ I || (k(null), $(!0), w.current && clearTimeout(w.current), w.current = setTimeout(() => {
1143
+ $(!1);
1144
1144
  }, 1e3));
1145
1145
  },
1146
1146
  children: [
1147
1147
  /* @__PURE__ */ u(
1148
1148
  "div",
1149
1149
  {
1150
- ref: d,
1151
- style: t === "vertical" ? { height: ((P = l == null ? void 0 : l.current) == null ? void 0 : P.height) ?? "100%" } : { width: ((H = l == null ? void 0 : l.current) == null ? void 0 : H.width) ?? "100%" },
1152
- className: V.track,
1150
+ ref: f,
1151
+ style: t === "vertical" ? { height: ((P = o == null ? void 0 : o.current) == null ? void 0 : P.height) ?? "100%" } : { width: ((H = o == null ? void 0 : o.current) == null ? void 0 : H.width) ?? "100%" },
1152
+ className: A.track,
1153
1153
  children: e
1154
1154
  }
1155
1155
  ),
1156
- l.current && p.current && /* @__PURE__ */ A(T, { children: [
1157
- t === "vertical" && p.current.height > l.current.height && /* @__PURE__ */ u(
1156
+ o.current && m.current && /* @__PURE__ */ V(te, { children: [
1157
+ t === "vertical" && m.current.height > o.current.height && /* @__PURE__ */ u(
1158
1158
  F.div,
1159
1159
  {
1160
1160
  className: "flex-none",
1161
1161
  style: {
1162
- height: p.current.height - l.current.height
1162
+ height: m.current.height - o.current.height
1163
1163
  }
1164
1164
  }
1165
1165
  ),
1166
- t === "horizontal" && p.current.width > l.current.width && /* @__PURE__ */ u(
1166
+ t === "horizontal" && m.current.width > o.current.width && /* @__PURE__ */ u(
1167
1167
  F.div,
1168
1168
  {
1169
1169
  className: "flex-none",
1170
1170
  style: {
1171
- width: p.current.width - l.current.width
1171
+ width: m.current.width - o.current.width
1172
1172
  }
1173
1173
  }
1174
1174
  )
@@ -1181,136 +1181,136 @@ const He = (e) => {
1181
1181
  el: t,
1182
1182
  touch: n = !0
1183
1183
  }) => {
1184
- const o = W(null), r = W(0), c = W(0);
1184
+ const l = D(null), r = D(0), c = D(0);
1185
1185
  R(() => {
1186
1186
  if (!t) return;
1187
1187
  r.current = t.scrollTop, c.current = t.scrollLeft;
1188
- const i = (l) => {
1189
- e == null || e(l);
1190
- }, s = (l) => {
1191
- l.preventDefault(), i({
1188
+ const i = (o) => {
1189
+ e == null || e(o);
1190
+ }, s = (o) => {
1191
+ o.preventDefault(), i({
1192
1192
  type: "intent",
1193
1193
  source: "wheel",
1194
- deltaX: l.deltaX,
1195
- deltaY: l.deltaY,
1196
- originalEvent: l
1194
+ deltaX: o.deltaX,
1195
+ deltaY: o.deltaY,
1196
+ originalEvent: o
1197
1197
  });
1198
- }, d = (l) => {
1198
+ }, f = (o) => {
1199
1199
  if (!n) return;
1200
- const f = l.touches[0];
1201
- f && (o.current = { x: f.clientX, y: f.clientY });
1202
- }, a = (l) => {
1200
+ const d = o.touches[0];
1201
+ d && (l.current = { x: d.clientX, y: d.clientY });
1202
+ }, a = (o) => {
1203
1203
  if (!n) return;
1204
- const f = l.touches[0];
1205
- if (!f || !o.current) return;
1206
- l.preventDefault();
1207
- const m = o.current.x - f.clientX, w = o.current.y - f.clientY;
1208
- o.current = { x: f.clientX, y: f.clientY }, i({
1204
+ const d = o.touches[0];
1205
+ if (!d || !l.current) return;
1206
+ o.preventDefault();
1207
+ const y = l.current.x - d.clientX, v = l.current.y - d.clientY;
1208
+ l.current = { x: d.clientX, y: d.clientY }, i({
1209
1209
  type: "intent",
1210
1210
  source: "touch",
1211
- deltaX: m,
1212
- deltaY: w,
1213
- originalEvent: l
1211
+ deltaX: y,
1212
+ deltaY: v,
1213
+ originalEvent: o
1214
1214
  });
1215
- }, y = () => {
1216
- n && (o.current = null);
1217
- }, p = (l) => {
1218
- const m = t.clientHeight * 0.9;
1219
- let w = 0, g = 0;
1220
- switch (l.key) {
1215
+ }, p = () => {
1216
+ n && (l.current = null);
1217
+ }, m = (o) => {
1218
+ const y = t.clientHeight * 0.9;
1219
+ let v = 0, x = 0;
1220
+ switch (o.key) {
1221
1221
  case "ArrowDown":
1222
- g = 40;
1222
+ x = 40;
1223
1223
  break;
1224
1224
  case "ArrowUp":
1225
- g = -40;
1225
+ x = -40;
1226
1226
  break;
1227
1227
  case "ArrowRight":
1228
- w = 40;
1228
+ v = 40;
1229
1229
  break;
1230
1230
  case "ArrowLeft":
1231
- w = -40;
1231
+ v = -40;
1232
1232
  break;
1233
1233
  case "PageDown":
1234
- g = m;
1234
+ x = y;
1235
1235
  break;
1236
1236
  case "PageUp":
1237
- g = -m;
1237
+ x = -y;
1238
1238
  break;
1239
1239
  case "Home":
1240
- g = Number.NEGATIVE_INFINITY;
1240
+ x = Number.NEGATIVE_INFINITY;
1241
1241
  break;
1242
1242
  case "End":
1243
- g = Number.POSITIVE_INFINITY;
1243
+ x = Number.POSITIVE_INFINITY;
1244
1244
  break;
1245
1245
  case " ":
1246
- g = l.shiftKey ? -m : m;
1246
+ x = o.shiftKey ? -y : y;
1247
1247
  break;
1248
1248
  default:
1249
1249
  return;
1250
1250
  }
1251
- l.preventDefault(), i({
1251
+ o.preventDefault(), i({
1252
1252
  type: "intent",
1253
1253
  source: "keyboard",
1254
- deltaX: w,
1255
- deltaY: g,
1256
- originalEvent: l
1254
+ deltaX: v,
1255
+ deltaY: x,
1256
+ originalEvent: o
1257
1257
  });
1258
1258
  };
1259
- return t.addEventListener("wheel", s, { passive: !1 }), t.addEventListener("touchstart", d, { passive: !0 }), t.addEventListener("touchmove", a, { passive: !1 }), t.addEventListener("touchend", y, { passive: !0 }), t.addEventListener("keydown", p), () => {
1260
- t.removeEventListener("wheel", s), t.removeEventListener("touchstart", d), t.removeEventListener("touchmove", a), t.removeEventListener("touchend", y), t.removeEventListener("keydown", p);
1259
+ return t.addEventListener("wheel", s, { passive: !1 }), t.addEventListener("touchstart", f, { passive: !0 }), t.addEventListener("touchmove", a, { passive: !1 }), t.addEventListener("touchend", p, { passive: !0 }), t.addEventListener("keydown", m), () => {
1260
+ t.removeEventListener("wheel", s), t.removeEventListener("touchstart", f), t.removeEventListener("touchmove", a), t.removeEventListener("touchend", p), t.removeEventListener("keydown", m);
1261
1261
  };
1262
1262
  }, [e]);
1263
- }, Vt = ({
1263
+ }, At = ({
1264
1264
  transition: e,
1265
1265
  orientation: t = "vertical",
1266
1266
  throttleDuration: n = 25
1267
1267
  }) => {
1268
- const [o, r] = S(0), [c, i] = S(), s = W(!1), d = W(), a = W(0);
1268
+ const [l, r] = S(0), [c, i] = S(), s = D(!1), f = D(), a = D(0);
1269
1269
  R(() => {
1270
1270
  i(document);
1271
- const l = document.documentElement.scrollTop;
1272
- r(l), a.current = l;
1271
+ const o = document.documentElement.scrollTop;
1272
+ r(o), a.current = o;
1273
1273
  }, []), R(() => {
1274
- const l = () => {
1274
+ const o = () => {
1275
1275
  s.current || r(document.documentElement.scrollTop);
1276
1276
  };
1277
- return c == null || c.addEventListener("scroll", l), () => {
1278
- d.current && clearTimeout(d.current), c == null || c.removeEventListener("scroll", l);
1277
+ return c == null || c.addEventListener("scroll", o), () => {
1278
+ f.current && clearTimeout(f.current), c == null || c.removeEventListener("scroll", o);
1279
1279
  };
1280
1280
  }, [c]);
1281
- const y = W(), p = W(null);
1281
+ const p = D(), m = D(null);
1282
1282
  return R(() => {
1283
- const l = o;
1284
- if (p.current && (p.current.stop(), p.current = null), !s.current) {
1285
- y.current = l;
1283
+ const o = l;
1284
+ if (m.current && (m.current.stop(), m.current = null), !s.current) {
1285
+ p.current = o;
1286
1286
  return;
1287
1287
  }
1288
- return p.current = Re(y.current ?? l, l, {
1288
+ return m.current = Re(p.current ?? o, o, {
1289
1289
  duration: (e == null ? void 0 : e.duration) ?? 0.5,
1290
1290
  ease: "circOut",
1291
- onUpdate: (f) => {
1292
- d.current && clearTimeout(d.current), y.current = f;
1293
- const m = document.documentElement, w = Math.round(f * 1e3) / 1e3, g = a.current;
1294
- Math.abs(w - g) < 0.1 || (a.current = w, s.current && m.scrollTo({ top: w }));
1291
+ onUpdate: (d) => {
1292
+ f.current && clearTimeout(f.current), p.current = d;
1293
+ const y = document.documentElement, v = Math.round(d * 1e3) / 1e3, x = a.current;
1294
+ Math.abs(v - x) < 0.1 || (a.current = v, s.current && y.scrollTo({ top: v }));
1295
1295
  },
1296
1296
  onComplete: () => {
1297
- d.current = setTimeout(() => {
1297
+ f.current = setTimeout(() => {
1298
1298
  s.current = !1;
1299
- }, 300), p.current = null;
1299
+ }, 300), m.current = null;
1300
1300
  }
1301
1301
  }), () => {
1302
- p.current && (p.current.stop(), p.current = null);
1302
+ m.current && (m.current.stop(), m.current = null);
1303
1303
  };
1304
- }, [o]), c ? /* @__PURE__ */ u(
1304
+ }, [l]), c ? /* @__PURE__ */ u(
1305
1305
  lt,
1306
1306
  {
1307
1307
  touch: !1,
1308
1308
  el: c,
1309
- onScroll: (l) => {
1310
- if ("deltaY" in l && l.deltaY !== 0 && c && o !== null) {
1311
- let f = o + l.deltaY;
1312
- const m = c.querySelector("html");
1313
- m && (f = Math.min(f, m.scrollHeight - m.clientHeight)), f = Math.max(f, 0), r(f), s.current = !0;
1309
+ onScroll: (o) => {
1310
+ if ("deltaY" in o && o.deltaY !== 0 && c && l !== null) {
1311
+ let d = l + o.deltaY;
1312
+ const y = c.querySelector("html");
1313
+ y && (d = Math.min(d, y.scrollHeight - y.clientHeight)), d = Math.max(d, 0), r(d), s.current = !0;
1314
1314
  }
1315
1315
  }
1316
1316
  }
@@ -1319,11 +1319,11 @@ const He = (e) => {
1319
1319
  targetRef: e,
1320
1320
  children: t
1321
1321
  }) => {
1322
- const [n, o] = S(null), r = W(null), c = () => {
1322
+ const [n, l] = S(null), r = D(null), c = () => {
1323
1323
  const i = e.current;
1324
1324
  if (!i) return;
1325
1325
  const s = i.getBoundingClientRect();
1326
- o({
1326
+ l({
1327
1327
  position: "fixed",
1328
1328
  top: s.top,
1329
1329
  left: s.left,
@@ -1342,7 +1342,7 @@ const He = (e) => {
1342
1342
  var s;
1343
1343
  window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), (s = r.current) == null || s.disconnect();
1344
1344
  };
1345
- }, [e]), n ? be(/* @__PURE__ */ u("div", { style: n, children: t }), document.body) : null;
1345
+ }, [e]), n ? xe(/* @__PURE__ */ u("div", { style: n, children: t }), document.body) : null;
1346
1346
  };
1347
1347
  function st(e) {
1348
1348
  return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e);
@@ -1352,49 +1352,49 @@ const Ft = ({
1352
1352
  throttleDelay: t = 100,
1353
1353
  // Délai par défaut de 300ms
1354
1354
  onLoad: n,
1355
- loadTheme: o = !1
1355
+ loadTheme: l = !1
1356
1356
  }) => {
1357
1357
  const [r, c] = S(null);
1358
1358
  R(() => {
1359
1359
  (async () => {
1360
- const l = await Be(e, o);
1361
- c(l);
1360
+ const o = await Be(e, l);
1361
+ c(o);
1362
1362
  })();
1363
1363
  }, []);
1364
- const [i, s] = S(null), d = W(null), a = W(0), y = W(null);
1364
+ const [i, s] = S(null), f = D(null), a = D(0), p = D(null);
1365
1365
  R(() => {
1366
1366
  if (!r) return;
1367
- const l = {
1367
+ const o = {
1368
1368
  ...e,
1369
1369
  // Assurer la compatibilité avec l'API qui attend sourceColorHex
1370
1370
  sourceColor: e.sourceColor
1371
- }, f = Date.now(), m = f - a.current, w = async (g) => {
1372
- await p(g);
1371
+ }, d = Date.now(), y = d - a.current, v = async (x) => {
1372
+ await m(x);
1373
1373
  };
1374
- if (a.current === 0 || m >= t)
1375
- d.current && (clearTimeout(d.current), d.current = null), y.current = null, a.current = f, w(l);
1376
- else if (y.current = l, !d.current) {
1377
- const g = Math.max(0, t - m);
1378
- d.current = setTimeout(async () => {
1379
- d.current = null;
1380
- const N = y.current;
1381
- y.current = null, N && (a.current = Date.now(), await w(N));
1382
- }, g);
1374
+ if (a.current === 0 || y >= t)
1375
+ f.current && (clearTimeout(f.current), f.current = null), p.current = null, a.current = d, v(o);
1376
+ else if (p.current = o, !f.current) {
1377
+ const x = Math.max(0, t - y);
1378
+ f.current = setTimeout(async () => {
1379
+ f.current = null;
1380
+ const E = p.current;
1381
+ p.current = null, E && (a.current = Date.now(), await v(E));
1382
+ }, x);
1383
1383
  }
1384
1384
  return () => {
1385
1385
  };
1386
1386
  }, [e, t, r]);
1387
- const p = async (l) => {
1388
- if (typeof l.sourceColor == "string" && !st(l.sourceColor))
1387
+ const m = async (o) => {
1388
+ if (typeof o.sourceColor == "string" && !st(o.sourceColor))
1389
1389
  throw new Error("Invalid hex color");
1390
1390
  if (!r)
1391
1391
  return;
1392
- r.context.update(l), await r.load();
1393
- const f = r == null ? void 0 : r.plugins.getPlugin(Le).getInstance().outputCss;
1394
- s(f), n == null || n(r);
1392
+ r.context.update(o), await r.load();
1393
+ const d = r == null ? void 0 : r.plugins.getPlugin(we).getInstance().outputCss;
1394
+ s(d), n == null || n(r);
1395
1395
  };
1396
1396
  return R(() => () => {
1397
- d.current && (clearTimeout(d.current), d.current = null);
1397
+ f.current && (clearTimeout(f.current), f.current = null);
1398
1398
  }, []), i ? /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: i } }) : null;
1399
1399
  };
1400
1400
  function ct() {
@@ -1410,233 +1410,204 @@ function ct() {
1410
1410
  function it() {
1411
1411
  return typeof window > "u" || !("matchMedia" in window) ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1412
1412
  }
1413
- function ae(e) {
1413
+ function le(e) {
1414
1414
  if (!(e instanceof HTMLElement)) return !1;
1415
1415
  const t = e.classList;
1416
1416
  return Array.from(t).some(
1417
1417
  (n) => n.startsWith("anim-") && n.includes("scroll")
1418
1418
  );
1419
1419
  }
1420
- function ye(e) {
1420
+ function he(e) {
1421
1421
  if (!(e instanceof HTMLElement)) return !1;
1422
1422
  const t = e.classList;
1423
1423
  return Array.from(t).some(
1424
- (o) => o.startsWith("anim-")
1425
- ) ? !ae(e) : !1;
1424
+ (l) => l.startsWith("anim-")
1425
+ ) ? !le(e) : !1;
1426
1426
  }
1427
- function le(e, t) {
1428
- if (!(typeof window > "u"))
1429
- try {
1430
- const n = getComputedStyle(e), o = /* @__PURE__ */ new Set();
1431
- if (Array.from(e.classList).forEach((r) => {
1432
- if (r.startsWith("anim")) {
1433
- const c = `--anim-name-${r.replaceAll(/-in|-out|-scroll/g, "").replace(t + "-", "")}`, i = n.getPropertyValue(c).trim();
1434
- i && o.add(i.replace(t + "-", ""));
1435
- }
1436
- }), o.size > 0) {
1437
- const r = Array.from(o).map((i) => `var(--anim-name-${i})`).join(", "), c = Array.from(o).map((i) => `var(--anim-dependencies-${i})`).join(", ");
1438
- e.style.animationName = r, e.style.willChange = c;
1439
- }
1440
- } catch {
1441
- }
1442
- }
1443
- function se(e, t) {
1444
- if (!ae(e)) return;
1427
+ function ae(e, t) {
1428
+ if (!le(e)) return;
1445
1429
  if (e.hasAttribute(`data-${t}-scroll`)) {
1446
1430
  const i = (e.getAttribute(`data-${t}-scroll`) || "").trim().toLowerCase(), s = i === "x" || i === "inline" ? "inline" : i === "y" || i === "block" ? "block" : "auto";
1447
1431
  e.classList.contains(`${t}-timeline`) || e.classList.contains(`${t}-timeline-inline`) || e.classList.contains(`${t}-timeline-block`) || e.classList.contains(`${t}-timeline-x`) || e.classList.contains(`${t}-timeline-y`) || (s === "inline" ? e.classList.add(`${t}-timeline-inline`) : s === "block" ? e.classList.add(`${t}-timeline-block`) : e.classList.add(`${t}-scroll`));
1448
1432
  }
1449
1433
  const n = e.getAttribute(`data-${t}-start`);
1450
1434
  n && e.style.setProperty(`--${t}-range-start`, n);
1451
- const o = e.getAttribute(`data-${t}-end`);
1452
- o && e.style.setProperty(`--${t}-range-end`, o);
1435
+ const l = e.getAttribute(`data-${t}-end`);
1436
+ l && e.style.setProperty(`--${t}-range-end`, l);
1453
1437
  const r = e.hasAttribute(`data-${t}-paused`) || e.classList.contains(`${t}-paused`), c = e.hasAttribute(`data-${t}-run`) || e.classList.contains(`${t}-run`);
1454
- !r && !c && e.setAttribute(`data-${t}-run`, ""), le(e, t);
1438
+ !r && !c && e.setAttribute(`data-${t}-run`, "");
1455
1439
  }
1456
- function ce(e = document, t) {
1440
+ function se(e = document, t) {
1457
1441
  return Array.from(
1458
1442
  e.querySelectorAll(`[class*="${t}-"]`)
1459
- ).filter((o) => ae(o));
1443
+ ).filter((l) => le(l));
1460
1444
  }
1461
1445
  function ut(e = document, t) {
1462
1446
  return Array.from(
1463
1447
  e.querySelectorAll('[class*="anim-"]')
1464
- ).filter((o) => !ae(o));
1448
+ ).filter((l) => !le(l));
1465
1449
  }
1466
- const Ht = ({
1467
- prefix: e = "anim",
1468
- children: t,
1469
- once: n = !0
1470
- }) => {
1471
- const o = ue(it, []), r = ue(() => ct(), []), c = W(null), i = W(null), s = W(null);
1472
- return R(() => {
1473
- if (o) return;
1474
- const d = /* @__PURE__ */ new WeakSet();
1475
- s.current = d;
1476
- const a = new IntersectionObserver(
1477
- (l) => {
1478
- for (const f of l) {
1479
- const m = f.target;
1480
- if (!ye(m))
1481
- continue;
1482
- const g = m.classList.contains(`${e}-out`);
1483
- if (!g && f.isIntersecting)
1484
- m.setAttribute(`data-${e}-in-run`, ""), n && a.unobserve(m);
1485
- else if (g && !f.isIntersecting)
1486
- m.setAttribute(`data-${e}-out-run`, ""), n && a.unobserve(m);
1487
- else if (!n) {
1488
- const b = m.style.animationName;
1489
- m.style.animationName = "none", m.removeAttribute(`data-${e}-in-run`), m.removeAttribute(`data-${e}-out-run`), m.offsetWidth, m.style.animationName = b;
1490
- }
1450
+ function Le(e = {}) {
1451
+ const { prefix: t = "anim", once: n = !0 } = e;
1452
+ if (it())
1453
+ return () => {
1454
+ };
1455
+ const l = ct(), r = /* @__PURE__ */ new WeakSet(), c = new IntersectionObserver(
1456
+ (p) => {
1457
+ for (const m of p) {
1458
+ const o = m.target;
1459
+ if (!he(o)) continue;
1460
+ const y = o.classList.contains(`${t}-out`);
1461
+ if (!y && m.isIntersecting)
1462
+ o.setAttribute(`data-${t}-in-run`, ""), n && c.unobserve(o);
1463
+ else if (y && !m.isIntersecting)
1464
+ o.setAttribute(`data-${t}-out-run`, ""), n && c.unobserve(o);
1465
+ else if (!n) {
1466
+ const x = o.style.animationName;
1467
+ o.style.animationName = "none", o.removeAttribute(`data-${t}-in-run`), o.removeAttribute(`data-${t}-out-run`), o.offsetWidth, o.style.animationName = x;
1491
1468
  }
1492
- },
1493
- { threshold: [0, 0.2] }
1494
- );
1495
- i.current = a;
1496
- const y = (l) => {
1497
- const f = ut(l || document);
1498
- for (const m of f)
1499
- d.has(m) || (d.add(m), le(m, e), a.observe(m));
1469
+ }
1470
+ },
1471
+ { threshold: [0, 0.2] }
1472
+ ), i = (p) => {
1473
+ const m = ut(p || document);
1474
+ for (const o of m)
1475
+ r.has(o) || (r.add(o), c.observe(o));
1476
+ };
1477
+ i();
1478
+ let s, f = null, a = null;
1479
+ if (l)
1480
+ (() => {
1481
+ a == null && (a = requestAnimationFrame(() => {
1482
+ a = null;
1483
+ const m = se(void 0, t);
1484
+ for (const o of m) ae(o, t);
1485
+ }));
1486
+ })(), f = new MutationObserver((m) => {
1487
+ for (const o of m)
1488
+ if (o.type === "attributes") {
1489
+ const d = o.target;
1490
+ d instanceof HTMLElement && (ae(d, t), he(d) && (r.has(d) || (r.add(d), c.observe(d))));
1491
+ } else if (o.type === "childList" && o.addedNodes && o.addedNodes.length) {
1492
+ for (const d of Array.from(o.addedNodes))
1493
+ if (d instanceof HTMLElement) {
1494
+ const y = se(d, t);
1495
+ for (const v of y) ae(v, t);
1496
+ i(d);
1497
+ }
1498
+ }
1499
+ }), f.observe(document.documentElement, {
1500
+ subtree: !0,
1501
+ childList: !0,
1502
+ attributes: !0,
1503
+ attributeFilter: [
1504
+ "class",
1505
+ `data-${t}-scroll`,
1506
+ `data-${t}-start`,
1507
+ `data-${t}-end`,
1508
+ `data-${t}-paused`,
1509
+ `data-${t}-run`
1510
+ ]
1511
+ }), s = () => {
1512
+ a != null && cancelAnimationFrame(a), f && f.disconnect();
1500
1513
  };
1501
- y();
1514
+ else {
1502
1515
  let p;
1503
- if (r) {
1504
- let l = null;
1505
- (() => {
1506
- l == null && (l = requestAnimationFrame(() => {
1507
- l = null;
1508
- const w = ce(void 0, e);
1509
- for (const g of w) se(g, e);
1510
- }));
1511
- })();
1512
- const m = new MutationObserver((w) => {
1513
- for (const g of w)
1514
- if (g.type === "attributes") {
1515
- const N = g.target;
1516
- N instanceof HTMLElement && (se(N, e), ye(N) && (d.has(N) || (d.add(N), a.observe(N))), le(N, e));
1517
- } else if (g.type === "childList" && g.addedNodes && g.addedNodes.length) {
1518
- for (const N of Array.from(g.addedNodes))
1519
- if (N instanceof HTMLElement) {
1520
- const b = ce(N, e);
1521
- for (const B of b) se(B, e);
1522
- y(N);
1523
- }
1524
- }
1525
- });
1526
- m.observe(document.documentElement, {
1527
- subtree: !0,
1528
- childList: !0,
1529
- attributes: !0,
1530
- attributeFilter: [
1531
- "class",
1532
- `data-${e}-scroll`,
1533
- `data-${e}-start`,
1534
- `data-${e}-end`,
1535
- `data-${e}-paused`,
1536
- `data-${e}-run`
1537
- ]
1538
- }), c.current = m, p = () => {
1539
- l != null && cancelAnimationFrame(l), m.disconnect(), c.current = null;
1540
- };
1541
- } else {
1542
- let l;
1543
- const f = ce(void 0, e);
1544
- for (const m of f) le(m, e);
1545
- f.length > 0 && import("./scrollDriven-AP2yWhzi.js").then((m) => {
1546
- l = m.initScrollViewFallback({ once: n });
1547
- }), p = () => {
1548
- typeof l == "function" && l();
1549
- };
1550
- }
1551
- return () => {
1552
- p && p(), i.current && (i.current.disconnect(), i.current = null), s.current = null;
1516
+ se(void 0, t).length > 0 && import("./scrollDriven-AP2yWhzi.js").then((o) => {
1517
+ p = o.initScrollViewFallback({ once: n });
1518
+ }), s = () => {
1519
+ typeof p == "function" && p();
1553
1520
  };
1554
- }, [r, o, n]), /* @__PURE__ */ u(T, { children: t });
1555
- }, dt = ({
1521
+ }
1522
+ return () => {
1523
+ s && s(), c.disconnect();
1524
+ };
1525
+ }
1526
+ const Ht = Le, Ut = Le, dt = ({
1556
1527
  variant: e = "filled",
1557
1528
  disabled: t = !1,
1558
1529
  icon: n,
1559
- href: o,
1530
+ href: l,
1560
1531
  label: r,
1561
1532
  disableTextMargins: c,
1562
1533
  className: i,
1563
1534
  iconPosition: s = "left",
1564
- loading: d = !1,
1535
+ loading: f = !1,
1565
1536
  shape: a = "rounded",
1566
- onClick: y,
1567
- onToggle: p,
1568
- activated: l,
1569
- ref: f,
1570
- size: m = "medium",
1571
- allowShapeTransformation: w = !0,
1572
- transition: g,
1573
- children: N,
1574
- ...b
1537
+ onClick: p,
1538
+ onToggle: m,
1539
+ activated: o,
1540
+ ref: d,
1541
+ size: y = "medium",
1542
+ allowShapeTransformation: v = !0,
1543
+ transition: x,
1544
+ children: E,
1545
+ ...L
1575
1546
  }) => {
1576
- if (N && (r = N), !r)
1547
+ if (E && (r = E), !r)
1577
1548
  throw new Error(
1578
1549
  "Button component requires either a label prop or children content"
1579
1550
  );
1580
- const B = o ? "a" : "button", E = W(null), I = f || E, [C, V] = K.useState(l);
1551
+ const B = l ? "a" : "button", N = D(null), I = d || N, [$, A] = K.useState(o);
1581
1552
  R(() => {
1582
- V(l);
1583
- }, [l]), g = { duration: 0.3, ...g };
1584
- let D;
1585
- p ? p && (D = (M) => {
1586
- t && M.preventDefault();
1587
- const Y = !C;
1588
- V(Y), p(Y);
1589
- }) : D = (M) => {
1590
- t && M.preventDefault(), y && y(M);
1553
+ A(o);
1554
+ }, [o]), x = { duration: 0.3, ...x };
1555
+ let W;
1556
+ m ? m && (W = (C) => {
1557
+ t && C.preventDefault();
1558
+ const X = !$;
1559
+ A(X), m(X);
1560
+ }) : W = (C) => {
1561
+ t && C.preventDefault(), p && p(C);
1591
1562
  };
1592
1563
  const k = Ue({
1593
- allowShapeTransformation: w,
1594
- size: m,
1564
+ allowShapeTransformation: v,
1565
+ size: y,
1595
1566
  disableTextMargins: c,
1596
1567
  shape: a,
1597
- href: o,
1568
+ href: l,
1598
1569
  disabled: t,
1599
1570
  icon: n,
1600
1571
  iconPosition: s,
1601
- loading: d,
1572
+ loading: f,
1602
1573
  variant: e,
1603
- transition: g,
1574
+ transition: x,
1604
1575
  className: i,
1605
- isActive: C ?? !1,
1606
- onToggle: p,
1607
- activated: C,
1576
+ isActive: $ ?? !1,
1577
+ onToggle: m,
1578
+ activated: $,
1608
1579
  label: r,
1609
1580
  children: r
1610
- }), v = n ? /* @__PURE__ */ u(Z, { icon: n, className: k.icon }) : /* @__PURE__ */ u(T, {});
1611
- return /* @__PURE__ */ A(
1581
+ }), g = n ? /* @__PURE__ */ u(Z, { icon: n, className: k.icon }) : /* @__PURE__ */ u(te, {});
1582
+ return /* @__PURE__ */ V(
1612
1583
  B,
1613
1584
  {
1614
1585
  ref: I,
1615
- href: o,
1586
+ href: l,
1616
1587
  className: k.button,
1617
- ...b,
1618
- onClick: D,
1588
+ ...L,
1589
+ onClick: W,
1619
1590
  disabled: t,
1620
- "aria-pressed": p ? C : void 0,
1621
- style: { transition: g.duration + "s" },
1591
+ "aria-pressed": m ? $ : void 0,
1592
+ style: { transition: x.duration + "s" },
1622
1593
  children: [
1623
1594
  /* @__PURE__ */ u("div", { className: k.touchTarget }),
1624
1595
  /* @__PURE__ */ u(
1625
1596
  "div",
1626
1597
  {
1627
1598
  className: k.stateLayer,
1628
- style: { transition: g.duration + "s" },
1599
+ style: { transition: x.duration + "s" },
1629
1600
  children: !t && /* @__PURE__ */ u(
1630
1601
  re,
1631
1602
  {
1632
- colorName: e === "filled" && p && "on-surface-variant" || e === "filled" && !p && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
1603
+ colorName: e === "filled" && m && "on-surface-variant" || e === "filled" && !m && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
1633
1604
  triggerRef: I
1634
1605
  }
1635
1606
  )
1636
1607
  }
1637
1608
  ),
1638
- s === "left" && v,
1639
- d && /* @__PURE__ */ u(
1609
+ s === "left" && g,
1610
+ f && /* @__PURE__ */ u(
1640
1611
  "div",
1641
1612
  {
1642
1613
  className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
@@ -1674,37 +1645,37 @@ const Ht = ({
1674
1645
  }
1675
1646
  ),
1676
1647
  /* @__PURE__ */ u("span", { className: k.label, children: r }),
1677
- s === "right" && v
1648
+ s === "right" && g
1678
1649
  ]
1679
1650
  }
1680
1651
  );
1681
- }, Ut = ({
1652
+ }, Ot = ({
1682
1653
  variant: e = "outlined",
1683
1654
  className: t,
1684
1655
  children: n,
1685
- isInteractive: o = !1,
1656
+ isInteractive: l = !1,
1686
1657
  ref: r,
1687
1658
  ...c
1688
1659
  }) => {
1689
- const i = Xe({ className: t, isInteractive: o, variant: e, children: n }), s = W(null), d = r || s;
1690
- return /* @__PURE__ */ A("div", { ...c, ref: d, className: i.card, children: [
1691
- /* @__PURE__ */ u("div", { className: i.stateLayer, children: o && /* @__PURE__ */ u(re, { colorName: "on-surface", triggerRef: d }) }),
1660
+ const i = Oe({ className: t, isInteractive: l, variant: e, children: n }), s = D(null), f = r || s;
1661
+ return /* @__PURE__ */ V("div", { ...c, ref: f, className: i.card, children: [
1662
+ /* @__PURE__ */ u("div", { className: i.stateLayer, children: l && /* @__PURE__ */ u(re, { colorName: "on-surface", triggerRef: f }) }),
1692
1663
  n
1693
1664
  ] });
1694
1665
  }, ft = (e, t, n = [0, 1]) => {
1695
- const [o, r] = t, [c, i] = n, d = (Math.max(o, Math.min(e, r)) - o) / (r - o);
1696
- return c + d * (i - c);
1666
+ const [l, r] = t, [c, i] = n, f = (Math.max(l, Math.min(e, r)) - l) / (r - l);
1667
+ return c + f * (i - c);
1697
1668
  }, mt = ({
1698
1669
  className: e,
1699
1670
  children: t,
1700
1671
  width: n = 1,
1701
- index: o = 0,
1672
+ index: l = 0,
1702
1673
  ref: r,
1703
1674
  ...c
1704
1675
  }) => {
1705
- const i = W(null), s = r || i, d = Ye({
1676
+ const i = D(null), s = r || i, f = Xe({
1706
1677
  className: e,
1707
- index: o,
1678
+ index: l,
1708
1679
  width: n,
1709
1680
  children: t
1710
1681
  });
@@ -1717,7 +1688,7 @@ const Ht = ({
1717
1688
  duration: 0.5,
1718
1689
  ease: "linear"
1719
1690
  },
1720
- className: d.carouselItem,
1691
+ className: f.carouselItem,
1721
1692
  ...c,
1722
1693
  children: t
1723
1694
  }
@@ -1726,105 +1697,105 @@ const Ht = ({
1726
1697
  variant: e = "hero",
1727
1698
  className: t,
1728
1699
  children: n,
1729
- ref: o,
1700
+ ref: l,
1730
1701
  marginPourcent: r = 0,
1731
1702
  inputRange: c = [0.21, 0.65],
1732
1703
  outputRange: i = [42, 300],
1733
1704
  gap: s = 8,
1734
- onChange: d,
1705
+ onChange: f,
1735
1706
  scrollSensitivity: a = 1.25,
1736
- ...y
1707
+ ...p
1737
1708
  }) => {
1738
- var j, z;
1739
- const p = W(null), l = o || p, f = je({
1709
+ var Y, z;
1710
+ const m = D(null), o = l || m, d = Ye({
1740
1711
  className: t,
1741
1712
  children: n,
1742
1713
  variant: e,
1743
1714
  inputRange: c,
1744
1715
  outputRange: i,
1745
1716
  marginPourcent: r,
1746
- onChange: d,
1717
+ onChange: f,
1747
1718
  gap: s,
1748
1719
  scrollSensitivity: a
1749
- }), m = K.Children.toArray(n).filter(
1750
- (L) => K.isValidElement(L) && L.type === mt
1751
- ), w = W(null), [g, N] = S([]), [b, B] = S(null), E = () => {
1720
+ }), y = K.Children.toArray(n).filter(
1721
+ (b) => K.isValidElement(b) && b.type === mt
1722
+ ), v = D(null), [x, E] = S([]), [L, B] = S(null), N = () => {
1752
1723
  var U;
1753
- if (!w.current || !l.current || !b) return [];
1754
- const { scrollVisible: L, scrollProgress: x } = b;
1755
- function P(X, J) {
1756
- return X.map(
1757
- (ee) => (ee - J) / Math.abs(X[1] - X[0])
1724
+ if (!v.current || !o.current || !L) return [];
1725
+ const { scrollVisible: b, scrollProgress: w } = L;
1726
+ function P(O, J) {
1727
+ return O.map(
1728
+ (T) => (T - J) / Math.abs(O[1] - O[0])
1758
1729
  );
1759
1730
  }
1760
- let H = m.map((X, J) => {
1761
- if (!I[J].current || !w.current) return 0;
1762
- let ne = J / (m.length - 1);
1731
+ let H = y.map((O, J) => {
1732
+ if (!I[J].current || !v.current) return 0;
1733
+ let ne = J / (y.length - 1);
1763
1734
  return ne > 1 && (ne = 1), ne < 0 && (ne = 0), ne;
1764
1735
  });
1765
- H = P(H, x);
1766
- let $ = ((((U = l.current) == null ? void 0 : U.clientWidth) ?? L) - (i[0] + s)) / (i[1] + s);
1767
- return H.map((X, J) => ({ value: Math.abs(X), originalIndex: J })).sort((X, J) => X.value - J.value).forEach((X, J) => {
1768
- J === 0 && V(X.originalIndex);
1769
- let ee = ft($, [0, 1], [0, i[1]]);
1770
- ee < i[0] && (ee = i[0]), $--, H[X.originalIndex] = ee;
1736
+ H = P(H, w);
1737
+ let M = ((((U = o.current) == null ? void 0 : U.clientWidth) ?? b) - (i[0] + s)) / (i[1] + s);
1738
+ return H.map((O, J) => ({ value: Math.abs(O), originalIndex: J })).sort((O, J) => O.value - J.value).forEach((O, J) => {
1739
+ J === 0 && A(O.originalIndex);
1740
+ let T = ft(M, [0, 1], [0, i[1]]);
1741
+ T < i[0] && (T = i[0]), M--, H[O.originalIndex] = T;
1771
1742
  }), H;
1772
- }, I = W([]).current, [C, V] = S(0);
1743
+ }, I = D([]).current, [$, A] = S(0);
1773
1744
  R(() => {
1774
- d && d(C);
1775
- }, [C]), I.length !== m.length && m.forEach((L, x) => {
1776
- I[x] || (I[x] = K.createRef());
1745
+ f && f($);
1746
+ }, [$]), I.length !== y.length && y.forEach((b, w) => {
1747
+ I[w] || (I[w] = K.createRef());
1777
1748
  });
1778
- const D = m.map((L, x) => K.cloneElement(
1779
- L,
1749
+ const W = y.map((b, w) => K.cloneElement(
1750
+ b,
1780
1751
  {
1781
- width: g[x],
1782
- ref: I[x],
1783
- key: x,
1784
- index: x
1752
+ width: x[w],
1753
+ ref: I[w],
1754
+ key: w,
1755
+ index: w
1785
1756
  }
1786
- )), k = Ce((b == null ? void 0 : b.scrollProgress) ?? 0), v = pe(
1757
+ )), k = $e((L == null ? void 0 : L.scrollProgress) ?? 0), g = me(
1787
1758
  k,
1788
1759
  [0, 1],
1789
1760
  [
1790
1761
  0,
1791
- 1 - (((j = l.current) == null ? void 0 : j.clientWidth) ?? 0) / (((z = w == null ? void 0 : w.current) == null ? void 0 : z.clientWidth) ?? 0)
1762
+ 1 - (((Y = o.current) == null ? void 0 : Y.clientWidth) ?? 0) / (((z = v == null ? void 0 : v.current) == null ? void 0 : z.clientWidth) ?? 0)
1792
1763
  ]
1793
- ), M = pe(
1794
- v,
1795
- (L) => `${-L * 100}%`
1796
- ), Y = (L) => {
1797
- L.scrollTotal > 0 && B(L);
1764
+ ), C = me(
1765
+ g,
1766
+ (b) => `${-b * 100}%`
1767
+ ), X = (b) => {
1768
+ b.scrollTotal > 0 && B(b);
1798
1769
  };
1799
1770
  R(() => {
1800
- const L = E();
1801
- N(L);
1802
- }, [b]);
1771
+ const b = N();
1772
+ E(b);
1773
+ }, [L]);
1803
1774
  const [q, G] = S(0);
1804
- return xe(() => {
1805
- let L = i[1];
1806
- b && L > b.scrollVisible && (L = b.scrollVisible);
1807
- const x = (L + s) * D.length / a;
1808
- G(x);
1809
- }, [l, I, b]), /* @__PURE__ */ u("div", { className: f.carousel, ref: l, ...y, children: /* @__PURE__ */ u(
1775
+ return ve(() => {
1776
+ let b = i[1];
1777
+ L && b > L.scrollVisible && (b = L.scrollVisible);
1778
+ const w = (b + s) * W.length / a;
1779
+ G(w);
1780
+ }, [o, I, L]), /* @__PURE__ */ u("div", { className: d.carousel, ref: o, ...p, children: /* @__PURE__ */ u(
1810
1781
  ot,
1811
1782
  {
1812
1783
  draggable: !0,
1813
1784
  orientation: "horizontal",
1814
- onScroll: Y,
1785
+ onScroll: X,
1815
1786
  scrollSize: q,
1816
1787
  children: /* @__PURE__ */ u(
1817
1788
  F.div,
1818
1789
  {
1819
- className: f.track,
1820
- ref: w,
1790
+ className: d.track,
1791
+ ref: v,
1821
1792
  style: {
1822
1793
  transitionDuration: "0.5s",
1823
1794
  transitionTimingFunction: "ease-out",
1824
1795
  gap: `${s}px`,
1825
- x: M
1796
+ x: C
1826
1797
  },
1827
- children: D
1798
+ children: W
1828
1799
  }
1829
1800
  )
1830
1801
  }
@@ -1834,106 +1805,106 @@ const Ht = ({
1834
1805
  className: t,
1835
1806
  ...n
1836
1807
  }) => {
1837
- const o = Oe({ orientation: e, className: t });
1838
- return /* @__PURE__ */ u("hr", { className: o.divider, ...n });
1808
+ const l = je({ orientation: e, className: t });
1809
+ return /* @__PURE__ */ u("hr", { className: l.divider, ...n });
1839
1810
  }, _ = [];
1840
1811
  for (let e = 0; e < 256; ++e)
1841
1812
  _.push((e + 256).toString(16).slice(1));
1842
1813
  function pt(e, t = 0) {
1843
1814
  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();
1844
1815
  }
1845
- let ie;
1816
+ let ce;
1846
1817
  const yt = new Uint8Array(16);
1847
1818
  function gt() {
1848
- if (!ie) {
1819
+ if (!ce) {
1849
1820
  if (typeof crypto > "u" || !crypto.getRandomValues)
1850
1821
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1851
- ie = crypto.getRandomValues.bind(crypto);
1822
+ ce = crypto.getRandomValues.bind(crypto);
1852
1823
  }
1853
- return ie(yt);
1824
+ return ce(yt);
1854
1825
  }
1855
- const vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ge = { randomUUID: vt };
1856
- function de(e, t, n) {
1826
+ const vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), pe = { randomUUID: vt };
1827
+ function ie(e, t, n) {
1857
1828
  var r;
1858
- if (ge.randomUUID && !e)
1859
- return ge.randomUUID();
1829
+ if (pe.randomUUID && !e)
1830
+ return pe.randomUUID();
1860
1831
  e = e || {};
1861
- const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? gt();
1862
- if (o.length < 16)
1832
+ const l = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? gt();
1833
+ if (l.length < 16)
1863
1834
  throw new Error("Random bytes length must be >= 16");
1864
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, pt(o);
1835
+ return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, pt(l);
1865
1836
  }
1866
- const Ee = ({
1837
+ const Ne = ({
1867
1838
  variant: e = "plain",
1868
1839
  buttons: t,
1869
1840
  className: n,
1870
- children: o,
1841
+ children: l,
1871
1842
  title: r,
1872
1843
  text: c,
1873
1844
  position: i,
1874
1845
  targetRef: s,
1875
- ref: d,
1846
+ ref: f,
1876
1847
  trigger: a = ["hover", "focus"],
1877
- ...y
1848
+ ...p
1878
1849
  }) => {
1879
- if (!o && !s)
1850
+ if (!l && !s)
1880
1851
  throw new Error("ToolTip must have a child or a targetRef");
1881
1852
  Array.isArray(a) || (a = [a]), t && !Array.isArray(t) && (t = [t]);
1882
- const p = W(null), l = s || p, [f, m] = S(null), [w] = S(de()), [g, N] = S(!1), b = W(null);
1853
+ const m = D(null), o = s || m, [d, y] = S(null), [v] = S(ie()), [x, E] = S(!1), L = D(null);
1883
1854
  R(() => {
1884
- const v = (M) => {
1885
- m(M.detail);
1855
+ const g = (C) => {
1856
+ y(C.detail);
1886
1857
  };
1887
- return document.addEventListener("tooltip-update", v), () => {
1858
+ return document.addEventListener("tooltip-update", g), () => {
1888
1859
  document.removeEventListener(
1889
1860
  "tooltip-update",
1890
- v
1861
+ g
1891
1862
  );
1892
1863
  };
1893
1864
  }, []), R(() => {
1894
- b.current && clearTimeout(b.current), f ? N(f === w) : b.current = setTimeout(() => {
1895
- N(!1);
1865
+ L.current && clearTimeout(L.current), d ? E(d === v) : L.current = setTimeout(() => {
1866
+ E(!1);
1896
1867
  }, 1200);
1897
- }, [f, w]);
1868
+ }, [d, v]);
1898
1869
  const B = () => {
1899
1870
  if (a.includes("hover")) {
1900
- const v = new CustomEvent("tooltip-update", { detail: w });
1901
- document.dispatchEvent(v);
1871
+ const g = new CustomEvent("tooltip-update", { detail: v });
1872
+ document.dispatchEvent(g);
1902
1873
  }
1903
- }, E = () => {
1874
+ }, N = () => {
1904
1875
  if (a.includes("hover")) {
1905
- const v = new CustomEvent("tooltip-update", { detail: null });
1906
- document.dispatchEvent(v);
1876
+ const g = new CustomEvent("tooltip-update", { detail: null });
1877
+ document.dispatchEvent(g);
1907
1878
  }
1908
1879
  }, I = () => {
1909
1880
  if (a.includes("click")) {
1910
- const v = new CustomEvent("tooltip-update", {
1911
- detail: g ? null : w
1881
+ const g = new CustomEvent("tooltip-update", {
1882
+ detail: x ? null : v
1912
1883
  });
1913
- document.dispatchEvent(v);
1884
+ document.dispatchEvent(g);
1914
1885
  }
1915
- }, C = () => {
1886
+ }, $ = () => {
1916
1887
  if (a.includes("focus")) {
1917
- const v = new CustomEvent("tooltip-update", { detail: w });
1918
- document.dispatchEvent(v);
1888
+ const g = new CustomEvent("tooltip-update", { detail: v });
1889
+ document.dispatchEvent(g);
1919
1890
  }
1920
- }, V = () => {
1891
+ }, A = () => {
1921
1892
  if (a.includes("focus")) {
1922
- const v = new CustomEvent("tooltip-update", { detail: null });
1923
- document.dispatchEvent(v);
1893
+ const g = new CustomEvent("tooltip-update", { detail: null });
1894
+ document.dispatchEvent(g);
1924
1895
  }
1925
1896
  };
1926
1897
  R(() => {
1927
- if (l != null && l.current) {
1928
- const v = l.current;
1929
- return v.addEventListener("mouseenter", B), v.addEventListener("mouseleave", E), v.addEventListener("click", I), v.addEventListener("focus", C), v.addEventListener("blur", V), () => {
1930
- v.removeEventListener("mouseenter", B), v.removeEventListener("mouseleave", E), v.removeEventListener("click", I), v.removeEventListener("focus", C), v.removeEventListener("blur", V);
1898
+ if (o != null && o.current) {
1899
+ const g = o.current;
1900
+ return g.addEventListener("mouseenter", B), g.addEventListener("mouseleave", N), g.addEventListener("click", I), g.addEventListener("focus", $), g.addEventListener("blur", A), () => {
1901
+ g.removeEventListener("mouseenter", B), g.removeEventListener("mouseleave", N), g.removeEventListener("click", I), g.removeEventListener("focus", $), g.removeEventListener("blur", A);
1931
1902
  };
1932
1903
  }
1933
- }, [l, a, w, g]);
1934
- const D = !s && te(o) ? oe(o, { ref: p }) : o;
1935
- if (!i && typeof window < "u" && l != null && l.current && !i) {
1936
- const v = l.current.getBoundingClientRect(), M = window.innerWidth, Y = window.innerHeight, q = v.left / M, G = v.top / Y;
1904
+ }, [o, a, v, x]);
1905
+ const W = !s && ee(l) ? oe(l, { ref: m }) : l;
1906
+ if (!i && typeof window < "u" && o != null && o.current && !i) {
1907
+ const g = o.current.getBoundingClientRect(), C = window.innerWidth, X = window.innerHeight, q = g.left / C, G = g.top / X;
1937
1908
  e === "plain" ? q < 1 / 3 ? i = "right" : q > 2 / 3 ? i = "left" : i = G > 0.5 ? "top" : "bottom" : q < 1 / 2 && G < 1 / 2 ? i = "bottom-right" : q > 1 / 2 && G < 1 / 2 ? i = "bottom-left" : q > 1 / 2 && G > 1 / 2 ? i = "top-left" : q < 1 / 2 && G > 1 / 2 && (i = "top-right");
1938
1909
  }
1939
1910
  const k = tt({
@@ -1945,22 +1916,22 @@ const Ee = ({
1945
1916
  position: i,
1946
1917
  trigger: a,
1947
1918
  targetRef: s,
1948
- children: o
1919
+ children: l
1949
1920
  });
1950
- return /* @__PURE__ */ A(T, { children: [
1951
- D,
1952
- /* @__PURE__ */ u(Q, { children: g && /* @__PURE__ */ u(at, { targetRef: l, children: /* @__PURE__ */ u(
1921
+ return /* @__PURE__ */ V(te, { children: [
1922
+ W,
1923
+ /* @__PURE__ */ u(Q, { children: x && /* @__PURE__ */ u(at, { targetRef: o, children: /* @__PURE__ */ u(
1953
1924
  F.div,
1954
1925
  {
1955
- initial: { opacity: f ? 1 : 0 },
1926
+ initial: { opacity: d ? 1 : 0 },
1956
1927
  animate: { opacity: 1 },
1957
- transition: { duration: f ? 0 : 0.3 },
1958
- exit: { opacity: f ? 1 : 0 },
1928
+ transition: { duration: d ? 0 : 0.3 },
1929
+ exit: { opacity: d ? 1 : 0 },
1959
1930
  className: k.toolTip,
1960
- ...y,
1931
+ ...p,
1961
1932
  onMouseEnter: B,
1962
- onMouseLeave: E,
1963
- children: /* @__PURE__ */ A(
1933
+ onMouseLeave: N,
1934
+ children: /* @__PURE__ */ V(
1964
1935
  F.div,
1965
1936
  {
1966
1937
  className: k.container,
@@ -1973,14 +1944,14 @@ const Ee = ({
1973
1944
  children: [
1974
1945
  r && /* @__PURE__ */ u("div", { className: k.subHead, children: r }),
1975
1946
  /* @__PURE__ */ u("div", { className: k.supportingText, children: c }),
1976
- t && /* @__PURE__ */ u("div", { className: k.actions, children: Array.isArray(t) && t.map((v, M) => /* @__PURE__ */ u(
1947
+ t && /* @__PURE__ */ u("div", { className: k.actions, children: Array.isArray(t) && t.map((g, C) => /* @__PURE__ */ u(
1977
1948
  dt,
1978
1949
  {
1979
1950
  size: "small",
1980
1951
  variant: "text",
1981
- ...v
1952
+ ...g
1982
1953
  },
1983
- M
1954
+ C
1984
1955
  )) })
1985
1956
  ]
1986
1957
  }
@@ -1988,37 +1959,37 @@ const Ee = ({
1988
1959
  }
1989
1960
  ) }) })
1990
1961
  ] });
1991
- }, ve = ({
1962
+ }, ye = ({
1992
1963
  className: e,
1993
1964
  label: t,
1994
1965
  variant: n = "primary",
1995
- size: o = "medium",
1966
+ size: l = "medium",
1996
1967
  href: r,
1997
1968
  type: c,
1998
1969
  icon: i,
1999
1970
  isExtended: s = !1,
2000
- ref: d,
1971
+ ref: f,
2001
1972
  transition: a,
2002
- children: y,
2003
- ...p
1973
+ children: p,
1974
+ ...m
2004
1975
  }) => {
2005
- if (y && (t = y), !t)
1976
+ if (p && (t = p), !t)
2006
1977
  throw new Error(
2007
1978
  "FAB component requires either a label prop or children content"
2008
1979
  );
2009
- const l = r ? "a" : "button", f = qe({
1980
+ const o = r ? "a" : "button", d = qe({
2010
1981
  href: r,
2011
1982
  icon: i,
2012
1983
  isExtended: s,
2013
1984
  label: t,
2014
- size: o,
1985
+ size: l,
2015
1986
  variant: n,
2016
1987
  className: e,
2017
1988
  transition: a,
2018
1989
  children: t
2019
1990
  });
2020
1991
  a = { duration: 0.3, ...a };
2021
- const m = W(null), w = d || m, g = {
1992
+ const y = D(null), v = f || y, x = {
2022
1993
  visible: {
2023
1994
  width: "auto",
2024
1995
  marginLeft: 12,
@@ -2044,24 +2015,24 @@ const Ee = ({
2044
2015
  }
2045
2016
  }
2046
2017
  };
2047
- return /* @__PURE__ */ A(
2048
- l,
2018
+ return /* @__PURE__ */ V(
2019
+ o,
2049
2020
  {
2050
- ...p,
2051
- ref: w,
2021
+ ...m,
2022
+ ref: v,
2052
2023
  href: r,
2053
2024
  "aria-label": s ? void 0 : t,
2054
- className: f.fab,
2025
+ className: d.fab,
2055
2026
  children: [
2056
2027
  /* @__PURE__ */ u(
2057
- Ee,
2028
+ Ne,
2058
2029
  {
2059
2030
  trigger: s ? null : void 0,
2060
2031
  text: t,
2061
- targetRef: w
2032
+ targetRef: v
2062
2033
  }
2063
2034
  ),
2064
- /* @__PURE__ */ u("span", { className: f.stateLayer, children: /* @__PURE__ */ u(
2035
+ /* @__PURE__ */ u("span", { className: d.stateLayer, children: /* @__PURE__ */ u(
2065
2036
  re,
2066
2037
  {
2067
2038
  colorName: h({
@@ -2070,133 +2041,133 @@ const Ee = ({
2070
2041
  "on-secondary-container": n == "secondary",
2071
2042
  "on-tertiary-container": n == "tertiary"
2072
2043
  }),
2073
- triggerRef: w
2044
+ triggerRef: v
2074
2045
  }
2075
2046
  ) }),
2076
- /* @__PURE__ */ u(Z, { icon: i, className: f.icon }),
2047
+ /* @__PURE__ */ u(Z, { icon: i, className: d.icon }),
2077
2048
  /* @__PURE__ */ u(Q, { children: s && /* @__PURE__ */ u(
2078
2049
  F.span,
2079
2050
  {
2080
- variants: g,
2051
+ variants: x,
2081
2052
  initial: "hidden",
2082
2053
  animate: "visible",
2083
2054
  exit: "hidden",
2084
- className: f.label,
2055
+ className: d.label,
2085
2056
  children: t
2086
2057
  }
2087
2058
  ) })
2088
2059
  ]
2089
2060
  }
2090
2061
  );
2091
- }, fe = ({
2062
+ }, ue = ({
2092
2063
  variant: e = "standard",
2093
2064
  href: t,
2094
2065
  disabled: n = !1,
2095
- type: o = "button",
2066
+ type: l = "button",
2096
2067
  title: r,
2097
2068
  label: c,
2098
2069
  onToggle: i,
2099
2070
  activated: s = !1,
2100
- onClick: d,
2071
+ onClick: f,
2101
2072
  icon: a,
2102
- size: y = "medium",
2103
- iconSelected: p,
2104
- className: l,
2105
- ref: f,
2106
- width: m = "default",
2107
- shape: w = "rounded",
2108
- allowShapeTransformation: g = !0,
2109
- transition: N,
2110
- children: b,
2073
+ size: p = "medium",
2074
+ iconSelected: m,
2075
+ className: o,
2076
+ ref: d,
2077
+ width: y = "default",
2078
+ shape: v = "rounded",
2079
+ allowShapeTransformation: x = !0,
2080
+ transition: E,
2081
+ children: L,
2111
2082
  ...B
2112
2083
  }) => {
2113
- if (b && (c = b), !c)
2084
+ if (L && (c = L), !c)
2114
2085
  throw new Error(
2115
2086
  "IconButton component requires either a label prop or children content to provide an accessible aria-label"
2116
2087
  );
2117
2088
  r || (r = c);
2118
- const [E, I] = K.useState(s);
2119
- let C;
2120
- i ? i && (C = (M) => {
2121
- n && M.preventDefault(), I(!E), i(!!E);
2122
- }, a = E && p || a) : C = (M) => {
2123
- n && M.preventDefault(), d && d(M);
2089
+ const [N, I] = K.useState(s);
2090
+ let $;
2091
+ i ? i && ($ = (C) => {
2092
+ n && C.preventDefault(), I(!N), i(!!N);
2093
+ }, a = N && m || a) : $ = (C) => {
2094
+ n && C.preventDefault(), f && f(C);
2124
2095
  }, R(() => {
2125
2096
  I(s);
2126
2097
  }, [s]);
2127
- const V = t ? "a" : "button", D = _e({
2128
- transition: N,
2129
- shape: w,
2130
- allowShapeTransformation: g,
2131
- width: m,
2098
+ const A = t ? "a" : "button", W = _e({
2099
+ transition: E,
2100
+ shape: v,
2101
+ allowShapeTransformation: x,
2102
+ width: y,
2132
2103
  href: t,
2133
- activated: E,
2104
+ activated: N,
2134
2105
  label: c,
2135
- iconSelected: p,
2136
- isActive: E,
2106
+ iconSelected: m,
2107
+ isActive: N,
2137
2108
  onToggle: i,
2138
2109
  disabled: n,
2139
2110
  icon: a,
2140
2111
  variant: e,
2141
- className: l,
2142
- size: y,
2112
+ className: o,
2113
+ size: p,
2143
2114
  children: c,
2144
2115
  ...B
2145
- }), k = W(null), v = f || k;
2146
- return N = { duration: 0.3, ...N }, /* @__PURE__ */ A(
2147
- V,
2116
+ }), k = D(null), g = d || k;
2117
+ return E = { duration: 0.3, ...E }, /* @__PURE__ */ V(
2118
+ A,
2148
2119
  {
2149
2120
  disabled: n,
2150
2121
  href: t,
2151
- style: { transition: N.duration + "s" },
2152
- className: D.iconButton,
2122
+ style: { transition: E.duration + "s" },
2123
+ className: W.iconButton,
2153
2124
  "aria-label": c,
2154
2125
  ...B,
2155
2126
  title: void 0,
2156
- onClick: C,
2157
- ref: v,
2127
+ onClick: $,
2128
+ ref: g,
2158
2129
  children: [
2159
2130
  /* @__PURE__ */ u(
2160
- Ee,
2131
+ Ne,
2161
2132
  {
2162
- targetRef: v,
2133
+ targetRef: g,
2163
2134
  trigger: n ? null : void 0,
2164
2135
  text: r
2165
2136
  }
2166
2137
  ),
2167
- /* @__PURE__ */ u("div", { className: D.touchTarget }),
2138
+ /* @__PURE__ */ u("div", { className: W.touchTarget }),
2168
2139
  /* @__PURE__ */ u(
2169
2140
  "div",
2170
2141
  {
2171
- className: D.stateLayer,
2172
- style: { transition: N.duration + "s" },
2142
+ className: W.stateLayer,
2143
+ style: { transition: E.duration + "s" },
2173
2144
  children: !n && /* @__PURE__ */ u(
2174
2145
  re,
2175
2146
  {
2176
2147
  colorName: h(
2177
2148
  e === "standard" && {
2178
- "on-surface-variant": !E,
2179
- primary: E
2149
+ "on-surface-variant": !N,
2150
+ primary: N
2180
2151
  },
2181
2152
  e === "filled" && {
2182
- primary: !E && !!i,
2183
- "inverse-on-surface": E || !i
2153
+ primary: !N && !!i,
2154
+ "inverse-on-surface": N || !i
2184
2155
  },
2185
2156
  e === "tonal" && {
2186
- "on-surface-variant": !E && !!i,
2187
- "on-secondary-container": E || !i
2157
+ "on-surface-variant": !N && !!i,
2158
+ "on-secondary-container": N || !i
2188
2159
  },
2189
2160
  e === "outlined" && {
2190
- "on-surface-variant": !E,
2191
- "on-primary": E
2161
+ "on-surface-variant": !N,
2162
+ "on-primary": N
2192
2163
  }
2193
2164
  ),
2194
- triggerRef: v
2165
+ triggerRef: g
2195
2166
  }
2196
2167
  )
2197
2168
  }
2198
2169
  ),
2199
- a && /* @__PURE__ */ u(Z, { icon: a, className: D.icon })
2170
+ a && /* @__PURE__ */ u(Z, { icon: a, className: W.icon })
2200
2171
  ]
2201
2172
  }
2202
2173
  );
@@ -2204,7 +2175,7 @@ const Ee = ({
2204
2175
  className: e,
2205
2176
  valueFormatter: t,
2206
2177
  step: n = 10,
2207
- name: o,
2178
+ name: l,
2208
2179
  value: r = 0,
2209
2180
  min: c = 0,
2210
2181
  max: i = 100,
@@ -2218,99 +2189,99 @@ const Ee = ({
2218
2189
  label: "100"
2219
2190
  }
2220
2191
  ],
2221
- ref: d,
2192
+ ref: f,
2222
2193
  onChange: a,
2223
- ...y
2194
+ ...p
2224
2195
  }) => {
2225
- const p = (L) => {
2226
- const x = f(), P = l();
2227
- return L === 1 / 0 ? 100 : L === -1 / 0 ? 0 : (L - x) / (P - x) * 100;
2228
- }, l = (L = !1) => L ? i : i == 1 / 0 ? s[(s == null ? void 0 : s.length) - 1].value : i, f = (L = !1) => L ? c : c == -1 / 0 ? s[0].value : c, m = (L) => {
2229
- const x = f(!1);
2230
- return (l(!1) - x) * L / 100 + x;
2231
- }, [w, g] = S(!1), N = W(null), b = d || N, [B, E] = S(r), [I, C] = S(p(r)), [V, D] = S(!1), k = (L) => {
2232
- D(!0), g(!0), Y(L);
2233
- }, v = () => {
2234
- D(!1), g(!1);
2196
+ const m = (b) => {
2197
+ const w = d(), P = o();
2198
+ return b === 1 / 0 ? 100 : b === -1 / 0 ? 0 : (b - w) / (P - w) * 100;
2199
+ }, o = (b = !1) => b ? i : i == 1 / 0 ? s[(s == null ? void 0 : s.length) - 1].value : i, d = (b = !1) => b ? c : c == -1 / 0 ? s[0].value : c, y = (b) => {
2200
+ const w = d(!1);
2201
+ return (o(!1) - w) * b / 100 + w;
2202
+ }, [v, x] = S(!1), E = D(null), L = f || E, [B, N] = S(r), [I, $] = S(m(r)), [A, W] = S(!1), k = (b) => {
2203
+ W(!0), x(!0), X(b);
2204
+ }, g = () => {
2205
+ W(!1), x(!1);
2235
2206
  };
2236
- R(() => (V ? (window.addEventListener("mouseup", v), window.addEventListener("mousemove", Y), window.addEventListener("touchend", v), window.addEventListener("touchmove", Y)) : (window.removeEventListener("mouseup", v), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", v), window.removeEventListener("touchmove", Y)), () => {
2237
- window.removeEventListener("mouseup", v), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", v), window.removeEventListener("touchmove", Y);
2238
- }), [V]);
2239
- const M = Je({
2207
+ R(() => (A ? (window.addEventListener("mouseup", g), window.addEventListener("mousemove", X), window.addEventListener("touchend", g), window.addEventListener("touchmove", X)) : (window.removeEventListener("mouseup", g), window.removeEventListener("mousemove", X), window.removeEventListener("touchend", g), window.removeEventListener("touchmove", X)), () => {
2208
+ window.removeEventListener("mouseup", g), window.removeEventListener("mousemove", X), window.removeEventListener("touchend", g), window.removeEventListener("touchmove", X);
2209
+ }), [A]);
2210
+ const C = Je({
2240
2211
  className: e,
2241
- isChanging: w,
2212
+ isChanging: v,
2242
2213
  marks: s,
2243
2214
  max: i,
2244
2215
  min: c,
2245
- name: o,
2216
+ name: l,
2246
2217
  step: n,
2247
2218
  value: B,
2248
2219
  valueFormatter: t,
2249
2220
  onChange: a
2250
- }), Y = (L) => {
2251
- const x = b == null ? void 0 : b.current;
2252
- if (x) {
2253
- const P = x.getBoundingClientRect().left, $ = ((L.type === "touchmove" || L.type === "touchstart" ? L.touches[0].clientX : L.clientX) - P) / x.offsetWidth * 100;
2254
- q({ pourcent: $ });
2221
+ }), X = (b) => {
2222
+ const w = L == null ? void 0 : L.current;
2223
+ if (w) {
2224
+ const P = w.getBoundingClientRect().left, M = ((b.type === "touchmove" || b.type === "touchstart" ? b.touches[0].clientX : b.clientX) - P) / w.offsetWidth * 100;
2225
+ q({ pourcent: M });
2255
2226
  }
2256
2227
  }, q = ({
2257
- pourcent: L,
2258
- value: x
2228
+ pourcent: b,
2229
+ value: w
2259
2230
  }) => {
2260
- if (L) {
2261
- if (L >= 100) {
2262
- E(l(!0)), C(100);
2231
+ if (b) {
2232
+ if (b >= 100) {
2233
+ N(o(!0)), $(100);
2263
2234
  return;
2264
2235
  }
2265
- if (L <= 0) {
2266
- E(f(!0)), C(0);
2236
+ if (b <= 0) {
2237
+ N(d(!0)), $(0);
2267
2238
  return;
2268
2239
  }
2269
- x = m(L), x == f() && (x = f(!0)), x == l() && (x = l(!0));
2270
- } else if (x != null) {
2271
- if (x >= l()) {
2272
- E(l(!0)), C(100);
2240
+ w = y(b), w == d() && (w = d(!0)), w == o() && (w = o(!0));
2241
+ } else if (w != null) {
2242
+ if (w >= o()) {
2243
+ N(o(!0)), $(100);
2273
2244
  return;
2274
2245
  }
2275
- if (x <= f()) {
2276
- E(f(!0)), C(0);
2246
+ if (w <= d()) {
2247
+ N(d(!0)), $(0);
2277
2248
  return;
2278
2249
  }
2279
- L = p(x);
2250
+ b = m(w);
2280
2251
  } else
2281
2252
  return;
2282
- n != null ? x = Math.round((x - f()) / n) * n + f() : s && (x = s.reduce((P, H, $) => {
2283
- let U = H.value === 1 / 0 ? l() : H.value === -1 / 0 ? f() : H.value, X = P.value === 1 / 0 ? l() : P.value === -1 / 0 ? f() : P.value;
2284
- return U = Math.abs(U - x), X = Math.abs(X - x), U < X ? H : P;
2285
- }).value), x >= l() && (x = l(!0)), x <= f() && (x = f(!0)), L = p(x), E(x), C(L), a && a(x);
2286
- }, [G, j] = S(0);
2253
+ n != null ? w = Math.round((w - d()) / n) * n + d() : s && (w = s.reduce((P, H, M) => {
2254
+ let U = H.value === 1 / 0 ? o() : H.value === -1 / 0 ? d() : H.value, O = P.value === 1 / 0 ? o() : P.value === -1 / 0 ? d() : P.value;
2255
+ return U = Math.abs(U - w), O = Math.abs(O - w), U < O ? H : P;
2256
+ }).value), w >= o() && (w = o(!0)), w <= d() && (w = d(!0)), b = m(w), N(w), $(b), a && a(w);
2257
+ }, [G, Y] = S(0);
2287
2258
  return R(() => {
2288
- const L = () => {
2289
- b.current && j(b.current.offsetWidth);
2259
+ const b = () => {
2260
+ L.current && Y(L.current.offsetWidth);
2290
2261
  };
2291
- return L(), window.addEventListener("resize", L), () => {
2292
- window.removeEventListener("resize", L);
2262
+ return b(), window.addEventListener("resize", b), () => {
2263
+ window.removeEventListener("resize", b);
2293
2264
  };
2294
- }, []), /* @__PURE__ */ A(
2265
+ }, []), /* @__PURE__ */ V(
2295
2266
  "div",
2296
2267
  {
2297
2268
  tabIndex: 0,
2298
- onKeyDown: (L) => {
2299
- switch (L.key) {
2269
+ onKeyDown: (b) => {
2270
+ switch (b.key) {
2300
2271
  case "ArrowRight":
2301
2272
  if (n)
2302
2273
  q({ value: B + n });
2303
2274
  else if (s) {
2304
- const x = s.find((P) => P.value > B);
2305
- x && q({ value: x.value });
2275
+ const w = s.find((P) => P.value > B);
2276
+ w && q({ value: w.value });
2306
2277
  }
2307
2278
  break;
2308
2279
  case "ArrowLeft":
2309
2280
  if (n)
2310
2281
  q({ value: B - n });
2311
2282
  else if (s) {
2312
- const x = s.slice(0).reverse().find((P, H, $) => B === 1 / 0 ? H === 1 : P.value < B);
2313
- x && q({ value: x.value });
2283
+ const w = s.slice(0).reverse().find((P, H, M) => B === 1 / 0 ? H === 1 : P.value < B);
2284
+ w && q({ value: w.value });
2314
2285
  }
2315
2286
  break;
2316
2287
  default:
@@ -2318,30 +2289,30 @@ const Ee = ({
2318
2289
  }
2319
2290
  },
2320
2291
  role: "slider",
2321
- "aria-valuemin": f(!0),
2322
- "aria-valuemax": l(!0),
2292
+ "aria-valuemin": d(!0),
2293
+ "aria-valuemax": o(!0),
2323
2294
  "aria-valuenow": B,
2324
2295
  "aria-valuetext": B.toString(),
2325
- className: M.slider,
2296
+ className: C.slider,
2326
2297
  onMouseDown: k,
2327
- onClick: Y,
2328
- ref: b,
2298
+ onClick: X,
2299
+ ref: L,
2329
2300
  onTouchStart: k,
2330
- onDragStart: (L) => L.preventDefault(),
2331
- ...y,
2301
+ onDragStart: (b) => b.preventDefault(),
2302
+ ...p,
2332
2303
  children: [
2333
- /* @__PURE__ */ u("input", { type: "hidden", name: o, value: B }),
2304
+ /* @__PURE__ */ u("input", { type: "hidden", name: l, value: B }),
2334
2305
  /* @__PURE__ */ u(
2335
2306
  "div",
2336
2307
  {
2337
- className: M.activeTrack,
2308
+ className: C.activeTrack,
2338
2309
  style: { flex: I / 100 }
2339
2310
  }
2340
2311
  ),
2341
- /* @__PURE__ */ u("div", { className: M.handle, children: /* @__PURE__ */ u(Q, { children: w && /* @__PURE__ */ u(
2312
+ /* @__PURE__ */ u("div", { className: C.handle, children: /* @__PURE__ */ u(Q, { children: v && /* @__PURE__ */ u(
2342
2313
  F.div,
2343
2314
  {
2344
- className: M.valueIndicator,
2315
+ className: C.valueIndicator,
2345
2316
  initial: "hidden",
2346
2317
  animate: "visible",
2347
2318
  exit: "hidden",
@@ -2361,7 +2332,7 @@ const Ee = ({
2361
2332
  /* @__PURE__ */ u(
2362
2333
  "div",
2363
2334
  {
2364
- className: M.inactiveTrack,
2335
+ className: C.inactiveTrack,
2365
2336
  style: { flex: 1 - I / 100 }
2366
2337
  }
2367
2338
  ),
@@ -2369,21 +2340,21 @@ const Ee = ({
2369
2340
  "div",
2370
2341
  {
2371
2342
  className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
2372
- children: s && s.map((L, x) => {
2343
+ children: s && s.map((b, w) => {
2373
2344
  let P = null;
2374
- const H = (w ? 9 : 10) / G * 100, $ = p(L.value);
2375
- return $ <= I - H ? P = !0 : $ >= I + H && (P = !1), /* @__PURE__ */ u(
2345
+ const H = (v ? 9 : 10) / G * 100, M = m(b.value);
2346
+ return M <= I - H ? P = !0 : M >= I + H && (P = !1), /* @__PURE__ */ u(
2376
2347
  "div",
2377
2348
  {
2378
- className: h(M.dot, {
2349
+ className: h(C.dot, {
2379
2350
  "bg-primary-container": P != null && P,
2380
2351
  "bg-primary": P != null && !P
2381
2352
  }),
2382
2353
  style: {
2383
- left: `${p(L.value)}%`
2354
+ left: `${m(b.value)}%`
2384
2355
  }
2385
2356
  },
2386
- x
2357
+ w
2387
2358
  );
2388
2359
  })
2389
2360
  }
@@ -2397,15 +2368,15 @@ const Ee = ({
2397
2368
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2398
2369
  * Copyright 2025 Fonticons, Inc.
2399
2370
  */
2400
- var wt = {
2371
+ var xt = {
2401
2372
  prefix: "fas",
2402
2373
  iconName: "circle-exclamation",
2403
2374
  icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]
2404
- }, me = {
2375
+ }, de = {
2405
2376
  prefix: "fas",
2406
2377
  iconName: "xmark",
2407
2378
  icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
2408
- }, xt = {
2379
+ }, wt = {
2409
2380
  prefix: "fas",
2410
2381
  iconName: "bars",
2411
2382
  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"]
@@ -2414,86 +2385,86 @@ const jt = ({
2414
2385
  variant: e = "standard",
2415
2386
  className: t,
2416
2387
  children: n,
2417
- title: o,
2388
+ title: l,
2418
2389
  position: r = "right",
2419
2390
  extended: c,
2420
2391
  divider: i,
2421
2392
  onExtendedChange: s,
2422
- closeIcon: d = me,
2393
+ closeIcon: f = de,
2423
2394
  transition: a,
2424
- ...y
2395
+ ...p
2425
2396
  }) => {
2426
2397
  a = { duration: 0.3, ...a };
2427
- const [p, l] = S(c ?? !0), f = Ge({
2398
+ const [m, o] = S(c ?? !0), d = Ge({
2428
2399
  transition: a,
2429
- title: o,
2400
+ title: l,
2430
2401
  position: r,
2431
- closeIcon: d,
2402
+ closeIcon: f,
2432
2403
  className: t,
2433
2404
  children: n,
2434
2405
  onExtendedChange: s,
2435
2406
  divider: i,
2436
- isExtended: p,
2437
- extended: p,
2407
+ isExtended: m,
2408
+ extended: m,
2438
2409
  variant: e
2439
2410
  });
2440
2411
  R(() => {
2441
- s == null || s(p ?? !1);
2442
- }, [p]), R(() => {
2443
- c != null && l(c);
2412
+ s == null || s(m ?? !1);
2413
+ }, [m]), R(() => {
2414
+ c != null && o(c);
2444
2415
  }, [c]);
2445
- const m = {
2416
+ const y = {
2446
2417
  close: {
2447
2418
  width: 0
2448
2419
  },
2449
2420
  open: {
2450
2421
  width: "auto"
2451
2422
  }
2452
- }, w = () => /* @__PURE__ */ A(T, { children: [
2453
- /* @__PURE__ */ u(Q, { children: e == "modal" && p && /* @__PURE__ */ u(
2423
+ }, v = () => /* @__PURE__ */ V(te, { children: [
2424
+ /* @__PURE__ */ u(Q, { children: e == "modal" && m && /* @__PURE__ */ u(
2454
2425
  F.div,
2455
2426
  {
2456
2427
  initial: { opacity: 0 },
2457
2428
  animate: { opacity: 1 },
2458
2429
  exit: { opacity: 0 },
2459
2430
  transition: a,
2460
- onClick: () => l(!1),
2461
- className: f.overlay
2431
+ onClick: () => o(!1),
2432
+ className: d.overlay
2462
2433
  }
2463
2434
  ) }),
2464
- /* @__PURE__ */ u(Q, { children: p && /* @__PURE__ */ A(
2435
+ /* @__PURE__ */ u(Q, { children: m && /* @__PURE__ */ V(
2465
2436
  "div",
2466
2437
  {
2467
- ...y,
2468
- className: f.slideSheet,
2438
+ ...p,
2439
+ className: d.slideSheet,
2469
2440
  style: { transition: a.duration + "s" },
2470
2441
  children: [
2471
- /* @__PURE__ */ A(
2442
+ /* @__PURE__ */ V(
2472
2443
  F.div,
2473
2444
  {
2474
- variants: m,
2445
+ variants: y,
2475
2446
  initial: c === !1 ? "open" : "close",
2476
2447
  animate: "open",
2477
2448
  exit: "close",
2478
- className: f.container,
2449
+ className: d.container,
2479
2450
  children: [
2480
- /* @__PURE__ */ A("div", { className: f.header, children: [
2481
- o && /* @__PURE__ */ u("p", { className: f.title, children: o }),
2451
+ /* @__PURE__ */ V("div", { className: d.header, children: [
2452
+ l && /* @__PURE__ */ u("p", { className: d.title, children: l }),
2482
2453
  /* @__PURE__ */ u(
2483
- fe,
2454
+ ue,
2484
2455
  {
2485
2456
  size: "small",
2486
2457
  label: "close",
2487
- icon: d,
2488
- onClick: () => l(!1),
2489
- className: f.closeButton
2458
+ icon: f,
2459
+ onClick: () => o(!1),
2460
+ className: d.closeButton
2490
2461
  }
2491
2462
  )
2492
2463
  ] }),
2493
2464
  /* @__PURE__ */ u(
2494
2465
  "div",
2495
2466
  {
2496
- className: f.content,
2467
+ className: d.content,
2497
2468
  style: { transition: a.duration + "s" },
2498
2469
  children: n
2499
2470
  }
@@ -2501,23 +2472,23 @@ const jt = ({
2501
2472
  ]
2502
2473
  }
2503
2474
  ),
2504
- (i == null && e == "standard" ? !0 : i) && /* @__PURE__ */ u(ht, { className: f.divider, orientation: "vertical" })
2475
+ (i == null && e == "standard" ? !0 : i) && /* @__PURE__ */ u(ht, { className: d.divider, orientation: "vertical" })
2505
2476
  ]
2506
2477
  }
2507
2478
  ) })
2508
2479
  ] });
2509
- return e == "modal" ? be(w(), document.body) : w();
2510
- }, Ot = ({
2480
+ return e == "modal" ? xe(v(), document.body) : v();
2481
+ }, qt = ({
2511
2482
  message: e,
2512
2483
  className: t,
2513
2484
  duration: n,
2514
- closeIcon: o = me,
2485
+ closeIcon: l = de,
2515
2486
  onClose: r,
2516
2487
  ...c
2517
2488
  }) => {
2518
- const [i, s] = S(!0), d = Ze({
2489
+ const [i, s] = S(!0), f = Ze({
2519
2490
  className: t,
2520
- closeIcon: o,
2491
+ closeIcon: l,
2521
2492
  duration: n,
2522
2493
  isVisible: i,
2523
2494
  onClose: r,
@@ -2538,82 +2509,82 @@ const jt = ({
2538
2509
  animate: { height: "auto" },
2539
2510
  exit: { height: 0 },
2540
2511
  transition: { duration: 0.1 },
2541
- className: d.snackbar,
2512
+ className: f.snackbar,
2542
2513
  ...c,
2543
- children: /* @__PURE__ */ A("div", { className: d.container, children: [
2544
- /* @__PURE__ */ u("p", { className: d.supportingText, children: e }),
2514
+ children: /* @__PURE__ */ V("div", { className: f.container, children: [
2515
+ /* @__PURE__ */ u("p", { className: f.supportingText, children: e }),
2545
2516
  /* @__PURE__ */ u(
2546
- fe,
2517
+ ue,
2547
2518
  {
2548
2519
  onClick: () => a(),
2549
- className: d.icon,
2550
- icon: o,
2520
+ className: f.icon,
2521
+ icon: l,
2551
2522
  label: "close the snackbar"
2552
2523
  }
2553
2524
  )
2554
2525
  ] })
2555
2526
  }
2556
2527
  ) });
2557
- }, qt = ({
2528
+ }, _t = ({
2558
2529
  selected: e = !1,
2559
2530
  className: t,
2560
2531
  activeIcon: n,
2561
- disabled: o = !1,
2532
+ disabled: l = !1,
2562
2533
  inactiveIcon: r,
2563
2534
  onChange: c,
2564
2535
  onClick: i,
2565
2536
  onKeyDown: s,
2566
- ref: d,
2537
+ ref: f,
2567
2538
  ...a
2568
2539
  }) => {
2569
- const [y, p] = S(e), l = (b) => {
2570
- o || (m(), i && i(b));
2571
- }, f = (b) => {
2572
- o || ((b.key === " " || b.key === "Enter") && (b.preventDefault(), m()), s && s(b));
2573
- }, m = () => {
2574
- p(!y), c == null || c(!y);
2575
- }, w = Qe({
2540
+ const [p, m] = S(e), o = (L) => {
2541
+ l || (y(), i && i(L));
2542
+ }, d = (L) => {
2543
+ l || ((L.key === " " || L.key === "Enter") && (L.preventDefault(), y()), s && s(L));
2544
+ }, y = () => {
2545
+ m(!p), c == null || c(!p);
2546
+ }, v = Qe({
2576
2547
  className: t,
2577
- isSelected: y,
2548
+ isSelected: p,
2578
2549
  activeIcon: n,
2579
2550
  inactiveIcon: r,
2580
- disabled: o,
2581
- selected: y,
2551
+ disabled: l,
2552
+ selected: p,
2582
2553
  onChange: c
2583
- }), g = W(null), N = d || g;
2584
- return /* @__PURE__ */ A(
2554
+ }), x = D(null), E = f || x;
2555
+ return /* @__PURE__ */ V(
2585
2556
  F.div,
2586
2557
  {
2587
2558
  role: "switch",
2588
- "aria-checked": y,
2589
- tabIndex: o ? -1 : 0,
2590
- onKeyDown: f,
2591
- onClick: l,
2592
- ref: N,
2593
- className: w.switch,
2559
+ "aria-checked": p,
2560
+ tabIndex: l ? -1 : 0,
2561
+ onKeyDown: d,
2562
+ onClick: o,
2563
+ ref: E,
2564
+ className: v.switch,
2594
2565
  ...a,
2595
2566
  children: [
2596
- /* @__PURE__ */ u("input", { type: "hidden", value: y ? "1" : "0" }),
2597
- /* @__PURE__ */ A(
2567
+ /* @__PURE__ */ u("input", { type: "hidden", value: p ? "1" : "0" }),
2568
+ /* @__PURE__ */ V(
2598
2569
  F.div,
2599
2570
  {
2600
2571
  layout: !0,
2601
- style: { translate: y ? "50%" : "-50%" },
2572
+ style: { translate: p ? "50%" : "-50%" },
2602
2573
  transition: {
2603
2574
  type: "spring",
2604
2575
  stiffness: 700,
2605
2576
  damping: 30
2606
2577
  },
2607
- className: w.handleContainer,
2578
+ className: v.handleContainer,
2608
2579
  children: [
2609
- /* @__PURE__ */ u("div", { className: w.handle, children: (y ? n : r) && /* @__PURE__ */ u(
2580
+ /* @__PURE__ */ u("div", { className: v.handle, children: (p ? n : r) && /* @__PURE__ */ u(
2610
2581
  Z,
2611
2582
  {
2612
- className: w.icon,
2613
- icon: y ? n : r
2583
+ className: v.icon,
2584
+ icon: p ? n : r
2614
2585
  }
2615
2586
  ) }),
2616
- /* @__PURE__ */ u("div", { className: w.handleStateLayer })
2587
+ /* @__PURE__ */ u("div", { className: v.handleStateLayer })
2617
2588
  ]
2618
2589
  }
2619
2590
  )
@@ -2624,73 +2595,73 @@ const jt = ({
2624
2595
  className: e,
2625
2596
  onClick: t,
2626
2597
  label: n,
2627
- variant: o = "primary",
2598
+ variant: l = "primary",
2628
2599
  href: r,
2629
2600
  icon: c,
2630
2601
  selectedTab: i,
2631
2602
  setSelectedTab: s,
2632
- tabsId: d,
2603
+ tabsId: f,
2633
2604
  index: a,
2634
- onTabSelected: y,
2635
- scrollable: p = !1,
2636
- selected: l = !1,
2637
- ref: f,
2638
- ...m
2605
+ onTabSelected: p,
2606
+ scrollable: m = !1,
2607
+ selected: o = !1,
2608
+ ref: d,
2609
+ ...y
2639
2610
  }) => {
2640
- const w = W(null), g = f || w, [N, b] = S(l);
2611
+ const v = D(null), x = d || v, [E, L] = S(o);
2641
2612
  R(() => {
2642
- l && i == null ? b(!0) : b(i == a && a != null);
2613
+ o && i == null ? L(!0) : L(i == a && a != null);
2643
2614
  }, [i]), R(() => {
2644
- i == a && y && y({
2645
- ref: g,
2615
+ i == a && p && p({
2616
+ ref: x,
2646
2617
  index: a || 0,
2647
2618
  label: n,
2648
2619
  icon: c
2649
2620
  });
2650
2621
  }, [i]);
2651
- const B = r ? "a" : "button", E = (C) => {
2652
- s && s(a ?? null), t && t(C);
2622
+ const B = r ? "a" : "button", N = ($) => {
2623
+ s && s(a ?? null), t && t($);
2653
2624
  }, I = ze({
2654
2625
  className: e,
2655
- onTabSelected: y,
2656
- scrollable: p,
2626
+ onTabSelected: p,
2627
+ scrollable: m,
2657
2628
  selectedTab: i,
2658
2629
  index: a,
2659
- tabsId: d,
2660
- selected: N,
2661
- variant: o,
2630
+ tabsId: f,
2631
+ selected: E,
2632
+ variant: l,
2662
2633
  icon: c,
2663
2634
  label: n,
2664
- isSelected: N,
2635
+ isSelected: E,
2665
2636
  setSelectedTab: s,
2666
2637
  href: r
2667
2638
  });
2668
- return /* @__PURE__ */ A(
2639
+ return /* @__PURE__ */ V(
2669
2640
  B,
2670
2641
  {
2671
- ...m,
2642
+ ...y,
2672
2643
  role: "tab",
2673
- "aria-selected": N,
2674
- ref: g,
2644
+ "aria-selected": E,
2645
+ ref: x,
2675
2646
  href: r,
2676
2647
  className: I.tab,
2677
- onClick: E,
2678
- ...m,
2648
+ onClick: N,
2649
+ ...y,
2679
2650
  children: [
2680
2651
  /* @__PURE__ */ u("span", { className: I.stateLayer, children: /* @__PURE__ */ u(
2681
2652
  re,
2682
2653
  {
2683
- colorName: o === "primary" && N ? "primary" : "on-surface",
2684
- triggerRef: g
2654
+ colorName: l === "primary" && E ? "primary" : "on-surface",
2655
+ triggerRef: x
2685
2656
  }
2686
2657
  ) }),
2687
- /* @__PURE__ */ A("span", { className: I.content, children: [
2658
+ /* @__PURE__ */ V("span", { className: I.content, children: [
2688
2659
  c && /* @__PURE__ */ u(Z, { icon: c, className: I.icon }),
2689
2660
  /* @__PURE__ */ u("span", { className: I.label, children: n }),
2690
- N && /* @__PURE__ */ u(
2661
+ E && /* @__PURE__ */ u(
2691
2662
  F.span,
2692
2663
  {
2693
- layoutId: `underline-${d}`,
2664
+ layoutId: `underline-${f}`,
2694
2665
  className: I.underline,
2695
2666
  transition: { duration: 0.3 }
2696
2667
  }
@@ -2699,129 +2670,129 @@ const jt = ({
2699
2670
  ]
2700
2671
  }
2701
2672
  );
2702
- }, _t = ({
2673
+ }, Kt = ({
2703
2674
  variant: e = "primary",
2704
2675
  onTabSelected: t,
2705
2676
  children: n,
2706
- className: o,
2677
+ className: l,
2707
2678
  selectedTab: r,
2708
2679
  setSelectedTab: c,
2709
2680
  scrollable: i = !1
2710
2681
  }) => {
2711
- const [s, d] = S(
2682
+ const [s, f] = S(
2712
2683
  null
2713
2684
  );
2714
2685
  let a;
2715
2686
  r == 0 || r != null ? a = r : a = s;
2716
- const y = c || d, p = K.Children.toArray(n).filter(
2717
- (g) => K.isValidElement(g) && g.type === bt
2718
- ), l = K.useRef(null), f = (g) => {
2719
- if (t == null || t(g), i) {
2720
- const N = l.current, b = g.ref.current;
2721
- if (N && b) {
2722
- const B = b.offsetLeft + b.offsetWidth / 2 - N.offsetWidth / 2;
2723
- N.scrollTo({ left: B, behavior: "smooth" });
2687
+ const p = c || f, m = K.Children.toArray(n).filter(
2688
+ (x) => K.isValidElement(x) && x.type === bt
2689
+ ), o = K.useRef(null), d = (x) => {
2690
+ if (t == null || t(x), i) {
2691
+ const E = o.current, L = x.ref.current;
2692
+ if (E && L) {
2693
+ const B = L.offsetLeft + L.offsetWidth / 2 - E.offsetWidth / 2;
2694
+ E.scrollTo({ left: B, behavior: "smooth" });
2724
2695
  }
2725
2696
  }
2726
- }, m = ue(() => de(), []), w = Te({
2697
+ }, y = Ie(() => ie(), []), v = Te({
2727
2698
  children: n,
2728
2699
  onTabSelected: t,
2729
2700
  scrollable: i,
2730
2701
  selectedTab: a,
2731
- setSelectedTab: y,
2732
- className: o,
2702
+ setSelectedTab: p,
2703
+ className: l,
2733
2704
  variant: e
2734
2705
  });
2735
- return /* @__PURE__ */ u("div", { ref: l, role: "tablist", className: w.tabs, children: p.map((g, N) => K.cloneElement(g, {
2736
- key: N,
2737
- index: N,
2706
+ return /* @__PURE__ */ u("div", { ref: o, role: "tablist", className: v.tabs, children: m.map((x, E) => K.cloneElement(x, {
2707
+ key: E,
2708
+ index: E,
2738
2709
  variant: e,
2739
2710
  selectedTab: a,
2740
- setSelectedTab: y,
2741
- tabsId: m,
2742
- onTabSelected: f,
2711
+ setSelectedTab: p,
2712
+ tabsId: y,
2713
+ onTabSelected: d,
2743
2714
  scrollable: i
2744
2715
  })) });
2745
- }, Kt = ({
2716
+ }, Gt = ({
2746
2717
  variant: e = "filled",
2747
2718
  disabled: t = !1,
2748
2719
  errorText: n,
2749
- placeholder: o,
2720
+ placeholder: l,
2750
2721
  suffix: r,
2751
2722
  name: c,
2752
2723
  label: i,
2753
2724
  className: s,
2754
- supportingText: d,
2725
+ supportingText: f,
2755
2726
  trailingIcon: a,
2756
- leadingIcon: y,
2757
- type: p = "text",
2758
- textLine: l = "singleLine",
2759
- autoComplete: f = "on",
2760
- onChange: m,
2761
- value: w,
2762
- showSupportingText: g = !1,
2763
- ...N
2727
+ leadingIcon: p,
2728
+ type: m = "text",
2729
+ textLine: o = "singleLine",
2730
+ autoComplete: d = "on",
2731
+ onChange: y,
2732
+ value: v,
2733
+ showSupportingText: x = !1,
2734
+ ...E
2764
2735
  }) => {
2765
- const [b, B] = S(w ?? ""), [E, I] = S(!1), [C, V] = S(!1), [D, k] = S(
2766
- g
2736
+ const [L, B] = S(v ?? ""), [N, I] = S(!1), [$, A] = S(!1), [W, k] = S(
2737
+ x
2767
2738
  );
2768
2739
  R(() => {
2769
- B(w ?? "");
2770
- }, [w]), R(() => {
2771
- n != null && n.length ? V(!0) : V(!1);
2740
+ B(v ?? "");
2741
+ }, [v]), R(() => {
2742
+ n != null && n.length ? A(!0) : A(!1);
2772
2743
  }, [n]), R(() => {
2773
- g ? k(g) : d != null && d.length ? k(!0) : k(!1);
2774
- }, [D, d]), R(() => {
2775
- E && V(!1);
2776
- }, [E]);
2777
- const v = K.useRef(null), M = () => {
2778
- v.current && !E && v.current.focus();
2779
- }, Y = () => {
2744
+ x ? k(x) : f != null && f.length ? k(!0) : k(!1);
2745
+ }, [W, f]), R(() => {
2746
+ N && A(!1);
2747
+ }, [N]);
2748
+ const g = K.useRef(null), C = () => {
2749
+ g.current && !N && g.current.focus();
2750
+ }, X = () => {
2780
2751
  I(!0);
2781
2752
  }, q = (P) => {
2782
2753
  const H = P.target.value;
2783
- B(H), V(!1), typeof m == "function" && m(H);
2754
+ B(H), A(!1), typeof y == "function" && y(H);
2784
2755
  }, G = () => {
2785
2756
  I(!1);
2786
- }, j = et({
2787
- showSupportingText: D,
2788
- isFocused: E,
2789
- showErrorIcon: C,
2757
+ }, Y = et({
2758
+ showSupportingText: W,
2759
+ isFocused: N,
2760
+ showErrorIcon: $,
2790
2761
  disabled: t,
2791
2762
  name: c,
2792
2763
  label: i,
2793
- autoComplete: f,
2764
+ autoComplete: d,
2794
2765
  className: s,
2795
- onChange: m,
2796
- placeholder: o,
2797
- supportingText: d,
2798
- type: p,
2799
- leadingIcon: y,
2766
+ onChange: y,
2767
+ placeholder: l,
2768
+ supportingText: f,
2769
+ type: m,
2770
+ leadingIcon: p,
2800
2771
  trailingIcon: a,
2801
2772
  variant: e,
2802
2773
  errorText: n,
2803
- value: b,
2774
+ value: L,
2804
2775
  suffix: r,
2805
- textLine: l
2806
- }), [z] = S(de());
2807
- let L, x;
2808
- switch (l) {
2776
+ textLine: o
2777
+ }), [z] = S(ie());
2778
+ let b, w;
2779
+ switch (o) {
2809
2780
  case "multiLine":
2810
- x = Ae, L = {};
2781
+ w = Ve, b = {};
2811
2782
  break;
2812
2783
  case "textAreas":
2813
- x = "textarea", L = {};
2784
+ w = "textarea", b = {};
2814
2785
  break;
2815
2786
  case "singleLine":
2816
2787
  default:
2817
- x = "input", L = { type: p };
2788
+ w = "input", b = { type: m };
2818
2789
  break;
2819
2790
  }
2820
- return /* @__PURE__ */ A("div", { className: j.textField, ...N, children: [
2821
- /* @__PURE__ */ A("fieldset", { onClick: M, className: j.content, children: [
2822
- /* @__PURE__ */ u("div", { className: j.stateLayer }),
2823
- y && /* @__PURE__ */ u("div", { className: j.leadingIcon, children: K.isValidElement(y) ? y : /* @__PURE__ */ u(Z, { className: "w-5 h-5", icon: y }) }),
2824
- !(!E && !b.length || e == "filled") && /* @__PURE__ */ u(
2791
+ return /* @__PURE__ */ V("div", { className: Y.textField, ...E, children: [
2792
+ /* @__PURE__ */ V("fieldset", { onClick: C, className: Y.content, children: [
2793
+ /* @__PURE__ */ u("div", { className: Y.stateLayer }),
2794
+ p && /* @__PURE__ */ u("div", { className: Y.leadingIcon, children: K.isValidElement(p) ? p : /* @__PURE__ */ u(Z, { className: "w-5 h-5", icon: p }) }),
2795
+ !(!N && !L.length || e == "filled") && /* @__PURE__ */ u(
2825
2796
  F.legend,
2826
2797
  {
2827
2798
  variants: {
@@ -2829,13 +2800,13 @@ const jt = ({
2829
2800
  visible: { width: "auto", padding: "0 8px" }
2830
2801
  },
2831
2802
  initial: "hidden",
2832
- animate: !E && !b.length ? "hidden" : "visible",
2803
+ animate: !N && !L.length ? "hidden" : "visible",
2833
2804
  className: "max-w-full ml-2 px-2 text-body-small h-0",
2834
2805
  transition: { duration: 0.2 },
2835
2806
  children: /* @__PURE__ */ u("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ u(
2836
2807
  F.span,
2837
2808
  {
2838
- className: j.label,
2809
+ className: Y.label,
2839
2810
  transition: { duration: 0.3 },
2840
2811
  layoutId: z,
2841
2812
  children: i
@@ -2843,23 +2814,23 @@ const jt = ({
2843
2814
  ) })
2844
2815
  }
2845
2816
  ),
2846
- /* @__PURE__ */ A("div", { className: "flex-1 relative", children: [
2847
- (!E && !b.length || e == "filled") && /* @__PURE__ */ u(
2817
+ /* @__PURE__ */ V("div", { className: "flex-1 relative", children: [
2818
+ (!N && !L.length || e == "filled") && /* @__PURE__ */ u(
2848
2819
  F.label,
2849
2820
  {
2850
2821
  htmlFor: c,
2851
2822
  className: h(
2852
2823
  "absolute left-4 transition-all duration-300",
2853
2824
  {
2854
- "text-body-small top-2": e == "filled" && !(!E && !b.length),
2855
- "text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!E && !b.length))
2825
+ "text-body-small top-2": e == "filled" && !(!N && !L.length),
2826
+ "text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!N && !L.length))
2856
2827
  }
2857
2828
  ),
2858
2829
  transition: { duration: 0.3 },
2859
2830
  children: /* @__PURE__ */ u(
2860
2831
  F.span,
2861
2832
  {
2862
- className: j.label,
2833
+ className: Y.label,
2863
2834
  transition: { duration: 0.3 },
2864
2835
  layoutId: e == "outlined" ? z : void 0,
2865
2836
  children: i
@@ -2868,82 +2839,82 @@ const jt = ({
2868
2839
  }
2869
2840
  ),
2870
2841
  /* @__PURE__ */ u(
2871
- x,
2842
+ w,
2872
2843
  {
2873
- ref: v,
2874
- value: b,
2844
+ ref: g,
2845
+ value: L,
2875
2846
  onChange: q,
2876
- className: j.input,
2847
+ className: Y.input,
2877
2848
  id: c,
2878
2849
  name: c,
2879
- placeholder: E ? o ?? void 0 : "",
2880
- onFocus: Y,
2850
+ placeholder: N ? l ?? void 0 : "",
2851
+ onFocus: X,
2881
2852
  onBlur: G,
2882
2853
  disabled: t,
2883
- autoComplete: f,
2854
+ autoComplete: d,
2884
2855
  "aria-invalid": !!(n != null && n.length),
2885
2856
  "aria-label": i,
2886
- ...L
2857
+ ...b
2887
2858
  }
2888
2859
  )
2889
2860
  ] }),
2890
- /* @__PURE__ */ u("div", { className: j.activeIndicator }),
2891
- !C && /* @__PURE__ */ A(T, { children: [
2861
+ /* @__PURE__ */ u("div", { className: Y.activeIndicator }),
2862
+ !$ && /* @__PURE__ */ V(te, { children: [
2892
2863
  a && /* @__PURE__ */ u(
2893
2864
  "div",
2894
2865
  {
2895
2866
  onClick: (P) => {
2896
2867
  P.stopPropagation();
2897
2868
  },
2898
- className: j.trailingIcon,
2869
+ className: Y.trailingIcon,
2899
2870
  children: K.isValidElement(a) ? a : /* @__PURE__ */ u(Z, { className: "h-5", icon: a })
2900
2871
  }
2901
2872
  ),
2902
- !a && r && /* @__PURE__ */ u("span", { className: j.suffix, children: r })
2873
+ !a && r && /* @__PURE__ */ u("span", { className: Y.suffix, children: r })
2903
2874
  ] }),
2904
- C && /* @__PURE__ */ u(
2875
+ $ && /* @__PURE__ */ u(
2905
2876
  "div",
2906
2877
  {
2907
- className: h(j.trailingIcon, {
2878
+ className: h(Y.trailingIcon, {
2908
2879
  " absolute right-0": !a
2909
2880
  }),
2910
2881
  children: /* @__PURE__ */ u(
2911
2882
  Z,
2912
2883
  {
2913
2884
  className: "h-5 text-error",
2914
- icon: wt
2885
+ icon: xt
2915
2886
  }
2916
2887
  )
2917
2888
  }
2918
2889
  )
2919
2890
  ] }),
2920
- D && /* @__PURE__ */ u("p", { className: j.supportingText, children: n != null && n.length ? n : d != null && d.length ? d : " " })
2891
+ W && /* @__PURE__ */ u("p", { className: Y.supportingText, children: n != null && n.length ? n : f != null && f.length ? f : " " })
2921
2892
  ] });
2922
- }, Lt = O(
2893
+ }, Lt = j(
2923
2894
  "navigationRailItem",
2924
- ({ isSelected: e, icon: t, label: n, variant: o }) => ({
2895
+ ({ isSelected: e, icon: t, label: n, variant: l }) => ({
2925
2896
  navigationRailItem: h(
2926
2897
  " group flex flex-col pt-1 pb-1.5 cursor-pointer",
2927
2898
  {
2928
2899
  "text-on-surface-variant": !e,
2929
2900
  "text-on-secondary-container": e,
2930
- "gap-2 h-[68px]": o == "vertical",
2931
- "gap-0 h-[66px]": o == "horizontal"
2901
+ "gap-2 h-[68px]": l == "vertical",
2902
+ "gap-0 h-[66px]": l == "horizontal"
2932
2903
  }
2933
2904
  ),
2934
2905
  container: h(
2935
2906
  " w-fit flex justify-center relative rounded-full items-center mx-5",
2936
2907
  {
2937
2908
  "bg-secondary-container overflow-hidden": e,
2938
- "gap-2 ": o == "horizontal",
2939
- "gap-0 ": o == "vertical",
2909
+ "gap-2 ": l == "horizontal",
2910
+ "gap-0 ": l == "vertical",
2940
2911
  "p-4": !n
2941
2912
  },
2942
2913
  n && [
2943
2914
  "px-4",
2944
2915
  {
2945
- "py-1 ": o == "vertical",
2946
- "py-4 ": o == "horizontal"
2916
+ "py-1 ": l == "vertical",
2917
+ "py-4 ": l == "horizontal"
2947
2918
  }
2948
2919
  ]
2949
2920
  ),
@@ -2956,119 +2927,119 @@ const jt = ({
2956
2927
  ),
2957
2928
  icon: h("size-6 flex"),
2958
2929
  label: h("w-fit mx-auto text-nowrap", {
2959
- "text-label-large ": o == "horizontal",
2960
- "text-label-medium": o == "vertical"
2930
+ "text-label-large ": l == "horizontal",
2931
+ "text-label-medium": l == "vertical"
2961
2932
  })
2962
2933
  })
2963
2934
  ), Nt = ({ label: e }) => /* @__PURE__ */ u("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ u("p", { className: "text-label-large text-on-surface-variant", children: e }) }), Et = ({
2964
2935
  className: e,
2965
2936
  onClick: t,
2966
2937
  label: n,
2967
- variant: o = "vertical",
2938
+ variant: l = "vertical",
2968
2939
  href: r,
2969
2940
  icon: c,
2970
2941
  selectedItem: i,
2971
2942
  setSelectedItem: s,
2972
- index: d,
2943
+ index: f,
2973
2944
  onItemSelected: a,
2974
- selected: y = !1,
2975
- ref: p,
2976
- transition: l,
2977
- isExtended: f,
2978
- iconSelected: m,
2979
- style: w,
2980
- extendedOnly: g,
2981
- children: N,
2982
- ...b
2945
+ selected: p = !1,
2946
+ ref: m,
2947
+ transition: o,
2948
+ isExtended: d,
2949
+ iconSelected: y,
2950
+ style: v,
2951
+ extendedOnly: x,
2952
+ children: E,
2953
+ ...L
2983
2954
  }) => {
2984
- N && (n = N);
2985
- const B = W(null), E = p || B, [I, C] = S(y);
2955
+ E && (n = E);
2956
+ const B = D(null), N = m || B, [I, $] = S(p);
2986
2957
  R(() => {
2987
- y && i == null ? C(!0) : C(i == d && d != null);
2958
+ p && i == null ? $(!0) : $(i == f && f != null);
2988
2959
  }, [i]), R(() => {
2989
- i == d && a && a({
2990
- ref: E,
2991
- index: d || 0,
2960
+ i == f && a && a({
2961
+ ref: N,
2962
+ index: f || 0,
2992
2963
  label: n,
2993
2964
  icon: c
2994
2965
  });
2995
2966
  }, [i]);
2996
- const V = r ? "a" : "button", D = (v) => {
2997
- s && s(d ?? null), t && t(v);
2967
+ const A = r ? "a" : "button", W = (g) => {
2968
+ s && s(f ?? null), t && t(g);
2998
2969
  }, k = Lt({
2999
- isExtended: f,
3000
- extendedOnly: g,
2970
+ isExtended: d,
2971
+ extendedOnly: x,
3001
2972
  className: e,
3002
2973
  onItemSelected: a,
3003
2974
  selectedItem: i,
3004
- index: d,
3005
- transition: l,
2975
+ index: f,
2976
+ transition: o,
3006
2977
  selected: I,
3007
- variant: o,
2978
+ variant: l,
3008
2979
  icon: c,
3009
2980
  label: n,
3010
2981
  isSelected: I,
3011
2982
  setSelectedItem: s,
3012
2983
  href: r,
3013
2984
  children: n,
3014
- iconSelected: m
2985
+ iconSelected: y
3015
2986
  });
3016
- return l = { duration: 0.3, ...l }, g && !f ? null : (
2987
+ return o = { duration: 0.3, ...o }, x && !d ? null : (
3017
2988
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3018
2989
  // @ts-expect-error
3019
- /* @__PURE__ */ A(
3020
- V,
2990
+ /* @__PURE__ */ V(
2991
+ A,
3021
2992
  {
3022
- ...b,
2993
+ ...L,
3023
2994
  role: "tab",
3024
2995
  "aria-selected": I,
3025
- ref: E,
2996
+ ref: N,
3026
2997
  href: r,
3027
2998
  className: k.navigationRailItem,
3028
- onClick: D,
3029
- style: { transition: l.duration + "s", ...w },
2999
+ onClick: W,
3000
+ style: { transition: o.duration + "s", ...v },
3030
3001
  children: [
3031
- /* @__PURE__ */ A(
3002
+ /* @__PURE__ */ V(
3032
3003
  F.div,
3033
3004
  {
3034
3005
  style: {
3035
- transition: o == "horizontal" ? l.duration + `s, gap ${l.duration / 2}s ${l.duration - l.duration / 2}s` : l.duration + `s, gap ${l.duration / 3}s ${l.duration - l.duration / 3}s`
3006
+ transition: l == "horizontal" ? o.duration + `s, gap ${o.duration / 2}s ${o.duration - o.duration / 2}s` : o.duration + `s, gap ${o.duration / 3}s ${o.duration - o.duration / 3}s`
3036
3007
  },
3037
- transition: l,
3008
+ transition: o,
3038
3009
  className: k.container,
3039
3010
  children: [
3040
3011
  /* @__PURE__ */ u(F.div, { layout: !0, className: k.stateLayer }),
3041
3012
  c && /* @__PURE__ */ u(
3042
3013
  Z,
3043
3014
  {
3044
- icon: I ? m : c,
3015
+ icon: I ? y : c,
3045
3016
  className: k.icon
3046
3017
  }
3047
3018
  ),
3048
- /* @__PURE__ */ u(Q, { children: o == "horizontal" && (() => {
3049
- const v = {
3019
+ /* @__PURE__ */ u(Q, { children: l == "horizontal" && (() => {
3020
+ const g = {
3050
3021
  width: 0,
3051
3022
  opacity: 0,
3052
3023
  transition: {
3053
- ...l
3024
+ ...o
3054
3025
  }
3055
- }, M = {
3026
+ }, C = {
3056
3027
  width: "auto",
3057
3028
  opacity: 1,
3058
3029
  transition: {
3059
- ...l,
3030
+ ...o,
3060
3031
  opacity: {
3061
- duration: l.duration / 2,
3062
- delay: l.duration - l.duration / 2
3032
+ duration: o.duration / 2,
3033
+ delay: o.duration - o.duration / 2
3063
3034
  }
3064
3035
  }
3065
3036
  };
3066
3037
  return /* @__PURE__ */ u(
3067
3038
  F.span,
3068
3039
  {
3069
- initial: v,
3070
- animate: M,
3071
- exit: v,
3040
+ initial: g,
3041
+ animate: C,
3042
+ exit: g,
3072
3043
  className: k.label,
3073
3044
  children: n
3074
3045
  }
@@ -3077,35 +3048,35 @@ const jt = ({
3077
3048
  ]
3078
3049
  }
3079
3050
  ),
3080
- /* @__PURE__ */ u(Q, { children: o == "vertical" && (() => {
3081
- const v = {
3051
+ /* @__PURE__ */ u(Q, { children: l == "vertical" && (() => {
3052
+ const g = {
3082
3053
  height: 0,
3083
3054
  opacity: 0,
3084
3055
  transition: {
3085
- ...l,
3056
+ ...o,
3086
3057
  opacity: {
3087
3058
  duration: 0
3088
3059
  }
3089
3060
  }
3090
- }, M = {
3061
+ }, C = {
3091
3062
  height: "auto",
3092
3063
  opacity: 1,
3093
3064
  transition: {
3094
- ...l,
3065
+ ...o,
3095
3066
  opacity: {
3096
- duration: l.duration / 3,
3097
- delay: l.duration - l.duration / 3
3067
+ duration: o.duration / 3,
3068
+ delay: o.duration - o.duration / 3
3098
3069
  }
3099
3070
  }
3100
3071
  };
3101
3072
  return /* @__PURE__ */ u(
3102
3073
  F.span,
3103
3074
  {
3104
- initial: M,
3105
- animate: M,
3106
- exit: v,
3075
+ initial: C,
3076
+ animate: C,
3077
+ exit: g,
3107
3078
  className: k.label,
3108
- transition: l,
3079
+ transition: o,
3109
3080
  children: n
3110
3081
  }
3111
3082
  );
@@ -3114,7 +3085,7 @@ const jt = ({
3114
3085
  }
3115
3086
  )
3116
3087
  );
3117
- }, It = O(
3088
+ }, It = j(
3118
3089
  "navigationRail",
3119
3090
  ({ isExtended: e, alignment: t }) => ({
3120
3091
  navigationRail: h("flex flex-col left-0 h-full top-0 pt-11", {
@@ -3130,154 +3101,156 @@ const jt = ({
3130
3101
  "w-fit items-start": e
3131
3102
  })
3132
3103
  })
3133
- ), Gt = ({
3104
+ ), Jt = ({
3134
3105
  variant: e = "standard",
3135
3106
  onItemSelected: t,
3136
3107
  children: n,
3137
- className: o,
3108
+ className: l,
3138
3109
  selectedItem: r,
3139
3110
  extended: c,
3140
3111
  alignment: i = "top",
3141
3112
  menu: s = {
3142
3113
  closed: {
3143
- icon: xt,
3114
+ icon: wt,
3144
3115
  label: "Open menu"
3145
3116
  },
3146
3117
  opened: {
3147
- icon: me,
3118
+ icon: de,
3148
3119
  label: "Close menu"
3149
3120
  }
3150
3121
  },
3151
- style: d,
3122
+ style: f,
3152
3123
  onExtendedChange: a,
3153
- transition: y,
3154
- setSelectedItem: p
3124
+ transition: p,
3125
+ setSelectedItem: m
3155
3126
  }) => {
3156
- const [l, f] = S(null), [m, w] = S(c);
3157
- let g;
3158
- r == 0 || r != null ? g = r : g = l;
3159
- const N = p || f, b = W(null), B = (k) => {
3127
+ const [o, d] = S(null), [y, v] = S(c);
3128
+ let x;
3129
+ r == 0 || r != null ? x = r : x = o;
3130
+ const E = m || d, L = D(null), B = (k) => {
3160
3131
  t == null || t(k);
3161
3132
  };
3162
- function E(k) {
3163
- const v = [];
3164
- return ke.forEach(k, (M) => {
3165
- te(M) && M.type === Se ? v.push(...E(M.props.children)) : v.push(M);
3166
- }), v;
3133
+ function N(k) {
3134
+ const g = [];
3135
+ return ke.forEach(k, (C) => {
3136
+ ee(C) && C.type === Se ? g.push(...N(C.props.children)) : g.push(C);
3137
+ }), g;
3167
3138
  }
3168
- const I = E(n), C = I.filter(
3169
- (k) => te(k) && k.type === ve
3170
- ), V = It({
3139
+ const I = N(n), $ = I.filter(
3140
+ (k) => ee(k) && k.type === ye
3141
+ ), A = It({
3171
3142
  children: n,
3172
3143
  onItemSelected: t,
3173
- selectedItem: g,
3174
- setSelectedItem: N,
3175
- className: o,
3144
+ selectedItem: x,
3145
+ setSelectedItem: E,
3146
+ className: l,
3176
3147
  variant: e,
3177
- extended: m,
3178
- isExtended: m,
3148
+ extended: y,
3149
+ isExtended: y,
3179
3150
  alignment: i,
3180
3151
  menu: s,
3181
- transition: y,
3152
+ transition: p,
3182
3153
  onExtendedChange: a
3183
3154
  });
3184
- y = { duration: 0.3, ...y };
3185
- const D = W(!1);
3186
- return D.current = !1, R(() => {
3187
- a == null || a(m ?? !1);
3188
- }, [m]), /* @__PURE__ */ A(
3155
+ p = { duration: 0.3, ...p };
3156
+ const W = D(!1);
3157
+ return W.current = !1, R(() => {
3158
+ a == null || a(y ?? !1);
3159
+ }, [y]), /* @__PURE__ */ V(
3189
3160
  "div",
3190
3161
  {
3191
- style: { transition: y.duration + "s", ...d },
3192
- ref: b,
3193
- className: V.navigationRail,
3162
+ style: { transition: p.duration + "s", ...f },
3163
+ ref: L,
3164
+ className: A.navigationRail,
3194
3165
  children: [
3195
- /* @__PURE__ */ A("div", { className: V.header, children: [
3166
+ /* @__PURE__ */ V("div", { className: A.header, children: [
3196
3167
  /* @__PURE__ */ u(
3197
- fe,
3168
+ ue,
3198
3169
  {
3199
- onClick: () => w(!m),
3200
- label: m ? s == null ? void 0 : s.opened.label : s == null ? void 0 : s.closed.label,
3201
- className: V.menuIcon,
3202
- icon: m ? s.opened.icon : s == null ? void 0 : s.closed.icon
3170
+ onClick: () => v(!y),
3171
+ label: y ? s == null ? void 0 : s.opened.label : s == null ? void 0 : s.closed.label,
3172
+ className: A.menuIcon,
3173
+ icon: y ? s.opened.icon : s == null ? void 0 : s.closed.icon
3203
3174
  }
3204
3175
  ),
3205
- C.length > 0 && oe(C[0], {
3206
- transition: y,
3207
- isExtended: m,
3208
- className: "!shadow-none mx-5 " + C[0].props.className
3176
+ $.length > 0 && oe($[0], {
3177
+ transition: p,
3178
+ isExtended: y,
3179
+ className: "!shadow-none mx-5 " + $[0].props.className
3209
3180
  })
3210
3181
  ] }),
3211
- /* @__PURE__ */ u("div", { className: V.segments, children: (() => {
3182
+ /* @__PURE__ */ u("div", { className: A.segments, children: (() => {
3212
3183
  let k = 0;
3213
- return I.map((v) => te(v) && v.type === Et ? oe(
3214
- v,
3184
+ return I.map((g) => ee(g) && g.type === Et ? oe(
3185
+ g,
3215
3186
  {
3216
3187
  key: k,
3217
3188
  index: k++,
3218
3189
  // Utilise et incrémente le compteur dédié
3219
- variant: m ? "horizontal" : "vertical",
3220
- selectedItem: g,
3221
- setSelectedItem: N,
3190
+ variant: y ? "horizontal" : "vertical",
3191
+ selectedItem: x,
3192
+ setSelectedItem: E,
3222
3193
  onItemSelected: B,
3223
- transition: y,
3224
- extendedOnly: D.current,
3225
- isExtended: m
3194
+ transition: p,
3195
+ extendedOnly: W.current,
3196
+ isExtended: y
3226
3197
  }
3227
- ) : te(v) && v.type === ve ? null : te(v) && v.type === Nt ? (D.current = !0, m ? oe(v, {}) : null) : v);
3198
+ ) : ee(g) && g.type === ye ? null : ee(g) && g.type === Nt ? (W.current = !0, y ? oe(g, {}) : null) : g);
3228
3199
  })() }),
3229
3200
  /* @__PURE__ */ u("div", { className: "flex-1 max-h-[160px]" })
3230
3201
  ]
3231
3202
  }
3232
3203
  );
3233
3204
  };
3234
- function Jt(e) {
3235
- return We({
3205
+ function Zt(e) {
3206
+ return De({
3236
3207
  variant: Pe.Fidelity,
3237
3208
  ...e,
3238
- plugins: [new De(e), new Le(e)]
3209
+ plugins: [new We(e), new we(e)]
3239
3210
  });
3240
3211
  }
3241
3212
  export {
3242
- Ht as AnimateOnScroll,
3213
+ Ht as AnimateOnScrollInit,
3243
3214
  dt as Button,
3244
- Ut as Card,
3215
+ Ot as Card,
3245
3216
  Xt as Carousel,
3246
3217
  mt as CarouselItem,
3247
3218
  ot as CustomScroll,
3248
3219
  ht as Divider,
3249
- ve as Fab,
3220
+ ye as Fab,
3250
3221
  Z as Icon,
3251
- fe as IconButton,
3252
- Gt as NavigationRail,
3222
+ ue as IconButton,
3223
+ Jt as NavigationRail,
3253
3224
  Et as NavigationRailItem,
3254
3225
  Nt as NavigationRailSection,
3255
3226
  nt as ProgressIndicator,
3256
3227
  re as RippleEffect,
3257
3228
  jt as SideSheet,
3258
3229
  Yt as Slider,
3259
- Vt as SmoothScroll,
3260
- Ot as Snackbar,
3261
- qt as Switch,
3230
+ At as SmoothScroll,
3231
+ qt as Snackbar,
3232
+ _t as Switch,
3262
3233
  at as SyncedFixedWrapper,
3263
3234
  bt as Tab,
3264
- _t as Tabs,
3265
- Kt as TextField,
3235
+ Kt as Tabs,
3236
+ Gt as TextField,
3266
3237
  Ft as ThemeProvider,
3267
- Ee as ToolTip,
3238
+ Ne as ToolTip,
3239
+ Ut as animateOnScroll,
3268
3240
  Ue as buttonStyle,
3269
- Xe as cardStyle,
3270
- Ye as carouselItemStyle,
3271
- je as carouselStyle,
3241
+ Oe as cardStyle,
3242
+ Xe as carouselItemStyle,
3243
+ Ye as carouselStyle,
3272
3244
  h as classNames,
3273
- Ve as classnames,
3245
+ Ae as classnames,
3274
3246
  rt as customScrollStyle,
3275
- O as defaultClassNames,
3276
- Jt as defineConfig,
3277
- Oe as dividerStyle,
3247
+ j as defaultClassNames,
3248
+ Zt as defineConfig,
3249
+ je as dividerStyle,
3278
3250
  qe as fabStyle,
3279
3251
  He as getClassNames,
3280
3252
  _e as iconButtonStyle,
3253
+ Le as initAnimateOnScroll,
3281
3254
  ft as normalize,
3282
3255
  Ke as progressIndicatorStyle,
3283
3256
  Ge as sideSheetStyle,