@udixio/ui-react 0.1.2 → 0.2.0

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