@udixio/ui-react 1.6.4 → 2.1.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 +51 -3
  2. package/dist/index.cjs +3 -3
  3. package/dist/index.js +1699 -1466
  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 +7 -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.ts +267 -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 V, Fragment as te } from "react/jsx-runtime";
2
+ import { clsx as ge } from "clsx";
3
+ import { extendTailwindMerge as Ne } from "tailwind-merge";
4
+ import K, { useState as S, useEffect as R, useRef as D, useLayoutEffect as ve, isValidElement as ee, cloneElement as oe, useMemo as Ee, Children as Ie, Fragment as ke } from "react";
5
+ import { motion as F, AnimatePresence as Q, useScroll as Se, useMotionValueEvent as fe, motionValue as Me, useTransform as me } from "motion/react";
6
+ import { throttle as $e } from "throttle-debounce";
7
+ import { animate as Ce } from "motion";
8
+ import { createPortal as xe } from "react-dom";
9
+ import { loader as Re, defineConfig as Be, FontPlugin as De, Variants as We } from "@udixio/theme";
10
+ import { TailwindPlugin as we } from "@udixio/tailwind";
11
+ import Pe from "react-textarea-autosize";
12
+ const be = Ne({
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) => be(ge(e)), Ve = (...e) => be(ge(e));
39
+ function Ae(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 Fe = (e) => {
42
43
  const t = {};
43
- e.classNameList.forEach((o) => {
44
- var n;
45
- if (o)
46
- if (typeof o == "string")
47
- (t[n = e.default] ?? (t[n] = [])).push(o);
44
+ e.classNameList.forEach((l) => {
45
+ var r;
46
+ if (l)
47
+ if (typeof l == "string")
48
+ (t[r = e.default] ?? (t[r] = [])).push(l);
48
49
  else {
49
- const a = o(e.states);
50
- Object.entries(a).map((i) => {
50
+ const c = l(e.states);
51
+ Object.entries(c).map((i) => {
51
52
  const [s, f] = i;
52
53
  (t[s] ?? (t[s] = [])).push(f);
53
54
  });
54
55
  }
55
56
  });
56
- const r = t;
57
- 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],
57
+ const n = t;
58
+ return Object.entries(t).map((l) => {
59
+ let [r, c] = l;
60
+ c = c.reverse(), r == e.default && c.unshift("relative"), c.unshift(Ae(r)), n[r] = Ve(...c);
61
+ }), n;
62
+ }, j = (e, t) => (n) => Fe({
63
+ classNameList: [n.className, t],
63
64
  default: e,
64
- states: r
65
- }), $e = _(
65
+ states: n
66
+ }), He = j(
66
67
  "button",
67
68
  ({
68
69
  variant: e,
69
70
  disableTextMargins: t,
70
- disabled: r,
71
- iconPosition: o,
72
- icon: n,
73
- isActive: a,
71
+ disabled: n,
72
+ iconPosition: l,
73
+ icon: r,
74
+ isActive: c,
74
75
  loading: i,
75
76
  shape: s,
76
77
  onToggle: f,
77
- size: l,
78
+ size: a,
78
79
  allowShapeTransformation: p
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" || p && 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
+ p && !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 && f,
112
+ "bg-primary text-on-primary": !n && (c && f || !f),
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 && !f,
161
+ "group-state-on-surface-variant": !n && f
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" || p && 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
+ p && !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
+ ), Ue = j(
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
+ ), Xe = j(
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
+ ), Oe = j(
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
+ ), Ye = j(
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,201 +238,193 @@ const Be = (e) => {
237
238
  }
238
239
  )
239
240
  })
240
- ), je = _(
241
+ ), je = j(
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
+ ), qe = j(
286
279
  "iconButton",
287
280
  ({
288
281
  variant: e,
289
282
  disabled: t,
290
- onToggle: r,
291
- isActive: o,
292
- size: n,
293
- width: a,
283
+ onToggle: n,
284
+ isActive: l,
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 && l && 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 && l && 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": !l && !!n,
314
+ "bg-primary": l || !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": !l && !!n,
321
+ "bg-secondary-container": l || !n
329
322
  },
330
323
  !!t && "bg-on-surface/[0.12]"
331
324
  ],
332
325
  e === "outlined" && [
333
326
  !t && {
334
- "border border-outline": !o,
335
- "border border-transparent bg-inverse-surface": o
327
+ "border border-outline": !l,
328
+ "border border-transparent bg-inverse-surface": l
336
329
  },
337
330
  !!t && {
338
- "border border-on-surface/[0.12]": !o,
339
- "border border-transparent bg-on-surface/[0.12]": o
331
+ "border border-on-surface/[0.12]": !l,
332
+ "border border-transparent bg-on-surface/[0.12]": l
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 && l && 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 && l && 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" && {
365
- "state-on-surface-variant": !o,
366
- "state-primary": o
358
+ "state-on-surface-variant": !l,
359
+ "state-primary": l
367
360
  },
368
361
  e === "filled" && {
369
- "state-primary": !o && !!r,
370
- "state-inverse-on-surface": o || !r
362
+ "state-primary": !l && !!n,
363
+ "state-inverse-on-surface": l || !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": !l && !!n,
367
+ "state-on-secondary-container": l || !n
375
368
  },
376
369
  e === "outlined" && {
377
- "state-on-surface-variant": !o,
378
- "state-on-primary": o
370
+ "state-on-surface-variant": !l,
371
+ "state-on-primary": l
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" && {
405
- "text-on-surface-variant": !o,
406
- "text-primary": o
398
+ "text-on-surface-variant": !l,
399
+ "text-primary": l
407
400
  },
408
401
  e === "filled" && {
409
- "text-primary": !o && !!r,
410
- "text-on-primary": o || !r
402
+ "text-primary": !l && !!n,
403
+ "text-on-primary": l || !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": !l && !!n,
407
+ "text-on-secondary-container": l || !n
415
408
  },
416
409
  e === "outlined" && {
417
- "text-on-surface-variant": !o,
418
- "text-inverse-on-surface": o
410
+ "text-on-surface-variant": !l,
411
+ "text-inverse-on-surface": l
419
412
  }
420
413
  ],
421
414
  !!t && "text-on-surface/[0.38]"
422
415
  )
423
416
  })
424
- ), Fe = _(
417
+ ), _e = j(
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
+ ), Ke = j(
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
+ ), Ge = j(
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
+ ), Je = j(
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
+ ), Ze = j(
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,129 +549,129 @@ const Be = (e) => {
556
549
  { "text-on-surface/[0.38]": t }
557
550
  )
558
551
  })
