@udixio/ui-react 1.6.3 → 2.0.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 (44) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/index.cjs +3 -3
  3. package/dist/index.js +1710 -1449
  4. package/dist/lib/config/config.interface.d.ts +4 -0
  5. package/dist/lib/config/config.interface.d.ts.map +1 -0
  6. package/dist/lib/config/define-config.d.ts +4 -0
  7. package/dist/lib/config/define-config.d.ts.map +1 -0
  8. package/dist/lib/config/index.d.ts +3 -0
  9. package/dist/lib/config/index.d.ts.map +1 -0
  10. package/dist/lib/effects/AnimateOnScroll.d.ts +15 -0
  11. package/dist/lib/effects/AnimateOnScroll.d.ts.map +1 -0
  12. package/dist/lib/effects/ThemeProvider.d.ts +3 -2
  13. package/dist/lib/effects/ThemeProvider.d.ts.map +1 -1
  14. package/dist/lib/effects/block-scroll.effect.d.ts +22 -0
  15. package/dist/lib/effects/block-scroll.effect.d.ts.map +1 -0
  16. package/dist/lib/effects/custom-scroll/custom-scroll.effect.d.ts.map +1 -1
  17. package/dist/lib/effects/index.d.ts +1 -0
  18. package/dist/lib/effects/index.d.ts.map +1 -1
  19. package/dist/lib/effects/scrollDriven.d.ts +5 -0
  20. package/dist/lib/effects/scrollDriven.d.ts.map +1 -0
  21. package/dist/lib/effects/smooth-scroll.effect.d.ts +5 -5
  22. package/dist/lib/effects/smooth-scroll.effect.d.ts.map +1 -1
  23. package/dist/lib/index.d.ts +1 -0
  24. package/dist/lib/index.d.ts.map +1 -1
  25. package/dist/lib/styles/fab.style.d.ts.map +1 -1
  26. package/dist/scrollDriven-AP2yWhzi.js +121 -0
  27. package/dist/scrollDriven-DWAu7CR0.cjs +1 -0
  28. package/package.json +5 -3
  29. package/src/lib/config/config.interface.ts +9 -0
  30. package/src/lib/config/define-config.ts +16 -0
  31. package/src/lib/config/index.ts +2 -0
  32. package/src/lib/effects/AnimateOnScroll.tsx +353 -0
  33. package/src/lib/effects/ThemeProvider.tsx +78 -52
  34. package/src/lib/effects/block-scroll.effect.tsx +174 -0
  35. package/src/lib/effects/custom-scroll/custom-scroll.effect.tsx +16 -5
  36. package/src/lib/effects/index.ts +1 -0
  37. package/src/lib/effects/scrollDriven.ts +239 -0
  38. package/src/lib/effects/smooth-scroll.effect.tsx +105 -72
  39. package/src/lib/index.ts +1 -0
  40. package/src/lib/styles/card.style.ts +1 -1
  41. package/src/lib/styles/fab.style.ts +9 -17
  42. package/src/lib/styles/slider.style.ts +2 -2
  43. package/src/lib/styles/tab.style.ts +1 -1
  44. package/src/lib/styles/tabs.style.ts +3 -3
