@udixio/ui-react 1.2.0 → 1.4.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,11 +1,13 @@
1
1
  import { jsx as u, jsxs as U, Fragment as re } from "react/jsx-runtime";
2
2
  import { clsx as de } from "clsx";
3
3
  import { extendTailwindMerge as we } from "tailwind-merge";
4
- import Y, { useState as S, useEffect as D, useRef as V, useLayoutEffect as fe, isValidElement as ee, cloneElement as le, useMemo as ve, Children as be, Fragment as Ne } from "react";
5
- import { motion as j, AnimatePresence as z, useScroll as Le, useMotionValueEvent as se, motionValue as me, useTransform as oe } from "motion/react";
6
- import { throttle as Ee } from "throttle-debounce";
7
- import { createPortal as Ie } from "react-dom";
8
- import ke from "react-textarea-autosize";
4
+ import Y, { useState as C, useEffect as W, useRef as V, useLayoutEffect as fe, isValidElement as ee, cloneElement as le, useMemo as ve, Children as be, Fragment as Le } from "react";
5
+ import { motion as j, AnimatePresence as z, useScroll as Ne, useMotionValueEvent as se, motionValue as me, useTransform as oe } from "motion/react";
6
+ import { throttle as Ie } from "throttle-debounce";
7
+ import { createPortal as Ee } from "react-dom";
8
+ import { loader as ke } from "@udixio/theme";
9
+ import { TailwindPlugin as Me } from "@udixio/tailwind";
10
+ import Ce from "react-textarea-autosize";
9
11
  const pe = we({
10
12
  override: {
11
13
  classGroups: {
@@ -32,11 +34,11 @@ const pe = we({
32
34
  font: ["font"]
33
35
  }
34
36
  }
35
- }), d = (...e) => pe(de(e)), Me = (...e) => pe(de(e));
36
- function Re(e) {
37
+ }), d = (...e) => pe(de(e)), Re = (...e) => pe(de(e));
38
+ function Se(e) {
37
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, "");
38
40
  }
