@udixio/ui-react 2.5.0 → 2.5.1

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
1
  import { jsx as f, jsxs as Y, Fragment as ye } from "react/jsx-runtime";
2
- import { clsx as He } from "clsx";
3
- import { extendTailwindMerge as je } from "tailwind-merge";
4
- import te, { useState as D, useEffect as $, useRef as P, useLayoutEffect as Ve, isValidElement as pe, cloneElement as be, useMemo as qe, Children as Ke, Fragment as _e } from "react";
5
- import { motion as j, AnimatePresence as ue, useScroll as Ge, useMotionValueEvent as Re, animate as Je } from "motion/react";
6
- import { animate as Ze } from "motion";
7
- import { createPortal as Fe } from "react-dom";
8
- import { loader as Qe, defineConfig as ze, FontPlugin as Te, Variants as et } from "@udixio/theme";
9
- import { TailwindPlugin as Xe } from "@udixio/tailwind";
10
- import tt from "react-textarea-autosize";
11
- const Oe = je({
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({
12
12
  override: {
13
13
  classGroups: {
14
14
  "text-color": [
@@ -34,11 +34,11 @@ const Oe = je({
34
34
  font: ["font"]
35
35
  }
36
36
  }
37
- }), p = (...e) => Oe(He(e)), nt = (...e) => Oe(He(e));
38
- function rt(e) {
37
+ }), p = (...e) => Ye(Fe(e)), ot = (...e) => Ye(Fe(e));
38
+ function lt(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 ot = (e) => {
41
+ const at = (e) => {
42
42
  const t = {};
43
43
  e.classNameList.forEach((l) => {
44
44
  var r;
@@ -56,13 +56,13 @@ const ot = (e) => {
56
56
  const n = t;
57
57
  return Object.entries(t).map((l) => {
58
58
  let [r, i] = l;
59
- i = i.reverse(), r == e.default && i.unshift("relative"), i.unshift(rt(r)), n[r] = nt(...i);
59
+ i = i.reverse(), r == e.default && i.unshift("relative"), i.unshift(lt(r)), n[r] = ot(...i);
60
60
  }), n;
61
- }, G = (e, t) => (n) => ot({
61
+ }, G = (e, t) => (n) => at({
62
62
  classNameList: [n.className, t],
63
63
  default: e,
64
64
  states: n
65
- }), lt = G(
65
+ }), st = G(
66
66
  "button",
67
67
  ({
68
68
  variant: e,
@@ -195,7 +195,7 @@ const ot = (e) => {
195
195
  o === "xLarge" && "size-10"
196
196
  )
197
197
  })
198
- ), at = G(
198
+ ), ct = G(
199
199
  "card",
200
200
  ({ variant: e, isInteractive: t }) => ({
201
201
  card: p(
@@ -211,7 +211,7 @@ const ot = (e) => {
211
211
  }
212
212
  ])
213
213
  })
214
- ), st = G(
214
+ ), it = G(
215
215
  "carouselItem",
216
216
  ({ width: e }) => ({
217
217
  carouselItem: p("rounded-[28px] overflow-hidden flex-none", {
@@ -219,13 +219,13 @@ const ot = (e) => {
219
219
  "flex-1": e == null
220
220
  })
221
221
  })
222
- ), ct = G(
222
+ ), ut = 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
- ), it = G(
228
+ ), dt = G(
229
229
  "divider",
230
230
  ({ orientation: e }) => ({
231
231
  divider: p(
@@ -238,7 +238,7 @@ const ot = (e) => {
238
238
  }
239
239
  )
240
240
  })
241
- ), ut = G(
241
+ ), ft = G(
242
242
  "fab",
243
243
  ({ size: e, variant: t, isExtended: n }) => ({
244
244
  fab: p(
@@ -275,7 +275,7 @@ const ot = (e) => {
275
275
  }),
276
276
  label: p("text-title-medium text-nowrap")
277
277
  })
278
- ), dt = G(
278
+ ), mt = G(
279
279
  "iconButton",
280
280
  ({
281
281
  variant: e,
@@ -414,7 +414,7 @@ const ot = (e) => {
414
414
  !!t && "text-on-surface/[0.38]"
415
415
  )
416
416
  })
417
- ), ft = G(
417
+ ), ht = G(
418
418
  "progressIndicator",
419
419
  ({ variant: e, isVisible: t }) => ({
420
420
  progressIndicator: p(
@@ -446,7 +446,7 @@ const ot = (e) => {
446
446
  }
447
447
  )
448
448
  })
449
- ), mt = G(
449
+ ), pt = G(
450
450
  "slideSheet",
451
451
  ({ variant: e, position: t }) => ({
452
452
  slideSheet: p(
@@ -473,7 +473,7 @@ const ot = (e) => {
473
473
  "bg-[black]/[0.32] fixed top-0 left-0 w-screen h-screen"
474
474
  )
475
475
  })
476
- ), ht = G(
476
+ ), yt = G(
477
477
  "slider",
478
478
  ({ isChanging: e }) => ({
479
479
  slider: p([
@@ -496,7 +496,7 @@ const ot = (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
- ), pt = G(
499
+ ), vt = G(
500
500
  "snackbar",
501
501
  () => ({
502
502
  snackbar: p(" rounded bg-inverse-surface "),
@@ -506,7 +506,7 @@ const ot = (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
- ), yt = G(
509
+ ), wt = G(
510
510
  "switch",
511
511
  ({ isSelected: e, disabled: t, inactiveIcon: n }) => ({
512
512
  switch: p(
@@ -608,7 +608,7 @@ const ot = (e) => {
608
608
  l === "secondary" && "h-0.5"
609
609
  )
610
610
  })
611
- ), vt = G(
611
+ ), gt = G(
612
612
  "tabs",
613
613
  ({ scrollable: e }) => ({
614
614
  tabs: p(
@@ -617,7 +617,7 @@ const ot = (e) => {
617
617
  { "overflow-x-auto": e }
618
618
  )
619
619
  })
620
- ), wt = G(
620
+ ), bt = G(
621
621
  "textField",
622
622
  ({
623
623
  disabled: e,
@@ -712,7 +712,7 @@ const ot = (e) => {
712
712
  l == "outlined" && "py-4 relative z-10"
713
713
  )
714
714
  })
715
- ), gt = G(
715
+ ), Lt = G(
716
716
  "toolTip",
717
717
  ({ position: e, variant: t }) => ({
718
718
  toolTip: p(
@@ -809,7 +809,7 @@ const ot = (e) => {
809
809
  children: typeof s == "string" ? /* @__PURE__ */ f("path", { className: "fill-current", d: s }) : s.map((o, h) => /* @__PURE__ */ f("path", { d: o }, h))
810
810
  }
811
811
  );
812
- }, bt = ({
812
+ }, Nt = ({
813
813
  variant: e = "linear-determinate",
814
814
  value: t = 0,
815
815
  transitionDuration: n = 1e3,
@@ -841,7 +841,7 @@ const ot = (e) => {
841
841
  } else
842
842
  a(!0);
843
843
  }, [i, n]);
844
- const u = ft({
844
+ const u = ht({
845
845
  className: l,
846
846
  variant: e,
847
847
  value: t,
@@ -930,7 +930,7 @@ const ot = (e) => {
930
930
  d + ""
931
931
  )
932
932
  ] });
933
- }, ve = ({
933
+ }, we = ({
934
934
  colorName: e = "on-surface",
935
935
  triggerRef: t
936
936
  }) => {
@@ -992,7 +992,7 @@ const ot = (e) => {
992
992
  className: "transform -translate-x-1/2 -translate-y-1/2"
993
993
  }
994
994
  ) });
995
- }, Lt = G(
995
+ }, Et = G(
996
996
  "customScroll",
997
997
  ({ orientation: e, draggable: t, isDragging: n }) => ({
998
998
  customScroll: p(
@@ -1021,7 +1021,7 @@ const ot = (e) => {
1021
1021
  })
1022
1022
  })
1023
1023
  );
1024
- function Nt(e, t) {
1024
+ function It(e, t) {
1025
1025
  let n = 0, l = null, r = null;
1026
1026
  const i = (c, s) => {
1027
1027
  n = Date.now(), t(c, s);
@@ -1035,7 +1035,7 @@ function Nt(e, t) {
1035
1035
  }, o)));
1036
1036
  };
1037
1037
  }
1038
- const Et = ({
1038
+ const kt = ({
1039
1039
  children: e,
1040
1040
  orientation: t = "vertical",
1041
1041
  scrollSize: n,
@@ -1047,17 +1047,17 @@ const Et = ({
1047
1047
  setScroll: d
1048
1048
  }) => {
1049
1049
  var ae, de;
1050
- const o = P(null), h = P(null), [y, a] = D({
1050
+ const o = B(null), h = B(null), [y, a] = D({
1051
1051
  width: null,
1052
1052
  height: null
1053
1053
  });
1054
1054
  $(() => {
1055
1055
  if (!o.current) return;
1056
- const I = new ResizeObserver((v) => {
1057
- for (const B of v)
1058
- B.target === o.current && a({
1059
- width: B.contentRect.width,
1060
- height: B.contentRect.height
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
1061
1061
  // On observe aussi la hauteur maintenant
1062
1062
  });
1063
1063
  });
@@ -1065,31 +1065,31 @@ const Et = ({
1065
1065
  I.disconnect();
1066
1066
  };
1067
1067
  }, [o]);
1068
- const u = P(null), m = P(null), b = () => {
1068
+ const u = B(null), m = B(null), b = () => {
1069
1069
  const I = h.current;
1070
1070
  return I ? {
1071
1071
  width: n ?? I.scrollWidth,
1072
1072
  height: n ?? I.scrollHeight
1073
1073
  } : null;
1074
- }, w = () => {
1074
+ }, x = () => {
1075
1075
  const I = o.current;
1076
1076
  return I ? {
1077
1077
  width: I.clientWidth,
1078
1078
  height: I.clientHeight
1079
1079
  // Correction ici pour retourner la bonne hauteur
1080
1080
  } : null;
1081
- }, { scrollYProgress: M, scrollXProgress: g } = Ge({
1081
+ }, { scrollYProgress: M, scrollXProgress: g } = Ze({
1082
1082
  container: o
1083
- }), R = P(null);
1084
- R.current || (R.current = Nt(
1083
+ }), R = B(null);
1084
+ R.current || (R.current = It(
1085
1085
  c,
1086
- (I, v) => {
1087
- !m.current || !u.current || !o.current || (v === (t === "horizontal" ? "x" : "y") && (d == null || d(I)), l && (t === "horizontal" && v === "x" && l({
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
1088
  scrollProgress: I,
1089
1089
  scroll: I * (u.current.width - o.current.clientWidth),
1090
1090
  scrollTotal: u.current.width - o.current.clientWidth,
1091
1091
  scrollVisible: m.current.width
1092
- }), t === "vertical" && v === "y" && l({
1092
+ }), t === "vertical" && w === "y" && l({
1093
1093
  scrollProgress: I,
1094
1094
  scroll: I * (u.current.height - o.current.clientHeight),
1095
1095
  scrollTotal: u.current.height - o.current.clientHeight,
@@ -1097,37 +1097,37 @@ const Et = ({
1097
1097
  })));
1098
1098
  }
1099
1099
  ));
1100
- const N = (I, v) => {
1101
- R.current && R.current(I, v);
1100
+ const N = (I, w) => {
1101
+ R.current && R.current(I, w);
1102
1102
  };
1103
1103
  $(() => {
1104
1104
  y.width && N(g.get(), "x"), y.height && N(M.get(), "y");
1105
1105
  }, [y]), $(() => {
1106
- const I = o.current, v = h.current;
1107
- if (!I || !v || typeof s != "number") return;
1108
- const B = (H, V, le) => Math.min(le, Math.max(V, H));
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));
1109
1109
  if (t === "horizontal") {
1110
- const H = Math.max(0, (n ?? v.scrollWidth) - I.clientWidth);
1111
- I.scrollLeft = B(s * H, 0, H);
1110
+ const H = Math.max(0, (n ?? w.scrollWidth) - I.clientWidth);
1111
+ I.scrollLeft = A(s * H, 0, H);
1112
1112
  } else {
1113
- const H = Math.max(0, (n ?? v.scrollHeight) - I.clientHeight);
1114
- I.scrollTop = B(s * H, 0, H);
1113
+ const H = Math.max(0, (n ?? w.scrollHeight) - I.clientHeight);
1114
+ I.scrollTop = A(s * H, 0, H);
1115
1115
  }
1116
1116
  }, [s, t, n]), Re(g, "change", (I) => {
1117
1117
  N(I, "x");
1118
1118
  }), Re(M, "change", (I) => {
1119
1119
  N(I, "y");
1120
1120
  });
1121
- const [A, L] = D(!1);
1122
- Ve(() => {
1123
- A || !m.current || !u.current || !l || (l({
1121
+ const [P, L] = D(!1);
1122
+ Xe(() => {
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
1128
  }), L(!0));
1129
- }, [m, u, l]), u.current = b(), m.current = w();
1130
- const [O, F] = D(!1), C = Lt({
1129
+ }, [m, u, l]), u.current = b(), m.current = x();
1130
+ const [O, F] = D(!1), C = Et({
1131
1131
  isDragging: O,
1132
1132
  children: e,
1133
1133
  className: r,
@@ -1136,15 +1136,15 @@ const Et = ({
1136
1136
  scrollSize: n,
1137
1137
  draggable: i,
1138
1138
  throttleDuration: c
1139
- }), [x, k] = D(0), [U, J] = D(0), re = (I) => {
1139
+ }), [v, k] = D(0), [U, J] = D(0), re = (I) => {
1140
1140
  if (!i) return;
1141
- const v = o.current;
1142
- if (!v || x == null) return;
1143
- const H = (I.pageX - v.offsetLeft - x) * 1.5;
1144
- v.scrollLeft = U - H;
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
1145
  }, _ = (I) => {
1146
- const v = o.current;
1147
- v && (F(!0), k(I.pageX - v.offsetLeft), J(v.scrollLeft));
1146
+ const w = o.current;
1147
+ w && (F(!0), k(I.pageX - w.offsetLeft), J(w.scrollLeft));
1148
1148
  }, oe = (I) => {
1149
1149
  O && (I.preventDefault(), re(I));
1150
1150
  }, S = () => {
@@ -1153,15 +1153,15 @@ const Et = ({
1153
1153
  F(!1);
1154
1154
  }, X = (I) => {
1155
1155
  I.preventDefault();
1156
- }, q = P(null);
1156
+ }, q = B(null);
1157
1157
  return $(() => () => {
1158
1158
  q.current && clearTimeout(q.current);
1159
1159
  }, []), $(() => {
1160
1160
  const I = o.current;
1161
1161
  if (!I) return;
1162
- const v = (B) => {
1162
+ const w = (A) => {
1163
1163
  var se, ne, T, ce;
1164
- const H = B.detail, V = o.current;
1164
+ const H = A.detail, V = o.current;
1165
1165
  if (!V || !H) return;
1166
1166
  const le = H.orientation ?? t;
1167
1167
  if (typeof H.progress == "number")
@@ -1193,8 +1193,8 @@ const Et = ({
1193
1193
  V.scrollTop = Math.min(ee, Math.max(0, H.scroll));
1194
1194
  }
1195
1195
  };
1196
- return I.addEventListener("udx:customScroll:set", v), () => {
1197
- I.removeEventListener("udx:customScroll:set", v);
1196
+ return I.addEventListener("udx:customScroll:set", w), () => {
1197
+ I.removeEventListener("udx:customScroll:set", w);
1198
1198
  };
1199
1199
  }, [t]), /* @__PURE__ */ Y(
1200
1200
  "div",
@@ -1244,12 +1244,12 @@ const Et = ({
1244
1244
  ]
1245
1245
  }
1246
1246
  );
1247
- }, It = ({
1247
+ }, Mt = ({
1248
1248
  onScroll: e,
1249
1249
  el: t,
1250
1250
  touch: n = !0
1251
1251
  }) => {
1252
- const l = P(null), r = P(0), i = P(0);
1252
+ const l = B(null), r = B(0), i = B(0);
1253
1253
  $(() => {
1254
1254
  if (!t) return;
1255
1255
  r.current = t.scrollTop, i.current = t.scrollLeft;
@@ -1284,13 +1284,13 @@ const Et = ({
1284
1284
  n && (l.current = null);
1285
1285
  }, y = (a) => {
1286
1286
  const m = t.clientHeight * 0.9;
1287
- let b = 0, w = 0;
1287
+ let b = 0, x = 0;
1288
1288
  switch (a.key) {
1289
1289
  case "ArrowDown":
1290
- w = 40;
1290
+ x = 40;
1291
1291
  break;
1292
1292
  case "ArrowUp":
1293
- w = -40;
1293
+ x = -40;
1294
1294
  break;
1295
1295
  case "ArrowRight":
1296
1296
  b = 40;
@@ -1299,19 +1299,19 @@ const Et = ({
1299
1299
  b = -40;
1300
1300
  break;
1301
1301
  case "PageDown":
1302
- w = m;
1302
+ x = m;
1303
1303
  break;
1304
1304
  case "PageUp":
1305
- w = -m;
1305
+ x = -m;
1306
1306
  break;
1307
1307
  case "Home":
1308
- w = Number.NEGATIVE_INFINITY;
1308
+ x = Number.NEGATIVE_INFINITY;
1309
1309
  break;
1310
1310
  case "End":
1311
- w = Number.POSITIVE_INFINITY;
1311
+ x = Number.POSITIVE_INFINITY;
1312
1312
  break;
1313
1313
  case " ":
1314
- w = a.shiftKey ? -m : m;
1314
+ x = a.shiftKey ? -m : m;
1315
1315
  break;
1316
1316
  default:
1317
1317
  return;
@@ -1320,7 +1320,7 @@ const Et = ({
1320
1320
  type: "intent",
1321
1321
  source: "keyboard",
1322
1322
  deltaX: b,
1323
- deltaY: w,
1323
+ deltaY: x,
1324
1324
  originalEvent: a
1325
1325
  });
1326
1326
  };
@@ -1328,12 +1328,12 @@ const Et = ({
1328
1328
  t.removeEventListener("wheel", s), t.removeEventListener("touchstart", d), t.removeEventListener("touchmove", o), t.removeEventListener("touchend", h), t.removeEventListener("keydown", y);
1329
1329
  };
1330
1330
  }, [e]);
1331
- }, rn = ({
1331
+ }, ln = ({
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 = P(!1), d = P(), o = P(0);
1336
+ const [l, r] = D(0), [i, c] = D(), s = B(!1), d = B(), o = B(0);
1337
1337
  $(() => {
1338
1338
  c(document);
1339
1339
  const a = document.documentElement.scrollTop;
@@ -1346,20 +1346,20 @@ const Et = ({
1346
1346
  d.current && clearTimeout(d.current), i == null || i.removeEventListener("scroll", a);
1347
1347
  };
1348
1348
  }, [i]);
1349
- const h = P(), y = P(null);
1349
+ const h = B(), y = B(null);
1350
1350
  return $(() => {
1351
1351
  const a = l;
1352
1352
  if (y.current && (y.current.stop(), y.current = null), !s.current) {
1353
1353
  h.current = a;
1354
1354
  return;
1355
1355
  }
1356
- return y.current = Ze(h.current ?? a, a, {
1356
+ return y.current = ze(h.current ?? a, a, {
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, w = o.current;
1362
- Math.abs(b - w) < 0.1 || (o.current = b, s.current && m.scrollTo({ top: b }));
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 }));
1363
1363
  },
1364
1364
  onComplete: () => {
1365
1365
  d.current = setTimeout(() => {
@@ -1370,7 +1370,7 @@ const Et = ({
1370
1370
  y.current && (y.current.stop(), y.current = null);
1371
1371
  };
1372
1372
  }, [l]), i ? /* @__PURE__ */ f(
1373
- It,
1373
+ Mt,
1374
1374
  {
1375
1375
  touch: !1,
1376
1376
  el: i,
@@ -1383,11 +1383,11 @@ const Et = ({
1383
1383
  }
1384
1384
  }
1385
1385
  ) : null;
1386
- }, kt = ({
1386
+ }, St = ({
1387
1387
  targetRef: e,
1388
1388
  children: t
1389
1389
  }) => {
1390
- const [n, l] = D(null), r = P(null), i = () => {
1390
+ const [n, l] = D(null), r = B(null), i = () => {
1391
1391
  const c = e.current;
1392
1392
  if (!c) return;
1393
1393
  const s = c.getBoundingClientRect();
@@ -1410,12 +1410,12 @@ const Et = ({
1410
1410
  var s;
1411
1411
  window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i), (s = r.current) == null || s.disconnect();
1412
1412
  };
1413
- }, [e]), n ? Fe(/* @__PURE__ */ f("div", { style: n, children: t }), document.body) : null;
1413
+ }, [e]), n ? Oe(/* @__PURE__ */ f("div", { style: n, children: t }), document.body) : null;
1414
1414
  };
1415
- function Mt(e) {
1415
+ function $t(e) {
1416
1416
  return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e);
1417
1417
  }
1418
- const on = ({
1418
+ const an = ({
1419
1419
  config: e,
1420
1420
  throttleDelay: t = 100,
1421
1421
  // Délai par défaut de 300ms
@@ -1425,47 +1425,47 @@ const on = ({
1425
1425
  const [r, i] = D(null);
1426
1426
  $(() => {
1427
1427
  (async () => {
1428
- const a = await Qe(e, l);
1428
+ const a = await Te(e, l);
1429
1429
  i(a);
1430
1430
  })();
1431
1431
  }, []);
1432
- const [c, s] = D(null), d = P(null), o = P(0), h = P(null);
1432
+ const [c, s] = D(null), d = B(null), o = B(0), h = B(null);
1433
1433
  $(() => {
1434
1434
  if (!r) return;
1435
1435
  const a = {
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 (w) => {
1440
- await y(w);
1439
+ }, u = Date.now(), m = u - o.current, b = async (x) => {
1440
+ await y(x);
1441
1441
  };
1442
1442
  if (o.current === 0 || m >= t)
1443
1443
  d.current && (clearTimeout(d.current), d.current = null), h.current = null, o.current = u, b(a);
1444
1444
  else if (h.current = a, !d.current) {
1445
- const w = Math.max(0, t - m);
1445
+ const x = Math.max(0, t - m);
1446
1446
  d.current = setTimeout(async () => {
1447
1447
  d.current = null;
1448
1448
  const M = h.current;
1449
1449
  h.current = null, M && (o.current = Date.now(), await b(M));
1450
- }, w);
1450
+ }, x);
1451
1451
  }
1452
1452
  return () => {
1453
1453
  };
1454
1454
  }, [e, t, r]);
1455
1455
  const y = async (a) => {
1456
- if (typeof a.sourceColor == "string" && !Mt(a.sourceColor))
1456
+ if (typeof a.sourceColor == "string" && !$t(a.sourceColor))
1457
1457
  throw new Error("Invalid hex color");
1458
1458
  if (!r)
1459
1459
  return;
1460
1460
  r.context.update(a), await r.load();
1461
- const u = r == null ? void 0 : r.plugins.getPlugin(Xe).getInstance().outputCss;
1461
+ const u = r == null ? void 0 : r.plugins.getPlugin(Ue).getInstance().outputCss;
1462
1462
  s(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 St() {
1468
+ function Ct() {
1469
1469
  if (typeof window > "u") return !1;
1470
1470
  try {
1471
1471
  if (window.CSS && typeof window.CSS.supports == "function")
@@ -1475,7 +1475,7 @@ function St() {
1475
1475
  }
1476
1476
  return !1;
1477
1477
  }
1478
- function $t() {
1478
+ function Dt() {
1479
1479
  return typeof window > "u" || !("matchMedia" in window) ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1480
1480
  }
1481
1481
  function Me(e) {
@@ -1510,7 +1510,7 @@ function Ie(e = document, t) {
1510
1510
  )
1511
1511
  ).filter((l) => Me(l));
1512
1512
  }
1513
- function Ct(e = document, t) {
1513
+ function Rt(e = document, t) {
1514
1514
  const n = Array.from(
1515
1515
  e.querySelectorAll(`[class*="${t}-"]`)
1516
1516
  ), l = /* @__PURE__ */ new Set([
@@ -1535,33 +1535,43 @@ function Ct(e = document, t) {
1535
1535
  ) ? !0 : !Me(r);
1536
1536
  });
1537
1537
  }
1538
- function Be(e, t, n) {
1538
+ function Ae(e, t, n) {
1539
1539
  e.setAttribute(`data-${t}-run`, ""), e.setAttribute(`data-${t}-${n}-run`, "");
1540
1540
  }
1541
- function Dt(e, t) {
1541
+ function Wt(e, t) {
1542
1542
  const n = e.style.animationName;
1543
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;
1544
1544
  }
1545
- const Rt = [0, 0.2];
1546
- function Ue(e = {}) {
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);
1549
+ const n = (r) => {
1550
+ r.target === e && (e.hasAttribute(`data-${t}-in-run`) || e.hasAttribute(`data-${t}-out-run`) || e.hasAttribute(`data-${t}-run`)) && e.setAttribute(`data-${t}-animating`, "");
1551
+ }, l = (r) => {
1552
+ r.target === e && (e.removeAttribute(`data-${t}-animating`), e.removeAttribute(`data-${t}-in-run`), e.removeAttribute(`data-${t}-out-run`));
1553
+ };
1554
+ e.addEventListener("animationstart", n), e.addEventListener("animationend", l), e.addEventListener("animationcancel", l);
1555
+ }
1556
+ function je(e = {}) {
1547
1557
  const { prefix: t = "anim", once: n = !0 } = e;
1548
- if ($t())
1558
+ if (Dt())
1549
1559
  return () => {
1550
1560
  };
1551
- const l = St(), r = /* @__PURE__ */ new WeakSet(), i = new IntersectionObserver(
1561
+ const l = Ct(), r = /* @__PURE__ */ new WeakSet(), i = new IntersectionObserver(
1552
1562
  (h) => {
1553
1563
  for (const y of h) {
1554
1564
  const a = y.target;
1555
- if (!We(a)) continue;
1565
+ if (!We(a) || a.hasAttribute(`data-${t}-animating`)) continue;
1556
1566
  const u = a.classList.contains(`${t}-out`);
1557
- !u && y.isIntersecting ? (Be(a, t, "in"), n && i.unobserve(a)) : u && !y.isIntersecting ? (Be(a, t, "out"), n && i.unobserve(a)) : n || Dt(a, t);
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);
1558
1568
  }
1559
1569
  },
1560
- { threshold: Rt }
1570
+ { threshold: At }
1561
1571
  ), c = (h) => {
1562
- const y = Ct(h || document, t);
1572
+ const y = Rt(h || document, t);
1563
1573
  for (const a of y)
1564
- r.has(a) || (r.add(a), i.observe(a));
1574
+ r.has(a) || (r.add(a), i.observe(a), Pe(a, t));
1565
1575
  };
1566
1576
  c();
1567
1577
  let s, d = null, o = null;
@@ -1576,7 +1586,7 @@ function Ue(e = {}) {
1576
1586
  for (const a of y)
1577
1587
  if (a.type === "attributes") {
1578
1588
  const u = a.target;
1579
- u instanceof HTMLElement && (Ee(u, t), We(u) && (r.has(u) || (r.add(u), i.observe(u))));
1589
+ u instanceof HTMLElement && (Ee(u, t), We(u) && (r.has(u) || (r.add(u), i.observe(u), Pe(u, t))));
1580
1590
  } else if (a.type === "childList" && a.addedNodes && a.addedNodes.length) {
1581
1591
  for (const u of Array.from(a.addedNodes))
1582
1592
  if (u instanceof HTMLElement) {
@@ -1612,7 +1622,7 @@ function Ue(e = {}) {
1612
1622
  s && s(), i.disconnect();
1613
1623
  };
1614
1624
  }
1615
- const ln = Ue, an = Ue, Wt = ({
1625
+ const sn = je, cn = je, Bt = ({
1616
1626
  variant: e = "filled",
1617
1627
  disabled: t = !1,
1618
1628
  icon: n,
@@ -1629,7 +1639,7 @@ const ln = Ue, an = Ue, Wt = ({
1629
1639
  ref: u,
1630
1640
  size: m = "medium",
1631
1641
  allowShapeTransformation: b = !0,
1632
- transition: w,
1642
+ transition: x,
1633
1643
  children: M,
1634
1644
  ...g
1635
1645
  }) => {
@@ -1637,10 +1647,10 @@ const ln = Ue, an = Ue, Wt = ({
1637
1647
  throw new Error(
1638
1648
  "Button component requires either a label prop or children content"
1639
1649
  );
1640
- const R = l ? "a" : "button", N = P(null), A = u || N, [L, O] = te.useState(a);
1650
+ const R = l ? "a" : "button", N = B(null), P = u || N, [L, O] = te.useState(a);
1641
1651
  $(() => {
1642
1652
  O(a);
1643
- }, [a]), w = { duration: 0.3, ...w };
1653
+ }, [a]), x = { duration: 0.3, ...x };
1644
1654
  let F;
1645
1655
  y ? y && (F = (k) => {
1646
1656
  t && k.preventDefault();
@@ -1649,7 +1659,7 @@ const ln = Ue, an = Ue, Wt = ({
1649
1659
  }) : F = (k) => {
1650
1660
  t && k.preventDefault(), h && h(k);
1651
1661
  };
1652
- const C = lt({
1662
+ const C = st({
1653
1663
  allowShapeTransformation: b,
1654
1664
  size: m,
1655
1665
  disableTextMargins: i,
@@ -1660,48 +1670,48 @@ const ln = Ue, an = Ue, Wt = ({
1660
1670
  iconPosition: s,
1661
1671
  loading: d,
1662
1672
  variant: e,
1663
- transition: w,
1673
+ transition: x,
1664
1674
  className: c,
1665
1675
  isActive: L ?? !1,
1666
1676
  onToggle: y,
1667
1677
  activated: L,
1668
1678
  label: r,
1669
1679
  children: r
1670
- }), x = n ? /* @__PURE__ */ f(ie, { icon: n, className: C.icon }) : /* @__PURE__ */ f(ye, {});
1680
+ }), v = n ? /* @__PURE__ */ f(ie, { icon: n, className: C.icon }) : /* @__PURE__ */ f(ye, {});
1671
1681
  return /* @__PURE__ */ Y(
1672
1682
  R,
1673
1683
  {
1674
- ref: A,
1684
+ ref: P,
1675
1685
  href: l,
1676
1686
  className: C.button,
1677
1687
  ...g,
1678
1688
  onClick: F,
1679
1689
  disabled: t,
1680
1690
  "aria-pressed": y ? L : void 0,
1681
- style: { transition: w.duration + "s" },
1691
+ style: { transition: x.duration + "s" },
1682
1692
  children: [
1683
1693
  /* @__PURE__ */ f("div", { className: C.touchTarget }),
1684
1694
  /* @__PURE__ */ f(
1685
1695
  "div",
1686
1696
  {
1687
1697
  className: C.stateLayer,
1688
- style: { transition: w.duration + "s" },
1698
+ style: { transition: x.duration + "s" },
1689
1699
  children: !t && /* @__PURE__ */ f(
1690
- ve,
1700
+ we,
1691
1701
  {
1692
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" || "",
1693
- triggerRef: A
1703
+ triggerRef: P
1694
1704
  }
1695
1705
  )
1696
1706
  }
1697
1707
  ),
1698
- s === "left" && x,
1708
+ s === "left" && v,
1699
1709
  d && /* @__PURE__ */ f(
1700
1710
  "div",
1701
1711
  {
1702
1712
  className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
1703
1713
  children: /* @__PURE__ */ f(
1704
- bt,
1714
+ Nt,
1705
1715
  {
1706
1716
  className: () => ({
1707
1717
  progressIndicator: "h-6 w-6",
@@ -1734,11 +1744,11 @@ const ln = Ue, an = Ue, Wt = ({
1734
1744
  }
1735
1745
  ),
1736
1746
  /* @__PURE__ */ f("span", { className: C.label, children: r }),
1737
- s === "right" && x
1747
+ s === "right" && v
1738
1748
  ]
1739
1749
  }
1740
1750
  );
1741
- }, sn = ({
1751
+ }, un = ({
1742
1752
  variant: e = "outlined",
1743
1753
  className: t,
1744
1754
  children: n,
@@ -1746,15 +1756,15 @@ const ln = Ue, an = Ue, Wt = ({
1746
1756
  ref: r,
1747
1757
  ...i
1748
1758
  }) => {
1749
- const c = at({ className: t, isInteractive: l, variant: e, children: n }), s = P(null), d = r || s;
1759
+ const c = ct({ className: t, isInteractive: l, variant: e, children: n }), s = B(null), d = r || s;
1750
1760
  return /* @__PURE__ */ Y("div", { ...i, ref: d, className: c.card, children: [
1751
- /* @__PURE__ */ f("div", { className: c.stateLayer, children: l && /* @__PURE__ */ f(ve, { colorName: "on-surface", triggerRef: d }) }),
1761
+ /* @__PURE__ */ f("div", { className: c.stateLayer, children: l && /* @__PURE__ */ f(we, { colorName: "on-surface", triggerRef: d }) }),
1752
1762
  n
1753
1763
  ] });
1754
1764
  }, fe = (e, t, n = [0, 1]) => {
1755
1765
  const [l, r] = t, [i, c] = n, d = (Math.max(l, Math.min(e, r)) - l) / (r - l);
1756
1766
  return i + d * (c - i);
1757
- }, Bt = ({
1767
+ }, Pt = ({
1758
1768
  className: e,
1759
1769
  children: t,
1760
1770
  width: n,
@@ -1763,7 +1773,7 @@ const ln = Ue, an = Ue, Wt = ({
1763
1773
  ref: i,
1764
1774
  ...c
1765
1775
  }) => {
1766
- const s = P(null), d = i || s, o = st({
1776
+ const s = B(null), d = i || s, o = it({
1767
1777
  className: e,
1768
1778
  index: l,
1769
1779
  width: n,
@@ -1789,7 +1799,7 @@ const ln = Ue, an = Ue, Wt = ({
1789
1799
  children: t
1790
1800
  }
1791
1801
  );
1792
- }, cn = ({
1802
+ }, dn = ({
1793
1803
  variant: e = "hero",
1794
1804
  className: t,
1795
1805
  children: n,
@@ -1804,7 +1814,7 @@ const ln = Ue, an = Ue, Wt = ({
1804
1814
  scrollSensitivity: y = 1.25,
1805
1815
  ...a
1806
1816
  }) => {
1807
- const u = P(null), m = l || u, [b, w] = D(0), M = ct({
1817
+ const u = B(null), m = l || u, [b, x] = D(0), M = ut({
1808
1818
  index: h,
1809
1819
  className: t,
1810
1820
  children: n,
@@ -1816,15 +1826,15 @@ const ln = Ue, an = Ue, Wt = ({
1816
1826
  gap: s,
1817
1827
  scrollSensitivity: y
1818
1828
  }), g = te.Children.toArray(n).filter(
1819
- (v) => te.isValidElement(v) && v.type === Bt
1820
- ), R = P(null), [N, A] = D(
1829
+ (w) => te.isValidElement(w) && w.type === Pt
1830
+ ), R = B(null), [N, P] = D(
1821
1831
  {}
1822
- ), [L, O] = D(null), F = P(0), C = P(null), x = () => {
1823
- var we, me, xe;
1832
+ ), [L, O] = D(null), F = B(0), C = B(null), v = () => {
1833
+ var xe, me, ve;
1824
1834
  if (!R.current || !m.current || (L == null ? void 0 : L.scrollProgress) === void 0)
1825
1835
  return [];
1826
- const v = (L == null ? void 0 : L.scrollVisible) ?? ((we = m.current) == null ? void 0 : we.clientWidth) ?? 0;
1827
- function B(W, K) {
1836
+ const w = (L == null ? void 0 : L.scrollVisible) ?? ((xe = m.current) == null ? void 0 : xe.clientWidth) ?? 0;
1837
+ function A(W, K) {
1828
1838
  return W.map((Z, z) => ({
1829
1839
  itemScrollXCenter: Z,
1830
1840
  relativeIndex: (Z - K) / Math.abs(W[1] - W[0]),
@@ -1836,11 +1846,11 @@ const ln = Ue, an = Ue, Wt = ({
1836
1846
  if (!k[K].current || !R.current) return 0;
1837
1847
  const z = K / (g.length - 1);
1838
1848
  return fe(z, [0, 1], [0, 1]);
1839
- }), V = B(
1849
+ }), V = A(
1840
1850
  H,
1841
1851
  (L == null ? void 0 : L.scrollProgress) ?? 0
1842
1852
  ).sort((W, K) => W.index - K.index);
1843
- let se = ((((me = m.current) == null ? void 0 : me.clientWidth) ?? v) + s) / (c[1] + s);
1853
+ let se = ((((me = m.current) == null ? void 0 : me.clientWidth) ?? w) + s) / (c[1] + s);
1844
1854
  const ne = V.sort((W, K) => Math.abs(W.relativeIndex) - Math.abs(K.relativeIndex)).map((W, K) => {
1845
1855
  var z;
1846
1856
  if (!W) return;
@@ -1849,7 +1859,7 @@ const ln = Ue, an = Ue, Wt = ({
1849
1859
  if (!(!m.current || !Z) && !(se <= 0))
1850
1860
  return W.width = c[1], --se, W;
1851
1861
  }).filter(Boolean).sort((W, K) => W.index - K.index);
1852
- let T = (((xe = m.current) == null ? void 0 : xe.clientWidth) ?? v) - s;
1862
+ let T = (((ve = m.current) == null ? void 0 : ve.clientWidth) ?? w) - s;
1853
1863
  const ce = ne.filter((W, K, Z) => {
1854
1864
  let z = !1;
1855
1865
  return W.width == c[1] && (K === 0 || K === Z.length - 1) && (z = !0), z ? !0 : (T -= W.width + s, !1);
@@ -1913,64 +1923,64 @@ const ln = Ue, an = Ue, Wt = ({
1913
1923
  Z++;
1914
1924
  }
1915
1925
  }
1916
- }), w(ee), Object.fromEntries(
1926
+ }), x(ee), Object.fromEntries(
1917
1927
  ne.map((W) => [W.index, W.width])
1918
1928
  );
1919
- }, k = P([]).current, [U, J] = D(0);
1929
+ }, k = B([]).current, [U, J] = D(0);
1920
1930
  $(() => {
1921
1931
  d && d(U);
1922
1932
  }, [U]), $(() => {
1923
1933
  typeof h == "number" && g.length > 0 && h !== U && oe(h);
1924
1934
  }, [h, g.length]), $(() => {
1925
1935
  _(U);
1926
- }, [U]), k.length !== g.length && g.forEach((v, B) => {
1927
- k[B] || (k[B] = te.createRef());
1936
+ }, [U]), k.length !== g.length && g.forEach((w, A) => {
1937
+ k[A] || (k[A] = te.createRef());
1928
1938
  });
1929
- const [re, _] = D(0), oe = (v, B = {}) => {
1939
+ const [re, _] = D(0), oe = (w, A = {}) => {
1930
1940
  if (!g.length) return 0;
1931
- const H = k[v];
1941
+ const H = k[w];
1932
1942
  if (!H || !H.current || !R.current) return 0;
1933
1943
  const V = fe(
1934
- v / Math.max(1, g.length - 1),
1944
+ w / Math.max(1, g.length - 1),
1935
1945
  [0, 1],
1936
1946
  [0, 1]
1937
1947
  );
1938
- return _(v), R.current.dispatchEvent(
1948
+ return _(w), R.current.dispatchEvent(
1939
1949
  new CustomEvent("udx:customScroll:set", {
1940
1950
  bubbles: !0,
1941
1951
  detail: {
1942
1952
  progress: V,
1943
1953
  orientation: "horizontal",
1944
- animate: B.animate !== !1
1954
+ animate: A.animate !== !1
1945
1955
  }
1946
1956
  })
1947
1957
  ), V;
1948
- }, S = g.map((v, B) => {
1958
+ }, S = g.map((w, A) => {
1949
1959
  var se;
1950
- const H = (se = v.props) == null ? void 0 : se.onClick, V = (ne) => {
1960
+ const H = (se = w.props) == null ? void 0 : se.onClick, V = (ne) => {
1951
1961
  H == null || H(ne);
1952
- }, le = () => _(B);
1962
+ }, le = () => _(A);
1953
1963
  return te.cloneElement(
1954
- v,
1964
+ w,
1955
1965
  {
1956
- width: N[B],
1966
+ width: N[A],
1957
1967
  outputRange: c,
1958
- ref: k[B],
1959
- key: B,
1960
- index: B,
1968
+ ref: k[A],
1969
+ key: A,
1970
+ index: A,
1961
1971
  role: "option",
1962
- "aria-selected": U === B,
1963
- tabIndex: U === B ? 0 : -1,
1972
+ "aria-selected": U === A,
1973
+ tabIndex: U === A ? 0 : -1,
1964
1974
  onClick: V,
1965
1975
  onFocus: le
1966
1976
  }
1967
1977
  );
1968
- }), E = (v) => {
1969
- var B;
1970
- if (v.scrollTotal > 0) {
1971
- (B = C.current) == null || B.stop();
1972
- const H = F.current ?? 0, V = v.scrollProgress ?? 0;
1973
- C.current = Je(H, V, {
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, {
1974
1984
  // Spring tuning to add a bit of inertia and smoothness
1975
1985
  type: "spring",
1976
1986
  stiffness: 260,
@@ -1978,95 +1988,95 @@ const ln = Ue, an = Ue, Wt = ({
1978
1988
  mass: 0.6,
1979
1989
  restDelta: 5e-4,
1980
1990
  onUpdate: (le) => {
1981
- F.current = le, O({ ...v, scrollProgress: le });
1991
+ F.current = le, O({ ...w, scrollProgress: le });
1982
1992
  }
1983
1993
  });
1984
1994
  }
1985
1995
  };
1986
1996
  $(() => {
1987
- const v = x();
1988
- A(v);
1997
+ const w = v();
1998
+ P(w);
1989
1999
  }, [L]);
1990
- const X = P(o);
2000
+ const X = B(o);
1991
2001
  $(() => {
1992
2002
  X.current = o;
1993
2003
  }, [o]);
1994
- const q = P(null);
2004
+ const q = B(null);
1995
2005
  $(() => {
1996
2006
  var K;
1997
- const v = X.current;
1998
- if (!v || !(m != null && m.current)) return;
1999
- const B = g.length;
2000
- if (B <= 0) return;
2007
+ const w = X.current;
2008
+ if (!w || !(m != null && m.current)) return;
2009
+ const A = g.length;
2010
+ if (A <= 0) return;
2001
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(
2002
2012
  Math.max(0, U),
2003
- Math.max(0, B - 1)
2004
- ), ee = ce > 0, we = ce < B - 1, me = {
2005
- total: B,
2013
+ Math.max(0, A - 1)
2014
+ ), ee = ce > 0, xe = ce < A - 1, me = {
2015
+ total: A,
2006
2016
  selectedIndex: ce,
2007
2017
  visibleApprox: se,
2008
2018
  visibleFull: ne,
2009
2019
  stepHalf: T,
2010
2020
  canPrev: ee,
2011
- canNext: we,
2021
+ canNext: xe,
2012
2022
  scrollProgress: le,
2013
2023
  viewportWidth: H,
2014
2024
  itemMaxWidth: V,
2015
2025
  gap: s
2016
- }, xe = q.current;
2017
- let W = !xe;
2026
+ }, ve = q.current;
2027
+ let W = !ve;
2018
2028
  if (!W) {
2019
2029
  for (const Z in me)
2020
- if (me[Z] !== xe[Z]) {
2030
+ if (me[Z] !== ve[Z]) {
2021
2031
  W = !0;
2022
2032
  break;
2023
2033
  }
2024
2034
  }
2025
- W && (q.current = me, v(me));
2035
+ W && (q.current = me, w(me));
2026
2036
  }, [m, g.length, U, L, s, c]), $(() => () => {
2027
- var v;
2028
- (v = C.current) == null || v.stop();
2037
+ var w;
2038
+ (w = C.current) == null || w.stop();
2029
2039
  }, []);
2030
2040
  const [ae, de] = D(0);
2031
- Ve(() => {
2032
- let v = c[1];
2033
- L && v > L.scrollVisible && (v = L.scrollVisible);
2034
- const B = (v + s) * S.length / y;
2035
- de(B);
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);
2036
2046
  }, [m, k, L]);
2037
- const I = (v) => {
2047
+ const I = (w) => {
2038
2048
  if (!g.length) return;
2039
- const B = re ?? U;
2040
- switch (v.key) {
2049
+ const A = re ?? U;
2050
+ switch (w.key) {
2041
2051
  case "ArrowLeft":
2042
- v.preventDefault(), oe(Math.max(0, B - 1));
2052
+ w.preventDefault(), oe(Math.max(0, A - 1));
2043
2053
  break;
2044
2054
  case "ArrowRight":
2045
- v.preventDefault(), oe(Math.min(g.length - 1, B + 1));
2055
+ w.preventDefault(), oe(Math.min(g.length - 1, A + 1));
2046
2056
  break;
2047
2057
  case "Home":
2048
- v.preventDefault(), oe(0);
2058
+ w.preventDefault(), oe(0);
2049
2059
  break;
2050
2060
  case "End":
2051
- v.preventDefault(), oe(g.length - 1);
2061
+ w.preventDefault(), oe(g.length - 1);
2052
2062
  break;
2053
2063
  case "Enter":
2054
2064
  case " ":
2055
- v.preventDefault(), oe(B);
2065
+ w.preventDefault(), oe(A);
2056
2066
  break;
2057
2067
  }
2058
2068
  };
2059
2069
  return $(() => {
2060
- const v = m.current;
2061
- if (!v) return;
2062
- const B = (H) => {
2070
+ const w = m.current;
2071
+ if (!w) return;
2072
+ const A = (H) => {
2063
2073
  const V = H.detail;
2064
2074
  V && typeof V.index == "number" && oe(V.index);
2065
2075
  };
2066
- return v.addEventListener("udx:carousel:centerIndex", B), () => {
2067
- v.removeEventListener(
2076
+ return w.addEventListener("udx:carousel:centerIndex", A), () => {
2077
+ w.removeEventListener(
2068
2078
  "udx:carousel:centerIndex",
2069
- B
2079
+ A
2070
2080
  );
2071
2081
  };
2072
2082
  }, [m, g.length]), /* @__PURE__ */ f(
@@ -2079,7 +2089,7 @@ const ln = Ue, an = Ue, Wt = ({
2079
2089
  onKeyDown: I,
2080
2090
  ...a,
2081
2091
  children: /* @__PURE__ */ f(
2082
- Et,
2092
+ kt,
2083
2093
  {
2084
2094
  draggable: !0,
2085
2095
  orientation: "horizontal",
@@ -2102,41 +2112,41 @@ const ln = Ue, an = Ue, Wt = ({
2102
2112
  )
2103
2113
  }
2104
2114
  );
2105
- }, Pt = ({
2115
+ }, Ht = ({
2106
2116
  orientation: e = "horizontal",
2107
2117
  className: t,
2108
2118
  ...n
2109
2119
  }) => {
2110
- const l = it({ orientation: e, className: t });
2120
+ const l = dt({ orientation: e, className: t });
2111
2121
  return /* @__PURE__ */ f("hr", { className: l.divider, ...n });
2112
2122
  }, Q = [];
2113
2123
  for (let e = 0; e < 256; ++e)
2114
2124
  Q.push((e + 256).toString(16).slice(1));
2115
- function At(e, t = 0) {
2125
+ function Vt(e, t = 0) {
2116
2126
  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();
2117
2127
  }
2118
2128
  let ke;
2119
- const Ht = new Uint8Array(16);
2120
- function Vt() {
2129
+ const Ft = new Uint8Array(16);
2130
+ function Xt() {
2121
2131
  if (!ke) {
2122
2132
  if (typeof crypto > "u" || !crypto.getRandomValues)
2123
2133
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2124
2134
  ke = crypto.getRandomValues.bind(crypto);
2125
2135
  }
2126
- return ke(Ht);
2136
+ return ke(Ft);
2127
2137
  }
2128
- const Ft = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pe = { randomUUID: Ft };
2138
+ const Ot = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), He = { randomUUID: Ot };
2129
2139
  function Se(e, t, n) {
2130
2140
  var r;
2131
- if (Pe.randomUUID && !e)
2132
- return Pe.randomUUID();
2141
+ if (He.randomUUID && !e)
2142
+ return He.randomUUID();
2133
2143
  e = e || {};
2134
- const l = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Vt();
2144
+ const l = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Xt();
2135
2145
  if (l.length < 16)
2136
2146
  throw new Error("Random bytes length must be >= 16");
2137
- return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, At(l);
2147
+ return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Vt(l);
2138
2148
  }
2139
- const Ye = ({
2149
+ const qe = ({
2140
2150
  variant: e = "plain",
2141
2151
  buttons: t,
2142
2152
  className: n,
@@ -2152,15 +2162,15 @@ const Ye = ({
2152
2162
  if (!l && !s)
2153
2163
  throw new Error("ToolTip must have a child or a targetRef");
2154
2164
  Array.isArray(o) || (o = [o]), t && !Array.isArray(t) && (t = [t]);
2155
- const y = P(null), a = s || y, [u, m] = D(null), [b] = D(Se()), [w, M] = D(!1), g = P(null);
2165
+ const y = B(null), a = s || y, [u, m] = D(null), [b] = D(Se()), [x, M] = D(!1), g = B(null);
2156
2166
  $(() => {
2157
- const x = (k) => {
2167
+ const v = (k) => {
2158
2168
  m(k.detail);
2159
2169
  };
2160
- return document.addEventListener("tooltip-update", x), () => {
2170
+ return document.addEventListener("tooltip-update", v), () => {
2161
2171
  document.removeEventListener(
2162
2172
  "tooltip-update",
2163
- x
2173
+ v
2164
2174
  );
2165
2175
  };
2166
2176
  }, []), $(() => {
@@ -2170,46 +2180,46 @@ const Ye = ({
2170
2180
  }, [u, b]);
2171
2181
  const R = () => {
2172
2182
  if (o.includes("hover")) {
2173
- const x = new CustomEvent("tooltip-update", { detail: b });
2174
- document.dispatchEvent(x);
2183
+ const v = new CustomEvent("tooltip-update", { detail: b });
2184
+ document.dispatchEvent(v);
2175
2185
  }
2176
2186
  }, N = () => {
2177
2187
  if (o.includes("hover")) {
2178
- const x = new CustomEvent("tooltip-update", { detail: null });
2179
- document.dispatchEvent(x);
2188
+ const v = new CustomEvent("tooltip-update", { detail: null });
2189
+ document.dispatchEvent(v);
2180
2190
  }
2181
- }, A = () => {
2191
+ }, P = () => {
2182
2192
  if (o.includes("click")) {
2183
- const x = new CustomEvent("tooltip-update", {
2184
- detail: w ? null : b
2193
+ const v = new CustomEvent("tooltip-update", {
2194
+ detail: x ? null : b
2185
2195
  });
2186
- document.dispatchEvent(x);
2196
+ document.dispatchEvent(v);
2187
2197
  }
2188
2198
  }, L = () => {
2189
2199
  if (o.includes("focus")) {
2190
- const x = new CustomEvent("tooltip-update", { detail: b });
2191
- document.dispatchEvent(x);
2200
+ const v = new CustomEvent("tooltip-update", { detail: b });
2201
+ document.dispatchEvent(v);
2192
2202
  }
2193
2203
  }, O = () => {
2194
2204
  if (o.includes("focus")) {
2195
- const x = new CustomEvent("tooltip-update", { detail: null });
2196
- document.dispatchEvent(x);
2205
+ const v = new CustomEvent("tooltip-update", { detail: null });
2206
+ document.dispatchEvent(v);
2197
2207
  }
2198
2208
  };
2199
2209
  $(() => {
2200
2210
  if (a != null && a.current) {
2201
- const x = a.current;
2202
- return x.addEventListener("mouseenter", R), x.addEventListener("mouseleave", N), x.addEventListener("click", A), x.addEventListener("focus", L), x.addEventListener("blur", O), () => {
2203
- x.removeEventListener("mouseenter", R), x.removeEventListener("mouseleave", N), x.removeEventListener("click", A), x.removeEventListener("focus", L), x.removeEventListener("blur", O);
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);
2204
2214
  };
2205
2215
  }
2206
- }, [a, o, b, w]);
2216
+ }, [a, o, b, x]);
2207
2217
  const F = !s && pe(l) ? be(l, { ref: y }) : l;
2208
2218
  if (!c && typeof window < "u" && a != null && a.current && !c) {
2209
- const x = a.current.getBoundingClientRect(), k = window.innerWidth, U = window.innerHeight, J = x.left / k, re = x.top / U;
2219
+ const v = a.current.getBoundingClientRect(), k = window.innerWidth, U = window.innerHeight, J = v.left / k, re = v.top / U;
2210
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");
2211
2221
  }
2212
- const C = gt({
2222
+ const C = Lt({
2213
2223
  variant: e,
2214
2224
  buttons: t,
2215
2225
  className: n,
@@ -2222,7 +2232,7 @@ const Ye = ({
2222
2232
  });
2223
2233
  return /* @__PURE__ */ Y(ye, { children: [
2224
2234
  F,
2225
- /* @__PURE__ */ f(ue, { children: w && /* @__PURE__ */ f(kt, { targetRef: a, children: /* @__PURE__ */ f(
2235
+ /* @__PURE__ */ f(ue, { children: x && /* @__PURE__ */ f(St, { targetRef: a, children: /* @__PURE__ */ f(
2226
2236
  j.div,
2227
2237
  {
2228
2238
  initial: { opacity: u ? 1 : 0 },
@@ -2246,12 +2256,12 @@ const Ye = ({
2246
2256
  children: [
2247
2257
  r && /* @__PURE__ */ f("div", { className: C.subHead, children: r }),
2248
2258
  /* @__PURE__ */ f("div", { className: C.supportingText, children: i }),
2249
- t && /* @__PURE__ */ f("div", { className: C.actions, children: Array.isArray(t) && t.map((x, k) => /* @__PURE__ */ f(
2250
- Wt,
2259
+ t && /* @__PURE__ */ f("div", { className: C.actions, children: Array.isArray(t) && t.map((v, k) => /* @__PURE__ */ f(
2260
+ Bt,
2251
2261
  {
2252
2262
  size: "small",
2253
2263
  variant: "text",
2254
- ...x
2264
+ ...v
2255
2265
  },
2256
2266
  k
2257
2267
  )) })
@@ -2261,7 +2271,7 @@ const Ye = ({
2261
2271
  }
2262
2272
  ) }) })
2263
2273
  ] });
2264
- }, Ae = ({
2274
+ }, Ve = ({
2265
2275
  className: e,
2266
2276
  label: t,
2267
2277
  variant: n = "primary",
@@ -2279,7 +2289,7 @@ const Ye = ({
2279
2289
  throw new Error(
2280
2290
  "FAB component requires either a label prop or children content"
2281
2291
  );
2282
- const a = r ? "a" : "button", u = ut({
2292
+ const a = r ? "a" : "button", u = ft({
2283
2293
  href: r,
2284
2294
  icon: c,
2285
2295
  isExtended: s,
@@ -2291,7 +2301,7 @@ const Ye = ({
2291
2301
  children: t
2292
2302
  });
2293
2303
  o = { duration: 0.3, ...o };
2294
- const m = P(null), b = d || m, w = {
2304
+ const m = B(null), b = d || m, x = {
2295
2305
  visible: {
2296
2306
  width: "auto",
2297
2307
  marginLeft: 12,
@@ -2327,7 +2337,7 @@ const Ye = ({
2327
2337
  className: u.fab,
2328
2338
  children: [
2329
2339
  /* @__PURE__ */ f(
2330
- Ye,
2340
+ qe,
2331
2341
  {
2332
2342
  trigger: s ? null : void 0,
2333
2343
  text: t,
@@ -2335,7 +2345,7 @@ const Ye = ({
2335
2345
  }
2336
2346
  ),
2337
2347
  /* @__PURE__ */ f("span", { className: u.stateLayer, children: /* @__PURE__ */ f(
2338
- ve,
2348
+ we,
2339
2349
  {
2340
2350
  colorName: p({
2341
2351
  primary: n == "surface",
@@ -2350,7 +2360,7 @@ const Ye = ({
2350
2360
  /* @__PURE__ */ f(ue, { children: s && /* @__PURE__ */ f(
2351
2361
  j.span,
2352
2362
  {
2353
- variants: w,
2363
+ variants: x,
2354
2364
  initial: "hidden",
2355
2365
  animate: "visible",
2356
2366
  exit: "hidden",
@@ -2378,7 +2388,7 @@ const Ye = ({
2378
2388
  ref: u,
2379
2389
  width: m = "default",
2380
2390
  shape: b = "rounded",
2381
- allowShapeTransformation: w = !0,
2391
+ allowShapeTransformation: x = !0,
2382
2392
  transition: M,
2383
2393
  children: g,
2384
2394
  ...R
@@ -2388,19 +2398,19 @@ const Ye = ({
2388
2398
  "IconButton component requires either a label prop or children content to provide an accessible aria-label"
2389
2399
  );
2390
2400
  r || (r = i);
2391
- const [N, A] = te.useState(s);
2401
+ const [N, P] = te.useState(s);
2392
2402
  let L;
2393
2403
  c ? c && (L = (k) => {
2394
- n && k.preventDefault(), A(!N), c(!!N);
2404
+ n && k.preventDefault(), P(!N), c(!!N);
2395
2405
  }, o = N && y || o) : L = (k) => {
2396
2406
  n && k.preventDefault(), d && d(k);
2397
2407
  }, $(() => {
2398
- A(s);
2408
+ P(s);
2399
2409
  }, [s]);
2400
- const O = t ? "a" : "button", F = dt({
2410
+ const O = t ? "a" : "button", F = mt({
2401
2411
  transition: M,
2402
2412
  shape: b,
2403
- allowShapeTransformation: w,
2413
+ allowShapeTransformation: x,
2404
2414
  width: m,
2405
2415
  href: t,
2406
2416
  activated: N,
@@ -2415,7 +2425,7 @@ const Ye = ({
2415
2425
  size: h,
2416
2426
  children: i,
2417
2427
  ...R
2418
- }), C = P(null), x = u || C;
2428
+ }), C = B(null), v = u || C;
2419
2429
  return M = { duration: 0.3, ...M }, /* @__PURE__ */ Y(
2420
2430
  O,
2421
2431
  {
@@ -2427,12 +2437,12 @@ const Ye = ({
2427
2437
  ...R,
2428
2438
  title: void 0,
2429
2439
  onClick: L,
2430
- ref: x,
2440
+ ref: v,
2431
2441
  children: [
2432
2442
  /* @__PURE__ */ f(
2433
- Ye,
2443
+ qe,
2434
2444
  {
2435
- targetRef: x,
2445
+ targetRef: v,
2436
2446
  trigger: n ? null : void 0,
2437
2447
  text: r
2438
2448
  }
@@ -2444,7 +2454,7 @@ const Ye = ({
2444
2454
  className: F.stateLayer,
2445
2455
  style: { transition: M.duration + "s" },
2446
2456
  children: !n && /* @__PURE__ */ f(
2447
- ve,
2457
+ we,
2448
2458
  {
2449
2459
  colorName: p(
2450
2460
  e === "standard" && {
@@ -2464,7 +2474,7 @@ const Ye = ({
2464
2474
  "on-primary": N
2465
2475
  }
2466
2476
  ),
2467
- triggerRef: x
2477
+ triggerRef: v
2468
2478
  }
2469
2479
  )
2470
2480
  }
@@ -2473,7 +2483,7 @@ const Ye = ({
2473
2483
  ]
2474
2484
  }
2475
2485
  );
2476
- }, un = ({
2486
+ }, fn = ({
2477
2487
  className: e,
2478
2488
  valueFormatter: t,
2479
2489
  step: n = 10,
@@ -2501,15 +2511,15 @@ const Ye = ({
2501
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) => {
2502
2512
  const E = u(!1);
2503
2513
  return (a(!1) - E) * S / 100 + E;
2504
- }, [b, w] = D(!1), M = P(null), g = d || M, [R, N] = D(r), [A, L] = D(y(r)), [O, F] = D(!1), C = (S) => {
2505
- F(!0), w(!0), U(S);
2506
- }, x = () => {
2507
- F(!1), w(!1);
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);
2508
2518
  };
2509
- $(() => (O ? (window.addEventListener("mouseup", x), window.addEventListener("mousemove", U), window.addEventListener("touchend", x), window.addEventListener("touchmove", U)) : (window.removeEventListener("mouseup", x), window.removeEventListener("mousemove", U), window.removeEventListener("touchend", x), window.removeEventListener("touchmove", U)), () => {
2510
- window.removeEventListener("mouseup", x), window.removeEventListener("mousemove", U), window.removeEventListener("touchend", x), window.removeEventListener("touchmove", U);
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);
2511
2521
  }), [O]);
2512
- const k = ht({
2522
+ const k = yt({
2513
2523
  className: e,
2514
2524
  isChanging: b,
2515
2525
  marks: s,
@@ -2604,7 +2614,7 @@ const Ye = ({
2604
2614
  ...h,
2605
2615
  children: [
2606
2616
  /* @__PURE__ */ f("input", { type: "hidden", name: l, value: R }),
2607
- /* @__PURE__ */ f("div", { className: k.activeTrack, style: { flex: A / 100 } }),
2617
+ /* @__PURE__ */ f("div", { className: k.activeTrack, style: { flex: P / 100 } }),
2608
2618
  /* @__PURE__ */ f("div", { className: k.handle, children: /* @__PURE__ */ f(ue, { children: b && /* @__PURE__ */ f(
2609
2619
  j.div,
2610
2620
  {
@@ -2629,7 +2639,7 @@ const Ye = ({
2629
2639
  "div",
2630
2640
  {
2631
2641
  className: k.inactiveTrack,
2632
- style: { flex: 1 - A / 100 }
2642
+ style: { flex: 1 - P / 100 }
2633
2643
  }
2634
2644
  ),
2635
2645
  /* @__PURE__ */ f(
@@ -2639,7 +2649,7 @@ const Ye = ({
2639
2649
  children: s && s.map((S, E) => {
2640
2650
  let X = null;
2641
2651
  const q = (b ? 9 : 10) / re * 100, ae = y(S.value);
2642
- return ae <= A - q ? X = !0 : ae >= A + q && (X = !1), /* @__PURE__ */ f(
2652
+ return ae <= P - q ? X = !0 : ae >= P + q && (X = !1), /* @__PURE__ */ f(
2643
2653
  "div",
2644
2654
  {
2645
2655
  className: p(k.dot, {
@@ -2664,7 +2674,7 @@ const Ye = ({
2664
2674
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2665
2675
  * Copyright 2025 Fonticons, Inc.
2666
2676
  */
2667
- var Xt = {
2677
+ var Ut = {
2668
2678
  prefix: "fas",
2669
2679
  iconName: "circle-exclamation",
2670
2680
  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"]
@@ -2672,12 +2682,12 @@ var Xt = {
2672
2682
  prefix: "fas",
2673
2683
  iconName: "xmark",
2674
2684
  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"]
2675
- }, Ot = {
2685
+ }, Yt = {
2676
2686
  prefix: "fas",
2677
2687
  iconName: "bars",
2678
2688
  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"]
2679
2689
  };
2680
- const dn = ({
2690
+ const mn = ({
2681
2691
  variant: e = "standard",
2682
2692
  className: t,
2683
2693
  children: n,
@@ -2691,7 +2701,7 @@ const dn = ({
2691
2701
  ...h
2692
2702
  }) => {
2693
2703
  o = { duration: 0.3, ...o };
2694
- const [y, a] = D(i ?? !0), u = mt({
2704
+ const [y, a] = D(i ?? !0), u = pt({
2695
2705
  transition: o,
2696
2706
  title: l,
2697
2707
  position: r,
@@ -2768,13 +2778,13 @@ const dn = ({
2768
2778
  ]
2769
2779
  }
2770
2780
  ),
2771
- (c == null && e == "standard" ? !0 : c) && /* @__PURE__ */ f(Pt, { className: u.divider, orientation: "vertical" })
2781
+ (c == null && e == "standard" ? !0 : c) && /* @__PURE__ */ f(Ht, { className: u.divider, orientation: "vertical" })
2772
2782
  ]
2773
2783
  }
2774
2784
  ) })
2775
2785
  ] });
2776
- return e == "modal" ? Fe(b(), document.body) : b();
2777
- }, fn = ({
2786
+ return e == "modal" ? Oe(b(), document.body) : b();
2787
+ }, hn = ({
2778
2788
  message: e,
2779
2789
  className: t,
2780
2790
  duration: n,
@@ -2782,7 +2792,7 @@ const dn = ({
2782
2792
  onClose: r,
2783
2793
  ...i
2784
2794
  }) => {
2785
- const [c, s] = D(!0), d = pt({
2795
+ const [c, s] = D(!0), d = vt({
2786
2796
  className: t,
2787
2797
  closeIcon: l,
2788
2798
  duration: n,
@@ -2821,7 +2831,7 @@ const dn = ({
2821
2831
  ] })
2822
2832
  }
2823
2833
  ) });
2824
- }, mn = ({
2834
+ }, pn = ({
2825
2835
  selected: e = !1,
2826
2836
  className: t,
2827
2837
  activeIcon: n,
@@ -2839,7 +2849,7 @@ const dn = ({
2839
2849
  l || ((g.key === " " || g.key === "Enter") && (g.preventDefault(), m()), s && s(g));
2840
2850
  }, m = () => {
2841
2851
  y(!h), i == null || i(!h);
2842
- }, b = yt({
2852
+ }, b = wt({
2843
2853
  className: t,
2844
2854
  isSelected: h,
2845
2855
  activeIcon: n,
@@ -2847,7 +2857,7 @@ const dn = ({
2847
2857
  disabled: l,
2848
2858
  selected: h,
2849
2859
  onChange: i
2850
- }), w = P(null), M = d || w;
2860
+ }), x = B(null), M = d || x;
2851
2861
  return /* @__PURE__ */ Y(
2852
2862
  j.div,
2853
2863
  {
@@ -2887,7 +2897,7 @@ const dn = ({
2887
2897
  ]
2888
2898
  }
2889
2899
  );
2890
- }, Ut = ({
2900
+ }, jt = ({
2891
2901
  className: e,
2892
2902
  onClick: t,
2893
2903
  label: n,
@@ -2904,12 +2914,12 @@ const dn = ({
2904
2914
  ref: u,
2905
2915
  ...m
2906
2916
  }) => {
2907
- const b = P(null), w = u || b, [M, g] = D(a);
2917
+ const b = B(null), x = u || b, [M, g] = D(a);
2908
2918
  $(() => {
2909
2919
  a && c == null ? g(!0) : g(c == o && o != null);
2910
2920
  }, [c]), $(() => {
2911
2921
  c == o && h && h({
2912
- ref: w,
2922
+ ref: x,
2913
2923
  index: o || 0,
2914
2924
  label: n,
2915
2925
  icon: i
@@ -2917,7 +2927,7 @@ const dn = ({
2917
2927
  }, [c]);
2918
2928
  const R = r ? "a" : "button", N = (L) => {
2919
2929
  s && s(o ?? null), t && t(L);
2920
- }, A = xt({
2930
+ }, P = xt({
2921
2931
  className: e,
2922
2932
  onTabSelected: h,
2923
2933
  scrollable: y,
@@ -2938,27 +2948,27 @@ const dn = ({
2938
2948
  ...m,
2939
2949
  role: "tab",
2940
2950
  "aria-selected": M,
2941
- ref: w,
2951
+ ref: x,
2942
2952
  href: r,
2943
- className: A.tab,
2953
+ className: P.tab,
2944
2954
  onClick: N,
2945
2955
  ...m,
2946
2956
  children: [
2947
- /* @__PURE__ */ f("span", { className: A.stateLayer, children: /* @__PURE__ */ f(
2948
- ve,
2957
+ /* @__PURE__ */ f("span", { className: P.stateLayer, children: /* @__PURE__ */ f(
2958
+ we,
2949
2959
  {
2950
2960
  colorName: l === "primary" && M ? "primary" : "on-surface",
2951
- triggerRef: w
2961
+ triggerRef: x
2952
2962
  }
2953
2963
  ) }),
2954
- /* @__PURE__ */ Y("span", { className: A.content, children: [
2955
- i && /* @__PURE__ */ f(ie, { icon: i, className: A.icon }),
2956
- /* @__PURE__ */ f("span", { className: A.label, children: n }),
2964
+ /* @__PURE__ */ Y("span", { className: P.content, children: [
2965
+ i && /* @__PURE__ */ f(ie, { icon: i, className: P.icon }),
2966
+ /* @__PURE__ */ f("span", { className: P.label, children: n }),
2957
2967
  M && /* @__PURE__ */ f(
2958
2968
  j.span,
2959
2969
  {
2960
2970
  layoutId: `underline-${d}`,
2961
- className: A.underline,
2971
+ className: P.underline,
2962
2972
  transition: { duration: 0.3 }
2963
2973
  }
2964
2974
  )
@@ -2966,7 +2976,7 @@ const dn = ({
2966
2976
  ]
2967
2977
  }
2968
2978
  );
2969
- }, hn = ({
2979
+ }, yn = ({
2970
2980
  variant: e = "primary",
2971
2981
  onTabSelected: t,
2972
2982
  children: n,
@@ -2981,16 +2991,16 @@ const dn = ({
2981
2991
  let o;
2982
2992
  r == 0 || r != null ? o = r : o = s;
2983
2993
  const h = i || d, y = te.Children.toArray(n).filter(
2984
- (w) => te.isValidElement(w) && w.type === Ut
2985
- ), a = te.useRef(null), u = (w) => {
2986
- if (t == null || t(w), c) {
2987
- const M = a.current, g = w.ref.current;
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;
2988
2998
  if (M && g) {
2989
2999
  const R = g.offsetLeft + g.offsetWidth / 2 - M.offsetWidth / 2;
2990
3000
  M.scrollTo({ left: R, behavior: "smooth" });
2991
3001
  }
2992
3002
  }
2993
- }, m = qe(() => Se(), []), b = vt({
3003
+ }, m = _e(() => Se(), []), b = gt({
2994
3004
  children: n,
2995
3005
  onTabSelected: t,
2996
3006
  scrollable: c,
@@ -2999,7 +3009,7 @@ const dn = ({
2999
3009
  className: l,
3000
3010
  variant: e
3001
3011
  });
3002
- return /* @__PURE__ */ f("div", { ref: a, role: "tablist", className: b.tabs, children: y.map((w, M) => te.cloneElement(w, {
3012
+ return /* @__PURE__ */ f("div", { ref: a, role: "tablist", className: b.tabs, children: y.map((x, M) => te.cloneElement(x, {
3003
3013
  key: M,
3004
3014
  index: M,
3005
3015
  variant: e,
@@ -3009,7 +3019,7 @@ const dn = ({
3009
3019
  onTabSelected: u,
3010
3020
  scrollable: c
3011
3021
  })) });
3012
- }, pn = ({
3022
+ }, vn = ({
3013
3023
  variant: e = "filled",
3014
3024
  disabled: t = !1,
3015
3025
  errorText: n,
@@ -3026,31 +3036,31 @@ const dn = ({
3026
3036
  autoComplete: u = "on",
3027
3037
  onChange: m,
3028
3038
  value: b,
3029
- showSupportingText: w = !1,
3039
+ showSupportingText: x = !1,
3030
3040
  ...M
3031
3041
  }) => {
3032
- const [g, R] = D(b ?? ""), [N, A] = D(!1), [L, O] = D(!1), [F, C] = D(
3033
- w
3042
+ const [g, R] = D(b ?? ""), [N, P] = D(!1), [L, O] = D(!1), [F, C] = D(
3043
+ x
3034
3044
  );
3035
3045
  $(() => {
3036
3046
  R(b ?? "");
3037
3047
  }, [b]), $(() => {
3038
3048
  n != null && n.length ? O(!0) : O(!1);
3039
3049
  }, [n]), $(() => {
3040
- w ? C(w) : d != null && d.length ? C(!0) : C(!1);
3050
+ x ? C(x) : d != null && d.length ? C(!0) : C(!1);
3041
3051
  }, [F, d]), $(() => {
3042
3052
  N && O(!1);
3043
3053
  }, [N]);
3044
- const x = te.useRef(null), k = () => {
3045
- x.current && !N && x.current.focus();
3054
+ const v = te.useRef(null), k = () => {
3055
+ v.current && !N && v.current.focus();
3046
3056
  }, U = () => {
3047
- A(!0);
3057
+ P(!0);
3048
3058
  }, J = (X) => {
3049
3059
  const q = X.target.value;
3050
3060
  R(q), O(!1), typeof m == "function" && m(q);
3051
3061
  }, re = () => {
3052
- A(!1);
3053
- }, _ = wt({
3062
+ P(!1);
3063
+ }, _ = bt({
3054
3064
  showSupportingText: F,
3055
3065
  isFocused: N,
3056
3066
  showErrorIcon: L,
@@ -3074,7 +3084,7 @@ const dn = ({
3074
3084
  let S, E;
3075
3085
  switch (a) {
3076
3086
  case "multiLine":
3077
- E = tt, S = {};
3087
+ E = rt, S = {};
3078
3088
  break;
3079
3089
  case "textAreas":
3080
3090
  E = "textarea", S = {};
@@ -3137,7 +3147,7 @@ const dn = ({
3137
3147
  /* @__PURE__ */ f(
3138
3148
  E,
3139
3149
  {
3140
- ref: x,
3150
+ ref: v,
3141
3151
  value: g,
3142
3152
  onChange: J,
3143
3153
  className: _.input,
@@ -3178,7 +3188,7 @@ const dn = ({
3178
3188
  ie,
3179
3189
  {
3180
3190
  className: "h-5 text-error",
3181
- icon: Xt
3191
+ icon: Ut
3182
3192
  }
3183
3193
  )
3184
3194
  }
@@ -3186,7 +3196,7 @@ const dn = ({
3186
3196
  ] }),
3187
3197
  F && /* @__PURE__ */ f("p", { className: _.supportingText, children: n != null && n.length ? n : d != null && d.length ? d : " " })
3188
3198
  ] });
3189
- }, Yt = G(
3199
+ }, qt = G(
3190
3200
  "navigationRailItem",
3191
3201
  ({ isSelected: e, icon: t, label: n, variant: l }) => ({
3192
3202
  navigationRailItem: p(
@@ -3227,7 +3237,7 @@ const dn = ({
3227
3237
  "text-label-medium": l == "vertical"
3228
3238
  })
3229
3239
  })
3230
- ), jt = ({ 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 }) }), qt = ({
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 = ({
3231
3241
  className: e,
3232
3242
  onClick: t,
3233
3243
  label: n,
@@ -3244,12 +3254,12 @@ const dn = ({
3244
3254
  isExtended: u,
3245
3255
  iconSelected: m,
3246
3256
  style: b,
3247
- extendedOnly: w,
3257
+ extendedOnly: x,
3248
3258
  children: M,
3249
3259
  ...g
3250
3260
  }) => {
3251
3261
  M && (n = M);
3252
- const R = P(null), N = y || R, [A, L] = D(h);
3262
+ const R = B(null), N = y || R, [P, L] = D(h);
3253
3263
  $(() => {
3254
3264
  h && c == null ? L(!0) : L(c == d && d != null);
3255
3265
  }, [c]), $(() => {
@@ -3260,27 +3270,27 @@ const dn = ({
3260
3270
  icon: i
3261
3271
  });
3262
3272
  }, [c]);
3263
- const O = r ? "a" : "button", F = (x) => {
3264
- s && s(d ?? null), t && t(x);
3265
- }, C = Yt({
3273
+ const O = r ? "a" : "button", F = (v) => {
3274
+ s && s(d ?? null), t && t(v);
3275
+ }, C = qt({
3266
3276
  isExtended: u,
3267
- extendedOnly: w,
3277
+ extendedOnly: x,
3268
3278
  className: e,
3269
3279
  onItemSelected: o,
3270
3280
  selectedItem: c,
3271
3281
  index: d,
3272
3282
  transition: a,
3273
- selected: A,
3283
+ selected: P,
3274
3284
  variant: l,
3275
3285
  icon: i,
3276
3286
  label: n,
3277
- isSelected: A,
3287
+ isSelected: P,
3278
3288
  setSelectedItem: s,
3279
3289
  href: r,
3280
3290
  children: n,
3281
3291
  iconSelected: m
3282
3292
  });
3283
- return a = { duration: 0.3, ...a }, w && !u ? null : (
3293
+ return a = { duration: 0.3, ...a }, x && !u ? null : (
3284
3294
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3285
3295
  // @ts-expect-error
3286
3296
  /* @__PURE__ */ Y(
@@ -3288,7 +3298,7 @@ const dn = ({
3288
3298
  {
3289
3299
  ...g,
3290
3300
  role: "tab",
3291
- "aria-selected": A,
3301
+ "aria-selected": P,
3292
3302
  ref: N,
3293
3303
  href: r,
3294
3304
  className: C.navigationRailItem,
@@ -3308,12 +3318,12 @@ const dn = ({
3308
3318
  i && /* @__PURE__ */ f(
3309
3319
  ie,
3310
3320
  {
3311
- icon: A ? m : i,
3321
+ icon: P ? m : i,
3312
3322
  className: C.icon
3313
3323
  }
3314
3324
  ),
3315
3325
  /* @__PURE__ */ f(ue, { children: l == "horizontal" && (() => {
3316
- const x = {
3326
+ const v = {
3317
3327
  width: 0,
3318
3328
  opacity: 0,
3319
3329
  transition: {
@@ -3333,9 +3343,9 @@ const dn = ({
3333
3343
  return /* @__PURE__ */ f(
3334
3344
  j.span,
3335
3345
  {
3336
- initial: x,
3346
+ initial: v,
3337
3347
  animate: k,
3338
- exit: x,
3348
+ exit: v,
3339
3349
  className: C.label,
3340
3350
  children: n
3341
3351
  }
@@ -3345,7 +3355,7 @@ const dn = ({
3345
3355
  }
3346
3356
  ),
3347
3357
  /* @__PURE__ */ f(ue, { children: l == "vertical" && (() => {
3348
- const x = {
3358
+ const v = {
3349
3359
  height: 0,
3350
3360
  opacity: 0,
3351
3361
  transition: {
@@ -3370,7 +3380,7 @@ const dn = ({
3370
3380
  {
3371
3381
  initial: k,
3372
3382
  animate: k,
3373
- exit: x,
3383
+ exit: v,
3374
3384
  className: C.label,
3375
3385
  transition: a,
3376
3386
  children: n
@@ -3381,7 +3391,7 @@ const dn = ({
3381
3391
  }
3382
3392
  )
3383
3393
  );
3384
- }, Kt = G(
3394
+ }, Gt = G(
3385
3395
  "navigationRail",
3386
3396
  ({ isExtended: e, alignment: t }) => ({
3387
3397
  navigationRail: p("flex flex-col left-0 h-full top-0 pt-11", {
@@ -3397,7 +3407,7 @@ const dn = ({
3397
3407
  "w-fit items-start": e
3398
3408
  })
3399
3409
  })
3400
- ), yn = ({
3410
+ ), wn = ({
3401
3411
  variant: e = "standard",
3402
3412
  onItemSelected: t,
3403
3413
  children: n,
@@ -3407,7 +3417,7 @@ const dn = ({
3407
3417
  alignment: c = "top",
3408
3418
  menu: s = {
3409
3419
  closed: {
3410
- icon: Ot,
3420
+ icon: Yt,
3411
3421
  label: "Open menu"
3412
3422
  },
3413
3423
  opened: {
@@ -3421,23 +3431,23 @@ const dn = ({
3421
3431
  setSelectedItem: y
3422
3432
  }) => {
3423
3433
  const [a, u] = D(null), [m, b] = D(i);
3424
- let w;
3425
- r == 0 || r != null ? w = r : w = a;
3426
- const M = y || u, g = P(null), R = (C) => {
3434
+ let x;
3435
+ r == 0 || r != null ? x = r : x = a;
3436
+ const M = y || u, g = B(null), R = (C) => {
3427
3437
  t == null || t(C);
3428
3438
  };
3429
3439
  function N(C) {
3430
- const x = [];
3431
- return Ke.forEach(C, (k) => {
3432
- pe(k) && k.type === _e ? x.push(...N(k.props.children)) : x.push(k);
3433
- }), x;
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;
3434
3444
  }
3435
- const A = N(n), L = A.filter(
3436
- (C) => pe(C) && C.type === Ae
3437
- ), O = Kt({
3445
+ const P = N(n), L = P.filter(
3446
+ (C) => pe(C) && C.type === Ve
3447
+ ), O = Gt({
3438
3448
  children: n,
3439
3449
  onItemSelected: t,
3440
- selectedItem: w,
3450
+ selectedItem: x,
3441
3451
  setSelectedItem: M,
3442
3452
  className: l,
3443
3453
  variant: e,
@@ -3449,7 +3459,7 @@ const dn = ({
3449
3459
  onExtendedChange: o
3450
3460
  });
3451
3461
  h = { duration: 0.3, ...h };
3452
- const F = P(!1);
3462
+ const F = B(!1);
3453
3463
  return F.current = !1, $(() => {
3454
3464
  o == null || o(m ?? !1);
3455
3465
  }, [m]), /* @__PURE__ */ Y(
@@ -3477,21 +3487,21 @@ const dn = ({
3477
3487
  ] }),
3478
3488
  /* @__PURE__ */ f("div", { className: O.segments, children: (() => {
3479
3489
  let C = 0;
3480
- return A.map((x) => pe(x) && x.type === qt ? be(
3481
- x,
3490
+ return P.map((v) => pe(v) && v.type === _t ? be(
3491
+ v,
3482
3492
  {
3483
3493
  key: C,
3484
3494
  index: C++,
3485
3495
  // Utilise et incrémente le compteur dédié
3486
3496
  variant: m ? "horizontal" : "vertical",
3487
- selectedItem: w,
3497
+ selectedItem: x,
3488
3498
  setSelectedItem: M,
3489
3499
  onItemSelected: R,
3490
3500
  transition: h,
3491
3501
  extendedOnly: F.current,
3492
3502
  isExtended: m
3493
3503
  }
3494
- ) : pe(x) && x.type === Ae ? null : pe(x) && x.type === jt ? (F.current = !0, m ? be(x, {}) : null) : x);
3504
+ ) : pe(v) && v.type === Ve ? null : pe(v) && v.type === Kt ? (F.current = !0, m ? be(v, {}) : null) : v);
3495
3505
  })() }),
3496
3506
  /* @__PURE__ */ f("div", { className: "flex-1 max-h-[160px]" })
3497
3507
  ]
@@ -3499,62 +3509,62 @@ const dn = ({
3499
3509
  );
3500
3510
  };
3501
3511
  function xn(e) {
3502
- return ze({
3503
- variant: et.Udixio,
3512
+ return et({
3513
+ variant: nt.Udixio,
3504
3514
  ...e,
3505
- plugins: [new Te(e), new Xe(e)]
3515
+ plugins: [new tt(e), new Ue(e)]
3506
3516
  });
3507
3517
  }
3508
3518
  export {
3509
- ln as AnimateOnScrollInit,
3510
- Wt as Button,
3511
- sn as Card,
3512
- cn as Carousel,
3513
- Bt as CarouselItem,
3514
- Et as CustomScroll,
3515
- Pt as Divider,
3516
- Ae as Fab,
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,
3517
3527
  ie as Icon,
3518
3528
  $e as IconButton,
3519
- yn as NavigationRail,
3520
- qt as NavigationRailItem,
3521
- jt as NavigationRailSection,
3522
- bt as ProgressIndicator,
3523
- ve as RippleEffect,
3524
- dn as SideSheet,
3525
- un as Slider,
3526
- rn as SmoothScroll,
3527
- fn as Snackbar,
3528
- mn as Switch,
3529
- kt as SyncedFixedWrapper,
3530
- Ut as Tab,
3531
- hn as Tabs,
3532
- pn as TextField,
3533
- on as ThemeProvider,
3534
- Ye as ToolTip,
3535
- an as animateOnScroll,
3536
- lt as buttonStyle,
3537
- at as cardStyle,
3538
- st as carouselItemStyle,
3539
- ct as carouselStyle,
3529
+ wn as NavigationRail,
3530
+ _t as NavigationRailItem,
3531
+ Kt as NavigationRailSection,
3532
+ Nt as ProgressIndicator,
3533
+ 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,
3540
3550
  p as classNames,
3541
- nt as classnames,
3542
- Lt as customScrollStyle,
3551
+ ot as classnames,
3552
+ Et as customScrollStyle,
3543
3553
  G as defaultClassNames,
3544
3554
  xn as defineConfig,
3545
- it as dividerStyle,
3546
- ut as fabStyle,
3547
- ot as getClassNames,
3548
- dt as iconButtonStyle,
3549
- Ue as initAnimateOnScroll,
3555
+ dt as dividerStyle,
3556
+ ft as fabStyle,
3557
+ at as getClassNames,
3558
+ mt as iconButtonStyle,
3559
+ je as initAnimateOnScroll,
3550
3560
  fe as normalize,
3551
- ft as progressIndicatorStyle,
3552
- mt as sideSheetStyle,
3553
- ht as sliderStyle,
3554
- pt as snackbarStyle,
3555
- yt as switchStyle,
3561
+ ht as progressIndicatorStyle,
3562
+ pt as sideSheetStyle,
3563
+ yt as sliderStyle,
3564
+ vt as snackbarStyle,
3565
+ wt as switchStyle,
3556
3566
  xt as tabStyle,
3557
- vt as tabsStyle,
3558
- wt as textFieldStyle,
3559
- gt as toolStyle
3567
+ gt as tabsStyle,
3568
+ bt as textFieldStyle,
3569
+ Lt as toolStyle
3560
3570
  };