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