39
- const Se = (e) => {
41
+ const Be = (e) => {
40
42
  const t = {};
41
43
  e.classNameList.forEach((l) => {
42
44
  var n;
@@ -54,13 +56,13 @@ const Se = (e) => {
54
56
  const r = t;
55
57
  return Object.entries(t).map((l) => {
56
58
  let [n, s] = l;
57
- s = s.reverse(), n == e.default && s.unshift("relative"), s.unshift(Re(n)), r[n] = Me(...s);
59
+ s = s.reverse(), n == e.default && s.unshift("relative"), s.unshift(Se(n)), r[n] = Re(...s);
58
60
  }), r;
59
- }, G = (e, t) => (r) => Se({
61
+ }, K = (e, t) => (r) => Be({
60
62
  classNameList: [r.className, t],
61
63
  default: e,
62
64
  states: r
63
- }), Ce = G(
65
+ }), Pe = K(
64
66
  "button",
65
67
  ({
66
68
  variant: e,
@@ -193,7 +195,7 @@ const Se = (e) => {
193
195
  o === "xLarge" && "size-10"
194
196
  )
195
197
  })
196
- ), Be = G(
198
+ ), $e = K(
197
199
  "card",
198
200
  ({ variant: e, isInteractive: t }) => ({
199
201
  card: d(
@@ -209,12 +211,12 @@ const Se = (e) => {
209
211
  }
210
212
  ])
211
213
  })
212
- ), We = G(
214
+ ), We = K(
213
215
  "carouselItem",
214
216
  () => ({
215
217
  carouselItem: d("rounded-[28px] overflow-hidden flex-none")
216
218
  })
217
- ), $e = G(
219
+ ), De = K(
218
220
  "carousel",
219
221
  () => ({
220
222
  carousel: d(["w-full h-[400px]"]),
@@ -222,7 +224,7 @@ const Se = (e) => {
222
224
  "grid grid-flow-col h-full transition-transform ease-out w-fit"
223
225
  )
224
226
  })
225
- ), De = G(
227
+ ), Ve = K(
226
228
  "divider",
227
229
  ({ orientation: e }) => ({
228
230
  divider: d(
@@ -235,7 +237,7 @@ const Se = (e) => {
235
237
  }
236
238
  )
237
239
  })
238
- ), Pe = G(
240
+ ), Ue = K(
239
241
  "fab",
240
242
  ({ size: e, variant: t, isExtended: r }) => ({
241
243
  fab: d(
@@ -280,7 +282,7 @@ const Se = (e) => {
280
282
  t === "tertiary" && "text-on-tertiary-container"
281
283
  )
282
284
  })
283
- ), Ve = G(
285
+ ), je = K(
284
286
  "iconButton",
285
287
  ({
286
288
  variant: e,
@@ -419,7 +421,7 @@ const Se = (e) => {
419
421
  !!t && "text-on-surface/[0.38]"
420
422
  )
421
423
  })
422
- ), Ue = G(
424
+ ), Fe = K(
423
425
  "progressIndicator",
424
426
  ({ variant: e, isVisible: t }) => ({
425
427
  progressIndicator: d(
@@ -451,7 +453,7 @@ const Se = (e) => {
451
453
  }
452
454
  )
453
455
  })
454
- ), je = G(
456
+ ), He = K(
455
457
  "slider",
456
458
  ({ isChanging: e }) => ({
457
459
  slider: d([
@@ -474,7 +476,7 @@ const Se = (e) => {
474
476
  "h-1 w-1 absolute transform -translate-y-1/2 -translate-x-1/2 top-1/2 rounded-full"
475
477
  ])
476
478
  })
477
- ), Fe = G(
479
+ ), Xe = K(
478
480
  "snackbar",
479
481
  () => ({
480
482
  snackbar: d(" rounded bg-inverse-surface "),
@@ -484,7 +486,7 @@ const Se = (e) => {
484
486
  supportingText: d("text-body-medium text-inverse-on-surface "),
485
487
  icon: d(" ml-auto mr-0 text-inverse-on-surface block dark")
486
488
  })
487
- ), Xe = G(
489
+ ), Oe = K(
488
490
  "switch",
489
491
  ({ isSelected: e, disabled: t, inactiveIcon: r }) => ({
490
492
  switch: d(
@@ -527,7 +529,7 @@ const Se = (e) => {
527
529
  { "text-on-surface/[0.38]": t }
528
530
  )
529
531
  })
530
- ), Oe = G(
532
+ ), qe = K(
531
533
  "tab",
532
534
  ({ isSelected: e, icon: t, label: r, variant: l }) => ({
533
535
  tab: d(
@@ -586,7 +588,7 @@ const Se = (e) => {
586
588
  l === "secondary" && "h-0.5"
587
589
  )
588
590
  })
589
- ), qe = G(
591
+ ), _e = K(
590
592
  "tabs",
591
593
  ({ scrollable: e }) => ({
592
594
  tabs: d(
@@ -595,7 +597,7 @@ const Se = (e) => {
595
597
  { "overflow-x-auto": e }
596
598
  )
597
599
  })
598
- ), He = G(
600
+ ), Ke = K(
599
601
  "textField",
600
602
  ({
601
603
  disabled: e,
@@ -690,7 +692,7 @@ const Se = (e) => {
690
692
  l == "outlined" && "py-4 relative z-10"
691
693
  )
692
694
  })
693
- ), Ke = G(
695
+ ), Ge = K(
694
696
  "toolTip",
695
697
  ({ position: e, variant: t }) => ({
696
698
  toolTip: d(
@@ -787,19 +789,19 @@ const Se = (e) => {
787
789
  children: typeof a == "string" ? /* @__PURE__ */ u("path", { className: "fill-current", d: a }) : a.map((o, p) => /* @__PURE__ */ u("path", { d: o }, p))
788
790
  }
789
791
  );
790
- }, Ge = ({
792
+ }, Ye = ({
791
793
  variant: e = "linear-determinate",
792
794
  value: t = 0,
793
795
  transitionDuration: r = 1e3,
794
796
  className: l,
795
797
  ...n
796
798
  }) => {
797
- const [s, i] = S(t), [a] = S(1.5);
798
- D(() => {
799
+ const [s, i] = C(t), [a] = C(1.5);
800
+ W(() => {
799
801
  t > 100 && (t = 100), t < 0 && (t = 0), i(t);
800
802
  }, [t]);
801
- const [f, o] = S(!0), p = () => f ? a : a * 0.5;
802
- D(() => {
803
+ const [f, o] = C(!0), p = () => f ? a : a * 0.5;
804
+ W(() => {
803
805
  if ((e === "circular-indeterminate" || e === "linear-indeterminate") && s !== 100) {
804
806
  const v = setInterval(() => {
805
807
  i(f ? 10 : 90), o(!f);
@@ -807,8 +809,8 @@ const Se = (e) => {
807
809
  return () => clearInterval(v);
808
810
  }
809
811
  }, [e, f, s]);
810
- const [h, c] = S(!1);
811
- D(() => {
812
+ const [h, c] = C(!1);
813
+ W(() => {
812
814
  if (s >= 100) {
813
815
  const v = setTimeout(() => {
814
816
  c(!1);
@@ -819,7 +821,7 @@ const Se = (e) => {
819
821
  } else
820
822
  c(!0);
821
823
  }, [s, r]);
822
- const y = Ue({
824
+ const y = Fe({
823
825
  className: l,
824
826
  variant: e,
825
827
  value: t,
@@ -929,10 +931,10 @@ const Se = (e) => {
929
931
  borderRadius: { duration: 0.3, delay: 0.3 }
930
932
  }
931
933
  }
932
- }, [l, n] = S(!0), [s, i] = S(!1), [a, f] = S({ x: 0, y: 0 });
933
- D(() => {
934
+ }, [l, n] = C(!0), [s, i] = C(!1), [a, f] = C({ x: 0, y: 0 });
935
+ W(() => {
934
936
  s && (n(!0), n(!1));
935
- }, [s]), D(() => {
937
+ }, [s]), W(() => {
936
938
  const c = t == null ? void 0 : t.current;
937
939
  if (c)
938
940
  return c.addEventListener("mousedown", o), c.addEventListener("mouseup", h), c.addEventListener("mouseleave", p), () => {
@@ -970,7 +972,7 @@ const Se = (e) => {
970
972
  className: "transform -translate-x-1/2 -translate-y-1/2"
971
973
  }
972
974
  ) });
973
- }, _e = G(
975
+ }, Ze = K(
974
976
  "customScroll",
975
977
  ({ orientation: e, draggable: t, isDragging: r }) => ({
976
978
  customScroll: d(
@@ -1008,17 +1010,17 @@ const Se = (e) => {
1008
1010
  throttleDuration: i = 75
1009
1011
  }) => {
1010
1012
  var $, F;
1011
- const a = V(null), f = V(null), [o, p] = S({
1013
+ const a = V(null), f = V(null), [o, p] = C({
1012
1014
  width: null,
1013
1015
  height: null
1014
1016
  });
1015
- D(() => {
1017
+ W(() => {
1016
1018
  if (!a.current) return;
1017
- const M = new ResizeObserver((X) => {
1018
- for (const O of X)
1019
- O.target === a.current && p({
1020
- width: O.contentRect.width,
1021
- height: O.contentRect.height
1019
+ const M = new ResizeObserver((H) => {
1020
+ for (const X of H)
1021
+ X.target === a.current && p({
1022
+ width: X.contentRect.width,
1023
+ height: X.contentRect.height
1022
1024
  // On observe aussi la hauteur maintenant
1023
1025
  });
1024
1026
  });
@@ -1039,18 +1041,18 @@ const Se = (e) => {
1039
1041
  height: M.clientHeight
1040
1042
  // Correction ici pour retourner la bonne hauteur
1041
1043
  } : null;
1042
- }, { scrollYProgress: L, scrollXProgress: N } = Le({
1044
+ }, { scrollYProgress: N, scrollXProgress: L } = Ne({
1043
1045
  container: a
1044
- }), E = V(null);
1045
- E.current || (E.current = Ee(
1046
+ }), I = V(null);
1047
+ I.current || (I.current = Ie(
1046
1048
  i,
1047
- (M, X) => {
1048
- !c.current || !h.current || l && (t === "horizontal" && X === "x" && l({
1049
+ (M, H) => {
1050
+ !c.current || !h.current || l && (t === "horizontal" && H === "x" && l({
1049
1051
  scrollProgress: M,
1050
1052
  scroll: M * h.current.width,
1051
1053
  scrollTotal: h.current.width,
1052
1054
  scrollVisible: c.current.width
1053
- }), t === "vertical" && X === "y" && l({
1055
+ }), t === "vertical" && H === "y" && l({
1054
1056
  scrollProgress: M,
1055
1057
  scroll: M * h.current.height,
1056
1058
  scrollTotal: h.current.height,
@@ -1058,17 +1060,17 @@ const Se = (e) => {
1058
1060
  }));
1059
1061
  }
1060
1062
  ));
1061
- const w = (M, X) => {
1062
- E.current && E.current(M, X);
1063
+ const w = (M, H) => {
1064
+ I.current && I.current(M, H);
1063
1065
  };
1064
- D(() => {
1065
- o.width && w(N.get(), "x"), o.height && w(L.get(), "y");
1066
- }, [o]), se(N, "change", (M) => {
1066
+ W(() => {
1067
+ o.width && w(L.get(), "x"), o.height && w(N.get(), "y");
1068
+ }, [o]), se(L, "change", (M) => {
1067
1069
  w(M, "x");
1068
- }), se(L, "change", (M) => {
1070
+ }), se(N, "change", (M) => {
1069
1071
  w(M, "y");
1070
1072
  });
1071
- const [B, b] = S(!1);
1073
+ const [B, b] = C(!1);
1072
1074
  fe(() => {
1073
1075
  B || !c.current || !h.current || !l || (l({
1074
1076
  scrollProgress: 0,
@@ -1077,8 +1079,8 @@ const Se = (e) => {
1077
1079
  scrollVisible: t == "vertical" ? c.current.height : c.current.width
1078
1080
  }), b(!0));
1079
1081
  }, [c, h, l]), h.current = y(), c.current = v();
1080
- const [I, R] = S(!1), P = _e({
1081
- isDragging: I,
1082
+ const [E, R] = C(!1), D = Ze({
1083
+ isDragging: E,
1082
1084
  children: e,
1083
1085
  className: n,
1084
1086
  onScroll: l,
@@ -1086,38 +1088,38 @@ const Se = (e) => {
1086
1088
  scrollSize: r,
1087
1089
  draggable: s,
1088
1090
  throttleDuration: i
1089
- }), [W, k] = S(0), [m, C] = S(0), q = (M) => {
1091
+ }), [P, k] = C(0), [m, S] = C(0), O = (M) => {
1090
1092
  if (!s) return;
1091
- const X = a.current;
1092
- if (!X || W == null) return;
1093
- const J = (M.pageX - X.offsetLeft - W) * 1.5;
1094
- X.scrollLeft = m - J;
1095
- }, K = (M) => {
1096
- const X = a.current;
1097
- X && (R(!0), k(M.pageX - X.offsetLeft), C(X.scrollLeft));
1093
+ const H = a.current;
1094
+ if (!H || P == null) return;
1095
+ const J = (M.pageX - H.offsetLeft - P) * 1.5;
1096
+ H.scrollLeft = m - J;
1097
+ }, _ = (M) => {
1098
+ const H = a.current;
1099
+ H && (R(!0), k(M.pageX - H.offsetLeft), S(H.scrollLeft));
1098
1100
  }, Z = (M) => {
1099
- I && (M.preventDefault(), q(M));
1100
- }, H = () => {
1101
+ E && (M.preventDefault(), O(M));
1102
+ }, q = () => {
1101
1103
  R(!1);
1102
1104
  }, A = () => {
1103
1105
  R(!1);
1104
1106
  }, g = (M) => {
1105
1107
  M.preventDefault();
1106
1108
  }, x = V(null);
1107
- return D(() => () => {
1109
+ return W(() => () => {
1108
1110
  x.current && clearTimeout(x.current);
1109
1111
  }, []), /* @__PURE__ */ U(
1110
1112
  "div",
1111
1113
  {
1112
- className: P.customScroll,
1114
+ className: D.customScroll,
1113
1115
  ref: a,
1114
- onMouseDown: K,
1116
+ onMouseDown: _,
1115
1117
  onMouseMove: Z,
1116
- onMouseUp: H,
1118
+ onMouseUp: q,
1117
1119
  onMouseLeave: A,
1118
1120
  onDragStart: g,
1119
1121
  onScroll: (M) => {
1120
- I || (k(null), R(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
1122
+ E || (k(null), R(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
1121
1123
  R(!1);
1122
1124
  }, 1e3));
1123
1125
  },
@@ -1127,7 +1129,7 @@ const Se = (e) => {
1127
1129
  {
1128
1130
  ref: f,
1129
1131
  style: t === "vertical" ? { height: (($ = c == null ? void 0 : c.current) == null ? void 0 : $.height) ?? "100%" } : { width: ((F = c == null ? void 0 : c.current) == null ? void 0 : F.width) ?? "100%" },
1130
- className: P.track,
1132
+ className: D.track,
1131
1133
  children: e
1132
1134
  }
1133
1135
  ),
@@ -1154,14 +1156,14 @@ const Se = (e) => {
1154
1156
  ]
1155
1157
  }
1156
1158
  );
1157
- }, yt = ({
1159
+ }, bt = ({
1158
1160
  children: e,
1159
1161
  transition: t = ".5s",
1160
1162
  orientation: r = "vertical",
1161
1163
  throttleDuration: l = 25,
1162
1164
  ...n
1163
1165
  }) => {
1164
- const [s, i] = S(null), a = me((s == null ? void 0 : s.scrollProgress) ?? 0), f = oe(
1166
+ const [s, i] = C(null), a = me((s == null ? void 0 : s.scrollProgress) ?? 0), f = oe(
1165
1167
  a,
1166
1168
  [0, 1],
1167
1169
  [0, 1 - ((s == null ? void 0 : s.scrollVisible) ?? 0) / ((s == null ? void 0 : s.scrollTotal) ?? 0)]
@@ -1200,11 +1202,11 @@ const Se = (e) => {
1200
1202
  )
1201
1203
  }
1202
1204
  );
1203
- }, Ye = ({
1205
+ }, Je = ({
1204
1206
  targetRef: e,
1205
1207
  children: t
1206
1208
  }) => {
1207
- const [r, l] = S(null), n = V(null), s = () => {
1209
+ const [r, l] = C(null), n = V(null), s = () => {
1208
1210
  const i = e.current;
1209
1211
  if (!i) return;
1210
1212
  const a = i.getBoundingClientRect();
@@ -1220,15 +1222,45 @@ const Se = (e) => {
1220
1222
  // personnalise si besoin
1221
1223
  });
1222
1224
  };
1223
- return D(() => {
1225
+ return W(() => {
1224
1226
  const i = e.current;
1225
1227
  if (i)
1226
1228
  return s(), window.addEventListener("scroll", s, !0), window.addEventListener("resize", s), n.current = new ResizeObserver(s), n.current.observe(i), () => {
1227
1229
  var a;
1228
1230
  window.removeEventListener("scroll", s, !0), window.removeEventListener("resize", s), (a = n.current) == null || a.disconnect();
1229
1231
  };
1230
- }, [e]), r ? Ie(/* @__PURE__ */ u("div", { style: r, children: t }), document.body) : null;
1231
- }, Ze = ({
1232
+ }, [e]), r ? Ee(/* @__PURE__ */ u("div", { style: r, children: t }), document.body) : null;
1233
+ };
1234
+ function Qe(e) {
1235
+ return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e);
1236
+ }
1237
+ const Lt = ({ config: e }) => {
1238
+ const [t, r] = C(null), [l, n] = C(null);
1239
+ return W(() => {
1240
+ if (!Qe(e.sourceColor)) {
1241
+ r("Invalid hex color");
1242
+ return;
1243
+ }
1244
+ (async () => {
1245
+ try {
1246
+ const i = await ke(e);
1247
+ i.themes.update({
1248
+ sourceColorHex: e.sourceColor
1249
+ }), await i.load(), n(
1250
+ i.plugins.getPlugin(Me).getInstance().outputCss
1251
+ ), console.log("Theme loaded");
1252
+ } catch (i) {
1253
+ console.error("Theme loading failed:", i), r(i instanceof Error ? i.message : "Theme loading failed");
1254
+ }
1255
+ })();
1256
+ }, [e.sourceColor]), t ? (console.error("ThemeProvider error:", t), null) : l ? /* @__PURE__ */ u(
1257
+ "style",
1258
+ {
1259
+ type: "text/tailwindcss",
1260
+ dangerouslySetInnerHTML: { __html: l }
1261
+ }
1262
+ ) : null;
1263
+ }, Ae = ({
1232
1264
  variant: e = "filled",
1233
1265
  disabled: t = !1,
1234
1266
  icon: r,
@@ -1244,29 +1276,29 @@ const Se = (e) => {
1244
1276
  activated: c,
1245
1277
  ref: y,
1246
1278
  size: v = "medium",
1247
- allowShapeTransformation: L = !0,
1248
- transition: N,
1249
- children: E,
1279
+ allowShapeTransformation: N = !0,
1280
+ transition: L,
1281
+ children: I,
1250
1282
  ...w
1251
1283
  }) => {
1252
- if (E && (n = E), !n)
1284
+ if (I && (n = I), !n)
1253
1285
  throw new Error(
1254
1286
  "Button component requires either a label prop or children content"
1255
1287
  );
1256
- const B = l ? "a" : "button", b = V(null), I = y || b, [R, P] = Y.useState(c);
1257
- D(() => {
1258
- P(c);
1259
- }, [c]), N = { duration: 0.3, ...N };
1260
- let W;
1261
- h ? h && (W = (C) => {
1262
- t && C.preventDefault();
1263
- const q = !R;
1264
- P(q), h(q);
1265
- }) : W = (C) => {
1266
- t && C.preventDefault(), p && p(C);
1288
+ const B = l ? "a" : "button", b = V(null), E = y || b, [R, D] = Y.useState(c);
1289
+ W(() => {
1290
+ D(c);
1291
+ }, [c]), L = { duration: 0.3, ...L };
1292
+ let P;
1293
+ h ? h && (P = (S) => {
1294
+ t && S.preventDefault();
1295
+ const O = !R;
1296
+ D(O), h(O);
1297
+ }) : P = (S) => {
1298
+ t && S.preventDefault(), p && p(S);
1267
1299
  };
1268
- const k = Ce({
1269
- allowShapeTransformation: L,
1300
+ const k = Pe({
1301
+ allowShapeTransformation: N,
1270
1302
  size: v,
1271
1303
  disableTextMargins: s,
1272
1304
  shape: o,
@@ -1276,7 +1308,7 @@ const Se = (e) => {
1276
1308
  iconPosition: a,
1277
1309
  loading: f,
1278
1310
  variant: e,
1279
- transition: N,
1311
+ transition: L,
1280
1312
  className: i,
1281
1313
  isActive: R ?? !1,
1282
1314
  onToggle: h,
@@ -1287,26 +1319,26 @@ const Se = (e) => {
1287
1319
  return /* @__PURE__ */ U(
1288
1320
  B,
1289
1321
  {
1290
- ref: I,
1322
+ ref: E,
1291
1323
  href: l,
1292
1324
  className: k.button,
1293
1325
  ...w,
1294
- onClick: W,
1326
+ onClick: P,
1295
1327
  disabled: t,
1296
1328
  "aria-pressed": h ? R : void 0,
1297
- style: { transition: N.duration + "s" },
1329
+ style: { transition: L.duration + "s" },
1298
1330
  children: [
1299
1331
  /* @__PURE__ */ u("div", { className: k.touchTarget }),
1300
1332
  /* @__PURE__ */ u(
1301
1333
  "div",
1302
1334
  {
1303
1335
  className: k.stateLayer,
1304
- style: { transition: N.duration + "s" },
1336
+ style: { transition: L.duration + "s" },
1305
1337
  children: !t && /* @__PURE__ */ u(
1306
1338
  ne,
1307
1339
  {
1308
1340
  colorName: e === "filled" && h && "on-surface-variant" || e === "filled" && !h && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
1309
- triggerRef: I
1341
+ triggerRef: E
1310
1342
  }
1311
1343
  )
1312
1344
  }
@@ -1317,7 +1349,7 @@ const Se = (e) => {
1317
1349
  {
1318
1350
  className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
1319
1351
  children: /* @__PURE__ */ u(
1320
- Ge,
1352
+ Ye,
1321
1353
  {
1322
1354
  className: () => ({
1323
1355
  progressIndicator: "h-6 w-6",
@@ -1354,7 +1386,7 @@ const Se = (e) => {
1354
1386
  ]
1355
1387
  }
1356
1388
  );
1357
- }, xt = ({
1389
+ }, Nt = ({
1358
1390
  variant: e = "outlined",
1359
1391
  className: t,
1360
1392
  children: r,
@@ -1362,15 +1394,15 @@ const Se = (e) => {
1362
1394
  ref: n,
1363
1395
  ...s
1364
1396
  }) => {
1365
- const i = Be({ className: t, isInteractive: l, variant: e, children: r }), a = V(null), f = n || a;
1397
+ const i = $e({ className: t, isInteractive: l, variant: e, children: r }), a = V(null), f = n || a;
1366
1398
  return /* @__PURE__ */ U("div", { ...s, ref: f, className: i.card, children: [
1367
1399
  /* @__PURE__ */ u("div", { className: i.stateLayer, children: l && /* @__PURE__ */ u(ne, { colorName: "on-surface", triggerRef: f }) }),
1368
1400
  r
1369
1401
  ] });
1370
- }, Je = (e, t, r = [0, 1]) => {
1402
+ }, ze = (e, t, r = [0, 1]) => {
1371
1403
  const [l, n] = t, [s, i] = r, f = (Math.max(l, Math.min(e, n)) - l) / (n - l);
1372
1404
  return s + f * (i - s);
1373
- }, Qe = ({
1405
+ }, Te = ({
1374
1406
  className: e,
1375
1407
  children: t,
1376
1408
  width: r = 1,
@@ -1398,7 +1430,7 @@ const Se = (e) => {
1398
1430
  children: t
1399
1431
  }
1400
1432
  );
1401
- }, gt = ({
1433
+ }, It = ({
1402
1434
  variant: e = "hero",
1403
1435
  className: t,
1404
1436
  children: r,
@@ -1411,8 +1443,8 @@ const Se = (e) => {
1411
1443
  scrollSensitivity: o = 1.25,
1412
1444
  ...p
1413
1445
  }) => {
1414
- var H, A;
1415
- const h = V(null), c = l || h, y = $e({
1446
+ var q, A;
1447
+ const h = V(null), c = l || h, y = De({
1416
1448
  className: t,
1417
1449
  children: r,
1418
1450
  variant: e,
@@ -1423,39 +1455,39 @@ const Se = (e) => {
1423
1455
  gap: a,
1424
1456
  scrollSensitivity: o
1425
1457
  }), v = Y.Children.toArray(r).filter(
1426
- (g) => Y.isValidElement(g) && g.type === Qe
1427
- ), L = V(null), [N, E] = S([]), [w, B] = S(null), b = () => {
1428
- var X;
1429
- if (!L.current || !c.current || !w) return [];
1458
+ (g) => Y.isValidElement(g) && g.type === Te
1459
+ ), N = V(null), [L, I] = C([]), [w, B] = C(null), b = () => {
1460
+ var H;
1461
+ if (!N.current || !c.current || !w) return [];
1430
1462
  const { scrollVisible: g, scrollProgress: x } = w;
1431
- function $(O, J) {
1432
- return O.map(
1433
- (T) => (T - J) / Math.abs(O[1] - O[0])
1463
+ function $(X, J) {
1464
+ return X.map(
1465
+ (T) => (T - J) / Math.abs(X[1] - X[0])
1434
1466
  );
1435
1467
  }
1436
- let F = v.map((O, J) => {
1437
- if (!I[J].current || !L.current) return 0;
1468
+ let F = v.map((X, J) => {
1469
+ if (!E[J].current || !N.current) return 0;
1438
1470
  let te = J / (v.length - 1);
1439
1471
  return te > 1 && (te = 1), te < 0 && (te = 0), te;
1440
1472
  });
1441
1473
  F = $(F, x);
1442
- let M = ((((X = c.current) == null ? void 0 : X.clientWidth) ?? g) - (i[0] + a)) / (i[1] + a);
1443
- return F.map((O, J) => ({ value: Math.abs(O), originalIndex: J })).sort((O, J) => O.value - J.value).forEach((O, J) => {
1444
- J === 0 && P(O.originalIndex);
1445
- let T = Je(M, [0, 1], [0, i[1]]);
1446
- T < i[0] && (T = i[0]), M--, F[O.originalIndex] = T;
1474
+ let M = ((((H = c.current) == null ? void 0 : H.clientWidth) ?? g) - (i[0] + a)) / (i[1] + a);
1475
+ return F.map((X, J) => ({ value: Math.abs(X), originalIndex: J })).sort((X, J) => X.value - J.value).forEach((X, J) => {
1476
+ J === 0 && D(X.originalIndex);
1477
+ let T = ze(M, [0, 1], [0, i[1]]);
1478
+ T < i[0] && (T = i[0]), M--, F[X.originalIndex] = T;
1447
1479
  }), F;
1448
- }, I = V([]).current, [R, P] = S(0);
1449
- D(() => {
1480
+ }, E = V([]).current, [R, D] = C(0);
1481
+ W(() => {
1450
1482
  f && f(R);
1451
- }, [R]), I.length !== v.length && v.forEach((g, x) => {
1452
- I[x] || (I[x] = Y.createRef());
1483
+ }, [R]), E.length !== v.length && v.forEach((g, x) => {
1484
+ E[x] || (E[x] = Y.createRef());
1453
1485
  });
1454
- const W = v.map((g, x) => Y.cloneElement(
1486
+ const P = v.map((g, x) => Y.cloneElement(
1455
1487
  g,
1456
1488
  {
1457
- width: N[x],
1458
- ref: I[x],
1489
+ width: L[x],
1490
+ ref: E[x],
1459
1491
  key: x,
1460
1492
  index: x
1461
1493
  }
@@ -1464,80 +1496,80 @@ const Se = (e) => {
1464
1496
  [0, 1],
1465
1497
  [
1466
1498
  0,
1467
- 1 - (((H = c.current) == null ? void 0 : H.clientWidth) ?? 0) / (((A = L == null ? void 0 : L.current) == null ? void 0 : A.clientWidth) ?? 0)
1499
+ 1 - (((q = c.current) == null ? void 0 : q.clientWidth) ?? 0) / (((A = N == null ? void 0 : N.current) == null ? void 0 : A.clientWidth) ?? 0)
1468
1500
  ]
1469
- ), C = oe(
1501
+ ), S = oe(
1470
1502
  m,
1471
1503
  (g) => `${-g * 100}%`
1472
- ), q = (g) => {
1504
+ ), O = (g) => {
1473
1505
  g.scrollTotal > 0 && B(g);
1474
1506
  };
1475
- D(() => {
1507
+ W(() => {
1476
1508
  const g = b();
1477
- E(g);
1509
+ I(g);
1478
1510
  }, [w]);
1479
- const [K, Z] = S(0);
1511
+ const [_, Z] = C(0);
1480
1512
  return fe(() => {
1481
1513
  let g = i[1];
1482
1514
  w && g > w.scrollVisible && (g = w.scrollVisible);
1483
- const x = (g + a) * W.length / o;
1515
+ const x = (g + a) * P.length / o;
1484
1516
  Z(x);
1485
- }, [c, I, w]), /* @__PURE__ */ u("div", { className: y.carousel, ref: c, ...p, children: /* @__PURE__ */ u(
1517
+ }, [c, E, w]), /* @__PURE__ */ u("div", { className: y.carousel, ref: c, ...p, children: /* @__PURE__ */ u(
1486
1518
  he,
1487
1519
  {
1488
1520
  draggable: !0,
1489
1521
  orientation: "horizontal",
1490
- onScroll: q,
1491
- scrollSize: K,
1522
+ onScroll: O,
1523
+ scrollSize: _,
1492
1524
  children: /* @__PURE__ */ u(
1493
1525
  j.div,
1494
1526
  {
1495
1527
  className: y.track,
1496
- ref: L,
1528
+ ref: N,
1497
1529
  style: {
1498
1530
  transitionDuration: "0.5s",
1499
1531
  transitionTimingFunction: "ease-out",
1500
1532
  gap: `${a}px`,
1501
- x: C
1533
+ x: S
1502
1534
  },
1503
- children: W
1535
+ children: P
1504
1536
  }
1505
1537
  )
1506
1538
  }
1507
1539
  ) });
1508
- }, wt = ({
1540
+ }, Et = ({
1509
1541
  orientation: e = "horizontal",
1510
1542
  className: t,
1511
1543
  ...r
1512
1544
  }) => {
1513
- const l = De({ orientation: e, className: t });
1545
+ const l = Ve({ orientation: e, className: t });
1514
1546
  return /* @__PURE__ */ u("hr", { className: l.divider, ...r });
1515
- }, _ = [];
1547
+ }, G = [];
1516
1548
  for (let e = 0; e < 256; ++e)
1517
- _.push((e + 256).toString(16).slice(1));
1518
- function Ae(e, t = 0) {
1519
- return (_[e[t + 0]] + _[e[t + 1]] + _[e[t + 2]] + _[e[t + 3]] + "-" + _[e[t + 4]] + _[e[t + 5]] + "-" + _[e[t + 6]] + _[e[t + 7]] + "-" + _[e[t + 8]] + _[e[t + 9]] + "-" + _[e[t + 10]] + _[e[t + 11]] + _[e[t + 12]] + _[e[t + 13]] + _[e[t + 14]] + _[e[t + 15]]).toLowerCase();
1549
+ G.push((e + 256).toString(16).slice(1));
1550
+ function et(e, t = 0) {
1551
+ return (G[e[t + 0]] + G[e[t + 1]] + G[e[t + 2]] + G[e[t + 3]] + "-" + G[e[t + 4]] + G[e[t + 5]] + "-" + G[e[t + 6]] + G[e[t + 7]] + "-" + G[e[t + 8]] + G[e[t + 9]] + "-" + G[e[t + 10]] + G[e[t + 11]] + G[e[t + 12]] + G[e[t + 13]] + G[e[t + 14]] + G[e[t + 15]]).toLowerCase();
1520
1552
  }
1521
1553
  let ae;
1522
- const ze = new Uint8Array(16);
1523
- function Te() {
1554
+ const tt = new Uint8Array(16);
1555
+ function rt() {
1524
1556
  if (!ae) {
1525
1557
  if (typeof crypto > "u" || !crypto.getRandomValues)
1526
1558
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1527
1559
  ae = crypto.getRandomValues.bind(crypto);
1528
1560
  }
1529
- return ae(ze);
1561
+ return ae(tt);
1530
1562
  }
1531
- const et = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ie = { randomUUID: et };
1563
+ const nt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ie = { randomUUID: nt };
1532
1564
  function ce(e, t, r) {
1533
1565
  var n;
1534
1566
  if (ie.randomUUID && !e)
1535
1567
  return ie.randomUUID();
1536
1568
  e = e || {};
1537
- const l = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Te();
1569
+ const l = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? rt();
1538
1570
  if (l.length < 16)
1539
1571
  throw new Error("Random bytes length must be >= 16");
1540
- return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Ae(l);
1572
+ return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, et(l);
1541
1573
  }
1542
1574
  const ye = ({
1543
1575
  variant: e = "plain",
@@ -1555,10 +1587,10 @@ const ye = ({
1555
1587
  if (!l && !a)
1556
1588
  throw new Error("ToolTip must have a child or a targetRef");
1557
1589
  Array.isArray(o) || (o = [o]), t && !Array.isArray(t) && (t = [t]);
1558
- const h = V(null), c = a || h, [y, v] = S(null), [L] = S(ce()), [N, E] = S(!1), w = V(null);
1559
- D(() => {
1560
- const m = (C) => {
1561
- v(C.detail);
1590
+ const h = V(null), c = a || h, [y, v] = C(null), [N] = C(ce()), [L, I] = C(!1), w = V(null);
1591
+ W(() => {
1592
+ const m = (S) => {
1593
+ v(S.detail);
1562
1594
  };
1563
1595
  return document.addEventListener("tooltip-update", m), () => {
1564
1596
  document.removeEventListener(
@@ -1566,14 +1598,14 @@ const ye = ({
1566
1598
  m
1567
1599
  );
1568
1600
  };
1569
- }, []), D(() => {
1570
- w.current && clearTimeout(w.current), y ? E(y === L) : w.current = setTimeout(() => {
1571
- E(!1);
1601
+ }, []), W(() => {
1602
+ w.current && clearTimeout(w.current), y ? I(y === N) : w.current = setTimeout(() => {
1603
+ I(!1);
1572
1604
  }, 1200);
1573
- }, [y, L]);
1605
+ }, [y, N]);
1574
1606
  const B = () => {
1575
1607
  if (o.includes("hover")) {
1576
- const m = new CustomEvent("tooltip-update", { detail: L });
1608
+ const m = new CustomEvent("tooltip-update", { detail: N });
1577
1609
  document.dispatchEvent(m);
1578
1610
  }
1579
1611
  }, b = () => {
@@ -1581,38 +1613,38 @@ const ye = ({
1581
1613
  const m = new CustomEvent("tooltip-update", { detail: null });
1582
1614
  document.dispatchEvent(m);
1583
1615
  }
1584
- }, I = () => {
1616
+ }, E = () => {
1585
1617
  if (o.includes("click")) {
1586
1618
  const m = new CustomEvent("tooltip-update", {
1587
- detail: N ? null : L
1619
+ detail: L ? null : N
1588
1620
  });
1589
1621
  document.dispatchEvent(m);
1590
1622
  }
1591
1623
  }, R = () => {
1592
1624
  if (o.includes("focus")) {
1593
- const m = new CustomEvent("tooltip-update", { detail: L });
1625
+ const m = new CustomEvent("tooltip-update", { detail: N });
1594
1626
  document.dispatchEvent(m);
1595
1627
  }
1596
- }, P = () => {
1628
+ }, D = () => {
1597
1629
  if (o.includes("focus")) {
1598
1630
  const m = new CustomEvent("tooltip-update", { detail: null });
1599
1631
  document.dispatchEvent(m);
1600
1632
  }
1601
1633
  };
1602
- D(() => {
1634
+ W(() => {
1603
1635
  if (c != null && c.current) {
1604
1636
  const m = c.current;
1605
- return m.addEventListener("mouseenter", B), m.addEventListener("mouseleave", b), m.addEventListener("click", I), m.addEventListener("focus", R), m.addEventListener("blur", P), () => {
1606
- m.removeEventListener("mouseenter", B), m.removeEventListener("mouseleave", b), m.removeEventListener("click", I), m.removeEventListener("focus", R), m.removeEventListener("blur", P);
1637
+ return m.addEventListener("mouseenter", B), m.addEventListener("mouseleave", b), m.addEventListener("click", E), m.addEventListener("focus", R), m.addEventListener("blur", D), () => {
1638
+ m.removeEventListener("mouseenter", B), m.removeEventListener("mouseleave", b), m.removeEventListener("click", E), m.removeEventListener("focus", R), m.removeEventListener("blur", D);
1607
1639
  };
1608
1640
  }
1609
- }, [c, o, L, N]);
1610
- const W = !a && ee(l) ? le(l, { ref: h }) : l;
1641
+ }, [c, o, N, L]);
1642
+ const P = !a && ee(l) ? le(l, { ref: h }) : l;
1611
1643
  if (!i && typeof window < "u" && c != null && c.current && !i) {
1612
- const m = c.current.getBoundingClientRect(), C = window.innerWidth, q = window.innerHeight, K = m.left / C, Z = m.top / q;
1613
- e === "plain" ? K < 1 / 3 ? i = "right" : K > 2 / 3 ? i = "left" : i = Z > 0.5 ? "top" : "bottom" : K < 1 / 2 && Z < 1 / 2 ? i = "bottom-right" : K > 1 / 2 && Z < 1 / 2 ? i = "bottom-left" : K > 1 / 2 && Z > 1 / 2 ? i = "top-left" : K < 1 / 2 && Z > 1 / 2 && (i = "top-right");
1644
+ const m = c.current.getBoundingClientRect(), S = window.innerWidth, O = window.innerHeight, _ = m.left / S, Z = m.top / O;
1645
+ e === "plain" ? _ < 1 / 3 ? i = "right" : _ > 2 / 3 ? i = "left" : i = Z > 0.5 ? "top" : "bottom" : _ < 1 / 2 && Z < 1 / 2 ? i = "bottom-right" : _ > 1 / 2 && Z < 1 / 2 ? i = "bottom-left" : _ > 1 / 2 && Z > 1 / 2 ? i = "top-left" : _ < 1 / 2 && Z > 1 / 2 && (i = "top-right");
1614
1646
  }
1615
- const k = Ke({
1647
+ const k = Ge({
1616
1648
  variant: e,
1617
1649
  buttons: t,
1618
1650
  className: r,
@@ -1624,8 +1656,8 @@ const ye = ({
1624
1656
  children: l
1625
1657
  });
1626
1658
  return /* @__PURE__ */ U(re, { children: [
1627
- W,
1628
- /* @__PURE__ */ u(z, { children: N && /* @__PURE__ */ u(Ye, { targetRef: c, children: /* @__PURE__ */ u(
1659
+ P,
1660
+ /* @__PURE__ */ u(z, { children: L && /* @__PURE__ */ u(Je, { targetRef: c, children: /* @__PURE__ */ u(
1629
1661
  j.div,
1630
1662
  {
1631
1663
  initial: { opacity: y ? 1 : 0 },
@@ -1649,14 +1681,14 @@ const ye = ({
1649
1681
  children: [
1650
1682
  n && /* @__PURE__ */ u("div", { className: k.subHead, children: n }),
1651
1683
  /* @__PURE__ */ u("div", { className: k.supportingText, children: s }),
1652
- t && /* @__PURE__ */ u("div", { className: k.actions, children: Array.isArray(t) && t.map((m, C) => /* @__PURE__ */ u(
1653
- Ze,
1684
+ t && /* @__PURE__ */ u("div", { className: k.actions, children: Array.isArray(t) && t.map((m, S) => /* @__PURE__ */ u(
1685
+ Ae,
1654
1686
  {
1655
1687
  size: "small",
1656
1688
  variant: "text",
1657
1689
  ...m
1658
1690
  },
1659
- C
1691
+ S
1660
1692
  )) })
1661
1693
  ]
1662
1694
  }
@@ -1682,7 +1714,7 @@ const ye = ({
1682
1714
  throw new Error(
1683
1715
  "FAB component requires either a label prop or children content"
1684
1716
  );
1685
- const c = n ? "a" : "button", y = Pe({
1717
+ const c = n ? "a" : "button", y = Ue({
1686
1718
  href: n,
1687
1719
  icon: i,
1688
1720
  isExtended: a,
@@ -1694,7 +1726,7 @@ const ye = ({
1694
1726
  children: t
1695
1727
  });
1696
1728
  o = { duration: 0.3, ...o };
1697
- const v = V(null), L = f || v, N = {
1729
+ const v = V(null), N = f || v, L = {
1698
1730
  visible: {
1699
1731
  width: "auto",
1700
1732
  marginLeft: 12,
@@ -1724,7 +1756,7 @@ const ye = ({
1724
1756
  c,
1725
1757
  {
1726
1758
  ...h,
1727
- ref: L,
1759
+ ref: N,
1728
1760
  href: n,
1729
1761
  "aria-label": a ? void 0 : t,
1730
1762
  className: y.fab,
@@ -1734,7 +1766,7 @@ const ye = ({
1734
1766
  {
1735
1767
  trigger: a ? null : void 0,
1736
1768
  text: t,
1737
- targetRef: L
1769
+ targetRef: N
1738
1770
  }
1739
1771
  ),
1740
1772
  /* @__PURE__ */ u("span", { className: y.stateLayer, children: /* @__PURE__ */ u(
@@ -1746,14 +1778,14 @@ const ye = ({
1746
1778
  "on-secondary-container": r == "secondary",
1747
1779
  "on-tertiary-container": r == "tertiary"
1748
1780
  }),
1749
- triggerRef: L
1781
+ triggerRef: N
1750
1782
  }
1751
1783
  ) }),
1752
1784
  /* @__PURE__ */ u(Q, { icon: i, className: y.icon }),
1753
1785
  /* @__PURE__ */ u(z, { children: a && /* @__PURE__ */ u(
1754
1786
  j.span,
1755
1787
  {
1756
- variants: N,
1788
+ variants: L,
1757
1789
  initial: "hidden",
1758
1790
  animate: "visible",
1759
1791
  exit: "hidden",
@@ -1780,9 +1812,9 @@ const ye = ({
1780
1812
  className: c,
1781
1813
  ref: y,
1782
1814
  width: v = "default",
1783
- shape: L = "rounded",
1784
- allowShapeTransformation: N = !0,
1785
- transition: E,
1815
+ shape: N = "rounded",
1816
+ allowShapeTransformation: L = !0,
1817
+ transition: I,
1786
1818
  children: w,
1787
1819
  ...B
1788
1820
  }) => {
@@ -1791,19 +1823,19 @@ const ye = ({
1791
1823
  "IconButton component requires either a label prop or children content to provide an accessible aria-label"
1792
1824
  );
1793
1825
  n || (n = s);
1794
- const [b, I] = Y.useState(a);
1826
+ const [b, E] = Y.useState(a);
1795
1827
  let R;
1796
- i ? i && (R = (C) => {
1797
- r && C.preventDefault(), I(!b), i(!!b);
1798
- }, o = b && h || o) : R = (C) => {
1799
- r && C.preventDefault(), f && f(C);
1800
- }, D(() => {
1801
- I(a);
1828
+ i ? i && (R = (S) => {
1829
+ r && S.preventDefault(), E(!b), i(!!b);
1830
+ }, o = b && h || o) : R = (S) => {
1831
+ r && S.preventDefault(), f && f(S);
1832
+ }, W(() => {
1833
+ E(a);
1802
1834
  }, [a]);
1803
- const P = t ? "a" : "button", W = Ve({
1804
- transition: E,
1805
- shape: L,
1806
- allowShapeTransformation: N,
1835
+ const D = t ? "a" : "button", P = je({
1836
+ transition: I,
1837
+ shape: N,
1838
+ allowShapeTransformation: L,
1807
1839
  width: v,
1808
1840
  href: t,
1809
1841
  activated: b,
@@ -1819,13 +1851,13 @@ const ye = ({
1819
1851
  children: s,
1820
1852
  ...B
1821
1853
  }), k = V(null), m = y || k;
1822
- return E = { duration: 0.3, ...E }, /* @__PURE__ */ U(
1823
- P,
1854
+ return I = { duration: 0.3, ...I }, /* @__PURE__ */ U(
1855
+ D,
1824
1856
  {
1825
1857
  disabled: r,
1826
1858
  href: t,
1827
- style: { transition: E.duration + "s" },
1828
- className: W.iconButton,
1859
+ style: { transition: I.duration + "s" },
1860
+ className: P.iconButton,
1829
1861
  "aria-label": s,
1830
1862
  ...B,
1831
1863
  title: void 0,
@@ -1840,12 +1872,12 @@ const ye = ({
1840
1872
  text: n
1841
1873
  }
1842
1874
  ),
1843
- /* @__PURE__ */ u("div", { className: W.touchTarget }),
1875
+ /* @__PURE__ */ u("div", { className: P.touchTarget }),
1844
1876
  /* @__PURE__ */ u(
1845
1877
  "div",
1846
1878
  {
1847
- className: W.stateLayer,
1848
- style: { transition: E.duration + "s" },
1879
+ className: P.stateLayer,
1880
+ style: { transition: I.duration + "s" },
1849
1881
  children: !r && /* @__PURE__ */ u(
1850
1882
  ne,
1851
1883
  {
@@ -1872,11 +1904,11 @@ const ye = ({
1872
1904
  )
1873
1905
  }
1874
1906
  ),
1875
- o && /* @__PURE__ */ u(Q, { icon: o, className: W.icon })
1907
+ o && /* @__PURE__ */ u(Q, { icon: o, className: P.icon })
1876
1908
  ]
1877
1909
  }
1878
1910
  );
1879
- }, vt = ({
1911
+ }, kt = ({
1880
1912
  className: e,
1881
1913
  valueFormatter: t,
1882
1914
  step: r = 10,
@@ -1904,17 +1936,17 @@ const ye = ({
1904
1936
  }, c = (g = !1) => g ? i : i == 1 / 0 ? a[(a == null ? void 0 : a.length) - 1].value : i, y = (g = !1) => g ? s : s == -1 / 0 ? a[0].value : s, v = (g) => {
1905
1937
  const x = y(!1);
1906
1938
  return (c(!1) - x) * g / 100 + x;
1907
- }, [L, N] = S(!1), E = V(null), w = f || E, [B, b] = S(n), [I, R] = S(h(n)), [P, W] = S(!1), k = (g) => {
1908
- W(!0), N(!0), q(g);
1939
+ }, [N, L] = C(!1), I = V(null), w = f || I, [B, b] = C(n), [E, R] = C(h(n)), [D, P] = C(!1), k = (g) => {
1940
+ P(!0), L(!0), O(g);
1909
1941
  }, m = () => {
1910
- W(!1), N(!1);
1942
+ P(!1), L(!1);
1911
1943
  };
1912
- D(() => (P ? (window.addEventListener("mouseup", m), window.addEventListener("mousemove", q), window.addEventListener("touchend", m), window.addEventListener("touchmove", q)) : (window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", q), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", q)), () => {
1913
- window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", q), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", q);
1914
- }), [P]);
1915
- const C = je({
1944
+ W(() => (D ? (window.addEventListener("mouseup", m), window.addEventListener("mousemove", O), window.addEventListener("touchend", m), window.addEventListener("touchmove", O)) : (window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", O)), () => {
1945
+ window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", O);
1946
+ }), [D]);
1947
+ const S = He({
1916
1948
  className: e,
1917
- isChanging: L,
1949
+ isChanging: N,
1918
1950
  marks: a,
1919
1951
  max: i,
1920
1952
  min: s,
@@ -1923,13 +1955,13 @@ const ye = ({
1923
1955
  value: B,
1924
1956
  valueFormatter: t,
1925
1957
  onChange: o
1926
- }), q = (g) => {
1958
+ }), O = (g) => {
1927
1959
  const x = w == null ? void 0 : w.current;
1928
1960
  if (x) {
1929
1961
  const $ = x.getBoundingClientRect().left, M = ((g.type === "touchmove" || g.type === "touchstart" ? g.touches[0].clientX : g.clientX) - $) / x.offsetWidth * 100;
1930
- K({ pourcent: M });
1962
+ _({ pourcent: M });
1931
1963
  }
1932
- }, K = ({
1964
+ }, _ = ({
1933
1965
  pourcent: g,
1934
1966
  value: x
1935
1967
  }) => {
@@ -1956,13 +1988,13 @@ const ye = ({
1956
1988
  } else
1957
1989
  return;
1958
1990
  r != null ? x = Math.round((x - y()) / r) * r + y() : a && (x = a.reduce(($, F, M) => {
1959
- let X = F.value === 1 / 0 ? c() : F.value === -1 / 0 ? y() : F.value, O = $.value === 1 / 0 ? c() : $.value === -1 / 0 ? y() : $.value;
1960
- return X = Math.abs(X - x), O = Math.abs(O - x), X < O ? F : $;
1991
+ let H = F.value === 1 / 0 ? c() : F.value === -1 / 0 ? y() : F.value, X = $.value === 1 / 0 ? c() : $.value === -1 / 0 ? y() : $.value;
1992
+ return H = Math.abs(H - x), X = Math.abs(X - x), H < X ? F : $;
1961
1993
  }).value), x >= c() && (x = c(!0)), x <= y() && (x = y(!0)), g = h(x), b(x), R(g), o && o(x);
1962
- }, [Z, H] = S(0);
1963
- return D(() => {
1994
+ }, [Z, q] = C(0);
1995
+ return W(() => {
1964
1996
  const g = () => {
1965
- w.current && H(w.current.offsetWidth);
1997
+ w.current && q(w.current.offsetWidth);
1966
1998
  };
1967
1999
  return g(), window.addEventListener("resize", g), () => {
1968
2000
  window.removeEventListener("resize", g);
@@ -1975,18 +2007,18 @@ const ye = ({
1975
2007
  switch (g.key) {
1976
2008
  case "ArrowRight":
1977
2009
  if (r)
1978
- K({ value: B + r });
2010
+ _({ value: B + r });
1979
2011
  else if (a) {
1980
2012
  const x = a.find(($) => $.value > B);
1981
- x && K({ value: x.value });
2013
+ x && _({ value: x.value });
1982
2014
  }
1983
2015
  break;
1984
2016
  case "ArrowLeft":
1985
2017
  if (r)
1986
- K({ value: B - r });
2018
+ _({ value: B - r });
1987
2019
  else if (a) {
1988
2020
  const x = a.slice(0).reverse().find(($, F, M) => B === 1 / 0 ? F === 1 : $.value < B);
1989
- x && K({ value: x.value });
2021
+ x && _({ value: x.value });
1990
2022
  }
1991
2023
  break;
1992
2024
  default:
@@ -1998,9 +2030,9 @@ const ye = ({
1998
2030
  "aria-valuemax": c(!0),
1999
2031
  "aria-valuenow": B,
2000
2032
  "aria-valuetext": B.toString(),
2001
- className: C.slider,
2033
+ className: S.slider,
2002
2034
  onMouseDown: k,
2003
- onClick: q,
2035
+ onClick: O,
2004
2036
  ref: w,
2005
2037
  onTouchStart: k,
2006
2038
  onDragStart: (g) => g.preventDefault(),
@@ -2010,14 +2042,14 @@ const ye = ({
2010
2042
  /* @__PURE__ */ u(
2011
2043
  "div",
2012
2044
  {
2013
- className: C.activeTrack,
2014
- style: { flex: I / 100 }
2045
+ className: S.activeTrack,
2046
+ style: { flex: E / 100 }
2015
2047
  }
2016
2048
  ),
2017
- /* @__PURE__ */ u("div", { className: C.handle, children: /* @__PURE__ */ u(z, { children: L && /* @__PURE__ */ u(
2049
+ /* @__PURE__ */ u("div", { className: S.handle, children: /* @__PURE__ */ u(z, { children: N && /* @__PURE__ */ u(
2018
2050
  j.div,
2019
2051
  {
2020
- className: C.valueIndicator,
2052
+ className: S.valueIndicator,
2021
2053
  initial: "hidden",
2022
2054
  animate: "visible",
2023
2055
  exit: "hidden",
@@ -2037,8 +2069,8 @@ const ye = ({
2037
2069
  /* @__PURE__ */ u(
2038
2070
  "div",
2039
2071
  {
2040
- className: C.inactiveTrack,
2041
- style: { flex: 1 - I / 100 }
2072
+ className: S.inactiveTrack,
2073
+ style: { flex: 1 - E / 100 }
2042
2074
  }
2043
2075
  ),
2044
2076
  /* @__PURE__ */ u(
@@ -2047,11 +2079,11 @@ const ye = ({
2047
2079
  className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
2048
2080
  children: a && a.map((g, x) => {
2049
2081
  let $ = null;
2050
- const F = (L ? 9 : 10) / Z * 100, M = h(g.value);
2051
- return M <= I - F ? $ = !0 : M >= I + F && ($ = !1), /* @__PURE__ */ u(
2082
+ const F = (N ? 9 : 10) / Z * 100, M = h(g.value);
2083
+ return M <= E - F ? $ = !0 : M >= E + F && ($ = !1), /* @__PURE__ */ u(
2052
2084
  "div",
2053
2085
  {
2054
- className: d(C.dot, {
2086
+ className: d(S.dot, {
2055
2087
  "bg-primary-container": $ != null && $,
2056
2088
  "bg-primary": $ != null && !$
2057
2089
  }),
@@ -2073,7 +2105,7 @@ const ye = ({
2073
2105
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2074
2106
  * Copyright 2025 Fonticons, Inc.
2075
2107
  */
2076
- var tt = {
2108
+ var lt = {
2077
2109
  prefix: "fas",
2078
2110
  iconName: "circle-exclamation",
2079
2111
  icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-376c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM229.3 352a26.7 26.7 0 1 1 53.3 0 26.7 26.7 0 1 1 -53.3 0z"]
@@ -2081,12 +2113,12 @@ var tt = {
2081
2113
  prefix: "fas",
2082
2114
  iconName: "xmark",
2083
2115
  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"]
2084
- }, rt = {
2116
+ }, ot = {
2085
2117
  prefix: "fas",
2086
2118
  iconName: "bars",
2087
2119
  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"]
2088
2120
  };
2089
- const bt = ({
2121
+ const Mt = ({
2090
2122
  message: e,
2091
2123
  className: t,
2092
2124
  duration: r,
@@ -2094,7 +2126,7 @@ const bt = ({
2094
2126
  onClose: n,
2095
2127
  ...s
2096
2128
  }) => {
2097
- const [i, a] = S(!0), f = Fe({
2129
+ const [i, a] = C(!0), f = Xe({
2098
2130
  className: t,
2099
2131
  closeIcon: l,
2100
2132
  duration: r,
@@ -2102,7 +2134,7 @@ const bt = ({
2102
2134
  onClose: n,
2103
2135
  message: e
2104
2136
  });
2105
- D(() => {
2137
+ W(() => {
2106
2138
  r && setTimeout(() => {
2107
2139
  o();
2108
2140
  }, r);
@@ -2133,7 +2165,7 @@ const bt = ({
2133
2165
  ] })
2134
2166
  }
2135
2167
  ) });
2136
- }, Nt = ({
2168
+ }, Ct = ({
2137
2169
  selected: e = !1,
2138
2170
  className: t,
2139
2171
  activeIcon: r,
@@ -2145,13 +2177,13 @@ const bt = ({
2145
2177
  ref: f,
2146
2178
  ...o
2147
2179
  }) => {
2148
- const [p, h] = S(e), c = (w) => {
2180
+ const [p, h] = C(e), c = (w) => {
2149
2181
  l || (v(), i && i(w));
2150
2182
  }, y = (w) => {
2151
2183
  l || ((w.key === " " || w.key === "Enter") && (w.preventDefault(), v()), a && a(w));
2152
2184
  }, v = () => {
2153
2185
  h(!p), s == null || s(!p);
2154
- }, L = Xe({
2186
+ }, N = Oe({
2155
2187
  className: t,
2156
2188
  isSelected: p,
2157
2189
  activeIcon: r,
@@ -2159,7 +2191,7 @@ const bt = ({
2159
2191
  disabled: l,
2160
2192
  selected: p,
2161
2193
  onChange: s
2162
- }), N = V(null), E = f || N;
2194
+ }), L = V(null), I = f || L;
2163
2195
  return /* @__PURE__ */ U(
2164
2196
  j.div,
2165
2197
  {
@@ -2168,8 +2200,8 @@ const bt = ({
2168
2200
  tabIndex: l ? -1 : 0,
2169
2201
  onKeyDown: y,
2170
2202
  onClick: c,
2171
- ref: E,
2172
- className: L.switch,
2203
+ ref: I,
2204
+ className: N.switch,
2173
2205
  ...o,
2174
2206
  children: [
2175
2207
  /* @__PURE__ */ u("input", { type: "hidden", value: p ? "1" : "0" }),
@@ -2183,23 +2215,23 @@ const bt = ({
2183
2215
  stiffness: 700,
2184
2216
  damping: 30
2185
2217
  },
2186
- className: L.handleContainer,
2218
+ className: N.handleContainer,
2187
2219
  children: [
2188
- /* @__PURE__ */ u("div", { className: L.handle, children: (p ? r : n) && /* @__PURE__ */ u(
2220
+ /* @__PURE__ */ u("div", { className: N.handle, children: (p ? r : n) && /* @__PURE__ */ u(
2189
2221
  Q,
2190
2222
  {
2191
- className: L.icon,
2223
+ className: N.icon,
2192
2224
  icon: p ? r : n
2193
2225
  }
2194
2226
  ) }),
2195
- /* @__PURE__ */ u("div", { className: L.handleStateLayer })
2227
+ /* @__PURE__ */ u("div", { className: N.handleStateLayer })
2196
2228
  ]
2197
2229
  }
2198
2230
  )
2199
2231
  ]
2200
2232
  }
2201
2233
  );
2202
- }, nt = ({
2234
+ }, at = ({
2203
2235
  className: e,
2204
2236
  onClick: t,
2205
2237
  label: r,
@@ -2216,12 +2248,12 @@ const bt = ({
2216
2248
  ref: y,
2217
2249
  ...v
2218
2250
  }) => {
2219
- const L = V(null), N = y || L, [E, w] = S(c);
2220
- D(() => {
2251
+ const N = V(null), L = y || N, [I, w] = C(c);
2252
+ W(() => {
2221
2253
  c && i == null ? w(!0) : w(i == o && o != null);
2222
- }, [i]), D(() => {
2254
+ }, [i]), W(() => {
2223
2255
  i == o && p && p({
2224
- ref: N,
2256
+ ref: L,
2225
2257
  index: o || 0,
2226
2258
  label: r,
2227
2259
  icon: s
@@ -2229,18 +2261,18 @@ const bt = ({
2229
2261
  }, [i]);
2230
2262
  const B = n ? "a" : "button", b = (R) => {
2231
2263
  a && a(o ?? null), t && t(R);
2232
- }, I = Oe({
2264
+ }, E = qe({
2233
2265
  className: e,
2234
2266
  onTabSelected: p,
2235
2267
  scrollable: h,
2236
2268
  selectedTab: i,
2237
2269
  index: o,
2238
2270
  tabsId: f,
2239
- selected: E,
2271
+ selected: I,
2240
2272
  variant: l,
2241
2273
  icon: s,
2242
2274
  label: r,
2243
- isSelected: E,
2275
+ isSelected: I,
2244
2276
  setSelectedTab: a,
2245
2277
  href: n
2246
2278
  });
@@ -2249,28 +2281,28 @@ const bt = ({
2249
2281
  {
2250
2282
  ...v,
2251
2283
  role: "tab",
2252
- "aria-selected": E,
2253
- ref: N,
2284
+ "aria-selected": I,
2285
+ ref: L,
2254
2286
  href: n,
2255
- className: I.tab,
2287
+ className: E.tab,
2256
2288
  onClick: b,
2257
2289
  ...v,
2258
2290
  children: [
2259
- /* @__PURE__ */ u("span", { className: I.stateLayer, children: /* @__PURE__ */ u(
2291
+ /* @__PURE__ */ u("span", { className: E.stateLayer, children: /* @__PURE__ */ u(
2260
2292
  ne,
2261
2293
  {
2262
- colorName: l === "primary" && E ? "primary" : "on-surface",
2263
- triggerRef: N
2294
+ colorName: l === "primary" && I ? "primary" : "on-surface",
2295
+ triggerRef: L
2264
2296
  }
2265
2297
  ) }),
2266
- /* @__PURE__ */ U("span", { className: I.content, children: [
2267
- s && /* @__PURE__ */ u(Q, { icon: s, className: I.icon }),
2268
- /* @__PURE__ */ u("span", { className: I.label, children: r }),
2269
- E && /* @__PURE__ */ u(
2298
+ /* @__PURE__ */ U("span", { className: E.content, children: [
2299
+ s && /* @__PURE__ */ u(Q, { icon: s, className: E.icon }),
2300
+ /* @__PURE__ */ u("span", { className: E.label, children: r }),
2301
+ I && /* @__PURE__ */ u(
2270
2302
  j.span,
2271
2303
  {
2272
2304
  layoutId: `underline-${f}`,
2273
- className: I.underline,
2305
+ className: E.underline,
2274
2306
  transition: { duration: 0.3 }
2275
2307
  }
2276
2308
  )
@@ -2278,7 +2310,7 @@ const bt = ({
2278
2310
  ]
2279
2311
  }
2280
2312
  );
2281
- }, Lt = ({
2313
+ }, Rt = ({
2282
2314
  variant: e = "primary",
2283
2315
  onTabSelected: t,
2284
2316
  children: r,
@@ -2287,22 +2319,22 @@ const bt = ({
2287
2319
  setSelectedTab: s,
2288
2320
  scrollable: i = !1
2289
2321
  }) => {
2290
- const [a, f] = S(
2322
+ const [a, f] = C(
2291
2323
  null
2292
2324
  );
2293
2325
  let o;
2294
2326
  n == 0 || n != null ? o = n : o = a;
2295
2327
  const p = s || f, h = Y.Children.toArray(r).filter(
2296
- (N) => Y.isValidElement(N) && N.type === nt
2297
- ), c = Y.useRef(null), y = (N) => {
2298
- if (t == null || t(N), i) {
2299
- const E = c.current, w = N.ref.current;
2300
- if (E && w) {
2301
- const B = w.offsetLeft + w.offsetWidth / 2 - E.offsetWidth / 2;
2302
- E.scrollTo({ left: B, behavior: "smooth" });
2328
+ (L) => Y.isValidElement(L) && L.type === at
2329
+ ), c = Y.useRef(null), y = (L) => {
2330
+ if (t == null || t(L), i) {
2331
+ const I = c.current, w = L.ref.current;
2332
+ if (I && w) {
2333
+ const B = w.offsetLeft + w.offsetWidth / 2 - I.offsetWidth / 2;
2334
+ I.scrollTo({ left: B, behavior: "smooth" });
2303
2335
  }
2304
2336
  }
2305
- }, v = ve(() => ce(), []), L = qe({
2337
+ }, v = ve(() => ce(), []), N = _e({
2306
2338
  children: r,
2307
2339
  onTabSelected: t,
2308
2340
  scrollable: i,
@@ -2311,9 +2343,9 @@ const bt = ({
2311
2343
  className: l,
2312
2344
  variant: e
2313
2345
  });
2314
- return /* @__PURE__ */ u("div", { ref: c, role: "tablist", className: L.tabs, children: h.map((N, E) => Y.cloneElement(N, {
2315
- key: E,
2316
- index: E,
2346
+ return /* @__PURE__ */ u("div", { ref: c, role: "tablist", className: N.tabs, children: h.map((L, I) => Y.cloneElement(L, {
2347
+ key: I,
2348
+ index: I,
2317
2349
  variant: e,
2318
2350
  selectedTab: o,
2319
2351
  setSelectedTab: p,
@@ -2321,7 +2353,7 @@ const bt = ({
2321
2353
  onTabSelected: y,
2322
2354
  scrollable: i
2323
2355
  })) });
2324
- }, Et = ({
2356
+ }, St = ({
2325
2357
  variant: e = "filled",
2326
2358
  disabled: t = !1,
2327
2359
  errorText: r,
@@ -2337,33 +2369,33 @@ const bt = ({
2337
2369
  textLine: c = "singleLine",
2338
2370
  autoComplete: y = "on",
2339
2371
  onChange: v,
2340
- value: L,
2341
- showSupportingText: N = !1,
2342
- ...E
2372
+ value: N,
2373
+ showSupportingText: L = !1,
2374
+ ...I
2343
2375
  }) => {
2344
- const [w, B] = S(L ?? ""), [b, I] = S(!1), [R, P] = S(!1), [W, k] = S(
2345
- N
2376
+ const [w, B] = C(N ?? ""), [b, E] = C(!1), [R, D] = C(!1), [P, k] = C(
2377
+ L
2346
2378
  );
2347
- D(() => {
2348
- B(L ?? "");
2349
- }, [L]), D(() => {
2350
- r != null && r.length ? P(!0) : P(!1);
2351
- }, [r]), D(() => {
2352
- N ? k(N) : f != null && f.length ? k(!0) : k(!1);
2353
- }, [W, f]), D(() => {
2354
- b && P(!1);
2379
+ W(() => {
2380
+ B(N ?? "");
2381
+ }, [N]), W(() => {
2382
+ r != null && r.length ? D(!0) : D(!1);
2383
+ }, [r]), W(() => {
2384
+ L ? k(L) : f != null && f.length ? k(!0) : k(!1);
2385
+ }, [P, f]), W(() => {
2386
+ b && D(!1);
2355
2387
  }, [b]);
2356
- const m = Y.useRef(null), C = () => {
2388
+ const m = Y.useRef(null), S = () => {
2357
2389
  m.current && !b && m.current.focus();
2358
- }, q = () => {
2359
- I(!0);
2360
- }, K = ($) => {
2390
+ }, O = () => {
2391
+ E(!0);
2392
+ }, _ = ($) => {
2361
2393
  const F = $.target.value;
2362
- B(F), P(!1), typeof v == "function" && v(F);
2394
+ B(F), D(!1), typeof v == "function" && v(F);
2363
2395
  }, Z = () => {
2364
- I(!1);
2365
- }, H = He({
2366
- showSupportingText: W,
2396
+ E(!1);
2397
+ }, q = Ke({
2398
+ showSupportingText: P,
2367
2399
  isFocused: b,
2368
2400
  showErrorIcon: R,
2369
2401
  disabled: t,
@@ -2382,11 +2414,11 @@ const bt = ({
2382
2414
  value: w,
2383
2415
  suffix: n,
2384
2416
  textLine: c
2385
- }), [A] = S(ce());
2417
+ }), [A] = C(ce());
2386
2418
  let g, x;
2387
2419
  switch (c) {
2388
2420
  case "multiLine":
2389
- x = ke, g = {};
2421
+ x = Ce, g = {};
2390
2422
  break;
2391
2423
  case "textAreas":
2392
2424
  x = "textarea", g = {};
@@ -2396,10 +2428,10 @@ const bt = ({
2396
2428
  x = "input", g = { type: h };
2397
2429
  break;
2398
2430
  }
2399
- return /* @__PURE__ */ U("div", { className: H.textField, ...E, children: [
2400
- /* @__PURE__ */ U("fieldset", { onClick: C, className: H.content, children: [
2401
- /* @__PURE__ */ u("div", { className: H.stateLayer }),
2402
- p && /* @__PURE__ */ u("div", { className: H.leadingIcon, children: Y.isValidElement(p) ? p : /* @__PURE__ */ u(Q, { className: "w-5 h-5", icon: p }) }),
2431
+ return /* @__PURE__ */ U("div", { className: q.textField, ...I, children: [
2432
+ /* @__PURE__ */ U("fieldset", { onClick: S, className: q.content, children: [
2433
+ /* @__PURE__ */ u("div", { className: q.stateLayer }),
2434
+ p && /* @__PURE__ */ u("div", { className: q.leadingIcon, children: Y.isValidElement(p) ? p : /* @__PURE__ */ u(Q, { className: "w-5 h-5", icon: p }) }),
2403
2435
  !(!b && !w.length || e == "filled") && /* @__PURE__ */ u(
2404
2436
  j.legend,
2405
2437
  {
@@ -2414,7 +2446,7 @@ const bt = ({
2414
2446
  children: /* @__PURE__ */ u("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ u(
2415
2447
  j.span,
2416
2448
  {
2417
- className: H.label,
2449
+ className: q.label,
2418
2450
  transition: { duration: 0.3 },
2419
2451
  layoutId: A,
2420
2452
  children: i
@@ -2438,7 +2470,7 @@ const bt = ({
2438
2470
  children: /* @__PURE__ */ u(
2439
2471
  j.span,
2440
2472
  {
2441
- className: H.label,
2473
+ className: q.label,
2442
2474
  transition: { duration: 0.3 },
2443
2475
  layoutId: e == "outlined" ? A : void 0,
2444
2476
  children: i
@@ -2451,12 +2483,12 @@ const bt = ({
2451
2483
  {
2452
2484
  ref: m,
2453
2485
  value: w,
2454
- onChange: K,
2455
- className: H.input,
2486
+ onChange: _,
2487
+ className: q.input,
2456
2488
  id: s,
2457
2489
  name: s,
2458
2490
  placeholder: b ? l ?? void 0 : "",
2459
- onFocus: q,
2491
+ onFocus: O,
2460
2492
  onBlur: Z,
2461
2493
  disabled: t,
2462
2494
  autoComplete: y,
@@ -2466,7 +2498,7 @@ const bt = ({
2466
2498
  }
2467
2499
  )
2468
2500
  ] }),
2469
- /* @__PURE__ */ u("div", { className: H.activeIndicator }),
2501
+ /* @__PURE__ */ u("div", { className: q.activeIndicator }),
2470
2502
  !R && /* @__PURE__ */ U(re, { children: [
2471
2503
  o && /* @__PURE__ */ u(
2472
2504
  "div",
@@ -2474,31 +2506,31 @@ const bt = ({
2474
2506
  onClick: ($) => {
2475
2507
  $.stopPropagation();
2476
2508
  },
2477
- className: H.trailingIcon,
2509
+ className: q.trailingIcon,
2478
2510
  children: Y.isValidElement(o) ? o : /* @__PURE__ */ u(Q, { className: "h-5", icon: o })
2479
2511
  }
2480
2512
  ),
2481
- !o && n && /* @__PURE__ */ u("span", { className: H.suffix, children: n })
2513
+ !o && n && /* @__PURE__ */ u("span", { className: q.suffix, children: n })
2482
2514
  ] }),
2483
2515
  R && /* @__PURE__ */ u(
2484
2516
  "div",
2485
2517
  {
2486
- className: d(H.trailingIcon, {
2518
+ className: d(q.trailingIcon, {
2487
2519
  " absolute right-0": !o
2488
2520
  }),
2489
2521
  children: /* @__PURE__ */ u(
2490
2522
  Q,
2491
2523
  {
2492
2524
  className: "h-5 text-error",
2493
- icon: tt
2525
+ icon: lt
2494
2526
  }
2495
2527
  )
2496
2528
  }
2497
2529
  )
2498
2530
  ] }),
2499
- W && /* @__PURE__ */ u("p", { className: H.supportingText, children: r != null && r.length ? r : f != null && f.length ? f : " " })
2531
+ P && /* @__PURE__ */ u("p", { className: q.supportingText, children: r != null && r.length ? r : f != null && f.length ? f : " " })
2500
2532
  ] });
2501
- }, lt = G(
2533
+ }, st = K(
2502
2534
  "navigationRailItem",
2503
2535
  ({ isSelected: e, icon: t, label: r, variant: l }) => ({
2504
2536
  navigationRailItem: d(
@@ -2539,7 +2571,7 @@ const bt = ({
2539
2571
  "text-label-medium": l == "vertical"
2540
2572
  })
2541
2573
  })
2542
- ), ot = ({ label: e }) => /* @__PURE__ */ u("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ u("p", { className: "text-label-large text-on-surface-variant", children: e }) }), at = ({
2574
+ ), ct = ({ label: e }) => /* @__PURE__ */ u("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ u("p", { className: "text-label-large text-on-surface-variant", children: e }) }), it = ({
2543
2575
  className: e,
2544
2576
  onClick: t,
2545
2577
  label: r,
@@ -2555,16 +2587,16 @@ const bt = ({
2555
2587
  transition: c,
2556
2588
  isExtended: y,
2557
2589
  iconSelected: v,
2558
- style: L,
2559
- extendedOnly: N,
2560
- children: E,
2590
+ style: N,
2591
+ extendedOnly: L,
2592
+ children: I,
2561
2593
  ...w
2562
2594
  }) => {
2563
- E && (r = E);
2564
- const B = V(null), b = h || B, [I, R] = S(p);
2565
- D(() => {
2595
+ I && (r = I);
2596
+ const B = V(null), b = h || B, [E, R] = C(p);
2597
+ W(() => {
2566
2598
  p && i == null ? R(!0) : R(i == f && f != null);
2567
- }, [i]), D(() => {
2599
+ }, [i]), W(() => {
2568
2600
  i == f && o && o({
2569
2601
  ref: b,
2570
2602
  index: f || 0,
@@ -2572,40 +2604,40 @@ const bt = ({
2572
2604
  icon: s
2573
2605
  });
2574
2606
  }, [i]);
2575
- const P = n ? "a" : "button", W = (m) => {
2607
+ const D = n ? "a" : "button", P = (m) => {
2576
2608
  a && a(f ?? null), t && t(m);
2577
- }, k = lt({
2609
+ }, k = st({
2578
2610
  isExtended: y,
2579
- extendedOnly: N,
2611
+ extendedOnly: L,
2580
2612
  className: e,
2581
2613
  onItemSelected: o,
2582
2614
  selectedItem: i,
2583
2615
  index: f,
2584
2616
  transition: c,
2585
- selected: I,
2617
+ selected: E,
2586
2618
  variant: l,
2587
2619
  icon: s,
2588
2620
  label: r,
2589
- isSelected: I,
2621
+ isSelected: E,
2590
2622
  setSelectedItem: a,
2591
2623
  href: n,
2592
2624
  children: r,
2593
2625
  iconSelected: v
2594
2626
  });
2595
- return c = { duration: 0.3, ...c }, N && !y ? null : (
2627
+ return c = { duration: 0.3, ...c }, L && !y ? null : (
2596
2628
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2597
2629
  // @ts-expect-error
2598
2630
  /* @__PURE__ */ U(
2599
- P,
2631
+ D,
2600
2632
  {
2601
2633
  ...w,
2602
2634
  role: "tab",
2603
- "aria-selected": I,
2635
+ "aria-selected": E,
2604
2636
  ref: b,
2605
2637
  href: n,
2606
2638
  className: k.navigationRailItem,
2607
- onClick: W,
2608
- style: { transition: c.duration + "s", ...L },
2639
+ onClick: P,
2640
+ style: { transition: c.duration + "s", ...N },
2609
2641
  children: [
2610
2642
  /* @__PURE__ */ U(
2611
2643
  j.div,
@@ -2620,7 +2652,7 @@ const bt = ({
2620
2652
  s && /* @__PURE__ */ u(
2621
2653
  Q,
2622
2654
  {
2623
- icon: I ? v : s,
2655
+ icon: E ? v : s,
2624
2656
  className: k.icon
2625
2657
  }
2626
2658
  ),
@@ -2631,7 +2663,7 @@ const bt = ({
2631
2663
  transition: {
2632
2664
  ...c
2633
2665
  }
2634
- }, C = {
2666
+ }, S = {
2635
2667
  width: "auto",
2636
2668
  opacity: 1,
2637
2669
  transition: {
@@ -2646,7 +2678,7 @@ const bt = ({
2646
2678
  j.span,
2647
2679
  {
2648
2680
  initial: m,
2649
- animate: C,
2681
+ animate: S,
2650
2682
  exit: m,
2651
2683
  className: k.label,
2652
2684
  children: r
@@ -2666,7 +2698,7 @@ const bt = ({
2666
2698
  duration: 0
2667
2699
  }
2668
2700
  }
2669
- }, C = {
2701
+ }, S = {
2670
2702
  height: "auto",
2671
2703
  opacity: 1,
2672
2704
  transition: {
@@ -2680,8 +2712,8 @@ const bt = ({
2680
2712
  return /* @__PURE__ */ u(
2681
2713
  j.span,
2682
2714
  {
2683
- initial: m,
2684
- animate: C,
2715
+ initial: S,
2716
+ animate: S,
2685
2717
  exit: m,
2686
2718
  className: k.label,
2687
2719
  transition: c,
@@ -2693,7 +2725,7 @@ const bt = ({
2693
2725
  }
2694
2726
  )
2695
2727
  );
2696
- }, st = G(
2728
+ }, ut = K(
2697
2729
  "navigationRail",
2698
2730
  ({ isExtended: e, alignment: t }) => ({
2699
2731
  navigationRail: d("flex flex-col left-0 h-full top-0 pt-11", {
@@ -2709,7 +2741,7 @@ const bt = ({
2709
2741
  "w-fit items-start": e
2710
2742
  })
2711
2743
  })
2712
- ), It = ({
2744
+ ), Bt = ({
2713
2745
  variant: e = "standard",
2714
2746
  onItemSelected: t,
2715
2747
  children: r,
@@ -2719,7 +2751,7 @@ const bt = ({
2719
2751
  alignment: i = "top",
2720
2752
  menu: a = {
2721
2753
  closed: {
2722
- icon: rt,
2754
+ icon: ot,
2723
2755
  label: "Open menu"
2724
2756
  },
2725
2757
  opened: {
@@ -2732,25 +2764,25 @@ const bt = ({
2732
2764
  transition: p,
2733
2765
  setSelectedItem: h
2734
2766
  }) => {
2735
- const [c, y] = S(null), [v, L] = S(s);
2736
- let N;
2737
- n == 0 || n != null ? N = n : N = c;
2738
- const E = h || y, w = V(null), B = (k) => {
2767
+ const [c, y] = C(null), [v, N] = C(s);
2768
+ let L;
2769
+ n == 0 || n != null ? L = n : L = c;
2770
+ const I = h || y, w = V(null), B = (k) => {
2739
2771
  t == null || t(k);
2740
2772
  };
2741
2773
  function b(k) {
2742
2774
  const m = [];
2743
- return be.forEach(k, (C) => {
2744
- ee(C) && C.type === Ne ? m.push(...b(C.props.children)) : m.push(C);
2775
+ return be.forEach(k, (S) => {
2776
+ ee(S) && S.type === Le ? m.push(...b(S.props.children)) : m.push(S);
2745
2777
  }), m;
2746
2778
  }
2747
- const I = b(r), R = I.filter(
2779
+ const E = b(r), R = E.filter(
2748
2780
  (k) => ee(k) && k.type === ue
2749
- ), P = st({
2781
+ ), D = ut({
2750
2782
  children: r,
2751
2783
  onItemSelected: t,
2752
- selectedItem: N,
2753
- setSelectedItem: E,
2784
+ selectedItem: L,
2785
+ setSelectedItem: I,
2754
2786
  className: l,
2755
2787
  variant: e,
2756
2788
  extended: v,
@@ -2761,23 +2793,23 @@ const bt = ({
2761
2793
  onExtendedChange: o
2762
2794
  });
2763
2795
  p = { duration: 0.3, ...p };
2764
- const W = V(!1);
2765
- return W.current = !1, D(() => {
2796
+ const P = V(!1);
2797
+ return P.current = !1, W(() => {
2766
2798
  o == null || o(v ?? !1);
2767
2799
  }, [v]), /* @__PURE__ */ U(
2768
2800
  "div",
2769
2801
  {
2770
2802
  style: { transition: p.duration + "s", ...f },
2771
2803
  ref: w,
2772
- className: P.navigationRail,
2804
+ className: D.navigationRail,
2773
2805
  children: [
2774
- /* @__PURE__ */ U("div", { className: P.header, children: [
2806
+ /* @__PURE__ */ U("div", { className: D.header, children: [
2775
2807
  /* @__PURE__ */ u(
2776
2808
  xe,
2777
2809
  {
2778
- onClick: () => L(!v),
2810
+ onClick: () => N(!v),
2779
2811
  label: v ? a == null ? void 0 : a.opened.label : a == null ? void 0 : a.closed.label,
2780
- className: P.menuIcon,
2812
+ className: D.menuIcon,
2781
2813
  icon: v ? a.opened.icon : a == null ? void 0 : a.closed.icon
2782
2814
  }
2783
2815
  ),
@@ -2787,23 +2819,23 @@ const bt = ({
2787
2819
  className: "!shadow-none mx-5 " + R[0].props.className
2788
2820
  })
2789
2821
  ] }),
2790
- /* @__PURE__ */ u("div", { className: P.segments, children: (() => {
2822
+ /* @__PURE__ */ u("div", { className: D.segments, children: (() => {
2791
2823
  let k = 0;
2792
- return I.map((m) => ee(m) && m.type === at ? le(
2824
+ return E.map((m) => ee(m) && m.type === it ? le(
2793
2825
  m,
2794
2826
  {
2795
2827
  key: k,
2796
2828
  index: k++,
2797
2829
  // Utilise et incrémente le compteur dédié
2798
2830
  variant: v ? "horizontal" : "vertical",
2799
- selectedItem: N,
2800
- setSelectedItem: E,
2831
+ selectedItem: L,
2832
+ setSelectedItem: I,
2801
2833
  onItemSelected: B,
2802
2834
  transition: p,
2803
- extendedOnly: W.current,
2835
+ extendedOnly: P.current,
2804
2836
  isExtended: v
2805
2837
  }
2806
- ) : ee(m) && m.type === ue ? null : ee(m) && m.type === ot ? (W.current = !0, v ? le(m, {}) : null) : m);
2838
+ ) : ee(m) && m.type === ue ? null : ee(m) && m.type === ct ? (P.current = !0, v ? le(m, {}) : null) : m);
2807
2839
  })() }),
2808
2840
  /* @__PURE__ */ u("div", { className: "flex-1 max-h-[160px]" })
2809
2841
  ]
@@ -2811,48 +2843,49 @@ const bt = ({
2811
2843
  );
2812
2844
  };
2813
2845
  export {
2814
- Ze as Button,
2815
- xt as Card,
2816
- gt as Carousel,
2817
- Qe as CarouselItem,
2846
+ Ae as Button,
2847
+ Nt as Card,
2848
+ It as Carousel,
2849
+ Te as CarouselItem,
2818
2850
  he as CustomScroll,
2819
- wt as Divider,
2851
+ Et as Divider,
2820
2852
  ue as Fab,
2821
2853
  Q as Icon,
2822
2854
  xe as IconButton,
2823
- It as NavigationRail,
2824
- at as NavigationRailItem,
2825
- ot as NavigationRailSection,
2826
- Ge as ProgressIndicator,
2855
+ Bt as NavigationRail,
2856
+ it as NavigationRailItem,
2857
+ ct as NavigationRailSection,
2858
+ Ye as ProgressIndicator,
2827
2859
  ne as RippleEffect,
2828
- vt as Slider,
2829
- yt as SmoothScroll,
2830
- bt as Snackbar,
2831
- Nt as Switch,
2832
- Ye as SyncedFixedWrapper,
2833
- nt as Tab,
2834
- Lt as Tabs,
2835
- Et as TextField,
2860
+ kt as Slider,
2861
+ bt as SmoothScroll,
2862
+ Mt as Snackbar,
2863
+ Ct as Switch,
2864
+ Je as SyncedFixedWrapper,
2865
+ at as Tab,
2866
+ Rt as Tabs,
2867
+ St as TextField,
2868
+ Lt as ThemeProvider,
2836
2869
  ye as ToolTip,
2837
- Ce as buttonStyle,
2838
- Be as cardStyle,
2870
+ Pe as buttonStyle,
2871
+ $e as cardStyle,
2839
2872
  We as carouselItemStyle,
2840
- $e as carouselStyle,
2873
+ De as carouselStyle,
2841
2874
  d as classNames,
2842
- Me as classnames,
2843
- _e as customScrollStyle,
2844
- G as defaultClassNames,
2845
- De as dividerStyle,
2846
- Pe as fabStyle,
2847
- Se as getClassNames,
2848
- Ve as iconButtonStyle,
2849
- Je as normalize,
2850
- Ue as progressIndicatorStyle,
2851
- je as sliderStyle,
2852
- Fe as snackbarStyle,
2853
- Xe as switchStyle,
2854
- Oe as tabStyle,
2855
- qe as tabsStyle,
2856
- He as textFieldStyle,
2857
- Ke as toolStyle
2875
+ Re as classnames,
2876
+ Ze as customScrollStyle,
2877
+ K as defaultClassNames,
2878
+ Ve as dividerStyle,
2879
+ Ue as fabStyle,
2880
+ Be as getClassNames,
2881
+ je as iconButtonStyle,
2882
+ ze as normalize,
2883
+ Fe as progressIndicatorStyle,
2884
+ He as sliderStyle,
2885
+ Xe as snackbarStyle,
2886
+ Oe as switchStyle,
2887
+ qe as tabStyle,
2888
+ _e as tabsStyle,
2889
+ Ke as textFieldStyle,
2890
+ Ge as toolStyle
2858
2891
  };