package/dist/index.js CHANGED
@@ -1,14 +1,15 @@
1
- import { jsx as u, jsxs as D, Fragment as te } from "react/jsx-runtime";
2
- import { clsx as me } from "clsx";
3
- import { extendTailwindMerge as ve } from "tailwind-merge";
4
- import Y, { useState as R, useEffect as $, useRef as j, useLayoutEffect as pe, isValidElement as ee, cloneElement as le, useMemo as be, Children as Ne, Fragment as Le } from "react";
5
- import { motion as U, AnimatePresence as A, useScroll as Ie, useMotionValueEvent as se, motionValue as he, useTransform as oe } from "motion/react";
6
- import { throttle as Ee } from "throttle-debounce";
7
- import { createPortal as ye } from "react-dom";
8
- import { loader as ke } from "@udixio/theme";
9
- import { TailwindPlugin as Se } from "@udixio/tailwind";
10
- import Re from "react-textarea-autosize";
11
- const xe = ve({
1
+ import { jsx as u, jsxs as A, Fragment as T } from "react/jsx-runtime";
2
+ import { clsx as we } from "clsx";
3
+ import { extendTailwindMerge as Ie } from "tailwind-merge";
4
+ import K, { useState as S, useEffect as R, useRef as W, useLayoutEffect as xe, useMemo as ue, isValidElement as te, cloneElement as oe, Children as ke, Fragment as Se } from "react";
5
+ import { motion as F, AnimatePresence as Q, useScroll as $e, useMotionValueEvent as he, motionValue as Ce, useTransform as pe } from "motion/react";
6
+ import { throttle as Me } from "throttle-debounce";
7
+ import { animate as Re } from "motion";
8
+ import { createPortal as be } from "react-dom";
9
+ import { loader as Be, defineConfig as We, FontPlugin as De, Variants as Pe } from "@udixio/theme";
10
+ import { TailwindPlugin as Le } from "@udixio/tailwind";
11
+ import Ae from "react-textarea-autosize";
12
+ const Ne = Ie({
12
13
  override: {
13
14
  classGroups: {
14
15
  "text-color": [
@@ -34,200 +35,200 @@ const xe = ve({
34
35
  font: ["font"]
35
36
  }
36
37
  }
37
- }), d = (...e) => xe(me(e)), Ce = (...e) => xe(me(e));
38
- function Me(e) {
38
+ }), h = (...e) => Ne(we(e)), Ve = (...e) => Ne(we(e));
39
+ function Fe(e) {
39
40
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
40
41
  }
41
- const Be = (e) => {
42
+ const He = (e) => {
42
43
  const t = {};
43
44
  e.classNameList.forEach((o) => {
44
- var n;
45
+ var r;
45
46
  if (o)
46
47
  if (typeof o == "string")
47
- (t[n = e.default] ?? (t[n] = [])).push(o);
48
+ (t[r = e.default] ?? (t[r] = [])).push(o);
48
49
  else {
49
- const a = o(e.states);
50
- Object.entries(a).map((i) => {
51
- const [s, f] = i;
52
- (t[s] ?? (t[s] = [])).push(f);
50
+ const c = o(e.states);
51
+ Object.entries(c).map((i) => {
52
+ const [s, d] = i;
53
+ (t[s] ?? (t[s] = [])).push(d);
53
54
  });
54
55
  }
55
56
  });
56
- const r = t;
57
+ const n = t;
57
58
  return Object.entries(t).map((o) => {
58
- let [n, a] = o;
59
- a = a.reverse(), n == e.default && a.unshift("relative"), a.unshift(Me(n)), r[n] = Ce(...a);
60
- }), r;
61
- }, _ = (e, t) => (r) => Be({
62
- classNameList: [r.className, t],
59
+ let [r, c] = o;
60
+ c = c.reverse(), r == e.default && c.unshift("relative"), c.unshift(Fe(r)), n[r] = Ve(...c);
61
+ }), n;
62
+ }, O = (e, t) => (n) => He({
63
+ classNameList: [n.className, t],
63
64
  default: e,
64
- states: r
65
- }), $e = _(
65
+ states: n
66
+ }), Ue = O(
66
67
  "button",
67
68
  ({
68
69
  variant: e,
69
70
  disableTextMargins: t,
70
- disabled: r,
71
+ disabled: n,
71
72
  iconPosition: o,
72
- icon: n,
73
- isActive: a,
73
+ icon: r,
74
+ isActive: c,
74
75
  loading: i,
75
76
  shape: s,
76
- onToggle: f,
77
- size: l,
78
- allowShapeTransformation: p
77
+ onToggle: d,
78
+ size: a,
79
+ allowShapeTransformation: y
79
80
  }) => ({
80
- button: d(
81
+ button: h(
81
82
  " relative cursor-pointer group outline-none inline-block flex justify-center items-center ",
82
- l === "xSmall" && "text-label-large px-3 py-1.5 gap-1",
83
- l === "small" && "text-label-large px-4 py-2.5 gap-2",
84
- l === "medium" && "text-title-medium px-6 py-4 gap-2",
85
- l === "large" && "text-headline-small px-12 py-8 gap-3",
86
- l === "xLarge" && "text-headline-large px-16 py-12 gap-4",
83
+ a === "xSmall" && "text-label-large px-3 py-1.5 gap-1",
84
+ a === "small" && "text-label-large px-4 py-2.5 gap-2",
85
+ a === "medium" && "text-title-medium px-6 py-4 gap-2",
86
+ a === "large" && "text-headline-small px-12 py-8 gap-3",
87
+ a === "xLarge" && "text-headline-large px-16 py-12 gap-4",
87
88
  s === "rounded" && {
88
- "rounded-[30px]": l === "xSmall" || l == "small",
89
- "rounded-[40px]": l === "medium",
90
- "rounded-[70px]": l === "large" || l == "xLarge"
89
+ "rounded-[30px]": a === "xSmall" || a == "small",
90
+ "rounded-[40px]": a === "medium",
91
+ "rounded-[70px]": a === "large" || a == "xLarge"
91
92
  },
92
- (s === "squared" || p && a) && {
93
- "rounded-[12px]": l === "xSmall" || l == "small",
94
- "rounded-[16px]": l === "medium",
95
- "rounded-[28px]": l === "large" || l == "xLarge"
93
+ (s === "squared" || y && c) && {
94
+ "rounded-[12px]": a === "xSmall" || a == "small",
95
+ "rounded-[16px]": a === "medium",
96
+ "rounded-[28px]": a === "large" || a == "xLarge"
96
97
  },
97
- p && !r && {
98
- "active:rounded-[12px]": l === "xSmall" || l == "small",
99
- "active:rounded-[16px]": l === "medium",
100
- "active:rounded-[28px]": l === "large" || l == "xLarge"
98
+ y && !n && {
99
+ "active:rounded-[12px]": a === "xSmall" || a == "small",
100
+ "active:rounded-[16px]": a === "medium",
101
+ "active:rounded-[28px]": a === "large" || a == "xLarge"
101
102
  },
102
103
  e === "elevated" && {
103
- "shadow-1 hover:shadow-2": !r,
104
- "bg-surface-container-low text-primary": !r && !a,
105
- "bg-primary text-on-primary": !r && a,
106
- "text-on-surface/[38%]": r
104
+ "shadow-1 hover:shadow-2": !n,
105
+ "bg-surface-container-low text-primary": !n && !c,
106
+ "bg-primary text-on-primary": !n && c,
107
+ "text-on-surface/[38%]": n
107
108
  },
108
109
  e === "filled" && {
109
- "hover:shadow-1": !r,
110
- "bg-surface-container text-on-surface-variant": !r && !a && f,
111
- "bg-primary text-on-primary": !r && (a && f || !f),
112
- "text-on-surface/[38%]": r
110
+ "hover:shadow-1": !n,
111
+ "bg-surface-container text-on-surface-variant": !n && !c && d,
112
+ "bg-primary text-on-primary": !n && (c && d || !d),
113
+ "text-on-surface/[38%]": n
113
114
  },
114
115
  e === "tonal" && {
115
- "hover:shadow-1": !r,
116
- "bg-secondary-container text-on-secondary-container": !r && !a,
117
- "bg-secondary text-on-secondary": !r && a,
118
- "text-on-surface/[0.38]": r
116
+ "hover:shadow-1": !n,
117
+ "bg-secondary-container text-on-secondary-container": !n && !c,
118
+ "bg-secondary text-on-secondary": !n && c,
119
+ "text-on-surface/[0.38]": n
119
120
  },
120
121
  e === "outlined" && [
121
122
  " border",
122
123
  {
123
- "border-on-surface/[0.12] text-on-surface/[0.38]": r,
124
- "text-primary border-outline focus:border-primary": !r && !a,
125
- "text-inverse-on-surface bg-inverse-surface border-inverse-surface": !r && a
124
+ "border-on-surface/[0.12] text-on-surface/[0.38]": n,
125
+ "text-primary border-outline focus:border-primary": !n && !c,
126
+ "text-inverse-on-surface bg-inverse-surface border-inverse-surface": !n && c
126
127
  }
127
128
  ],
128
129
  e === "text" && [
129
130
  "w-fit",
130
131
  {
131
- "text-primary": !r,
132
- "text-on-surface/[0.38]": r
132
+ "text-primary": !n,
133
+ "text-on-surface/[0.38]": n
133
134
  },
134
135
  t && [
135
- l === "xSmall" && "-mx-3 ",
136
- l === "small" && "-mx-4 ",
137
- l === "medium" && "-mx-6 ",
138
- l === "large" && "-mx-12",
139
- l === "xLarge" && "-mx-16 "
136
+ a === "xSmall" && "-mx-3 ",
137
+ a === "small" && "-mx-4 ",
138
+ a === "medium" && "-mx-6 ",
139
+ a === "large" && "-mx-12",
140
+ a === "xLarge" && "-mx-16 "
140
141
  // size === 'small' && ' -my-2.5',
141
142
  // size === 'medium' && ' -my-4',
142
143
  // size === 'large' && '-my-8',
143
144
  // size === 'xLarge' && ' -my-12',
144
145
  ]
145
146
  ],
146
- r && "cursor-default"
147
+ n && "cursor-default"
147
148
  ),
148
- touchTarget: d(
149
+ touchTarget: h(
149
150
  "absolute -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 h-12 w-full"
150
151
  ),
151
- stateLayer: d(
152
+ stateLayer: h(
152
153
  "min-h-full min-w-full absolute top-0 left-0 overflow-hidden",
153
154
  e === "elevated" && {
154
- "bg-on-surface/[0.12]": r,
155
- "group-state-primary": !r
155
+ "bg-on-surface/[0.12]": n,
156
+ "group-state-primary": !n
156
157
  },
157
158
  e === "filled" && {
158
- "bg-on-surface/[0.12]": r,
159
- "group-state-on-primary": !r && !f,
160
- "group-state-on-surface-variant": !r && f
159
+ "bg-on-surface/[0.12]": n,
160
+ "group-state-on-primary": !n && !d,
161
+ "group-state-on-surface-variant": !n && d
161
162
  },
162
163
  s === "rounded" && {
163
- "rounded-[30px]": l === "xSmall" || l == "small",
164
- "rounded-[40px]": l === "medium",
165
- "rounded-[70px]": l === "large" || l == "xLarge"
164
+ "rounded-[30px]": a === "xSmall" || a == "small",
165
+ "rounded-[40px]": a === "medium",
166
+ "rounded-[70px]": a === "large" || a == "xLarge"
166
167
  },
167
- (s === "squared" || p && a) && {
168
- "rounded-[12px]": l === "xSmall" || l == "small",
169
- "rounded-[16px]": l === "medium",
170
- "rounded-[28px]": l === "large" || l == "xLarge"
168
+ (s === "squared" || y && c) && {
169
+ "rounded-[12px]": a === "xSmall" || a == "small",
170
+ "rounded-[16px]": a === "medium",
171
+ "rounded-[28px]": a === "large" || a == "xLarge"
171
172
  },
172
- p && !r && {
173
- "group-active:rounded-[12px]": l === "xSmall" || l == "small",
174
- "group-active:rounded-[16px]": l === "medium",
175
- "group-active:rounded-[28px]": l === "large" || l == "xLarge"
173
+ y && !n && {
174
+ "group-active:rounded-[12px]": a === "xSmall" || a == "small",
175
+ "group-active:rounded-[16px]": a === "medium",
176
+ "group-active:rounded-[28px]": a === "large" || a == "xLarge"
176
177
  },
177
178
  e === "tonal" && {
178
- "bg-on-surface/[0.12]": r,
179
- "group-state-on-secondary-container ": !r
179
+ "bg-on-surface/[0.12]": n,
180
+ "group-state-on-secondary-container ": !n
180
181
  },
181
182
  e === "outlined" && {
182
- "group-state-primary group-state-primary": !r
183
+ "group-state-primary group-state-primary": !n
183
184
  },
184
185
  e === "text" && {
185
- "group-state-primary": !r
186
+ "group-state-primary": !n
186
187
  }
187
188
  ),
188
- label: d({ invisible: i }),
189
- icon: d(
189
+ label: h({ invisible: i }),
190
+ icon: h(
190
191
  { invisible: i },
191
- l === "xSmall" && "size-5",
192
- l === "small" && "size-5",
193
- l === "medium" && "size-6",
194
- l === "large" && "size-8",
195
- l === "xLarge" && "size-10"
192
+ a === "xSmall" && "size-5",
193
+ a === "small" && "size-5",
194
+ a === "medium" && "size-6",
195
+ a === "large" && "size-8",
196
+ a === "xLarge" && "size-10"
196
197
  )
197
198
  })
198
- ), Pe = _(
199
+ ), Xe = O(
199
200
  "card",
200
201
  ({ variant: e, isInteractive: t }) => ({
201
- card: d(
202
- "card group/card rounded-xl overflow-hidden z-10",
202
+ card: h(
203
+ "group/card rounded-xl overflow-hidden z-10",
203
204
  e === "outlined" && "bg-surface border border-outline-variant",
204
205
  e === "elevated" && "bg-surface-container-low shadow-1",
205
206
  e === "filled" && "bg-surface-container-highest"
206
207
  ),
207
- stateLayer: d([
208
+ stateLayer: h([
208
209
  "w-full top-0 left-0 h-full absolute -z-10",
209
210
  {
210
211
  " group-hover/card:hover-state-on-surface group-focus-visible/card:focus-state-on-surface": t
211
212
  }
212
213
  ])
213
214
  })
214
- ), We = _(
215
+ ), Ye = O(
215
216
  "carouselItem",
216
217
  () => ({
217
- carouselItem: d("rounded-[28px] overflow-hidden flex-none")
218
+ carouselItem: h("rounded-[28px] overflow-hidden flex-none")
218
219
  })
219
- ), De = _(
220
+ ), je = O(
220
221
  "carousel",
221
222
  () => ({
222
- carousel: d(["w-full h-[400px]"]),
223
- track: d(
223
+ carousel: h(["w-full h-[400px]"]),
224
+ track: h(
224
225
  "grid grid-flow-col h-full transition-transform ease-out w-fit"
225
226
  )
226
227
  })
227
- ), Ve = _(
228
+ ), Oe = O(
228
229
  "divider",
229
230
  ({ orientation: e }) => ({
230
- divider: d(
231
+ divider: h(
231
232
  "border-outline-variant ",
232
233
  {
233
234
  "h-fit w-full border-t": e === "horizontal"
@@ -237,95 +238,87 @@ const Be = (e) => {
237
238
  }
238
239
  )
239
240
  })
240
- ), je = _(
241
+ ), qe = O(
241
242
  "fab",
242
- ({ size: e, variant: t, isExtended: r }) => ({
243
- fab: d(
243
+ ({ size: e, variant: t, isExtended: n }) => ({
244
+ fab: h(
244
245
  "flex shadow-3 hover:shadow-4 group overflow-hidden outline-none items-center cursor-pointer",
245
246
  {
246
- "rounded-[12px]": e == "small" && !r,
247
- "rounded-[16px]": e == "medium" || r,
248
- "rounded-[28px]": e == "large" && !r
247
+ "rounded-[12px]": e == "small" && !n,
248
+ "rounded-[16px]": e == "medium" || n,
249
+ "rounded-[28px]": e == "large" && !n
249
250
  },
250
251
  {
251
- "p-2": e == "small" && !r,
252
- "p-4": e == "medium" || r,
253
- "p-[30px]": e == "large" && !r
252
+ "p-2": e == "small" && !n,
253
+ "p-4": e == "medium" || n,
254
+ "p-[30px]": e == "large" && !n
254
255
  },
255
256
  t === "surface" && "bg-surface-container",
256
257
  t === "primary" && "bg-primary-container",
257
258
  t === "secondary" && "bg-secondary-container",
258
- t === "tertiary" && "bg-tertiary-container"
259
+ t === "tertiary" && "bg-tertiary-container",
260
+ t === "surface" && "text-primary",
261
+ t === "primary" && "text-on-primary-container",
262
+ t === "secondary" && "text-on-secondary-container",
263
+ t === "tertiary" && "text-on-tertiary-container"
259
264
  ),
260
- stateLayer: d(
265
+ stateLayer: h(
261
266
  "absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",
262
267
  t === "surface" && "group-hover:hover-state-primary group-focus:focus-state-primary",
263
268
  t === "primary" && "group-hover:hover-state-on-primary-container group-focus-visible:focus-state-on-primary-container",
264
269
  t === "secondary" && "group-hover:hover-state-on-secondary-container group-focus-visible:focus-state-on-secondary-container",
265
270
  t === "tertiary" && "group-hover:hover-state-on-tertiary-container group-focus-visible:focus-state-on-tertiary-container"
266
271
  ),
267
- icon: d(
268
- {
269
- "size-6": e == "small" || e == "medium" || r,
270
- "size-9": e == "large" && !r
271
- },
272
- t === "surface" && "text-primary",
273
- t === "primary" && "text-on-primary-container",
274
- t === "secondary" && "text-on-secondary-container",
275
- t === "tertiary" && "text-on-tertiary-container"
276
- ),
277
- label: d(
278
- "text-title-medium text-nowrap",
279
- t === "surface" && "text-primary",
280
- t === "primary" && "text-on-primary-container",
281
- t === "secondary" && "text-on-secondary-container",
282
- t === "tertiary" && "text-on-tertiary-container"
283
- )
272
+ icon: h({
273
+ "size-6": e == "small" || e == "medium" || n,
274
+ "size-9": e == "large" && !n
275
+ }),
276
+ label: h("text-title-medium text-nowrap")
284
277
  })
285
- ), Ue = _(
278
+ ), _e = O(
286
279
  "iconButton",
287
280
  ({
288
281
  variant: e,
289
282
  disabled: t,
290
- onToggle: r,
283
+ onToggle: n,
291
284
  isActive: o,
292
- size: n,
293
- width: a,
285
+ size: r,
286
+ width: c,
294
287
  shape: i,
295
288
  allowShapeTransformation: s
296
289
  }) => ({
297
- iconButton: d(
290
+ iconButton: h(
298
291
  "rounded-full relative flex transition-all duration-300",
299
292
  "group cursor-pointer",
300
293
  {
301
294
  "cursor-default": t
302
295
  },
303
- (i === "rounded" || i === "squared" && r && !t && o && s) && {
304
- "rounded-[30px]": n === "xSmall" || n == "small",
305
- "rounded-[40px]": n === "medium",
306
- "rounded-[70px]": n === "large" || n == "xLarge"
296
+ (i === "rounded" || i === "squared" && n && !t && o && s) && {
297
+ "rounded-[30px]": r === "xSmall" || r == "small",
298
+ "rounded-[40px]": r === "medium",
299
+ "rounded-[70px]": r === "large" || r == "xLarge"
307
300
  },
308
- (i === "squared" || i === "rounded" && r && !t && o && s) && {
309
- "rounded-[12px]": n === "xSmall" || n == "small",
310
- "rounded-[16px]": n === "medium",
311
- "rounded-[28px]": n === "large" || n == "xLarge"
301
+ (i === "squared" || i === "rounded" && n && !t && o && s) && {
302
+ "rounded-[12px]": r === "xSmall" || r == "small",
303
+ "rounded-[16px]": r === "medium",
304
+ "rounded-[28px]": r === "large" || r == "xLarge"
312
305
  },
313
306
  s && !t && {
314
- "group-active:rounded-[12px]": n === "xSmall" || n == "small",
315
- "group-active:rounded-[16px]": n === "medium",
316
- "group-active:rounded-[28px]": n === "large" || n == "xLarge"
307
+ "group-active:rounded-[12px]": r === "xSmall" || r == "small",
308
+ "group-active:rounded-[16px]": r === "medium",
309
+ "group-active:rounded-[28px]": r === "large" || r == "xLarge"
317
310
  },
318
311
  e === "filled" && [
319
312
  !t && {
320
- "bg-surface-container": !o && !!r,
321
- "bg-primary": o || !r
313
+ "bg-surface-container": !o && !!n,
314
+ "bg-primary": o || !n
322
315
  },
323
316
  !!t && "bg-on-surface/[0.12]"
324
317
  ],
325
318
  e === "tonal" && [
326
319
  !t && {
327
- "bg-surface-container": !o && !!r,
328
- "bg-secondary-container": o || !r
320
+ "bg-surface-container": !o && !!n,
321
+ "bg-secondary-container": o || !n
329
322
  },
330
323
  !!t && "bg-on-surface/[0.12]"
331
324
  ],
@@ -340,25 +333,25 @@ const Be = (e) => {
340
333
  }
341
334
  ]
342
335
  ),
343
- touchTarget: d(
336
+ touchTarget: h(
344
337
  "absolute -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 h-12 w-full"
345
338
  ),
346
- stateLayer: d(
339
+ stateLayer: h(
347
340
  "absolute top-0 left-0 h-full w-full overflow-hidden",
348
- (i === "rounded" || i === "squared" && r && !t && o && s) && {
349
- "rounded-[30px]": n === "xSmall" || n == "small",
350
- "rounded-[40px]": n === "medium",
351
- "rounded-[70px]": n === "large" || n == "xLarge"
341
+ (i === "rounded" || i === "squared" && n && !t && o && s) && {
342
+ "rounded-[30px]": r === "xSmall" || r == "small",
343
+ "rounded-[40px]": r === "medium",
344
+ "rounded-[70px]": r === "large" || r == "xLarge"
352
345
  },
353
- (i === "squared" || i === "rounded" && r && !t && o && s) && {
354
- "rounded-[12px]": n === "xSmall" || n == "small",
355
- "rounded-[16px]": n === "medium",
356
- "rounded-[28px]": n === "large" || n == "xLarge"
346
+ (i === "squared" || i === "rounded" && n && !t && o && s) && {
347
+ "rounded-[12px]": r === "xSmall" || r == "small",
348
+ "rounded-[16px]": r === "medium",
349
+ "rounded-[28px]": r === "large" || r == "xLarge"
357
350
  },
358
351
  s && !t && {
359
- "group-active:rounded-[12px]": n === "xSmall" || n == "small",
360
- "group-active:rounded-[16px]": n === "medium",
361
- "group-active:rounded-[28px]": n === "large" || n == "xLarge"
352
+ "group-active:rounded-[12px]": r === "xSmall" || r == "small",
353
+ "group-active:rounded-[16px]": r === "medium",
354
+ "group-active:rounded-[28px]": r === "large" || r == "xLarge"
362
355
  },
363
356
  !t && [
364
357
  e === "standard" && {
@@ -366,12 +359,12 @@ const Be = (e) => {
366
359
  "state-primary": o
367
360
  },
368
361
  e === "filled" && {
369
- "state-primary": !o && !!r,
370
- "state-inverse-on-surface": o || !r
362
+ "state-primary": !o && !!n,
363
+ "state-inverse-on-surface": o || !n
371
364
  },
372
365
  e === "tonal" && {
373
- "state-on-surface-variant": !o && !!r,
374
- "state-on-secondary-container": o || !r
366
+ "state-on-surface-variant": !o && !!n,
367
+ "state-on-secondary-container": o || !n
375
368
  },
376
369
  e === "outlined" && {
377
370
  "state-on-surface-variant": !o,
@@ -379,26 +372,26 @@ const Be = (e) => {
379
372
  }
380
373
  ]
381
374
  ),
382
- icon: d(
375
+ icon: h(
383
376
  " transition-all duration-300",
384
- { "size-5 p-1.5": n === "xSmall" },
385
- { "size-6 p-2": n === "small" },
386
- { "size-6 p-4": n === "medium" },
387
- { "size-8 p-8": n === "large" },
388
- { "size-10 p-12": n === "xLarge" },
389
- a == "narrow" && [
390
- { "px-1": n === "xSmall" },
391
- { "px-1": n === "small" },
392
- { "px-3": n === "medium" },
393
- { "px-4": n === "large" },
394
- { "px-8": n === "xLarge" }
377
+ { "size-5 p-1.5": r === "xSmall" },
378
+ { "size-6 p-2": r === "small" },
379
+ { "size-6 p-4": r === "medium" },
380
+ { "size-8 p-8": r === "large" },
381
+ { "size-10 p-12": r === "xLarge" },
382
+ c == "narrow" && [
383
+ { "px-1": r === "xSmall" },
384
+ { "px-1": r === "small" },
385
+ { "px-3": r === "medium" },
386
+ { "px-4": r === "large" },
387
+ { "px-8": r === "xLarge" }
395
388
  ],
396
- a == "wide" && [
397
- { "px-2.5": n === "xSmall" },
398
- { "px-3.5": n === "small" },
399
- { "px-6": n === "medium" },
400
- { "px-12": n === "large" },
401
- { "px-[72px]": n === "xLarge" }
389
+ c == "wide" && [
390
+ { "px-2.5": r === "xSmall" },
391
+ { "px-3.5": r === "small" },
392
+ { "px-6": r === "medium" },
393
+ { "px-12": r === "large" },
394
+ { "px-[72px]": r === "xLarge" }
402
395
  ],
403
396
  !t && [
404
397
  e === "standard" && {
@@ -406,12 +399,12 @@ const Be = (e) => {
406
399
  "text-primary": o
407
400
  },
408
401
  e === "filled" && {
409
- "text-primary": !o && !!r,
410
- "text-on-primary": o || !r
402
+ "text-primary": !o && !!n,
403
+ "text-on-primary": o || !n
411
404
  },
412
405
  e === "tonal" && {
413
- "text-on-surface-variant": !o && !!r,
414
- "text-on-secondary-container": o || !r
406
+ "text-on-surface-variant": !o && !!n,
407
+ "text-on-secondary-container": o || !n
415
408
  },
416
409
  e === "outlined" && {
417
410
  "text-on-surface-variant": !o,
@@ -421,17 +414,17 @@ const Be = (e) => {
421
414
  !!t && "text-on-surface/[0.38]"
422
415
  )
423
416
  })
424
- ), Fe = _(
417
+ ), Ke = O(
425
418
  "progressIndicator",
426
419
  ({ variant: e, isVisible: t }) => ({
427
- progressIndicator: d(
420
+ progressIndicator: h(
428
421
  (e === "linear-determinate" || e == "linear-indeterminate") && "flex w-full h-1"
429
422
  ),
430
- track: d("h-full rounded-full bg-primary rounded-l-full", {
423
+ track: h("h-full rounded-full bg-primary rounded-l-full", {
431
424
  "max-h-0": !t,
432
425
  "max-h-full": t
433
426
  }),
434
- activeIndicator: d(
427
+ activeIndicator: h(
435
428
  {
436
429
  "max-h-0": !t,
437
430
  "max-h-full": t
@@ -445,7 +438,7 @@ const Be = (e) => {
445
438
  }
446
439
  ]
447
440
  ),
448
- stop: d(
441
+ stop: h(
449
442
  "absolute top-1/2 -translate-y-1/2 right-0 bg-primary rounded-full size-1",
450
443
  {
451
444
  "max-h-0": !t,
@@ -453,10 +446,10 @@ const Be = (e) => {
453
446
  }
454
447
  )
455
448
  })
456
- ), Xe = _(
449
+ ), Ge = O(
457
450
  "slideSheet",
458
451
  ({ variant: e, position: t }) => ({
459
- slideSheet: d(
452
+ slideSheet: h(
460
453
  "bg-surface flex justify-between max-w-xs z-10",
461
454
  {
462
455
  "flex-row-reverse": t == "right",
@@ -470,53 +463,53 @@ const Be = (e) => {
470
463
  }
471
464
  ]
472
465
  ),
473
- container: d("w-full overflow-hidden", {}),
474
- content: d("w-fit "),
475
- header: d("p-4 flex items-center gap-2"),
476
- title: d("text-on-surface-variant text-title-large"),
477
- closeButton: d("ml-auto"),
478
- divider: d({ hidden: e == "modal" }),
479
- overlay: d(
466
+ container: h("w-full overflow-hidden", {}),
467
+ content: h("w-fit "),
468
+ header: h("p-4 flex items-center gap-2"),
469
+ title: h("text-on-surface-variant text-title-large"),
470
+ closeButton: h("ml-auto"),
471
+ divider: h({ hidden: e == "modal" }),
472
+ overlay: h(
480
473
  "bg-[black]/[0.32] fixed top-0 left-0 w-screen h-screen"
481
474
  )
482
475
  })
483
- ), He = _(
476
+ ), Je = O(
484
477
  "slider",
485
478
  ({ isChanging: e }) => ({
486
- slider: d([
487
- "relative w-full h-11 flex items-center rounded gap-x-1.5 cursor-pointer"
479
+ slider: h([
480
+ "relative w-full h-11 flex items-center rounded gap-x-1.5 cursor-pointer min-w-32"
488
481
  ]),
489
- activeTrack: d([
482
+ activeTrack: h([
490
483
  "h-4 relative transition-all duration-100 bg-primary overflow-hidden rounded-l-full "
491
484
  ]),
492
- inactiveTrack: d([
485
+ inactiveTrack: h([
493
486
  "h-4 relative transition-all duration-100 bg-primary-container rounded-r-full overflow-hidden"
494
487
  ]),
495
- handle: d([
488
+ handle: h([
496
489
  "transform transition-all duration-100 bg-primary h-full rounded-full ",
497
490
  { "w-0.5": e, "w-1": !e }
498
491
  ]),
499
- valueIndicator: d([
492
+ valueIndicator: h([
500
493
  "absolute select-none bg-inverse-surface text-inverse-on-surface py-3 px-4 text-label-large rounded-full bottom-[calc(100%+4px)] transform left-1/2 -translate-x-1/2"
501
494
  ]),
502
- dot: d([
495
+ dot: h([
503
496
  "h-1 w-1 absolute transform -translate-y-1/2 -translate-x-1/2 top-1/2 rounded-full"
504
497
  ])
505
498
  })
506
- ), Oe = _(
499
+ ), Ze = O(
507
500
  "snackbar",
508
501
  () => ({
509
- snackbar: d(" rounded bg-inverse-surface "),
510
- container: d(
502
+ snackbar: h(" rounded bg-inverse-surface "),
503
+ container: h(
511
504
  "pl-4 pr-2 max-w-full py-1 flex items-center flex-wrap"
512
505
  ),
513
- supportingText: d("text-body-medium text-inverse-on-surface "),
514
- icon: d(" ml-auto mr-0 text-inverse-on-surface block dark")
506
+ supportingText: h("text-body-medium text-inverse-on-surface "),
507
+ icon: h(" ml-auto mr-0 text-inverse-on-surface block dark")
515
508
  })
516
- ), qe = _(
509
+ ), Qe = O(
517
510
  "switch",
518
- ({ isSelected: e, disabled: t, inactiveIcon: r }) => ({
519
- switch: d(
511
+ ({ isSelected: e, disabled: t, inactiveIcon: n }) => ({
512
+ switch: h(
520
513
  "group w-[52px] h-[32px] outline-none rounded-full border-2 flex items-center",
521
514
  { "bg-on-surface/[0.12] border-transparent": t },
522
515
  !t && [
@@ -527,15 +520,15 @@ const Be = (e) => {
527
520
  // { 'justify-start': !isSelected },
528
521
  // { 'justify-end': isSelected },
529
522
  ),
530
- handleContainer: d(
523
+ handleContainer: h(
531
524
  "flex items-center justify-center absolute",
532
525
  { "left-[14px]": !e },
533
526
  { "right-[14px]": e }
534
527
  ),
535
- handle: d(
528
+ handle: h(
536
529
  "transition-all duration-100 z-10 rounded-full flex items-center justify-center",
537
- { "w-[16px] h-[16px]": !e && !r },
538
- { "w-[24px] h-[24px]": !(!e && !r) },
530
+ { "w-[16px] h-[16px]": !e && !n },
531
+ { "w-[24px] h-[24px]": !(!e && !n) },
539
532
  !t && [
540
533
  "cursor-pointer group-active:h-[28px] group-active:w-[28px]",
541
534
  { "bg-on-primary group-hover:bg-primary-container": e },
@@ -543,11 +536,11 @@ const Be = (e) => {
543
536
  ],
544
537
  { "bg-surface": t }
545
538
  ),
546
- handleStateLayer: d(
539
+ handleStateLayer: h(
547
540
  "w-[40px] h-[40px] -z-10 rounded-full absolute",
548
541
  { "group-state-primary": !t }
549
542
  ),
550
- icon: d(
543
+ icon: h(
551
544
  "w-[16px] h-[16px]",
552
545
  !t && [
553
546
  { "text-on-primary-container": e },
@@ -556,16 +549,16 @@ const Be = (e) => {
556
549
  { "text-on-surface/[0.38]": t }
557
550
  )
558
551
  })
559
- ), _e = _(
552
+ ), ze = O(
560
553
  "tab",
561
- ({ isSelected: e, icon: t, label: r, variant: o }) => ({
562
- tab: d(
563
- "bg-surface flex-1 group outline-none flex px-4 justify-center items-center cursor-pointer",
554
+ ({ isSelected: e, icon: t, label: n, variant: o }) => ({
555
+ tab: h(
556
+ "flex-1 group outline-none flex px-4 justify-center items-center cursor-pointer",
564
557
  { "z-10": e },
565
- !!(t && r) && o === "primary" && "h-16",
566
- !(t && r && o === "primary") && "h-12"
558
+ !!(t && n) && o === "primary" && "h-16",
559
+ !(t && n && o === "primary") && "h-12"
567
560
  ),
568
- stateLayer: d(
561
+ stateLayer: h(
569
562
  "absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",
570
563
  o === "primary" && {
571
564
  "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface": !e,
@@ -573,21 +566,21 @@ const Be = (e) => {
573
566
  },
574
567
  o === "secondary" && "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"
575
568
  ),
576
- content: d(
569
+ content: h(
577
570
  "flex gap-0.5 h-full justify-center",
578
571
  {
579
572
  relative: o == "primary"
580
573
  },
581
574
  {
582
- "": !!(r && !t)
575
+ "": !!(n && !t)
583
576
  },
584
577
  o === "primary" && "flex-col items-center",
585
578
  o === "secondary" && {
586
- "flex-col items-center": !(r && t),
587
- "flex-row items-center gap-2": !!(r && t)
579
+ "flex-col items-center": !(n && t),
580
+ "flex-row items-center gap-2": !!(n && t)
588
581
  }
589
582
  ),
590
- icon: d(
583
+ icon: h(
591
584
  "h-6 w-6 p-0.5 !box-border",
592
585
  o === "primary" && {
593
586
  "text-on-surface-variant": !e,
@@ -598,7 +591,7 @@ const Be = (e) => {
598
591
  "text-on-surface": e
599
592
  }
600
593
  ),
601
- label: d(
594
+ label: h(
602
595
  "text-title-small text-nowrap",
603
596
  o === "primary" && {
604
597
  "text-on-surface-variant": !e,
@@ -609,45 +602,45 @@ const Be = (e) => {
609
602
  "text-on-surface": e
610
603
  }
611
604
  ),
612
- underline: d(
605
+ underline: h(
613
606
  "bg-primary absolute w-full left-0 bottom-0",
614
607
  o === "primary" && "h-[3px] rounded-t",
615
608
  o === "secondary" && "h-0.5"
616
609
  )
617
610
  })
618
- ), Ke = _(
611
+ ), Te = O(
619
612
  "tabs",
620
613
  ({ scrollable: e }) => ({
621
- tabs: d(
622
- "border-b border-surface-container-highest",
614
+ tabs: h(
615
+ "border-b border-surface-container-highest bg-surface",
623
616
  "flex relative ",
624
617
  { "overflow-x-auto": e }
625
618
  )
626
619
  })
627
- ), Ge = _(
620
+ ), et = O(
628
621
  "textField",
629
622
  ({
630
623
  disabled: e,
631
624
  leadingIcon: t,
632
- trailingIcon: r,
625
+ trailingIcon: n,
633
626
  variant: o,
634
- errorText: n,
635
- isFocused: a,
627
+ errorText: r,
628
+ isFocused: c,
636
629
  value: i,
637
630
  suffix: s,
638
- textLine: f
631
+ textLine: d
639
632
  }) => ({
640
- textField: d({
633
+ textField: h({
641
634
  "opacity-[.38]": e
642
635
  }),
643
- content: d(
636
+ content: h(
644
637
  "group transition-border duration-200 relative flex items-center ",
645
- { "h-14": f == "singleLine" },
638
+ { "h-14": d == "singleLine" },
646
639
  {
647
- "border-on-surface-variant": !(n != null && n.length) && !a && o == "filled",
648
- "border-outline": !(n != null && n.length) && !a && o == "outlined",
649
- "border-primary": !(n != null && n.length) && a,
650
- "border-error": !!(n != null && n.length)
640
+ "border-on-surface-variant": !(r != null && r.length) && !c && o == "filled",
641
+ "border-outline": !(r != null && r.length) && !c && o == "outlined",
642
+ "border-primary": !(r != null && r.length) && c,
643
+ "border-error": !!(r != null && r.length)
651
644
  },
652
645
  { "bg-on-surface/[0.04]": e },
653
646
  o == "filled" && [
@@ -657,28 +650,28 @@ const Be = (e) => {
657
650
  o == "outlined" && [
658
651
  "border rounded box-border",
659
652
  {
660
- "border-[3px]": a
653
+ "border-[3px]": c
661
654
  }
662
655
  ]
663
656
  ),
664
- stateLayer: d(
657
+ stateLayer: h(
665
658
  "absolute -z-10 w-full h-full top-0 left-0",
666
659
  {
667
660
  hidden: o == "outlined"
668
661
  },
669
662
  {
670
663
  "group-state-on-surface": !e,
671
- "focus-state-on-surface": a
664
+ "focus-state-on-surface": c
672
665
  }
673
666
  ),
674
- label: d(
667
+ label: h(
675
668
  "inline-flex outline-none whitespace-nowrap",
676
- { "text-on-surface-variant": !e && !(n != null && n.length) },
669
+ { "text-on-surface-variant": !e && !(r != null && r.length) },
677
670
  { "text-on-surface": e },
678
- { "text-error": !!(n != null && n.length) },
679
- { "text-primary": !(n != null && n.length) && a }
671
+ { "text-error": !!(r != null && r.length) },
672
+ { "text-primary": !(r != null && r.length) && c }
680
673
  ),
681
- input: d(
674
+ input: h(
682
675
  "w-full resize-none px-4 text-body-large bg-[inherit] outline-none autofill:transition-colors autofill:duration-[5000000ms]",
683
676
  {
684
677
  " text-on-surface placeholder:text-on-surface-variant": !e,
@@ -690,39 +683,39 @@ const Be = (e) => {
690
683
  o == "filled" && " pb-2 pt-6",
691
684
  o == "outlined" && "py-4 relative z-10"
692
685
  ),
693
- activeIndicator: d(
686
+ activeIndicator: h(
694
687
  "absolute w-0 inset-x-0 border-rounded mx-auto bottom-0",
695
688
  o == "filled" && [
696
689
  "h-[2px] transition-all duration-300",
697
- { "bg-primary": !(n != null && n.length) },
698
- { "bg-error": !!(n != null && n.length) },
699
- { "!w-full": a }
690
+ { "bg-primary": !(r != null && r.length) },
691
+ { "bg-error": !!(r != null && r.length) },
692
+ { "!w-full": c }
700
693
  ]
701
694
  ),
702
- supportingText: d(
695
+ supportingText: h(
703
696
  " text-body-small px-4 pt-1",
704
- { "text-on-surface-variant": !e && !(n != null && n.length) },
697
+ { "text-on-surface-variant": !e && !(r != null && r.length) },
705
698
  { "text-on-surface": e },
706
- { "!w-full": a },
707
- { "text-error": !!(n != null && n.length) }
699
+ { "!w-full": c },
700
+ { "text-error": !!(r != null && r.length) }
708
701
  ),
709
- leadingIcon: d([
702
+ leadingIcon: h([
710
703
  "h-12 ml-3 flex items-center justify-center",
711
- { "cursor-text": !Y.isValidElement(t) }
704
+ { "cursor-text": !K.isValidElement(t) }
712
705
  ]),
713
- trailingIcon: d("h-12 w-12 flex items-center justify-center", {
714
- "cursor-text": !Y.isValidElement(r)
706
+ trailingIcon: h("h-12 w-12 flex items-center justify-center", {
707
+ "cursor-text": !K.isValidElement(n)
715
708
  }),
716
- suffix: d(
709
+ suffix: h(
717
710
  "text-on-surface-variant pl-0 pr-4",
718
711
  o == "filled" && " pb-2 pt-6",
719
712
  o == "outlined" && "py-4 relative z-10"
720
713
  )
721
714
  })
722
- ), Ye = _(
715
+ ), tt = O(
723
716
  "toolTip",
724
717
  ({ position: e, variant: t }) => ({
725
- toolTip: d(
718
+ toolTip: h(
726
719
  " pointer-events-auto w-max z-10 absolute m-1 w-max-content max-w-[312px]",
727
720
  {
728
721
  "bottom-full left-1/2 -translate-x-1/2": e == "top",
@@ -735,51 +728,51 @@ const Be = (e) => {
735
728
  "top-full left-full": e == "bottom-right"
736
729
  }
737
730
  ),
738
- container: d(
731
+ container: h(
739
732
  "pb-2",
740
733
  t == "rich" && "bg-surface-container rounded-2xl text-on-surface-container px-4 pt-3 shadow-2",
741
734
  t == "plain" && "bg-inverse-surface rounded text-inverse-on-surface px-2 py-1"
742
735
  ),
743
- actions: d(
736
+ actions: h(
744
737
  "flex gap-10 px-1 mt-2",
745
738
  t == "plain" && "hidden"
746
739
  ),
747
- subHead: d(
740
+ subHead: h(
748
741
  "text-title-small mb-1",
749
742
  t == "plain" && "hidden"
750
743
  ),
751
- supportingText: d("")
744
+ supportingText: h("")
752
745
  })
753
- ), Q = ({ icon: e, colors: t = [], className: r }) => {
746
+ ), Z = ({ icon: e, colors: t = [], className: n }) => {
754
747
  if (typeof e == "string") {
755
- let l = e;
756
- return t[0] && (l = l.replace(
748
+ let a = e;
749
+ return t[0] && (a = a.replace(
757
750
  /<svg([^>]*)>/,
758
751
  `<svg$1 fill="${t[0]}" color="${t[0]}">`
759
- ), l = l.replace(
752
+ ), a = a.replace(
760
753
  /<path([^>]*?)>/g,
761
754
  '<path$1 fill="currentColor">'
762
755
  )), /* @__PURE__ */ u(
763
756
  "div",
764
757
  {
765
- className: d(
758
+ className: h(
766
759
  "size-5 box-content inline-flex fill-current",
767
- r
760
+ n
768
761
  ),
769
762
  style: { color: t[0] || "inherit" },
770
- dangerouslySetInnerHTML: { __html: l }
763
+ dangerouslySetInnerHTML: { __html: a }
771
764
  }
772
765
  );
773
766
  }
774
767
  if (e && typeof e == "object" && "src" in e) {
775
- const l = e;
768
+ const a = e;
776
769
  return /* @__PURE__ */ u(
777
770
  "img",
778
771
  {
779
- src: l.src,
780
- width: l.width,
781
- height: l.height,
782
- className: d("size-5 box-content", r),
772
+ src: a.src,
773
+ width: a.width,
774
+ height: a.height,
775
+ className: h("size-5 box-content", n),
783
776
  style: {
784
777
  filter: t[0] ? "brightness(0) saturate(100%) invert(1)" : void 0
785
778
  },
@@ -791,15 +784,15 @@ const Be = (e) => {
791
784
  const o = e;
792
785
  if (!(o != null && o.prefix))
793
786
  throw new Error(`Invalid icon type: ${typeof e}`);
794
- const { icon: n } = o, [a, i, , , s] = n || [], f = (l) => {
795
- switch (l.length) {
787
+ const { icon: r } = o, [c, i, , , s] = r || [], d = (a) => {
788
+ switch (a.length) {
796
789
  case 2:
797
790
  return {
798
- "--fa-primary-color": l[0] || "inherit",
799
- "--fa-secondary-color": l[1] || "inherit"
791
+ "--fa-primary-color": a[0] || "inherit",
792
+ "--fa-secondary-color": a[1] || "inherit"
800
793
  };
801
794
  case 1:
802
- return { color: l[0] };
795
+ return { color: a[0] };
803
796
  default:
804
797
  return {};
805
798
  }
@@ -807,74 +800,74 @@ const Be = (e) => {
807
800
  return /* @__PURE__ */ u(
808
801
  "svg",
809
802
  {
810
- className: d("size-5 box-content", r),
811
- style: { ...f(t) },
803
+ className: h("size-5 box-content", n),
804
+ style: { ...d(t) },
812
805
  xmlns: "http://www.w3.org/2000/svg",
813
- viewBox: `0 0 ${a} ${i}`,
806
+ viewBox: `0 0 ${c} ${i}`,
814
807
  role: "img",
815
808
  "aria-hidden": "true",
816
- children: typeof s == "string" ? /* @__PURE__ */ u("path", { className: "fill-current", d: s }) : s.map((l, p) => /* @__PURE__ */ u("path", { d: l }, p))
809
+ children: typeof s == "string" ? /* @__PURE__ */ u("path", { className: "fill-current", d: s }) : s.map((a, y) => /* @__PURE__ */ u("path", { d: a }, y))
817
810
  }
818
811
  );
819
- }, Ze = ({
812
+ }, nt = ({
820
813
  variant: e = "linear-determinate",
821
814
  value: t = 0,
822
- transitionDuration: r = 1e3,
815
+ transitionDuration: n = 1e3,
823
816
  className: o,
824
- ...n
817
+ ...r
825
818
  }) => {
826
- const [a, i] = R(t), [s] = R(1.5);
827
- $(() => {
819
+ const [c, i] = S(t), [s] = S(1.5);
820
+ R(() => {
828
821
  t > 100 && (t = 100), t < 0 && (t = 0), i(t);
829
822
  }, [t]);
830
- const [f, l] = R(!0), p = () => f ? s : s * 0.5;
831
- $(() => {
832
- if ((e === "circular-indeterminate" || e === "linear-indeterminate") && a !== 100) {
833
- const v = setInterval(() => {
834
- i(f ? 10 : 90), l(!f);
835
- }, p() * 1e3);
836
- return () => clearInterval(v);
823
+ const [d, a] = S(!0), y = () => d ? s : s * 0.5;
824
+ R(() => {
825
+ if ((e === "circular-indeterminate" || e === "linear-indeterminate") && c !== 100) {
826
+ const m = setInterval(() => {
827
+ i(d ? 10 : 90), a(!d);
828
+ }, y() * 1e3);
829
+ return () => clearInterval(m);
837
830
  }
838
- }, [e, f, a]);
839
- const [m, c] = R(!1);
840
- $(() => {
841
- if (a >= 100) {
842
- const v = setTimeout(() => {
843
- c(!1);
844
- }, r);
831
+ }, [e, d, c]);
832
+ const [p, l] = S(!1);
833
+ R(() => {
834
+ if (c >= 100) {
835
+ const m = setTimeout(() => {
836
+ l(!1);
837
+ }, n);
845
838
  return () => {
846
- clearTimeout(v);
839
+ clearTimeout(m);
847
840
  };
848
841
  } else
849
- c(!0);
850
- }, [a, r]);
851
- const h = Fe({
842
+ l(!0);
843
+ }, [c, n]);
844
+ const f = Ke({
852
845
  className: o,
853
846
  variant: e,
854
847
  value: t,
855
- transitionDuration: r,
856
- isVisible: m
848
+ transitionDuration: n,
849
+ isVisible: p
857
850
  });
858
- return /* @__PURE__ */ D(te, { children: [
859
- (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ D("div", { className: h.progressIndicator, ...n, children: [
851
+ return /* @__PURE__ */ A(T, { children: [
852
+ (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ A("div", { className: f.progressIndicator, ...r, children: [
860
853
  /* @__PURE__ */ u(
861
854
  "div",
862
855
  {
863
856
  style: {
864
- width: `${a}%`,
865
- transition: `width ${r}ms ease-in-out ${a == 100 ? ", max-height 200ms 0.5s ease-in-out" : ""}`
857
+ width: `${c}%`,
858
+ transition: `width ${n}ms ease-in-out ${c == 100 ? ", max-height 200ms 0.5s ease-in-out" : ""}`
866
859
  },
867
- className: h.track
860
+ className: f.track
868
861
  }
869
862
  ),
870
863
  /* @__PURE__ */ u(
871
864
  "div",
872
865
  {
873
866
  style: {
874
- marginLeft: a != 100 ? "6px" : "0px",
875
- transition: `width ${r}ms ease-in-out ${a == 100 ? `, max-height 200ms 0.5s ease-in-out, margin-left ${r}ms ${r / 1.5}ms` : ""}`
867
+ marginLeft: c != 100 ? "6px" : "0px",
868
+ transition: `width ${n}ms ease-in-out ${c == 100 ? `, max-height 200ms 0.5s ease-in-out, margin-left ${n}ms ${n / 1.5}ms` : ""}`
876
869
  },
877
- className: h.activeIndicator
870
+ className: f.activeIndicator
878
871
  }
879
872
  ),
880
873
  /* @__PURE__ */ u(
@@ -882,14 +875,14 @@ const Be = (e) => {
882
875
  {
883
876
  style: {
884
877
  width: "4 px",
885
- transition: `width ${r}ms ease-in-out, max-height 200ms 0.5s ease-in-out`
878
+ transition: `width ${n}ms ease-in-out, max-height 200ms 0.5s ease-in-out`
886
879
  },
887
- className: h.stop
880
+ className: f.stop
888
881
  }
889
882
  )
890
883
  ] }),
891
884
  (e === "circular-determinate" || e == "circular-indeterminate") && /* @__PURE__ */ u(
892
- U.svg,
885
+ F.svg,
893
886
  {
894
887
  width: "48",
895
888
  height: "48",
@@ -898,50 +891,50 @@ const Be = (e) => {
898
891
  animate: { rotate: 270 },
899
892
  transition: {
900
893
  repeat: 1 / 0,
901
- duration: p(),
894
+ duration: y(),
902
895
  ease: "linear"
903
896
  },
904
- className: h.progressIndicator,
905
- ...n,
897
+ className: f.progressIndicator,
898
+ ...r,
906
899
  children: /* @__PURE__ */ u(
907
- U.circle,
900
+ F.circle,
908
901
  {
909
902
  cx: "50%",
910
903
  cy: "50%",
911
- r: m ? "calc(50% - 2px)" : "50%",
904
+ r: p ? "calc(50% - 2px)" : "50%",
912
905
  style: {
913
906
  strokeLinecap: "round"
914
907
  },
915
908
  initial: "hidden",
916
909
  animate: "visible",
917
- className: h.activeIndicator,
910
+ className: f.activeIndicator,
918
911
  variants: {
919
912
  hidden: {
920
- pathLength: f ? 10 / 100 : 90 / 100
913
+ pathLength: d ? 10 / 100 : 90 / 100
921
914
  },
922
915
  visible: {
923
- pathLength: f ? 90 / 100 : 10 / 100
916
+ pathLength: d ? 90 / 100 : 10 / 100
924
917
  }
925
918
  },
926
919
  transition: {
927
920
  pathLength: {
928
921
  type: "tween",
929
922
  ease: "linear",
930
- duration: p(),
923
+ duration: y(),
931
924
  bounce: 0
932
925
  }
933
926
  }
934
927
  }
935
928
  )
936
929
  },
937
- f + ""
930
+ d + ""
938
931
  )
939
932
  ] });
940
- }, ne = ({
933
+ }, re = ({
941
934
  colorName: e = "on-surface",
942
935
  triggerRef: t
943
936
  }) => {
944
- const r = {
937
+ const n = {
945
938
  initial: {
946
939
  opacity: 0,
947
940
  borderRadius: "50%",
@@ -958,29 +951,29 @@ const Be = (e) => {
958
951
  borderRadius: { duration: 0.3, delay: 0.3 }
959
952
  }
960
953
  }
961
- }, [o, n] = R(!0), [a, i] = R(!1), [s, f] = R({ x: 0, y: 0 });
962
- $(() => {
963
- a && (n(!0), n(!1));
964
- }, [a]), $(() => {
965
- const c = t == null ? void 0 : t.current;
966
- if (c)
967
- return c.addEventListener("mousedown", l), c.addEventListener("mouseup", m), c.addEventListener("mouseleave", p), () => {
968
- c.removeEventListener("mousedown", l), c.removeEventListener("mouseup", m), c.removeEventListener("mouseleave", p);
954
+ }, [o, r] = S(!0), [c, i] = S(!1), [s, d] = S({ x: 0, y: 0 });
955
+ R(() => {
956
+ c && (r(!0), r(!1));
957
+ }, [c]), R(() => {
958
+ const l = t == null ? void 0 : t.current;
959
+ if (l)
960
+ return l.addEventListener("mousedown", a), l.addEventListener("mouseup", p), l.addEventListener("mouseleave", y), () => {
961
+ l.removeEventListener("mousedown", a), l.removeEventListener("mouseup", p), l.removeEventListener("mouseleave", y);
969
962
  };
970
963
  }, [t]);
971
- const l = (c) => {
972
- const h = t == null ? void 0 : t.current, v = h.getBoundingClientRect();
973
- i(!0), f({
974
- x: (c.clientX - v.left) / h.clientWidth * 100,
975
- y: (c.clientY - v.top) / h.clientHeight * 100
964
+ const a = (l) => {
965
+ const f = t == null ? void 0 : t.current, m = f.getBoundingClientRect();
966
+ i(!0), d({
967
+ x: (l.clientX - m.left) / f.clientWidth * 100,
968
+ y: (l.clientY - m.top) / f.clientHeight * 100
976
969
  });
977
- }, p = (c) => {
970
+ }, y = (l) => {
978
971
  i(!1);
979
- }, m = (c) => {
972
+ }, p = (l) => {
980
973
  i(!1);
981
974
  };
982
- return /* @__PURE__ */ u(A, { mode: "wait", children: (a || !a && !o) && /* @__PURE__ */ u(
983
- U.div,
975
+ return /* @__PURE__ */ u(Q, { mode: "wait", children: (c || !c && !o) && /* @__PURE__ */ u(
976
+ F.div,
984
977
  {
985
978
  style: {
986
979
  position: "absolute",
@@ -991,26 +984,26 @@ const Be = (e) => {
991
984
  background: `color-mix(in srgb, var(--color-${e}) 12%, transparent)`,
992
985
  pointerEvents: "none"
993
986
  },
994
- variants: r,
987
+ variants: n,
995
988
  initial: "initial",
996
989
  animate: "animate",
997
990
  exit: { opacity: 0, transition: { duration: 0 } },
998
- onAnimationComplete: () => n(!0),
991
+ onAnimationComplete: () => r(!0),
999
992
  className: "transform -translate-x-1/2 -translate-y-1/2"
1000
993
  }
1001
994
  ) });
1002
- }, Je = _(
995
+ }, rt = O(
1003
996
  "customScroll",
1004
- ({ orientation: e, draggable: t, isDragging: r }) => ({
1005
- customScroll: d(
997
+ ({ orientation: e, draggable: t, isDragging: n }) => ({
998
+ customScroll: h(
1006
999
  "flex h-full w-full",
1007
1000
  t && [
1008
1001
  "[&::-webkit-scrollbar-track]:rounded-full",
1009
1002
  "[&::-webkit-scrollbar-track]:bg-transparent",
1010
1003
  "[&::-webkit-scrollbar-thumb]:rounded-full",
1011
1004
  {
1012
- "[&::-webkit-scrollbar-thumb]:bg-outline": r,
1013
- "[&::-webkit-scrollbar-thumb]:bg-transparent": !r
1005
+ "[&::-webkit-scrollbar-thumb]:bg-outline": n,
1006
+ "[&::-webkit-scrollbar-thumb]:bg-transparent": !n
1014
1007
  },
1015
1008
  { "[&::-webkit-scrollbar]:h-2": e === "horizontal" },
1016
1009
  { "[&::-webkit-scrollbar]:w-2": e === "vertical" }
@@ -1018,135 +1011,135 @@ const Be = (e) => {
1018
1011
  {
1019
1012
  "overflow-y-scroll flex-col": e === "vertical",
1020
1013
  "overflow-x-scroll flex-row": e === "horizontal",
1021
- "cursor-grab": t && !r,
1022
- "cursor-grabbing": t && r
1014
+ "cursor-grab": t && !n,
1015
+ "cursor-grabbing": t && n
1023
1016
  }
1024
1017
  ),
1025
- track: d("overflow-hidden flex-none sticky", {
1018
+ track: h("overflow-hidden flex-none sticky", {
1026
1019
  "left-0 h-full": e === "horizontal",
1027
1020
  "top-0 w-full": e === "vertical"
1028
1021
  })
1029
1022
  })
1030
- ), ge = ({
1023
+ ), ot = ({
1031
1024
  children: e,
1032
1025
  orientation: t = "vertical",
1033
- scrollSize: r,
1026
+ scrollSize: n,
1034
1027
  onScroll: o,
1035
- className: n,
1036
- draggable: a = !1,
1028
+ className: r,
1029
+ draggable: c = !1,
1037
1030
  throttleDuration: i = 75
1038
1031
  }) => {
1039
- var W, F;
1040
- const s = j(null), f = j(null), [l, p] = R({
1032
+ var P, H;
1033
+ const s = W(null), d = W(null), [a, y] = S({
1041
1034
  width: null,
1042
1035
  height: null
1043
1036
  });
1044
- $(() => {
1037
+ R(() => {
1045
1038
  if (!s.current) return;
1046
- const S = new ResizeObserver((X) => {
1047
- for (const H of X)
1048
- H.target === s.current && p({
1049
- width: H.contentRect.width,
1050
- height: H.contentRect.height
1039
+ const $ = new ResizeObserver((U) => {
1040
+ for (const X of U)
1041
+ X.target === s.current && y({
1042
+ width: X.contentRect.width,
1043
+ height: X.contentRect.height
1051
1044
  // On observe aussi la hauteur maintenant
1052
1045
  });
1053
1046
  });
1054
- return S.observe(s.current), () => {
1055
- S.disconnect();
1047
+ return $.observe(s.current), () => {
1048
+ $.disconnect();
1056
1049
  };
1057
1050
  }, [s]);
1058
- const m = j(null), c = j(null), h = () => {
1059
- const S = f.current;
1060
- return S ? {
1061
- width: r ?? S.scrollWidth,
1062
- height: r ?? S.scrollHeight
1051
+ const p = W(null), l = W(null), f = () => {
1052
+ const $ = d.current;
1053
+ return $ ? {
1054
+ width: n ?? $.scrollWidth,
1055
+ height: n ?? $.scrollHeight
1063
1056
  } : null;
1064
- }, v = () => {
1065
- const S = s.current;
1066
- return S ? {
1067
- width: S.clientWidth,
1068
- height: S.clientHeight
1057
+ }, m = () => {
1058
+ const $ = s.current;
1059
+ return $ ? {
1060
+ width: $.clientWidth,
1061
+ height: $.clientHeight
1069
1062
  // Correction ici pour retourner la bonne hauteur
1070
1063
  } : null;
1071
- }, { scrollYProgress: b, scrollXProgress: L } = Ie({
1064
+ }, { scrollYProgress: w, scrollXProgress: g } = $e({
1072
1065
  container: s
1073
- }), I = j(null);
1074
- I.current || (I.current = Ee(
1066
+ }), N = W(null);
1067
+ N.current || (N.current = Me(
1075
1068
  i,
1076
- (S, X) => {
1077
- !c.current || !m.current || o && (t === "horizontal" && X === "x" && o({
1078
- scrollProgress: S,
1079
- scroll: S * m.current.width,
1080
- scrollTotal: m.current.width,
1081
- scrollVisible: c.current.width
1082
- }), t === "vertical" && X === "y" && o({
1083
- scrollProgress: S,
1084
- scroll: S * m.current.height,
1085
- scrollTotal: m.current.height,
1086
- scrollVisible: c.current.height
1069
+ ($, U) => {
1070
+ !l.current || !p.current || !s.current || o && (t === "horizontal" && U === "x" && o({
1071
+ scrollProgress: $,
1072
+ scroll: $ * (p.current.width - s.current.clientWidth),
1073
+ scrollTotal: p.current.width - s.current.clientWidth,
1074
+ scrollVisible: l.current.width
1075
+ }), t === "vertical" && U === "y" && o({
1076
+ scrollProgress: $,
1077
+ scroll: $ * (p.current.height - s.current.clientHeight),
1078
+ scrollTotal: p.current.height - s.current.clientHeight,
1079
+ scrollVisible: l.current.height
1087
1080
  }));
1088
1081
  }
1089
1082
  ));
1090
- const w = (S, X) => {
1091
- I.current && I.current(S, X);
1083
+ const b = ($, U) => {
1084
+ N.current && N.current($, U);
1092
1085
  };
1093
- $(() => {
1094
- l.width && w(L.get(), "x"), l.height && w(b.get(), "y");
1095
- }, [l]), se(L, "change", (S) => {
1096
- w(S, "x");
1097
- }), se(b, "change", (S) => {
1098
- w(S, "y");
1086
+ R(() => {
1087
+ a.width && b(g.get(), "x"), a.height && b(w.get(), "y");
1088
+ }, [a]), he(g, "change", ($) => {
1089
+ b($, "x");
1090
+ }), he(w, "change", ($) => {
1091
+ b($, "y");
1099
1092
  });
1100
- const [B, N] = R(!1);
1101
- pe(() => {
1102
- B || !c.current || !m.current || !o || (o({
1093
+ const [B, E] = S(!1);
1094
+ xe(() => {
1095
+ B || !l.current || !p.current || !o || (o({
1103
1096
  scrollProgress: 0,
1104
1097
  scroll: 0,
1105
- scrollTotal: t == "vertical" ? m.current.height : m.current.width,
1106
- scrollVisible: t == "vertical" ? c.current.height : c.current.width
1107
- }), N(!0));
1108
- }, [c, m, o]), m.current = h(), c.current = v();
1109
- const [E, C] = R(!1), V = Je({
1110
- isDragging: E,
1098
+ scrollTotal: t == "vertical" ? p.current.height : p.current.width,
1099
+ scrollVisible: t == "vertical" ? l.current.height : l.current.width
1100
+ }), E(!0));
1101
+ }, [l, p, o]), p.current = f(), l.current = m();
1102
+ const [I, C] = S(!1), V = rt({
1103
+ isDragging: I,
1111
1104
  children: e,
1112
- className: n,
1105
+ className: r,
1113
1106
  onScroll: o,
1114
1107
  orientation: t,
1115
- scrollSize: r,
1116
- draggable: a,
1108
+ scrollSize: n,
1109
+ draggable: c,
1117
1110
  throttleDuration: i
1118
- }), [P, k] = R(0), [y, M] = R(0), O = (S) => {
1119
- if (!a) return;
1120
- const X = s.current;
1121
- if (!X || P == null) return;
1122
- const J = (S.pageX - X.offsetLeft - P) * 1.5;
1123
- X.scrollLeft = y - J;
1124
- }, K = (S) => {
1125
- const X = s.current;
1126
- X && (C(!0), k(S.pageX - X.offsetLeft), M(X.scrollLeft));
1127
- }, Z = (S) => {
1128
- E && (S.preventDefault(), O(S));
1129
- }, q = () => {
1111
+ }), [D, k] = S(0), [v, M] = S(0), Y = ($) => {
1112
+ if (!c) return;
1113
+ const U = s.current;
1114
+ if (!U || D == null) return;
1115
+ const J = ($.pageX - U.offsetLeft - D) * 1.5;
1116
+ U.scrollLeft = v - J;
1117
+ }, q = ($) => {
1118
+ const U = s.current;
1119
+ U && (C(!0), k($.pageX - U.offsetLeft), M(U.scrollLeft));
1120
+ }, G = ($) => {
1121
+ I && ($.preventDefault(), Y($));
1122
+ }, j = () => {
1130
1123
  C(!1);
1131
1124
  }, z = () => {
1132
1125
  C(!1);
1133
- }, g = (S) => {
1134
- S.preventDefault();
1135
- }, x = j(null);
1136
- return $(() => () => {
1126
+ }, L = ($) => {
1127
+ $.preventDefault();
1128
+ }, x = W(null);
1129
+ return R(() => () => {
1137
1130
  x.current && clearTimeout(x.current);
1138
- }, []), /* @__PURE__ */ D(
1131
+ }, []), /* @__PURE__ */ A(
1139
1132
  "div",
1140
1133
  {
1141
1134
  className: V.customScroll,
1142
1135
  ref: s,
1143
- onMouseDown: K,
1144
- onMouseMove: Z,
1145
- onMouseUp: q,
1136
+ onMouseDown: q,
1137
+ onMouseMove: G,
1138
+ onMouseUp: j,
1146
1139
  onMouseLeave: z,
1147
- onDragStart: g,
1148
- onScroll: (S) => {
1149
- E || (k(null), C(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
1140
+ onDragStart: L,
1141
+ onScroll: ($) => {
1142
+ I || (k(null), C(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
1150
1143
  C(!1);
1151
1144
  }, 1e3));
1152
1145
  },
@@ -1154,28 +1147,28 @@ const Be = (e) => {
1154
1147
  /* @__PURE__ */ u(
1155
1148
  "div",
1156
1149
  {
1157
- ref: f,
1158
- style: t === "vertical" ? { height: ((W = c == null ? void 0 : c.current) == null ? void 0 : W.height) ?? "100%" } : { width: ((F = c == null ? void 0 : c.current) == null ? void 0 : F.width) ?? "100%" },
1150
+ ref: d,
1151
+ style: t === "vertical" ? { height: ((P = l == null ? void 0 : l.current) == null ? void 0 : P.height) ?? "100%" } : { width: ((H = l == null ? void 0 : l.current) == null ? void 0 : H.width) ?? "100%" },
1159
1152
  className: V.track,
1160
1153
  children: e
1161
1154
  }
1162
1155
  ),
1163
- c.current && m.current && /* @__PURE__ */ D(te, { children: [
1164
- t === "vertical" && m.current.height > c.current.height && /* @__PURE__ */ u(
1165
- U.div,
1156
+ l.current && p.current && /* @__PURE__ */ A(T, { children: [
1157
+ t === "vertical" && p.current.height > l.current.height && /* @__PURE__ */ u(
1158
+ F.div,
1166
1159
  {
1167
1160
  className: "flex-none",
1168
1161
  style: {
1169
- height: m.current.height - c.current.height
1162
+ height: p.current.height - l.current.height
1170
1163
  }
1171
1164
  }
1172
1165
  ),
1173
- t === "horizontal" && m.current.width > c.current.width && /* @__PURE__ */ u(
1174
- U.div,
1166
+ t === "horizontal" && p.current.width > l.current.width && /* @__PURE__ */ u(
1167
+ F.div,
1175
1168
  {
1176
1169
  className: "flex-none",
1177
1170
  style: {
1178
- width: m.current.width - c.current.width
1171
+ width: p.current.width - l.current.width
1179
1172
  }
1180
1173
  }
1181
1174
  )
@@ -1183,57 +1176,150 @@ const Be = (e) => {
1183
1176
  ]
1184
1177
  }
1185
1178
  );
1186
- }, Lt = ({
1187
- children: e,
1188
- transition: t = ".5s",
1189
- orientation: r = "vertical",
1190
- throttleDuration: o = 25,
1191
- ...n
1179
+ }, lt = ({
1180
+ onScroll: e,
1181
+ el: t,
1182
+ touch: n = !0
1192
1183
  }) => {
1193
- const [a, i] = R(null), s = he((a == null ? void 0 : a.scrollProgress) ?? 0), f = oe(
1194
- s,
1195
- [0, 1],
1196
- [0, 1 - ((a == null ? void 0 : a.scrollVisible) ?? 0) / ((a == null ? void 0 : a.scrollTotal) ?? 0)]
1197
- ), l = oe(
1198
- f,
1199
- (c) => `${-c * 100}%`
1200
- ), p = (c) => {
1201
- s.set(c.scrollProgress), c.scrollTotal > 0 && i(c);
1202
- }, m = j(null);
1203
- return se(l, "change", (c) => {
1204
- const h = performance.now();
1205
- if (m.current !== null) {
1206
- const v = h - m.current;
1207
- console.log(`Delta temps : ${v} ms`);
1184
+ const o = W(null), r = W(0), c = W(0);
1185
+ R(() => {
1186
+ if (!t) return;
1187
+ r.current = t.scrollTop, c.current = t.scrollLeft;
1188
+ const i = (l) => {
1189
+ e == null || e(l);
1190
+ }, s = (l) => {
1191
+ l.preventDefault(), i({
1192
+ type: "intent",
1193
+ source: "wheel",
1194
+ deltaX: l.deltaX,
1195
+ deltaY: l.deltaY,
1196
+ originalEvent: l
1197
+ });
1198
+ }, d = (l) => {
1199
+ if (!n) return;
1200
+ const f = l.touches[0];
1201
+ f && (o.current = { x: f.clientX, y: f.clientY });
1202
+ }, a = (l) => {
1203
+ if (!n) return;
1204
+ const f = l.touches[0];
1205
+ if (!f || !o.current) return;
1206
+ l.preventDefault();
1207
+ const m = o.current.x - f.clientX, w = o.current.y - f.clientY;
1208
+ o.current = { x: f.clientX, y: f.clientY }, i({
1209
+ type: "intent",
1210
+ source: "touch",
1211
+ deltaX: m,
1212
+ deltaY: w,
1213
+ originalEvent: l
1214
+ });
1215
+ }, y = () => {
1216
+ n && (o.current = null);
1217
+ }, p = (l) => {
1218
+ const m = t.clientHeight * 0.9;
1219
+ let w = 0, g = 0;
1220
+ switch (l.key) {
1221
+ case "ArrowDown":
1222
+ g = 40;
1223
+ break;
1224
+ case "ArrowUp":
1225
+ g = -40;
1226
+ break;
1227
+ case "ArrowRight":
1228
+ w = 40;
1229
+ break;
1230
+ case "ArrowLeft":
1231
+ w = -40;
1232
+ break;
1233
+ case "PageDown":
1234
+ g = m;
1235
+ break;
1236
+ case "PageUp":
1237
+ g = -m;
1238
+ break;
1239
+ case "Home":
1240
+ g = Number.NEGATIVE_INFINITY;
1241
+ break;
1242
+ case "End":
1243
+ g = Number.POSITIVE_INFINITY;
1244
+ break;
1245
+ case " ":
1246
+ g = l.shiftKey ? -m : m;
1247
+ break;
1248
+ default:
1249
+ return;
1250
+ }
1251
+ l.preventDefault(), i({
1252
+ type: "intent",
1253
+ source: "keyboard",
1254
+ deltaX: w,
1255
+ deltaY: g,
1256
+ originalEvent: l
1257
+ });
1258
+ };
1259
+ return t.addEventListener("wheel", s, { passive: !1 }), t.addEventListener("touchstart", d, { passive: !0 }), t.addEventListener("touchmove", a, { passive: !1 }), t.addEventListener("touchend", y, { passive: !0 }), t.addEventListener("keydown", p), () => {
1260
+ t.removeEventListener("wheel", s), t.removeEventListener("touchstart", d), t.removeEventListener("touchmove", a), t.removeEventListener("touchend", y), t.removeEventListener("keydown", p);
1261
+ };
1262
+ }, [e]);
1263
+ }, Vt = ({
1264
+ transition: e,
1265
+ orientation: t = "vertical",
1266
+ throttleDuration: n = 25
1267
+ }) => {
1268
+ const [o, r] = S(0), [c, i] = S(), s = W(!1), d = W(), a = W(0);
1269
+ R(() => {
1270
+ i(document);
1271
+ const l = document.documentElement.scrollTop;
1272
+ r(l), a.current = l;
1273
+ }, []), R(() => {
1274
+ const l = () => {
1275
+ s.current || r(document.documentElement.scrollTop);
1276
+ };
1277
+ return c == null || c.addEventListener("scroll", l), () => {
1278
+ d.current && clearTimeout(d.current), c == null || c.removeEventListener("scroll", l);
1279
+ };
1280
+ }, [c]);
1281
+ const y = W(), p = W(null);
1282
+ return R(() => {
1283
+ const l = o;
1284
+ if (p.current && (p.current.stop(), p.current = null), !s.current) {
1285
+ y.current = l;
1286
+ return;
1208
1287
  }
1209
- m.current = h, console.log(c);
1210
- }), /* @__PURE__ */ u(
1211
- ge,
1288
+ return p.current = Re(y.current ?? l, l, {
1289
+ duration: (e == null ? void 0 : e.duration) ?? 0.5,
1290
+ ease: "circOut",
1291
+ onUpdate: (f) => {
1292
+ d.current && clearTimeout(d.current), y.current = f;
1293
+ const m = document.documentElement, w = Math.round(f * 1e3) / 1e3, g = a.current;
1294
+ Math.abs(w - g) < 0.1 || (a.current = w, s.current && m.scrollTo({ top: w }));
1295
+ },
1296
+ onComplete: () => {
1297
+ d.current = setTimeout(() => {
1298
+ s.current = !1;
1299
+ }, 300), p.current = null;
1300
+ }
1301
+ }), () => {
1302
+ p.current && (p.current.stop(), p.current = null);
1303
+ };
1304
+ }, [o]), c ? /* @__PURE__ */ u(
1305
+ lt,
1212
1306
  {
1213
- onScroll: p,
1214
- throttleDuration: o,
1215
- ...n,
1216
- children: /* @__PURE__ */ u(
1217
- U.div,
1218
- {
1219
- className: d("transition-transform ease-out", {
1220
- "w-fit h-full": r === "horizontal",
1221
- "h-fit w-full": r === "vertical"
1222
- }),
1223
- style: {
1224
- transitionDuration: t,
1225
- ...r == "vertical" ? { y: l } : { x: l }
1226
- },
1227
- children: e
1307
+ touch: !1,
1308
+ el: c,
1309
+ onScroll: (l) => {
1310
+ if ("deltaY" in l && l.deltaY !== 0 && c && o !== null) {
1311
+ let f = o + l.deltaY;
1312
+ const m = c.querySelector("html");
1313
+ m && (f = Math.min(f, m.scrollHeight - m.clientHeight)), f = Math.max(f, 0), r(f), s.current = !0;
1228
1314
  }
1229
- )
1315
+ }
1230
1316
  }
1231
- );
1232
- }, Qe = ({
1317
+ ) : null;
1318
+ }, at = ({
1233
1319
  targetRef: e,
1234
1320
  children: t
1235
1321
  }) => {
1236
- const [r, o] = R(null), n = j(null), a = () => {
1322
+ const [n, o] = S(null), r = W(null), c = () => {
1237
1323
  const i = e.current;
1238
1324
  if (!i) return;
1239
1325
  const s = i.getBoundingClientRect();
@@ -1249,151 +1335,317 @@ const Be = (e) => {
1249
1335
  // personnalise si besoin
1250
1336
  });
1251
1337
  };
1252
- return $(() => {
1338
+ return R(() => {
1253
1339
  const i = e.current;
1254
1340
  if (i)
1255
- return a(), window.addEventListener("scroll", a, !0), window.addEventListener("resize", a), n.current = new ResizeObserver(a), n.current.observe(i), () => {
1341
+ return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), r.current = new ResizeObserver(c), r.current.observe(i), () => {
1256
1342
  var s;
1257
- window.removeEventListener("scroll", a, !0), window.removeEventListener("resize", a), (s = n.current) == null || s.disconnect();
1343
+ window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), (s = r.current) == null || s.disconnect();
1258
1344
  };
1259
- }, [e]), r ? ye(/* @__PURE__ */ u("div", { style: r, children: t }), document.body) : null;
1345
+ }, [e]), n ? be(/* @__PURE__ */ u("div", { style: n, children: t }), document.body) : null;
1260
1346
  };
1261
- function Ae(e) {
1347
+ function st(e) {
1262
1348
  return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e);
1263
1349
  }
1264
- const It = ({
1350
+ const Ft = ({
1265
1351
  config: e,
1266
1352
  throttleDelay: t = 100,
1267
1353
  // Délai par défaut de 300ms
1268
- onLoad: r
1354
+ onLoad: n,
1355
+ loadTheme: o = !1
1269
1356
  }) => {
1270
- const [o, n] = R(null), a = j(null), i = j(e.sourceColor), s = j(!0);
1271
- $(() => {
1272
- if (s.current) {
1273
- s.current = !1, i.current = e.sourceColor, f(e.sourceColor);
1274
- return;
1357
+ const [r, c] = S(null);
1358
+ R(() => {
1359
+ (async () => {
1360
+ const l = await Be(e, o);
1361
+ c(l);
1362
+ })();
1363
+ }, []);
1364
+ const [i, s] = S(null), d = W(null), a = W(0), y = W(null);
1365
+ R(() => {
1366
+ if (!r) return;
1367
+ const l = {
1368
+ ...e,
1369
+ // Assurer la compatibilité avec l'API qui attend sourceColorHex
1370
+ sourceColor: e.sourceColor
1371
+ }, f = Date.now(), m = f - a.current, w = async (g) => {
1372
+ await p(g);
1373
+ };
1374
+ if (a.current === 0 || m >= t)
1375
+ d.current && (clearTimeout(d.current), d.current = null), y.current = null, a.current = f, w(l);
1376
+ else if (y.current = l, !d.current) {
1377
+ const g = Math.max(0, t - m);
1378
+ d.current = setTimeout(async () => {
1379
+ d.current = null;
1380
+ const N = y.current;
1381
+ y.current = null, N && (a.current = Date.now(), await w(N));
1382
+ }, g);
1275
1383
  }
1276
- if (e.sourceColor !== i.current)
1277
- return a.current && clearTimeout(a.current), a.current = setTimeout(async () => {
1278
- i.current = e.sourceColor, await f(e.sourceColor), a.current = null;
1279
- }, t), () => {
1280
- a.current && (clearTimeout(a.current), a.current = null);
1281
- };
1282
- }, [e.sourceColor, t]);
1283
- const f = async (l) => {
1284
- if (!Ae(l))
1384
+ return () => {
1385
+ };
1386
+ }, [e, t, r]);
1387
+ const p = async (l) => {
1388
+ if (typeof l.sourceColor == "string" && !st(l.sourceColor))
1285
1389
  throw new Error("Invalid hex color");
1390
+ if (!r)
1391
+ return;
1392
+ r.context.update(l), await r.load();
1393
+ const f = r == null ? void 0 : r.plugins.getPlugin(Le).getInstance().outputCss;
1394
+ s(f), n == null || n(r);
1395
+ };
1396
+ return R(() => () => {
1397
+ d.current && (clearTimeout(d.current), d.current = null);
1398
+ }, []), i ? /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: i } }) : null;
1399
+ };
1400
+ function ct() {
1401
+ if (typeof window > "u") return !1;
1402
+ try {
1403
+ if (window.CSS && typeof window.CSS.supports == "function")
1404
+ return CSS.supports("animation-timeline: view()") || CSS.supports("animation-timeline: scroll()") || // some older implementations used view-timeline-name
1405
+ CSS.supports("view-timeline-name: --a");
1406
+ } catch {
1407
+ }
1408
+ return !1;
1409
+ }
1410
+ function it() {
1411
+ return typeof window > "u" || !("matchMedia" in window) ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1412
+ }
1413
+ function ae(e) {
1414
+ if (!(e instanceof HTMLElement)) return !1;
1415
+ const t = e.classList;
1416
+ return Array.from(t).some(
1417
+ (n) => n.startsWith("anim-") && n.includes("scroll")
1418
+ );
1419
+ }
1420
+ function ye(e) {
1421
+ if (!(e instanceof HTMLElement)) return !1;
1422
+ const t = e.classList;
1423
+ return Array.from(t).some(
1424
+ (o) => o.startsWith("anim-")
1425
+ ) ? !ae(e) : !1;
1426
+ }
1427
+ function le(e, t) {
1428
+ if (!(typeof window > "u"))
1286
1429
  try {
1287
- const p = await ke({
1288
- ...e,
1289
- sourceColor: l
1430
+ const n = getComputedStyle(e), o = /* @__PURE__ */ new Set();
1431
+ if (Array.from(e.classList).forEach((r) => {
1432
+ if (r.startsWith("anim")) {
1433
+ const c = `--anim-name-${r.replaceAll(/-in|-out|-scroll/g, "").replace(t + "-", "")}`, i = n.getPropertyValue(c).trim();
1434
+ i && o.add(i.replace(t + "-", ""));
1435
+ }
1436
+ }), o.size > 0) {
1437
+ const r = Array.from(o).map((i) => `var(--anim-name-${i})`).join(", "), c = Array.from(o).map((i) => `var(--anim-dependencies-${i})`).join(", ");
1438
+ e.style.animationName = r, e.style.willChange = c;
1439
+ }
1440
+ } catch {
1441
+ }
1442
+ }
1443
+ function se(e, t) {
1444
+ if (!ae(e)) return;
1445
+ if (e.hasAttribute(`data-${t}-scroll`)) {
1446
+ const i = (e.getAttribute(`data-${t}-scroll`) || "").trim().toLowerCase(), s = i === "x" || i === "inline" ? "inline" : i === "y" || i === "block" ? "block" : "auto";
1447
+ e.classList.contains(`${t}-timeline`) || e.classList.contains(`${t}-timeline-inline`) || e.classList.contains(`${t}-timeline-block`) || e.classList.contains(`${t}-timeline-x`) || e.classList.contains(`${t}-timeline-y`) || (s === "inline" ? e.classList.add(`${t}-timeline-inline`) : s === "block" ? e.classList.add(`${t}-timeline-block`) : e.classList.add(`${t}-scroll`));
1448
+ }
1449
+ const n = e.getAttribute(`data-${t}-start`);
1450
+ n && e.style.setProperty(`--${t}-range-start`, n);
1451
+ const o = e.getAttribute(`data-${t}-end`);
1452
+ o && e.style.setProperty(`--${t}-range-end`, o);
1453
+ const r = e.hasAttribute(`data-${t}-paused`) || e.classList.contains(`${t}-paused`), c = e.hasAttribute(`data-${t}-run`) || e.classList.contains(`${t}-run`);
1454
+ !r && !c && e.setAttribute(`data-${t}-run`, ""), le(e, t);
1455
+ }
1456
+ function ce(e = document, t) {
1457
+ return Array.from(
1458
+ e.querySelectorAll(`[class*="${t}-"]`)
1459
+ ).filter((o) => ae(o));
1460
+ }
1461
+ function ut(e = document, t) {
1462
+ return Array.from(
1463
+ e.querySelectorAll('[class*="anim-"]')
1464
+ ).filter((o) => !ae(o));
1465
+ }
1466
+ const Ht = ({
1467
+ prefix: e = "anim",
1468
+ children: t,
1469
+ once: n = !0
1470
+ }) => {
1471
+ const o = ue(it, []), r = ue(() => ct(), []), c = W(null), i = W(null), s = W(null);
1472
+ return R(() => {
1473
+ if (o) return;
1474
+ const d = /* @__PURE__ */ new WeakSet();
1475
+ s.current = d;
1476
+ const a = new IntersectionObserver(
1477
+ (l) => {
1478
+ for (const f of l) {
1479
+ const m = f.target;
1480
+ if (!ye(m))
1481
+ continue;
1482
+ const g = m.classList.contains(`${e}-out`);
1483
+ if (!g && f.isIntersecting)
1484
+ m.setAttribute(`data-${e}-in-run`, ""), n && a.unobserve(m);
1485
+ else if (g && !f.isIntersecting)
1486
+ m.setAttribute(`data-${e}-out-run`, ""), n && a.unobserve(m);
1487
+ else if (!n) {
1488
+ const b = m.style.animationName;
1489
+ m.style.animationName = "none", m.removeAttribute(`data-${e}-in-run`), m.removeAttribute(`data-${e}-out-run`), m.offsetWidth, m.style.animationName = b;
1490
+ }
1491
+ }
1492
+ },
1493
+ { threshold: [0, 0.2] }
1494
+ );
1495
+ i.current = a;
1496
+ const y = (l) => {
1497
+ const f = ut(l || document);
1498
+ for (const m of f)
1499
+ d.has(m) || (d.add(m), le(m, e), a.observe(m));
1500
+ };
1501
+ y();
1502
+ let p;
1503
+ if (r) {
1504
+ let l = null;
1505
+ (() => {
1506
+ l == null && (l = requestAnimationFrame(() => {
1507
+ l = null;
1508
+ const w = ce(void 0, e);
1509
+ for (const g of w) se(g, e);
1510
+ }));
1511
+ })();
1512
+ const m = new MutationObserver((w) => {
1513
+ for (const g of w)
1514
+ if (g.type === "attributes") {
1515
+ const N = g.target;
1516
+ N instanceof HTMLElement && (se(N, e), ye(N) && (d.has(N) || (d.add(N), a.observe(N))), le(N, e));
1517
+ } else if (g.type === "childList" && g.addedNodes && g.addedNodes.length) {
1518
+ for (const N of Array.from(g.addedNodes))
1519
+ if (N instanceof HTMLElement) {
1520
+ const b = ce(N, e);
1521
+ for (const B of b) se(B, e);
1522
+ y(N);
1523
+ }
1524
+ }
1290
1525
  });
1291
- r == null || r(p);
1292
- const m = p.plugins.getPlugin(Se).getInstance().outputCss;
1293
- m && n(m);
1294
- } catch (p) {
1295
- throw new Error(
1296
- p instanceof Error ? p.message : "Theme loading failed"
1297
- );
1526
+ m.observe(document.documentElement, {
1527
+ subtree: !0,
1528
+ childList: !0,
1529
+ attributes: !0,
1530
+ attributeFilter: [
1531
+ "class",
1532
+ `data-${e}-scroll`,
1533
+ `data-${e}-start`,
1534
+ `data-${e}-end`,
1535
+ `data-${e}-paused`,
1536
+ `data-${e}-run`
1537
+ ]
1538
+ }), c.current = m, p = () => {
1539
+ l != null && cancelAnimationFrame(l), m.disconnect(), c.current = null;
1540
+ };
1541
+ } else {
1542
+ let l;
1543
+ const f = ce(void 0, e);
1544
+ for (const m of f) le(m, e);
1545
+ f.length > 0 && import("./scrollDriven-AP2yWhzi.js").then((m) => {
1546
+ l = m.initScrollViewFallback({ once: n });
1547
+ }), p = () => {
1548
+ typeof l == "function" && l();
1549
+ };
1298
1550
  }
1299
- };
1300
- return $(() => () => {
1301
- a.current && clearTimeout(a.current);
1302
- }, []), o ? /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: o } }) : null;
1303
- }, ze = ({
1551
+ return () => {
1552
+ p && p(), i.current && (i.current.disconnect(), i.current = null), s.current = null;
1553
+ };
1554
+ }, [r, o, n]), /* @__PURE__ */ u(T, { children: t });
1555
+ }, dt = ({
1304
1556
  variant: e = "filled",
1305
1557
  disabled: t = !1,
1306
- icon: r,
1558
+ icon: n,
1307
1559
  href: o,
1308
- label: n,
1309
- disableTextMargins: a,
1560
+ label: r,
1561
+ disableTextMargins: c,
1310
1562
  className: i,
1311
1563
  iconPosition: s = "left",
1312
- loading: f = !1,
1313
- shape: l = "rounded",
1314
- onClick: p,
1315
- onToggle: m,
1316
- activated: c,
1317
- ref: h,
1318
- size: v = "medium",
1319
- allowShapeTransformation: b = !0,
1320
- transition: L,
1321
- children: I,
1322
- ...w
1564
+ loading: d = !1,
1565
+ shape: a = "rounded",
1566
+ onClick: y,
1567
+ onToggle: p,
1568
+ activated: l,
1569
+ ref: f,
1570
+ size: m = "medium",
1571
+ allowShapeTransformation: w = !0,
1572
+ transition: g,
1573
+ children: N,
1574
+ ...b
1323
1575
  }) => {
1324
- if (I && (n = I), !n)
1576
+ if (N && (r = N), !r)
1325
1577
  throw new Error(
1326
1578
  "Button component requires either a label prop or children content"
1327
1579
  );
1328
- const B = o ? "a" : "button", N = j(null), E = h || N, [C, V] = Y.useState(c);
1329
- $(() => {
1330
- V(c);
1331
- }, [c]), L = { duration: 0.3, ...L };
1332
- let P;
1333
- m ? m && (P = (M) => {
1580
+ const B = o ? "a" : "button", E = W(null), I = f || E, [C, V] = K.useState(l);
1581
+ R(() => {
1582
+ V(l);
1583
+ }, [l]), g = { duration: 0.3, ...g };
1584
+ let D;
1585
+ p ? p && (D = (M) => {
1334
1586
  t && M.preventDefault();
1335
- const O = !C;
1336
- V(O), m(O);
1337
- }) : P = (M) => {
1338
- t && M.preventDefault(), p && p(M);
1587
+ const Y = !C;
1588
+ V(Y), p(Y);
1589
+ }) : D = (M) => {
1590
+ t && M.preventDefault(), y && y(M);
1339
1591
  };
1340
- const k = $e({
1341
- allowShapeTransformation: b,
1342
- size: v,
1343
- disableTextMargins: a,
1344
- shape: l,
1592
+ const k = Ue({
1593
+ allowShapeTransformation: w,
1594
+ size: m,
1595
+ disableTextMargins: c,
1596
+ shape: a,
1345
1597
  href: o,
1346
1598
  disabled: t,
1347
- icon: r,
1599
+ icon: n,
1348
1600
  iconPosition: s,
1349
- loading: f,
1601
+ loading: d,
1350
1602
  variant: e,
1351
- transition: L,
1603
+ transition: g,
1352
1604
  className: i,
1353
1605
  isActive: C ?? !1,
1354
- onToggle: m,
1606
+ onToggle: p,
1355
1607
  activated: C,
1356
- label: n,
1357
- children: n
1358
- }), y = r ? /* @__PURE__ */ u(Q, { icon: r, className: k.icon }) : /* @__PURE__ */ u(te, {});
1359
- return /* @__PURE__ */ D(
1608
+ label: r,
1609
+ children: r
1610
+ }), v = n ? /* @__PURE__ */ u(Z, { icon: n, className: k.icon }) : /* @__PURE__ */ u(T, {});
1611
+ return /* @__PURE__ */ A(
1360
1612
  B,
1361
1613
  {
1362
- ref: E,
1614
+ ref: I,
1363
1615
  href: o,
1364
1616
  className: k.button,
1365
- ...w,
1366
- onClick: P,
1617
+ ...b,
1618
+ onClick: D,
1367
1619
  disabled: t,
1368
- "aria-pressed": m ? C : void 0,
1369
- style: { transition: L.duration + "s" },
1620
+ "aria-pressed": p ? C : void 0,
1621
+ style: { transition: g.duration + "s" },
1370
1622
  children: [
1371
1623
  /* @__PURE__ */ u("div", { className: k.touchTarget }),
1372
1624
  /* @__PURE__ */ u(
1373
1625
  "div",
1374
1626
  {
1375
1627
  className: k.stateLayer,
1376
- style: { transition: L.duration + "s" },
1628
+ style: { transition: g.duration + "s" },
1377
1629
  children: !t && /* @__PURE__ */ u(
1378
- ne,
1630
+ re,
1379
1631
  {
1380
- colorName: e === "filled" && m && "on-surface-variant" || e === "filled" && !m && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
1381
- triggerRef: E
1632
+ colorName: e === "filled" && p && "on-surface-variant" || e === "filled" && !p && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
1633
+ triggerRef: I
1382
1634
  }
1383
1635
  )
1384
1636
  }
1385
1637
  ),
1386
- s === "left" && y,
1387
- f && /* @__PURE__ */ u(
1638
+ s === "left" && v,
1639
+ d && /* @__PURE__ */ u(
1388
1640
  "div",
1389
1641
  {
1390
1642
  className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
1391
1643
  children: /* @__PURE__ */ u(
1392
- Ze,
1644
+ nt,
1393
1645
  {
1394
1646
  className: () => ({
1395
1647
  progressIndicator: "h-6 w-6",
1396
- activeIndicator: d(
1648
+ activeIndicator: h(
1397
1649
  {
1398
1650
  "!stroke-primary": e === "elevated" && !t,
1399
1651
  "!stroke-on-surface/[38%]": e === "elevated" && t
@@ -1421,295 +1673,295 @@ const It = ({
1421
1673
  )
1422
1674
  }
1423
1675
  ),
1424
- /* @__PURE__ */ u("span", { className: k.label, children: n }),
1425
- s === "right" && y
1676
+ /* @__PURE__ */ u("span", { className: k.label, children: r }),
1677
+ s === "right" && v
1426
1678
  ]
1427
1679
  }
1428
1680
  );
1429
- }, Et = ({
1681
+ }, Ut = ({
1430
1682
  variant: e = "outlined",
1431
1683
  className: t,
1432
- children: r,
1684
+ children: n,
1433
1685
  isInteractive: o = !1,
1434
- ref: n,
1435
- ...a
1686
+ ref: r,
1687
+ ...c
1436
1688
  }) => {
1437
- const i = Pe({ className: t, isInteractive: o, variant: e, children: r }), s = j(null), f = n || s;
1438
- return /* @__PURE__ */ D("div", { ...a, ref: f, className: i.card, children: [
1439
- /* @__PURE__ */ u("div", { className: i.stateLayer, children: o && /* @__PURE__ */ u(ne, { colorName: "on-surface", triggerRef: f }) }),
1440
- r
1689
+ const i = Xe({ className: t, isInteractive: o, variant: e, children: n }), s = W(null), d = r || s;
1690
+ return /* @__PURE__ */ A("div", { ...c, ref: d, className: i.card, children: [
1691
+ /* @__PURE__ */ u("div", { className: i.stateLayer, children: o && /* @__PURE__ */ u(re, { colorName: "on-surface", triggerRef: d }) }),
1692
+ n
1441
1693
  ] });
1442
- }, Te = (e, t, r = [0, 1]) => {
1443
- const [o, n] = t, [a, i] = r, f = (Math.max(o, Math.min(e, n)) - o) / (n - o);
1444
- return a + f * (i - a);
1445
- }, et = ({
1694
+ }, ft = (e, t, n = [0, 1]) => {
1695
+ const [o, r] = t, [c, i] = n, d = (Math.max(o, Math.min(e, r)) - o) / (r - o);
1696
+ return c + d * (i - c);
1697
+ }, mt = ({
1446
1698
  className: e,
1447
1699
  children: t,
1448
- width: r = 1,
1700
+ width: n = 1,
1449
1701
  index: o = 0,
1450
- ref: n,
1451
- ...a
1702
+ ref: r,
1703
+ ...c
1452
1704
  }) => {
1453
- const i = j(null), s = n || i, f = We({
1705
+ const i = W(null), s = r || i, d = Ye({
1454
1706
  className: e,
1455
1707
  index: o,
1456
- width: r,
1708
+ width: n,
1457
1709
  children: t
1458
1710
  });
1459
1711
  return /* @__PURE__ */ u(
1460
- U.div,
1712
+ F.div,
1461
1713
  {
1462
1714
  ref: s,
1463
- animate: { width: r + "px" },
1715
+ animate: { width: n + "px" },
1464
1716
  transition: {
1465
1717
  duration: 0.5,
1466
1718
  ease: "linear"
1467
1719
  },
1468
- className: f.carouselItem,
1469
- ...a,
1720
+ className: d.carouselItem,
1721
+ ...c,
1470
1722
  children: t
1471
1723
  }
1472
1724
  );
1473
- }, kt = ({
1725
+ }, Xt = ({
1474
1726
  variant: e = "hero",
1475
1727
  className: t,
1476
- children: r,
1728
+ children: n,
1477
1729
  ref: o,
1478
- marginPourcent: n = 0,
1479
- inputRange: a = [0.21, 0.65],
1730
+ marginPourcent: r = 0,
1731
+ inputRange: c = [0.21, 0.65],
1480
1732
  outputRange: i = [42, 300],
1481
1733
  gap: s = 8,
1482
- onChange: f,
1483
- scrollSensitivity: l = 1.25,
1484
- ...p
1734
+ onChange: d,
1735
+ scrollSensitivity: a = 1.25,
1736
+ ...y
1485
1737
  }) => {
1486
- var q, z;
1487
- const m = j(null), c = o || m, h = De({
1738
+ var j, z;
1739
+ const p = W(null), l = o || p, f = je({
1488
1740
  className: t,
1489
- children: r,
1741
+ children: n,
1490
1742
  variant: e,
1491
- inputRange: a,
1743
+ inputRange: c,
1492
1744
  outputRange: i,
1493
- marginPourcent: n,
1494
- onChange: f,
1745
+ marginPourcent: r,
1746
+ onChange: d,
1495
1747
  gap: s,
1496
- scrollSensitivity: l
1497
- }), v = Y.Children.toArray(r).filter(
1498
- (g) => Y.isValidElement(g) && g.type === et
1499
- ), b = j(null), [L, I] = R([]), [w, B] = R(null), N = () => {
1500
- var X;
1501
- if (!b.current || !c.current || !w) return [];
1502
- const { scrollVisible: g, scrollProgress: x } = w;
1503
- function W(H, J) {
1504
- return H.map(
1505
- (T) => (T - J) / Math.abs(H[1] - H[0])
1748
+ scrollSensitivity: a
1749
+ }), m = K.Children.toArray(n).filter(
1750
+ (L) => K.isValidElement(L) && L.type === mt
1751
+ ), w = W(null), [g, N] = S([]), [b, B] = S(null), E = () => {
1752
+ var U;
1753
+ if (!w.current || !l.current || !b) return [];
1754
+ const { scrollVisible: L, scrollProgress: x } = b;
1755
+ function P(X, J) {
1756
+ return X.map(
1757
+ (ee) => (ee - J) / Math.abs(X[1] - X[0])
1506
1758
  );
1507
1759
  }
1508
- let F = v.map((H, J) => {
1509
- if (!E[J].current || !b.current) return 0;
1510
- let re = J / (v.length - 1);
1511
- return re > 1 && (re = 1), re < 0 && (re = 0), re;
1760
+ let H = m.map((X, J) => {
1761
+ if (!I[J].current || !w.current) return 0;
1762
+ let ne = J / (m.length - 1);
1763
+ return ne > 1 && (ne = 1), ne < 0 && (ne = 0), ne;
1512
1764
  });
1513
- F = W(F, x);
1514
- let S = ((((X = c.current) == null ? void 0 : X.clientWidth) ?? g) - (i[0] + s)) / (i[1] + s);
1515
- return F.map((H, J) => ({ value: Math.abs(H), originalIndex: J })).sort((H, J) => H.value - J.value).forEach((H, J) => {
1516
- J === 0 && V(H.originalIndex);
1517
- let T = Te(S, [0, 1], [0, i[1]]);
1518
- T < i[0] && (T = i[0]), S--, F[H.originalIndex] = T;
1519
- }), F;
1520
- }, E = j([]).current, [C, V] = R(0);
1521
- $(() => {
1522
- f && f(C);
1523
- }, [C]), E.length !== v.length && v.forEach((g, x) => {
1524
- E[x] || (E[x] = Y.createRef());
1765
+ H = P(H, x);
1766
+ let $ = ((((U = l.current) == null ? void 0 : U.clientWidth) ?? L) - (i[0] + s)) / (i[1] + s);
1767
+ return H.map((X, J) => ({ value: Math.abs(X), originalIndex: J })).sort((X, J) => X.value - J.value).forEach((X, J) => {
1768
+ J === 0 && V(X.originalIndex);
1769
+ let ee = ft($, [0, 1], [0, i[1]]);
1770
+ ee < i[0] && (ee = i[0]), $--, H[X.originalIndex] = ee;
1771
+ }), H;
1772
+ }, I = W([]).current, [C, V] = S(0);
1773
+ R(() => {
1774
+ d && d(C);
1775
+ }, [C]), I.length !== m.length && m.forEach((L, x) => {
1776
+ I[x] || (I[x] = K.createRef());
1525
1777
  });
1526
- const P = v.map((g, x) => Y.cloneElement(
1527
- g,
1778
+ const D = m.map((L, x) => K.cloneElement(
1779
+ L,
1528
1780
  {
1529
- width: L[x],
1530
- ref: E[x],
1781
+ width: g[x],
1782
+ ref: I[x],
1531
1783
  key: x,
1532
1784
  index: x
1533
1785
  }
1534
- )), k = he((w == null ? void 0 : w.scrollProgress) ?? 0), y = oe(
1786
+ )), k = Ce((b == null ? void 0 : b.scrollProgress) ?? 0), v = pe(
1535
1787
  k,
1536
1788
  [0, 1],
1537
1789
  [
1538
1790
  0,
1539
- 1 - (((q = c.current) == null ? void 0 : q.clientWidth) ?? 0) / (((z = b == null ? void 0 : b.current) == null ? void 0 : z.clientWidth) ?? 0)
1791
+ 1 - (((j = l.current) == null ? void 0 : j.clientWidth) ?? 0) / (((z = w == null ? void 0 : w.current) == null ? void 0 : z.clientWidth) ?? 0)
1540
1792
  ]
1541
- ), M = oe(
1542
- y,
1543
- (g) => `${-g * 100}%`
1544
- ), O = (g) => {
1545
- g.scrollTotal > 0 && B(g);
1793
+ ), M = pe(
1794
+ v,
1795
+ (L) => `${-L * 100}%`
1796
+ ), Y = (L) => {
1797
+ L.scrollTotal > 0 && B(L);
1546
1798
  };
1547
- $(() => {
1548
- const g = N();
1549
- I(g);
1550
- }, [w]);
1551
- const [K, Z] = R(0);
1552
- return pe(() => {
1553
- let g = i[1];
1554
- w && g > w.scrollVisible && (g = w.scrollVisible);
1555
- const x = (g + s) * P.length / l;
1556
- Z(x);
1557
- }, [c, E, w]), /* @__PURE__ */ u("div", { className: h.carousel, ref: c, ...p, children: /* @__PURE__ */ u(
1558
- ge,
1799
+ R(() => {
1800
+ const L = E();
1801
+ N(L);
1802
+ }, [b]);
1803
+ const [q, G] = S(0);
1804
+ return xe(() => {
1805
+ let L = i[1];
1806
+ b && L > b.scrollVisible && (L = b.scrollVisible);
1807
+ const x = (L + s) * D.length / a;
1808
+ G(x);
1809
+ }, [l, I, b]), /* @__PURE__ */ u("div", { className: f.carousel, ref: l, ...y, children: /* @__PURE__ */ u(
1810
+ ot,
1559
1811
  {
1560
1812
  draggable: !0,
1561
1813
  orientation: "horizontal",
1562
- onScroll: O,
1563
- scrollSize: K,
1814
+ onScroll: Y,
1815
+ scrollSize: q,
1564
1816
  children: /* @__PURE__ */ u(
1565
- U.div,
1817
+ F.div,
1566
1818
  {
1567
- className: h.track,
1568
- ref: b,
1819
+ className: f.track,
1820
+ ref: w,
1569
1821
  style: {
1570
1822
  transitionDuration: "0.5s",
1571
1823
  transitionTimingFunction: "ease-out",
1572
1824
  gap: `${s}px`,
1573
1825
  x: M
1574
1826
  },
1575
- children: P
1827
+ children: D
1576
1828
  }
1577
1829
  )
1578
1830
  }
1579
1831
  ) });
1580
- }, tt = ({
1832
+ }, ht = ({
1581
1833
  orientation: e = "horizontal",
1582
1834
  className: t,
1583
- ...r
1835
+ ...n
1584
1836
  }) => {
1585
- const o = Ve({ orientation: e, className: t });
1586
- return /* @__PURE__ */ u("hr", { className: o.divider, ...r });
1587
- }, G = [];
1837
+ const o = Oe({ orientation: e, className: t });
1838
+ return /* @__PURE__ */ u("hr", { className: o.divider, ...n });
1839
+ }, _ = [];
1588
1840
  for (let e = 0; e < 256; ++e)
1589
- G.push((e + 256).toString(16).slice(1));
1590
- function rt(e, t = 0) {
1591
- return (G[e[t + 0]] + G[e[t + 1]] + G[e[t + 2]] + G[e[t + 3]] + "-" + G[e[t + 4]] + G[e[t + 5]] + "-" + G[e[t + 6]] + G[e[t + 7]] + "-" + G[e[t + 8]] + G[e[t + 9]] + "-" + G[e[t + 10]] + G[e[t + 11]] + G[e[t + 12]] + G[e[t + 13]] + G[e[t + 14]] + G[e[t + 15]]).toLowerCase();
1841
+ _.push((e + 256).toString(16).slice(1));
1842
+ function pt(e, t = 0) {
1843
+ return (_[e[t + 0]] + _[e[t + 1]] + _[e[t + 2]] + _[e[t + 3]] + "-" + _[e[t + 4]] + _[e[t + 5]] + "-" + _[e[t + 6]] + _[e[t + 7]] + "-" + _[e[t + 8]] + _[e[t + 9]] + "-" + _[e[t + 10]] + _[e[t + 11]] + _[e[t + 12]] + _[e[t + 13]] + _[e[t + 14]] + _[e[t + 15]]).toLowerCase();
1592
1844
  }
1593
- let ae;
1594
- const nt = new Uint8Array(16);
1595
- function lt() {
1596
- if (!ae) {
1845
+ let ie;
1846
+ const yt = new Uint8Array(16);
1847
+ function gt() {
1848
+ if (!ie) {
1597
1849
  if (typeof crypto > "u" || !crypto.getRandomValues)
1598
1850
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1599
- ae = crypto.getRandomValues.bind(crypto);
1851
+ ie = crypto.getRandomValues.bind(crypto);
1600
1852
  }
1601
- return ae(nt);
1853
+ return ie(yt);
1602
1854
  }
1603
- const ot = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), de = { randomUUID: ot };
1604
- function ce(e, t, r) {
1605
- var n;
1606
- if (de.randomUUID && !e)
1607
- return de.randomUUID();
1855
+ const vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ge = { randomUUID: vt };
1856
+ function de(e, t, n) {
1857
+ var r;
1858
+ if (ge.randomUUID && !e)
1859
+ return ge.randomUUID();
1608
1860
  e = e || {};
1609
- const o = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? lt();
1861
+ const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? gt();
1610
1862
  if (o.length < 16)
1611
1863
  throw new Error("Random bytes length must be >= 16");
1612
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, rt(o);
1864
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, pt(o);
1613
1865
  }
1614
- const we = ({
1866
+ const Ee = ({
1615
1867
  variant: e = "plain",
1616
1868
  buttons: t,
1617
- className: r,
1869
+ className: n,
1618
1870
  children: o,
1619
- title: n,
1620
- text: a,
1871
+ title: r,
1872
+ text: c,
1621
1873
  position: i,
1622
1874
  targetRef: s,
1623
- ref: f,
1624
- trigger: l = ["hover", "focus"],
1625
- ...p
1875
+ ref: d,
1876
+ trigger: a = ["hover", "focus"],
1877
+ ...y
1626
1878
  }) => {
1627
1879
  if (!o && !s)
1628
1880
  throw new Error("ToolTip must have a child or a targetRef");
1629
- Array.isArray(l) || (l = [l]), t && !Array.isArray(t) && (t = [t]);
1630
- const m = j(null), c = s || m, [h, v] = R(null), [b] = R(ce()), [L, I] = R(!1), w = j(null);
1631
- $(() => {
1632
- const y = (M) => {
1633
- v(M.detail);
1881
+ Array.isArray(a) || (a = [a]), t && !Array.isArray(t) && (t = [t]);
1882
+ const p = W(null), l = s || p, [f, m] = S(null), [w] = S(de()), [g, N] = S(!1), b = W(null);
1883
+ R(() => {
1884
+ const v = (M) => {
1885
+ m(M.detail);
1634
1886
  };
1635
- return document.addEventListener("tooltip-update", y), () => {
1887
+ return document.addEventListener("tooltip-update", v), () => {
1636
1888
  document.removeEventListener(
1637
1889
  "tooltip-update",
1638
- y
1890
+ v
1639
1891
  );
1640
1892
  };
1641
- }, []), $(() => {
1642
- w.current && clearTimeout(w.current), h ? I(h === b) : w.current = setTimeout(() => {
1643
- I(!1);
1893
+ }, []), R(() => {
1894
+ b.current && clearTimeout(b.current), f ? N(f === w) : b.current = setTimeout(() => {
1895
+ N(!1);
1644
1896
  }, 1200);
1645
- }, [h, b]);
1897
+ }, [f, w]);
1646
1898
  const B = () => {
1647
- if (l.includes("hover")) {
1648
- const y = new CustomEvent("tooltip-update", { detail: b });
1649
- document.dispatchEvent(y);
1650
- }
1651
- }, N = () => {
1652
- if (l.includes("hover")) {
1653
- const y = new CustomEvent("tooltip-update", { detail: null });
1654
- document.dispatchEvent(y);
1899
+ if (a.includes("hover")) {
1900
+ const v = new CustomEvent("tooltip-update", { detail: w });
1901
+ document.dispatchEvent(v);
1655
1902
  }
1656
1903
  }, E = () => {
1657
- if (l.includes("click")) {
1658
- const y = new CustomEvent("tooltip-update", {
1659
- detail: L ? null : b
1904
+ if (a.includes("hover")) {
1905
+ const v = new CustomEvent("tooltip-update", { detail: null });
1906
+ document.dispatchEvent(v);
1907
+ }
1908
+ }, I = () => {
1909
+ if (a.includes("click")) {
1910
+ const v = new CustomEvent("tooltip-update", {
1911
+ detail: g ? null : w
1660
1912
  });
1661
- document.dispatchEvent(y);
1913
+ document.dispatchEvent(v);
1662
1914
  }
1663
1915
  }, C = () => {
1664
- if (l.includes("focus")) {
1665
- const y = new CustomEvent("tooltip-update", { detail: b });
1666
- document.dispatchEvent(y);
1916
+ if (a.includes("focus")) {
1917
+ const v = new CustomEvent("tooltip-update", { detail: w });
1918
+ document.dispatchEvent(v);
1667
1919
  }
1668
1920
  }, V = () => {
1669
- if (l.includes("focus")) {
1670
- const y = new CustomEvent("tooltip-update", { detail: null });
1671
- document.dispatchEvent(y);
1921
+ if (a.includes("focus")) {
1922
+ const v = new CustomEvent("tooltip-update", { detail: null });
1923
+ document.dispatchEvent(v);
1672
1924
  }
1673
1925
  };
1674
- $(() => {
1675
- if (c != null && c.current) {
1676
- const y = c.current;
1677
- return y.addEventListener("mouseenter", B), y.addEventListener("mouseleave", N), y.addEventListener("click", E), y.addEventListener("focus", C), y.addEventListener("blur", V), () => {
1678
- y.removeEventListener("mouseenter", B), y.removeEventListener("mouseleave", N), y.removeEventListener("click", E), y.removeEventListener("focus", C), y.removeEventListener("blur", V);
1926
+ R(() => {
1927
+ if (l != null && l.current) {
1928
+ const v = l.current;
1929
+ return v.addEventListener("mouseenter", B), v.addEventListener("mouseleave", E), v.addEventListener("click", I), v.addEventListener("focus", C), v.addEventListener("blur", V), () => {
1930
+ v.removeEventListener("mouseenter", B), v.removeEventListener("mouseleave", E), v.removeEventListener("click", I), v.removeEventListener("focus", C), v.removeEventListener("blur", V);
1679
1931
  };
1680
1932
  }
1681
- }, [c, l, b, L]);
1682
- const P = !s && ee(o) ? le(o, { ref: m }) : o;
1683
- if (!i && typeof window < "u" && c != null && c.current && !i) {
1684
- const y = c.current.getBoundingClientRect(), M = window.innerWidth, O = window.innerHeight, K = y.left / M, Z = y.top / O;
1685
- e === "plain" ? K < 1 / 3 ? i = "right" : K > 2 / 3 ? i = "left" : i = Z > 0.5 ? "top" : "bottom" : K < 1 / 2 && Z < 1 / 2 ? i = "bottom-right" : K > 1 / 2 && Z < 1 / 2 ? i = "bottom-left" : K > 1 / 2 && Z > 1 / 2 ? i = "top-left" : K < 1 / 2 && Z > 1 / 2 && (i = "top-right");
1933
+ }, [l, a, w, g]);
1934
+ const D = !s && te(o) ? oe(o, { ref: p }) : o;
1935
+ if (!i && typeof window < "u" && l != null && l.current && !i) {
1936
+ const v = l.current.getBoundingClientRect(), M = window.innerWidth, Y = window.innerHeight, q = v.left / M, G = v.top / Y;
1937
+ e === "plain" ? q < 1 / 3 ? i = "right" : q > 2 / 3 ? i = "left" : i = G > 0.5 ? "top" : "bottom" : q < 1 / 2 && G < 1 / 2 ? i = "bottom-right" : q > 1 / 2 && G < 1 / 2 ? i = "bottom-left" : q > 1 / 2 && G > 1 / 2 ? i = "top-left" : q < 1 / 2 && G > 1 / 2 && (i = "top-right");
1686
1938
  }
1687
- const k = Ye({
1939
+ const k = tt({
1688
1940
  variant: e,
1689
1941
  buttons: t,
1690
- className: r,
1691
- title: n,
1692
- text: a,
1942
+ className: n,
1943
+ title: r,
1944
+ text: c,
1693
1945
  position: i,
1694
- trigger: l,
1946
+ trigger: a,
1695
1947
  targetRef: s,
1696
1948
  children: o
1697
1949
  });
1698
- return /* @__PURE__ */ D(te, { children: [
1699
- P,
1700
- /* @__PURE__ */ u(A, { children: L && /* @__PURE__ */ u(Qe, { targetRef: c, children: /* @__PURE__ */ u(
1701
- U.div,
1950
+ return /* @__PURE__ */ A(T, { children: [
1951
+ D,
1952
+ /* @__PURE__ */ u(Q, { children: g && /* @__PURE__ */ u(at, { targetRef: l, children: /* @__PURE__ */ u(
1953
+ F.div,
1702
1954
  {
1703
- initial: { opacity: h ? 1 : 0 },
1955
+ initial: { opacity: f ? 1 : 0 },
1704
1956
  animate: { opacity: 1 },
1705
- transition: { duration: h ? 0 : 0.3 },
1706
- exit: { opacity: h ? 1 : 0 },
1957
+ transition: { duration: f ? 0 : 0.3 },
1958
+ exit: { opacity: f ? 1 : 0 },
1707
1959
  className: k.toolTip,
1708
- ...p,
1960
+ ...y,
1709
1961
  onMouseEnter: B,
1710
- onMouseLeave: N,
1711
- children: /* @__PURE__ */ D(
1712
- U.div,
1962
+ onMouseLeave: E,
1963
+ children: /* @__PURE__ */ A(
1964
+ F.div,
1713
1965
  {
1714
1966
  className: k.container,
1715
1967
  layoutId: "tool-tip",
@@ -1719,14 +1971,14 @@ const we = ({
1719
1971
  damping: 20
1720
1972
  },
1721
1973
  children: [
1722
- n && /* @__PURE__ */ u("div", { className: k.subHead, children: n }),
1723
- /* @__PURE__ */ u("div", { className: k.supportingText, children: a }),
1724
- t && /* @__PURE__ */ u("div", { className: k.actions, children: Array.isArray(t) && t.map((y, M) => /* @__PURE__ */ u(
1725
- ze,
1974
+ r && /* @__PURE__ */ u("div", { className: k.subHead, children: r }),
1975
+ /* @__PURE__ */ u("div", { className: k.supportingText, children: c }),
1976
+ t && /* @__PURE__ */ u("div", { className: k.actions, children: Array.isArray(t) && t.map((v, M) => /* @__PURE__ */ u(
1977
+ dt,
1726
1978
  {
1727
1979
  size: "small",
1728
1980
  variant: "text",
1729
- ...y
1981
+ ...v
1730
1982
  },
1731
1983
  M
1732
1984
  )) })
@@ -1736,46 +1988,46 @@ const we = ({
1736
1988
  }
1737
1989
  ) }) })
1738
1990
  ] });
1739
- }, fe = ({
1991
+ }, ve = ({
1740
1992
  className: e,
1741
1993
  label: t,
1742
- variant: r = "primary",
1994
+ variant: n = "primary",
1743
1995
  size: o = "medium",
1744
- href: n,
1745
- type: a,
1996
+ href: r,
1997
+ type: c,
1746
1998
  icon: i,
1747
1999
  isExtended: s = !1,
1748
- ref: f,
1749
- transition: l,
1750
- children: p,
1751
- ...m
2000
+ ref: d,
2001
+ transition: a,
2002
+ children: y,
2003
+ ...p
1752
2004
  }) => {
1753
- if (p && (t = p), !t)
2005
+ if (y && (t = y), !t)
1754
2006
  throw new Error(
1755
2007
  "FAB component requires either a label prop or children content"
1756
2008
  );
1757
- const c = n ? "a" : "button", h = je({
1758
- href: n,
2009
+ const l = r ? "a" : "button", f = qe({
2010
+ href: r,
1759
2011
  icon: i,
1760
2012
  isExtended: s,
1761
2013
  label: t,
1762
2014
  size: o,
1763
- variant: r,
2015
+ variant: n,
1764
2016
  className: e,
1765
- transition: l,
2017
+ transition: a,
1766
2018
  children: t
1767
2019
  });
1768
- l = { duration: 0.3, ...l };
1769
- const v = j(null), b = f || v, L = {
2020
+ a = { duration: 0.3, ...a };
2021
+ const m = W(null), w = d || m, g = {
1770
2022
  visible: {
1771
2023
  width: "auto",
1772
2024
  marginLeft: 12,
1773
2025
  opacity: 1,
1774
2026
  transition: {
1775
- ...l,
2027
+ ...a,
1776
2028
  opacity: {
1777
- duration: l.duration / 2,
1778
- delay: l.duration - l.duration / 2
2029
+ duration: a.duration / 2,
2030
+ delay: a.duration - a.duration / 2
1779
2031
  }
1780
2032
  }
1781
2033
  },
@@ -1784,177 +2036,177 @@ const we = ({
1784
2036
  marginLeft: 0,
1785
2037
  opacity: 0,
1786
2038
  transition: {
1787
- ...l,
2039
+ ...a,
1788
2040
  marginLeft: {
1789
- duration: l.duration / 2,
1790
- delay: l.duration - l.duration / 2
2041
+ duration: a.duration / 2,
2042
+ delay: a.duration - a.duration / 2
1791
2043
  }
1792
2044
  }
1793
2045
  }
1794
2046
  };
1795
- return /* @__PURE__ */ D(
1796
- c,
2047
+ return /* @__PURE__ */ A(
2048
+ l,
1797
2049
  {
1798
- ...m,
1799
- ref: b,
1800
- href: n,
2050
+ ...p,
2051
+ ref: w,
2052
+ href: r,
1801
2053
  "aria-label": s ? void 0 : t,
1802
- className: h.fab,
2054
+ className: f.fab,
1803
2055
  children: [
1804
2056
  /* @__PURE__ */ u(
1805
- we,
2057
+ Ee,
1806
2058
  {
1807
2059
  trigger: s ? null : void 0,
1808
2060
  text: t,
1809
- targetRef: b
2061
+ targetRef: w
1810
2062
  }
1811
2063
  ),
1812
- /* @__PURE__ */ u("span", { className: h.stateLayer, children: /* @__PURE__ */ u(
1813
- ne,
2064
+ /* @__PURE__ */ u("span", { className: f.stateLayer, children: /* @__PURE__ */ u(
2065
+ re,
1814
2066
  {
1815
- colorName: d({
1816
- primary: r == "surface",
1817
- "on-primary-container": r == "primary",
1818
- "on-secondary-container": r == "secondary",
1819
- "on-tertiary-container": r == "tertiary"
2067
+ colorName: h({
2068
+ primary: n == "surface",
2069
+ "on-primary-container": n == "primary",
2070
+ "on-secondary-container": n == "secondary",
2071
+ "on-tertiary-container": n == "tertiary"
1820
2072
  }),
1821
- triggerRef: b
2073
+ triggerRef: w
1822
2074
  }
1823
2075
  ) }),
1824
- /* @__PURE__ */ u(Q, { icon: i, className: h.icon }),
1825
- /* @__PURE__ */ u(A, { children: s && /* @__PURE__ */ u(
1826
- U.span,
2076
+ /* @__PURE__ */ u(Z, { icon: i, className: f.icon }),
2077
+ /* @__PURE__ */ u(Q, { children: s && /* @__PURE__ */ u(
2078
+ F.span,
1827
2079
  {
1828
- variants: L,
2080
+ variants: g,
1829
2081
  initial: "hidden",
1830
2082
  animate: "visible",
1831
2083
  exit: "hidden",
1832
- className: h.label,
2084
+ className: f.label,
1833
2085
  children: t
1834
2086
  }
1835
2087
  ) })
1836
2088
  ]
1837
2089
  }
1838
2090
  );
1839
- }, ie = ({
2091
+ }, fe = ({
1840
2092
  variant: e = "standard",
1841
2093
  href: t,
1842
- disabled: r = !1,
2094
+ disabled: n = !1,
1843
2095
  type: o = "button",
1844
- title: n,
1845
- label: a,
2096
+ title: r,
2097
+ label: c,
1846
2098
  onToggle: i,
1847
2099
  activated: s = !1,
1848
- onClick: f,
1849
- icon: l,
1850
- size: p = "medium",
1851
- iconSelected: m,
1852
- className: c,
1853
- ref: h,
1854
- width: v = "default",
1855
- shape: b = "rounded",
1856
- allowShapeTransformation: L = !0,
1857
- transition: I,
1858
- children: w,
2100
+ onClick: d,
2101
+ icon: a,
2102
+ size: y = "medium",
2103
+ iconSelected: p,
2104
+ className: l,
2105
+ ref: f,
2106
+ width: m = "default",
2107
+ shape: w = "rounded",
2108
+ allowShapeTransformation: g = !0,
2109
+ transition: N,
2110
+ children: b,
1859
2111
  ...B
1860
2112
  }) => {
1861
- if (w && (a = w), !a)
2113
+ if (b && (c = b), !c)
1862
2114
  throw new Error(
1863
2115
  "IconButton component requires either a label prop or children content to provide an accessible aria-label"
1864
2116
  );
1865
- n || (n = a);
1866
- const [N, E] = Y.useState(s);
2117
+ r || (r = c);
2118
+ const [E, I] = K.useState(s);
1867
2119
  let C;
1868
2120
  i ? i && (C = (M) => {
1869
- r && M.preventDefault(), E(!N), i(!!N);
1870
- }, l = N && m || l) : C = (M) => {
1871
- r && M.preventDefault(), f && f(M);
1872
- }, $(() => {
1873
- E(s);
2121
+ n && M.preventDefault(), I(!E), i(!!E);
2122
+ }, a = E && p || a) : C = (M) => {
2123
+ n && M.preventDefault(), d && d(M);
2124
+ }, R(() => {
2125
+ I(s);
1874
2126
  }, [s]);
1875
- const V = t ? "a" : "button", P = Ue({
1876
- transition: I,
1877
- shape: b,
1878
- allowShapeTransformation: L,
1879
- width: v,
2127
+ const V = t ? "a" : "button", D = _e({
2128
+ transition: N,
2129
+ shape: w,
2130
+ allowShapeTransformation: g,
2131
+ width: m,
1880
2132
  href: t,
1881
- activated: N,
1882
- label: a,
1883
- iconSelected: m,
1884
- isActive: N,
2133
+ activated: E,
2134
+ label: c,
2135
+ iconSelected: p,
2136
+ isActive: E,
1885
2137
  onToggle: i,
1886
- disabled: r,
1887
- icon: l,
2138
+ disabled: n,
2139
+ icon: a,
1888
2140
  variant: e,
1889
- className: c,
1890
- size: p,
1891
- children: a,
2141
+ className: l,
2142
+ size: y,
2143
+ children: c,
1892
2144
  ...B
1893
- }), k = j(null), y = h || k;
1894
- return I = { duration: 0.3, ...I }, /* @__PURE__ */ D(
2145
+ }), k = W(null), v = f || k;
2146
+ return N = { duration: 0.3, ...N }, /* @__PURE__ */ A(
1895
2147
  V,
1896
2148
  {
1897
- disabled: r,
2149
+ disabled: n,
1898
2150
  href: t,
1899
- style: { transition: I.duration + "s" },
1900
- className: P.iconButton,
1901
- "aria-label": a,
2151
+ style: { transition: N.duration + "s" },
2152
+ className: D.iconButton,
2153
+ "aria-label": c,
1902
2154
  ...B,
1903
2155
  title: void 0,
1904
2156
  onClick: C,
1905
- ref: y,
2157
+ ref: v,
1906
2158
  children: [
1907
2159
  /* @__PURE__ */ u(
1908
- we,
2160
+ Ee,
1909
2161
  {
1910
- targetRef: y,
1911
- trigger: r ? null : void 0,
1912
- text: n
2162
+ targetRef: v,
2163
+ trigger: n ? null : void 0,
2164
+ text: r
1913
2165
  }
1914
2166
  ),
1915
- /* @__PURE__ */ u("div", { className: P.touchTarget }),
2167
+ /* @__PURE__ */ u("div", { className: D.touchTarget }),
1916
2168
  /* @__PURE__ */ u(
1917
2169
  "div",
1918
2170
  {
1919
- className: P.stateLayer,
1920
- style: { transition: I.duration + "s" },
1921
- children: !r && /* @__PURE__ */ u(
1922
- ne,
2171
+ className: D.stateLayer,
2172
+ style: { transition: N.duration + "s" },
2173
+ children: !n && /* @__PURE__ */ u(
2174
+ re,
1923
2175
  {
1924
- colorName: d(
2176
+ colorName: h(
1925
2177
  e === "standard" && {
1926
- "on-surface-variant": !N,
1927
- primary: N
2178
+ "on-surface-variant": !E,
2179
+ primary: E
1928
2180
  },
1929
2181
  e === "filled" && {
1930
- primary: !N && !!i,
1931
- "inverse-on-surface": N || !i
2182
+ primary: !E && !!i,
2183
+ "inverse-on-surface": E || !i
1932
2184
  },
1933
2185
  e === "tonal" && {
1934
- "on-surface-variant": !N && !!i,
1935
- "on-secondary-container": N || !i
2186
+ "on-surface-variant": !E && !!i,
2187
+ "on-secondary-container": E || !i
1936
2188
  },
1937
2189
  e === "outlined" && {
1938
- "on-surface-variant": !N,
1939
- "on-primary": N
2190
+ "on-surface-variant": !E,
2191
+ "on-primary": E
1940
2192
  }
1941
2193
  ),
1942
- triggerRef: y
2194
+ triggerRef: v
1943
2195
  }
1944
2196
  )
1945
2197
  }
1946
2198
  ),
1947
- l && /* @__PURE__ */ u(Q, { icon: l, className: P.icon })
2199
+ a && /* @__PURE__ */ u(Z, { icon: a, className: D.icon })
1948
2200
  ]
1949
2201
  }
1950
2202
  );
1951
- }, St = ({
2203
+ }, Yt = ({
1952
2204
  className: e,
1953
2205
  valueFormatter: t,
1954
- step: r = 10,
2206
+ step: n = 10,
1955
2207
  name: o,
1956
- value: n = 0,
1957
- min: a = 0,
2208
+ value: r = 0,
2209
+ min: c = 0,
1958
2210
  max: i = 100,
1959
2211
  marks: s = [
1960
2212
  {
@@ -1966,99 +2218,99 @@ const we = ({
1966
2218
  label: "100"
1967
2219
  }
1968
2220
  ],
1969
- ref: f,
1970
- onChange: l,
1971
- ...p
2221
+ ref: d,
2222
+ onChange: a,
2223
+ ...y
1972
2224
  }) => {
1973
- const m = (g) => {
1974
- const x = h(), W = c();
1975
- return g === 1 / 0 ? 100 : g === -1 / 0 ? 0 : (g - x) / (W - x) * 100;
1976
- }, c = (g = !1) => g ? i : i == 1 / 0 ? s[(s == null ? void 0 : s.length) - 1].value : i, h = (g = !1) => g ? a : a == -1 / 0 ? s[0].value : a, v = (g) => {
1977
- const x = h(!1);
1978
- return (c(!1) - x) * g / 100 + x;
1979
- }, [b, L] = R(!1), I = j(null), w = f || I, [B, N] = R(n), [E, C] = R(m(n)), [V, P] = R(!1), k = (g) => {
1980
- P(!0), L(!0), O(g);
1981
- }, y = () => {
1982
- P(!1), L(!1);
2225
+ const p = (L) => {
2226
+ const x = f(), P = l();
2227
+ return L === 1 / 0 ? 100 : L === -1 / 0 ? 0 : (L - x) / (P - x) * 100;
2228
+ }, l = (L = !1) => L ? i : i == 1 / 0 ? s[(s == null ? void 0 : s.length) - 1].value : i, f = (L = !1) => L ? c : c == -1 / 0 ? s[0].value : c, m = (L) => {
2229
+ const x = f(!1);
2230
+ return (l(!1) - x) * L / 100 + x;
2231
+ }, [w, g] = S(!1), N = W(null), b = d || N, [B, E] = S(r), [I, C] = S(p(r)), [V, D] = S(!1), k = (L) => {
2232
+ D(!0), g(!0), Y(L);
2233
+ }, v = () => {
2234
+ D(!1), g(!1);
1983
2235
  };
1984
- $(() => (V ? (window.addEventListener("mouseup", y), window.addEventListener("mousemove", O), window.addEventListener("touchend", y), window.addEventListener("touchmove", O)) : (window.removeEventListener("mouseup", y), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", y), window.removeEventListener("touchmove", O)), () => {
1985
- window.removeEventListener("mouseup", y), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", y), window.removeEventListener("touchmove", O);
2236
+ R(() => (V ? (window.addEventListener("mouseup", v), window.addEventListener("mousemove", Y), window.addEventListener("touchend", v), window.addEventListener("touchmove", Y)) : (window.removeEventListener("mouseup", v), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", v), window.removeEventListener("touchmove", Y)), () => {
2237
+ window.removeEventListener("mouseup", v), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", v), window.removeEventListener("touchmove", Y);
1986
2238
  }), [V]);
1987
- const M = He({
2239
+ const M = Je({
1988
2240
  className: e,
1989
- isChanging: b,
2241
+ isChanging: w,
1990
2242
  marks: s,
1991
2243
  max: i,
1992
- min: a,
2244
+ min: c,
1993
2245
  name: o,
1994
- step: r,
2246
+ step: n,
1995
2247
  value: B,
1996
2248
  valueFormatter: t,
1997
- onChange: l
1998
- }), O = (g) => {
1999
- const x = w == null ? void 0 : w.current;
2249
+ onChange: a
2250
+ }), Y = (L) => {
2251
+ const x = b == null ? void 0 : b.current;
2000
2252
  if (x) {
2001
- const W = x.getBoundingClientRect().left, S = ((g.type === "touchmove" || g.type === "touchstart" ? g.touches[0].clientX : g.clientX) - W) / x.offsetWidth * 100;
2002
- K({ pourcent: S });
2253
+ const P = x.getBoundingClientRect().left, $ = ((L.type === "touchmove" || L.type === "touchstart" ? L.touches[0].clientX : L.clientX) - P) / x.offsetWidth * 100;
2254
+ q({ pourcent: $ });
2003
2255
  }
2004
- }, K = ({
2005
- pourcent: g,
2256
+ }, q = ({
2257
+ pourcent: L,
2006
2258
  value: x
2007
2259
  }) => {
2008
- if (g) {
2009
- if (g >= 100) {
2010
- N(c(!0)), C(100);
2260
+ if (L) {
2261
+ if (L >= 100) {
2262
+ E(l(!0)), C(100);
2011
2263
  return;
2012
2264
  }
2013
- if (g <= 0) {
2014
- N(h(!0)), C(0);
2265
+ if (L <= 0) {
2266
+ E(f(!0)), C(0);
2015
2267
  return;
2016
2268
  }
2017
- x = v(g), x == h() && (x = h(!0)), x == c() && (x = c(!0));
2269
+ x = m(L), x == f() && (x = f(!0)), x == l() && (x = l(!0));
2018
2270
  } else if (x != null) {
2019
- if (x >= c()) {
2020
- N(c(!0)), C(100);
2271
+ if (x >= l()) {
2272
+ E(l(!0)), C(100);
2021
2273
  return;
2022
2274
  }
2023
- if (x <= h()) {
2024
- N(h(!0)), C(0);
2275
+ if (x <= f()) {
2276
+ E(f(!0)), C(0);
2025
2277
  return;
2026
2278
  }
2027
- g = m(x);
2279
+ L = p(x);
2028
2280
  } else
2029
2281
  return;
2030
- r != null ? x = Math.round((x - h()) / r) * r + h() : s && (x = s.reduce((W, F, S) => {
2031
- let X = F.value === 1 / 0 ? c() : F.value === -1 / 0 ? h() : F.value, H = W.value === 1 / 0 ? c() : W.value === -1 / 0 ? h() : W.value;
2032
- return X = Math.abs(X - x), H = Math.abs(H - x), X < H ? F : W;
2033
- }).value), x >= c() && (x = c(!0)), x <= h() && (x = h(!0)), g = m(x), N(x), C(g), l && l(x);
2034
- }, [Z, q] = R(0);
2035
- return $(() => {
2036
- const g = () => {
2037
- w.current && q(w.current.offsetWidth);
2282
+ n != null ? x = Math.round((x - f()) / n) * n + f() : s && (x = s.reduce((P, H, $) => {
2283
+ let U = H.value === 1 / 0 ? l() : H.value === -1 / 0 ? f() : H.value, X = P.value === 1 / 0 ? l() : P.value === -1 / 0 ? f() : P.value;
2284
+ return U = Math.abs(U - x), X = Math.abs(X - x), U < X ? H : P;
2285
+ }).value), x >= l() && (x = l(!0)), x <= f() && (x = f(!0)), L = p(x), E(x), C(L), a && a(x);
2286
+ }, [G, j] = S(0);
2287
+ return R(() => {
2288
+ const L = () => {
2289
+ b.current && j(b.current.offsetWidth);
2038
2290
  };
2039
- return g(), window.addEventListener("resize", g), () => {
2040
- window.removeEventListener("resize", g);
2291
+ return L(), window.addEventListener("resize", L), () => {
2292
+ window.removeEventListener("resize", L);
2041
2293
  };
2042
- }, []), /* @__PURE__ */ D(
2294
+ }, []), /* @__PURE__ */ A(
2043
2295
  "div",
2044
2296
  {
2045
2297
  tabIndex: 0,
2046
- onKeyDown: (g) => {
2047
- switch (g.key) {
2298
+ onKeyDown: (L) => {
2299
+ switch (L.key) {
2048
2300
  case "ArrowRight":
2049
- if (r)
2050
- K({ value: B + r });
2301
+ if (n)
2302
+ q({ value: B + n });
2051
2303
  else if (s) {
2052
- const x = s.find((W) => W.value > B);
2053
- x && K({ value: x.value });
2304
+ const x = s.find((P) => P.value > B);
2305
+ x && q({ value: x.value });
2054
2306
  }
2055
2307
  break;
2056
2308
  case "ArrowLeft":
2057
- if (r)
2058
- K({ value: B - r });
2309
+ if (n)
2310
+ q({ value: B - n });
2059
2311
  else if (s) {
2060
- const x = s.slice(0).reverse().find((W, F, S) => B === 1 / 0 ? F === 1 : W.value < B);
2061
- x && K({ value: x.value });
2312
+ const x = s.slice(0).reverse().find((P, H, $) => B === 1 / 0 ? H === 1 : P.value < B);
2313
+ x && q({ value: x.value });
2062
2314
  }
2063
2315
  break;
2064
2316
  default:
@@ -2066,28 +2318,28 @@ const we = ({
2066
2318
  }
2067
2319
  },
2068
2320
  role: "slider",
2069
- "aria-valuemin": h(!0),
2070
- "aria-valuemax": c(!0),
2321
+ "aria-valuemin": f(!0),
2322
+ "aria-valuemax": l(!0),
2071
2323
  "aria-valuenow": B,
2072
2324
  "aria-valuetext": B.toString(),
2073
2325
  className: M.slider,
2074
2326
  onMouseDown: k,
2075
- onClick: O,
2076
- ref: w,
2327
+ onClick: Y,
2328
+ ref: b,
2077
2329
  onTouchStart: k,
2078
- onDragStart: (g) => g.preventDefault(),
2079
- ...p,
2330
+ onDragStart: (L) => L.preventDefault(),
2331
+ ...y,
2080
2332
  children: [
2081
2333
  /* @__PURE__ */ u("input", { type: "hidden", name: o, value: B }),
2082
2334
  /* @__PURE__ */ u(
2083
2335
  "div",
2084
2336
  {
2085
2337
  className: M.activeTrack,
2086
- style: { flex: E / 100 }
2338
+ style: { flex: I / 100 }
2087
2339
  }
2088
2340
  ),
2089
- /* @__PURE__ */ u("div", { className: M.handle, children: /* @__PURE__ */ u(A, { children: b && /* @__PURE__ */ u(
2090
- U.div,
2341
+ /* @__PURE__ */ u("div", { className: M.handle, children: /* @__PURE__ */ u(Q, { children: w && /* @__PURE__ */ u(
2342
+ F.div,
2091
2343
  {
2092
2344
  className: M.valueIndicator,
2093
2345
  initial: "hidden",
@@ -2110,25 +2362,25 @@ const we = ({
2110
2362
  "div",
2111
2363
  {
2112
2364
  className: M.inactiveTrack,
2113
- style: { flex: 1 - E / 100 }
2365
+ style: { flex: 1 - I / 100 }
2114
2366
  }
2115
2367
  ),
2116
2368
  /* @__PURE__ */ u(
2117
2369
  "div",
2118
2370
  {
2119
2371
  className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
2120
- children: s && s.map((g, x) => {
2121
- let W = null;
2122
- const F = (b ? 9 : 10) / Z * 100, S = m(g.value);
2123
- return S <= E - F ? W = !0 : S >= E + F && (W = !1), /* @__PURE__ */ u(
2372
+ children: s && s.map((L, x) => {
2373
+ let P = null;
2374
+ const H = (w ? 9 : 10) / G * 100, $ = p(L.value);
2375
+ return $ <= I - H ? P = !0 : $ >= I + H && (P = !1), /* @__PURE__ */ u(
2124
2376
  "div",
2125
2377
  {
2126
- className: d(M.dot, {
2127
- "bg-primary-container": W != null && W,
2128
- "bg-primary": W != null && !W
2378
+ className: h(M.dot, {
2379
+ "bg-primary-container": P != null && P,
2380
+ "bg-primary": P != null && !P
2129
2381
  }),
2130
2382
  style: {
2131
- left: `${m(g.value)}%`
2383
+ left: `${p(L.value)}%`
2132
2384
  }
2133
2385
  },
2134
2386
  x
@@ -2141,160 +2393,160 @@ const we = ({
2141
2393
  );
2142
2394
  };
2143
2395
  /*!
2144
- * Font Awesome Free 7.0.1 by @fontawesome - https://fontawesome.com
2396
+ * Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
2145
2397
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2146
2398
  * Copyright 2025 Fonticons, Inc.
2147
2399
  */
2148
- var at = {
2400
+ var wt = {
2149
2401
  prefix: "fas",
2150
2402
  iconName: "circle-exclamation",
2151
2403
  icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]
2152
- }, ue = {
2404
+ }, me = {
2153
2405
  prefix: "fas",
2154
2406
  iconName: "xmark",
2155
2407
  icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
2156
- }, st = {
2408
+ }, xt = {
2157
2409
  prefix: "fas",
2158
2410
  iconName: "bars",
2159
2411
  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"]
2160
2412
  };
2161
- const Rt = ({
2413
+ const jt = ({
2162
2414
  variant: e = "standard",
2163
2415
  className: t,
2164
- children: r,
2416
+ children: n,
2165
2417
  title: o,
2166
- position: n = "right",
2167
- extended: a,
2418
+ position: r = "right",
2419
+ extended: c,
2168
2420
  divider: i,
2169
2421
  onExtendedChange: s,
2170
- closeIcon: f = ue,
2171
- transition: l,
2172
- ...p
2422
+ closeIcon: d = me,
2423
+ transition: a,
2424
+ ...y
2173
2425
  }) => {
2174
- l = { duration: 0.3, ...l };
2175
- const [m, c] = R(a ?? !0), h = Xe({
2176
- transition: l,
2426
+ a = { duration: 0.3, ...a };
2427
+ const [p, l] = S(c ?? !0), f = Ge({
2428
+ transition: a,
2177
2429
  title: o,
2178
- position: n,
2179
- closeIcon: f,
2430
+ position: r,
2431
+ closeIcon: d,
2180
2432
  className: t,
2181
- children: r,
2433
+ children: n,
2182
2434
  onExtendedChange: s,
2183
2435
  divider: i,
2184
- isExtended: m,
2185
- extended: m,
2436
+ isExtended: p,
2437
+ extended: p,
2186
2438
  variant: e
2187
2439
  });
2188
- $(() => {
2189
- s == null || s(m ?? !1);
2190
- }, [m]), $(() => {
2191
- a != null && c(a);
2192
- }, [a]);
2193
- const v = {
2440
+ R(() => {
2441
+ s == null || s(p ?? !1);
2442
+ }, [p]), R(() => {
2443
+ c != null && l(c);
2444
+ }, [c]);
2445
+ const m = {
2194
2446
  close: {
2195
2447
  width: 0
2196
2448
  },
2197
2449
  open: {
2198
2450
  width: "auto"
2199
2451
  }
2200
- }, b = () => /* @__PURE__ */ D(te, { children: [
2201
- /* @__PURE__ */ u(A, { children: e == "modal" && m && /* @__PURE__ */ u(
2202
- U.div,
2452
+ }, w = () => /* @__PURE__ */ A(T, { children: [
2453
+ /* @__PURE__ */ u(Q, { children: e == "modal" && p && /* @__PURE__ */ u(
2454
+ F.div,
2203
2455
  {
2204
2456
  initial: { opacity: 0 },
2205
2457
  animate: { opacity: 1 },
2206
2458
  exit: { opacity: 0 },
2207
- transition: l,
2208
- onClick: () => c(!1),
2209
- className: h.overlay
2459
+ transition: a,
2460
+ onClick: () => l(!1),
2461
+ className: f.overlay
2210
2462
  }
2211
2463
  ) }),
2212
- /* @__PURE__ */ u(A, { children: m && /* @__PURE__ */ D(
2464
+ /* @__PURE__ */ u(Q, { children: p && /* @__PURE__ */ A(
2213
2465
  "div",
2214
2466
  {
2215
- ...p,
2216
- className: h.slideSheet,
2217
- style: { transition: l.duration + "s" },
2467
+ ...y,
2468
+ className: f.slideSheet,
2469
+ style: { transition: a.duration + "s" },
2218
2470
  children: [
2219
- /* @__PURE__ */ D(
2220
- U.div,
2471
+ /* @__PURE__ */ A(
2472
+ F.div,
2221
2473
  {
2222
- variants: v,
2223
- initial: a === !1 ? "open" : "close",
2474
+ variants: m,
2475
+ initial: c === !1 ? "open" : "close",
2224
2476
  animate: "open",
2225
2477
  exit: "close",
2226
- className: h.container,
2478
+ className: f.container,
2227
2479
  children: [
2228
- /* @__PURE__ */ D("div", { className: h.header, children: [
2229
- o && /* @__PURE__ */ u("p", { className: h.title, children: o }),
2480
+ /* @__PURE__ */ A("div", { className: f.header, children: [
2481
+ o && /* @__PURE__ */ u("p", { className: f.title, children: o }),
2230
2482
  /* @__PURE__ */ u(
2231
- ie,
2483
+ fe,
2232
2484
  {
2233
2485
  size: "small",
2234
2486
  label: "close",
2235
- icon: f,
2236
- onClick: () => c(!1),
2237
- className: h.closeButton
2487
+ icon: d,
2488
+ onClick: () => l(!1),
2489
+ className: f.closeButton
2238
2490
  }
2239
2491
  )
2240
2492
  ] }),
2241
2493
  /* @__PURE__ */ u(
2242
2494
  "div",
2243
2495
  {
2244
- className: h.content,
2245
- style: { transition: l.duration + "s" },
2246
- children: r
2496
+ className: f.content,
2497
+ style: { transition: a.duration + "s" },
2498
+ children: n
2247
2499
  }
2248
2500
  )
2249
2501
  ]
2250
2502
  }
2251
2503
  ),
2252
- (i == null && e == "standard" ? !0 : i) && /* @__PURE__ */ u(tt, { className: h.divider, orientation: "vertical" })
2504
+ (i == null && e == "standard" ? !0 : i) && /* @__PURE__ */ u(ht, { className: f.divider, orientation: "vertical" })
2253
2505
  ]
2254
2506
  }
2255
2507
  ) })
2256
2508
  ] });
2257
- return e == "modal" ? ye(b(), document.body) : b();
2258
- }, Ct = ({
2509
+ return e == "modal" ? be(w(), document.body) : w();
2510
+ }, Ot = ({
2259
2511
  message: e,
2260
2512
  className: t,
2261
- duration: r,
2262
- closeIcon: o = ue,
2263
- onClose: n,
2264
- ...a
2513
+ duration: n,
2514
+ closeIcon: o = me,
2515
+ onClose: r,
2516
+ ...c
2265
2517
  }) => {
2266
- const [i, s] = R(!0), f = Oe({
2518
+ const [i, s] = S(!0), d = Ze({
2267
2519
  className: t,
2268
2520
  closeIcon: o,
2269
- duration: r,
2521
+ duration: n,
2270
2522
  isVisible: i,
2271
- onClose: n,
2523
+ onClose: r,
2272
2524
  message: e
2273
2525
  });
2274
- $(() => {
2275
- r && setTimeout(() => {
2276
- l();
2277
- }, r);
2278
- }, [r]);
2279
- const l = () => {
2280
- s(!1), n == null || n();
2526
+ R(() => {
2527
+ n && setTimeout(() => {
2528
+ a();
2529
+ }, n);
2530
+ }, [n]);
2531
+ const a = () => {
2532
+ s(!1), r == null || r();
2281
2533
  };
2282
- return /* @__PURE__ */ u(A, { children: i && /* @__PURE__ */ u(
2283
- U.div,
2534
+ return /* @__PURE__ */ u(Q, { children: i && /* @__PURE__ */ u(
2535
+ F.div,
2284
2536
  {
2285
2537
  initial: { height: 0 },
2286
2538
  animate: { height: "auto" },
2287
2539
  exit: { height: 0 },
2288
2540
  transition: { duration: 0.1 },
2289
- className: f.snackbar,
2290
- ...a,
2291
- children: /* @__PURE__ */ D("div", { className: f.container, children: [
2292
- /* @__PURE__ */ u("p", { className: f.supportingText, children: e }),
2541
+ className: d.snackbar,
2542
+ ...c,
2543
+ children: /* @__PURE__ */ A("div", { className: d.container, children: [
2544
+ /* @__PURE__ */ u("p", { className: d.supportingText, children: e }),
2293
2545
  /* @__PURE__ */ u(
2294
- ie,
2546
+ fe,
2295
2547
  {
2296
- onClick: () => l(),
2297
- className: f.icon,
2548
+ onClick: () => a(),
2549
+ className: d.icon,
2298
2550
  icon: o,
2299
2551
  label: "close the snackbar"
2300
2552
  }
@@ -2302,144 +2554,144 @@ const Rt = ({
2302
2554
  ] })
2303
2555
  }
2304
2556
  ) });
2305
- }, Mt = ({
2557
+ }, qt = ({
2306
2558
  selected: e = !1,
2307
2559
  className: t,
2308
- activeIcon: r,
2560
+ activeIcon: n,
2309
2561
  disabled: o = !1,
2310
- inactiveIcon: n,
2311
- onChange: a,
2562
+ inactiveIcon: r,
2563
+ onChange: c,
2312
2564
  onClick: i,
2313
2565
  onKeyDown: s,
2314
- ref: f,
2315
- ...l
2566
+ ref: d,
2567
+ ...a
2316
2568
  }) => {
2317
- const [p, m] = R(e), c = (w) => {
2318
- o || (v(), i && i(w));
2319
- }, h = (w) => {
2320
- o || ((w.key === " " || w.key === "Enter") && (w.preventDefault(), v()), s && s(w));
2321
- }, v = () => {
2322
- m(!p), a == null || a(!p);
2323
- }, b = qe({
2569
+ const [y, p] = S(e), l = (b) => {
2570
+ o || (m(), i && i(b));
2571
+ }, f = (b) => {
2572
+ o || ((b.key === " " || b.key === "Enter") && (b.preventDefault(), m()), s && s(b));
2573
+ }, m = () => {
2574
+ p(!y), c == null || c(!y);
2575
+ }, w = Qe({
2324
2576
  className: t,
2325
- isSelected: p,
2326
- activeIcon: r,
2327
- inactiveIcon: n,
2577
+ isSelected: y,
2578
+ activeIcon: n,
2579
+ inactiveIcon: r,
2328
2580
  disabled: o,
2329
- selected: p,
2330
- onChange: a
2331
- }), L = j(null), I = f || L;
2332
- return /* @__PURE__ */ D(
2333
- U.div,
2581
+ selected: y,
2582
+ onChange: c
2583
+ }), g = W(null), N = d || g;
2584
+ return /* @__PURE__ */ A(
2585
+ F.div,
2334
2586
  {
2335
2587
  role: "switch",
2336
- "aria-checked": p,
2588
+ "aria-checked": y,
2337
2589
  tabIndex: o ? -1 : 0,
2338
- onKeyDown: h,
2339
- onClick: c,
2340
- ref: I,
2341
- className: b.switch,
2342
- ...l,
2590
+ onKeyDown: f,
2591
+ onClick: l,
2592
+ ref: N,
2593
+ className: w.switch,
2594
+ ...a,
2343
2595
  children: [
2344
- /* @__PURE__ */ u("input", { type: "hidden", value: p ? "1" : "0" }),
2345
- /* @__PURE__ */ D(
2346
- U.div,
2596
+ /* @__PURE__ */ u("input", { type: "hidden", value: y ? "1" : "0" }),
2597
+ /* @__PURE__ */ A(
2598
+ F.div,
2347
2599
  {
2348
2600
  layout: !0,
2349
- style: { translate: p ? "50%" : "-50%" },
2601
+ style: { translate: y ? "50%" : "-50%" },
2350
2602
  transition: {
2351
2603
  type: "spring",
2352
2604
  stiffness: 700,
2353
2605
  damping: 30
2354
2606
  },
2355
- className: b.handleContainer,
2607
+ className: w.handleContainer,
2356
2608
  children: [
2357
- /* @__PURE__ */ u("div", { className: b.handle, children: (p ? r : n) && /* @__PURE__ */ u(
2358
- Q,
2609
+ /* @__PURE__ */ u("div", { className: w.handle, children: (y ? n : r) && /* @__PURE__ */ u(
2610
+ Z,
2359
2611
  {
2360
- className: b.icon,
2361
- icon: p ? r : n
2612
+ className: w.icon,
2613
+ icon: y ? n : r
2362
2614
  }
2363
2615
  ) }),
2364
- /* @__PURE__ */ u("div", { className: b.handleStateLayer })
2616
+ /* @__PURE__ */ u("div", { className: w.handleStateLayer })
2365
2617
  ]
2366
2618
  }
2367
2619
  )
2368
2620
  ]
2369
2621
  }
2370
2622
  );
2371
- }, ct = ({
2623
+ }, bt = ({
2372
2624
  className: e,
2373
2625
  onClick: t,
2374
- label: r,
2626
+ label: n,
2375
2627
  variant: o = "primary",
2376
- href: n,
2377
- icon: a,
2628
+ href: r,
2629
+ icon: c,
2378
2630
  selectedTab: i,
2379
2631
  setSelectedTab: s,
2380
- tabsId: f,
2381
- index: l,
2382
- onTabSelected: p,
2383
- scrollable: m = !1,
2384
- selected: c = !1,
2385
- ref: h,
2386
- ...v
2632
+ tabsId: d,
2633
+ index: a,
2634
+ onTabSelected: y,
2635
+ scrollable: p = !1,
2636
+ selected: l = !1,
2637
+ ref: f,
2638
+ ...m
2387
2639
  }) => {
2388
- const b = j(null), L = h || b, [I, w] = R(c);
2389
- $(() => {
2390
- c && i == null ? w(!0) : w(i == l && l != null);
2391
- }, [i]), $(() => {
2392
- i == l && p && p({
2393
- ref: L,
2394
- index: l || 0,
2395
- label: r,
2396
- icon: a
2640
+ const w = W(null), g = f || w, [N, b] = S(l);
2641
+ R(() => {
2642
+ l && i == null ? b(!0) : b(i == a && a != null);
2643
+ }, [i]), R(() => {
2644
+ i == a && y && y({
2645
+ ref: g,
2646
+ index: a || 0,
2647
+ label: n,
2648
+ icon: c
2397
2649
  });
2398
2650
  }, [i]);
2399
- const B = n ? "a" : "button", N = (C) => {
2400
- s && s(l ?? null), t && t(C);
2401
- }, E = _e({
2651
+ const B = r ? "a" : "button", E = (C) => {
2652
+ s && s(a ?? null), t && t(C);
2653
+ }, I = ze({
2402
2654
  className: e,
2403
- onTabSelected: p,
2404
- scrollable: m,
2655
+ onTabSelected: y,
2656
+ scrollable: p,
2405
2657
  selectedTab: i,
2406
- index: l,
2407
- tabsId: f,
2408
- selected: I,
2658
+ index: a,
2659
+ tabsId: d,
2660
+ selected: N,
2409
2661
  variant: o,
2410
- icon: a,
2411
- label: r,
2412
- isSelected: I,
2662
+ icon: c,
2663
+ label: n,
2664
+ isSelected: N,
2413
2665
  setSelectedTab: s,
2414
- href: n
2666
+ href: r
2415
2667
  });
2416
- return /* @__PURE__ */ D(
2668
+ return /* @__PURE__ */ A(
2417
2669
  B,
2418
2670
  {
2419
- ...v,
2671
+ ...m,
2420
2672
  role: "tab",
2421
- "aria-selected": I,
2422
- ref: L,
2423
- href: n,
2424
- className: E.tab,
2425
- onClick: N,
2426
- ...v,
2673
+ "aria-selected": N,
2674
+ ref: g,
2675
+ href: r,
2676
+ className: I.tab,
2677
+ onClick: E,
2678
+ ...m,
2427
2679
  children: [
2428
- /* @__PURE__ */ u("span", { className: E.stateLayer, children: /* @__PURE__ */ u(
2429
- ne,
2680
+ /* @__PURE__ */ u("span", { className: I.stateLayer, children: /* @__PURE__ */ u(
2681
+ re,
2430
2682
  {
2431
- colorName: o === "primary" && I ? "primary" : "on-surface",
2432
- triggerRef: L
2683
+ colorName: o === "primary" && N ? "primary" : "on-surface",
2684
+ triggerRef: g
2433
2685
  }
2434
2686
  ) }),
2435
- /* @__PURE__ */ D("span", { className: E.content, children: [
2436
- a && /* @__PURE__ */ u(Q, { icon: a, className: E.icon }),
2437
- /* @__PURE__ */ u("span", { className: E.label, children: r }),
2438
- I && /* @__PURE__ */ u(
2439
- U.span,
2687
+ /* @__PURE__ */ A("span", { className: I.content, children: [
2688
+ c && /* @__PURE__ */ u(Z, { icon: c, className: I.icon }),
2689
+ /* @__PURE__ */ u("span", { className: I.label, children: n }),
2690
+ N && /* @__PURE__ */ u(
2691
+ F.span,
2440
2692
  {
2441
- layoutId: `underline-${f}`,
2442
- className: E.underline,
2693
+ layoutId: `underline-${d}`,
2694
+ className: I.underline,
2443
2695
  transition: { duration: 0.3 }
2444
2696
  }
2445
2697
  )
@@ -2447,143 +2699,143 @@ const Rt = ({
2447
2699
  ]
2448
2700
  }
2449
2701
  );
2450
- }, Bt = ({
2702
+ }, _t = ({
2451
2703
  variant: e = "primary",
2452
2704
  onTabSelected: t,
2453
- children: r,
2705
+ children: n,
2454
2706
  className: o,
2455
- selectedTab: n,
2456
- setSelectedTab: a,
2707
+ selectedTab: r,
2708
+ setSelectedTab: c,
2457
2709
  scrollable: i = !1
2458
2710
  }) => {
2459
- const [s, f] = R(
2711
+ const [s, d] = S(
2460
2712
  null
2461
2713
  );
2462
- let l;
2463
- n == 0 || n != null ? l = n : l = s;
2464
- const p = a || f, m = Y.Children.toArray(r).filter(
2465
- (L) => Y.isValidElement(L) && L.type === ct
2466
- ), c = Y.useRef(null), h = (L) => {
2467
- if (t == null || t(L), i) {
2468
- const I = c.current, w = L.ref.current;
2469
- if (I && w) {
2470
- const B = w.offsetLeft + w.offsetWidth / 2 - I.offsetWidth / 2;
2471
- I.scrollTo({ left: B, behavior: "smooth" });
2714
+ let a;
2715
+ r == 0 || r != null ? a = r : a = s;
2716
+ const y = c || d, p = K.Children.toArray(n).filter(
2717
+ (g) => K.isValidElement(g) && g.type === bt
2718
+ ), l = K.useRef(null), f = (g) => {
2719
+ if (t == null || t(g), i) {
2720
+ const N = l.current, b = g.ref.current;
2721
+ if (N && b) {
2722
+ const B = b.offsetLeft + b.offsetWidth / 2 - N.offsetWidth / 2;
2723
+ N.scrollTo({ left: B, behavior: "smooth" });
2472
2724
  }
2473
2725
  }
2474
- }, v = be(() => ce(), []), b = Ke({
2475
- children: r,
2726
+ }, m = ue(() => de(), []), w = Te({
2727
+ children: n,
2476
2728
  onTabSelected: t,
2477
2729
  scrollable: i,
2478
- selectedTab: l,
2479
- setSelectedTab: p,
2730
+ selectedTab: a,
2731
+ setSelectedTab: y,
2480
2732
  className: o,
2481
2733
  variant: e
2482
2734
  });
2483
- return /* @__PURE__ */ u("div", { ref: c, role: "tablist", className: b.tabs, children: m.map((L, I) => Y.cloneElement(L, {
2484
- key: I,
2485
- index: I,
2735
+ return /* @__PURE__ */ u("div", { ref: l, role: "tablist", className: w.tabs, children: p.map((g, N) => K.cloneElement(g, {
2736
+ key: N,
2737
+ index: N,
2486
2738
  variant: e,
2487
- selectedTab: l,
2488
- setSelectedTab: p,
2489
- tabsId: v,
2490
- onTabSelected: h,
2739
+ selectedTab: a,
2740
+ setSelectedTab: y,
2741
+ tabsId: m,
2742
+ onTabSelected: f,
2491
2743
  scrollable: i
2492
2744
  })) });
2493
- }, $t = ({
2745
+ }, Kt = ({
2494
2746
  variant: e = "filled",
2495
2747
  disabled: t = !1,
2496
- errorText: r,
2748
+ errorText: n,
2497
2749
  placeholder: o,
2498
- suffix: n,
2499
- name: a,
2750
+ suffix: r,
2751
+ name: c,
2500
2752
  label: i,
2501
2753
  className: s,
2502
- supportingText: f,
2503
- trailingIcon: l,
2504
- leadingIcon: p,
2505
- type: m = "text",
2506
- textLine: c = "singleLine",
2507
- autoComplete: h = "on",
2508
- onChange: v,
2509
- value: b,
2510
- showSupportingText: L = !1,
2511
- ...I
2754
+ supportingText: d,
2755
+ trailingIcon: a,
2756
+ leadingIcon: y,
2757
+ type: p = "text",
2758
+ textLine: l = "singleLine",
2759
+ autoComplete: f = "on",
2760
+ onChange: m,
2761
+ value: w,
2762
+ showSupportingText: g = !1,
2763
+ ...N
2512
2764
  }) => {
2513
- const [w, B] = R(b ?? ""), [N, E] = R(!1), [C, V] = R(!1), [P, k] = R(
2514
- L
2765
+ const [b, B] = S(w ?? ""), [E, I] = S(!1), [C, V] = S(!1), [D, k] = S(
2766
+ g
2515
2767
  );
2516
- $(() => {
2517
- B(b ?? "");
2518
- }, [b]), $(() => {
2519
- r != null && r.length ? V(!0) : V(!1);
2520
- }, [r]), $(() => {
2521
- L ? k(L) : f != null && f.length ? k(!0) : k(!1);
2522
- }, [P, f]), $(() => {
2523
- N && V(!1);
2524
- }, [N]);
2525
- const y = Y.useRef(null), M = () => {
2526
- y.current && !N && y.current.focus();
2527
- }, O = () => {
2528
- E(!0);
2529
- }, K = (W) => {
2530
- const F = W.target.value;
2531
- B(F), V(!1), typeof v == "function" && v(F);
2532
- }, Z = () => {
2533
- E(!1);
2534
- }, q = Ge({
2535
- showSupportingText: P,
2536
- isFocused: N,
2768
+ R(() => {
2769
+ B(w ?? "");
2770
+ }, [w]), R(() => {
2771
+ n != null && n.length ? V(!0) : V(!1);
2772
+ }, [n]), R(() => {
2773
+ g ? k(g) : d != null && d.length ? k(!0) : k(!1);
2774
+ }, [D, d]), R(() => {
2775
+ E && V(!1);
2776
+ }, [E]);
2777
+ const v = K.useRef(null), M = () => {
2778
+ v.current && !E && v.current.focus();
2779
+ }, Y = () => {
2780
+ I(!0);
2781
+ }, q = (P) => {
2782
+ const H = P.target.value;
2783
+ B(H), V(!1), typeof m == "function" && m(H);
2784
+ }, G = () => {
2785
+ I(!1);
2786
+ }, j = et({
2787
+ showSupportingText: D,
2788
+ isFocused: E,
2537
2789
  showErrorIcon: C,
2538
2790
  disabled: t,
2539
- name: a,
2791
+ name: c,
2540
2792
  label: i,
2541
- autoComplete: h,
2793
+ autoComplete: f,
2542
2794
  className: s,
2543
- onChange: v,
2795
+ onChange: m,
2544
2796
  placeholder: o,
2545
- supportingText: f,
2546
- type: m,
2547
- leadingIcon: p,
2548
- trailingIcon: l,
2797
+ supportingText: d,
2798
+ type: p,
2799
+ leadingIcon: y,
2800
+ trailingIcon: a,
2549
2801
  variant: e,
2550
- errorText: r,
2551
- value: w,
2552
- suffix: n,
2553
- textLine: c
2554
- }), [z] = R(ce());
2555
- let g, x;
2556
- switch (c) {
2802
+ errorText: n,
2803
+ value: b,
2804
+ suffix: r,
2805
+ textLine: l
2806
+ }), [z] = S(de());
2807
+ let L, x;
2808
+ switch (l) {
2557
2809
  case "multiLine":
2558
- x = Re, g = {};
2810
+ x = Ae, L = {};
2559
2811
  break;
2560
2812
  case "textAreas":
2561
- x = "textarea", g = {};
2813
+ x = "textarea", L = {};
2562
2814
  break;
2563
2815
  case "singleLine":
2564
2816
  default:
2565
- x = "input", g = { type: m };
2817
+ x = "input", L = { type: p };
2566
2818
  break;
2567
2819
  }
2568
- return /* @__PURE__ */ D("div", { className: q.textField, ...I, children: [
2569
- /* @__PURE__ */ D("fieldset", { onClick: M, className: q.content, children: [
2570
- /* @__PURE__ */ u("div", { className: q.stateLayer }),
2571
- p && /* @__PURE__ */ u("div", { className: q.leadingIcon, children: Y.isValidElement(p) ? p : /* @__PURE__ */ u(Q, { className: "w-5 h-5", icon: p }) }),
2572
- !(!N && !w.length || e == "filled") && /* @__PURE__ */ u(
2573
- U.legend,
2820
+ return /* @__PURE__ */ A("div", { className: j.textField, ...N, children: [
2821
+ /* @__PURE__ */ A("fieldset", { onClick: M, className: j.content, children: [
2822
+ /* @__PURE__ */ u("div", { className: j.stateLayer }),
2823
+ y && /* @__PURE__ */ u("div", { className: j.leadingIcon, children: K.isValidElement(y) ? y : /* @__PURE__ */ u(Z, { className: "w-5 h-5", icon: y }) }),
2824
+ !(!E && !b.length || e == "filled") && /* @__PURE__ */ u(
2825
+ F.legend,
2574
2826
  {
2575
2827
  variants: {
2576
2828
  hidden: { width: 0, padding: 0 },
2577
2829
  visible: { width: "auto", padding: "0 8px" }
2578
2830
  },
2579
2831
  initial: "hidden",
2580
- animate: !N && !w.length ? "hidden" : "visible",
2832
+ animate: !E && !b.length ? "hidden" : "visible",
2581
2833
  className: "max-w-full ml-2 px-2 text-body-small h-0",
2582
2834
  transition: { duration: 0.2 },
2583
2835
  children: /* @__PURE__ */ u("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ u(
2584
- U.span,
2836
+ F.span,
2585
2837
  {
2586
- className: q.label,
2838
+ className: j.label,
2587
2839
  transition: { duration: 0.3 },
2588
2840
  layoutId: z,
2589
2841
  children: i
@@ -2591,23 +2843,23 @@ const Rt = ({
2591
2843
  ) })
2592
2844
  }
2593
2845
  ),
2594
- /* @__PURE__ */ D("div", { className: "flex-1 relative", children: [
2595
- (!N && !w.length || e == "filled") && /* @__PURE__ */ u(
2596
- U.label,
2846
+ /* @__PURE__ */ A("div", { className: "flex-1 relative", children: [
2847
+ (!E && !b.length || e == "filled") && /* @__PURE__ */ u(
2848
+ F.label,
2597
2849
  {
2598
- htmlFor: a,
2599
- className: d(
2850
+ htmlFor: c,
2851
+ className: h(
2600
2852
  "absolute left-4 transition-all duration-300",
2601
2853
  {
2602
- "text-body-small top-2": e == "filled" && !(!N && !w.length),
2603
- "text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!N && !w.length))
2854
+ "text-body-small top-2": e == "filled" && !(!E && !b.length),
2855
+ "text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!E && !b.length))
2604
2856
  }
2605
2857
  ),
2606
2858
  transition: { duration: 0.3 },
2607
2859
  children: /* @__PURE__ */ u(
2608
- U.span,
2860
+ F.span,
2609
2861
  {
2610
- className: q.label,
2862
+ className: j.label,
2611
2863
  transition: { duration: 0.3 },
2612
2864
  layoutId: e == "outlined" ? z : void 0,
2613
2865
  children: i
@@ -2618,59 +2870,59 @@ const Rt = ({
2618
2870
  /* @__PURE__ */ u(
2619
2871
  x,
2620
2872
  {
2621
- ref: y,
2622
- value: w,
2623
- onChange: K,
2624
- className: q.input,
2625
- id: a,
2626
- name: a,
2627
- placeholder: N ? o ?? void 0 : "",
2628
- onFocus: O,
2629
- onBlur: Z,
2873
+ ref: v,
2874
+ value: b,
2875
+ onChange: q,
2876
+ className: j.input,
2877
+ id: c,
2878
+ name: c,
2879
+ placeholder: E ? o ?? void 0 : "",
2880
+ onFocus: Y,
2881
+ onBlur: G,
2630
2882
  disabled: t,
2631
- autoComplete: h,
2632
- "aria-invalid": !!(r != null && r.length),
2883
+ autoComplete: f,
2884
+ "aria-invalid": !!(n != null && n.length),
2633
2885
  "aria-label": i,
2634
- ...g
2886
+ ...L
2635
2887
  }
2636
2888
  )
2637
2889
  ] }),
2638
- /* @__PURE__ */ u("div", { className: q.activeIndicator }),
2639
- !C && /* @__PURE__ */ D(te, { children: [
2640
- l && /* @__PURE__ */ u(
2890
+ /* @__PURE__ */ u("div", { className: j.activeIndicator }),
2891
+ !C && /* @__PURE__ */ A(T, { children: [
2892
+ a && /* @__PURE__ */ u(
2641
2893
  "div",
2642
2894
  {
2643
- onClick: (W) => {
2644
- W.stopPropagation();
2895
+ onClick: (P) => {
2896
+ P.stopPropagation();
2645
2897
  },
2646
- className: q.trailingIcon,
2647
- children: Y.isValidElement(l) ? l : /* @__PURE__ */ u(Q, { className: "h-5", icon: l })
2898
+ className: j.trailingIcon,
2899
+ children: K.isValidElement(a) ? a : /* @__PURE__ */ u(Z, { className: "h-5", icon: a })
2648
2900
  }
2649
2901
  ),
2650
- !l && n && /* @__PURE__ */ u("span", { className: q.suffix, children: n })
2902
+ !a && r && /* @__PURE__ */ u("span", { className: j.suffix, children: r })
2651
2903
  ] }),
2652
2904
  C && /* @__PURE__ */ u(
2653
2905
  "div",
2654
2906
  {
2655
- className: d(q.trailingIcon, {
2656
- " absolute right-0": !l
2907
+ className: h(j.trailingIcon, {
2908
+ " absolute right-0": !a
2657
2909
  }),
2658
2910
  children: /* @__PURE__ */ u(
2659
- Q,
2911
+ Z,
2660
2912
  {
2661
2913
  className: "h-5 text-error",
2662
- icon: at
2914
+ icon: wt
2663
2915
  }
2664
2916
  )
2665
2917
  }
2666
2918
  )
2667
2919
  ] }),
2668
- P && /* @__PURE__ */ u("p", { className: q.supportingText, children: r != null && r.length ? r : f != null && f.length ? f : " " })
2920
+ D && /* @__PURE__ */ u("p", { className: j.supportingText, children: n != null && n.length ? n : d != null && d.length ? d : " " })
2669
2921
  ] });
2670
- }, it = _(
2922
+ }, Lt = O(
2671
2923
  "navigationRailItem",
2672
- ({ isSelected: e, icon: t, label: r, variant: o }) => ({
2673
- navigationRailItem: d(
2924
+ ({ isSelected: e, icon: t, label: n, variant: o }) => ({
2925
+ navigationRailItem: h(
2674
2926
  " group flex flex-col pt-1 pb-1.5 cursor-pointer",
2675
2927
  {
2676
2928
  "text-on-surface-variant": !e,
@@ -2679,15 +2931,15 @@ const Rt = ({
2679
2931
  "gap-0 h-[66px]": o == "horizontal"
2680
2932
  }
2681
2933
  ),
2682
- container: d(
2934
+ container: h(
2683
2935
  " w-fit flex justify-center relative rounded-full items-center mx-5",
2684
2936
  {
2685
2937
  "bg-secondary-container overflow-hidden": e,
2686
2938
  "gap-2 ": o == "horizontal",
2687
2939
  "gap-0 ": o == "vertical",
2688
- "p-4": !r
2940
+ "p-4": !n
2689
2941
  },
2690
- r && [
2942
+ n && [
2691
2943
  "px-4",
2692
2944
  {
2693
2945
  "py-1 ": o == "vertical",
@@ -2695,142 +2947,142 @@ const Rt = ({
2695
2947
  }
2696
2948
  ]
2697
2949
  ),
2698
- stateLayer: d(
2950
+ stateLayer: h(
2699
2951
  " absolute w-full rounded-full h-full left-0 top-0 ",
2700
2952
  {
2701
2953
  "group-state-on-surface": !e,
2702
2954
  "group-state-on-secondary-container": e
2703
2955
  }
2704
2956
  ),
2705
- icon: d("size-6 flex"),
2706
- label: d("w-fit mx-auto text-nowrap", {
2957
+ icon: h("size-6 flex"),
2958
+ label: h("w-fit mx-auto text-nowrap", {
2707
2959
  "text-label-large ": o == "horizontal",
2708
2960
  "text-label-medium": o == "vertical"
2709
2961
  })
2710
2962
  })
2711
- ), ut = ({ label: e }) => /* @__PURE__ */ u("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ u("p", { className: "text-label-large text-on-surface-variant", children: e }) }), dt = ({
2963
+ ), Nt = ({ label: e }) => /* @__PURE__ */ u("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ u("p", { className: "text-label-large text-on-surface-variant", children: e }) }), Et = ({
2712
2964
  className: e,
2713
2965
  onClick: t,
2714
- label: r,
2966
+ label: n,
2715
2967
  variant: o = "vertical",
2716
- href: n,
2717
- icon: a,
2968
+ href: r,
2969
+ icon: c,
2718
2970
  selectedItem: i,
2719
2971
  setSelectedItem: s,
2720
- index: f,
2721
- onItemSelected: l,
2722
- selected: p = !1,
2723
- ref: m,
2724
- transition: c,
2725
- isExtended: h,
2726
- iconSelected: v,
2727
- style: b,
2728
- extendedOnly: L,
2729
- children: I,
2730
- ...w
2972
+ index: d,
2973
+ onItemSelected: a,
2974
+ selected: y = !1,
2975
+ ref: p,
2976
+ transition: l,
2977
+ isExtended: f,
2978
+ iconSelected: m,
2979
+ style: w,
2980
+ extendedOnly: g,
2981
+ children: N,
2982
+ ...b
2731
2983
  }) => {
2732
- I && (r = I);
2733
- const B = j(null), N = m || B, [E, C] = R(p);
2734
- $(() => {
2735
- p && i == null ? C(!0) : C(i == f && f != null);
2736
- }, [i]), $(() => {
2737
- i == f && l && l({
2738
- ref: N,
2739
- index: f || 0,
2740
- label: r,
2741
- icon: a
2984
+ N && (n = N);
2985
+ const B = W(null), E = p || B, [I, C] = S(y);
2986
+ R(() => {
2987
+ y && i == null ? C(!0) : C(i == d && d != null);
2988
+ }, [i]), R(() => {
2989
+ i == d && a && a({
2990
+ ref: E,
2991
+ index: d || 0,
2992
+ label: n,
2993
+ icon: c
2742
2994
  });
2743
2995
  }, [i]);
2744
- const V = n ? "a" : "button", P = (y) => {
2745
- s && s(f ?? null), t && t(y);
2746
- }, k = it({
2747
- isExtended: h,
2748
- extendedOnly: L,
2996
+ const V = r ? "a" : "button", D = (v) => {
2997
+ s && s(d ?? null), t && t(v);
2998
+ }, k = Lt({
2999
+ isExtended: f,
3000
+ extendedOnly: g,
2749
3001
  className: e,
2750
- onItemSelected: l,
3002
+ onItemSelected: a,
2751
3003
  selectedItem: i,
2752
- index: f,
2753
- transition: c,
2754
- selected: E,
3004
+ index: d,
3005
+ transition: l,
3006
+ selected: I,
2755
3007
  variant: o,
2756
- icon: a,
2757
- label: r,
2758
- isSelected: E,
3008
+ icon: c,
3009
+ label: n,
3010
+ isSelected: I,
2759
3011
  setSelectedItem: s,
2760
- href: n,
2761
- children: r,
2762
- iconSelected: v
3012
+ href: r,
3013
+ children: n,
3014
+ iconSelected: m
2763
3015
  });
2764
- return c = { duration: 0.3, ...c }, L && !h ? null : (
3016
+ return l = { duration: 0.3, ...l }, g && !f ? null : (
2765
3017
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2766
3018
  // @ts-expect-error
2767
- /* @__PURE__ */ D(
3019
+ /* @__PURE__ */ A(
2768
3020
  V,
2769
3021
  {
2770
- ...w,
3022
+ ...b,
2771
3023
  role: "tab",
2772
- "aria-selected": E,
2773
- ref: N,
2774
- href: n,
3024
+ "aria-selected": I,
3025
+ ref: E,
3026
+ href: r,
2775
3027
  className: k.navigationRailItem,
2776
- onClick: P,
2777
- style: { transition: c.duration + "s", ...b },
3028
+ onClick: D,
3029
+ style: { transition: l.duration + "s", ...w },
2778
3030
  children: [
2779
- /* @__PURE__ */ D(
2780
- U.div,
3031
+ /* @__PURE__ */ A(
3032
+ F.div,
2781
3033
  {
2782
3034
  style: {
2783
- transition: o == "horizontal" ? c.duration + `s, gap ${c.duration / 2}s ${c.duration - c.duration / 2}s` : c.duration + `s, gap ${c.duration / 3}s ${c.duration - c.duration / 3}s`
3035
+ transition: o == "horizontal" ? l.duration + `s, gap ${l.duration / 2}s ${l.duration - l.duration / 2}s` : l.duration + `s, gap ${l.duration / 3}s ${l.duration - l.duration / 3}s`
2784
3036
  },
2785
- transition: c,
3037
+ transition: l,
2786
3038
  className: k.container,
2787
3039
  children: [
2788
- /* @__PURE__ */ u(U.div, { layout: !0, className: k.stateLayer }),
2789
- a && /* @__PURE__ */ u(
2790
- Q,
3040
+ /* @__PURE__ */ u(F.div, { layout: !0, className: k.stateLayer }),
3041
+ c && /* @__PURE__ */ u(
3042
+ Z,
2791
3043
  {
2792
- icon: E ? v : a,
3044
+ icon: I ? m : c,
2793
3045
  className: k.icon
2794
3046
  }
2795
3047
  ),
2796
- /* @__PURE__ */ u(A, { children: o == "horizontal" && (() => {
2797
- const y = {
3048
+ /* @__PURE__ */ u(Q, { children: o == "horizontal" && (() => {
3049
+ const v = {
2798
3050
  width: 0,
2799
3051
  opacity: 0,
2800
3052
  transition: {
2801
- ...c
3053
+ ...l
2802
3054
  }
2803
3055
  }, M = {
2804
3056
  width: "auto",
2805
3057
  opacity: 1,
2806
3058
  transition: {
2807
- ...c,
3059
+ ...l,
2808
3060
  opacity: {
2809
- duration: c.duration / 2,
2810
- delay: c.duration - c.duration / 2
3061
+ duration: l.duration / 2,
3062
+ delay: l.duration - l.duration / 2
2811
3063
  }
2812
3064
  }
2813
3065
  };
2814
3066
  return /* @__PURE__ */ u(
2815
- U.span,
3067
+ F.span,
2816
3068
  {
2817
- initial: y,
3069
+ initial: v,
2818
3070
  animate: M,
2819
- exit: y,
3071
+ exit: v,
2820
3072
  className: k.label,
2821
- children: r
3073
+ children: n
2822
3074
  }
2823
3075
  );
2824
3076
  })() })
2825
3077
  ]
2826
3078
  }
2827
3079
  ),
2828
- /* @__PURE__ */ u(A, { children: o == "vertical" && (() => {
2829
- const y = {
3080
+ /* @__PURE__ */ u(Q, { children: o == "vertical" && (() => {
3081
+ const v = {
2830
3082
  height: 0,
2831
3083
  opacity: 0,
2832
3084
  transition: {
2833
- ...c,
3085
+ ...l,
2834
3086
  opacity: {
2835
3087
  duration: 0
2836
3088
  }
@@ -2839,22 +3091,22 @@ const Rt = ({
2839
3091
  height: "auto",
2840
3092
  opacity: 1,
2841
3093
  transition: {
2842
- ...c,
3094
+ ...l,
2843
3095
  opacity: {
2844
- duration: c.duration / 3,
2845
- delay: c.duration - c.duration / 3
3096
+ duration: l.duration / 3,
3097
+ delay: l.duration - l.duration / 3
2846
3098
  }
2847
3099
  }
2848
3100
  };
2849
3101
  return /* @__PURE__ */ u(
2850
- U.span,
3102
+ F.span,
2851
3103
  {
2852
3104
  initial: M,
2853
3105
  animate: M,
2854
- exit: y,
3106
+ exit: v,
2855
3107
  className: k.label,
2856
- transition: c,
2857
- children: r
3108
+ transition: l,
3109
+ children: n
2858
3110
  }
2859
3111
  );
2860
3112
  })() })
@@ -2862,169 +3114,178 @@ const Rt = ({
2862
3114
  }
2863
3115
  )
2864
3116
  );
2865
- }, ft = _(
3117
+ }, It = O(
2866
3118
  "navigationRail",
2867
3119
  ({ isExtended: e, alignment: t }) => ({
2868
- navigationRail: d("flex flex-col left-0 h-full top-0 pt-11", {
3120
+ navigationRail: h("flex flex-col left-0 h-full top-0 pt-11", {
2869
3121
  "w-fit max-w-24": !e,
2870
3122
  "w-fit min-w-[220px] max-w-[360px]": e,
2871
3123
  "justify-between": t == "middle",
2872
3124
  "justify-start": t == "top"
2873
3125
  }),
2874
- header: d("flex flex-col gap-1 items-start"),
3126
+ header: h("flex flex-col gap-1 items-start"),
2875
3127
  menuIcon: "mx-5",
2876
- segments: d(" flex flex-col overflow-auto min-w-full mt-10", {
3128
+ segments: h(" flex flex-col overflow-auto min-w-full mt-10", {
2877
3129
  "w-full": !e,
2878
3130
  "w-fit items-start": e
2879
3131
  })
2880
3132
  })
2881
- ), Pt = ({
3133
+ ), Gt = ({
2882
3134
  variant: e = "standard",
2883
3135
  onItemSelected: t,
2884
- children: r,
3136
+ children: n,
2885
3137
  className: o,
2886
- selectedItem: n,
2887
- extended: a,
3138
+ selectedItem: r,
3139
+ extended: c,
2888
3140
  alignment: i = "top",
2889
3141
  menu: s = {
2890
3142
  closed: {
2891
- icon: st,
3143
+ icon: xt,
2892
3144
  label: "Open menu"
2893
3145
  },
2894
3146
  opened: {
2895
- icon: ue,
3147
+ icon: me,
2896
3148
  label: "Close menu"
2897
3149
  }
2898
3150
  },
2899
- style: f,
2900
- onExtendedChange: l,
2901
- transition: p,
2902
- setSelectedItem: m
3151
+ style: d,
3152
+ onExtendedChange: a,
3153
+ transition: y,
3154
+ setSelectedItem: p
2903
3155
  }) => {
2904
- const [c, h] = R(null), [v, b] = R(a);
2905
- let L;
2906
- n == 0 || n != null ? L = n : L = c;
2907
- const I = m || h, w = j(null), B = (k) => {
3156
+ const [l, f] = S(null), [m, w] = S(c);
3157
+ let g;
3158
+ r == 0 || r != null ? g = r : g = l;
3159
+ const N = p || f, b = W(null), B = (k) => {
2908
3160
  t == null || t(k);
2909
3161
  };
2910
- function N(k) {
2911
- const y = [];
2912
- return Ne.forEach(k, (M) => {
2913
- ee(M) && M.type === Le ? y.push(...N(M.props.children)) : y.push(M);
2914
- }), y;
3162
+ function E(k) {
3163
+ const v = [];
3164
+ return ke.forEach(k, (M) => {
3165
+ te(M) && M.type === Se ? v.push(...E(M.props.children)) : v.push(M);
3166
+ }), v;
2915
3167
  }
2916
- const E = N(r), C = E.filter(
2917
- (k) => ee(k) && k.type === fe
2918
- ), V = ft({
2919
- children: r,
3168
+ const I = E(n), C = I.filter(
3169
+ (k) => te(k) && k.type === ve
3170
+ ), V = It({
3171
+ children: n,
2920
3172
  onItemSelected: t,
2921
- selectedItem: L,
2922
- setSelectedItem: I,
3173
+ selectedItem: g,
3174
+ setSelectedItem: N,
2923
3175
  className: o,
2924
3176
  variant: e,
2925
- extended: v,
2926
- isExtended: v,
3177
+ extended: m,
3178
+ isExtended: m,
2927
3179
  alignment: i,
2928
3180
  menu: s,
2929
- transition: p,
2930
- onExtendedChange: l
3181
+ transition: y,
3182
+ onExtendedChange: a
2931
3183
  });
2932
- p = { duration: 0.3, ...p };
2933
- const P = j(!1);
2934
- return P.current = !1, $(() => {
2935
- l == null || l(v ?? !1);
2936
- }, [v]), /* @__PURE__ */ D(
3184
+ y = { duration: 0.3, ...y };
3185
+ const D = W(!1);
3186
+ return D.current = !1, R(() => {
3187
+ a == null || a(m ?? !1);
3188
+ }, [m]), /* @__PURE__ */ A(
2937
3189
  "div",
2938
3190
  {
2939
- style: { transition: p.duration + "s", ...f },
2940
- ref: w,
3191
+ style: { transition: y.duration + "s", ...d },
3192
+ ref: b,
2941
3193
  className: V.navigationRail,
2942
3194
  children: [
2943
- /* @__PURE__ */ D("div", { className: V.header, children: [
3195
+ /* @__PURE__ */ A("div", { className: V.header, children: [
2944
3196
  /* @__PURE__ */ u(
2945
- ie,
3197
+ fe,
2946
3198
  {
2947
- onClick: () => b(!v),
2948
- label: v ? s == null ? void 0 : s.opened.label : s == null ? void 0 : s.closed.label,
3199
+ onClick: () => w(!m),
3200
+ label: m ? s == null ? void 0 : s.opened.label : s == null ? void 0 : s.closed.label,
2949
3201
  className: V.menuIcon,
2950
- icon: v ? s.opened.icon : s == null ? void 0 : s.closed.icon
3202
+ icon: m ? s.opened.icon : s == null ? void 0 : s.closed.icon
2951
3203
  }
2952
3204
  ),
2953
- C.length > 0 && le(C[0], {
2954
- transition: p,
2955
- isExtended: v,
3205
+ C.length > 0 && oe(C[0], {
3206
+ transition: y,
3207
+ isExtended: m,
2956
3208
  className: "!shadow-none mx-5 " + C[0].props.className
2957
3209
  })
2958
3210
  ] }),
2959
3211
  /* @__PURE__ */ u("div", { className: V.segments, children: (() => {
2960
3212
  let k = 0;
2961
- return E.map((y) => ee(y) && y.type === dt ? le(
2962
- y,
3213
+ return I.map((v) => te(v) && v.type === Et ? oe(
3214
+ v,
2963
3215
  {
2964
3216
  key: k,
2965
3217
  index: k++,
2966
3218
  // Utilise et incrémente le compteur dédié
2967
- variant: v ? "horizontal" : "vertical",
2968
- selectedItem: L,
2969
- setSelectedItem: I,
3219
+ variant: m ? "horizontal" : "vertical",
3220
+ selectedItem: g,
3221
+ setSelectedItem: N,
2970
3222
  onItemSelected: B,
2971
- transition: p,
2972
- extendedOnly: P.current,
2973
- isExtended: v
3223
+ transition: y,
3224
+ extendedOnly: D.current,
3225
+ isExtended: m
2974
3226
  }
2975
- ) : ee(y) && y.type === fe ? null : ee(y) && y.type === ut ? (P.current = !0, v ? le(y, {}) : null) : y);
3227
+ ) : te(v) && v.type === ve ? null : te(v) && v.type === Nt ? (D.current = !0, m ? oe(v, {}) : null) : v);
2976
3228
  })() }),
2977
3229
  /* @__PURE__ */ u("div", { className: "flex-1 max-h-[160px]" })
2978
3230
  ]
2979
3231
  }
2980
3232
  );
2981
3233
  };
3234
+ function Jt(e) {
3235
+ return We({
3236
+ variant: Pe.Fidelity,
3237
+ ...e,
3238
+ plugins: [new De(e), new Le(e)]
3239
+ });
3240
+ }
2982
3241
  export {
2983
- ze as Button,
2984
- Et as Card,
2985
- kt as Carousel,
2986
- et as CarouselItem,
2987
- ge as CustomScroll,
2988
- tt as Divider,
2989
- fe as Fab,
2990
- Q as Icon,
2991
- ie as IconButton,
2992
- Pt as NavigationRail,
2993
- dt as NavigationRailItem,
2994
- ut as NavigationRailSection,
2995
- Ze as ProgressIndicator,
2996
- ne as RippleEffect,
2997
- Rt as SideSheet,
2998
- St as Slider,
2999
- Lt as SmoothScroll,
3000
- Ct as Snackbar,
3001
- Mt as Switch,
3002
- Qe as SyncedFixedWrapper,
3003
- ct as Tab,
3004
- Bt as Tabs,
3005
- $t as TextField,
3006
- It as ThemeProvider,
3007
- we as ToolTip,
3008
- $e as buttonStyle,
3009
- Pe as cardStyle,
3010
- We as carouselItemStyle,
3011
- De as carouselStyle,
3012
- d as classNames,
3013
- Ce as classnames,
3014
- Je as customScrollStyle,
3015
- _ as defaultClassNames,
3016
- Ve as dividerStyle,
3017
- je as fabStyle,
3018
- Be as getClassNames,
3019
- Ue as iconButtonStyle,
3020
- Te as normalize,
3021
- Fe as progressIndicatorStyle,
3022
- Xe as sideSheetStyle,
3023
- He as sliderStyle,
3024
- Oe as snackbarStyle,
3025
- qe as switchStyle,
3026
- _e as tabStyle,
3027
- Ke as tabsStyle,
3028
- Ge as textFieldStyle,
3029
- Ye as toolStyle
3242
+ Ht as AnimateOnScroll,
3243
+ dt as Button,
3244
+ Ut as Card,
3245
+ Xt as Carousel,
3246
+ mt as CarouselItem,
3247
+ ot as CustomScroll,
3248
+ ht as Divider,
3249
+ ve as Fab,
3250
+ Z as Icon,
3251
+ fe as IconButton,
3252
+ Gt as NavigationRail,
3253
+ Et as NavigationRailItem,
3254
+ Nt as NavigationRailSection,
3255
+ nt as ProgressIndicator,
3256
+ re as RippleEffect,
3257
+ jt as SideSheet,
3258
+ Yt as Slider,
3259
+ Vt as SmoothScroll,
3260
+ Ot as Snackbar,
3261
+ qt as Switch,
3262
+ at as SyncedFixedWrapper,
3263
+ bt as Tab,
3264
+ _t as Tabs,
3265
+ Kt as TextField,
3266
+ Ft as ThemeProvider,
3267
+ Ee as ToolTip,
3268
+ Ue as buttonStyle,
3269
+ Xe as cardStyle,
3270
+ Ye as carouselItemStyle,
3271
+ je as carouselStyle,
3272
+ h as classNames,
3273
+ Ve as classnames,
3274
+ rt as customScrollStyle,
3275
+ O as defaultClassNames,
3276
+ Jt as defineConfig,
3277
+ Oe as dividerStyle,
3278
+ qe as fabStyle,
3279
+ He as getClassNames,
3280
+ _e as iconButtonStyle,
3281
+ ft as normalize,
3282
+ Ke as progressIndicatorStyle,
3283
+ Ge as sideSheetStyle,
3284
+ Je as sliderStyle,
3285
+ Ze as snackbarStyle,
3286
+ Qe as switchStyle,
3287
+ ze as tabStyle,
3288
+ Te as tabsStyle,
3289
+ et as textFieldStyle,
3290
+ tt as toolStyle
3030
3291
  };