559
- ), _e = _(
552
+ ), Qe = j(
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: l }) => ({
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) && l === "primary" && "h-16",
559
+ !(t && n && l === "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
- o === "primary" && {
563
+ l === "primary" && {
571
564
  "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface": !e,
572
565
  "group-hover:hover-state-primary group-focus-visible:focus-state-primary": e
573
566
  },
574
- o === "secondary" && "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"
567
+ l === "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
- relative: o == "primary"
572
+ relative: l == "primary"
580
573
  },
581
574
  {
582
- "": !!(r && !t)
575
+ "": !!(n && !t)
583
576
  },
584
- o === "primary" && "flex-col items-center",
585
- o === "secondary" && {
586
- "flex-col items-center": !(r && t),
587
- "flex-row items-center gap-2": !!(r && t)
577
+ l === "primary" && "flex-col items-center",
578
+ l === "secondary" && {
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
- o === "primary" && {
585
+ l === "primary" && {
593
586
  "text-on-surface-variant": !e,
594
587
  "text-primary": e
595
588
  },
596
- o === "secondary" && {
589
+ l === "secondary" && {
597
590
  "text-on-surface-variant": !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
- o === "primary" && {
596
+ l === "primary" && {
604
597
  "text-on-surface-variant": !e,
605
598
  "text-primary": e
606
599
  },
607
- o === "secondary" && {
600
+ l === "secondary" && {
608
601
  "text-on-surface-variant": !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
- o === "primary" && "h-[3px] rounded-t",
615
- o === "secondary" && "h-0.5"
607
+ l === "primary" && "h-[3px] rounded-t",
608
+ l === "secondary" && "h-0.5"
616
609
  )
617
610
  })
618
- ), Ke = _(
611
+ ), ze = j(
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
+ ), Te = j(
628
621
  "textField",
629
622
  ({
630
623
  disabled: e,
631
624
  leadingIcon: t,
632
- trailingIcon: r,
633
- variant: o,
634
- errorText: n,
635
- isFocused: a,
625
+ trailingIcon: n,
626
+ variant: l,
627
+ errorText: r,
628
+ isFocused: c,
636
629
  value: i,
637
630
  suffix: s,
638
631
  textLine: f
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
638
  { "h-14": f == "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 && l == "filled",
641
+ "border-outline": !(r != null && r.length) && !c && l == "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
- o == "filled" && [
646
+ l == "filled" && [
654
647
  "rounded-t overflow-hidden border-b",
655
648
  { "bg-surface-container-highest": !e }
656
649
  ],
657
- o == "outlined" && [
650
+ l == "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
- hidden: o == "outlined"
660
+ hidden: l == "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,
@@ -687,42 +680,42 @@ const Be = (e) => {
687
680
  {
688
681
  "pr-0": !!s
689
682
  },
690
- o == "filled" && " pb-2 pt-6",
691
- o == "outlined" && "py-4 relative z-10"
683
+ l == "filled" && " pb-2 pt-6",
684
+ l == "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
- o == "filled" && [
688
+ l == "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
- o == "filled" && " pb-2 pt-6",
719
- o == "outlined" && "py-4 relative z-10"
711
+ l == "filled" && " pb-2 pt-6",
712
+ l == "outlined" && "py-4 relative z-10"
720
713
  )
721
714
  })
722
- ), Ye = _(
715
+ ), et = j(
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
  },
@@ -788,18 +781,18 @@ const Be = (e) => {
788
781
  }
789
782
  );
790
783
  }
791
- const o = e;
792
- if (!(o != null && o.prefix))
784
+ const l = e;
785
+ if (!(l != null && l.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 } = l, [c, i, , , s] = r || [], f = (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),
803
+ className: h("size-5 box-content", n),
811
804
  style: { ...f(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, p) => /* @__PURE__ */ u("path", { d: a }, p))
817
810
  }
818
811
  );
819
- }, Ze = ({
812
+ }, tt = ({
820
813
  variant: e = "linear-determinate",
821
814
  value: t = 0,
822
- transitionDuration: r = 1e3,
823
- className: o,
824
- ...n
815
+ transitionDuration: n = 1e3,
816
+ className: l,
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);
823
+ const [f, a] = S(!0), p = () => f ? s : s * 0.5;
824
+ R(() => {
825
+ if ((e === "circular-indeterminate" || e === "linear-indeterminate") && c !== 100) {
826
+ const y = setInterval(() => {
827
+ i(f ? 10 : 90), a(!f);
835
828
  }, p() * 1e3);
836
- return () => clearInterval(v);
829
+ return () => clearInterval(y);
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, f, c]);
832
+ const [m, o] = S(!1);
833
+ R(() => {
834
+ if (c >= 100) {
835
+ const y = setTimeout(() => {
836
+ o(!1);
837
+ }, n);
845
838
  return () => {
846
- clearTimeout(v);
839
+ clearTimeout(y);
847
840
  };
848
841
  } else
849
- c(!0);
850
- }, [a, r]);
851
- const h = Fe({
852
- className: o,
842
+ o(!0);
843
+ }, [c, n]);
844
+ const d = _e({
845
+ className: l,
853
846
  variant: e,
854
847
  value: t,
855
- transitionDuration: r,
848
+ transitionDuration: n,
856
849
  isVisible: m
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__ */ V(te, { children: [
852
+ (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ V("div", { className: d.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: d.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: d.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: d.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",
@@ -901,10 +894,10 @@ const Be = (e) => {
901
894
  duration: p(),
902
895
  ease: "linear"
903
896
  },
904
- className: h.progressIndicator,
905
- ...n,
897
+ className: d.progressIndicator,
898
+ ...r,
906
899
  children: /* @__PURE__ */ u(
907
- U.circle,
900
+ F.circle,
908
901
  {
909
902
  cx: "50%",
910
903
  cy: "50%",
@@ -914,7 +907,7 @@ const Be = (e) => {
914
907
  },
915
908
  initial: "hidden",
916
909
  animate: "visible",
917
- className: h.activeIndicator,
910
+ className: d.activeIndicator,
918
911
  variants: {
919
912
  hidden: {
920
913
  pathLength: f ? 10 / 100 : 90 / 100
@@ -937,11 +930,11 @@ const Be = (e) => {
937
930
  f + ""
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
+ }, [l, r] = S(!0), [c, i] = S(!1), [s, f] = S({ x: 0, y: 0 });
955
+ R(() => {
956
+ c && (r(!0), r(!1));
957
+ }, [c]), R(() => {
958
+ const o = t == null ? void 0 : t.current;
959
+ if (o)
960
+ return o.addEventListener("mousedown", a), o.addEventListener("mouseup", m), o.addEventListener("mouseleave", p), () => {
961
+ o.removeEventListener("mousedown", a), o.removeEventListener("mouseup", m), o.removeEventListener("mouseleave", p);
969
962
  };
970
963
  }, [t]);
971
- const l = (c) => {
972
- const h = t == null ? void 0 : t.current, v = h.getBoundingClientRect();
964
+ const a = (o) => {
965
+ const d = t == null ? void 0 : t.current, y = d.getBoundingClientRect();
973
966
  i(!0), f({
974
- x: (c.clientX - v.left) / h.clientWidth * 100,
975
- y: (c.clientY - v.top) / h.clientHeight * 100
967
+ x: (o.clientX - y.left) / d.clientWidth * 100,
968
+ y: (o.clientY - y.top) / d.clientHeight * 100
976
969
  });
977
- }, p = (c) => {
970
+ }, p = (o) => {
978
971
  i(!1);
979
- }, m = (c) => {
972
+ }, m = (o) => {
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 && !l) && /* @__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
+ }, nt = j(
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,136 +1011,136 @@ 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
+ ), rt = ({
1031
1024
  children: e,
1032
1025
  orientation: t = "vertical",
1033
- scrollSize: r,
1034
- onScroll: o,
1035
- className: n,
1036
- draggable: a = !1,
1026
+ scrollSize: n,
1027
+ onScroll: l,
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 = D(null), f = D(null), [a, p] = 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 M = new ResizeObserver((U) => {
1040
+ for (const X of U)
1041
+ X.target === s.current && p({
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 M.observe(s.current), () => {
1048
+ M.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 m = D(null), o = D(null), d = () => {
1052
+ const M = f.current;
1053
+ return M ? {
1054
+ width: n ?? M.scrollWidth,
1055
+ height: n ?? M.scrollHeight
1063
1056
  } : null;
1064
- }, v = () => {
1065
- const S = s.current;
1066
- return S ? {
1067
- width: S.clientWidth,
1068
- height: S.clientHeight
1057
+ }, y = () => {
1058
+ const M = s.current;
1059
+ return M ? {
1060
+ width: M.clientWidth,
1061
+ height: M.clientHeight
1069
1062
  // Correction ici pour retourner la bonne hauteur
1070
1063
  } : null;
1071
- }, { scrollYProgress: b, scrollXProgress: L } = Ie({
1064
+ }, { scrollYProgress: v, scrollXProgress: x } = Se({
1072
1065
  container: s
1073
- }), I = j(null);
1074
- I.current || (I.current = Ee(
1066
+ }), E = D(null);
1067
+ E.current || (E.current = $e(
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
+ (M, U) => {
1070
+ !o.current || !m.current || !s.current || l && (t === "horizontal" && U === "x" && l({
1071
+ scrollProgress: M,
1072
+ scroll: M * (m.current.width - s.current.clientWidth),
1073
+ scrollTotal: m.current.width - s.current.clientWidth,
1074
+ scrollVisible: o.current.width
1075
+ }), t === "vertical" && U === "y" && l({
1076
+ scrollProgress: M,
1077
+ scroll: M * (m.current.height - s.current.clientHeight),
1078
+ scrollTotal: m.current.height - s.current.clientHeight,
1079
+ scrollVisible: o.current.height
1087
1080
  }));
1088
1081
  }
1089
1082
  ));
1090
- const w = (S, X) => {
1091
- I.current && I.current(S, X);
1083
+ const L = (M, U) => {
1084
+ E.current && E.current(M, 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 && L(x.get(), "x"), a.height && L(v.get(), "y");
1088
+ }, [a]), fe(x, "change", (M) => {
1089
+ L(M, "x");
1090
+ }), fe(v, "change", (M) => {
1091
+ L(M, "y");
1099
1092
  });
1100
- const [B, N] = R(!1);
1101
- pe(() => {
1102
- B || !c.current || !m.current || !o || (o({
1093
+ const [B, N] = S(!1);
1094
+ ve(() => {
1095
+ B || !o.current || !m.current || !l || (l({
1103
1096
  scrollProgress: 0,
1104
1097
  scroll: 0,
1105
1098
  scrollTotal: t == "vertical" ? m.current.height : m.current.width,
1106
- scrollVisible: t == "vertical" ? c.current.height : c.current.width
1099
+ scrollVisible: t == "vertical" ? o.current.height : o.current.width
1107
1100
  }), N(!0));
1108
- }, [c, m, o]), m.current = h(), c.current = v();
1109
- const [E, C] = R(!1), V = Je({
1110
- isDragging: E,
1101
+ }, [o, m, l]), m.current = d(), o.current = y();
1102
+ const [I, $] = S(!1), A = nt({
1103
+ isDragging: I,
1111
1104
  children: e,
1112
- className: n,
1113
- onScroll: o,
1105
+ className: r,
1106
+ onScroll: l,
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 = () => {
1130
- C(!1);
1111
+ }), [W, k] = S(0), [g, C] = S(0), O = (M) => {
1112
+ if (!c) return;
1113
+ const U = s.current;
1114
+ if (!U || W == null) return;
1115
+ const J = (M.pageX - U.offsetLeft - W) * 1.5;
1116
+ U.scrollLeft = g - J;
1117
+ }, q = (M) => {
1118
+ const U = s.current;
1119
+ U && ($(!0), k(M.pageX - U.offsetLeft), C(U.scrollLeft));
1120
+ }, G = (M) => {
1121
+ I && (M.preventDefault(), O(M));
1122
+ }, Y = () => {
1123
+ $(!1);
1131
1124
  }, z = () => {
1132
- C(!1);
1133
- }, g = (S) => {
1134
- S.preventDefault();
1135
- }, x = j(null);
1136
- return $(() => () => {
1137
- x.current && clearTimeout(x.current);
1138
- }, []), /* @__PURE__ */ D(
1125
+ $(!1);
1126
+ }, b = (M) => {
1127
+ M.preventDefault();
1128
+ }, w = D(null);
1129
+ return R(() => () => {
1130
+ w.current && clearTimeout(w.current);
1131
+ }, []), /* @__PURE__ */ V(
1139
1132
  "div",
1140
1133
  {
1141
- className: V.customScroll,
1134
+ className: A.customScroll,
1142
1135
  ref: s,
1143
- onMouseDown: K,
1144
- onMouseMove: Z,
1145
- onMouseUp: q,
1136
+ onMouseDown: q,
1137
+ onMouseMove: G,
1138
+ onMouseUp: Y,
1146
1139
  onMouseLeave: z,
1147
- onDragStart: g,
1148
- onScroll: (S) => {
1149
- E || (k(null), C(!0), x.current && clearTimeout(x.current), x.current = setTimeout(() => {
1150
- C(!1);
1140
+ onDragStart: b,
1141
+ onScroll: (M) => {
1142
+ I || (k(null), $(!0), w.current && clearTimeout(w.current), w.current = setTimeout(() => {
1143
+ $(!1);
1151
1144
  }, 1e3));
1152
1145
  },
1153
1146
  children: [
@@ -1155,27 +1148,27 @@ const Be = (e) => {
1155
1148
  "div",
1156
1149
  {
1157
1150
  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%" },
1159
- className: V.track,
1151
+ style: t === "vertical" ? { height: ((P = o == null ? void 0 : o.current) == null ? void 0 : P.height) ?? "100%" } : { width: ((H = o == null ? void 0 : o.current) == null ? void 0 : H.width) ?? "100%" },
1152
+ className: A.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
+ o.current && m.current && /* @__PURE__ */ V(te, { children: [
1157
+ t === "vertical" && m.current.height > o.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: m.current.height - o.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" && m.current.width > o.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: m.current.width - o.current.width
1179
1172
  }
1180
1173
  }
1181
1174
  )
@@ -1183,61 +1176,154 @@ 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
+ }, ot = ({
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 l = D(null), r = D(0), c = D(0);
1185
+ R(() => {
1186
+ if (!t) return;
1187
+ r.current = t.scrollTop, c.current = t.scrollLeft;
1188
+ const i = (o) => {
1189
+ e == null || e(o);
1190
+ }, s = (o) => {
1191
+ o.preventDefault(), i({
1192
+ type: "intent",
1193
+ source: "wheel",
1194
+ deltaX: o.deltaX,
1195
+ deltaY: o.deltaY,
1196
+ originalEvent: o
1197
+ });
1198
+ }, f = (o) => {
1199
+ if (!n) return;
1200
+ const d = o.touches[0];
1201
+ d && (l.current = { x: d.clientX, y: d.clientY });
1202
+ }, a = (o) => {
1203
+ if (!n) return;
1204
+ const d = o.touches[0];
1205
+ if (!d || !l.current) return;
1206
+ o.preventDefault();
1207
+ const y = l.current.x - d.clientX, v = l.current.y - d.clientY;
1208
+ l.current = { x: d.clientX, y: d.clientY }, i({
1209
+ type: "intent",
1210
+ source: "touch",
1211
+ deltaX: y,
1212
+ deltaY: v,
1213
+ originalEvent: o
1214
+ });
1215
+ }, p = () => {
1216
+ n && (l.current = null);
1217
+ }, m = (o) => {
1218
+ const y = t.clientHeight * 0.9;
1219
+ let v = 0, x = 0;
1220
+ switch (o.key) {
1221
+ case "ArrowDown":
1222
+ x = 40;
1223
+ break;
1224
+ case "ArrowUp":
1225
+ x = -40;
1226
+ break;
1227
+ case "ArrowRight":
1228
+ v = 40;
1229
+ break;
1230
+ case "ArrowLeft":
1231
+ v = -40;
1232
+ break;
1233
+ case "PageDown":
1234
+ x = y;
1235
+ break;
1236
+ case "PageUp":
1237
+ x = -y;
1238
+ break;
1239
+ case "Home":
1240
+ x = Number.NEGATIVE_INFINITY;
1241
+ break;
1242
+ case "End":
1243
+ x = Number.POSITIVE_INFINITY;
1244
+ break;
1245
+ case " ":
1246
+ x = o.shiftKey ? -y : y;
1247
+ break;
1248
+ default:
1249
+ return;
1250
+ }
1251
+ o.preventDefault(), i({
1252
+ type: "intent",
1253
+ source: "keyboard",
1254
+ deltaX: v,
1255
+ deltaY: x,
1256
+ originalEvent: o
1257
+ });
1258
+ };
1259
+ return t.addEventListener("wheel", s, { passive: !1 }), t.addEventListener("touchstart", f, { passive: !0 }), t.addEventListener("touchmove", a, { passive: !1 }), t.addEventListener("touchend", p, { passive: !0 }), t.addEventListener("keydown", m), () => {
1260
+ t.removeEventListener("wheel", s), t.removeEventListener("touchstart", f), t.removeEventListener("touchmove", a), t.removeEventListener("touchend", p), t.removeEventListener("keydown", m);
1261
+ };
1262
+ }, [e]);
1263
+ }, At = ({
1264
+ transition: e,
1265
+ orientation: t = "vertical",
1266
+ throttleDuration: n = 25
1267
+ }) => {
1268
+ const [l, r] = S(0), [c, i] = S(), s = D(!1), f = D(), a = D(0);
1269
+ R(() => {
1270
+ i(document);
1271
+ const o = document.documentElement.scrollTop;
1272
+ r(o), a.current = o;
1273
+ }, []), R(() => {
1274
+ const o = () => {
1275
+ s.current || r(document.documentElement.scrollTop);
1276
+ };
1277
+ return c == null || c.addEventListener("scroll", o), () => {
1278
+ f.current && clearTimeout(f.current), c == null || c.removeEventListener("scroll", o);
1279
+ };
1280
+ }, [c]);
1281
+ const p = D(), m = D(null);
1282
+ return R(() => {
1283
+ const o = l;
1284
+ if (m.current && (m.current.stop(), m.current = null), !s.current) {
1285
+ p.current = o;
1286
+ return;
1208
1287
  }
1209
- m.current = h, console.log(c);
1210
- }), /* @__PURE__ */ u(
1211
- ge,
1288
+ return m.current = Ce(p.current ?? o, o, {
1289
+ duration: (e == null ? void 0 : e.duration) ?? 0.5,
1290
+ ease: "circOut",
1291
+ onUpdate: (d) => {
1292
+ f.current && clearTimeout(f.current), p.current = d;
1293
+ const y = document.documentElement, v = Math.round(d * 1e3) / 1e3, x = a.current;
1294
+ Math.abs(v - x) < 0.1 || (a.current = v, s.current && y.scrollTo({ top: v }));
1295
+ },
1296
+ onComplete: () => {
1297
+ f.current = setTimeout(() => {
1298
+ s.current = !1;
1299
+ }, 300), m.current = null;
1300
+ }
1301
+ }), () => {
1302
+ m.current && (m.current.stop(), m.current = null);
1303
+ };
1304
+ }, [l]), c ? /* @__PURE__ */ u(
1305
+ ot,
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: (o) => {
1310
+ if ("deltaY" in o && o.deltaY !== 0 && c && l !== null) {
1311
+ let d = l + o.deltaY;
1312
+ const y = c.querySelector("html");
1313
+ y && (d = Math.min(d, y.scrollHeight - y.clientHeight)), d = Math.max(d, 0), r(d), s.current = !0;
1228
1314
  }
1229
- )
1315
+ }
1230
1316
  }
1231
- );
1232
- }, Qe = ({
1317
+ ) : null;
1318
+ }, lt = ({
1233
1319
  targetRef: e,
1234
1320
  children: t
1235
1321
  }) => {
1236
- const [r, o] = R(null), n = j(null), a = () => {
1322
+ const [n, l] = S(null), r = D(null), c = () => {
1237
1323
  const i = e.current;
1238
1324
  if (!i) return;
1239
1325
  const s = i.getBoundingClientRect();
1240
- o({
1326
+ l({
1241
1327
  position: "fixed",
1242
1328
  top: s.top,
1243
1329
  left: s.left,
@@ -1249,151 +1335,288 @@ 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 ? xe(/* @__PURE__ */ u("div", { style: n, children: t }), document.body) : null;
1260
1346
  };
1261
- function Ae(e) {
1347
+ function at(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: l = !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 o = await Re(e, l);
1361
+ c(o);
1362
+ })();
1363
+ }, []);
1364
+ const [i, s] = S(null), f = D(null), a = D(0), p = D(null);
1365
+ R(() => {
1366
+ if (!r) return;
1367
+ const o = {
1368
+ ...e,
1369
+ // Assurer la compatibilité avec l'API qui attend sourceColorHex
1370
+ sourceColor: e.sourceColor
1371
+ }, d = Date.now(), y = d - a.current, v = async (x) => {
1372
+ await m(x);
1373
+ };
1374
+ if (a.current === 0 || y >= t)
1375
+ f.current && (clearTimeout(f.current), f.current = null), p.current = null, a.current = d, v(o);
1376
+ else if (p.current = o, !f.current) {
1377
+ const x = Math.max(0, t - y);
1378
+ f.current = setTimeout(async () => {
1379
+ f.current = null;
1380
+ const E = p.current;
1381
+ p.current = null, E && (a.current = Date.now(), await v(E));
1382
+ }, x);
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 m = async (o) => {
1388
+ if (typeof o.sourceColor == "string" && !at(o.sourceColor))
1285
1389
  throw new Error("Invalid hex color");
1286
- try {
1287
- const p = await ke({
1288
- ...e,
1289
- sourceColor: l
1290
- });
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
- );
1298
- }
1390
+ if (!r)
1391
+ return;
1392
+ r.context.update(o), await r.load();
1393
+ const d = r == null ? void 0 : r.plugins.getPlugin(we).getInstance().outputCss;
1394
+ s(d), n == null || n(r);
1299
1395
  };
1300
- return $(() => () => {
1301
- a.current && clearTimeout(a.current);
1302
- }, []), o ? /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: o } }) : null;
1303
- }, ze = ({
1396
+ return R(() => () => {
1397
+ f.current && (clearTimeout(f.current), f.current = null);
1398
+ }, []), i ? /* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: i } }) : null;
1399
+ };
1400
+ function st() {
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 ct() {
1411
+ return typeof window > "u" || !("matchMedia" in window) ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1412
+ }
1413
+ function le(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 he(e) {
1421
+ if (!(e instanceof HTMLElement)) return !1;
1422
+ const t = e.classList;
1423
+ return Array.from(t).some(
1424
+ (l) => l.startsWith("anim-")
1425
+ ) ? !le(e) : !1;
1426
+ }
1427
+ function ae(e, t) {
1428
+ if (!le(e)) return;
1429
+ if (e.hasAttribute(`data-${t}-scroll`)) {
1430
+ const i = (e.getAttribute(`data-${t}-scroll`) || "").trim().toLowerCase(), s = i === "x" || i === "inline" ? "inline" : i === "y" || i === "block" ? "block" : "auto";
1431
+ 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`));
1432
+ }
1433
+ const n = e.getAttribute(`data-${t}-start`);
1434
+ n && e.style.setProperty(`--${t}-range-start`, n);
1435
+ const l = e.getAttribute(`data-${t}-end`);
1436
+ l && e.style.setProperty(`--${t}-range-end`, l);
1437
+ const r = e.hasAttribute(`data-${t}-paused`) || e.classList.contains(`${t}-paused`), c = e.hasAttribute(`data-${t}-run`) || e.classList.contains(`${t}-run`);
1438
+ !r && !c && e.setAttribute(`data-${t}-run`, "");
1439
+ }
1440
+ function se(e = document, t) {
1441
+ return Array.from(
1442
+ e.querySelectorAll(`[class*="${t}-"]`)
1443
+ ).filter((l) => le(l));
1444
+ }
1445
+ function it(e = document, t) {
1446
+ return Array.from(
1447
+ e.querySelectorAll('[class*="anim-"]')
1448
+ ).filter((l) => !le(l));
1449
+ }
1450
+ function ut(e = {}) {
1451
+ const { prefix: t = "anim", once: n = !0 } = e;
1452
+ if (ct())
1453
+ return () => {
1454
+ };
1455
+ const l = st(), r = /* @__PURE__ */ new WeakSet(), c = new IntersectionObserver(
1456
+ (p) => {
1457
+ for (const m of p) {
1458
+ const o = m.target;
1459
+ if (!he(o)) continue;
1460
+ const y = o.classList.contains(`${t}-out`);
1461
+ if (!y && m.isIntersecting)
1462
+ o.setAttribute(`data-${t}-in-run`, ""), n && c.unobserve(o);
1463
+ else if (y && !m.isIntersecting)
1464
+ o.setAttribute(`data-${t}-out-run`, ""), n && c.unobserve(o);
1465
+ else if (!n) {
1466
+ const x = o.style.animationName;
1467
+ o.style.animationName = "none", o.removeAttribute(`data-${t}-in-run`), o.removeAttribute(`data-${t}-out-run`), o.offsetWidth, o.style.animationName = x;
1468
+ }
1469
+ }
1470
+ },
1471
+ { threshold: [0, 0.2] }
1472
+ ), i = (p) => {
1473
+ const m = it(p || document);
1474
+ for (const o of m)
1475
+ r.has(o) || (r.add(o), c.observe(o));
1476
+ };
1477
+ i();
1478
+ let s, f = null, a = null;
1479
+ if (l)
1480
+ (() => {
1481
+ a == null && (a = requestAnimationFrame(() => {
1482
+ a = null;
1483
+ const m = se(void 0, t);
1484
+ for (const o of m) ae(o, t);
1485
+ }));
1486
+ })(), f = new MutationObserver((m) => {
1487
+ for (const o of m)
1488
+ if (o.type === "attributes") {
1489
+ const d = o.target;
1490
+ d instanceof HTMLElement && (ae(d, t), he(d) && (r.has(d) || (r.add(d), c.observe(d))));
1491
+ } else if (o.type === "childList" && o.addedNodes && o.addedNodes.length) {
1492
+ for (const d of Array.from(o.addedNodes))
1493
+ if (d instanceof HTMLElement) {
1494
+ const y = se(d, t);
1495
+ for (const v of y) ae(v, t);
1496
+ i(d);
1497
+ }
1498
+ }
1499
+ }), f.observe(document.documentElement, {
1500
+ subtree: !0,
1501
+ childList: !0,
1502
+ attributes: !0,
1503
+ attributeFilter: [
1504
+ "class",
1505
+ `data-${t}-scroll`,
1506
+ `data-${t}-start`,
1507
+ `data-${t}-end`,
1508
+ `data-${t}-paused`,
1509
+ `data-${t}-run`
1510
+ ]
1511
+ }), s = () => {
1512
+ a != null && cancelAnimationFrame(a), f && f.disconnect();
1513
+ };
1514
+ else {
1515
+ let p;
1516
+ se(void 0, t).length > 0 && import("./scrollDriven-AP2yWhzi.js").then((o) => {
1517
+ p = o.initScrollViewFallback({ once: n });
1518
+ }), s = () => {
1519
+ typeof p == "function" && p();
1520
+ };
1521
+ }
1522
+ return () => {
1523
+ s && s(), c.disconnect();
1524
+ };
1525
+ }
1526
+ const Ht = ut, dt = ({
1304
1527
  variant: e = "filled",
1305
1528
  disabled: t = !1,
1306
- icon: r,
1307
- href: o,
1308
- label: n,
1309
- disableTextMargins: a,
1529
+ icon: n,
1530
+ href: l,
1531
+ label: r,
1532
+ disableTextMargins: c,
1310
1533
  className: i,
1311
1534
  iconPosition: s = "left",
1312
1535
  loading: f = !1,
1313
- shape: l = "rounded",
1536
+ shape: a = "rounded",
1314
1537
  onClick: p,
1315
1538
  onToggle: m,
1316
- activated: c,
1317
- ref: h,
1318
- size: v = "medium",
1319
- allowShapeTransformation: b = !0,
1320
- transition: L,
1321
- children: I,
1322
- ...w
1539
+ activated: o,
1540
+ ref: d,
1541
+ size: y = "medium",
1542
+ allowShapeTransformation: v = !0,
1543
+ transition: x,
1544
+ children: E,
1545
+ ...L
1323
1546
  }) => {
1324
- if (I && (n = I), !n)
1547
+ if (E && (r = E), !r)
1325
1548
  throw new Error(
1326
1549
  "Button component requires either a label prop or children content"
1327
1550
  );
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) => {
1334
- t && M.preventDefault();
1335
- const O = !C;
1336
- V(O), m(O);
1337
- }) : P = (M) => {
1338
- t && M.preventDefault(), p && p(M);
1551
+ const B = l ? "a" : "button", N = D(null), I = d || N, [$, A] = K.useState(o);
1552
+ R(() => {
1553
+ A(o);
1554
+ }, [o]), x = { duration: 0.3, ...x };
1555
+ let W;
1556
+ m ? m && (W = (C) => {
1557
+ t && C.preventDefault();
1558
+ const O = !$;
1559
+ A(O), m(O);
1560
+ }) : W = (C) => {
1561
+ t && C.preventDefault(), p && p(C);
1339
1562
  };
1340
- const k = $e({
1341
- allowShapeTransformation: b,
1342
- size: v,
1343
- disableTextMargins: a,
1344
- shape: l,
1345
- href: o,
1563
+ const k = He({
1564
+ allowShapeTransformation: v,
1565
+ size: y,
1566
+ disableTextMargins: c,
1567
+ shape: a,
1568
+ href: l,
1346
1569
  disabled: t,
1347
- icon: r,
1570
+ icon: n,
1348
1571
  iconPosition: s,
1349
1572
  loading: f,
1350
1573
  variant: e,
1351
- transition: L,
1574
+ transition: x,
1352
1575
  className: i,
1353
- isActive: C ?? !1,
1576
+ isActive: $ ?? !1,
1354
1577
  onToggle: m,
1355
- 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(
1578
+ activated: $,
1579
+ label: r,
1580
+ children: r
1581
+ }), g = n ? /* @__PURE__ */ u(Z, { icon: n, className: k.icon }) : /* @__PURE__ */ u(te, {});
1582
+ return /* @__PURE__ */ V(
1360
1583
  B,
1361
1584
  {
1362
- ref: E,
1363
- href: o,
1585
+ ref: I,
1586
+ href: l,
1364
1587
  className: k.button,
1365
- ...w,
1366
- onClick: P,
1588
+ ...L,
1589
+ onClick: W,
1367
1590
  disabled: t,
1368
- "aria-pressed": m ? C : void 0,
1369
- style: { transition: L.duration + "s" },
1591
+ "aria-pressed": m ? $ : void 0,
1592
+ style: { transition: x.duration + "s" },
1370
1593
  children: [
1371
1594
  /* @__PURE__ */ u("div", { className: k.touchTarget }),
1372
1595
  /* @__PURE__ */ u(
1373
1596
  "div",
1374
1597
  {
1375
1598
  className: k.stateLayer,
1376
- style: { transition: L.duration + "s" },
1599
+ style: { transition: x.duration + "s" },
1377
1600
  children: !t && /* @__PURE__ */ u(
1378
- ne,
1601
+ re,
1379
1602
  {
1380
1603
  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
1604
+ triggerRef: I
1382
1605
  }
1383
1606
  )
1384
1607
  }
1385
1608
  ),
1386
- s === "left" && y,
1609
+ s === "left" && g,
1387
1610
  f && /* @__PURE__ */ u(
1388
1611
  "div",
1389
1612
  {
1390
1613
  className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
1391
1614
  children: /* @__PURE__ */ u(
1392
- Ze,
1615
+ tt,
1393
1616
  {
1394
1617
  className: () => ({
1395
1618
  progressIndicator: "h-6 w-6",
1396
- activeIndicator: d(
1619
+ activeIndicator: h(
1397
1620
  {
1398
1621
  "!stroke-primary": e === "elevated" && !t,
1399
1622
  "!stroke-on-surface/[38%]": e === "elevated" && t
@@ -1421,295 +1644,295 @@ const It = ({
1421
1644
  )
1422
1645
  }
1423
1646
  ),
1424
- /* @__PURE__ */ u("span", { className: k.label, children: n }),
1425
- s === "right" && y
1647
+ /* @__PURE__ */ u("span", { className: k.label, children: r }),
1648
+ s === "right" && g
1426
1649
  ]
1427
1650
  }
1428
1651
  );
1429
- }, Et = ({
1652
+ }, Ut = ({
1430
1653
  variant: e = "outlined",
1431
1654
  className: t,
1432
- children: r,
1433
- isInteractive: o = !1,
1434
- ref: n,
1435
- ...a
1655
+ children: n,
1656
+ isInteractive: l = !1,
1657
+ ref: r,
1658
+ ...c
1436
1659
  }) => {
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
1660
+ const i = Ue({ className: t, isInteractive: l, variant: e, children: n }), s = D(null), f = r || s;
1661
+ return /* @__PURE__ */ V("div", { ...c, ref: f, className: i.card, children: [
1662
+ /* @__PURE__ */ u("div", { className: i.stateLayer, children: l && /* @__PURE__ */ u(re, { colorName: "on-surface", triggerRef: f }) }),
1663
+ n
1441
1664
  ] });
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 = ({
1665
+ }, ft = (e, t, n = [0, 1]) => {
1666
+ const [l, r] = t, [c, i] = n, f = (Math.max(l, Math.min(e, r)) - l) / (r - l);
1667
+ return c + f * (i - c);
1668
+ }, mt = ({
1446
1669
  className: e,
1447
1670
  children: t,
1448
- width: r = 1,
1449
- index: o = 0,
1450
- ref: n,
1451
- ...a
1671
+ width: n = 1,
1672
+ index: l = 0,
1673
+ ref: r,
1674
+ ...c
1452
1675
  }) => {
1453
- const i = j(null), s = n || i, f = We({
1676
+ const i = D(null), s = r || i, f = Xe({
1454
1677
  className: e,
1455
- index: o,
1456
- width: r,
1678
+ index: l,
1679
+ width: n,
1457
1680
  children: t
1458
1681
  });
1459
1682
  return /* @__PURE__ */ u(
1460
- U.div,
1683
+ F.div,
1461
1684
  {
1462
1685
  ref: s,
1463
- animate: { width: r + "px" },
1686
+ animate: { width: n + "px" },
1464
1687
  transition: {
1465
1688
  duration: 0.5,
1466
1689
  ease: "linear"
1467
1690
  },
1468
1691
  className: f.carouselItem,
1469
- ...a,
1692
+ ...c,
1470
1693
  children: t
1471
1694
  }
1472
1695
  );
1473
- }, kt = ({
1696
+ }, Xt = ({
1474
1697
  variant: e = "hero",
1475
1698
  className: t,
1476
- children: r,
1477
- ref: o,
1478
- marginPourcent: n = 0,
1479
- inputRange: a = [0.21, 0.65],
1699
+ children: n,
1700
+ ref: l,
1701
+ marginPourcent: r = 0,
1702
+ inputRange: c = [0.21, 0.65],
1480
1703
  outputRange: i = [42, 300],
1481
1704
  gap: s = 8,
1482
1705
  onChange: f,
1483
- scrollSensitivity: l = 1.25,
1706
+ scrollSensitivity: a = 1.25,
1484
1707
  ...p
1485
1708
  }) => {
1486
- var q, z;
1487
- const m = j(null), c = o || m, h = De({
1709
+ var Y, z;
1710
+ const m = D(null), o = l || m, d = Oe({
1488
1711
  className: t,
1489
- children: r,
1712
+ children: n,
1490
1713
  variant: e,
1491
- inputRange: a,
1714
+ inputRange: c,
1492
1715
  outputRange: i,
1493
- marginPourcent: n,
1716
+ marginPourcent: r,
1494
1717
  onChange: f,
1495
1718
  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])
1719
+ scrollSensitivity: a
1720
+ }), y = K.Children.toArray(n).filter(
1721
+ (b) => K.isValidElement(b) && b.type === mt
1722
+ ), v = D(null), [x, E] = S([]), [L, B] = S(null), N = () => {
1723
+ var U;
1724
+ if (!v.current || !o.current || !L) return [];
1725
+ const { scrollVisible: b, scrollProgress: w } = L;
1726
+ function P(X, J) {
1727
+ return X.map(
1728
+ (T) => (T - J) / Math.abs(X[1] - X[0])
1506
1729
  );
1507
1730
  }
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;
1731
+ let H = y.map((X, J) => {
1732
+ if (!I[J].current || !v.current) return 0;
1733
+ let ne = J / (y.length - 1);
1734
+ return ne > 1 && (ne = 1), ne < 0 && (ne = 0), ne;
1512
1735
  });
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());
1736
+ H = P(H, w);
1737
+ let M = ((((U = o.current) == null ? void 0 : U.clientWidth) ?? b) - (i[0] + s)) / (i[1] + s);
1738
+ return H.map((X, J) => ({ value: Math.abs(X), originalIndex: J })).sort((X, J) => X.value - J.value).forEach((X, J) => {
1739
+ J === 0 && A(X.originalIndex);
1740
+ let T = ft(M, [0, 1], [0, i[1]]);
1741
+ T < i[0] && (T = i[0]), M--, H[X.originalIndex] = T;
1742
+ }), H;
1743
+ }, I = D([]).current, [$, A] = S(0);
1744
+ R(() => {
1745
+ f && f($);
1746
+ }, [$]), I.length !== y.length && y.forEach((b, w) => {
1747
+ I[w] || (I[w] = K.createRef());
1525
1748
  });
1526
- const P = v.map((g, x) => Y.cloneElement(
1527
- g,
1749
+ const W = y.map((b, w) => K.cloneElement(
1750
+ b,
1528
1751
  {
1529
- width: L[x],
1530
- ref: E[x],
1531
- key: x,
1532
- index: x
1752
+ width: x[w],
1753
+ ref: I[w],
1754
+ key: w,
1755
+ index: w
1533
1756
  }
1534
- )), k = he((w == null ? void 0 : w.scrollProgress) ?? 0), y = oe(
1757
+ )), k = Me((L == null ? void 0 : L.scrollProgress) ?? 0), g = me(
1535
1758
  k,
1536
1759
  [0, 1],
1537
1760
  [
1538
1761
  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)
1762
+ 1 - (((Y = o.current) == null ? void 0 : Y.clientWidth) ?? 0) / (((z = v == null ? void 0 : v.current) == null ? void 0 : z.clientWidth) ?? 0)
1540
1763
  ]
1541
- ), M = oe(
1542
- y,
1543
- (g) => `${-g * 100}%`
1544
- ), O = (g) => {
1545
- g.scrollTotal > 0 && B(g);
1764
+ ), C = me(
1765
+ g,
1766
+ (b) => `${-b * 100}%`
1767
+ ), O = (b) => {
1768
+ b.scrollTotal > 0 && B(b);
1546
1769
  };
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,
1770
+ R(() => {
1771
+ const b = N();
1772
+ E(b);
1773
+ }, [L]);
1774
+ const [q, G] = S(0);
1775
+ return ve(() => {
1776
+ let b = i[1];
1777
+ L && b > L.scrollVisible && (b = L.scrollVisible);
1778
+ const w = (b + s) * W.length / a;
1779
+ G(w);
1780
+ }, [o, I, L]), /* @__PURE__ */ u("div", { className: d.carousel, ref: o, ...p, children: /* @__PURE__ */ u(
1781
+ rt,
1559
1782
  {
1560
1783
  draggable: !0,
1561
1784
  orientation: "horizontal",
1562
1785
  onScroll: O,
1563
- scrollSize: K,
1786
+ scrollSize: q,
1564
1787
  children: /* @__PURE__ */ u(
1565
- U.div,
1788
+ F.div,
1566
1789
  {
1567
- className: h.track,
1568
- ref: b,
1790
+ className: d.track,
1791
+ ref: v,
1569
1792
  style: {
1570
1793
  transitionDuration: "0.5s",
1571
1794
  transitionTimingFunction: "ease-out",
1572
1795
  gap: `${s}px`,
1573
- x: M
1796
+ x: C
1574
1797
  },
1575
- children: P
1798
+ children: W
1576
1799
  }
1577
1800
  )
1578
1801
  }
1579
1802
  ) });
1580
- }, tt = ({
1803
+ }, ht = ({
1581
1804
  orientation: e = "horizontal",
1582
1805
  className: t,
1583
- ...r
1806
+ ...n
1584
1807
  }) => {
1585
- const o = Ve({ orientation: e, className: t });
1586
- return /* @__PURE__ */ u("hr", { className: o.divider, ...r });
1587
- }, G = [];
1808
+ const l = Ye({ orientation: e, className: t });
1809
+ return /* @__PURE__ */ u("hr", { className: l.divider, ...n });
1810
+ }, _ = [];
1588
1811
  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();
1812
+ _.push((e + 256).toString(16).slice(1));
1813
+ function pt(e, t = 0) {
1814
+ 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
1815
  }
1593
- let ae;
1594
- const nt = new Uint8Array(16);
1595
- function lt() {
1596
- if (!ae) {
1816
+ let ce;
1817
+ const yt = new Uint8Array(16);
1818
+ function gt() {
1819
+ if (!ce) {
1597
1820
  if (typeof crypto > "u" || !crypto.getRandomValues)
1598
1821
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1599
- ae = crypto.getRandomValues.bind(crypto);
1822
+ ce = crypto.getRandomValues.bind(crypto);
1600
1823
  }
1601
- return ae(nt);
1824
+ return ce(yt);
1602
1825
  }
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();
1826
+ const vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), pe = { randomUUID: vt };
1827
+ function ie(e, t, n) {
1828
+ var r;
1829
+ if (pe.randomUUID && !e)
1830
+ return pe.randomUUID();
1608
1831
  e = e || {};
1609
- const o = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? lt();
1610
- if (o.length < 16)
1832
+ const l = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? gt();
1833
+ if (l.length < 16)
1611
1834
  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);
1835
+ return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, pt(l);
1613
1836
  }
1614
- const we = ({
1837
+ const Le = ({
1615
1838
  variant: e = "plain",
1616
1839
  buttons: t,
1617
- className: r,
1618
- children: o,
1619
- title: n,
1620
- text: a,
1840
+ className: n,
1841
+ children: l,
1842
+ title: r,
1843
+ text: c,
1621
1844
  position: i,
1622
1845
  targetRef: s,
1623
1846
  ref: f,
1624
- trigger: l = ["hover", "focus"],
1847
+ trigger: a = ["hover", "focus"],
1625
1848
  ...p
1626
1849
  }) => {
1627
- if (!o && !s)
1850
+ if (!l && !s)
1628
1851
  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);
1852
+ Array.isArray(a) || (a = [a]), t && !Array.isArray(t) && (t = [t]);
1853
+ const m = D(null), o = s || m, [d, y] = S(null), [v] = S(ie()), [x, E] = S(!1), L = D(null);
1854
+ R(() => {
1855
+ const g = (C) => {
1856
+ y(C.detail);
1634
1857
  };
1635
- return document.addEventListener("tooltip-update", y), () => {
1858
+ return document.addEventListener("tooltip-update", g), () => {
1636
1859
  document.removeEventListener(
1637
1860
  "tooltip-update",
1638
- y
1861
+ g
1639
1862
  );
1640
1863
  };
1641
- }, []), $(() => {
1642
- w.current && clearTimeout(w.current), h ? I(h === b) : w.current = setTimeout(() => {
1643
- I(!1);
1864
+ }, []), R(() => {
1865
+ L.current && clearTimeout(L.current), d ? E(d === v) : L.current = setTimeout(() => {
1866
+ E(!1);
1644
1867
  }, 1200);
1645
- }, [h, b]);
1868
+ }, [d, v]);
1646
1869
  const B = () => {
1647
- if (l.includes("hover")) {
1648
- const y = new CustomEvent("tooltip-update", { detail: b });
1649
- document.dispatchEvent(y);
1870
+ if (a.includes("hover")) {
1871
+ const g = new CustomEvent("tooltip-update", { detail: v });
1872
+ document.dispatchEvent(g);
1650
1873
  }
1651
1874
  }, N = () => {
1652
- if (l.includes("hover")) {
1653
- const y = new CustomEvent("tooltip-update", { detail: null });
1654
- document.dispatchEvent(y);
1875
+ if (a.includes("hover")) {
1876
+ const g = new CustomEvent("tooltip-update", { detail: null });
1877
+ document.dispatchEvent(g);
1655
1878
  }
1656
- }, E = () => {
1657
- if (l.includes("click")) {
1658
- const y = new CustomEvent("tooltip-update", {
1659
- detail: L ? null : b
1879
+ }, I = () => {
1880
+ if (a.includes("click")) {
1881
+ const g = new CustomEvent("tooltip-update", {
1882
+ detail: x ? null : v
1660
1883
  });
1661
- document.dispatchEvent(y);
1884
+ document.dispatchEvent(g);
1662
1885
  }
1663
- }, C = () => {
1664
- if (l.includes("focus")) {
1665
- const y = new CustomEvent("tooltip-update", { detail: b });
1666
- document.dispatchEvent(y);
1886
+ }, $ = () => {
1887
+ if (a.includes("focus")) {
1888
+ const g = new CustomEvent("tooltip-update", { detail: v });
1889
+ document.dispatchEvent(g);
1667
1890
  }
1668
- }, V = () => {
1669
- if (l.includes("focus")) {
1670
- const y = new CustomEvent("tooltip-update", { detail: null });
1671
- document.dispatchEvent(y);
1891
+ }, A = () => {
1892
+ if (a.includes("focus")) {
1893
+ const g = new CustomEvent("tooltip-update", { detail: null });
1894
+ document.dispatchEvent(g);
1672
1895
  }
1673
1896
  };
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);
1897
+ R(() => {
1898
+ if (o != null && o.current) {
1899
+ const g = o.current;
1900
+ return g.addEventListener("mouseenter", B), g.addEventListener("mouseleave", N), g.addEventListener("click", I), g.addEventListener("focus", $), g.addEventListener("blur", A), () => {
1901
+ g.removeEventListener("mouseenter", B), g.removeEventListener("mouseleave", N), g.removeEventListener("click", I), g.removeEventListener("focus", $), g.removeEventListener("blur", A);
1679
1902
  };
1680
1903
  }
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");
1904
+ }, [o, a, v, x]);
1905
+ const W = !s && ee(l) ? oe(l, { ref: m }) : l;
1906
+ if (!i && typeof window < "u" && o != null && o.current && !i) {
1907
+ const g = o.current.getBoundingClientRect(), C = window.innerWidth, O = window.innerHeight, q = g.left / C, G = g.top / O;
1908
+ 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
1909
  }
1687
- const k = Ye({
1910
+ const k = et({
1688
1911
  variant: e,
1689
1912
  buttons: t,
1690
- className: r,
1691
- title: n,
1692
- text: a,
1913
+ className: n,
1914
+ title: r,
1915
+ text: c,
1693
1916
  position: i,
1694
- trigger: l,
1917
+ trigger: a,
1695
1918
  targetRef: s,
1696
- children: o
1919
+ children: l
1697
1920
  });
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,
1921
+ return /* @__PURE__ */ V(te, { children: [
1922
+ W,
1923
+ /* @__PURE__ */ u(Q, { children: x && /* @__PURE__ */ u(lt, { targetRef: o, children: /* @__PURE__ */ u(
1924
+ F.div,
1702
1925
  {
1703
- initial: { opacity: h ? 1 : 0 },
1926
+ initial: { opacity: d ? 1 : 0 },
1704
1927
  animate: { opacity: 1 },
1705
- transition: { duration: h ? 0 : 0.3 },
1706
- exit: { opacity: h ? 1 : 0 },
1928
+ transition: { duration: d ? 0 : 0.3 },
1929
+ exit: { opacity: d ? 1 : 0 },
1707
1930
  className: k.toolTip,
1708
1931
  ...p,
1709
1932
  onMouseEnter: B,
1710
1933
  onMouseLeave: N,
1711
- children: /* @__PURE__ */ D(
1712
- U.div,
1934
+ children: /* @__PURE__ */ V(
1935
+ F.div,
1713
1936
  {
1714
1937
  className: k.container,
1715
1938
  layoutId: "tool-tip",
@@ -1719,16 +1942,16 @@ const we = ({
1719
1942
  damping: 20
1720
1943
  },
1721
1944
  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,
1945
+ r && /* @__PURE__ */ u("div", { className: k.subHead, children: r }),
1946
+ /* @__PURE__ */ u("div", { className: k.supportingText, children: c }),
1947
+ t && /* @__PURE__ */ u("div", { className: k.actions, children: Array.isArray(t) && t.map((g, C) => /* @__PURE__ */ u(
1948
+ dt,
1726
1949
  {
1727
1950
  size: "small",
1728
1951
  variant: "text",
1729
- ...y
1952
+ ...g
1730
1953
  },
1731
- M
1954
+ C
1732
1955
  )) })
1733
1956
  ]
1734
1957
  }
@@ -1736,17 +1959,17 @@ const we = ({
1736
1959
  }
1737
1960
  ) }) })
1738
1961
  ] });
1739
- }, fe = ({
1962
+ }, ye = ({
1740
1963
  className: e,
1741
1964
  label: t,
1742
- variant: r = "primary",
1743
- size: o = "medium",
1744
- href: n,
1745
- type: a,
1965
+ variant: n = "primary",
1966
+ size: l = "medium",
1967
+ href: r,
1968
+ type: c,
1746
1969
  icon: i,
1747
1970
  isExtended: s = !1,
1748
1971
  ref: f,
1749
- transition: l,
1972
+ transition: a,
1750
1973
  children: p,
1751
1974
  ...m
1752
1975
  }) => {
@@ -1754,28 +1977,28 @@ const we = ({
1754
1977
  throw new Error(
1755
1978
  "FAB component requires either a label prop or children content"
1756
1979
  );
1757
- const c = n ? "a" : "button", h = je({
1758
- href: n,
1980
+ const o = r ? "a" : "button", d = je({
1981
+ href: r,
1759
1982
  icon: i,
1760
1983
  isExtended: s,
1761
1984
  label: t,
1762
- size: o,
1763
- variant: r,
1985
+ size: l,
1986
+ variant: n,
1764
1987
  className: e,
1765
- transition: l,
1988
+ transition: a,
1766
1989
  children: t
1767
1990
  });
1768
- l = { duration: 0.3, ...l };
1769
- const v = j(null), b = f || v, L = {
1991
+ a = { duration: 0.3, ...a };
1992
+ const y = D(null), v = f || y, x = {
1770
1993
  visible: {
1771
1994
  width: "auto",
1772
1995
  marginLeft: 12,
1773
1996
  opacity: 1,
1774
1997
  transition: {
1775
- ...l,
1998
+ ...a,
1776
1999
  opacity: {
1777
- duration: l.duration / 2,
1778
- delay: l.duration - l.duration / 2
2000
+ duration: a.duration / 2,
2001
+ delay: a.duration - a.duration / 2
1779
2002
  }
1780
2003
  }
1781
2004
  },
@@ -1784,144 +2007,144 @@ const we = ({
1784
2007
  marginLeft: 0,
1785
2008
  opacity: 0,
1786
2009
  transition: {
1787
- ...l,
2010
+ ...a,
1788
2011
  marginLeft: {
1789
- duration: l.duration / 2,
1790
- delay: l.duration - l.duration / 2
2012
+ duration: a.duration / 2,
2013
+ delay: a.duration - a.duration / 2
1791
2014
  }
1792
2015
  }
1793
2016
  }
1794
2017
  };
1795
- return /* @__PURE__ */ D(
1796
- c,
2018
+ return /* @__PURE__ */ V(
2019
+ o,
1797
2020
  {
1798
2021
  ...m,
1799
- ref: b,
1800
- href: n,
2022
+ ref: v,
2023
+ href: r,
1801
2024
  "aria-label": s ? void 0 : t,
1802
- className: h.fab,
2025
+ className: d.fab,
1803
2026
  children: [
1804
2027
  /* @__PURE__ */ u(
1805
- we,
2028
+ Le,
1806
2029
  {
1807
2030
  trigger: s ? null : void 0,
1808
2031
  text: t,
1809
- targetRef: b
2032
+ targetRef: v
1810
2033
  }
1811
2034
  ),
1812
- /* @__PURE__ */ u("span", { className: h.stateLayer, children: /* @__PURE__ */ u(
1813
- ne,
2035
+ /* @__PURE__ */ u("span", { className: d.stateLayer, children: /* @__PURE__ */ u(
2036
+ re,
1814
2037
  {
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"
2038
+ colorName: h({
2039
+ primary: n == "surface",
2040
+ "on-primary-container": n == "primary",
2041
+ "on-secondary-container": n == "secondary",
2042
+ "on-tertiary-container": n == "tertiary"
1820
2043
  }),
1821
- triggerRef: b
2044
+ triggerRef: v
1822
2045
  }
1823
2046
  ) }),
1824
- /* @__PURE__ */ u(Q, { icon: i, className: h.icon }),
1825
- /* @__PURE__ */ u(A, { children: s && /* @__PURE__ */ u(
1826
- U.span,
2047
+ /* @__PURE__ */ u(Z, { icon: i, className: d.icon }),
2048
+ /* @__PURE__ */ u(Q, { children: s && /* @__PURE__ */ u(
2049
+ F.span,
1827
2050
  {
1828
- variants: L,
2051
+ variants: x,
1829
2052
  initial: "hidden",
1830
2053
  animate: "visible",
1831
2054
  exit: "hidden",
1832
- className: h.label,
2055
+ className: d.label,
1833
2056
  children: t
1834
2057
  }
1835
2058
  ) })
1836
2059
  ]
1837
2060
  }
1838
2061
  );
1839
- }, ie = ({
2062
+ }, ue = ({
1840
2063
  variant: e = "standard",
1841
2064
  href: t,
1842
- disabled: r = !1,
1843
- type: o = "button",
1844
- title: n,
1845
- label: a,
2065
+ disabled: n = !1,
2066
+ type: l = "button",
2067
+ title: r,
2068
+ label: c,
1846
2069
  onToggle: i,
1847
2070
  activated: s = !1,
1848
2071
  onClick: f,
1849
- icon: l,
2072
+ icon: a,
1850
2073
  size: p = "medium",
1851
2074
  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,
2075
+ className: o,
2076
+ ref: d,
2077
+ width: y = "default",
2078
+ shape: v = "rounded",
2079
+ allowShapeTransformation: x = !0,
2080
+ transition: E,
2081
+ children: L,
1859
2082
  ...B
1860
2083
  }) => {
1861
- if (w && (a = w), !a)
2084
+ if (L && (c = L), !c)
1862
2085
  throw new Error(
1863
2086
  "IconButton component requires either a label prop or children content to provide an accessible aria-label"
1864
2087
  );
1865
- n || (n = a);
1866
- const [N, E] = Y.useState(s);
1867
- let C;
1868
- 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);
2088
+ r || (r = c);
2089
+ const [N, I] = K.useState(s);
2090
+ let $;
2091
+ i ? i && ($ = (C) => {
2092
+ n && C.preventDefault(), I(!N), i(!!N);
2093
+ }, a = N && m || a) : $ = (C) => {
2094
+ n && C.preventDefault(), f && f(C);
2095
+ }, R(() => {
2096
+ I(s);
1874
2097
  }, [s]);
1875
- const V = t ? "a" : "button", P = Ue({
1876
- transition: I,
1877
- shape: b,
1878
- allowShapeTransformation: L,
1879
- width: v,
2098
+ const A = t ? "a" : "button", W = qe({
2099
+ transition: E,
2100
+ shape: v,
2101
+ allowShapeTransformation: x,
2102
+ width: y,
1880
2103
  href: t,
1881
2104
  activated: N,
1882
- label: a,
2105
+ label: c,
1883
2106
  iconSelected: m,
1884
2107
  isActive: N,
1885
2108
  onToggle: i,
1886
- disabled: r,
1887
- icon: l,
2109
+ disabled: n,
2110
+ icon: a,
1888
2111
  variant: e,
1889
- className: c,
2112
+ className: o,
1890
2113
  size: p,
1891
- children: a,
2114
+ children: c,
1892
2115
  ...B
1893
- }), k = j(null), y = h || k;
1894
- return I = { duration: 0.3, ...I }, /* @__PURE__ */ D(
1895
- V,
2116
+ }), k = D(null), g = d || k;
2117
+ return E = { duration: 0.3, ...E }, /* @__PURE__ */ V(
2118
+ A,
1896
2119
  {
1897
- disabled: r,
2120
+ disabled: n,
1898
2121
  href: t,
1899
- style: { transition: I.duration + "s" },
1900
- className: P.iconButton,
1901
- "aria-label": a,
2122
+ style: { transition: E.duration + "s" },
2123
+ className: W.iconButton,
2124
+ "aria-label": c,
1902
2125
  ...B,
1903
2126
  title: void 0,
1904
- onClick: C,
1905
- ref: y,
2127
+ onClick: $,
2128
+ ref: g,
1906
2129
  children: [
1907
2130
  /* @__PURE__ */ u(
1908
- we,
2131
+ Le,
1909
2132
  {
1910
- targetRef: y,
1911
- trigger: r ? null : void 0,
1912
- text: n
2133
+ targetRef: g,
2134
+ trigger: n ? null : void 0,
2135
+ text: r
1913
2136
  }
1914
2137
  ),
1915
- /* @__PURE__ */ u("div", { className: P.touchTarget }),
2138
+ /* @__PURE__ */ u("div", { className: W.touchTarget }),
1916
2139
  /* @__PURE__ */ u(
1917
2140
  "div",
1918
2141
  {
1919
- className: P.stateLayer,
1920
- style: { transition: I.duration + "s" },
1921
- children: !r && /* @__PURE__ */ u(
1922
- ne,
2142
+ className: W.stateLayer,
2143
+ style: { transition: E.duration + "s" },
2144
+ children: !n && /* @__PURE__ */ u(
2145
+ re,
1923
2146
  {
1924
- colorName: d(
2147
+ colorName: h(
1925
2148
  e === "standard" && {
1926
2149
  "on-surface-variant": !N,
1927
2150
  primary: N
@@ -1939,22 +2162,22 @@ const we = ({
1939
2162
  "on-primary": N
1940
2163
  }
1941
2164
  ),
1942
- triggerRef: y
2165
+ triggerRef: g
1943
2166
  }
1944
2167
  )
1945
2168
  }
1946
2169
  ),
1947
- l && /* @__PURE__ */ u(Q, { icon: l, className: P.icon })
2170
+ a && /* @__PURE__ */ u(Z, { icon: a, className: W.icon })
1948
2171
  ]
1949
2172
  }
1950
2173
  );
1951
- }, St = ({
2174
+ }, Ot = ({
1952
2175
  className: e,
1953
2176
  valueFormatter: t,
1954
- step: r = 10,
1955
- name: o,
1956
- value: n = 0,
1957
- min: a = 0,
2177
+ step: n = 10,
2178
+ name: l,
2179
+ value: r = 0,
2180
+ min: c = 0,
1958
2181
  max: i = 100,
1959
2182
  marks: s = [
1960
2183
  {
@@ -1967,98 +2190,98 @@ const we = ({
1967
2190
  }
1968
2191
  ],
1969
2192
  ref: f,
1970
- onChange: l,
2193
+ onChange: a,
1971
2194
  ...p
1972
2195
  }) => {
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);
2196
+ const m = (b) => {
2197
+ const w = d(), P = o();
2198
+ return b === 1 / 0 ? 100 : b === -1 / 0 ? 0 : (b - w) / (P - w) * 100;
2199
+ }, o = (b = !1) => b ? i : i == 1 / 0 ? s[(s == null ? void 0 : s.length) - 1].value : i, d = (b = !1) => b ? c : c == -1 / 0 ? s[0].value : c, y = (b) => {
2200
+ const w = d(!1);
2201
+ return (o(!1) - w) * b / 100 + w;
2202
+ }, [v, x] = S(!1), E = D(null), L = f || E, [B, N] = S(r), [I, $] = S(m(r)), [A, W] = S(!1), k = (b) => {
2203
+ W(!0), x(!0), O(b);
2204
+ }, g = () => {
2205
+ W(!1), x(!1);
1983
2206
  };
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);
1986
- }), [V]);
1987
- const M = He({
2207
+ R(() => (A ? (window.addEventListener("mouseup", g), window.addEventListener("mousemove", O), window.addEventListener("touchend", g), window.addEventListener("touchmove", O)) : (window.removeEventListener("mouseup", g), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", g), window.removeEventListener("touchmove", O)), () => {
2208
+ window.removeEventListener("mouseup", g), window.removeEventListener("mousemove", O), window.removeEventListener("touchend", g), window.removeEventListener("touchmove", O);
2209
+ }), [A]);
2210
+ const C = Ge({
1988
2211
  className: e,
1989
- isChanging: b,
2212
+ isChanging: v,
1990
2213
  marks: s,
1991
2214
  max: i,
1992
- min: a,
1993
- name: o,
1994
- step: r,
2215
+ min: c,
2216
+ name: l,
2217
+ step: n,
1995
2218
  value: B,
1996
2219
  valueFormatter: t,
1997
- onChange: l
1998
- }), O = (g) => {
1999
- const x = w == null ? void 0 : w.current;
2000
- 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 });
2220
+ onChange: a
2221
+ }), O = (b) => {
2222
+ const w = L == null ? void 0 : L.current;
2223
+ if (w) {
2224
+ const P = w.getBoundingClientRect().left, M = ((b.type === "touchmove" || b.type === "touchstart" ? b.touches[0].clientX : b.clientX) - P) / w.offsetWidth * 100;
2225
+ q({ pourcent: M });
2003
2226
  }
2004
- }, K = ({
2005
- pourcent: g,
2006
- value: x
2227
+ }, q = ({
2228
+ pourcent: b,
2229
+ value: w
2007
2230
  }) => {
2008
- if (g) {
2009
- if (g >= 100) {
2010
- N(c(!0)), C(100);
2231
+ if (b) {
2232
+ if (b >= 100) {
2233
+ N(o(!0)), $(100);
2011
2234
  return;
2012
2235
  }
2013
- if (g <= 0) {
2014
- N(h(!0)), C(0);
2236
+ if (b <= 0) {
2237
+ N(d(!0)), $(0);
2015
2238
  return;
2016
2239
  }
2017
- x = v(g), x == h() && (x = h(!0)), x == c() && (x = c(!0));
2018
- } else if (x != null) {
2019
- if (x >= c()) {
2020
- N(c(!0)), C(100);
2240
+ w = y(b), w == d() && (w = d(!0)), w == o() && (w = o(!0));
2241
+ } else if (w != null) {
2242
+ if (w >= o()) {
2243
+ N(o(!0)), $(100);
2021
2244
  return;
2022
2245
  }
2023
- if (x <= h()) {
2024
- N(h(!0)), C(0);
2246
+ if (w <= d()) {
2247
+ N(d(!0)), $(0);
2025
2248
  return;
2026
2249
  }
2027
- g = m(x);
2250
+ b = m(w);
2028
2251
  } else
2029
2252
  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);
2253
+ n != null ? w = Math.round((w - d()) / n) * n + d() : s && (w = s.reduce((P, H, M) => {
2254
+ let U = H.value === 1 / 0 ? o() : H.value === -1 / 0 ? d() : H.value, X = P.value === 1 / 0 ? o() : P.value === -1 / 0 ? d() : P.value;
2255
+ return U = Math.abs(U - w), X = Math.abs(X - w), U < X ? H : P;
2256
+ }).value), w >= o() && (w = o(!0)), w <= d() && (w = d(!0)), b = m(w), N(w), $(b), a && a(w);
2257
+ }, [G, Y] = S(0);
2258
+ return R(() => {
2259
+ const b = () => {
2260
+ L.current && Y(L.current.offsetWidth);
2038
2261
  };
2039
- return g(), window.addEventListener("resize", g), () => {
2040
- window.removeEventListener("resize", g);
2262
+ return b(), window.addEventListener("resize", b), () => {
2263
+ window.removeEventListener("resize", b);
2041
2264
  };
2042
- }, []), /* @__PURE__ */ D(
2265
+ }, []), /* @__PURE__ */ V(
2043
2266
  "div",
2044
2267
  {
2045
2268
  tabIndex: 0,
2046
- onKeyDown: (g) => {
2047
- switch (g.key) {
2269
+ onKeyDown: (b) => {
2270
+ switch (b.key) {
2048
2271
  case "ArrowRight":
2049
- if (r)
2050
- K({ value: B + r });
2272
+ if (n)
2273
+ q({ value: B + n });
2051
2274
  else if (s) {
2052
- const x = s.find((W) => W.value > B);
2053
- x && K({ value: x.value });
2275
+ const w = s.find((P) => P.value > B);
2276
+ w && q({ value: w.value });
2054
2277
  }
2055
2278
  break;
2056
2279
  case "ArrowLeft":
2057
- if (r)
2058
- K({ value: B - r });
2280
+ if (n)
2281
+ q({ value: B - n });
2059
2282
  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 });
2283
+ const w = s.slice(0).reverse().find((P, H, M) => B === 1 / 0 ? H === 1 : P.value < B);
2284
+ w && q({ value: w.value });
2062
2285
  }
2063
2286
  break;
2064
2287
  default:
@@ -2066,30 +2289,30 @@ const we = ({
2066
2289
  }
2067
2290
  },
2068
2291
  role: "slider",
2069
- "aria-valuemin": h(!0),
2070
- "aria-valuemax": c(!0),
2292
+ "aria-valuemin": d(!0),
2293
+ "aria-valuemax": o(!0),
2071
2294
  "aria-valuenow": B,
2072
2295
  "aria-valuetext": B.toString(),
2073
- className: M.slider,
2296
+ className: C.slider,
2074
2297
  onMouseDown: k,
2075
2298
  onClick: O,
2076
- ref: w,
2299
+ ref: L,
2077
2300
  onTouchStart: k,
2078
- onDragStart: (g) => g.preventDefault(),
2301
+ onDragStart: (b) => b.preventDefault(),
2079
2302
  ...p,
2080
2303
  children: [
2081
- /* @__PURE__ */ u("input", { type: "hidden", name: o, value: B }),
2304
+ /* @__PURE__ */ u("input", { type: "hidden", name: l, value: B }),
2082
2305
  /* @__PURE__ */ u(
2083
2306
  "div",
2084
2307
  {
2085
- className: M.activeTrack,
2086
- style: { flex: E / 100 }
2308
+ className: C.activeTrack,
2309
+ style: { flex: I / 100 }
2087
2310
  }
2088
2311
  ),
2089
- /* @__PURE__ */ u("div", { className: M.handle, children: /* @__PURE__ */ u(A, { children: b && /* @__PURE__ */ u(
2090
- U.div,
2312
+ /* @__PURE__ */ u("div", { className: C.handle, children: /* @__PURE__ */ u(Q, { children: v && /* @__PURE__ */ u(
2313
+ F.div,
2091
2314
  {
2092
- className: M.valueIndicator,
2315
+ className: C.valueIndicator,
2093
2316
  initial: "hidden",
2094
2317
  animate: "visible",
2095
2318
  exit: "hidden",
@@ -2109,29 +2332,29 @@ const we = ({
2109
2332
  /* @__PURE__ */ u(
2110
2333
  "div",
2111
2334
  {
2112
- className: M.inactiveTrack,
2113
- style: { flex: 1 - E / 100 }
2335
+ className: C.inactiveTrack,
2336
+ style: { flex: 1 - I / 100 }
2114
2337
  }
2115
2338
  ),
2116
2339
  /* @__PURE__ */ u(
2117
2340
  "div",
2118
2341
  {
2119
2342
  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(
2343
+ children: s && s.map((b, w) => {
2344
+ let P = null;
2345
+ const H = (v ? 9 : 10) / G * 100, M = m(b.value);
2346
+ return M <= I - H ? P = !0 : M >= I + H && (P = !1), /* @__PURE__ */ u(
2124
2347
  "div",
2125
2348
  {
2126
- className: d(M.dot, {
2127
- "bg-primary-container": W != null && W,
2128
- "bg-primary": W != null && !W
2349
+ className: h(C.dot, {
2350
+ "bg-primary-container": P != null && P,
2351
+ "bg-primary": P != null && !P
2129
2352
  }),
2130
2353
  style: {
2131
- left: `${m(g.value)}%`
2354
+ left: `${m(b.value)}%`
2132
2355
  }
2133
2356
  },
2134
- x
2357
+ w
2135
2358
  );
2136
2359
  })
2137
2360
  }
@@ -2141,209 +2364,209 @@ const we = ({
2141
2364
  );
2142
2365
  };
2143
2366
  /*!
2144
- * Font Awesome Free 7.0.1 by @fontawesome - https://fontawesome.com
2367
+ * Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
2145
2368
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2146
2369
  * Copyright 2025 Fonticons, Inc.
2147
2370
  */
2148
- var at = {
2371
+ var xt = {
2149
2372
  prefix: "fas",
2150
2373
  iconName: "circle-exclamation",
2151
2374
  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 = {
2375
+ }, de = {
2153
2376
  prefix: "fas",
2154
2377
  iconName: "xmark",
2155
2378
  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 = {
2379
+ }, wt = {
2157
2380
  prefix: "fas",
2158
2381
  iconName: "bars",
2159
2382
  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
2383
  };
2161
- const Rt = ({
2384
+ const Yt = ({
2162
2385
  variant: e = "standard",
2163
2386
  className: t,
2164
- children: r,
2165
- title: o,
2166
- position: n = "right",
2167
- extended: a,
2387
+ children: n,
2388
+ title: l,
2389
+ position: r = "right",
2390
+ extended: c,
2168
2391
  divider: i,
2169
2392
  onExtendedChange: s,
2170
- closeIcon: f = ue,
2171
- transition: l,
2393
+ closeIcon: f = de,
2394
+ transition: a,
2172
2395
  ...p
2173
2396
  }) => {
2174
- l = { duration: 0.3, ...l };
2175
- const [m, c] = R(a ?? !0), h = Xe({
2176
- transition: l,
2177
- title: o,
2178
- position: n,
2397
+ a = { duration: 0.3, ...a };
2398
+ const [m, o] = S(c ?? !0), d = Ke({
2399
+ transition: a,
2400
+ title: l,
2401
+ position: r,
2179
2402
  closeIcon: f,
2180
2403
  className: t,
2181
- children: r,
2404
+ children: n,
2182
2405
  onExtendedChange: s,
2183
2406
  divider: i,
2184
2407
  isExtended: m,
2185
2408
  extended: m,
2186
2409
  variant: e
2187
2410
  });
2188
- $(() => {
2411
+ R(() => {
2189
2412
  s == null || s(m ?? !1);
2190
- }, [m]), $(() => {
2191
- a != null && c(a);
2192
- }, [a]);
2193
- const v = {
2413
+ }, [m]), R(() => {
2414
+ c != null && o(c);
2415
+ }, [c]);
2416
+ const y = {
2194
2417
  close: {
2195
2418
  width: 0
2196
2419
  },
2197
2420
  open: {
2198
2421
  width: "auto"
2199
2422
  }
2200
- }, b = () => /* @__PURE__ */ D(te, { children: [
2201
- /* @__PURE__ */ u(A, { children: e == "modal" && m && /* @__PURE__ */ u(
2202
- U.div,
2423
+ }, v = () => /* @__PURE__ */ V(te, { children: [
2424
+ /* @__PURE__ */ u(Q, { children: e == "modal" && m && /* @__PURE__ */ u(
2425
+ F.div,
2203
2426
  {
2204
2427
  initial: { opacity: 0 },
2205
2428
  animate: { opacity: 1 },
2206
2429
  exit: { opacity: 0 },
2207
- transition: l,
2208
- onClick: () => c(!1),
2209
- className: h.overlay
2430
+ transition: a,
2431
+ onClick: () => o(!1),
2432
+ className: d.overlay
2210
2433
  }
2211
2434
  ) }),
2212
- /* @__PURE__ */ u(A, { children: m && /* @__PURE__ */ D(
2435
+ /* @__PURE__ */ u(Q, { children: m && /* @__PURE__ */ V(
2213
2436
  "div",
2214
2437
  {
2215
2438
  ...p,
2216
- className: h.slideSheet,
2217
- style: { transition: l.duration + "s" },
2439
+ className: d.slideSheet,
2440
+ style: { transition: a.duration + "s" },
2218
2441
  children: [
2219
- /* @__PURE__ */ D(
2220
- U.div,
2442
+ /* @__PURE__ */ V(
2443
+ F.div,
2221
2444
  {
2222
- variants: v,
2223
- initial: a === !1 ? "open" : "close",
2445
+ variants: y,
2446
+ initial: c === !1 ? "open" : "close",
2224
2447
  animate: "open",
2225
2448
  exit: "close",
2226
- className: h.container,
2449
+ className: d.container,
2227
2450
  children: [
2228
- /* @__PURE__ */ D("div", { className: h.header, children: [
2229
- o && /* @__PURE__ */ u("p", { className: h.title, children: o }),
2451
+ /* @__PURE__ */ V("div", { className: d.header, children: [
2452
+ l && /* @__PURE__ */ u("p", { className: d.title, children: l }),
2230
2453
  /* @__PURE__ */ u(
2231
- ie,
2454
+ ue,
2232
2455
  {
2233
2456
  size: "small",
2234
2457
  label: "close",
2235
2458
  icon: f,
2236
- onClick: () => c(!1),
2237
- className: h.closeButton
2459
+ onClick: () => o(!1),
2460
+ className: d.closeButton
2238
2461
  }
2239
2462
  )
2240
2463
  ] }),
2241
2464
  /* @__PURE__ */ u(
2242
2465
  "div",
2243
2466
  {
2244
- className: h.content,
2245
- style: { transition: l.duration + "s" },
2246
- children: r
2467
+ className: d.content,
2468
+ style: { transition: a.duration + "s" },
2469
+ children: n
2247
2470
  }
2248
2471
  )
2249
2472
  ]
2250
2473
  }
2251
2474
  ),
2252
- (i == null && e == "standard" ? !0 : i) && /* @__PURE__ */ u(tt, { className: h.divider, orientation: "vertical" })
2475
+ (i == null && e == "standard" ? !0 : i) && /* @__PURE__ */ u(ht, { className: d.divider, orientation: "vertical" })
2253
2476
  ]
2254
2477
  }
2255
2478
  ) })
2256
2479
  ] });
2257
- return e == "modal" ? ye(b(), document.body) : b();
2258
- }, Ct = ({
2480
+ return e == "modal" ? xe(v(), document.body) : v();
2481
+ }, jt = ({
2259
2482
  message: e,
2260
2483
  className: t,
2261
- duration: r,
2262
- closeIcon: o = ue,
2263
- onClose: n,
2264
- ...a
2484
+ duration: n,
2485
+ closeIcon: l = de,
2486
+ onClose: r,
2487
+ ...c
2265
2488
  }) => {
2266
- const [i, s] = R(!0), f = Oe({
2489
+ const [i, s] = S(!0), f = Je({
2267
2490
  className: t,
2268
- closeIcon: o,
2269
- duration: r,
2491
+ closeIcon: l,
2492
+ duration: n,
2270
2493
  isVisible: i,
2271
- onClose: n,
2494
+ onClose: r,
2272
2495
  message: e
2273
2496
  });
2274
- $(() => {
2275
- r && setTimeout(() => {
2276
- l();
2277
- }, r);
2278
- }, [r]);
2279
- const l = () => {
2280
- s(!1), n == null || n();
2497
+ R(() => {
2498
+ n && setTimeout(() => {
2499
+ a();
2500
+ }, n);
2501
+ }, [n]);
2502
+ const a = () => {
2503
+ s(!1), r == null || r();
2281
2504
  };
2282
- return /* @__PURE__ */ u(A, { children: i && /* @__PURE__ */ u(
2283
- U.div,
2505
+ return /* @__PURE__ */ u(Q, { children: i && /* @__PURE__ */ u(
2506
+ F.div,
2284
2507
  {
2285
2508
  initial: { height: 0 },
2286
2509
  animate: { height: "auto" },
2287
2510
  exit: { height: 0 },
2288
2511
  transition: { duration: 0.1 },
2289
2512
  className: f.snackbar,
2290
- ...a,
2291
- children: /* @__PURE__ */ D("div", { className: f.container, children: [
2513
+ ...c,
2514
+ children: /* @__PURE__ */ V("div", { className: f.container, children: [
2292
2515
  /* @__PURE__ */ u("p", { className: f.supportingText, children: e }),
2293
2516
  /* @__PURE__ */ u(
2294
- ie,
2517
+ ue,
2295
2518
  {
2296
- onClick: () => l(),
2519
+ onClick: () => a(),
2297
2520
  className: f.icon,
2298
- icon: o,
2521
+ icon: l,
2299
2522
  label: "close the snackbar"
2300
2523
  }
2301
2524
  )
2302
2525
  ] })
2303
2526
  }
2304
2527
  ) });
2305
- }, Mt = ({
2528
+ }, qt = ({
2306
2529
  selected: e = !1,
2307
2530
  className: t,
2308
- activeIcon: r,
2309
- disabled: o = !1,
2310
- inactiveIcon: n,
2311
- onChange: a,
2531
+ activeIcon: n,
2532
+ disabled: l = !1,
2533
+ inactiveIcon: r,
2534
+ onChange: c,
2312
2535
  onClick: i,
2313
2536
  onKeyDown: s,
2314
2537
  ref: f,
2315
- ...l
2538
+ ...a
2316
2539
  }) => {
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({
2540
+ const [p, m] = S(e), o = (L) => {
2541
+ l || (y(), i && i(L));
2542
+ }, d = (L) => {
2543
+ l || ((L.key === " " || L.key === "Enter") && (L.preventDefault(), y()), s && s(L));
2544
+ }, y = () => {
2545
+ m(!p), c == null || c(!p);
2546
+ }, v = Ze({
2324
2547
  className: t,
2325
2548
  isSelected: p,
2326
- activeIcon: r,
2327
- inactiveIcon: n,
2328
- disabled: o,
2549
+ activeIcon: n,
2550
+ inactiveIcon: r,
2551
+ disabled: l,
2329
2552
  selected: p,
2330
- onChange: a
2331
- }), L = j(null), I = f || L;
2332
- return /* @__PURE__ */ D(
2333
- U.div,
2553
+ onChange: c
2554
+ }), x = D(null), E = f || x;
2555
+ return /* @__PURE__ */ V(
2556
+ F.div,
2334
2557
  {
2335
2558
  role: "switch",
2336
2559
  "aria-checked": p,
2337
- tabIndex: o ? -1 : 0,
2338
- onKeyDown: h,
2339
- onClick: c,
2340
- ref: I,
2341
- className: b.switch,
2342
- ...l,
2560
+ tabIndex: l ? -1 : 0,
2561
+ onKeyDown: d,
2562
+ onClick: o,
2563
+ ref: E,
2564
+ className: v.switch,
2565
+ ...a,
2343
2566
  children: [
2344
2567
  /* @__PURE__ */ u("input", { type: "hidden", value: p ? "1" : "0" }),
2345
- /* @__PURE__ */ D(
2346
- U.div,
2568
+ /* @__PURE__ */ V(
2569
+ F.div,
2347
2570
  {
2348
2571
  layout: !0,
2349
2572
  style: { translate: p ? "50%" : "-50%" },
@@ -2352,94 +2575,94 @@ const Rt = ({
2352
2575
  stiffness: 700,
2353
2576
  damping: 30
2354
2577
  },
2355
- className: b.handleContainer,
2578
+ className: v.handleContainer,
2356
2579
  children: [
2357
- /* @__PURE__ */ u("div", { className: b.handle, children: (p ? r : n) && /* @__PURE__ */ u(
2358
- Q,
2580
+ /* @__PURE__ */ u("div", { className: v.handle, children: (p ? n : r) && /* @__PURE__ */ u(
2581
+ Z,
2359
2582
  {
2360
- className: b.icon,
2361
- icon: p ? r : n
2583
+ className: v.icon,
2584
+ icon: p ? n : r
2362
2585
  }
2363
2586
  ) }),
2364
- /* @__PURE__ */ u("div", { className: b.handleStateLayer })
2587
+ /* @__PURE__ */ u("div", { className: v.handleStateLayer })
2365
2588
  ]
2366
2589
  }
2367
2590
  )
2368
2591
  ]
2369
2592
  }
2370
2593
  );
2371
- }, ct = ({
2594
+ }, bt = ({
2372
2595
  className: e,
2373
2596
  onClick: t,
2374
- label: r,
2375
- variant: o = "primary",
2376
- href: n,
2377
- icon: a,
2597
+ label: n,
2598
+ variant: l = "primary",
2599
+ href: r,
2600
+ icon: c,
2378
2601
  selectedTab: i,
2379
2602
  setSelectedTab: s,
2380
2603
  tabsId: f,
2381
- index: l,
2604
+ index: a,
2382
2605
  onTabSelected: p,
2383
2606
  scrollable: m = !1,
2384
- selected: c = !1,
2385
- ref: h,
2386
- ...v
2607
+ selected: o = !1,
2608
+ ref: d,
2609
+ ...y
2387
2610
  }) => {
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
2611
+ const v = D(null), x = d || v, [E, L] = S(o);
2612
+ R(() => {
2613
+ o && i == null ? L(!0) : L(i == a && a != null);
2614
+ }, [i]), R(() => {
2615
+ i == a && p && p({
2616
+ ref: x,
2617
+ index: a || 0,
2618
+ label: n,
2619
+ icon: c
2397
2620
  });
2398
2621
  }, [i]);
2399
- const B = n ? "a" : "button", N = (C) => {
2400
- s && s(l ?? null), t && t(C);
2401
- }, E = _e({
2622
+ const B = r ? "a" : "button", N = ($) => {
2623
+ s && s(a ?? null), t && t($);
2624
+ }, I = Qe({
2402
2625
  className: e,
2403
2626
  onTabSelected: p,
2404
2627
  scrollable: m,
2405
2628
  selectedTab: i,
2406
- index: l,
2629
+ index: a,
2407
2630
  tabsId: f,
2408
- selected: I,
2409
- variant: o,
2410
- icon: a,
2411
- label: r,
2412
- isSelected: I,
2631
+ selected: E,
2632
+ variant: l,
2633
+ icon: c,
2634
+ label: n,
2635
+ isSelected: E,
2413
2636
  setSelectedTab: s,
2414
- href: n
2637
+ href: r
2415
2638
  });
2416
- return /* @__PURE__ */ D(
2639
+ return /* @__PURE__ */ V(
2417
2640
  B,
2418
2641
  {
2419
- ...v,
2642
+ ...y,
2420
2643
  role: "tab",
2421
- "aria-selected": I,
2422
- ref: L,
2423
- href: n,
2424
- className: E.tab,
2644
+ "aria-selected": E,
2645
+ ref: x,
2646
+ href: r,
2647
+ className: I.tab,
2425
2648
  onClick: N,
2426
- ...v,
2649
+ ...y,
2427
2650
  children: [
2428
- /* @__PURE__ */ u("span", { className: E.stateLayer, children: /* @__PURE__ */ u(
2429
- ne,
2651
+ /* @__PURE__ */ u("span", { className: I.stateLayer, children: /* @__PURE__ */ u(
2652
+ re,
2430
2653
  {
2431
- colorName: o === "primary" && I ? "primary" : "on-surface",
2432
- triggerRef: L
2654
+ colorName: l === "primary" && E ? "primary" : "on-surface",
2655
+ triggerRef: x
2433
2656
  }
2434
2657
  ) }),
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,
2658
+ /* @__PURE__ */ V("span", { className: I.content, children: [
2659
+ c && /* @__PURE__ */ u(Z, { icon: c, className: I.icon }),
2660
+ /* @__PURE__ */ u("span", { className: I.label, children: n }),
2661
+ E && /* @__PURE__ */ u(
2662
+ F.span,
2440
2663
  {
2441
2664
  layoutId: `underline-${f}`,
2442
- className: E.underline,
2665
+ className: I.underline,
2443
2666
  transition: { duration: 0.3 }
2444
2667
  }
2445
2668
  )
@@ -2447,143 +2670,143 @@ const Rt = ({
2447
2670
  ]
2448
2671
  }
2449
2672
  );
2450
- }, Bt = ({
2673
+ }, _t = ({
2451
2674
  variant: e = "primary",
2452
2675
  onTabSelected: t,
2453
- children: r,
2454
- className: o,
2455
- selectedTab: n,
2456
- setSelectedTab: a,
2676
+ children: n,
2677
+ className: l,
2678
+ selectedTab: r,
2679
+ setSelectedTab: c,
2457
2680
  scrollable: i = !1
2458
2681
  }) => {
2459
- const [s, f] = R(
2682
+ const [s, f] = S(
2460
2683
  null
2461
2684
  );
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" });
2685
+ let a;
2686
+ r == 0 || r != null ? a = r : a = s;
2687
+ const p = c || f, m = K.Children.toArray(n).filter(
2688
+ (x) => K.isValidElement(x) && x.type === bt
2689
+ ), o = K.useRef(null), d = (x) => {
2690
+ if (t == null || t(x), i) {
2691
+ const E = o.current, L = x.ref.current;
2692
+ if (E && L) {
2693
+ const B = L.offsetLeft + L.offsetWidth / 2 - E.offsetWidth / 2;
2694
+ E.scrollTo({ left: B, behavior: "smooth" });
2472
2695
  }
2473
2696
  }
2474
- }, v = be(() => ce(), []), b = Ke({
2475
- children: r,
2697
+ }, y = Ee(() => ie(), []), v = ze({
2698
+ children: n,
2476
2699
  onTabSelected: t,
2477
2700
  scrollable: i,
2478
- selectedTab: l,
2701
+ selectedTab: a,
2479
2702
  setSelectedTab: p,
2480
- className: o,
2703
+ className: l,
2481
2704
  variant: e
2482
2705
  });
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,
2706
+ return /* @__PURE__ */ u("div", { ref: o, role: "tablist", className: v.tabs, children: m.map((x, E) => K.cloneElement(x, {
2707
+ key: E,
2708
+ index: E,
2486
2709
  variant: e,
2487
- selectedTab: l,
2710
+ selectedTab: a,
2488
2711
  setSelectedTab: p,
2489
- tabsId: v,
2490
- onTabSelected: h,
2712
+ tabsId: y,
2713
+ onTabSelected: d,
2491
2714
  scrollable: i
2492
2715
  })) });
2493
- }, $t = ({
2716
+ }, Kt = ({
2494
2717
  variant: e = "filled",
2495
2718
  disabled: t = !1,
2496
- errorText: r,
2497
- placeholder: o,
2498
- suffix: n,
2499
- name: a,
2719
+ errorText: n,
2720
+ placeholder: l,
2721
+ suffix: r,
2722
+ name: c,
2500
2723
  label: i,
2501
2724
  className: s,
2502
2725
  supportingText: f,
2503
- trailingIcon: l,
2726
+ trailingIcon: a,
2504
2727
  leadingIcon: p,
2505
2728
  type: m = "text",
2506
- textLine: c = "singleLine",
2507
- autoComplete: h = "on",
2508
- onChange: v,
2509
- value: b,
2510
- showSupportingText: L = !1,
2511
- ...I
2729
+ textLine: o = "singleLine",
2730
+ autoComplete: d = "on",
2731
+ onChange: y,
2732
+ value: v,
2733
+ showSupportingText: x = !1,
2734
+ ...E
2512
2735
  }) => {
2513
- const [w, B] = R(b ?? ""), [N, E] = R(!1), [C, V] = R(!1), [P, k] = R(
2514
- L
2736
+ const [L, B] = S(v ?? ""), [N, I] = S(!1), [$, A] = S(!1), [W, k] = S(
2737
+ x
2515
2738
  );
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);
2739
+ R(() => {
2740
+ B(v ?? "");
2741
+ }, [v]), R(() => {
2742
+ n != null && n.length ? A(!0) : A(!1);
2743
+ }, [n]), R(() => {
2744
+ x ? k(x) : f != null && f.length ? k(!0) : k(!1);
2745
+ }, [W, f]), R(() => {
2746
+ N && A(!1);
2524
2747
  }, [N]);
2525
- const y = Y.useRef(null), M = () => {
2526
- y.current && !N && y.current.focus();
2748
+ const g = K.useRef(null), C = () => {
2749
+ g.current && !N && g.current.focus();
2527
2750
  }, 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,
2751
+ I(!0);
2752
+ }, q = (P) => {
2753
+ const H = P.target.value;
2754
+ B(H), A(!1), typeof y == "function" && y(H);
2755
+ }, G = () => {
2756
+ I(!1);
2757
+ }, Y = Te({
2758
+ showSupportingText: W,
2536
2759
  isFocused: N,
2537
- showErrorIcon: C,
2760
+ showErrorIcon: $,
2538
2761
  disabled: t,
2539
- name: a,
2762
+ name: c,
2540
2763
  label: i,
2541
- autoComplete: h,
2764
+ autoComplete: d,
2542
2765
  className: s,
2543
- onChange: v,
2544
- placeholder: o,
2766
+ onChange: y,
2767
+ placeholder: l,
2545
2768
  supportingText: f,
2546
2769
  type: m,
2547
2770
  leadingIcon: p,
2548
- trailingIcon: l,
2771
+ trailingIcon: a,
2549
2772
  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) {
2773
+ errorText: n,
2774
+ value: L,
2775
+ suffix: r,
2776
+ textLine: o
2777
+ }), [z] = S(ie());
2778
+ let b, w;
2779
+ switch (o) {
2557
2780
  case "multiLine":
2558
- x = Re, g = {};
2781
+ w = Pe, b = {};
2559
2782
  break;
2560
2783
  case "textAreas":
2561
- x = "textarea", g = {};
2784
+ w = "textarea", b = {};
2562
2785
  break;
2563
2786
  case "singleLine":
2564
2787
  default:
2565
- x = "input", g = { type: m };
2788
+ w = "input", b = { type: m };
2566
2789
  break;
2567
2790
  }
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,
2791
+ return /* @__PURE__ */ V("div", { className: Y.textField, ...E, children: [
2792
+ /* @__PURE__ */ V("fieldset", { onClick: C, className: Y.content, children: [
2793
+ /* @__PURE__ */ u("div", { className: Y.stateLayer }),
2794
+ p && /* @__PURE__ */ u("div", { className: Y.leadingIcon, children: K.isValidElement(p) ? p : /* @__PURE__ */ u(Z, { className: "w-5 h-5", icon: p }) }),
2795
+ !(!N && !L.length || e == "filled") && /* @__PURE__ */ u(
2796
+ F.legend,
2574
2797
  {
2575
2798
  variants: {
2576
2799
  hidden: { width: 0, padding: 0 },
2577
2800
  visible: { width: "auto", padding: "0 8px" }
2578
2801
  },
2579
2802
  initial: "hidden",
2580
- animate: !N && !w.length ? "hidden" : "visible",
2803
+ animate: !N && !L.length ? "hidden" : "visible",
2581
2804
  className: "max-w-full ml-2 px-2 text-body-small h-0",
2582
2805
  transition: { duration: 0.2 },
2583
2806
  children: /* @__PURE__ */ u("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ u(
2584
- U.span,
2807
+ F.span,
2585
2808
  {
2586
- className: q.label,
2809
+ className: Y.label,
2587
2810
  transition: { duration: 0.3 },
2588
2811
  layoutId: z,
2589
2812
  children: i
@@ -2591,23 +2814,23 @@ const Rt = ({
2591
2814
  ) })
2592
2815
  }
2593
2816
  ),
2594
- /* @__PURE__ */ D("div", { className: "flex-1 relative", children: [
2595
- (!N && !w.length || e == "filled") && /* @__PURE__ */ u(
2596
- U.label,
2817
+ /* @__PURE__ */ V("div", { className: "flex-1 relative", children: [
2818
+ (!N && !L.length || e == "filled") && /* @__PURE__ */ u(
2819
+ F.label,
2597
2820
  {
2598
- htmlFor: a,
2599
- className: d(
2821
+ htmlFor: c,
2822
+ className: h(
2600
2823
  "absolute left-4 transition-all duration-300",
2601
2824
  {
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))
2825
+ "text-body-small top-2": e == "filled" && !(!N && !L.length),
2826
+ "text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!N && !L.length))
2604
2827
  }
2605
2828
  ),
2606
2829
  transition: { duration: 0.3 },
2607
2830
  children: /* @__PURE__ */ u(
2608
- U.span,
2831
+ F.span,
2609
2832
  {
2610
- className: q.label,
2833
+ className: Y.label,
2611
2834
  transition: { duration: 0.3 },
2612
2835
  layoutId: e == "outlined" ? z : void 0,
2613
2836
  children: i
@@ -2616,245 +2839,245 @@ const Rt = ({
2616
2839
  }
2617
2840
  ),
2618
2841
  /* @__PURE__ */ u(
2619
- x,
2842
+ w,
2620
2843
  {
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 : "",
2844
+ ref: g,
2845
+ value: L,
2846
+ onChange: q,
2847
+ className: Y.input,
2848
+ id: c,
2849
+ name: c,
2850
+ placeholder: N ? l ?? void 0 : "",
2628
2851
  onFocus: O,
2629
- onBlur: Z,
2852
+ onBlur: G,
2630
2853
  disabled: t,
2631
- autoComplete: h,
2632
- "aria-invalid": !!(r != null && r.length),
2854
+ autoComplete: d,
2855
+ "aria-invalid": !!(n != null && n.length),
2633
2856
  "aria-label": i,
2634
- ...g
2857
+ ...b
2635
2858
  }
2636
2859
  )
2637
2860
  ] }),
2638
- /* @__PURE__ */ u("div", { className: q.activeIndicator }),
2639
- !C && /* @__PURE__ */ D(te, { children: [
2640
- l && /* @__PURE__ */ u(
2861
+ /* @__PURE__ */ u("div", { className: Y.activeIndicator }),
2862
+ !$ && /* @__PURE__ */ V(te, { children: [
2863
+ a && /* @__PURE__ */ u(
2641
2864
  "div",
2642
2865
  {
2643
- onClick: (W) => {
2644
- W.stopPropagation();
2866
+ onClick: (P) => {
2867
+ P.stopPropagation();
2645
2868
  },
2646
- className: q.trailingIcon,
2647
- children: Y.isValidElement(l) ? l : /* @__PURE__ */ u(Q, { className: "h-5", icon: l })
2869
+ className: Y.trailingIcon,
2870
+ children: K.isValidElement(a) ? a : /* @__PURE__ */ u(Z, { className: "h-5", icon: a })
2648
2871
  }
2649
2872
  ),
2650
- !l && n && /* @__PURE__ */ u("span", { className: q.suffix, children: n })
2873
+ !a && r && /* @__PURE__ */ u("span", { className: Y.suffix, children: r })
2651
2874
  ] }),
2652
- C && /* @__PURE__ */ u(
2875
+ $ && /* @__PURE__ */ u(
2653
2876
  "div",
2654
2877
  {
2655
- className: d(q.trailingIcon, {
2656
- " absolute right-0": !l
2878
+ className: h(Y.trailingIcon, {
2879
+ " absolute right-0": !a
2657
2880
  }),
2658
2881
  children: /* @__PURE__ */ u(
2659
- Q,
2882
+ Z,
2660
2883
  {
2661
2884
  className: "h-5 text-error",
2662
- icon: at
2885
+ icon: xt
2663
2886
  }
2664
2887
  )
2665
2888
  }
2666
2889
  )
2667
2890
  ] }),
2668
- P && /* @__PURE__ */ u("p", { className: q.supportingText, children: r != null && r.length ? r : f != null && f.length ? f : " " })
2891
+ W && /* @__PURE__ */ u("p", { className: Y.supportingText, children: n != null && n.length ? n : f != null && f.length ? f : " " })
2669
2892
  ] });
2670
- }, it = _(
2893
+ }, Lt = j(
2671
2894
  "navigationRailItem",
2672
- ({ isSelected: e, icon: t, label: r, variant: o }) => ({
2673
- navigationRailItem: d(
2895
+ ({ isSelected: e, icon: t, label: n, variant: l }) => ({
2896
+ navigationRailItem: h(
2674
2897
  " group flex flex-col pt-1 pb-1.5 cursor-pointer",
2675
2898
  {
2676
2899
  "text-on-surface-variant": !e,
2677
2900
  "text-on-secondary-container": e,
2678
- "gap-2 h-[68px]": o == "vertical",
2679
- "gap-0 h-[66px]": o == "horizontal"
2901
+ "gap-2 h-[68px]": l == "vertical",
2902
+ "gap-0 h-[66px]": l == "horizontal"
2680
2903
  }
2681
2904
  ),
2682
- container: d(
2905
+ container: h(
2683
2906
  " w-fit flex justify-center relative rounded-full items-center mx-5",
2684
2907
  {
2685
2908
  "bg-secondary-container overflow-hidden": e,
2686
- "gap-2 ": o == "horizontal",
2687
- "gap-0 ": o == "vertical",
2688
- "p-4": !r
2909
+ "gap-2 ": l == "horizontal",
2910
+ "gap-0 ": l == "vertical",
2911
+ "p-4": !n
2689
2912
  },
2690
- r && [
2913
+ n && [
2691
2914
  "px-4",
2692
2915
  {
2693
- "py-1 ": o == "vertical",
2694
- "py-4 ": o == "horizontal"
2916
+ "py-1 ": l == "vertical",
2917
+ "py-4 ": l == "horizontal"
2695
2918
  }
2696
2919
  ]
2697
2920
  ),
2698
- stateLayer: d(
2921
+ stateLayer: h(
2699
2922
  " absolute w-full rounded-full h-full left-0 top-0 ",
2700
2923
  {
2701
2924
  "group-state-on-surface": !e,
2702
2925
  "group-state-on-secondary-container": e
2703
2926
  }
2704
2927
  ),
2705
- icon: d("size-6 flex"),
2706
- label: d("w-fit mx-auto text-nowrap", {
2707
- "text-label-large ": o == "horizontal",
2708
- "text-label-medium": o == "vertical"
2928
+ icon: h("size-6 flex"),
2929
+ label: h("w-fit mx-auto text-nowrap", {
2930
+ "text-label-large ": l == "horizontal",
2931
+ "text-label-medium": l == "vertical"
2709
2932
  })
2710
2933
  })
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 = ({
2934
+ ), 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
2935
  className: e,
2713
2936
  onClick: t,
2714
- label: r,
2715
- variant: o = "vertical",
2716
- href: n,
2717
- icon: a,
2937
+ label: n,
2938
+ variant: l = "vertical",
2939
+ href: r,
2940
+ icon: c,
2718
2941
  selectedItem: i,
2719
2942
  setSelectedItem: s,
2720
2943
  index: f,
2721
- onItemSelected: l,
2944
+ onItemSelected: a,
2722
2945
  selected: p = !1,
2723
2946
  ref: m,
2724
- transition: c,
2725
- isExtended: h,
2726
- iconSelected: v,
2727
- style: b,
2728
- extendedOnly: L,
2729
- children: I,
2730
- ...w
2947
+ transition: o,
2948
+ isExtended: d,
2949
+ iconSelected: y,
2950
+ style: v,
2951
+ extendedOnly: x,
2952
+ children: E,
2953
+ ...L
2731
2954
  }) => {
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({
2955
+ E && (n = E);
2956
+ const B = D(null), N = m || B, [I, $] = S(p);
2957
+ R(() => {
2958
+ p && i == null ? $(!0) : $(i == f && f != null);
2959
+ }, [i]), R(() => {
2960
+ i == f && a && a({
2738
2961
  ref: N,
2739
2962
  index: f || 0,
2740
- label: r,
2741
- icon: a
2963
+ label: n,
2964
+ icon: c
2742
2965
  });
2743
2966
  }, [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,
2967
+ const A = r ? "a" : "button", W = (g) => {
2968
+ s && s(f ?? null), t && t(g);
2969
+ }, k = Lt({
2970
+ isExtended: d,
2971
+ extendedOnly: x,
2749
2972
  className: e,
2750
- onItemSelected: l,
2973
+ onItemSelected: a,
2751
2974
  selectedItem: i,
2752
2975
  index: f,
2753
- transition: c,
2754
- selected: E,
2755
- variant: o,
2756
- icon: a,
2757
- label: r,
2758
- isSelected: E,
2976
+ transition: o,
2977
+ selected: I,
2978
+ variant: l,
2979
+ icon: c,
2980
+ label: n,
2981
+ isSelected: I,
2759
2982
  setSelectedItem: s,
2760
- href: n,
2761
- children: r,
2762
- iconSelected: v
2983
+ href: r,
2984
+ children: n,
2985
+ iconSelected: y
2763
2986
  });
2764
- return c = { duration: 0.3, ...c }, L && !h ? null : (
2987
+ return o = { duration: 0.3, ...o }, x && !d ? null : (
2765
2988
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2766
2989
  // @ts-expect-error
2767
- /* @__PURE__ */ D(
2768
- V,
2990
+ /* @__PURE__ */ V(
2991
+ A,
2769
2992
  {
2770
- ...w,
2993
+ ...L,
2771
2994
  role: "tab",
2772
- "aria-selected": E,
2995
+ "aria-selected": I,
2773
2996
  ref: N,
2774
- href: n,
2997
+ href: r,
2775
2998
  className: k.navigationRailItem,
2776
- onClick: P,
2777
- style: { transition: c.duration + "s", ...b },
2999
+ onClick: W,
3000
+ style: { transition: o.duration + "s", ...v },
2778
3001
  children: [
2779
- /* @__PURE__ */ D(
2780
- U.div,
3002
+ /* @__PURE__ */ V(
3003
+ F.div,
2781
3004
  {
2782
3005
  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`
3006
+ transition: l == "horizontal" ? o.duration + `s, gap ${o.duration / 2}s ${o.duration - o.duration / 2}s` : o.duration + `s, gap ${o.duration / 3}s ${o.duration - o.duration / 3}s`
2784
3007
  },
2785
- transition: c,
3008
+ transition: o,
2786
3009
  className: k.container,
2787
3010
  children: [
2788
- /* @__PURE__ */ u(U.div, { layout: !0, className: k.stateLayer }),
2789
- a && /* @__PURE__ */ u(
2790
- Q,
3011
+ /* @__PURE__ */ u(F.div, { layout: !0, className: k.stateLayer }),
3012
+ c && /* @__PURE__ */ u(
3013
+ Z,
2791
3014
  {
2792
- icon: E ? v : a,
3015
+ icon: I ? y : c,
2793
3016
  className: k.icon
2794
3017
  }
2795
3018
  ),
2796
- /* @__PURE__ */ u(A, { children: o == "horizontal" && (() => {
2797
- const y = {
3019
+ /* @__PURE__ */ u(Q, { children: l == "horizontal" && (() => {
3020
+ const g = {
2798
3021
  width: 0,
2799
3022
  opacity: 0,
2800
3023
  transition: {
2801
- ...c
3024
+ ...o
2802
3025
  }
2803
- }, M = {
3026
+ }, C = {
2804
3027
  width: "auto",
2805
3028
  opacity: 1,
2806
3029
  transition: {
2807
- ...c,
3030
+ ...o,
2808
3031
  opacity: {
2809
- duration: c.duration / 2,
2810
- delay: c.duration - c.duration / 2
3032
+ duration: o.duration / 2,
3033
+ delay: o.duration - o.duration / 2
2811
3034
  }
2812
3035
  }
2813
3036
  };
2814
3037
  return /* @__PURE__ */ u(
2815
- U.span,
3038
+ F.span,
2816
3039
  {
2817
- initial: y,
2818
- animate: M,
2819
- exit: y,
3040
+ initial: g,
3041
+ animate: C,
3042
+ exit: g,
2820
3043
  className: k.label,
2821
- children: r
3044
+ children: n
2822
3045
  }
2823
3046
  );
2824
3047
  })() })
2825
3048
  ]
2826
3049
  }
2827
3050
  ),
2828
- /* @__PURE__ */ u(A, { children: o == "vertical" && (() => {
2829
- const y = {
3051
+ /* @__PURE__ */ u(Q, { children: l == "vertical" && (() => {
3052
+ const g = {
2830
3053
  height: 0,
2831
3054
  opacity: 0,
2832
3055
  transition: {
2833
- ...c,
3056
+ ...o,
2834
3057
  opacity: {
2835
3058
  duration: 0
2836
3059
  }
2837
3060
  }
2838
- }, M = {
3061
+ }, C = {
2839
3062
  height: "auto",
2840
3063
  opacity: 1,
2841
3064
  transition: {
2842
- ...c,
3065
+ ...o,
2843
3066
  opacity: {
2844
- duration: c.duration / 3,
2845
- delay: c.duration - c.duration / 3
3067
+ duration: o.duration / 3,
3068
+ delay: o.duration - o.duration / 3
2846
3069
  }
2847
3070
  }
2848
3071
  };
2849
3072
  return /* @__PURE__ */ u(
2850
- U.span,
3073
+ F.span,
2851
3074
  {
2852
- initial: M,
2853
- animate: M,
2854
- exit: y,
3075
+ initial: C,
3076
+ animate: C,
3077
+ exit: g,
2855
3078
  className: k.label,
2856
- transition: c,
2857
- children: r
3079
+ transition: o,
3080
+ children: n
2858
3081
  }
2859
3082
  );
2860
3083
  })() })
@@ -2862,169 +3085,179 @@ const Rt = ({
2862
3085
  }
2863
3086
  )
2864
3087
  );
2865
- }, ft = _(
3088
+ }, It = j(
2866
3089
  "navigationRail",
2867
3090
  ({ isExtended: e, alignment: t }) => ({
2868
- navigationRail: d("flex flex-col left-0 h-full top-0 pt-11", {
3091
+ navigationRail: h("flex flex-col left-0 h-full top-0 pt-11", {
2869
3092
  "w-fit max-w-24": !e,
2870
3093
  "w-fit min-w-[220px] max-w-[360px]": e,
2871
3094
  "justify-between": t == "middle",
2872
3095
  "justify-start": t == "top"
2873
3096
  }),
2874
- header: d("flex flex-col gap-1 items-start"),
3097
+ header: h("flex flex-col gap-1 items-start"),
2875
3098
  menuIcon: "mx-5",
2876
- segments: d(" flex flex-col overflow-auto min-w-full mt-10", {
3099
+ segments: h(" flex flex-col overflow-auto min-w-full mt-10", {
2877
3100
  "w-full": !e,
2878
3101
  "w-fit items-start": e
2879
3102
  })
2880
3103
  })
2881
- ), Pt = ({
3104
+ ), Gt = ({
2882
3105
  variant: e = "standard",
2883
3106
  onItemSelected: t,
2884
- children: r,
2885
- className: o,
2886
- selectedItem: n,
2887
- extended: a,
3107
+ children: n,
3108
+ className: l,
3109
+ selectedItem: r,
3110
+ extended: c,
2888
3111
  alignment: i = "top",
2889
3112
  menu: s = {
2890
3113
  closed: {
2891
- icon: st,
3114
+ icon: wt,
2892
3115
  label: "Open menu"
2893
3116
  },
2894
3117
  opened: {
2895
- icon: ue,
3118
+ icon: de,
2896
3119
  label: "Close menu"
2897
3120
  }
2898
3121
  },
2899
3122
  style: f,
2900
- onExtendedChange: l,
3123
+ onExtendedChange: a,
2901
3124
  transition: p,
2902
3125
  setSelectedItem: m
2903
3126
  }) => {
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) => {
3127
+ const [o, d] = S(null), [y, v] = S(c);
3128
+ let x;
3129
+ r == 0 || r != null ? x = r : x = o;
3130
+ const E = m || d, L = D(null), B = (k) => {
2908
3131
  t == null || t(k);
2909
3132
  };
2910
3133
  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;
3134
+ const g = [];
3135
+ return Ie.forEach(k, (C) => {
3136
+ ee(C) && C.type === ke ? g.push(...N(C.props.children)) : g.push(C);
3137
+ }), g;
2915
3138
  }
2916
- const E = N(r), C = E.filter(
2917
- (k) => ee(k) && k.type === fe
2918
- ), V = ft({
2919
- children: r,
3139
+ const I = N(n), $ = I.filter(
3140
+ (k) => ee(k) && k.type === ye
3141
+ ), A = It({
3142
+ children: n,
2920
3143
  onItemSelected: t,
2921
- selectedItem: L,
2922
- setSelectedItem: I,
2923
- className: o,
3144
+ selectedItem: x,
3145
+ setSelectedItem: E,
3146
+ className: l,
2924
3147
  variant: e,
2925
- extended: v,
2926
- isExtended: v,
3148
+ extended: y,
3149
+ isExtended: y,
2927
3150
  alignment: i,
2928
3151
  menu: s,
2929
3152
  transition: p,
2930
- onExtendedChange: l
3153
+ onExtendedChange: a
2931
3154
  });
2932
3155
  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(
3156
+ const W = D(!1);
3157
+ return W.current = !1, R(() => {
3158
+ a == null || a(y ?? !1);
3159
+ }, [y]), /* @__PURE__ */ V(
2937
3160
  "div",
2938
3161
  {
2939
3162
  style: { transition: p.duration + "s", ...f },
2940
- ref: w,
2941
- className: V.navigationRail,
3163
+ ref: L,
3164
+ className: A.navigationRail,
2942
3165
  children: [
2943
- /* @__PURE__ */ D("div", { className: V.header, children: [
3166
+ /* @__PURE__ */ V("div", { className: A.header, children: [
2944
3167
  /* @__PURE__ */ u(
2945
- ie,
3168
+ ue,
2946
3169
  {
2947
- onClick: () => b(!v),
2948
- label: v ? s == null ? void 0 : s.opened.label : s == null ? void 0 : s.closed.label,
2949
- className: V.menuIcon,
2950
- icon: v ? s.opened.icon : s == null ? void 0 : s.closed.icon
3170
+ onClick: () => v(!y),
3171
+ label: y ? s == null ? void 0 : s.opened.label : s == null ? void 0 : s.closed.label,
3172
+ className: A.menuIcon,
3173
+ icon: y ? s.opened.icon : s == null ? void 0 : s.closed.icon
2951
3174
  }
2952
3175
  ),
2953
- C.length > 0 && le(C[0], {
3176
+ $.length > 0 && oe($[0], {
2954
3177
  transition: p,
2955
- isExtended: v,
2956
- className: "!shadow-none mx-5 " + C[0].props.className
3178
+ isExtended: y,
3179
+ className: "!shadow-none mx-5 " + $[0].props.className
2957
3180
  })
2958
3181
  ] }),
2959
- /* @__PURE__ */ u("div", { className: V.segments, children: (() => {
3182
+ /* @__PURE__ */ u("div", { className: A.segments, children: (() => {
2960
3183
  let k = 0;
2961
- return E.map((y) => ee(y) && y.type === dt ? le(
2962
- y,
3184
+ return I.map((g) => ee(g) && g.type === Et ? oe(
3185
+ g,
2963
3186
  {
2964
3187
  key: k,
2965
3188
  index: k++,
2966
3189
  // Utilise et incrémente le compteur dédié
2967
- variant: v ? "horizontal" : "vertical",
2968
- selectedItem: L,
2969
- setSelectedItem: I,
3190
+ variant: y ? "horizontal" : "vertical",
3191
+ selectedItem: x,
3192
+ setSelectedItem: E,
2970
3193
  onItemSelected: B,
2971
3194
  transition: p,
2972
- extendedOnly: P.current,
2973
- isExtended: v
3195
+ extendedOnly: W.current,
3196
+ isExtended: y
2974
3197
  }
2975
- ) : ee(y) && y.type === fe ? null : ee(y) && y.type === ut ? (P.current = !0, v ? le(y, {}) : null) : y);
3198
+ ) : ee(g) && g.type === ye ? null : ee(g) && g.type === Nt ? (W.current = !0, y ? oe(g, {}) : null) : g);
2976
3199
  })() }),
2977
3200
  /* @__PURE__ */ u("div", { className: "flex-1 max-h-[160px]" })
2978
3201
  ]
2979
3202
  }
2980
3203
  );
2981
3204
  };
3205
+ function Jt(e) {
3206
+ return Be({
3207
+ variant: We.Fidelity,
3208
+ ...e,
3209
+ plugins: [new De(e), new we(e)]
3210
+ });
3211
+ }
2982
3212
  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,
3213
+ Ht as AnimateOnScrollInit,
3214
+ dt as Button,
3215
+ Ut as Card,
3216
+ Xt as Carousel,
3217
+ mt as CarouselItem,
3218
+ rt as CustomScroll,
3219
+ ht as Divider,
3220
+ ye as Fab,
3221
+ Z as Icon,
3222
+ ue as IconButton,
3223
+ Gt as NavigationRail,
3224
+ Et as NavigationRailItem,
3225
+ Nt as NavigationRailSection,
3226
+ tt as ProgressIndicator,
3227
+ re as RippleEffect,
3228
+ Yt as SideSheet,
3229
+ Ot as Slider,
3230
+ At as SmoothScroll,
3231
+ jt as Snackbar,
3232
+ qt as Switch,
3233
+ lt as SyncedFixedWrapper,
3234
+ bt as Tab,
3235
+ _t as Tabs,
3236
+ Kt as TextField,
3237
+ Ft as ThemeProvider,
3238
+ Le as ToolTip,
3239
+ He as buttonStyle,
3240
+ Ue as cardStyle,
3241
+ Xe as carouselItemStyle,
3242
+ Oe as carouselStyle,
3243
+ h as classNames,
3244
+ Ve as classnames,
3245
+ nt as customScrollStyle,
3246
+ j as defaultClassNames,
3247
+ Jt as defineConfig,
3248
+ Ye as dividerStyle,
3017
3249
  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
3250
+ Fe as getClassNames,
3251
+ qe as iconButtonStyle,
3252
+ ut as initAnimateOnScroll,
3253
+ ft as normalize,
3254
+ _e as progressIndicatorStyle,
3255
+ Ke as sideSheetStyle,
3256
+ Ge as sliderStyle,
3257
+ Je as snackbarStyle,
3258
+ Ze as switchStyle,
3259
+ Qe as tabStyle,
3260
+ ze as tabsStyle,
3261
+ Te as textFieldStyle,
3262
+ et as toolStyle
3030
3263
  };