@udixio/ui-react 1.3.0 → 1.5.0

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