@udixio/ui-react 0.1.1 → 0.2.0

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