@udixio/ui-react 2.5.2 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { jsx as f, jsxs as Y, Fragment as ye } from "react/jsx-runtime";
2
- import { clsx as Fe } from "clsx";
3
- import { extendTailwindMerge as Ke } from "tailwind-merge";
4
- import te, { useState as D, useEffect as $, useRef as B, useLayoutEffect as Xe, isValidElement as pe, cloneElement as be, useMemo as _e, Children as Ge, Fragment as Je } from "react";
5
- import { motion as j, AnimatePresence as ue, useScroll as Ze, useMotionValueEvent as Re, animate as Qe } from "motion/react";
6
- import { animate as ze } from "motion";
7
- import { createPortal as Oe } from "react-dom";
8
- import { loader as Te, defineConfig as et, FontPlugin as tt, Variants as nt } from "@udixio/theme";
9
- import { TailwindPlugin as Ue } from "@udixio/tailwind";
10
- import rt from "react-textarea-autosize";
11
- const Ye = Ke({
1
+ import { jsx as f, jsxs as U, Fragment as he } from "react/jsx-runtime";
2
+ import { clsx as Pe } from "clsx";
3
+ import { extendTailwindMerge as Ue } from "tailwind-merge";
4
+ import T, { useState as R, useEffect as $, useRef as A, useLayoutEffect as He, isValidElement as me, cloneElement as ve, useMemo as je, Children as qe, Fragment as Ke } from "react";
5
+ import { motion as q, AnimatePresence as ce, useScroll as _e, useMotionValueEvent as Se, animate as Ge } from "motion/react";
6
+ import { animate as Je } from "motion";
7
+ import { createPortal as Ve } from "react-dom";
8
+ import { loader as Ze, defineConfig as Qe, FontPlugin as ze, Variants as Te } from "@udixio/theme";
9
+ import { TailwindPlugin as Oe } from "@udixio/tailwind";
10
+ import et from "react-textarea-autosize";
11
+ const Fe = Ue({
12
12
  override: {
13
13
  classGroups: {
14
14
  "text-color": [
@@ -34,11 +34,11 @@ const Ye = Ke({
34
34
  font: ["font"]
35
35
  }
36
36
  }
37
- }), p = (...e) => Ye(Fe(e)), ot = (...e) => Ye(Fe(e));
38
- function lt(e) {
37
+ }), p = (...e) => Fe(Pe(e)), tt = (...e) => Fe(Pe(e));
38
+ function nt(e) {
39
39
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
40
40
  }
41
- const at = (e) => {
41
+ const rt = (e) => {
42
42
  const t = {};
43
43
  e.classNameList.forEach((l) => {
44
44
  var r;
@@ -46,23 +46,23 @@ const at = (e) => {
46
46
  if (typeof l == "string")
47
47
  (t[r = e.default] ?? (t[r] = [])).push(l);
48
48
  else {
49
- const i = l(e.states);
50
- Object.entries(i).map((c) => {
51
- const [s, d] = c;
52
- (t[s] ?? (t[s] = [])).push(d);
49
+ const s = l(e.states);
50
+ Object.entries(s).map((c) => {
51
+ const [a, d] = c;
52
+ (t[a] ?? (t[a] = [])).push(d);
53
53
  });
54
54
  }
55
55
  });
56
56
  const n = t;
57
57
  return Object.entries(t).map((l) => {
58
- let [r, i] = l;
59
- i = i.reverse(), r == e.default && i.unshift("relative"), i.unshift(lt(r)), n[r] = ot(...i);
58
+ let [r, s] = l;
59
+ s = s.reverse(), r == e.default && s.unshift("relative"), s.unshift(nt(r)), n[r] = tt(...s);
60
60
  }), n;
61
- }, G = (e, t) => (n) => at({
61
+ }, G = (e, t) => (n) => rt({
62
62
  classNameList: [n.className, t],
63
63
  default: e,
64
64
  states: n
65
- }), st = G(
65
+ }), ot = G(
66
66
  "button",
67
67
  ({
68
68
  variant: e,
@@ -70,9 +70,9 @@ const at = (e) => {
70
70
  disabled: n,
71
71
  iconPosition: l,
72
72
  icon: r,
73
- isActive: i,
73
+ isActive: s,
74
74
  loading: c,
75
- shape: s,
75
+ shape: a,
76
76
  onToggle: d,
77
77
  size: o,
78
78
  allowShapeTransformation: h
@@ -84,12 +84,12 @@ const at = (e) => {
84
84
  o === "medium" && "text-title-medium px-6 py-4 gap-2",
85
85
  o === "large" && "text-headline-small px-12 py-8 gap-3",
86
86
  o === "xLarge" && "text-headline-large px-16 py-12 gap-4",
87
- s === "rounded" && {
87
+ a === "rounded" && {
88
88
  "rounded-[30px]": o === "xSmall" || o == "small",
89
89
  "rounded-[40px]": o === "medium",
90
90
  "rounded-[70px]": o === "large" || o == "xLarge"
91
91
  },
92
- (s === "squared" || h && i) && {
92
+ (a === "squared" || h && s) && {
93
93
  "rounded-[12px]": o === "xSmall" || o == "small",
94
94
  "rounded-[16px]": o === "medium",
95
95
  "rounded-[28px]": o === "large" || o == "xLarge"
@@ -101,28 +101,28 @@ const at = (e) => {
101
101
  },
102
102
  e === "elevated" && {
103
103
  "shadow-1 hover:shadow-2": !n,
104
- "bg-surface-container-low text-primary": !n && !i,
105
- "bg-primary text-on-primary": !n && i,
104
+ "bg-surface-container-low text-primary": !n && !s,
105
+ "bg-primary text-on-primary": !n && s,
106
106
  "text-on-surface/[38%]": n
107
107
  },
108
108
  e === "filled" && {
109
109
  "hover:shadow-1": !n,
110
- "bg-surface-container text-on-surface-variant": !n && !i && d,
111
- "bg-primary text-on-primary": !n && (i && d || !d),
110
+ "bg-surface-container text-on-surface-variant": !n && !s && d,
111
+ "bg-primary text-on-primary": !n && (s && d || !d),
112
112
  "text-on-surface/[38%]": n
113
113
  },
114
114
  e === "tonal" && {
115
115
  "hover:shadow-1": !n,
116
- "bg-secondary-container text-on-secondary-container": !n && !i,
117
- "bg-secondary text-on-secondary": !n && i,
116
+ "bg-secondary-container text-on-secondary-container": !n && !s,
117
+ "bg-secondary text-on-secondary": !n && s,
118
118
  "text-on-surface/[0.38]": n
119
119
  },
120
120
  e === "outlined" && [
121
121
  " border",
122
122
  {
123
123
  "border-on-surface/[0.12] text-on-surface/[0.38]": n,
124
- "text-primary border-outline focus:border-primary": !n && !i,
125
- "text-inverse-on-surface bg-inverse-surface border-inverse-surface": !n && i
124
+ "text-primary border-outline focus:border-primary": !n && !s,
125
+ "text-inverse-on-surface bg-inverse-surface border-inverse-surface": !n && s
126
126
  }
127
127
  ],
128
128
  e === "text" && [
@@ -159,12 +159,12 @@ const at = (e) => {
159
159
  "group-state-on-primary": !n && !d,
160
160
  "group-state-on-surface-variant": !n && d
161
161
  },
162
- s === "rounded" && {
162
+ a === "rounded" && {
163
163
  "rounded-[30px]": o === "xSmall" || o == "small",
164
164
  "rounded-[40px]": o === "medium",
165
165
  "rounded-[70px]": o === "large" || o == "xLarge"
166
166
  },
167
- (s === "squared" || h && i) && {
167
+ (a === "squared" || h && s) && {
168
168
  "rounded-[12px]": o === "xSmall" || o == "small",
169
169
  "rounded-[16px]": o === "medium",
170
170
  "rounded-[28px]": o === "large" || o == "xLarge"
@@ -195,7 +195,7 @@ const at = (e) => {
195
195
  o === "xLarge" && "size-10"
196
196
  )
197
197
  })
198
- ), ct = G(
198
+ ), lt = G(
199
199
  "card",
200
200
  ({ variant: e, isInteractive: t }) => ({
201
201
  card: p(
@@ -211,7 +211,7 @@ const at = (e) => {
211
211
  }
212
212
  ])
213
213
  })
214
- ), it = G(
214
+ ), at = G(
215
215
  "carouselItem",
216
216
  ({ width: e }) => ({
217
217
  carouselItem: p("rounded-[28px] overflow-hidden flex-none", {
@@ -219,13 +219,13 @@ const at = (e) => {
219
219
  "flex-1": e == null
220
220
  })
221
221
  })
222
- ), ut = G(
222
+ ), st = G(
223
223
  "carousel",
224
224
  () => ({
225
225
  carousel: p(["w-full h-[400px]"]),
226
226
  track: p("flex h-full w-full")
227
227
  })
228
- ), dt = G(
228
+ ), ct = G(
229
229
  "divider",
230
230
  ({ orientation: e }) => ({
231
231
  divider: p(
@@ -238,7 +238,7 @@ const at = (e) => {
238
238
  }
239
239
  )
240
240
  })
241
- ), ft = G(
241
+ ), it = G(
242
242
  "fab",
243
243
  ({ size: e, variant: t, isExtended: n }) => ({
244
244
  fab: p(
@@ -275,7 +275,7 @@ const at = (e) => {
275
275
  }),
276
276
  label: p("text-title-medium text-nowrap")
277
277
  })
278
- ), mt = G(
278
+ ), ut = G(
279
279
  "iconButton",
280
280
  ({
281
281
  variant: e,
@@ -283,9 +283,9 @@ const at = (e) => {
283
283
  onToggle: n,
284
284
  isActive: l,
285
285
  size: r,
286
- width: i,
286
+ width: s,
287
287
  shape: c,
288
- allowShapeTransformation: s
288
+ allowShapeTransformation: a
289
289
  }) => ({
290
290
  iconButton: p(
291
291
  "rounded-full relative flex transition-all duration-300",
@@ -298,12 +298,12 @@ const at = (e) => {
298
298
  "rounded-[40px]": r === "medium",
299
299
  "rounded-[70px]": r === "large" || r == "xLarge"
300
300
  },
301
- (c === "squared" || s && l) && {
301
+ (c === "squared" || a && l) && {
302
302
  "rounded-[12px]": r === "xSmall" || r == "small",
303
303
  "rounded-[16px]": r === "medium",
304
304
  "rounded-[28px]": r === "large" || r == "xLarge"
305
305
  },
306
- s && !t && {
306
+ a && !t && {
307
307
  "active:rounded-[12px]": r === "xSmall" || r == "small",
308
308
  "active:rounded-[16px]": r === "medium",
309
309
  "active:rounded-[28px]": r === "large" || r == "xLarge"
@@ -338,17 +338,17 @@ const at = (e) => {
338
338
  ),
339
339
  stateLayer: p(
340
340
  "absolute top-0 left-0 h-full w-full overflow-hidden",
341
- (c === "rounded" || c === "squared" && n && !t && l && s) && {
341
+ (c === "rounded" || c === "squared" && n && !t && l && a) && {
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
- (c === "squared" || c === "rounded" && n && !t && l && s) && {
346
+ (c === "squared" || c === "rounded" && n && !t && l && a) && {
347
347
  "rounded-[12px]": r === "xSmall" || r == "small",
348
348
  "rounded-[16px]": r === "medium",
349
349
  "rounded-[28px]": r === "large" || r == "xLarge"
350
350
  },
351
- s && !t && {
351
+ a && !t && {
352
352
  "group-active:rounded-[12px]": r === "xSmall" || r == "small",
353
353
  "group-active:rounded-[16px]": r === "medium",
354
354
  "group-active:rounded-[28px]": r === "large" || r == "xLarge"
@@ -379,14 +379,14 @@ const at = (e) => {
379
379
  { "size-6 p-4": r === "medium" },
380
380
  { "size-8 p-8": r === "large" },
381
381
  { "size-10 p-12": r === "xLarge" },
382
- i == "narrow" && [
382
+ s == "narrow" && [
383
383
  { "px-1": r === "xSmall" },
384
384
  { "px-1": r === "small" },
385
385
  { "px-3": r === "medium" },
386
386
  { "px-4": r === "large" },
387
387
  { "px-8": r === "xLarge" }
388
388
  ],
389
- i == "wide" && [
389
+ s == "wide" && [
390
390
  { "px-2.5": r === "xSmall" },
391
391
  { "px-3.5": r === "small" },
392
392
  { "px-6": r === "medium" },
@@ -414,7 +414,7 @@ const at = (e) => {
414
414
  !!t && "text-on-surface/[0.38]"
415
415
  )
416
416
  })
417
- ), ht = G(
417
+ ), dt = G(
418
418
  "progressIndicator",
419
419
  ({ variant: e, isVisible: t }) => ({
420
420
  progressIndicator: p(
@@ -446,7 +446,7 @@ const at = (e) => {
446
446
  }
447
447
  )
448
448
  })
449
- ), pt = G(
449
+ ), ft = G(
450
450
  "slideSheet",
451
451
  ({ variant: e, position: t }) => ({
452
452
  slideSheet: p(
@@ -473,7 +473,7 @@ const at = (e) => {
473
473
  "bg-[black]/[0.32] fixed top-0 left-0 w-screen h-screen"
474
474
  )
475
475
  })
476
- ), yt = G(
476
+ ), mt = G(
477
477
  "slider",
478
478
  ({ isChanging: e }) => ({
479
479
  slider: p([
@@ -496,7 +496,7 @@ const at = (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
- ), vt = G(
499
+ ), ht = G(
500
500
  "snackbar",
501
501
  () => ({
502
502
  snackbar: p(" rounded bg-inverse-surface "),
@@ -506,7 +506,7 @@ const at = (e) => {
506
506
  supportingText: p("text-body-medium text-inverse-on-surface "),
507
507
  icon: p(" ml-auto mr-0 text-inverse-on-surface block dark")
508
508
  })
509
- ), wt = G(
509
+ ), pt = G(
510
510
  "switch",
511
511
  ({ isSelected: e, disabled: t, inactiveIcon: n }) => ({
512
512
  switch: p(
@@ -549,7 +549,7 @@ const at = (e) => {
549
549
  { "text-on-surface/[0.38]": t }
550
550
  )
551
551
  })
552
- ), xt = G(
552
+ ), yt = G(
553
553
  "tab",
554
554
  ({ isSelected: e, icon: t, label: n, variant: l }) => ({
555
555
  tab: p(
@@ -608,7 +608,7 @@ const at = (e) => {
608
608
  l === "secondary" && "h-0.5"
609
609
  )
610
610
  })
611
- ), gt = G(
611
+ ), wt = G(
612
612
  "tabs",
613
613
  ({ scrollable: e }) => ({
614
614
  tabs: p(
@@ -617,7 +617,7 @@ const at = (e) => {
617
617
  { "overflow-x-auto": e }
618
618
  )
619
619
  })
620
- ), bt = G(
620
+ ), vt = G(
621
621
  "textField",
622
622
  ({
623
623
  disabled: e,
@@ -625,9 +625,9 @@ const at = (e) => {
625
625
  trailingIcon: n,
626
626
  variant: l,
627
627
  errorText: r,
628
- isFocused: i,
628
+ isFocused: s,
629
629
  value: c,
630
- suffix: s,
630
+ suffix: a,
631
631
  textLine: d
632
632
  }) => ({
633
633
  textField: p({
@@ -637,9 +637,9 @@ const at = (e) => {
637
637
  "group transition-border duration-200 relative flex items-center ",
638
638
  { "h-14": d == "singleLine" },
639
639
  {
640
- "border-on-surface-variant": !(r != null && r.length) && !i && l == "filled",
641
- "border-outline": !(r != null && r.length) && !i && l == "outlined",
642
- "border-primary": !(r != null && r.length) && i,
640
+ "border-on-surface-variant": !(r != null && r.length) && !s && l == "filled",
641
+ "border-outline": !(r != null && r.length) && !s && l == "outlined",
642
+ "border-primary": !(r != null && r.length) && s,
643
643
  "border-error": !!(r != null && r.length)
644
644
  },
645
645
  { "bg-on-surface/[0.04]": e },
@@ -650,7 +650,7 @@ const at = (e) => {
650
650
  l == "outlined" && [
651
651
  "border rounded box-border",
652
652
  {
653
- "border-[3px]": i
653
+ "border-[3px]": s
654
654
  }
655
655
  ]
656
656
  ),
@@ -661,7 +661,7 @@ const at = (e) => {
661
661
  },
662
662
  {
663
663
  "group-state-on-surface": !e,
664
- "focus-state-on-surface": i
664
+ "focus-state-on-surface": s
665
665
  }
666
666
  ),
667
667
  label: p(
@@ -669,7 +669,7 @@ const at = (e) => {
669
669
  { "text-on-surface-variant": !e && !(r != null && r.length) },
670
670
  { "text-on-surface": e },
671
671
  { "text-error": !!(r != null && r.length) },
672
- { "text-primary": !(r != null && r.length) && i }
672
+ { "text-primary": !(r != null && r.length) && s }
673
673
  ),
674
674
  input: p(
675
675
  "w-full resize-none px-4 text-body-large bg-[inherit] outline-none autofill:transition-colors autofill:duration-[5000000ms]",
@@ -678,7 +678,7 @@ const at = (e) => {
678
678
  "placeholder:text-on-surface text-on-surface": e
679
679
  },
680
680
  {
681
- "pr-0": !!s
681
+ "pr-0": !!a
682
682
  },
683
683
  l == "filled" && " pb-2 pt-6",
684
684
  l == "outlined" && "py-4 relative z-10"
@@ -689,22 +689,22 @@ const at = (e) => {
689
689
  "h-[2px] transition-all duration-300",
690
690
  { "bg-primary": !(r != null && r.length) },
691
691
  { "bg-error": !!(r != null && r.length) },
692
- { "!w-full": i }
692
+ { "!w-full": s }
693
693
  ]
694
694
  ),
695
695
  supportingText: p(
696
696
  " text-body-small px-4 pt-1",
697
697
  { "text-on-surface-variant": !e && !(r != null && r.length) },
698
698
  { "text-on-surface": e },
699
- { "!w-full": i },
699
+ { "!w-full": s },
700
700
  { "text-error": !!(r != null && r.length) }
701
701
  ),
702
702
  leadingIcon: p([
703
703
  "h-12 ml-3 flex items-center justify-center",
704
- { "cursor-text": !te.isValidElement(t) }
704
+ { "cursor-text": !T.isValidElement(t) }
705
705
  ]),
706
706
  trailingIcon: p("h-12 w-12 flex items-center justify-center", {
707
- "cursor-text": !te.isValidElement(n)
707
+ "cursor-text": !T.isValidElement(n)
708
708
  }),
709
709
  suffix: p(
710
710
  "text-on-surface-variant pl-0 pr-4",
@@ -712,7 +712,7 @@ const at = (e) => {
712
712
  l == "outlined" && "py-4 relative z-10"
713
713
  )
714
714
  })
715
- ), Lt = G(
715
+ ), xt = G(
716
716
  "toolTip",
717
717
  ({ position: e, variant: t }) => ({
718
718
  toolTip: p(
@@ -743,7 +743,7 @@ const at = (e) => {
743
743
  ),
744
744
  supportingText: p("")
745
745
  })
746
- ), ie = ({ icon: e, colors: t = [], className: n }) => {
746
+ ), se = ({ icon: e, colors: t = [], className: n }) => {
747
747
  if (typeof e == "string") {
748
748
  let o = e;
749
749
  return t[0] && (o = o.replace(
@@ -784,7 +784,7 @@ const at = (e) => {
784
784
  const l = e;
785
785
  if (!(l != null && l.prefix))
786
786
  throw new Error(`Invalid icon type: ${typeof e}`);
787
- const { icon: r } = l, [i, c, , , s] = r || [], d = (o) => {
787
+ const { icon: r } = l, [s, c, , , a] = r || [], d = (o) => {
788
788
  switch (o.length) {
789
789
  case 2:
790
790
  return {
@@ -803,59 +803,59 @@ const at = (e) => {
803
803
  className: p("size-5 box-content", n),
804
804
  style: { ...d(t) },
805
805
  xmlns: "http://www.w3.org/2000/svg",
806
- viewBox: `0 0 ${i} ${c}`,
806
+ viewBox: `0 0 ${s} ${c}`,
807
807
  role: "img",
808
808
  "aria-hidden": "true",
809
- children: typeof s == "string" ? /* @__PURE__ */ f("path", { className: "fill-current", d: s }) : s.map((o, h) => /* @__PURE__ */ f("path", { d: o }, h))
809
+ children: typeof a == "string" ? /* @__PURE__ */ f("path", { className: "fill-current", d: a }) : a.map((o, h) => /* @__PURE__ */ f("path", { d: o }, h))
810
810
  }
811
811
  );
812
- }, Nt = ({
812
+ }, gt = ({
813
813
  variant: e = "linear-determinate",
814
814
  value: t = 0,
815
815
  transitionDuration: n = 1e3,
816
816
  className: l,
817
817
  ...r
818
818
  }) => {
819
- const [i, c] = D(t), [s] = D(1.5);
819
+ const [s, c] = R(t), [a] = R(1.5);
820
820
  $(() => {
821
821
  t > 100 && (t = 100), t < 0 && (t = 0), c(t);
822
822
  }, [t]);
823
- const [d, o] = D(!0), h = () => d ? s : s * 0.5;
823
+ const [d, o] = R(!0), h = () => d ? a : a * 0.5;
824
824
  $(() => {
825
- if ((e === "circular-indeterminate" || e === "linear-indeterminate") && i !== 100) {
825
+ if ((e === "circular-indeterminate" || e === "linear-indeterminate") && s !== 100) {
826
826
  const m = setInterval(() => {
827
827
  c(d ? 10 : 90), o(!d);
828
828
  }, h() * 1e3);
829
829
  return () => clearInterval(m);
830
830
  }
831
- }, [e, d, i]);
832
- const [y, a] = D(!1);
831
+ }, [e, d, s]);
832
+ const [v, i] = R(!1);
833
833
  $(() => {
834
- if (i >= 100) {
834
+ if (s >= 100) {
835
835
  const m = setTimeout(() => {
836
- a(!1);
836
+ i(!1);
837
837
  }, n);
838
838
  return () => {
839
839
  clearTimeout(m);
840
840
  };
841
841
  } else
842
- a(!0);
843
- }, [i, n]);
844
- const u = ht({
842
+ i(!0);
843
+ }, [s, n]);
844
+ const u = dt({
845
845
  className: l,
846
846
  variant: e,
847
847
  value: t,
848
848
  transitionDuration: n,
849
- isVisible: y
849
+ isVisible: v
850
850
  });
851
- return /* @__PURE__ */ Y(ye, { children: [
852
- (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ Y("div", { className: u.progressIndicator, ...r, children: [
851
+ return /* @__PURE__ */ U(he, { children: [
852
+ (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ U("div", { className: u.progressIndicator, ...r, children: [
853
853
  /* @__PURE__ */ f(
854
854
  "div",
855
855
  {
856
856
  style: {
857
- width: `${i}%`,
858
- transition: `width ${n}ms ease-in-out ${i == 100 ? ", max-height 200ms 0.5s ease-in-out" : ""}`
857
+ width: `${s}%`,
858
+ transition: `width ${n}ms ease-in-out ${s == 100 ? ", max-height 200ms 0.5s ease-in-out" : ""}`
859
859
  },
860
860
  className: u.track
861
861
  }
@@ -864,8 +864,8 @@ const at = (e) => {
864
864
  "div",
865
865
  {
866
866
  style: {
867
- marginLeft: i != 100 ? "6px" : "0px",
868
- transition: `width ${n}ms ease-in-out ${i == 100 ? `, max-height 200ms 0.5s ease-in-out, margin-left ${n}ms ${n / 1.5}ms` : ""}`
867
+ marginLeft: s != 100 ? "6px" : "0px",
868
+ transition: `width ${n}ms ease-in-out ${s == 100 ? `, max-height 200ms 0.5s ease-in-out, margin-left ${n}ms ${n / 1.5}ms` : ""}`
869
869
  },
870
870
  className: u.activeIndicator
871
871
  }
@@ -882,7 +882,7 @@ const at = (e) => {
882
882
  )
883
883
  ] }),
884
884
  (e === "circular-determinate" || e == "circular-indeterminate") && /* @__PURE__ */ f(
885
- j.svg,
885
+ q.svg,
886
886
  {
887
887
  width: "48",
888
888
  height: "48",
@@ -897,11 +897,11 @@ const at = (e) => {
897
897
  className: u.progressIndicator,
898
898
  ...r,
899
899
  children: /* @__PURE__ */ f(
900
- j.circle,
900
+ q.circle,
901
901
  {
902
902
  cx: "50%",
903
903
  cy: "50%",
904
- r: y ? "calc(50% - 2px)" : "50%",
904
+ r: v ? "calc(50% - 2px)" : "50%",
905
905
  style: {
906
906
  strokeLinecap: "round"
907
907
  },
@@ -951,36 +951,36 @@ const at = (e) => {
951
951
  borderRadius: { duration: 0.3, delay: 0.3 }
952
952
  }
953
953
  }
954
- }, [l, r] = D(!0), [i, c] = D(!1), [s, d] = D({ x: 0, y: 0 });
954
+ }, [l, r] = R(!0), [s, c] = R(!1), [a, d] = R({ x: 0, y: 0 });
955
955
  $(() => {
956
- i && (r(!0), r(!1));
957
- }, [i]), $(() => {
958
- const a = t == null ? void 0 : t.current;
959
- if (a)
960
- return a.addEventListener("mousedown", o), a.addEventListener("mouseup", y), a.addEventListener("mouseleave", h), () => {
961
- a.removeEventListener("mousedown", o), a.removeEventListener("mouseup", y), a.removeEventListener("mouseleave", h);
956
+ s && (r(!0), r(!1));
957
+ }, [s]), $(() => {
958
+ const i = t == null ? void 0 : t.current;
959
+ if (i)
960
+ return i.addEventListener("mousedown", o), i.addEventListener("mouseup", v), i.addEventListener("mouseleave", h), () => {
961
+ i.removeEventListener("mousedown", o), i.removeEventListener("mouseup", v), i.removeEventListener("mouseleave", h);
962
962
  };
963
963
  }, [t]);
964
- const o = (a) => {
964
+ const o = (i) => {
965
965
  const u = t == null ? void 0 : t.current, m = u.getBoundingClientRect();
966
966
  c(!0), d({
967
- x: (a.clientX - m.left) / u.clientWidth * 100,
968
- y: (a.clientY - m.top) / u.clientHeight * 100
967
+ x: (i.clientX - m.left) / u.clientWidth * 100,
968
+ y: (i.clientY - m.top) / u.clientHeight * 100
969
969
  });
970
- }, h = (a) => {
970
+ }, h = (i) => {
971
971
  c(!1);
972
- }, y = (a) => {
972
+ }, v = (i) => {
973
973
  c(!1);
974
974
  };
975
- return /* @__PURE__ */ f(ue, { mode: "wait", children: (i || !i && !l) && /* @__PURE__ */ f(
976
- j.div,
975
+ return /* @__PURE__ */ f(ce, { mode: "wait", children: (s || !s && !l) && /* @__PURE__ */ f(
976
+ q.div,
977
977
  {
978
978
  style: {
979
979
  position: "absolute",
980
980
  width: "100%",
981
981
  height: "100%",
982
- top: s.y + "%",
983
- left: s.x + "%",
982
+ top: a.y + "%",
983
+ left: a.x + "%",
984
984
  background: `color-mix(in srgb, var(--color-${e}) 12%, transparent)`,
985
985
  pointerEvents: "none"
986
986
  },
@@ -992,7 +992,7 @@ const at = (e) => {
992
992
  className: "transform -translate-x-1/2 -translate-y-1/2"
993
993
  }
994
994
  ) });
995
- }, Et = G(
995
+ }, bt = G(
996
996
  "customScroll",
997
997
  ({ orientation: e, draggable: t, isDragging: n }) => ({
998
998
  customScroll: p(
@@ -1021,194 +1021,194 @@ const at = (e) => {
1021
1021
  })
1022
1022
  })
1023
1023
  );
1024
- function It(e, t) {
1024
+ function Lt(e, t) {
1025
1025
  let n = 0, l = null, r = null;
1026
- const i = (c, s) => {
1027
- n = Date.now(), t(c, s);
1026
+ const s = (c, a) => {
1027
+ n = Date.now(), t(c, a);
1028
1028
  };
1029
- return (c, s) => {
1029
+ return (c, a) => {
1030
1030
  const d = Date.now(), o = e - (d - n);
1031
- o <= 0 ? (l && (clearTimeout(l), l = null), i(c, s)) : (r = { v: c, o: s }, l || (l = setTimeout(() => {
1031
+ o <= 0 ? (l && (clearTimeout(l), l = null), s(c, a)) : (r = { v: c, o: a }, l || (l = setTimeout(() => {
1032
1032
  l = null;
1033
1033
  const h = r;
1034
- r = null, h && i(h.v, h.o);
1034
+ r = null, h && s(h.v, h.o);
1035
1035
  }, o)));
1036
1036
  };
1037
1037
  }
1038
- const kt = ({
1038
+ const Nt = ({
1039
1039
  children: e,
1040
1040
  orientation: t = "vertical",
1041
1041
  scrollSize: n,
1042
1042
  onScroll: l,
1043
1043
  className: r,
1044
- draggable: i = !1,
1044
+ draggable: s = !1,
1045
1045
  throttleDuration: c = 75,
1046
- scroll: s,
1046
+ scroll: a,
1047
1047
  setScroll: d
1048
1048
  }) => {
1049
- var ae, de;
1050
- const o = B(null), h = B(null), [y, a] = D({
1049
+ var oe, ie;
1050
+ const o = A(null), h = A(null), [v, i] = R({
1051
1051
  width: null,
1052
1052
  height: null
1053
1053
  });
1054
1054
  $(() => {
1055
1055
  if (!o.current) return;
1056
- const I = new ResizeObserver((w) => {
1057
- for (const A of w)
1058
- A.target === o.current && a({
1059
- width: A.contentRect.width,
1060
- height: A.contentRect.height
1056
+ const k = new ResizeObserver((b) => {
1057
+ for (const D of b)
1058
+ D.target === o.current && i({
1059
+ width: D.contentRect.width,
1060
+ height: D.contentRect.height
1061
1061
  // On observe aussi la hauteur maintenant
1062
1062
  });
1063
1063
  });
1064
- return I.observe(o.current), () => {
1065
- I.disconnect();
1064
+ return k.observe(o.current), () => {
1065
+ k.disconnect();
1066
1066
  };
1067
1067
  }, [o]);
1068
- const u = B(null), m = B(null), b = () => {
1069
- const I = h.current;
1070
- return I ? {
1071
- width: n ?? I.scrollWidth,
1072
- height: n ?? I.scrollHeight
1068
+ const u = A(null), m = A(null), y = () => {
1069
+ const k = h.current;
1070
+ return k ? {
1071
+ width: n ?? k.scrollWidth,
1072
+ height: n ?? k.scrollHeight
1073
1073
  } : null;
1074
- }, x = () => {
1075
- const I = o.current;
1076
- return I ? {
1077
- width: I.clientWidth,
1078
- height: I.clientHeight
1074
+ }, w = () => {
1075
+ const k = o.current;
1076
+ return k ? {
1077
+ width: k.clientWidth,
1078
+ height: k.clientHeight
1079
1079
  // Correction ici pour retourner la bonne hauteur
1080
1080
  } : null;
1081
- }, { scrollYProgress: M, scrollXProgress: g } = Ze({
1081
+ }, { scrollYProgress: I, scrollXProgress: g } = _e({
1082
1082
  container: o
1083
- }), R = B(null);
1084
- R.current || (R.current = It(
1083
+ }), W = A(null);
1084
+ W.current || (W.current = Lt(
1085
1085
  c,
1086
- (I, w) => {
1087
- !m.current || !u.current || !o.current || (w === (t === "horizontal" ? "x" : "y") && (d == null || d(I)), l && (t === "horizontal" && w === "x" && l({
1088
- scrollProgress: I,
1089
- scroll: I * (u.current.width - o.current.clientWidth),
1086
+ (k, b) => {
1087
+ !m.current || !u.current || !o.current || (b === (t === "horizontal" ? "x" : "y") && (d == null || d(k)), l && (t === "horizontal" && b === "x" && l({
1088
+ scrollProgress: k,
1089
+ scroll: k * (u.current.width - o.current.clientWidth),
1090
1090
  scrollTotal: u.current.width - o.current.clientWidth,
1091
1091
  scrollVisible: m.current.width
1092
- }), t === "vertical" && w === "y" && l({
1093
- scrollProgress: I,
1094
- scroll: I * (u.current.height - o.current.clientHeight),
1092
+ }), t === "vertical" && b === "y" && l({
1093
+ scrollProgress: k,
1094
+ scroll: k * (u.current.height - o.current.clientHeight),
1095
1095
  scrollTotal: u.current.height - o.current.clientHeight,
1096
1096
  scrollVisible: m.current.height
1097
1097
  })));
1098
1098
  }
1099
1099
  ));
1100
- const N = (I, w) => {
1101
- R.current && R.current(I, w);
1100
+ const L = (k, b) => {
1101
+ W.current && W.current(k, b);
1102
1102
  };
1103
1103
  $(() => {
1104
- y.width && N(g.get(), "x"), y.height && N(M.get(), "y");
1105
- }, [y]), $(() => {
1106
- const I = o.current, w = h.current;
1107
- if (!I || !w || typeof s != "number") return;
1108
- const A = (H, V, le) => Math.min(le, Math.max(V, H));
1104
+ v.width && L(g.get(), "x"), v.height && L(I.get(), "y");
1105
+ }, [v]), $(() => {
1106
+ const k = o.current, b = h.current;
1107
+ if (!k || !b || typeof a != "number") return;
1108
+ const D = (H, j, Y) => Math.min(Y, Math.max(j, H));
1109
1109
  if (t === "horizontal") {
1110
- const H = Math.max(0, (n ?? w.scrollWidth) - I.clientWidth);
1111
- I.scrollLeft = A(s * H, 0, H);
1110
+ const H = Math.max(0, (n ?? b.scrollWidth) - k.clientWidth);
1111
+ k.scrollLeft = D(a * H, 0, H);
1112
1112
  } else {
1113
- const H = Math.max(0, (n ?? w.scrollHeight) - I.clientHeight);
1114
- I.scrollTop = A(s * H, 0, H);
1113
+ const H = Math.max(0, (n ?? b.scrollHeight) - k.clientHeight);
1114
+ k.scrollTop = D(a * H, 0, H);
1115
1115
  }
1116
- }, [s, t, n]), Re(g, "change", (I) => {
1117
- N(I, "x");
1118
- }), Re(M, "change", (I) => {
1119
- N(I, "y");
1116
+ }, [a, t, n]), Se(g, "change", (k) => {
1117
+ L(k, "x");
1118
+ }), Se(I, "change", (k) => {
1119
+ L(k, "y");
1120
1120
  });
1121
- const [P, L] = D(!1);
1122
- Xe(() => {
1121
+ const [P, N] = R(!1);
1122
+ He(() => {
1123
1123
  P || !m.current || !u.current || !l || (l({
1124
1124
  scrollProgress: 0,
1125
1125
  scroll: 0,
1126
1126
  scrollTotal: t == "vertical" ? u.current.height : u.current.width,
1127
1127
  scrollVisible: t == "vertical" ? m.current.height : m.current.width
1128
- }), L(!0));
1129
- }, [m, u, l]), u.current = b(), m.current = x();
1130
- const [O, F] = D(!1), C = Et({
1131
- isDragging: O,
1128
+ }), N(!0));
1129
+ }, [m, u, l]), u.current = y(), m.current = w();
1130
+ const [F, V] = R(!1), C = bt({
1131
+ isDragging: F,
1132
1132
  children: e,
1133
1133
  className: r,
1134
1134
  onScroll: l,
1135
1135
  orientation: t,
1136
1136
  scrollSize: n,
1137
- draggable: i,
1137
+ draggable: s,
1138
1138
  throttleDuration: c
1139
- }), [v, k] = D(0), [U, J] = D(0), re = (I) => {
1140
- if (!i) return;
1141
- const w = o.current;
1142
- if (!w || v == null) return;
1143
- const H = (I.pageX - w.offsetLeft - v) * 1.5;
1144
- w.scrollLeft = U - H;
1145
- }, _ = (I) => {
1146
- const w = o.current;
1147
- w && (F(!0), k(I.pageX - w.offsetLeft), J(w.scrollLeft));
1148
- }, oe = (I) => {
1149
- O && (I.preventDefault(), re(I));
1139
+ }), [x, M] = R(0), [X, J] = R(0), ee = (k) => {
1140
+ if (!s) return;
1141
+ const b = o.current;
1142
+ if (!b || x == null) return;
1143
+ const H = (k.pageX - b.offsetLeft - x) * 1.5;
1144
+ b.scrollLeft = X - H;
1145
+ }, _ = (k) => {
1146
+ const b = o.current;
1147
+ b && (V(!0), M(k.pageX - b.offsetLeft), J(b.scrollLeft));
1148
+ }, te = (k) => {
1149
+ F && (k.preventDefault(), ee(k));
1150
1150
  }, S = () => {
1151
- F(!1);
1151
+ V(!1);
1152
1152
  }, E = () => {
1153
- F(!1);
1154
- }, X = (I) => {
1155
- I.preventDefault();
1156
- }, q = B(null);
1153
+ V(!1);
1154
+ }, O = (k) => {
1155
+ k.preventDefault();
1156
+ }, K = A(null);
1157
1157
  return $(() => () => {
1158
- q.current && clearTimeout(q.current);
1158
+ K.current && clearTimeout(K.current);
1159
1159
  }, []), $(() => {
1160
- const I = o.current;
1161
- if (!I) return;
1162
- const w = (A) => {
1163
- var se, ne, T, ce;
1164
- const H = A.detail, V = o.current;
1165
- if (!V || !H) return;
1166
- const le = H.orientation ?? t;
1160
+ const k = o.current;
1161
+ if (!k) return;
1162
+ const b = (D) => {
1163
+ var ne, le, ue, ae;
1164
+ const H = D.detail, j = o.current;
1165
+ if (!j || !H) return;
1166
+ const Y = H.orientation ?? t;
1167
1167
  if (typeof H.progress == "number")
1168
- if (le === "horizontal") {
1169
- const ee = Math.max(
1168
+ if (Y === "horizontal") {
1169
+ const re = Math.max(
1170
1170
  0,
1171
- (((se = u.current) == null ? void 0 : se.width) ?? 0) - V.clientWidth
1171
+ (((ne = u.current) == null ? void 0 : ne.width) ?? 0) - j.clientWidth
1172
1172
  );
1173
- V.scrollLeft = Math.min(ee, Math.max(0, H.progress * ee));
1173
+ j.scrollLeft = Math.min(re, Math.max(0, H.progress * re));
1174
1174
  } else {
1175
- const ee = Math.max(
1175
+ const re = Math.max(
1176
1176
  0,
1177
- (((ne = u.current) == null ? void 0 : ne.height) ?? 0) - V.clientHeight
1177
+ (((le = u.current) == null ? void 0 : le.height) ?? 0) - j.clientHeight
1178
1178
  );
1179
- V.scrollTop = Math.min(ee, Math.max(0, H.progress * ee));
1179
+ j.scrollTop = Math.min(re, Math.max(0, H.progress * re));
1180
1180
  }
1181
1181
  else if (typeof H.scroll == "number")
1182
- if (le === "horizontal") {
1183
- const ee = Math.max(
1182
+ if (Y === "horizontal") {
1183
+ const re = Math.max(
1184
1184
  0,
1185
- (((T = u.current) == null ? void 0 : T.width) ?? 0) - V.clientWidth
1185
+ (((ue = u.current) == null ? void 0 : ue.width) ?? 0) - j.clientWidth
1186
1186
  );
1187
- V.scrollLeft = Math.min(ee, Math.max(0, H.scroll));
1187
+ j.scrollLeft = Math.min(re, Math.max(0, H.scroll));
1188
1188
  } else {
1189
- const ee = Math.max(
1189
+ const re = Math.max(
1190
1190
  0,
1191
- (((ce = u.current) == null ? void 0 : ce.height) ?? 0) - V.clientHeight
1191
+ (((ae = u.current) == null ? void 0 : ae.height) ?? 0) - j.clientHeight
1192
1192
  );
1193
- V.scrollTop = Math.min(ee, Math.max(0, H.scroll));
1193
+ j.scrollTop = Math.min(re, Math.max(0, H.scroll));
1194
1194
  }
1195
1195
  };
1196
- return I.addEventListener("udx:customScroll:set", w), () => {
1197
- I.removeEventListener("udx:customScroll:set", w);
1196
+ return k.addEventListener("udx:customScroll:set", b), () => {
1197
+ k.removeEventListener("udx:customScroll:set", b);
1198
1198
  };
1199
- }, [t]), /* @__PURE__ */ Y(
1199
+ }, [t]), /* @__PURE__ */ U(
1200
1200
  "div",
1201
1201
  {
1202
1202
  className: C.customScroll,
1203
1203
  ref: o,
1204
1204
  onMouseDown: _,
1205
- onMouseMove: oe,
1205
+ onMouseMove: te,
1206
1206
  onMouseUp: S,
1207
1207
  onMouseLeave: E,
1208
- onDragStart: X,
1209
- onScroll: (I) => {
1210
- O || (k(null), F(!0), q.current && clearTimeout(q.current), q.current = setTimeout(() => {
1211
- F(!1);
1208
+ onDragStart: O,
1209
+ onScroll: (k) => {
1210
+ F || (M(null), V(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => {
1211
+ V(!1);
1212
1212
  }, 1e3));
1213
1213
  },
1214
1214
  children: [
@@ -1216,14 +1216,14 @@ const kt = ({
1216
1216
  "div",
1217
1217
  {
1218
1218
  ref: h,
1219
- style: t === "vertical" ? { height: ((ae = m == null ? void 0 : m.current) == null ? void 0 : ae.height) ?? "100%" } : { width: ((de = m == null ? void 0 : m.current) == null ? void 0 : de.width) ?? "100%" },
1219
+ style: t === "vertical" ? { height: ((oe = m == null ? void 0 : m.current) == null ? void 0 : oe.height) ?? "100%" } : { width: ((ie = m == null ? void 0 : m.current) == null ? void 0 : ie.width) ?? "100%" },
1220
1220
  className: C.track,
1221
1221
  children: e
1222
1222
  }
1223
1223
  ),
1224
- m.current && u.current && /* @__PURE__ */ Y(ye, { children: [
1224
+ m.current && u.current && /* @__PURE__ */ U(he, { children: [
1225
1225
  t === "vertical" && u.current.height > m.current.height && /* @__PURE__ */ f(
1226
- j.div,
1226
+ q.div,
1227
1227
  {
1228
1228
  className: "flex-none",
1229
1229
  style: {
@@ -1232,7 +1232,7 @@ const kt = ({
1232
1232
  }
1233
1233
  ),
1234
1234
  t === "horizontal" && u.current.width > m.current.width && /* @__PURE__ */ f(
1235
- j.div,
1235
+ q.div,
1236
1236
  {
1237
1237
  className: "flex-none",
1238
1238
  style: {
@@ -1244,159 +1244,159 @@ const kt = ({
1244
1244
  ]
1245
1245
  }
1246
1246
  );
1247
- }, Mt = ({
1247
+ }, Et = ({
1248
1248
  onScroll: e,
1249
1249
  el: t,
1250
1250
  touch: n = !0
1251
1251
  }) => {
1252
- const l = B(null), r = B(0), i = B(0);
1252
+ const l = A(null), r = A(0), s = A(0);
1253
1253
  $(() => {
1254
1254
  if (!t) return;
1255
- r.current = t.scrollTop, i.current = t.scrollLeft;
1256
- const c = (a) => {
1257
- e == null || e(a);
1258
- }, s = (a) => {
1259
- a.preventDefault(), c({
1255
+ r.current = t.scrollTop, s.current = t.scrollLeft;
1256
+ const c = (i) => {
1257
+ e == null || e(i);
1258
+ }, a = (i) => {
1259
+ i.preventDefault(), c({
1260
1260
  type: "intent",
1261
1261
  source: "wheel",
1262
- deltaX: a.deltaX,
1263
- deltaY: a.deltaY,
1264
- originalEvent: a
1262
+ deltaX: i.deltaX,
1263
+ deltaY: i.deltaY,
1264
+ originalEvent: i
1265
1265
  });
1266
- }, d = (a) => {
1266
+ }, d = (i) => {
1267
1267
  if (!n) return;
1268
- const u = a.touches[0];
1268
+ const u = i.touches[0];
1269
1269
  u && (l.current = { x: u.clientX, y: u.clientY });
1270
- }, o = (a) => {
1270
+ }, o = (i) => {
1271
1271
  if (!n) return;
1272
- const u = a.touches[0];
1272
+ const u = i.touches[0];
1273
1273
  if (!u || !l.current) return;
1274
- a.preventDefault();
1275
- const m = l.current.x - u.clientX, b = l.current.y - u.clientY;
1274
+ i.preventDefault();
1275
+ const m = l.current.x - u.clientX, y = l.current.y - u.clientY;
1276
1276
  l.current = { x: u.clientX, y: u.clientY }, c({
1277
1277
  type: "intent",
1278
1278
  source: "touch",
1279
1279
  deltaX: m,
1280
- deltaY: b,
1281
- originalEvent: a
1280
+ deltaY: y,
1281
+ originalEvent: i
1282
1282
  });
1283
1283
  }, h = () => {
1284
1284
  n && (l.current = null);
1285
- }, y = (a) => {
1285
+ }, v = (i) => {
1286
1286
  const m = t.clientHeight * 0.9;
1287
- let b = 0, x = 0;
1288
- switch (a.key) {
1287
+ let y = 0, w = 0;
1288
+ switch (i.key) {
1289
1289
  case "ArrowDown":
1290
- x = 40;
1290
+ w = 40;
1291
1291
  break;
1292
1292
  case "ArrowUp":
1293
- x = -40;
1293
+ w = -40;
1294
1294
  break;
1295
1295
  case "ArrowRight":
1296
- b = 40;
1296
+ y = 40;
1297
1297
  break;
1298
1298
  case "ArrowLeft":
1299
- b = -40;
1299
+ y = -40;
1300
1300
  break;
1301
1301
  case "PageDown":
1302
- x = m;
1302
+ w = m;
1303
1303
  break;
1304
1304
  case "PageUp":
1305
- x = -m;
1305
+ w = -m;
1306
1306
  break;
1307
1307
  case "Home":
1308
- x = Number.NEGATIVE_INFINITY;
1308
+ w = Number.NEGATIVE_INFINITY;
1309
1309
  break;
1310
1310
  case "End":
1311
- x = Number.POSITIVE_INFINITY;
1311
+ w = Number.POSITIVE_INFINITY;
1312
1312
  break;
1313
1313
  case " ":
1314
- x = a.shiftKey ? -m : m;
1314
+ w = i.shiftKey ? -m : m;
1315
1315
  break;
1316
1316
  default:
1317
1317
  return;
1318
1318
  }
1319
- a.preventDefault(), c({
1319
+ i.preventDefault(), c({
1320
1320
  type: "intent",
1321
1321
  source: "keyboard",
1322
- deltaX: b,
1323
- deltaY: x,
1324
- originalEvent: a
1322
+ deltaX: y,
1323
+ deltaY: w,
1324
+ originalEvent: i
1325
1325
  });
1326
1326
  };
1327
- return t.addEventListener("wheel", s, { passive: !1 }), t.addEventListener("touchstart", d, { passive: !0 }), t.addEventListener("touchmove", o, { passive: !1 }), t.addEventListener("touchend", h, { passive: !0 }), t.addEventListener("keydown", y), () => {
1328
- t.removeEventListener("wheel", s), t.removeEventListener("touchstart", d), t.removeEventListener("touchmove", o), t.removeEventListener("touchend", h), t.removeEventListener("keydown", y);
1327
+ return t.addEventListener("wheel", a, { passive: !1 }), t.addEventListener("touchstart", d, { passive: !0 }), t.addEventListener("touchmove", o, { passive: !1 }), t.addEventListener("touchend", h, { passive: !0 }), t.addEventListener("keydown", v), () => {
1328
+ t.removeEventListener("wheel", a), t.removeEventListener("touchstart", d), t.removeEventListener("touchmove", o), t.removeEventListener("touchend", h), t.removeEventListener("keydown", v);
1329
1329
  };
1330
1330
  }, [e]);
1331
- }, ln = ({
1331
+ }, nn = ({
1332
1332
  transition: e,
1333
1333
  orientation: t = "vertical",
1334
1334
  throttleDuration: n = 25
1335
1335
  }) => {
1336
- const [l, r] = D(0), [i, c] = D(), s = B(!1), d = B(), o = B(0);
1336
+ const [l, r] = R(0), [s, c] = R(), a = A(!1), d = A(), o = A(0);
1337
1337
  $(() => {
1338
1338
  c(document);
1339
- const a = document.documentElement.scrollTop;
1340
- r(a), o.current = a;
1339
+ const i = document.documentElement.scrollTop;
1340
+ r(i), o.current = i;
1341
1341
  }, []), $(() => {
1342
- const a = () => {
1343
- s.current || r(document.documentElement.scrollTop);
1342
+ const i = () => {
1343
+ a.current || r(document.documentElement.scrollTop);
1344
1344
  };
1345
- return i == null || i.addEventListener("scroll", a), () => {
1346
- d.current && clearTimeout(d.current), i == null || i.removeEventListener("scroll", a);
1345
+ return s == null || s.addEventListener("scroll", i), () => {
1346
+ d.current && clearTimeout(d.current), s == null || s.removeEventListener("scroll", i);
1347
1347
  };
1348
- }, [i]);
1349
- const h = B(), y = B(null);
1348
+ }, [s]);
1349
+ const h = A(), v = A(null);
1350
1350
  return $(() => {
1351
- const a = l;
1352
- if (y.current && (y.current.stop(), y.current = null), !s.current) {
1353
- h.current = a;
1351
+ const i = l;
1352
+ if (v.current && (v.current.stop(), v.current = null), !a.current) {
1353
+ h.current = i;
1354
1354
  return;
1355
1355
  }
1356
- return y.current = ze(h.current ?? a, a, {
1356
+ return v.current = Je(h.current ?? i, i, {
1357
1357
  duration: ((e == null ? void 0 : e.duration) ?? 500) / 1e3,
1358
1358
  ease: (e == null ? void 0 : e.ease) ?? "easeOut",
1359
1359
  onUpdate: (u) => {
1360
1360
  d.current && clearTimeout(d.current), h.current = u;
1361
- const m = document.documentElement, b = Math.round(u * 1e3) / 1e3, x = o.current;
1362
- Math.abs(b - x) < 0.1 || (o.current = b, s.current && m.scrollTo({ top: b }));
1361
+ const m = document.documentElement, y = Math.round(u * 1e3) / 1e3, w = o.current;
1362
+ Math.abs(y - w) < 0.1 || (o.current = y, a.current && m.scrollTo({ top: y }));
1363
1363
  },
1364
1364
  onComplete: () => {
1365
1365
  d.current = setTimeout(() => {
1366
- s.current = !1;
1367
- }, 300), y.current = null;
1366
+ a.current = !1;
1367
+ }, 300), v.current = null;
1368
1368
  }
1369
1369
  }), () => {
1370
- y.current && (y.current.stop(), y.current = null);
1370
+ v.current && (v.current.stop(), v.current = null);
1371
1371
  };
1372
- }, [l]), i ? /* @__PURE__ */ f(
1373
- Mt,
1372
+ }, [l]), s ? /* @__PURE__ */ f(
1373
+ Et,
1374
1374
  {
1375
1375
  touch: !1,
1376
- el: i,
1377
- onScroll: (a) => {
1378
- if ("deltaY" in a && a.deltaY !== 0 && i && l !== null) {
1379
- let u = l + a.deltaY;
1380
- const m = i.querySelector("html");
1381
- m && (u = Math.min(u, m.scrollHeight - m.clientHeight)), u = Math.max(u, 0), r(u), s.current = !0;
1376
+ el: s,
1377
+ onScroll: (i) => {
1378
+ if ("deltaY" in i && i.deltaY !== 0 && s && l !== null) {
1379
+ let u = l + i.deltaY;
1380
+ const m = s.querySelector("html");
1381
+ m && (u = Math.min(u, m.scrollHeight - m.clientHeight)), u = Math.max(u, 0), r(u), a.current = !0;
1382
1382
  }
1383
1383
  }
1384
1384
  }
1385
1385
  ) : null;
1386
- }, St = ({
1386
+ }, kt = ({
1387
1387
  targetRef: e,
1388
1388
  children: t
1389
1389
  }) => {
1390
- const [n, l] = D(null), r = B(null), i = () => {
1390
+ const [n, l] = R(null), r = A(null), s = () => {
1391
1391
  const c = e.current;
1392
1392
  if (!c) return;
1393
- const s = c.getBoundingClientRect();
1393
+ const a = c.getBoundingClientRect();
1394
1394
  l({
1395
1395
  position: "fixed",
1396
- top: s.top,
1397
- left: s.left,
1398
- width: s.width,
1399
- height: s.height,
1396
+ top: a.top,
1397
+ left: a.left,
1398
+ width: a.width,
1399
+ height: a.height,
1400
1400
  pointerEvents: "none",
1401
1401
  // si le wrapper ne doit pas capter les events
1402
1402
  zIndex: 999
@@ -1406,66 +1406,66 @@ const kt = ({
1406
1406
  return $(() => {
1407
1407
  const c = e.current;
1408
1408
  if (c)
1409
- return i(), window.addEventListener("scroll", i, !0), window.addEventListener("resize", i), r.current = new ResizeObserver(i), r.current.observe(c), () => {
1410
- var s;
1411
- window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i), (s = r.current) == null || s.disconnect();
1409
+ return s(), window.addEventListener("scroll", s, !0), window.addEventListener("resize", s), r.current = new ResizeObserver(s), r.current.observe(c), () => {
1410
+ var a;
1411
+ window.removeEventListener("scroll", s, !0), window.removeEventListener("resize", s), (a = r.current) == null || a.disconnect();
1412
1412
  };
1413
- }, [e]), n ? Oe(/* @__PURE__ */ f("div", { style: n, children: t }), document.body) : null;
1413
+ }, [e]), n ? Ve(/* @__PURE__ */ f("div", { style: n, children: t }), document.body) : null;
1414
1414
  };
1415
- function $t(e) {
1415
+ function It(e) {
1416
1416
  return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e);
1417
1417
  }
1418
- const an = ({
1418
+ const rn = ({
1419
1419
  config: e,
1420
1420
  throttleDelay: t = 100,
1421
1421
  // Délai par défaut de 300ms
1422
1422
  onLoad: n,
1423
1423
  loadTheme: l = !1
1424
1424
  }) => {
1425
- const [r, i] = D(null);
1425
+ const [r, s] = R(null);
1426
1426
  $(() => {
1427
1427
  (async () => {
1428
- const a = await Te(e, l);
1429
- i(a);
1428
+ const i = await Ze(e, l);
1429
+ s(i);
1430
1430
  })();
1431
1431
  }, []);
1432
- const [c, s] = D(null), d = B(null), o = B(0), h = B(null);
1432
+ const [c, a] = R(null), d = A(null), o = A(0), h = A(null);
1433
1433
  $(() => {
1434
1434
  if (!r) return;
1435
- const a = {
1435
+ const i = {
1436
1436
  ...e,
1437
1437
  // Assurer la compatibilité avec l'API qui attend sourceColorHex
1438
1438
  sourceColor: e.sourceColor
1439
- }, u = Date.now(), m = u - o.current, b = async (x) => {
1440
- await y(x);
1439
+ }, u = Date.now(), m = u - o.current, y = async (w) => {
1440
+ await v(w);
1441
1441
  };
1442
1442
  if (o.current === 0 || m >= t)
1443
- d.current && (clearTimeout(d.current), d.current = null), h.current = null, o.current = u, b(a);
1444
- else if (h.current = a, !d.current) {
1445
- const x = Math.max(0, t - m);
1443
+ d.current && (clearTimeout(d.current), d.current = null), h.current = null, o.current = u, y(i);
1444
+ else if (h.current = i, !d.current) {
1445
+ const w = Math.max(0, t - m);
1446
1446
  d.current = setTimeout(async () => {
1447
1447
  d.current = null;
1448
- const M = h.current;
1449
- h.current = null, M && (o.current = Date.now(), await b(M));
1450
- }, x);
1448
+ const I = h.current;
1449
+ h.current = null, I && (o.current = Date.now(), await y(I));
1450
+ }, w);
1451
1451
  }
1452
1452
  return () => {
1453
1453
  };
1454
1454
  }, [e, t, r]);
1455
- const y = async (a) => {
1456
- if (typeof a.sourceColor == "string" && !$t(a.sourceColor))
1455
+ const v = async (i) => {
1456
+ if (typeof i.sourceColor == "string" && !It(i.sourceColor))
1457
1457
  throw new Error("Invalid hex color");
1458
1458
  if (!r)
1459
1459
  return;
1460
- r.context.update(a), await r.load();
1461
- const u = r == null ? void 0 : r.plugins.getPlugin(Ue).getInstance().outputCss;
1462
- s(u), n == null || n(r);
1460
+ r.context.update(i), await r.load();
1461
+ const u = r == null ? void 0 : r.plugins.getPlugin(Oe).getInstance().outputCss;
1462
+ a(u), n == null || n(r);
1463
1463
  };
1464
1464
  return $(() => () => {
1465
1465
  d.current && (clearTimeout(d.current), d.current = null);
1466
1466
  }, []), c ? /* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html: c } }) : null;
1467
1467
  };
1468
- function Ct() {
1468
+ function Mt() {
1469
1469
  if (typeof window > "u") return !1;
1470
1470
  try {
1471
1471
  if (window.CSS && typeof window.CSS.supports == "function")
@@ -1475,42 +1475,42 @@ function Ct() {
1475
1475
  }
1476
1476
  return !1;
1477
1477
  }
1478
- function Dt() {
1478
+ function St() {
1479
1479
  return typeof window > "u" || !("matchMedia" in window) ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1480
1480
  }
1481
- function Me(e) {
1481
+ function Ee(e) {
1482
1482
  if (!(e instanceof HTMLElement)) return !1;
1483
1483
  const t = e.classList;
1484
1484
  return Array.from(t).some(
1485
1485
  (n) => n.startsWith("anim-") && n.includes("scroll")
1486
1486
  );
1487
1487
  }
1488
- function We(e) {
1488
+ function $e(e) {
1489
1489
  if (!(e instanceof HTMLElement)) return !1;
1490
1490
  const t = e.classList;
1491
1491
  return Array.from(t).some((n) => n.startsWith("anim-"));
1492
1492
  }
1493
- function Ee(e, t) {
1494
- if (!Me(e)) return;
1493
+ function be(e, t) {
1494
+ if (!Ee(e)) return;
1495
1495
  if (e.hasAttribute(`data-${t}-scroll`)) {
1496
- const c = (e.getAttribute(`data-${t}-scroll`) || "").trim().toLowerCase(), s = c === "x" || c === "inline" ? "inline" : c === "y" || c === "block" ? "block" : "auto";
1497
- 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`));
1496
+ const c = (e.getAttribute(`data-${t}-scroll`) || "").trim().toLowerCase(), a = c === "x" || c === "inline" ? "inline" : c === "y" || c === "block" ? "block" : "auto";
1497
+ e.classList.contains(`${t}-timeline`) || e.classList.contains(`${t}-timeline-inline`) || e.classList.contains(`${t}-timeline-block`) || e.classList.contains(`${t}-timeline-x`) || e.classList.contains(`${t}-timeline-y`) || (a === "inline" ? e.classList.add(`${t}-timeline-inline`) : a === "block" ? e.classList.add(`${t}-timeline-block`) : e.classList.add(`${t}-scroll`));
1498
1498
  }
1499
1499
  const n = e.getAttribute(`data-${t}-start`);
1500
1500
  n && e.style.setProperty(`--${t}-range-start`, n);
1501
1501
  const l = e.getAttribute(`data-${t}-end`);
1502
1502
  l && e.style.setProperty(`--${t}-range-end`, l);
1503
- const r = e.hasAttribute(`data-${t}-paused`) || e.classList.contains(`${t}-paused`), i = e.hasAttribute(`data-${t}-run`) || e.classList.contains(`${t}-run`);
1504
- !r && !i && e.setAttribute(`data-${t}-run`, "");
1503
+ const r = e.hasAttribute(`data-${t}-paused`) || e.classList.contains(`${t}-paused`), s = e.hasAttribute(`data-${t}-run`) || e.classList.contains(`${t}-run`);
1504
+ !r && !s && e.setAttribute(`data-${t}-run`, "");
1505
1505
  }
1506
- function Ie(e = document, t) {
1506
+ function Le(e = document, t) {
1507
1507
  return Array.from(
1508
1508
  e.querySelectorAll(
1509
1509
  `[class*="${t}-"][class*="-scroll"]`
1510
1510
  )
1511
- ).filter((l) => Me(l));
1511
+ ).filter((l) => Ee(l));
1512
1512
  }
1513
- function Rt(e = document, t) {
1513
+ function $t(e = document, t) {
1514
1514
  const n = Array.from(
1515
1515
  e.querySelectorAll(`[class*="${t}-"]`)
1516
1516
  ), l = /* @__PURE__ */ new Set([
@@ -1529,73 +1529,85 @@ function Rt(e = document, t) {
1529
1529
  ]);
1530
1530
  return n.filter((r) => {
1531
1531
  if (!(r instanceof HTMLElement)) return !1;
1532
- const i = r.classList;
1533
- return i.contains(`${t}-in`) || i.contains(`${t}-out`) || Array.from(i).some(
1532
+ const s = r.classList;
1533
+ return s.contains(`${t}-in`) || s.contains(`${t}-out`) || Array.from(s).some(
1534
1534
  (d) => d.startsWith(`${t}-`) && !d.includes("scroll") && !l.has(d)
1535
- ) ? !0 : !Me(r);
1535
+ ) ? !0 : !Ee(r);
1536
1536
  });
1537
1537
  }
1538
- function Ae(e, t, n) {
1538
+ function Ct(e, t) {
1539
+ return Array.from(e).some(
1540
+ (n) => n.startsWith(t) && n.includes("-out")
1541
+ );
1542
+ }
1543
+ function Ce(e, t, n) {
1539
1544
  e.setAttribute(`data-${t}-run`, ""), e.setAttribute(`data-${t}-${n}-run`, "");
1540
1545
  }
1541
- function Wt(e, t) {
1542
- const n = e.style.animationName;
1543
- e.style.animationName = "none", e.removeAttribute(`data-${t}-run`), e.removeAttribute(`data-${t}-in-run`), e.removeAttribute(`data-${t}-out-run`), e.offsetWidth, e.style.animationName = n;
1546
+ function Re(e, t, n) {
1547
+ const l = e.style.animationName;
1548
+ e.style.animationName = "none", e.removeAttribute(`data-${t}-run`), n ? e.removeAttribute(`data-${t}-${n}-run`) : (e.removeAttribute(`data-${t}-in-run`), e.removeAttribute(`data-${t}-out-run`)), e.offsetWidth, e.style.animationName = l;
1544
1549
  }
1545
- const At = [0, 0.2], Be = /* @__PURE__ */ new WeakSet();
1546
- function Pe(e, t) {
1547
- if (Be.has(e)) return;
1548
- Be.add(e);
1550
+ const Rt = [0, 0.2], We = /* @__PURE__ */ new WeakSet();
1551
+ function De(e, t) {
1552
+ if (We.has(e)) return;
1553
+ We.add(e);
1549
1554
  const n = (r) => {
1550
1555
  r.target === e && (e.hasAttribute(`data-${t}-in-run`) || e.hasAttribute(`data-${t}-out-run`)) && e.setAttribute(`data-${t}-animating`, "");
1551
1556
  }, l = (r) => {
1552
- r.target === e && (e.removeAttribute(`data-${t}-animating`), e.removeAttribute(`data-${t}-in-run`), e.removeAttribute(`data-${t}-out-run`));
1557
+ r.target === e && e.removeAttribute(`data-${t}-animating`);
1553
1558
  };
1554
1559
  e.addEventListener("animationstart", n), e.addEventListener("animationend", l), e.addEventListener("animationcancel", l);
1555
1560
  }
1556
- function je(e = {}) {
1561
+ function Xe(e = {}) {
1557
1562
  const { prefix: t = "anim", once: n = !0 } = e;
1558
- if (Dt())
1563
+ if (St())
1559
1564
  return () => {
1560
1565
  };
1561
- const l = Ct(), r = /* @__PURE__ */ new WeakSet(), i = new IntersectionObserver(
1562
- (h) => {
1563
- for (const y of h) {
1564
- const a = y.target;
1565
- if (!We(a) || a.hasAttribute(`data-${t}-animating`)) continue;
1566
- const u = a.classList.contains(`${t}-out`);
1567
- !u && y.isIntersecting ? (Ae(a, t, "in"), n && i.unobserve(a)) : u && !y.isIntersecting ? (Ae(a, t, "out"), n && i.unobserve(a)) : n || Wt(a, t);
1566
+ const l = Mt(), r = /* @__PURE__ */ new WeakSet();
1567
+ let s = typeof window < "u" && (window.pageYOffset || window.scrollY) || 0, c = !0;
1568
+ const a = () => {
1569
+ const u = window.pageYOffset || window.scrollY || 0;
1570
+ c = u >= s, s = u;
1571
+ };
1572
+ typeof window < "u" && window.addEventListener("scroll", a, { passive: !0 });
1573
+ const d = new IntersectionObserver(
1574
+ (u) => {
1575
+ for (const m of u) {
1576
+ const y = m.target;
1577
+ if (!$e(y) || y.hasAttribute(`data-${t}-animating`)) continue;
1578
+ const w = Ct(y.classList, t);
1579
+ m.isIntersecting ? (w && Re(y, t, "out"), Ce(y, t, "in"), n && d.unobserve(y)) : n || (c || Re(y, t, "in"), w && Ce(y, t, "out"));
1568
1580
  }
1569
1581
  },
1570
- { threshold: At }
1571
- ), c = (h) => {
1572
- const y = Rt(h || document, t);
1573
- for (const a of y)
1574
- r.has(a) || (r.add(a), i.observe(a), Pe(a, t));
1582
+ { threshold: Rt }
1583
+ ), o = (u) => {
1584
+ const m = $t(u || document, t);
1585
+ for (const y of m)
1586
+ r.has(y) || (r.add(y), d.observe(y), De(y, t));
1575
1587
  };
1576
- c();
1577
- let s, d = null, o = null;
1588
+ o();
1589
+ let h, v = null, i = null;
1578
1590
  if (l)
1579
1591
  (() => {
1580
- o == null && (o = requestAnimationFrame(() => {
1581
- o = null;
1582
- const y = Ie(void 0, t);
1583
- for (const a of y) Ee(a, t);
1592
+ i == null && (i = requestAnimationFrame(() => {
1593
+ i = null;
1594
+ const m = Le(void 0, t);
1595
+ for (const y of m) be(y, t);
1584
1596
  }));
1585
- })(), d = new MutationObserver((y) => {
1586
- for (const a of y)
1587
- if (a.type === "attributes") {
1588
- const u = a.target;
1589
- u instanceof HTMLElement && (Ee(u, t), We(u) && (r.has(u) || (r.add(u), i.observe(u), Pe(u, t))));
1590
- } else if (a.type === "childList" && a.addedNodes && a.addedNodes.length) {
1591
- for (const u of Array.from(a.addedNodes))
1592
- if (u instanceof HTMLElement) {
1593
- const m = Ie(u, t);
1594
- for (const b of m) Ee(b, t);
1595
- c(u);
1597
+ })(), v = new MutationObserver((m) => {
1598
+ for (const y of m)
1599
+ if (y.type === "attributes") {
1600
+ const w = y.target;
1601
+ w instanceof HTMLElement && (be(w, t), $e(w) && (r.has(w) || (r.add(w), d.observe(w), De(w, t))));
1602
+ } else if (y.type === "childList" && y.addedNodes && y.addedNodes.length) {
1603
+ for (const w of Array.from(y.addedNodes))
1604
+ if (w instanceof HTMLElement) {
1605
+ const I = Le(w, t);
1606
+ for (const g of I) be(g, t);
1607
+ o(w);
1596
1608
  }
1597
1609
  }
1598
- }), d.observe(document.documentElement, {
1610
+ }), v.observe(document.documentElement, {
1599
1611
  subtree: !0,
1600
1612
  childList: !0,
1601
1613
  attributes: !0,
@@ -1607,111 +1619,111 @@ function je(e = {}) {
1607
1619
  `data-${t}-paused`,
1608
1620
  `data-${t}-run`
1609
1621
  ]
1610
- }), s = () => {
1611
- o != null && cancelAnimationFrame(o), d && d.disconnect();
1622
+ }), h = () => {
1623
+ i != null && cancelAnimationFrame(i), v && v.disconnect();
1612
1624
  };
1613
1625
  else {
1614
- let h;
1615
- Ie(void 0, t).length > 0 && import("./scrollDriven-AP2yWhzi.js").then((a) => {
1616
- h = a.initScrollViewFallback({ once: n });
1617
- }), s = () => {
1618
- typeof h == "function" && h();
1626
+ let u;
1627
+ Le(void 0, t).length > 0 && import("./scrollDriven-AP2yWhzi.js").then((y) => {
1628
+ u = y.initScrollViewFallback({ once: n });
1629
+ }), h = () => {
1630
+ typeof u == "function" && u();
1619
1631
  };
1620
1632
  }
1621
1633
  return () => {
1622
- s && s(), i.disconnect();
1634
+ h && h(), typeof window < "u" && window.removeEventListener("scroll", a), d.disconnect();
1623
1635
  };
1624
1636
  }
1625
- const sn = je, cn = je, Bt = ({
1637
+ const on = Xe, ln = Xe, Wt = ({
1626
1638
  variant: e = "filled",
1627
1639
  disabled: t = !1,
1628
1640
  icon: n,
1629
1641
  href: l,
1630
1642
  label: r,
1631
- disableTextMargins: i,
1643
+ disableTextMargins: s,
1632
1644
  className: c,
1633
- iconPosition: s = "left",
1645
+ iconPosition: a = "left",
1634
1646
  loading: d = !1,
1635
1647
  shape: o = "rounded",
1636
1648
  onClick: h,
1637
- onToggle: y,
1638
- activated: a,
1649
+ onToggle: v,
1650
+ activated: i,
1639
1651
  ref: u,
1640
1652
  size: m = "medium",
1641
- allowShapeTransformation: b = !0,
1642
- transition: x,
1643
- children: M,
1653
+ allowShapeTransformation: y = !0,
1654
+ transition: w,
1655
+ children: I,
1644
1656
  ...g
1645
1657
  }) => {
1646
- if (M && (r = M), !r)
1658
+ if (I && (r = I), !r)
1647
1659
  throw new Error(
1648
1660
  "Button component requires either a label prop or children content"
1649
1661
  );
1650
- const R = l ? "a" : "button", N = B(null), P = u || N, [L, O] = te.useState(a);
1662
+ const W = l ? "a" : "button", L = A(null), P = u || L, [N, F] = T.useState(i);
1651
1663
  $(() => {
1652
- O(a);
1653
- }, [a]), x = { duration: 0.3, ...x };
1654
- let F;
1655
- y ? y && (F = (k) => {
1656
- t && k.preventDefault();
1657
- const U = !L;
1658
- O(U), y(U);
1659
- }) : F = (k) => {
1660
- t && k.preventDefault(), h && h(k);
1664
+ F(i);
1665
+ }, [i]), w = { duration: 0.3, ...w };
1666
+ let V;
1667
+ v ? v && (V = (M) => {
1668
+ t && M.preventDefault();
1669
+ const X = !N;
1670
+ F(X), v(X);
1671
+ }) : V = (M) => {
1672
+ t && M.preventDefault(), h && h(M);
1661
1673
  };
1662
- const C = st({
1663
- allowShapeTransformation: b,
1674
+ const C = ot({
1675
+ allowShapeTransformation: y,
1664
1676
  size: m,
1665
- disableTextMargins: i,
1677
+ disableTextMargins: s,
1666
1678
  shape: o,
1667
1679
  href: l,
1668
1680
  disabled: t,
1669
1681
  icon: n,
1670
- iconPosition: s,
1682
+ iconPosition: a,
1671
1683
  loading: d,
1672
1684
  variant: e,
1673
- transition: x,
1685
+ transition: w,
1674
1686
  className: c,
1675
- isActive: L ?? !1,
1676
- onToggle: y,
1677
- activated: L,
1687
+ isActive: N ?? !1,
1688
+ onToggle: v,
1689
+ activated: N,
1678
1690
  label: r,
1679
1691
  children: r
1680
- }), v = n ? /* @__PURE__ */ f(ie, { icon: n, className: C.icon }) : /* @__PURE__ */ f(ye, {});
1681
- return /* @__PURE__ */ Y(
1682
- R,
1692
+ }), x = n ? /* @__PURE__ */ f(se, { icon: n, className: C.icon }) : /* @__PURE__ */ f(he, {});
1693
+ return /* @__PURE__ */ U(
1694
+ W,
1683
1695
  {
1684
1696
  ref: P,
1685
1697
  href: l,
1686
1698
  className: C.button,
1687
1699
  ...g,
1688
- onClick: F,
1700
+ onClick: V,
1689
1701
  disabled: t,
1690
- "aria-pressed": y ? L : void 0,
1691
- style: { transition: x.duration + "s" },
1702
+ "aria-pressed": v ? N : void 0,
1703
+ style: { transition: w.duration + "s" },
1692
1704
  children: [
1693
1705
  /* @__PURE__ */ f("div", { className: C.touchTarget }),
1694
1706
  /* @__PURE__ */ f(
1695
1707
  "div",
1696
1708
  {
1697
1709
  className: C.stateLayer,
1698
- style: { transition: x.duration + "s" },
1710
+ style: { transition: w.duration + "s" },
1699
1711
  children: !t && /* @__PURE__ */ f(
1700
1712
  we,
1701
1713
  {
1702
- colorName: e === "filled" && y && "on-surface-variant" || e === "filled" && !y && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
1714
+ colorName: e === "filled" && v && "on-surface-variant" || e === "filled" && !v && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
1703
1715
  triggerRef: P
1704
1716
  }
1705
1717
  )
1706
1718
  }
1707
1719
  ),
1708
- s === "left" && v,
1720
+ a === "left" && x,
1709
1721
  d && /* @__PURE__ */ f(
1710
1722
  "div",
1711
1723
  {
1712
1724
  className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
1713
1725
  children: /* @__PURE__ */ f(
1714
- Nt,
1726
+ gt,
1715
1727
  {
1716
1728
  className: () => ({
1717
1729
  progressIndicator: "h-6 w-6",
@@ -1744,36 +1756,36 @@ const sn = je, cn = je, Bt = ({
1744
1756
  }
1745
1757
  ),
1746
1758
  /* @__PURE__ */ f("span", { className: C.label, children: r }),
1747
- s === "right" && v
1759
+ a === "right" && x
1748
1760
  ]
1749
1761
  }
1750
1762
  );
1751
- }, un = ({
1763
+ }, an = ({
1752
1764
  variant: e = "outlined",
1753
1765
  className: t,
1754
1766
  children: n,
1755
1767
  isInteractive: l = !1,
1756
1768
  ref: r,
1757
- ...i
1769
+ ...s
1758
1770
  }) => {
1759
- const c = ct({ className: t, isInteractive: l, variant: e, children: n }), s = B(null), d = r || s;
1760
- return /* @__PURE__ */ Y("div", { ...i, ref: d, className: c.card, children: [
1771
+ const c = lt({ className: t, isInteractive: l, variant: e, children: n }), a = A(null), d = r || a;
1772
+ return /* @__PURE__ */ U("div", { ...s, ref: d, className: c.card, children: [
1761
1773
  /* @__PURE__ */ f("div", { className: c.stateLayer, children: l && /* @__PURE__ */ f(we, { colorName: "on-surface", triggerRef: d }) }),
1762
1774
  n
1763
1775
  ] });
1764
1776
  }, fe = (e, t, n = [0, 1]) => {
1765
- const [l, r] = t, [i, c] = n, d = (Math.max(l, Math.min(e, r)) - l) / (r - l);
1766
- return i + d * (c - i);
1767
- }, Pt = ({
1777
+ const [l, r] = t, [s, c] = n, d = (Math.max(l, Math.min(e, r)) - l) / (r - l);
1778
+ return s + d * (c - s);
1779
+ }, Dt = ({
1768
1780
  className: e,
1769
1781
  children: t,
1770
1782
  width: n,
1771
1783
  index: l = 0,
1772
1784
  outputRange: r,
1773
- ref: i,
1785
+ ref: s,
1774
1786
  ...c
1775
1787
  }) => {
1776
- const s = B(null), d = i || s, o = it({
1788
+ const a = A(null), d = s || a, o = at({
1777
1789
  className: e,
1778
1790
  index: l,
1779
1791
  width: n,
@@ -1799,310 +1811,275 @@ const sn = je, cn = je, Bt = ({
1799
1811
  children: t
1800
1812
  }
1801
1813
  );
1802
- }, dn = ({
1814
+ }, sn = ({
1803
1815
  variant: e = "hero",
1804
1816
  className: t,
1805
1817
  children: n,
1806
1818
  ref: l,
1807
1819
  marginPourcent: r = 0,
1808
- inputRange: i = [0.21, 0.65],
1820
+ inputRange: s = [0.21, 0.65],
1809
1821
  outputRange: c = [42, 300],
1810
- gap: s = 8,
1822
+ gap: a = 8,
1811
1823
  onChange: d,
1812
1824
  onMetricsChange: o,
1813
1825
  index: h,
1814
- scrollSensitivity: y = 1.25,
1815
- ...a
1826
+ scrollSensitivity: v = 1.25,
1827
+ ...i
1816
1828
  }) => {
1817
- const u = B(null), m = l || u, [b, x] = D(0), M = ut({
1829
+ const u = A(null), m = l || u, [y, w] = R(0), I = st({
1818
1830
  index: h,
1819
1831
  className: t,
1820
1832
  children: n,
1821
1833
  variant: e,
1822
- inputRange: i,
1834
+ inputRange: s,
1823
1835
  outputRange: c,
1824
1836
  marginPourcent: r,
1825
1837
  onChange: d,
1826
- gap: s,
1827
- scrollSensitivity: y
1828
- }), g = te.Children.toArray(n).filter(
1829
- (w) => te.isValidElement(w) && w.type === Pt
1830
- ), R = B(null), [N, P] = D(
1838
+ gap: a,
1839
+ scrollSensitivity: v,
1840
+ onMetricsChange: o
1841
+ }), g = T.Children.toArray(n).filter(
1842
+ (b) => T.isValidElement(b) && b.type === Dt
1843
+ ), W = A(null), [L, P] = R(
1831
1844
  {}
1832
- ), [L, O] = D(null), F = B(0), C = B(null), v = () => {
1833
- var xe, me, ve;
1834
- if (!R.current || !m.current || (L == null ? void 0 : L.scrollProgress) === void 0)
1845
+ ), [N, F] = R(null), V = A(0), C = A(null), x = () => {
1846
+ var de, pe;
1847
+ if (!W.current || !m.current || (N == null ? void 0 : N.scrollProgress) === void 0)
1835
1848
  return [];
1836
- const w = (L == null ? void 0 : L.scrollVisible) ?? ((xe = m.current) == null ? void 0 : xe.clientWidth) ?? 0;
1837
- function A(W, K) {
1838
- return W.map((Z, z) => ({
1839
- itemScrollXCenter: Z,
1840
- relativeIndex: (Z - K) / Math.abs(W[1] - W[0]),
1841
- index: z,
1842
- width: 0
1843
- }));
1849
+ const b = (N == null ? void 0 : N.scrollVisible) ?? ((de = m.current) == null ? void 0 : de.clientWidth) ?? 0;
1850
+ function D(B, Z) {
1851
+ return B.map((z, ye) => {
1852
+ const ge = (z - Z) / Math.abs(B[1] - B[0]);
1853
+ return {
1854
+ itemScrollXCenter: z,
1855
+ relativeIndex: ge,
1856
+ index: ye,
1857
+ width: 0
1858
+ };
1859
+ });
1844
1860
  }
1845
- const H = g.map((W, K) => {
1846
- if (!k[K].current || !R.current) return 0;
1847
- const z = K / (g.length - 1);
1848
- return fe(z, [0, 1], [0, 1]);
1849
- }), V = A(
1861
+ const H = g.map((B, Z) => {
1862
+ if (!M[Z].current || !W.current) return 0;
1863
+ const ye = Z / (g.length - 1);
1864
+ return fe(ye, [0, 1], [0, 1]);
1865
+ }), j = D(
1850
1866
  H,
1851
- (L == null ? void 0 : L.scrollProgress) ?? 0
1852
- ).sort((W, K) => W.index - K.index);
1853
- let se = ((((me = m.current) == null ? void 0 : me.clientWidth) ?? w) + s) / (c[1] + s);
1854
- const ne = V.sort((W, K) => Math.abs(W.relativeIndex) - Math.abs(K.relativeIndex)).map((W, K) => {
1855
- var z;
1856
- if (!W) return;
1857
- K === 0 && J(W.index);
1858
- const Z = (z = k[W.index]) == null ? void 0 : z.current;
1859
- if (!(!m.current || !Z) && !(se <= 0))
1860
- return W.width = c[1], --se, W;
1861
- }).filter(Boolean).sort((W, K) => W.index - K.index);
1862
- let T = (((ve = m.current) == null ? void 0 : ve.clientWidth) ?? w) - s;
1863
- const ce = ne.filter((W, K, Z) => {
1864
- let z = !1;
1865
- return W.width == c[1] && (K === 0 || K === Z.length - 1) && (z = !0), z ? !0 : (T -= W.width + s, !1);
1866
- });
1867
- ce.forEach((W) => {
1868
- if (!W) return;
1869
- const K = fe(
1870
- 1 - Math.abs(L.scrollProgress - W.itemScrollXCenter),
1871
- [0, 1],
1872
- [0, 1]
1867
+ (N == null ? void 0 : N.scrollProgress) ?? 0
1868
+ ).sort((B, Z) => B.index - Z.index);
1869
+ let Y = (((pe = m.current) == null ? void 0 : pe.clientWidth) ?? b) + a + c[0] + a;
1870
+ const ne = j.sort((B, Z) => Math.abs(B.relativeIndex) - Math.abs(Z.relativeIndex)).map((B, Z) => {
1871
+ if (!(Y <= 0)) {
1872
+ if (Z == 0 && J(B.index), B.width = fe(
1873
+ Y - a,
1874
+ [c[0], c[1]],
1875
+ [c[0], c[1]]
1876
+ ), Y -= B.width + a, Y != 0 && Y < (c[0] + a) * 2) {
1877
+ const z = B.width - ((c[0] + a) * 2 - Y);
1878
+ Y += B.width, B.width = z, Y -= B.width;
1879
+ } else if (Y == 0 && B.width >= c[0] * 2 + a) {
1880
+ const z = B.width - (c[0] + a - Y);
1881
+ Y += B.width, B.width = z, Y -= B.width;
1882
+ }
1883
+ return B;
1884
+ }
1885
+ }).filter(Boolean), le = ne.reverse(), ue = [...ne].sort(
1886
+ (B, Z) => Math.abs(B.index) - Math.abs(Z.index)
1887
+ );
1888
+ le.forEach((B, Z) => {
1889
+ const z = le[Z + 1];
1890
+ if (!z) return;
1891
+ const ye = 1 - (Math.abs(B.relativeIndex) - Math.abs(z == null ? void 0 : z.relativeIndex)), ge = fe(
1892
+ ye,
1893
+ [0, 2],
1894
+ [B.width + Y, z.width]
1873
1895
  );
1874
- W.width = K;
1896
+ Y += B.width, B.width = ge, Y -= B.width;
1875
1897
  });
1876
- let ee = 0;
1877
- return ce.forEach((W, K) => {
1878
- if (W)
1879
- if (K == 0) {
1880
- const Z = fe(
1881
- W == null ? void 0 : W.relativeIndex,
1882
- [-2, W.index == 0 ? 0 : -1],
1883
- [0, 1]
1884
- );
1885
- W.index >= 1 && (V.sort((z, Le) => z.index - Le.index), V[W.index - 1].width = c[0], ne.unshift(V[W.index - 1]), T -= c[0] + s, ee = fe(
1886
- 1 - Z,
1887
- [0, 1],
1888
- [0, -(c[0] + s)]
1889
- )), T -= ee, W.width = fe(
1890
- Z,
1891
- [0, 1],
1892
- [c[0], c[1]]
1893
- ), T -= W.width;
1894
- } else {
1895
- let Z = W.index, z = Z == V.length - 1;
1896
- const Le = Z == V.length - 2;
1897
- for (; T > 0; ) {
1898
- const he = V.filter(
1899
- (ge) => ge.index === Z
1900
- )[0];
1901
- if (!he) {
1902
- if (z)
1903
- throw new Error("dynamicItem not found");
1904
- z = !0;
1905
- break;
1906
- }
1907
- if (ne.includes(he) || ne.push(he), he.width = fe(
1908
- T,
1909
- [c[0], c[1] + (s + c[0]) * 2],
1910
- [c[0], c[1]]
1911
- ), T -= he.width + s, (Le || z) && he.index == V.length - 1) {
1912
- let ge = 1;
1913
- for (; T > 0; ) {
1914
- const Ne = ne[ge], De = fe(
1915
- Ne.width + T,
1916
- [c[0], c[1]],
1917
- [c[0], c[1]]
1918
- ) - Ne.width;
1919
- Ne.width += De, T -= De, ge--;
1920
- }
1921
- break;
1922
- } else
1923
- Z++;
1924
- }
1925
- }
1926
- }), x(ee), Object.fromEntries(
1927
- ne.map((W) => [W.index, W.width])
1898
+ const ae = ne.length / 2, re = fe(
1899
+ Math.abs(ue[0].relativeIndex),
1900
+ [ue[0].index == 0 ? 0 : ae - 1, ae],
1901
+ [0, 1]
1902
+ ), xe = fe(re, [0, 1], [0, 1]) * -(c[0] + a);
1903
+ return w(xe), Object.fromEntries(
1904
+ ne.map((B) => [B.index, B.width])
1928
1905
  );
1929
- }, k = B([]).current, [U, J] = D(0);
1906
+ }, M = A([]).current, [X, J] = R(0);
1930
1907
  $(() => {
1931
- d && d(U);
1932
- }, [U]), $(() => {
1933
- typeof h == "number" && g.length > 0 && h !== U && oe(h);
1908
+ d && d(X);
1909
+ }, [X]), $(() => {
1910
+ typeof h == "number" && g.length > 0 && h !== X && te(h);
1934
1911
  }, [h, g.length]), $(() => {
1935
- _(U);
1936
- }, [U]), k.length !== g.length && g.forEach((w, A) => {
1937
- k[A] || (k[A] = te.createRef());
1912
+ _(X);
1913
+ }, [X]), M.length !== g.length && g.forEach((b, D) => {
1914
+ M[D] || (M[D] = T.createRef());
1938
1915
  });
1939
- const [re, _] = D(0), oe = (w, A = {}) => {
1916
+ const [ee, _] = R(0), te = (b, D = {}) => {
1940
1917
  if (!g.length) return 0;
1941
- const H = k[w];
1942
- if (!H || !H.current || !R.current) return 0;
1943
- const V = fe(
1944
- w / Math.max(1, g.length - 1),
1918
+ const H = M[b];
1919
+ if (!H || !H.current || !W.current) return 0;
1920
+ const j = fe(
1921
+ b / Math.max(1, g.length - 1),
1945
1922
  [0, 1],
1946
1923
  [0, 1]
1947
1924
  );
1948
- return _(w), R.current.dispatchEvent(
1925
+ return _(b), W.current.dispatchEvent(
1949
1926
  new CustomEvent("udx:customScroll:set", {
1950
1927
  bubbles: !0,
1951
1928
  detail: {
1952
- progress: V,
1929
+ progress: j,
1953
1930
  orientation: "horizontal",
1954
- animate: A.animate !== !1
1931
+ animate: D.animate !== !1
1955
1932
  }
1956
1933
  })
1957
- ), V;
1958
- }, S = g.map((w, A) => {
1959
- var se;
1960
- const H = (se = w.props) == null ? void 0 : se.onClick, V = (ne) => {
1961
- H == null || H(ne);
1962
- }, le = () => _(A);
1963
- return te.cloneElement(
1964
- w,
1934
+ ), j;
1935
+ }, S = g.map((b, D) => {
1936
+ var ne;
1937
+ const H = (ne = b.props) == null ? void 0 : ne.onClick, j = (le) => {
1938
+ H == null || H(le);
1939
+ }, Y = () => _(D);
1940
+ return T.cloneElement(
1941
+ b,
1965
1942
  {
1966
- width: N[A],
1943
+ width: L[D],
1967
1944
  outputRange: c,
1968
- ref: k[A],
1969
- key: A,
1970
- index: A,
1945
+ ref: M[D],
1946
+ key: D,
1947
+ index: D,
1971
1948
  role: "option",
1972
- "aria-selected": U === A,
1973
- tabIndex: U === A ? 0 : -1,
1974
- onClick: V,
1975
- onFocus: le
1949
+ "aria-selected": X === D,
1950
+ tabIndex: X === D ? 0 : -1,
1951
+ onClick: j,
1952
+ onFocus: Y
1976
1953
  }
1977
1954
  );
1978
- }), E = (w) => {
1979
- var A;
1980
- if (w.scrollTotal > 0) {
1981
- (A = C.current) == null || A.stop();
1982
- const H = F.current ?? 0, V = w.scrollProgress ?? 0;
1983
- C.current = Qe(H, V, {
1955
+ }), E = (b) => {
1956
+ var D;
1957
+ if (b.scrollTotal > 0) {
1958
+ (D = C.current) == null || D.stop();
1959
+ const H = V.current ?? 0, j = b.scrollProgress ?? 0;
1960
+ C.current = Ge(H, j, {
1984
1961
  // Spring tuning to add a bit of inertia and smoothness
1985
1962
  type: "spring",
1986
1963
  stiffness: 260,
1987
1964
  damping: 32,
1988
1965
  mass: 0.6,
1989
1966
  restDelta: 5e-4,
1990
- onUpdate: (le) => {
1991
- F.current = le, O({ ...w, scrollProgress: le });
1967
+ onUpdate: (Y) => {
1968
+ V.current = Y, F({ ...b, scrollProgress: Y });
1992
1969
  }
1993
1970
  });
1994
1971
  }
1995
1972
  };
1996
1973
  $(() => {
1997
- const w = v();
1998
- P(w);
1999
- }, [L]);
2000
- const X = B(o);
1974
+ const b = x();
1975
+ P(b);
1976
+ }, [N]);
1977
+ const O = A(o);
2001
1978
  $(() => {
2002
- X.current = o;
1979
+ O.current = o;
2003
1980
  }, [o]);
2004
- const q = B(null);
1981
+ const K = A(null);
2005
1982
  $(() => {
2006
- var K;
2007
- const w = X.current;
2008
- if (!w || !(m != null && m.current)) return;
2009
- const A = g.length;
2010
- if (A <= 0) return;
2011
- const H = ((K = m.current) == null ? void 0 : K.clientWidth) ?? 0, V = c[1], le = F.current ?? (L == null ? void 0 : L.scrollProgress) ?? 0, se = (H + s) / (V + s), ne = Math.max(1, Math.floor(se)), T = Math.max(1, Math.round(ne * (2 / 3))), ce = Math.min(
2012
- Math.max(0, U),
2013
- Math.max(0, A - 1)
2014
- ), ee = ce > 0, xe = ce < A - 1, me = {
2015
- total: A,
2016
- selectedIndex: ce,
2017
- visibleApprox: se,
2018
- visibleFull: ne,
2019
- stepHalf: T,
2020
- canPrev: ee,
1983
+ var Z;
1984
+ const b = O.current;
1985
+ if (!b || !(m != null && m.current)) return;
1986
+ const D = g.length;
1987
+ if (D <= 0) return;
1988
+ const H = ((Z = m.current) == null ? void 0 : Z.clientWidth) ?? 0, j = c[1], Y = V.current ?? (N == null ? void 0 : N.scrollProgress) ?? 0, ne = (H + a) / (j + a), le = Math.max(1, Math.floor(ne)), ue = Math.max(1, Math.round(le * (2 / 3))), ae = Math.min(
1989
+ Math.max(0, X),
1990
+ Math.max(0, D - 1)
1991
+ ), re = ae > 0, xe = ae < D - 1, de = {
1992
+ total: D,
1993
+ selectedIndex: ae,
1994
+ visibleApprox: ne,
1995
+ visibleFull: le,
1996
+ stepHalf: ue,
1997
+ canPrev: re,
2021
1998
  canNext: xe,
2022
- scrollProgress: le,
1999
+ scrollProgress: Y,
2023
2000
  viewportWidth: H,
2024
- itemMaxWidth: V,
2025
- gap: s
2026
- }, ve = q.current;
2027
- let W = !ve;
2028
- if (!W) {
2029
- for (const Z in me)
2030
- if (me[Z] !== ve[Z]) {
2031
- W = !0;
2001
+ itemMaxWidth: j,
2002
+ gap: a
2003
+ }, pe = K.current;
2004
+ let B = !pe;
2005
+ if (!B) {
2006
+ for (const z in de)
2007
+ if (de[z] !== pe[z]) {
2008
+ B = !0;
2032
2009
  break;
2033
2010
  }
2034
2011
  }
2035
- W && (q.current = me, w(me));
2036
- }, [m, g.length, U, L, s, c]), $(() => () => {
2037
- var w;
2038
- (w = C.current) == null || w.stop();
2012
+ B && (K.current = de, b(de));
2013
+ }, [m, g.length, X, N, a, c]), $(() => () => {
2014
+ var b;
2015
+ (b = C.current) == null || b.stop();
2039
2016
  }, []);
2040
- const [ae, de] = D(0);
2041
- Xe(() => {
2042
- let w = c[1];
2043
- L && w > L.scrollVisible && (w = L.scrollVisible);
2044
- const A = (w + s) * S.length / y;
2045
- de(A);
2046
- }, [m, k, L]);
2047
- const I = (w) => {
2017
+ const [oe, ie] = R(0);
2018
+ He(() => {
2019
+ let b = c[1];
2020
+ N && b > N.scrollVisible && (b = N.scrollVisible);
2021
+ const D = (b + a) * S.length / v;
2022
+ ie(D);
2023
+ }, [m, M, N]);
2024
+ const k = (b) => {
2048
2025
  if (!g.length) return;
2049
- const A = re ?? U;
2050
- switch (w.key) {
2026
+ const D = ee ?? X;
2027
+ switch (b.key) {
2051
2028
  case "ArrowLeft":
2052
- w.preventDefault(), oe(Math.max(0, A - 1));
2029
+ b.preventDefault(), te(Math.max(0, D - 1));
2053
2030
  break;
2054
2031
  case "ArrowRight":
2055
- w.preventDefault(), oe(Math.min(g.length - 1, A + 1));
2032
+ b.preventDefault(), te(Math.min(g.length - 1, D + 1));
2056
2033
  break;
2057
2034
  case "Home":
2058
- w.preventDefault(), oe(0);
2035
+ b.preventDefault(), te(0);
2059
2036
  break;
2060
2037
  case "End":
2061
- w.preventDefault(), oe(g.length - 1);
2038
+ b.preventDefault(), te(g.length - 1);
2062
2039
  break;
2063
2040
  case "Enter":
2064
2041
  case " ":
2065
- w.preventDefault(), oe(A);
2042
+ b.preventDefault(), te(D);
2066
2043
  break;
2067
2044
  }
2068
2045
  };
2069
2046
  return $(() => {
2070
- const w = m.current;
2071
- if (!w) return;
2072
- const A = (H) => {
2073
- const V = H.detail;
2074
- V && typeof V.index == "number" && oe(V.index);
2047
+ const b = m.current;
2048
+ if (!b) return;
2049
+ const D = (H) => {
2050
+ const j = H.detail;
2051
+ j && typeof j.index == "number" && te(j.index);
2075
2052
  };
2076
- return w.addEventListener("udx:carousel:centerIndex", A), () => {
2077
- w.removeEventListener(
2053
+ return b.addEventListener("udx:carousel:centerIndex", D), () => {
2054
+ b.removeEventListener(
2078
2055
  "udx:carousel:centerIndex",
2079
- A
2056
+ D
2080
2057
  );
2081
2058
  };
2082
2059
  }, [m, g.length]), /* @__PURE__ */ f(
2083
2060
  "div",
2084
2061
  {
2085
- className: M.carousel,
2062
+ className: I.carousel,
2086
2063
  ref: m,
2087
2064
  role: "listbox",
2088
2065
  "aria-orientation": "horizontal",
2089
- onKeyDown: I,
2090
- ...a,
2066
+ onKeyDown: k,
2067
+ ...i,
2091
2068
  children: /* @__PURE__ */ f(
2092
- kt,
2069
+ Nt,
2093
2070
  {
2094
2071
  draggable: !0,
2095
2072
  orientation: "horizontal",
2096
2073
  onScroll: E,
2097
- scrollSize: ae,
2074
+ scrollSize: oe,
2098
2075
  children: /* @__PURE__ */ f(
2099
2076
  "div",
2100
2077
  {
2101
- className: M.track,
2102
- ref: R,
2078
+ className: I.track,
2079
+ ref: W,
2103
2080
  style: {
2104
- gap: `${s}px`,
2105
- translate: b,
2081
+ gap: `${a}px`,
2082
+ translate: y,
2106
2083
  willChange: "translate"
2107
2084
  },
2108
2085
  children: S
@@ -2112,128 +2089,128 @@ const sn = je, cn = je, Bt = ({
2112
2089
  )
2113
2090
  }
2114
2091
  );
2115
- }, Ht = ({
2092
+ }, At = ({
2116
2093
  orientation: e = "horizontal",
2117
2094
  className: t,
2118
2095
  ...n
2119
2096
  }) => {
2120
- const l = dt({ orientation: e, className: t });
2097
+ const l = ct({ orientation: e, className: t });
2121
2098
  return /* @__PURE__ */ f("hr", { className: l.divider, ...n });
2122
2099
  }, Q = [];
2123
2100
  for (let e = 0; e < 256; ++e)
2124
2101
  Q.push((e + 256).toString(16).slice(1));
2125
- function Vt(e, t = 0) {
2102
+ function Bt(e, t = 0) {
2126
2103
  return (Q[e[t + 0]] + Q[e[t + 1]] + Q[e[t + 2]] + Q[e[t + 3]] + "-" + Q[e[t + 4]] + Q[e[t + 5]] + "-" + Q[e[t + 6]] + Q[e[t + 7]] + "-" + Q[e[t + 8]] + Q[e[t + 9]] + "-" + Q[e[t + 10]] + Q[e[t + 11]] + Q[e[t + 12]] + Q[e[t + 13]] + Q[e[t + 14]] + Q[e[t + 15]]).toLowerCase();
2127
2104
  }
2128
- let ke;
2129
- const Ft = new Uint8Array(16);
2130
- function Xt() {
2131
- if (!ke) {
2105
+ let Ne;
2106
+ const Pt = new Uint8Array(16);
2107
+ function Ht() {
2108
+ if (!Ne) {
2132
2109
  if (typeof crypto > "u" || !crypto.getRandomValues)
2133
2110
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2134
- ke = crypto.getRandomValues.bind(crypto);
2111
+ Ne = crypto.getRandomValues.bind(crypto);
2135
2112
  }
2136
- return ke(Ft);
2113
+ return Ne(Pt);
2137
2114
  }
2138
- const Ot = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), He = { randomUUID: Ot };
2139
- function Se(e, t, n) {
2115
+ const Vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ae = { randomUUID: Vt };
2116
+ function ke(e, t, n) {
2140
2117
  var r;
2141
- if (He.randomUUID && !e)
2142
- return He.randomUUID();
2118
+ if (Ae.randomUUID && !e)
2119
+ return Ae.randomUUID();
2143
2120
  e = e || {};
2144
- const l = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Xt();
2121
+ const l = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Ht();
2145
2122
  if (l.length < 16)
2146
2123
  throw new Error("Random bytes length must be >= 16");
2147
- return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Vt(l);
2124
+ return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Bt(l);
2148
2125
  }
2149
- const qe = ({
2126
+ const Ye = ({
2150
2127
  variant: e = "plain",
2151
2128
  buttons: t,
2152
2129
  className: n,
2153
2130
  children: l,
2154
2131
  title: r,
2155
- text: i,
2132
+ text: s,
2156
2133
  position: c,
2157
- targetRef: s,
2134
+ targetRef: a,
2158
2135
  ref: d,
2159
2136
  trigger: o = ["hover", "focus"],
2160
2137
  ...h
2161
2138
  }) => {
2162
- if (!l && !s)
2139
+ if (!l && !a)
2163
2140
  throw new Error("ToolTip must have a child or a targetRef");
2164
2141
  Array.isArray(o) || (o = [o]), t && !Array.isArray(t) && (t = [t]);
2165
- const y = B(null), a = s || y, [u, m] = D(null), [b] = D(Se()), [x, M] = D(!1), g = B(null);
2142
+ const v = A(null), i = a || v, [u, m] = R(null), [y] = R(ke()), [w, I] = R(!1), g = A(null);
2166
2143
  $(() => {
2167
- const v = (k) => {
2168
- m(k.detail);
2144
+ const x = (M) => {
2145
+ m(M.detail);
2169
2146
  };
2170
- return document.addEventListener("tooltip-update", v), () => {
2147
+ return document.addEventListener("tooltip-update", x), () => {
2171
2148
  document.removeEventListener(
2172
2149
  "tooltip-update",
2173
- v
2150
+ x
2174
2151
  );
2175
2152
  };
2176
2153
  }, []), $(() => {
2177
- g.current && clearTimeout(g.current), u ? M(u === b) : g.current = setTimeout(() => {
2178
- M(!1);
2154
+ g.current && clearTimeout(g.current), u ? I(u === y) : g.current = setTimeout(() => {
2155
+ I(!1);
2179
2156
  }, 1200);
2180
- }, [u, b]);
2181
- const R = () => {
2157
+ }, [u, y]);
2158
+ const W = () => {
2182
2159
  if (o.includes("hover")) {
2183
- const v = new CustomEvent("tooltip-update", { detail: b });
2184
- document.dispatchEvent(v);
2160
+ const x = new CustomEvent("tooltip-update", { detail: y });
2161
+ document.dispatchEvent(x);
2185
2162
  }
2186
- }, N = () => {
2163
+ }, L = () => {
2187
2164
  if (o.includes("hover")) {
2188
- const v = new CustomEvent("tooltip-update", { detail: null });
2189
- document.dispatchEvent(v);
2165
+ const x = new CustomEvent("tooltip-update", { detail: null });
2166
+ document.dispatchEvent(x);
2190
2167
  }
2191
2168
  }, P = () => {
2192
2169
  if (o.includes("click")) {
2193
- const v = new CustomEvent("tooltip-update", {
2194
- detail: x ? null : b
2170
+ const x = new CustomEvent("tooltip-update", {
2171
+ detail: w ? null : y
2195
2172
  });
2196
- document.dispatchEvent(v);
2173
+ document.dispatchEvent(x);
2197
2174
  }
2198
- }, L = () => {
2175
+ }, N = () => {
2199
2176
  if (o.includes("focus")) {
2200
- const v = new CustomEvent("tooltip-update", { detail: b });
2201
- document.dispatchEvent(v);
2177
+ const x = new CustomEvent("tooltip-update", { detail: y });
2178
+ document.dispatchEvent(x);
2202
2179
  }
2203
- }, O = () => {
2180
+ }, F = () => {
2204
2181
  if (o.includes("focus")) {
2205
- const v = new CustomEvent("tooltip-update", { detail: null });
2206
- document.dispatchEvent(v);
2182
+ const x = new CustomEvent("tooltip-update", { detail: null });
2183
+ document.dispatchEvent(x);
2207
2184
  }
2208
2185
  };
2209
2186
  $(() => {
2210
- if (a != null && a.current) {
2211
- const v = a.current;
2212
- return v.addEventListener("mouseenter", R), v.addEventListener("mouseleave", N), v.addEventListener("click", P), v.addEventListener("focus", L), v.addEventListener("blur", O), () => {
2213
- v.removeEventListener("mouseenter", R), v.removeEventListener("mouseleave", N), v.removeEventListener("click", P), v.removeEventListener("focus", L), v.removeEventListener("blur", O);
2187
+ if (i != null && i.current) {
2188
+ const x = i.current;
2189
+ return x.addEventListener("mouseenter", W), x.addEventListener("mouseleave", L), x.addEventListener("click", P), x.addEventListener("focus", N), x.addEventListener("blur", F), () => {
2190
+ x.removeEventListener("mouseenter", W), x.removeEventListener("mouseleave", L), x.removeEventListener("click", P), x.removeEventListener("focus", N), x.removeEventListener("blur", F);
2214
2191
  };
2215
2192
  }
2216
- }, [a, o, b, x]);
2217
- const F = !s && pe(l) ? be(l, { ref: y }) : l;
2218
- if (!c && typeof window < "u" && a != null && a.current && !c) {
2219
- const v = a.current.getBoundingClientRect(), k = window.innerWidth, U = window.innerHeight, J = v.left / k, re = v.top / U;
2220
- e === "plain" ? J < 1 / 3 ? c = "right" : J > 2 / 3 ? c = "left" : c = re > 0.5 ? "top" : "bottom" : J < 1 / 2 && re < 1 / 2 ? c = "bottom-right" : J > 1 / 2 && re < 1 / 2 ? c = "bottom-left" : J > 1 / 2 && re > 1 / 2 ? c = "top-left" : J < 1 / 2 && re > 1 / 2 && (c = "top-right");
2193
+ }, [i, o, y, w]);
2194
+ const V = !a && me(l) ? ve(l, { ref: v }) : l;
2195
+ if (!c && typeof window < "u" && i != null && i.current && !c) {
2196
+ const x = i.current.getBoundingClientRect(), M = window.innerWidth, X = window.innerHeight, J = x.left / M, ee = x.top / X;
2197
+ e === "plain" ? J < 1 / 3 ? c = "right" : J > 2 / 3 ? c = "left" : c = ee > 0.5 ? "top" : "bottom" : J < 1 / 2 && ee < 1 / 2 ? c = "bottom-right" : J > 1 / 2 && ee < 1 / 2 ? c = "bottom-left" : J > 1 / 2 && ee > 1 / 2 ? c = "top-left" : J < 1 / 2 && ee > 1 / 2 && (c = "top-right");
2221
2198
  }
2222
- const C = Lt({
2199
+ const C = xt({
2223
2200
  variant: e,
2224
2201
  buttons: t,
2225
2202
  className: n,
2226
2203
  title: r,
2227
- text: i,
2204
+ text: s,
2228
2205
  position: c,
2229
2206
  trigger: o,
2230
- targetRef: s,
2207
+ targetRef: a,
2231
2208
  children: l
2232
2209
  });
2233
- return /* @__PURE__ */ Y(ye, { children: [
2234
- F,
2235
- /* @__PURE__ */ f(ue, { children: x && /* @__PURE__ */ f(St, { targetRef: a, children: /* @__PURE__ */ f(
2236
- j.div,
2210
+ return /* @__PURE__ */ U(he, { children: [
2211
+ V,
2212
+ /* @__PURE__ */ f(ce, { children: w && /* @__PURE__ */ f(kt, { targetRef: i, children: /* @__PURE__ */ f(
2213
+ q.div,
2237
2214
  {
2238
2215
  initial: { opacity: u ? 1 : 0 },
2239
2216
  animate: { opacity: 1 },
@@ -2241,10 +2218,10 @@ const qe = ({
2241
2218
  exit: { opacity: u ? 1 : 0 },
2242
2219
  className: C.toolTip,
2243
2220
  ...h,
2244
- onMouseEnter: R,
2245
- onMouseLeave: N,
2246
- children: /* @__PURE__ */ Y(
2247
- j.div,
2221
+ onMouseEnter: W,
2222
+ onMouseLeave: L,
2223
+ children: /* @__PURE__ */ U(
2224
+ q.div,
2248
2225
  {
2249
2226
  className: C.container,
2250
2227
  layoutId: "tool-tip",
@@ -2255,15 +2232,15 @@ const qe = ({
2255
2232
  },
2256
2233
  children: [
2257
2234
  r && /* @__PURE__ */ f("div", { className: C.subHead, children: r }),
2258
- /* @__PURE__ */ f("div", { className: C.supportingText, children: i }),
2259
- t && /* @__PURE__ */ f("div", { className: C.actions, children: Array.isArray(t) && t.map((v, k) => /* @__PURE__ */ f(
2260
- Bt,
2235
+ /* @__PURE__ */ f("div", { className: C.supportingText, children: s }),
2236
+ t && /* @__PURE__ */ f("div", { className: C.actions, children: Array.isArray(t) && t.map((x, M) => /* @__PURE__ */ f(
2237
+ Wt,
2261
2238
  {
2262
2239
  size: "small",
2263
2240
  variant: "text",
2264
- ...v
2241
+ ...x
2265
2242
  },
2266
- k
2243
+ M
2267
2244
  )) })
2268
2245
  ]
2269
2246
  }
@@ -2271,28 +2248,28 @@ const qe = ({
2271
2248
  }
2272
2249
  ) }) })
2273
2250
  ] });
2274
- }, Ve = ({
2251
+ }, Be = ({
2275
2252
  className: e,
2276
2253
  label: t,
2277
2254
  variant: n = "primary",
2278
2255
  size: l = "medium",
2279
2256
  href: r,
2280
- type: i,
2257
+ type: s,
2281
2258
  icon: c,
2282
- isExtended: s = !1,
2259
+ isExtended: a = !1,
2283
2260
  ref: d,
2284
2261
  transition: o,
2285
2262
  children: h,
2286
- ...y
2263
+ ...v
2287
2264
  }) => {
2288
2265
  if (h && (t = h), !t)
2289
2266
  throw new Error(
2290
2267
  "FAB component requires either a label prop or children content"
2291
2268
  );
2292
- const a = r ? "a" : "button", u = ft({
2269
+ const i = r ? "a" : "button", u = it({
2293
2270
  href: r,
2294
2271
  icon: c,
2295
- isExtended: s,
2272
+ isExtended: a,
2296
2273
  label: t,
2297
2274
  size: l,
2298
2275
  variant: n,
@@ -2301,7 +2278,7 @@ const qe = ({
2301
2278
  children: t
2302
2279
  });
2303
2280
  o = { duration: 0.3, ...o };
2304
- const m = B(null), b = d || m, x = {
2281
+ const m = A(null), y = d || m, w = {
2305
2282
  visible: {
2306
2283
  width: "auto",
2307
2284
  marginLeft: 12,
@@ -2327,21 +2304,21 @@ const qe = ({
2327
2304
  }
2328
2305
  }
2329
2306
  };
2330
- return /* @__PURE__ */ Y(
2331
- a,
2307
+ return /* @__PURE__ */ U(
2308
+ i,
2332
2309
  {
2333
- ...y,
2334
- ref: b,
2310
+ ...v,
2311
+ ref: y,
2335
2312
  href: r,
2336
- "aria-label": s ? void 0 : t,
2313
+ "aria-label": a ? void 0 : t,
2337
2314
  className: u.fab,
2338
2315
  children: [
2339
2316
  /* @__PURE__ */ f(
2340
- qe,
2317
+ Ye,
2341
2318
  {
2342
- trigger: s ? null : void 0,
2319
+ trigger: a ? null : void 0,
2343
2320
  text: t,
2344
- targetRef: b
2321
+ targetRef: y
2345
2322
  }
2346
2323
  ),
2347
2324
  /* @__PURE__ */ f("span", { className: u.stateLayer, children: /* @__PURE__ */ f(
@@ -2353,14 +2330,14 @@ const qe = ({
2353
2330
  "on-secondary-container": n == "secondary",
2354
2331
  "on-tertiary-container": n == "tertiary"
2355
2332
  }),
2356
- triggerRef: b
2333
+ triggerRef: y
2357
2334
  }
2358
2335
  ) }),
2359
- /* @__PURE__ */ f(ie, { icon: c, className: u.icon }),
2360
- /* @__PURE__ */ f(ue, { children: s && /* @__PURE__ */ f(
2361
- j.span,
2336
+ /* @__PURE__ */ f(se, { icon: c, className: u.icon }),
2337
+ /* @__PURE__ */ f(ce, { children: a && /* @__PURE__ */ f(
2338
+ q.span,
2362
2339
  {
2363
- variants: x,
2340
+ variants: w,
2364
2341
  initial: "hidden",
2365
2342
  animate: "visible",
2366
2343
  exit: "hidden",
@@ -2371,127 +2348,127 @@ const qe = ({
2371
2348
  ]
2372
2349
  }
2373
2350
  );
2374
- }, $e = ({
2351
+ }, Ie = ({
2375
2352
  variant: e = "standard",
2376
2353
  href: t,
2377
2354
  disabled: n = !1,
2378
2355
  type: l = "button",
2379
2356
  title: r,
2380
- label: i,
2357
+ label: s,
2381
2358
  onToggle: c,
2382
- activated: s = !1,
2359
+ activated: a = !1,
2383
2360
  onClick: d,
2384
2361
  icon: o,
2385
2362
  size: h = "medium",
2386
- iconSelected: y,
2387
- className: a,
2363
+ iconSelected: v,
2364
+ className: i,
2388
2365
  ref: u,
2389
2366
  width: m = "default",
2390
- shape: b = "rounded",
2391
- allowShapeTransformation: x = !0,
2392
- transition: M,
2367
+ shape: y = "rounded",
2368
+ allowShapeTransformation: w = !0,
2369
+ transition: I,
2393
2370
  children: g,
2394
- ...R
2371
+ ...W
2395
2372
  }) => {
2396
- if (g && (i = g), !i)
2373
+ if (g && (s = g), !s)
2397
2374
  throw new Error(
2398
2375
  "IconButton component requires either a label prop or children content to provide an accessible aria-label"
2399
2376
  );
2400
- r || (r = i);
2401
- const [N, P] = te.useState(s);
2402
- let L;
2403
- c ? c && (L = (k) => {
2404
- n && k.preventDefault(), P(!N), c(!!N);
2405
- }, o = N && y || o) : L = (k) => {
2406
- n && k.preventDefault(), d && d(k);
2377
+ r || (r = s);
2378
+ const [L, P] = T.useState(a);
2379
+ let N;
2380
+ c ? c && (N = (M) => {
2381
+ n && M.preventDefault(), P(!L), c(!!L);
2382
+ }, o = L && v || o) : N = (M) => {
2383
+ n && M.preventDefault(), d && d(M);
2407
2384
  }, $(() => {
2408
- P(s);
2409
- }, [s]);
2410
- const O = t ? "a" : "button", F = mt({
2411
- transition: M,
2412
- shape: b,
2413
- allowShapeTransformation: x,
2385
+ P(a);
2386
+ }, [a]);
2387
+ const F = t ? "a" : "button", V = ut({
2388
+ transition: I,
2389
+ shape: y,
2390
+ allowShapeTransformation: w,
2414
2391
  width: m,
2415
2392
  href: t,
2416
- activated: N,
2417
- label: i,
2418
- iconSelected: y,
2419
- isActive: N,
2393
+ activated: L,
2394
+ label: s,
2395
+ iconSelected: v,
2396
+ isActive: L,
2420
2397
  onToggle: c,
2421
2398
  disabled: n,
2422
2399
  icon: o,
2423
2400
  variant: e,
2424
- className: a,
2401
+ className: i,
2425
2402
  size: h,
2426
- children: i,
2427
- ...R
2428
- }), C = B(null), v = u || C;
2429
- return M = { duration: 0.3, ...M }, /* @__PURE__ */ Y(
2430
- O,
2403
+ children: s,
2404
+ ...W
2405
+ }), C = A(null), x = u || C;
2406
+ return I = { duration: 0.3, ...I }, /* @__PURE__ */ U(
2407
+ F,
2431
2408
  {
2432
2409
  disabled: n,
2433
2410
  href: t,
2434
- style: { transition: M.duration + "s" },
2435
- className: F.iconButton,
2436
- "aria-label": i,
2437
- ...R,
2411
+ style: { transition: I.duration + "s" },
2412
+ className: V.iconButton,
2413
+ "aria-label": s,
2414
+ ...W,
2438
2415
  title: void 0,
2439
- onClick: L,
2440
- ref: v,
2416
+ onClick: N,
2417
+ ref: x,
2441
2418
  children: [
2442
2419
  /* @__PURE__ */ f(
2443
- qe,
2420
+ Ye,
2444
2421
  {
2445
- targetRef: v,
2422
+ targetRef: x,
2446
2423
  trigger: n ? null : void 0,
2447
2424
  text: r
2448
2425
  }
2449
2426
  ),
2450
- /* @__PURE__ */ f("div", { className: F.touchTarget }),
2427
+ /* @__PURE__ */ f("div", { className: V.touchTarget }),
2451
2428
  /* @__PURE__ */ f(
2452
2429
  "div",
2453
2430
  {
2454
- className: F.stateLayer,
2455
- style: { transition: M.duration + "s" },
2431
+ className: V.stateLayer,
2432
+ style: { transition: I.duration + "s" },
2456
2433
  children: !n && /* @__PURE__ */ f(
2457
2434
  we,
2458
2435
  {
2459
2436
  colorName: p(
2460
2437
  e === "standard" && {
2461
- "on-surface-variant": !N,
2462
- primary: N
2438
+ "on-surface-variant": !L,
2439
+ primary: L
2463
2440
  },
2464
2441
  e === "filled" && {
2465
- primary: !N && !!c,
2466
- "inverse-on-surface": N || !c
2442
+ primary: !L && !!c,
2443
+ "inverse-on-surface": L || !c
2467
2444
  },
2468
2445
  e === "tonal" && {
2469
- "on-surface-variant": !N && !!c,
2470
- "on-secondary-container": N || !c
2446
+ "on-surface-variant": !L && !!c,
2447
+ "on-secondary-container": L || !c
2471
2448
  },
2472
2449
  e === "outlined" && {
2473
- "on-surface-variant": !N,
2474
- "on-primary": N
2450
+ "on-surface-variant": !L,
2451
+ "on-primary": L
2475
2452
  }
2476
2453
  ),
2477
- triggerRef: v
2454
+ triggerRef: x
2478
2455
  }
2479
2456
  )
2480
2457
  }
2481
2458
  ),
2482
- o && /* @__PURE__ */ f(ie, { icon: o, className: F.icon })
2459
+ o && /* @__PURE__ */ f(se, { icon: o, className: V.icon })
2483
2460
  ]
2484
2461
  }
2485
2462
  );
2486
- }, fn = ({
2463
+ }, cn = ({
2487
2464
  className: e,
2488
2465
  valueFormatter: t,
2489
2466
  step: n = 10,
2490
2467
  name: l,
2491
2468
  value: r = 0,
2492
- min: i = 0,
2469
+ min: s = 0,
2493
2470
  max: c = 100,
2494
- marks: s = [
2471
+ marks: a = [
2495
2472
  {
2496
2473
  value: 0,
2497
2474
  label: "0"
@@ -2505,36 +2482,36 @@ const qe = ({
2505
2482
  onChange: o,
2506
2483
  ...h
2507
2484
  }) => {
2508
- const y = (S) => {
2509
- const E = u(), X = a();
2510
- return S === 1 / 0 ? 100 : S === -1 / 0 ? 0 : (S - E) / (X - E) * 100;
2511
- }, a = (S = !1) => S ? c : c == 1 / 0 ? s[(s == null ? void 0 : s.length) - 1].value : c, u = (S = !1) => S ? i : i == -1 / 0 ? s[0].value : i, m = (S) => {
2485
+ const v = (S) => {
2486
+ const E = u(), O = i();
2487
+ return S === 1 / 0 ? 100 : S === -1 / 0 ? 0 : (S - E) / (O - E) * 100;
2488
+ }, i = (S = !1) => S ? c : c == 1 / 0 ? a[(a == null ? void 0 : a.length) - 1].value : c, u = (S = !1) => S ? s : s == -1 / 0 ? a[0].value : s, m = (S) => {
2512
2489
  const E = u(!1);
2513
- return (a(!1) - E) * S / 100 + E;
2514
- }, [b, x] = D(!1), M = B(null), g = d || M, [R, N] = D(r), [P, L] = D(y(r)), [O, F] = D(!1), C = (S) => {
2515
- F(!0), x(!0), U(S);
2516
- }, v = () => {
2517
- F(!1), x(!1);
2490
+ return (i(!1) - E) * S / 100 + E;
2491
+ }, [y, w] = R(!1), I = A(null), g = d || I, [W, L] = R(r), [P, N] = R(v(r)), [F, V] = R(!1), C = (S) => {
2492
+ V(!0), w(!0), X(S);
2493
+ }, x = () => {
2494
+ V(!1), w(!1);
2518
2495
  };
2519
- $(() => (O ? (window.addEventListener("mouseup", v), window.addEventListener("mousemove", U), window.addEventListener("touchend", v), window.addEventListener("touchmove", U)) : (window.removeEventListener("mouseup", v), window.removeEventListener("mousemove", U), window.removeEventListener("touchend", v), window.removeEventListener("touchmove", U)), () => {
2520
- window.removeEventListener("mouseup", v), window.removeEventListener("mousemove", U), window.removeEventListener("touchend", v), window.removeEventListener("touchmove", U);
2521
- }), [O]);
2522
- const k = yt({
2496
+ $(() => (F ? (window.addEventListener("mouseup", x), window.addEventListener("mousemove", X), window.addEventListener("touchend", x), window.addEventListener("touchmove", X)) : (window.removeEventListener("mouseup", x), window.removeEventListener("mousemove", X), window.removeEventListener("touchend", x), window.removeEventListener("touchmove", X)), () => {
2497
+ window.removeEventListener("mouseup", x), window.removeEventListener("mousemove", X), window.removeEventListener("touchend", x), window.removeEventListener("touchmove", X);
2498
+ }), [F]);
2499
+ const M = mt({
2523
2500
  className: e,
2524
- isChanging: b,
2525
- marks: s,
2501
+ isChanging: y,
2502
+ marks: a,
2526
2503
  max: c,
2527
- min: i,
2504
+ min: s,
2528
2505
  name: l,
2529
2506
  step: n,
2530
- value: R,
2507
+ value: W,
2531
2508
  valueFormatter: t,
2532
2509
  onChange: o
2533
- }), U = (S) => {
2510
+ }), X = (S) => {
2534
2511
  const E = g == null ? void 0 : g.current;
2535
2512
  if (E) {
2536
- const X = E.getBoundingClientRect().left, ae = ((S.type === "touchmove" || S.type === "touchstart" ? S.touches[0].clientX : S.clientX) - X) / E.offsetWidth * 100;
2537
- J({ percent: ae });
2513
+ const O = E.getBoundingClientRect().left, oe = ((S.type === "touchmove" || S.type === "touchstart" ? S.touches[0].clientX : S.clientX) - O) / E.offsetWidth * 100;
2514
+ J({ percent: oe });
2538
2515
  }
2539
2516
  }, J = ({
2540
2517
  percent: S,
@@ -2542,31 +2519,31 @@ const qe = ({
2542
2519
  }) => {
2543
2520
  if (S) {
2544
2521
  if (S >= 100) {
2545
- N(a(!0)), L(100);
2522
+ L(i(!0)), N(100);
2546
2523
  return;
2547
2524
  }
2548
2525
  if (S <= 0) {
2549
- N(u(!0)), L(0);
2526
+ L(u(!0)), N(0);
2550
2527
  return;
2551
2528
  }
2552
- E = m(S), E == u() && (E = u(!0)), E == a() && (E = a(!0));
2529
+ E = m(S), E == u() && (E = u(!0)), E == i() && (E = i(!0));
2553
2530
  } else if (E != null) {
2554
- if (E >= a()) {
2555
- N(a(!0)), L(100);
2531
+ if (E >= i()) {
2532
+ L(i(!0)), N(100);
2556
2533
  return;
2557
2534
  }
2558
2535
  if (E <= u()) {
2559
- N(u(!0)), L(0);
2536
+ L(u(!0)), N(0);
2560
2537
  return;
2561
2538
  }
2562
- S = y(E);
2539
+ S = v(E);
2563
2540
  } else
2564
2541
  return;
2565
- n != null ? E = Math.round((E - u()) / n) * n + u() : s && (E = s.reduce((X, q, ae) => {
2566
- let de = q.value === 1 / 0 ? a() : q.value === -1 / 0 ? u() : q.value, I = X.value === 1 / 0 ? a() : X.value === -1 / 0 ? u() : X.value;
2567
- return de = Math.abs(de - E), I = Math.abs(I - E), de < I ? q : X;
2568
- }).value), E >= a() && (E = a(!0)), E <= u() && (E = u(!0)), S = y(E), N(E), L(S), o && o(E);
2569
- }, [re, _] = D(0);
2542
+ n != null ? E = Math.round((E - u()) / n) * n + u() : a && (E = a.reduce((O, K, oe) => {
2543
+ let ie = K.value === 1 / 0 ? i() : K.value === -1 / 0 ? u() : K.value, k = O.value === 1 / 0 ? i() : O.value === -1 / 0 ? u() : O.value;
2544
+ return ie = Math.abs(ie - E), k = Math.abs(k - E), ie < k ? K : O;
2545
+ }).value), E >= i() && (E = i(!0)), E <= u() && (E = u(!0)), S = v(E), L(E), N(S), o && o(E);
2546
+ }, [ee, _] = R(0);
2570
2547
  return $(() => {
2571
2548
  const S = () => {
2572
2549
  g.current && _(g.current.offsetWidth);
@@ -2574,7 +2551,7 @@ const qe = ({
2574
2551
  return S(), window.addEventListener("resize", S), () => {
2575
2552
  window.removeEventListener("resize", S);
2576
2553
  };
2577
- }, []), /* @__PURE__ */ Y(
2554
+ }, []), /* @__PURE__ */ U(
2578
2555
  "div",
2579
2556
  {
2580
2557
  tabIndex: 0,
@@ -2582,17 +2559,17 @@ const qe = ({
2582
2559
  switch (S.key) {
2583
2560
  case "ArrowRight":
2584
2561
  if (n)
2585
- J({ value: R + n });
2586
- else if (s) {
2587
- const E = s.find((X) => X.value > R);
2562
+ J({ value: W + n });
2563
+ else if (a) {
2564
+ const E = a.find((O) => O.value > W);
2588
2565
  E && J({ value: E.value });
2589
2566
  }
2590
2567
  break;
2591
2568
  case "ArrowLeft":
2592
2569
  if (n)
2593
- J({ value: R - n });
2594
- else if (s) {
2595
- const E = s.slice(0).reverse().find((X, q, ae) => R === 1 / 0 ? q === 1 : X.value < R);
2570
+ J({ value: W - n });
2571
+ else if (a) {
2572
+ const E = a.slice(0).reverse().find((O, K, oe) => W === 1 / 0 ? K === 1 : O.value < W);
2596
2573
  E && J({ value: E.value });
2597
2574
  }
2598
2575
  break;
@@ -2602,23 +2579,23 @@ const qe = ({
2602
2579
  },
2603
2580
  role: "slider",
2604
2581
  "aria-valuemin": u(!0),
2605
- "aria-valuemax": a(!0),
2606
- "aria-valuenow": R,
2607
- "aria-valuetext": R.toString(),
2608
- className: k.slider,
2582
+ "aria-valuemax": i(!0),
2583
+ "aria-valuenow": W,
2584
+ "aria-valuetext": W.toString(),
2585
+ className: M.slider,
2609
2586
  onMouseDown: C,
2610
- onClick: U,
2587
+ onClick: X,
2611
2588
  ref: g,
2612
2589
  onTouchStart: C,
2613
2590
  onDragStart: (S) => S.preventDefault(),
2614
2591
  ...h,
2615
2592
  children: [
2616
- /* @__PURE__ */ f("input", { type: "hidden", name: l, value: R }),
2617
- /* @__PURE__ */ f("div", { className: k.activeTrack, style: { flex: P / 100 } }),
2618
- /* @__PURE__ */ f("div", { className: k.handle, children: /* @__PURE__ */ f(ue, { children: b && /* @__PURE__ */ f(
2619
- j.div,
2593
+ /* @__PURE__ */ f("input", { type: "hidden", name: l, value: W }),
2594
+ /* @__PURE__ */ f("div", { className: M.activeTrack, style: { flex: P / 100 } }),
2595
+ /* @__PURE__ */ f("div", { className: M.handle, children: /* @__PURE__ */ f(ce, { children: y && /* @__PURE__ */ f(
2596
+ q.div,
2620
2597
  {
2621
- className: k.valueIndicator,
2598
+ className: M.valueIndicator,
2622
2599
  initial: "hidden",
2623
2600
  animate: "visible",
2624
2601
  exit: "hidden",
@@ -2632,13 +2609,13 @@ const qe = ({
2632
2609
  hidden: { opacity: 1, scale: 0 }
2633
2610
  },
2634
2611
  transition: { duration: 0.1 },
2635
- children: t ? t(R) : R
2612
+ children: t ? t(W) : W
2636
2613
  }
2637
2614
  ) }) }),
2638
2615
  /* @__PURE__ */ f(
2639
2616
  "div",
2640
2617
  {
2641
- className: k.inactiveTrack,
2618
+ className: M.inactiveTrack,
2642
2619
  style: { flex: 1 - P / 100 }
2643
2620
  }
2644
2621
  ),
@@ -2646,18 +2623,18 @@ const qe = ({
2646
2623
  "div",
2647
2624
  {
2648
2625
  className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
2649
- children: s && s.map((S, E) => {
2650
- let X = null;
2651
- const q = (b ? 9 : 10) / re * 100, ae = y(S.value);
2652
- return ae <= P - q ? X = !0 : ae >= P + q && (X = !1), /* @__PURE__ */ f(
2626
+ children: a && a.map((S, E) => {
2627
+ let O = null;
2628
+ const K = (y ? 9 : 10) / ee * 100, oe = v(S.value);
2629
+ return oe <= P - K ? O = !0 : oe >= P + K && (O = !1), /* @__PURE__ */ f(
2653
2630
  "div",
2654
2631
  {
2655
- className: p(k.dot, {
2656
- "bg-primary-container": X != null && X,
2657
- "bg-primary": X != null && !X
2632
+ className: p(M.dot, {
2633
+ "bg-primary-container": O != null && O,
2634
+ "bg-primary": O != null && !O
2658
2635
  }),
2659
2636
  style: {
2660
- left: `${y(S.value)}%`
2637
+ left: `${v(S.value)}%`
2661
2638
  }
2662
2639
  },
2663
2640
  E
@@ -2674,51 +2651,51 @@ const qe = ({
2674
2651
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2675
2652
  * Copyright 2025 Fonticons, Inc.
2676
2653
  */
2677
- var Ut = {
2654
+ var Ot = {
2678
2655
  prefix: "fas",
2679
2656
  iconName: "circle-exclamation",
2680
2657
  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"]
2681
- }, Ce = {
2658
+ }, Me = {
2682
2659
  prefix: "fas",
2683
2660
  iconName: "xmark",
2684
2661
  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"]
2685
- }, Yt = {
2662
+ }, Ft = {
2686
2663
  prefix: "fas",
2687
2664
  iconName: "bars",
2688
2665
  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"]
2689
2666
  };
2690
- const mn = ({
2667
+ const un = ({
2691
2668
  variant: e = "standard",
2692
2669
  className: t,
2693
2670
  children: n,
2694
2671
  title: l,
2695
2672
  position: r = "right",
2696
- extended: i,
2673
+ extended: s,
2697
2674
  divider: c,
2698
- onExtendedChange: s,
2699
- closeIcon: d = Ce,
2675
+ onExtendedChange: a,
2676
+ closeIcon: d = Me,
2700
2677
  transition: o,
2701
2678
  ...h
2702
2679
  }) => {
2703
2680
  o = { duration: 0.3, ...o };
2704
- const [y, a] = D(i ?? !0), u = pt({
2681
+ const [v, i] = R(s ?? !0), u = ft({
2705
2682
  transition: o,
2706
2683
  title: l,
2707
2684
  position: r,
2708
2685
  closeIcon: d,
2709
2686
  className: t,
2710
2687
  children: n,
2711
- onExtendedChange: s,
2688
+ onExtendedChange: a,
2712
2689
  divider: c,
2713
- isExtended: y,
2714
- extended: y,
2690
+ isExtended: v,
2691
+ extended: v,
2715
2692
  variant: e
2716
2693
  });
2717
2694
  $(() => {
2718
- s == null || s(y ?? !1);
2719
- }, [y]), $(() => {
2720
- i != null && a(i);
2721
- }, [i]);
2695
+ a == null || a(v ?? !1);
2696
+ }, [v]), $(() => {
2697
+ s != null && i(s);
2698
+ }, [s]);
2722
2699
  const m = {
2723
2700
  close: {
2724
2701
  width: 0
@@ -2726,43 +2703,43 @@ const mn = ({
2726
2703
  open: {
2727
2704
  width: "auto"
2728
2705
  }
2729
- }, b = () => /* @__PURE__ */ Y(ye, { children: [
2730
- /* @__PURE__ */ f(ue, { children: e == "modal" && y && /* @__PURE__ */ f(
2731
- j.div,
2706
+ }, y = () => /* @__PURE__ */ U(he, { children: [
2707
+ /* @__PURE__ */ f(ce, { children: e == "modal" && v && /* @__PURE__ */ f(
2708
+ q.div,
2732
2709
  {
2733
2710
  initial: { opacity: 0 },
2734
2711
  animate: { opacity: 1 },
2735
2712
  exit: { opacity: 0 },
2736
2713
  transition: o,
2737
- onClick: () => a(!1),
2714
+ onClick: () => i(!1),
2738
2715
  className: u.overlay
2739
2716
  }
2740
2717
  ) }),
2741
- /* @__PURE__ */ f(ue, { children: y && /* @__PURE__ */ Y(
2718
+ /* @__PURE__ */ f(ce, { children: v && /* @__PURE__ */ U(
2742
2719
  "div",
2743
2720
  {
2744
2721
  ...h,
2745
2722
  className: u.slideSheet,
2746
2723
  style: { transition: o.duration + "s" },
2747
2724
  children: [
2748
- /* @__PURE__ */ Y(
2749
- j.div,
2725
+ /* @__PURE__ */ U(
2726
+ q.div,
2750
2727
  {
2751
2728
  variants: m,
2752
- initial: i === !1 ? "open" : "close",
2729
+ initial: s === !1 ? "open" : "close",
2753
2730
  animate: "open",
2754
2731
  exit: "close",
2755
2732
  className: u.container,
2756
2733
  children: [
2757
- /* @__PURE__ */ Y("div", { className: u.header, children: [
2734
+ /* @__PURE__ */ U("div", { className: u.header, children: [
2758
2735
  l && /* @__PURE__ */ f("p", { className: u.title, children: l }),
2759
2736
  /* @__PURE__ */ f(
2760
- $e,
2737
+ Ie,
2761
2738
  {
2762
2739
  size: "small",
2763
2740
  label: "close",
2764
2741
  icon: d,
2765
- onClick: () => a(!1),
2742
+ onClick: () => i(!1),
2766
2743
  className: u.closeButton
2767
2744
  }
2768
2745
  )
@@ -2778,21 +2755,21 @@ const mn = ({
2778
2755
  ]
2779
2756
  }
2780
2757
  ),
2781
- (c == null && e == "standard" ? !0 : c) && /* @__PURE__ */ f(Ht, { className: u.divider, orientation: "vertical" })
2758
+ (c == null && e == "standard" ? !0 : c) && /* @__PURE__ */ f(At, { className: u.divider, orientation: "vertical" })
2782
2759
  ]
2783
2760
  }
2784
2761
  ) })
2785
2762
  ] });
2786
- return e == "modal" ? Oe(b(), document.body) : b();
2787
- }, hn = ({
2763
+ return e == "modal" ? Ve(y(), document.body) : y();
2764
+ }, dn = ({
2788
2765
  message: e,
2789
2766
  className: t,
2790
2767
  duration: n,
2791
- closeIcon: l = Ce,
2768
+ closeIcon: l = Me,
2792
2769
  onClose: r,
2793
- ...i
2770
+ ...s
2794
2771
  }) => {
2795
- const [c, s] = D(!0), d = vt({
2772
+ const [c, a] = R(!0), d = ht({
2796
2773
  className: t,
2797
2774
  closeIcon: l,
2798
2775
  duration: n,
@@ -2806,21 +2783,21 @@ const mn = ({
2806
2783
  }, n);
2807
2784
  }, [n]);
2808
2785
  const o = () => {
2809
- s(!1), r == null || r();
2786
+ a(!1), r == null || r();
2810
2787
  };
2811
- return /* @__PURE__ */ f(ue, { children: c && /* @__PURE__ */ f(
2812
- j.div,
2788
+ return /* @__PURE__ */ f(ce, { children: c && /* @__PURE__ */ f(
2789
+ q.div,
2813
2790
  {
2814
2791
  initial: { height: 0 },
2815
2792
  animate: { height: "auto" },
2816
2793
  exit: { height: 0 },
2817
2794
  transition: { duration: 0.1 },
2818
2795
  className: d.snackbar,
2819
- ...i,
2820
- children: /* @__PURE__ */ Y("div", { className: d.container, children: [
2796
+ ...s,
2797
+ children: /* @__PURE__ */ U("div", { className: d.container, children: [
2821
2798
  /* @__PURE__ */ f("p", { className: d.supportingText, children: e }),
2822
2799
  /* @__PURE__ */ f(
2823
- $e,
2800
+ Ie,
2824
2801
  {
2825
2802
  onClick: () => o(),
2826
2803
  className: d.icon,
@@ -2831,48 +2808,48 @@ const mn = ({
2831
2808
  ] })
2832
2809
  }
2833
2810
  ) });
2834
- }, pn = ({
2811
+ }, fn = ({
2835
2812
  selected: e = !1,
2836
2813
  className: t,
2837
2814
  activeIcon: n,
2838
2815
  disabled: l = !1,
2839
2816
  inactiveIcon: r,
2840
- onChange: i,
2817
+ onChange: s,
2841
2818
  onClick: c,
2842
- onKeyDown: s,
2819
+ onKeyDown: a,
2843
2820
  ref: d,
2844
2821
  ...o
2845
2822
  }) => {
2846
- const [h, y] = D(e), a = (g) => {
2823
+ const [h, v] = R(e), i = (g) => {
2847
2824
  l || (m(), c && c(g));
2848
2825
  }, u = (g) => {
2849
- l || ((g.key === " " || g.key === "Enter") && (g.preventDefault(), m()), s && s(g));
2826
+ l || ((g.key === " " || g.key === "Enter") && (g.preventDefault(), m()), a && a(g));
2850
2827
  }, m = () => {
2851
- y(!h), i == null || i(!h);
2852
- }, b = wt({
2828
+ v(!h), s == null || s(!h);
2829
+ }, y = pt({
2853
2830
  className: t,
2854
2831
  isSelected: h,
2855
2832
  activeIcon: n,
2856
2833
  inactiveIcon: r,
2857
2834
  disabled: l,
2858
2835
  selected: h,
2859
- onChange: i
2860
- }), x = B(null), M = d || x;
2861
- return /* @__PURE__ */ Y(
2862
- j.div,
2836
+ onChange: s
2837
+ }), w = A(null), I = d || w;
2838
+ return /* @__PURE__ */ U(
2839
+ q.div,
2863
2840
  {
2864
2841
  role: "switch",
2865
2842
  "aria-checked": h,
2866
2843
  tabIndex: l ? -1 : 0,
2867
2844
  onKeyDown: u,
2868
- onClick: a,
2869
- ref: M,
2870
- className: b.switch,
2845
+ onClick: i,
2846
+ ref: I,
2847
+ className: y.switch,
2871
2848
  ...o,
2872
2849
  children: [
2873
2850
  /* @__PURE__ */ f("input", { type: "hidden", value: h ? "1" : "0" }),
2874
- /* @__PURE__ */ Y(
2875
- j.div,
2851
+ /* @__PURE__ */ U(
2852
+ q.div,
2876
2853
  {
2877
2854
  layout: !0,
2878
2855
  style: { translate: h ? "50%" : "-50%" },
@@ -2881,91 +2858,91 @@ const mn = ({
2881
2858
  stiffness: 700,
2882
2859
  damping: 30
2883
2860
  },
2884
- className: b.handleContainer,
2861
+ className: y.handleContainer,
2885
2862
  children: [
2886
- /* @__PURE__ */ f("div", { className: b.handle, children: (h ? n : r) && /* @__PURE__ */ f(
2887
- ie,
2863
+ /* @__PURE__ */ f("div", { className: y.handle, children: (h ? n : r) && /* @__PURE__ */ f(
2864
+ se,
2888
2865
  {
2889
- className: b.icon,
2866
+ className: y.icon,
2890
2867
  icon: h ? n : r
2891
2868
  }
2892
2869
  ) }),
2893
- /* @__PURE__ */ f("div", { className: b.handleStateLayer })
2870
+ /* @__PURE__ */ f("div", { className: y.handleStateLayer })
2894
2871
  ]
2895
2872
  }
2896
2873
  )
2897
2874
  ]
2898
2875
  }
2899
2876
  );
2900
- }, jt = ({
2877
+ }, Xt = ({
2901
2878
  className: e,
2902
2879
  onClick: t,
2903
2880
  label: n,
2904
2881
  variant: l = "primary",
2905
2882
  href: r,
2906
- icon: i,
2883
+ icon: s,
2907
2884
  selectedTab: c,
2908
- setSelectedTab: s,
2885
+ setSelectedTab: a,
2909
2886
  tabsId: d,
2910
2887
  index: o,
2911
2888
  onTabSelected: h,
2912
- scrollable: y = !1,
2913
- selected: a = !1,
2889
+ scrollable: v = !1,
2890
+ selected: i = !1,
2914
2891
  ref: u,
2915
2892
  ...m
2916
2893
  }) => {
2917
- const b = B(null), x = u || b, [M, g] = D(a);
2894
+ const y = A(null), w = u || y, [I, g] = R(i);
2918
2895
  $(() => {
2919
- a && c == null ? g(!0) : g(c == o && o != null);
2896
+ i && c == null ? g(!0) : g(c == o && o != null);
2920
2897
  }, [c]), $(() => {
2921
2898
  c == o && h && h({
2922
- ref: x,
2899
+ ref: w,
2923
2900
  index: o || 0,
2924
2901
  label: n,
2925
- icon: i
2902
+ icon: s
2926
2903
  });
2927
2904
  }, [c]);
2928
- const R = r ? "a" : "button", N = (L) => {
2929
- s && s(o ?? null), t && t(L);
2930
- }, P = xt({
2905
+ const W = r ? "a" : "button", L = (N) => {
2906
+ a && a(o ?? null), t && t(N);
2907
+ }, P = yt({
2931
2908
  className: e,
2932
2909
  onTabSelected: h,
2933
- scrollable: y,
2910
+ scrollable: v,
2934
2911
  selectedTab: c,
2935
2912
  index: o,
2936
2913
  tabsId: d,
2937
- selected: M,
2914
+ selected: I,
2938
2915
  variant: l,
2939
- icon: i,
2916
+ icon: s,
2940
2917
  label: n,
2941
- isSelected: M,
2942
- setSelectedTab: s,
2918
+ isSelected: I,
2919
+ setSelectedTab: a,
2943
2920
  href: r
2944
2921
  });
2945
- return /* @__PURE__ */ Y(
2946
- R,
2922
+ return /* @__PURE__ */ U(
2923
+ W,
2947
2924
  {
2948
2925
  ...m,
2949
2926
  role: "tab",
2950
- "aria-selected": M,
2951
- ref: x,
2927
+ "aria-selected": I,
2928
+ ref: w,
2952
2929
  href: r,
2953
2930
  className: P.tab,
2954
- onClick: N,
2931
+ onClick: L,
2955
2932
  ...m,
2956
2933
  children: [
2957
2934
  /* @__PURE__ */ f("span", { className: P.stateLayer, children: /* @__PURE__ */ f(
2958
2935
  we,
2959
2936
  {
2960
- colorName: l === "primary" && M ? "primary" : "on-surface",
2961
- triggerRef: x
2937
+ colorName: l === "primary" && I ? "primary" : "on-surface",
2938
+ triggerRef: w
2962
2939
  }
2963
2940
  ) }),
2964
- /* @__PURE__ */ Y("span", { className: P.content, children: [
2965
- i && /* @__PURE__ */ f(ie, { icon: i, className: P.icon }),
2941
+ /* @__PURE__ */ U("span", { className: P.content, children: [
2942
+ s && /* @__PURE__ */ f(se, { icon: s, className: P.icon }),
2966
2943
  /* @__PURE__ */ f("span", { className: P.label, children: n }),
2967
- M && /* @__PURE__ */ f(
2968
- j.span,
2944
+ I && /* @__PURE__ */ f(
2945
+ q.span,
2969
2946
  {
2970
2947
  layoutId: `underline-${d}`,
2971
2948
  className: P.underline,
@@ -2976,31 +2953,31 @@ const mn = ({
2976
2953
  ]
2977
2954
  }
2978
2955
  );
2979
- }, yn = ({
2956
+ }, mn = ({
2980
2957
  variant: e = "primary",
2981
2958
  onTabSelected: t,
2982
2959
  children: n,
2983
2960
  className: l,
2984
2961
  selectedTab: r,
2985
- setSelectedTab: i,
2962
+ setSelectedTab: s,
2986
2963
  scrollable: c = !1
2987
2964
  }) => {
2988
- const [s, d] = D(
2965
+ const [a, d] = R(
2989
2966
  null
2990
2967
  );
2991
2968
  let o;
2992
- r == 0 || r != null ? o = r : o = s;
2993
- const h = i || d, y = te.Children.toArray(n).filter(
2994
- (x) => te.isValidElement(x) && x.type === jt
2995
- ), a = te.useRef(null), u = (x) => {
2996
- if (t == null || t(x), c) {
2997
- const M = a.current, g = x.ref.current;
2998
- if (M && g) {
2999
- const R = g.offsetLeft + g.offsetWidth / 2 - M.offsetWidth / 2;
3000
- M.scrollTo({ left: R, behavior: "smooth" });
2969
+ r == 0 || r != null ? o = r : o = a;
2970
+ const h = s || d, v = T.Children.toArray(n).filter(
2971
+ (w) => T.isValidElement(w) && w.type === Xt
2972
+ ), i = T.useRef(null), u = (w) => {
2973
+ if (t == null || t(w), c) {
2974
+ const I = i.current, g = w.ref.current;
2975
+ if (I && g) {
2976
+ const W = g.offsetLeft + g.offsetWidth / 2 - I.offsetWidth / 2;
2977
+ I.scrollTo({ left: W, behavior: "smooth" });
3001
2978
  }
3002
2979
  }
3003
- }, m = _e(() => Se(), []), b = gt({
2980
+ }, m = je(() => ke(), []), y = wt({
3004
2981
  children: n,
3005
2982
  onTabSelected: t,
3006
2983
  scrollable: c,
@@ -3009,9 +2986,9 @@ const mn = ({
3009
2986
  className: l,
3010
2987
  variant: e
3011
2988
  });
3012
- return /* @__PURE__ */ f("div", { ref: a, role: "tablist", className: b.tabs, children: y.map((x, M) => te.cloneElement(x, {
3013
- key: M,
3014
- index: M,
2989
+ return /* @__PURE__ */ f("div", { ref: i, role: "tablist", className: y.tabs, children: v.map((w, I) => T.cloneElement(w, {
2990
+ key: I,
2991
+ index: I,
3015
2992
  variant: e,
3016
2993
  selectedTab: o,
3017
2994
  setSelectedTab: h,
@@ -3019,126 +2996,126 @@ const mn = ({
3019
2996
  onTabSelected: u,
3020
2997
  scrollable: c
3021
2998
  })) });
3022
- }, vn = ({
2999
+ }, hn = ({
3023
3000
  variant: e = "filled",
3024
3001
  disabled: t = !1,
3025
3002
  errorText: n,
3026
3003
  placeholder: l,
3027
3004
  suffix: r,
3028
- name: i,
3005
+ name: s,
3029
3006
  label: c,
3030
- className: s,
3007
+ className: a,
3031
3008
  supportingText: d,
3032
3009
  trailingIcon: o,
3033
3010
  leadingIcon: h,
3034
- type: y = "text",
3035
- textLine: a = "singleLine",
3011
+ type: v = "text",
3012
+ textLine: i = "singleLine",
3036
3013
  autoComplete: u = "on",
3037
3014
  onChange: m,
3038
- value: b,
3039
- showSupportingText: x = !1,
3040
- ...M
3015
+ value: y,
3016
+ showSupportingText: w = !1,
3017
+ ...I
3041
3018
  }) => {
3042
- const [g, R] = D(b ?? ""), [N, P] = D(!1), [L, O] = D(!1), [F, C] = D(
3043
- x
3019
+ const [g, W] = R(y ?? ""), [L, P] = R(!1), [N, F] = R(!1), [V, C] = R(
3020
+ w
3044
3021
  );
3045
3022
  $(() => {
3046
- R(b ?? "");
3047
- }, [b]), $(() => {
3048
- n != null && n.length ? O(!0) : O(!1);
3023
+ W(y ?? "");
3024
+ }, [y]), $(() => {
3025
+ n != null && n.length ? F(!0) : F(!1);
3049
3026
  }, [n]), $(() => {
3050
- x ? C(x) : d != null && d.length ? C(!0) : C(!1);
3051
- }, [F, d]), $(() => {
3052
- N && O(!1);
3053
- }, [N]);
3054
- const v = te.useRef(null), k = () => {
3055
- v.current && !N && v.current.focus();
3056
- }, U = () => {
3027
+ w ? C(w) : d != null && d.length ? C(!0) : C(!1);
3028
+ }, [V, d]), $(() => {
3029
+ L && F(!1);
3030
+ }, [L]);
3031
+ const x = T.useRef(null), M = () => {
3032
+ x.current && !L && x.current.focus();
3033
+ }, X = () => {
3057
3034
  P(!0);
3058
- }, J = (X) => {
3059
- const q = X.target.value;
3060
- R(q), O(!1), typeof m == "function" && m(q);
3061
- }, re = () => {
3035
+ }, J = (O) => {
3036
+ const K = O.target.value;
3037
+ W(K), F(!1), typeof m == "function" && m(K);
3038
+ }, ee = () => {
3062
3039
  P(!1);
3063
- }, _ = bt({
3064
- showSupportingText: F,
3065
- isFocused: N,
3066
- showErrorIcon: L,
3040
+ }, _ = vt({
3041
+ showSupportingText: V,
3042
+ isFocused: L,
3043
+ showErrorIcon: N,
3067
3044
  disabled: t,
3068
- name: i,
3045
+ name: s,
3069
3046
  label: c,
3070
3047
  autoComplete: u,
3071
- className: s,
3048
+ className: a,
3072
3049
  onChange: m,
3073
3050
  placeholder: l,
3074
3051
  supportingText: d,
3075
- type: y,
3052
+ type: v,
3076
3053
  leadingIcon: h,
3077
3054
  trailingIcon: o,
3078
3055
  variant: e,
3079
3056
  errorText: n,
3080
3057
  value: g,
3081
3058
  suffix: r,
3082
- textLine: a
3083
- }), [oe] = D(Se());
3059
+ textLine: i
3060
+ }), [te] = R(ke());
3084
3061
  let S, E;
3085
- switch (a) {
3062
+ switch (i) {
3086
3063
  case "multiLine":
3087
- E = rt, S = {};
3064
+ E = et, S = {};
3088
3065
  break;
3089
3066
  case "textAreas":
3090
3067
  E = "textarea", S = {};
3091
3068
  break;
3092
3069
  case "singleLine":
3093
3070
  default:
3094
- E = "input", S = { type: y };
3071
+ E = "input", S = { type: v };
3095
3072
  break;
3096
3073
  }
3097
- return /* @__PURE__ */ Y("div", { className: _.textField, ...M, children: [
3098
- /* @__PURE__ */ Y("fieldset", { onClick: k, className: _.content, children: [
3074
+ return /* @__PURE__ */ U("div", { className: _.textField, ...I, children: [
3075
+ /* @__PURE__ */ U("fieldset", { onClick: M, className: _.content, children: [
3099
3076
  /* @__PURE__ */ f("div", { className: _.stateLayer }),
3100
- h && /* @__PURE__ */ f("div", { className: _.leadingIcon, children: te.isValidElement(h) ? h : /* @__PURE__ */ f(ie, { className: "w-5 h-5", icon: h }) }),
3101
- !(!N && !g.length || e == "filled") && /* @__PURE__ */ f(
3102
- j.legend,
3077
+ h && /* @__PURE__ */ f("div", { className: _.leadingIcon, children: T.isValidElement(h) ? h : /* @__PURE__ */ f(se, { className: "w-5 h-5", icon: h }) }),
3078
+ !(!L && !g.length || e == "filled") && /* @__PURE__ */ f(
3079
+ q.legend,
3103
3080
  {
3104
3081
  variants: {
3105
3082
  hidden: { width: 0, padding: 0 },
3106
3083
  visible: { width: "auto", padding: "0 8px" }
3107
3084
  },
3108
3085
  initial: "hidden",
3109
- animate: !N && !g.length ? "hidden" : "visible",
3086
+ animate: !L && !g.length ? "hidden" : "visible",
3110
3087
  className: "max-w-full ml-2 px-2 text-body-small h-0",
3111
3088
  transition: { duration: 0.2 },
3112
3089
  children: /* @__PURE__ */ f("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ f(
3113
- j.span,
3090
+ q.span,
3114
3091
  {
3115
3092
  className: _.label,
3116
3093
  transition: { duration: 0.3 },
3117
- layoutId: oe,
3094
+ layoutId: te,
3118
3095
  children: c
3119
3096
  }
3120
3097
  ) })
3121
3098
  }
3122
3099
  ),
3123
- /* @__PURE__ */ Y("div", { className: "flex-1 relative", children: [
3124
- (!N && !g.length || e == "filled") && /* @__PURE__ */ f(
3125
- j.label,
3100
+ /* @__PURE__ */ U("div", { className: "flex-1 relative", children: [
3101
+ (!L && !g.length || e == "filled") && /* @__PURE__ */ f(
3102
+ q.label,
3126
3103
  {
3127
- htmlFor: i,
3104
+ htmlFor: s,
3128
3105
  className: p(
3129
3106
  "absolute left-4 transition-all duration-300",
3130
3107
  {
3131
- "text-body-small top-2": e == "filled" && !(!N && !g.length),
3132
- "text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!N && !g.length))
3108
+ "text-body-small top-2": e == "filled" && !(!L && !g.length),
3109
+ "text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!L && !g.length))
3133
3110
  }
3134
3111
  ),
3135
3112
  transition: { duration: 0.3 },
3136
3113
  children: /* @__PURE__ */ f(
3137
- j.span,
3114
+ q.span,
3138
3115
  {
3139
3116
  className: _.label,
3140
3117
  transition: { duration: 0.3 },
3141
- layoutId: e == "outlined" ? oe : void 0,
3118
+ layoutId: e == "outlined" ? te : void 0,
3142
3119
  children: c
3143
3120
  }
3144
3121
  )
@@ -3147,15 +3124,15 @@ const mn = ({
3147
3124
  /* @__PURE__ */ f(
3148
3125
  E,
3149
3126
  {
3150
- ref: v,
3127
+ ref: x,
3151
3128
  value: g,
3152
3129
  onChange: J,
3153
3130
  className: _.input,
3154
- id: i,
3155
- name: i,
3156
- placeholder: N ? l ?? void 0 : "",
3157
- onFocus: U,
3158
- onBlur: re,
3131
+ id: s,
3132
+ name: s,
3133
+ placeholder: L ? l ?? void 0 : "",
3134
+ onFocus: X,
3135
+ onBlur: ee,
3159
3136
  disabled: t,
3160
3137
  autoComplete: u,
3161
3138
  "aria-invalid": !!(n != null && n.length),
@@ -3165,38 +3142,38 @@ const mn = ({
3165
3142
  )
3166
3143
  ] }),
3167
3144
  /* @__PURE__ */ f("div", { className: _.activeIndicator }),
3168
- !L && /* @__PURE__ */ Y(ye, { children: [
3145
+ !N && /* @__PURE__ */ U(he, { children: [
3169
3146
  o && /* @__PURE__ */ f(
3170
3147
  "div",
3171
3148
  {
3172
- onClick: (X) => {
3173
- X.stopPropagation();
3149
+ onClick: (O) => {
3150
+ O.stopPropagation();
3174
3151
  },
3175
3152
  className: _.trailingIcon,
3176
- children: te.isValidElement(o) ? o : /* @__PURE__ */ f(ie, { className: "h-5", icon: o })
3153
+ children: T.isValidElement(o) ? o : /* @__PURE__ */ f(se, { className: "h-5", icon: o })
3177
3154
  }
3178
3155
  ),
3179
3156
  !o && r && /* @__PURE__ */ f("span", { className: _.suffix, children: r })
3180
3157
  ] }),
3181
- L && /* @__PURE__ */ f(
3158
+ N && /* @__PURE__ */ f(
3182
3159
  "div",
3183
3160
  {
3184
3161
  className: p(_.trailingIcon, {
3185
3162
  " absolute right-0": !o
3186
3163
  }),
3187
3164
  children: /* @__PURE__ */ f(
3188
- ie,
3165
+ se,
3189
3166
  {
3190
3167
  className: "h-5 text-error",
3191
- icon: Ut
3168
+ icon: Ot
3192
3169
  }
3193
3170
  )
3194
3171
  }
3195
3172
  )
3196
3173
  ] }),
3197
- F && /* @__PURE__ */ f("p", { className: _.supportingText, children: n != null && n.length ? n : d != null && d.length ? d : " " })
3174
+ V && /* @__PURE__ */ f("p", { className: _.supportingText, children: n != null && n.length ? n : d != null && d.length ? d : " " })
3198
3175
  ] });
3199
- }, qt = G(
3176
+ }, Yt = G(
3200
3177
  "navigationRailItem",
3201
3178
  ({ isSelected: e, icon: t, label: n, variant: l }) => ({
3202
3179
  navigationRailItem: p(
@@ -3237,115 +3214,115 @@ const mn = ({
3237
3214
  "text-label-medium": l == "vertical"
3238
3215
  })
3239
3216
  })
3240
- ), Kt = ({ label: e }) => /* @__PURE__ */ f("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ f("p", { className: "text-label-large text-on-surface-variant", children: e }) }), _t = ({
3217
+ ), Ut = ({ label: e }) => /* @__PURE__ */ f("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ f("p", { className: "text-label-large text-on-surface-variant", children: e }) }), jt = ({
3241
3218
  className: e,
3242
3219
  onClick: t,
3243
3220
  label: n,
3244
3221
  variant: l = "vertical",
3245
3222
  href: r,
3246
- icon: i,
3223
+ icon: s,
3247
3224
  selectedItem: c,
3248
- setSelectedItem: s,
3225
+ setSelectedItem: a,
3249
3226
  index: d,
3250
3227
  onItemSelected: o,
3251
3228
  selected: h = !1,
3252
- ref: y,
3253
- transition: a,
3229
+ ref: v,
3230
+ transition: i,
3254
3231
  isExtended: u,
3255
3232
  iconSelected: m,
3256
- style: b,
3257
- extendedOnly: x,
3258
- children: M,
3233
+ style: y,
3234
+ extendedOnly: w,
3235
+ children: I,
3259
3236
  ...g
3260
3237
  }) => {
3261
- M && (n = M);
3262
- const R = B(null), N = y || R, [P, L] = D(h);
3238
+ I && (n = I);
3239
+ const W = A(null), L = v || W, [P, N] = R(h);
3263
3240
  $(() => {
3264
- h && c == null ? L(!0) : L(c == d && d != null);
3241
+ h && c == null ? N(!0) : N(c == d && d != null);
3265
3242
  }, [c]), $(() => {
3266
3243
  c == d && o && o({
3267
- ref: N,
3244
+ ref: L,
3268
3245
  index: d || 0,
3269
3246
  label: n,
3270
- icon: i
3247
+ icon: s
3271
3248
  });
3272
3249
  }, [c]);
3273
- const O = r ? "a" : "button", F = (v) => {
3274
- s && s(d ?? null), t && t(v);
3275
- }, C = qt({
3250
+ const F = r ? "a" : "button", V = (x) => {
3251
+ a && a(d ?? null), t && t(x);
3252
+ }, C = Yt({
3276
3253
  isExtended: u,
3277
- extendedOnly: x,
3254
+ extendedOnly: w,
3278
3255
  className: e,
3279
3256
  onItemSelected: o,
3280
3257
  selectedItem: c,
3281
3258
  index: d,
3282
- transition: a,
3259
+ transition: i,
3283
3260
  selected: P,
3284
3261
  variant: l,
3285
- icon: i,
3262
+ icon: s,
3286
3263
  label: n,
3287
3264
  isSelected: P,
3288
- setSelectedItem: s,
3265
+ setSelectedItem: a,
3289
3266
  href: r,
3290
3267
  children: n,
3291
3268
  iconSelected: m
3292
3269
  });
3293
- return a = { duration: 0.3, ...a }, x && !u ? null : (
3270
+ return i = { duration: 0.3, ...i }, w && !u ? null : (
3294
3271
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3295
3272
  // @ts-expect-error
3296
- /* @__PURE__ */ Y(
3297
- O,
3273
+ /* @__PURE__ */ U(
3274
+ F,
3298
3275
  {
3299
3276
  ...g,
3300
3277
  role: "tab",
3301
3278
  "aria-selected": P,
3302
- ref: N,
3279
+ ref: L,
3303
3280
  href: r,
3304
3281
  className: C.navigationRailItem,
3305
- onClick: F,
3306
- style: { transition: a.duration + "s", ...b },
3282
+ onClick: V,
3283
+ style: { transition: i.duration + "s", ...y },
3307
3284
  children: [
3308
- /* @__PURE__ */ Y(
3309
- j.div,
3285
+ /* @__PURE__ */ U(
3286
+ q.div,
3310
3287
  {
3311
3288
  style: {
3312
- transition: l == "horizontal" ? a.duration + `s, gap ${a.duration / 2}s ${a.duration - a.duration / 2}s` : a.duration + `s, gap ${a.duration / 3}s ${a.duration - a.duration / 3}s`
3289
+ transition: l == "horizontal" ? i.duration + `s, gap ${i.duration / 2}s ${i.duration - i.duration / 2}s` : i.duration + `s, gap ${i.duration / 3}s ${i.duration - i.duration / 3}s`
3313
3290
  },
3314
- transition: a,
3291
+ transition: i,
3315
3292
  className: C.container,
3316
3293
  children: [
3317
- /* @__PURE__ */ f(j.div, { layout: !0, className: C.stateLayer }),
3318
- i && /* @__PURE__ */ f(
3319
- ie,
3294
+ /* @__PURE__ */ f(q.div, { layout: !0, className: C.stateLayer }),
3295
+ s && /* @__PURE__ */ f(
3296
+ se,
3320
3297
  {
3321
- icon: P ? m : i,
3298
+ icon: P ? m : s,
3322
3299
  className: C.icon
3323
3300
  }
3324
3301
  ),
3325
- /* @__PURE__ */ f(ue, { children: l == "horizontal" && (() => {
3326
- const v = {
3302
+ /* @__PURE__ */ f(ce, { children: l == "horizontal" && (() => {
3303
+ const x = {
3327
3304
  width: 0,
3328
3305
  opacity: 0,
3329
3306
  transition: {
3330
- ...a
3307
+ ...i
3331
3308
  }
3332
- }, k = {
3309
+ }, M = {
3333
3310
  width: "auto",
3334
3311
  opacity: 1,
3335
3312
  transition: {
3336
- ...a,
3313
+ ...i,
3337
3314
  opacity: {
3338
- duration: a.duration / 2,
3339
- delay: a.duration - a.duration / 2
3315
+ duration: i.duration / 2,
3316
+ delay: i.duration - i.duration / 2
3340
3317
  }
3341
3318
  }
3342
3319
  };
3343
3320
  return /* @__PURE__ */ f(
3344
- j.span,
3321
+ q.span,
3345
3322
  {
3346
- initial: v,
3347
- animate: k,
3348
- exit: v,
3323
+ initial: x,
3324
+ animate: M,
3325
+ exit: x,
3349
3326
  className: C.label,
3350
3327
  children: n
3351
3328
  }
@@ -3354,35 +3331,35 @@ const mn = ({
3354
3331
  ]
3355
3332
  }
3356
3333
  ),
3357
- /* @__PURE__ */ f(ue, { children: l == "vertical" && (() => {
3358
- const v = {
3334
+ /* @__PURE__ */ f(ce, { children: l == "vertical" && (() => {
3335
+ const x = {
3359
3336
  height: 0,
3360
3337
  opacity: 0,
3361
3338
  transition: {
3362
- ...a,
3339
+ ...i,
3363
3340
  opacity: {
3364
3341
  duration: 0
3365
3342
  }
3366
3343
  }
3367
- }, k = {
3344
+ }, M = {
3368
3345
  height: "auto",
3369
3346
  opacity: 1,
3370
3347
  transition: {
3371
- ...a,
3348
+ ...i,
3372
3349
  opacity: {
3373
- duration: a.duration / 3,
3374
- delay: a.duration - a.duration / 3
3350
+ duration: i.duration / 3,
3351
+ delay: i.duration - i.duration / 3
3375
3352
  }
3376
3353
  }
3377
3354
  };
3378
3355
  return /* @__PURE__ */ f(
3379
- j.span,
3356
+ q.span,
3380
3357
  {
3381
- initial: k,
3382
- animate: k,
3383
- exit: v,
3358
+ initial: M,
3359
+ animate: M,
3360
+ exit: x,
3384
3361
  className: C.label,
3385
- transition: a,
3362
+ transition: i,
3386
3363
  children: n
3387
3364
  }
3388
3365
  );
@@ -3391,7 +3368,7 @@ const mn = ({
3391
3368
  }
3392
3369
  )
3393
3370
  );
3394
- }, Gt = G(
3371
+ }, qt = G(
3395
3372
  "navigationRail",
3396
3373
  ({ isExtended: e, alignment: t }) => ({
3397
3374
  navigationRail: p("flex flex-col left-0 h-full top-0 pt-11", {
@@ -3407,164 +3384,164 @@ const mn = ({
3407
3384
  "w-fit items-start": e
3408
3385
  })
3409
3386
  })
3410
- ), wn = ({
3387
+ ), pn = ({
3411
3388
  variant: e = "standard",
3412
3389
  onItemSelected: t,
3413
3390
  children: n,
3414
3391
  className: l,
3415
3392
  selectedItem: r,
3416
- extended: i,
3393
+ extended: s,
3417
3394
  alignment: c = "top",
3418
- menu: s = {
3395
+ menu: a = {
3419
3396
  closed: {
3420
- icon: Yt,
3397
+ icon: Ft,
3421
3398
  label: "Open menu"
3422
3399
  },
3423
3400
  opened: {
3424
- icon: Ce,
3401
+ icon: Me,
3425
3402
  label: "Close menu"
3426
3403
  }
3427
3404
  },
3428
3405
  style: d,
3429
3406
  onExtendedChange: o,
3430
3407
  transition: h,
3431
- setSelectedItem: y
3408
+ setSelectedItem: v
3432
3409
  }) => {
3433
- const [a, u] = D(null), [m, b] = D(i);
3434
- let x;
3435
- r == 0 || r != null ? x = r : x = a;
3436
- const M = y || u, g = B(null), R = (C) => {
3410
+ const [i, u] = R(null), [m, y] = R(s);
3411
+ let w;
3412
+ r == 0 || r != null ? w = r : w = i;
3413
+ const I = v || u, g = A(null), W = (C) => {
3437
3414
  t == null || t(C);
3438
3415
  };
3439
- function N(C) {
3440
- const v = [];
3441
- return Ge.forEach(C, (k) => {
3442
- pe(k) && k.type === Je ? v.push(...N(k.props.children)) : v.push(k);
3443
- }), v;
3416
+ function L(C) {
3417
+ const x = [];
3418
+ return qe.forEach(C, (M) => {
3419
+ me(M) && M.type === Ke ? x.push(...L(M.props.children)) : x.push(M);
3420
+ }), x;
3444
3421
  }
3445
- const P = N(n), L = P.filter(
3446
- (C) => pe(C) && C.type === Ve
3447
- ), O = Gt({
3422
+ const P = L(n), N = P.filter(
3423
+ (C) => me(C) && C.type === Be
3424
+ ), F = qt({
3448
3425
  children: n,
3449
3426
  onItemSelected: t,
3450
- selectedItem: x,
3451
- setSelectedItem: M,
3427
+ selectedItem: w,
3428
+ setSelectedItem: I,
3452
3429
  className: l,
3453
3430
  variant: e,
3454
3431
  extended: m,
3455
3432
  isExtended: m,
3456
3433
  alignment: c,
3457
- menu: s,
3434
+ menu: a,
3458
3435
  transition: h,
3459
3436
  onExtendedChange: o
3460
3437
  });
3461
3438
  h = { duration: 0.3, ...h };
3462
- const F = B(!1);
3463
- return F.current = !1, $(() => {
3439
+ const V = A(!1);
3440
+ return V.current = !1, $(() => {
3464
3441
  o == null || o(m ?? !1);
3465
- }, [m]), /* @__PURE__ */ Y(
3442
+ }, [m]), /* @__PURE__ */ U(
3466
3443
  "div",
3467
3444
  {
3468
3445
  style: { transition: h.duration + "s", ...d },
3469
3446
  ref: g,
3470
- className: O.navigationRail,
3447
+ className: F.navigationRail,
3471
3448
  children: [
3472
- /* @__PURE__ */ Y("div", { className: O.header, children: [
3449
+ /* @__PURE__ */ U("div", { className: F.header, children: [
3473
3450
  /* @__PURE__ */ f(
3474
- $e,
3451
+ Ie,
3475
3452
  {
3476
- onClick: () => b(!m),
3477
- label: m ? s == null ? void 0 : s.opened.label : s == null ? void 0 : s.closed.label,
3478
- className: O.menuIcon,
3479
- icon: m ? s.opened.icon : s == null ? void 0 : s.closed.icon
3453
+ onClick: () => y(!m),
3454
+ label: m ? a == null ? void 0 : a.opened.label : a == null ? void 0 : a.closed.label,
3455
+ className: F.menuIcon,
3456
+ icon: m ? a.opened.icon : a == null ? void 0 : a.closed.icon
3480
3457
  }
3481
3458
  ),
3482
- L.length > 0 && be(L[0], {
3459
+ N.length > 0 && ve(N[0], {
3483
3460
  transition: h,
3484
3461
  isExtended: m,
3485
- className: "!shadow-none mx-5 " + L[0].props.className
3462
+ className: "!shadow-none mx-5 " + N[0].props.className
3486
3463
  })
3487
3464
  ] }),
3488
- /* @__PURE__ */ f("div", { className: O.segments, children: (() => {
3465
+ /* @__PURE__ */ f("div", { className: F.segments, children: (() => {
3489
3466
  let C = 0;
3490
- return P.map((v) => pe(v) && v.type === _t ? be(
3491
- v,
3467
+ return P.map((x) => me(x) && x.type === jt ? ve(
3468
+ x,
3492
3469
  {
3493
3470
  key: C,
3494
3471
  index: C++,
3495
3472
  // Utilise et incrémente le compteur dédié
3496
3473
  variant: m ? "horizontal" : "vertical",
3497
- selectedItem: x,
3498
- setSelectedItem: M,
3499
- onItemSelected: R,
3474
+ selectedItem: w,
3475
+ setSelectedItem: I,
3476
+ onItemSelected: W,
3500
3477
  transition: h,
3501
- extendedOnly: F.current,
3478
+ extendedOnly: V.current,
3502
3479
  isExtended: m
3503
3480
  }
3504
- ) : pe(v) && v.type === Ve ? null : pe(v) && v.type === Kt ? (F.current = !0, m ? be(v, {}) : null) : v);
3481
+ ) : me(x) && x.type === Be ? null : me(x) && x.type === Ut ? (V.current = !0, m ? ve(x, {}) : null) : x);
3505
3482
  })() }),
3506
3483
  /* @__PURE__ */ f("div", { className: "flex-1 max-h-[160px]" })
3507
3484
  ]
3508
3485
  }
3509
3486
  );
3510
3487
  };
3511
- function xn(e) {
3512
- return et({
3513
- variant: nt.Udixio,
3488
+ function yn(e) {
3489
+ return Qe({
3490
+ variant: Te.Udixio,
3514
3491
  ...e,
3515
- plugins: [new tt(e), new Ue(e)]
3492
+ plugins: [new ze(e), new Oe(e)]
3516
3493
  });
3517
3494
  }
3518
3495
  export {
3519
- sn as AnimateOnScrollInit,
3520
- Bt as Button,
3521
- un as Card,
3522
- dn as Carousel,
3523
- Pt as CarouselItem,
3524
- kt as CustomScroll,
3525
- Ht as Divider,
3526
- Ve as Fab,
3527
- ie as Icon,
3528
- $e as IconButton,
3529
- wn as NavigationRail,
3530
- _t as NavigationRailItem,
3531
- Kt as NavigationRailSection,
3532
- Nt as ProgressIndicator,
3496
+ on as AnimateOnScrollInit,
3497
+ Wt as Button,
3498
+ an as Card,
3499
+ sn as Carousel,
3500
+ Dt as CarouselItem,
3501
+ Nt as CustomScroll,
3502
+ At as Divider,
3503
+ Be as Fab,
3504
+ se as Icon,
3505
+ Ie as IconButton,
3506
+ pn as NavigationRail,
3507
+ jt as NavigationRailItem,
3508
+ Ut as NavigationRailSection,
3509
+ gt as ProgressIndicator,
3533
3510
  we as RippleEffect,
3534
- mn as SideSheet,
3535
- fn as Slider,
3536
- ln as SmoothScroll,
3537
- hn as Snackbar,
3538
- pn as Switch,
3539
- St as SyncedFixedWrapper,
3540
- jt as Tab,
3541
- yn as Tabs,
3542
- vn as TextField,
3543
- an as ThemeProvider,
3544
- qe as ToolTip,
3545
- cn as animateOnScroll,
3546
- st as buttonStyle,
3547
- ct as cardStyle,
3548
- it as carouselItemStyle,
3549
- ut as carouselStyle,
3511
+ un as SideSheet,
3512
+ cn as Slider,
3513
+ nn as SmoothScroll,
3514
+ dn as Snackbar,
3515
+ fn as Switch,
3516
+ kt as SyncedFixedWrapper,
3517
+ Xt as Tab,
3518
+ mn as Tabs,
3519
+ hn as TextField,
3520
+ rn as ThemeProvider,
3521
+ Ye as ToolTip,
3522
+ ln as animateOnScroll,
3523
+ ot as buttonStyle,
3524
+ lt as cardStyle,
3525
+ at as carouselItemStyle,
3526
+ st as carouselStyle,
3550
3527
  p as classNames,
3551
- ot as classnames,
3552
- Et as customScrollStyle,
3528
+ tt as classnames,
3529
+ bt as customScrollStyle,
3553
3530
  G as defaultClassNames,
3554
- xn as defineConfig,
3555
- dt as dividerStyle,
3556
- ft as fabStyle,
3557
- at as getClassNames,
3558
- mt as iconButtonStyle,
3559
- je as initAnimateOnScroll,
3531
+ yn as defineConfig,
3532
+ ct as dividerStyle,
3533
+ it as fabStyle,
3534
+ rt as getClassNames,
3535
+ ut as iconButtonStyle,
3536
+ Xe as initAnimateOnScroll,
3560
3537
  fe as normalize,
3561
- ht as progressIndicatorStyle,
3562
- pt as sideSheetStyle,
3563
- yt as sliderStyle,
3564
- vt as snackbarStyle,
3565
- wt as switchStyle,
3566
- xt as tabStyle,
3567
- gt as tabsStyle,
3568
- bt as textFieldStyle,
3569
- Lt as toolStyle
3538
+ dt as progressIndicatorStyle,
3539
+ ft as sideSheetStyle,
3540
+ mt as sliderStyle,
3541
+ ht as snackbarStyle,
3542
+ pt as switchStyle,
3543
+ yt as tabStyle,
3544
+ wt as tabsStyle,
3545
+ vt as textFieldStyle,
3546
+ xt as toolStyle
3570
3547
  };