@udixio/ui-react 2.5.2 → 2.6.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 +17 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1139 -1162
- package/dist/lib/components/Carousel.d.ts +0 -2
- package/dist/lib/components/Carousel.d.ts.map +1 -1
- package/dist/lib/effects/AnimateOnScroll.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/lib/components/Carousel.tsx +68 -203
- package/src/lib/effects/AnimateOnScroll.ts +51 -18
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as f, jsxs as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { extendTailwindMerge as
|
|
4
|
-
import
|
|
5
|
-
import { motion as
|
|
6
|
-
import { animate as
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import { loader as
|
|
9
|
-
import { TailwindPlugin as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
1
|
+
import { jsx as f, jsxs as U, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as Pe } from "clsx";
|
|
3
|
+
import { extendTailwindMerge as Ue } from "tailwind-merge";
|
|
4
|
+
import T, { useState as R, useEffect as $, useRef as A, useLayoutEffect as He, isValidElement as me, cloneElement as ve, useMemo as je, Children as qe, Fragment as Ke } from "react";
|
|
5
|
+
import { motion as q, AnimatePresence as ce, useScroll as _e, useMotionValueEvent as Se, animate as Ge } from "motion/react";
|
|
6
|
+
import { animate as Je } from "motion";
|
|
7
|
+
import { createPortal as Ve } from "react-dom";
|
|
8
|
+
import { loader as Ze, defineConfig as Qe, FontPlugin as ze, Variants as Te } from "@udixio/theme";
|
|
9
|
+
import { TailwindPlugin as Oe } from "@udixio/tailwind";
|
|
10
|
+
import et from "react-textarea-autosize";
|
|
11
|
+
const Fe = Ue({
|
|
12
12
|
override: {
|
|
13
13
|
classGroups: {
|
|
14
14
|
"text-color": [
|
|
@@ -34,11 +34,11 @@ const Ye = Ke({
|
|
|
34
34
|
font: ["font"]
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
}), p = (...e) =>
|
|
38
|
-
function
|
|
37
|
+
}), p = (...e) => Fe(Pe(e)), tt = (...e) => Fe(Pe(e));
|
|
38
|
+
function nt(e) {
|
|
39
39
|
return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const rt = (e) => {
|
|
42
42
|
const t = {};
|
|
43
43
|
e.classNameList.forEach((l) => {
|
|
44
44
|
var r;
|
|
@@ -46,23 +46,23 @@ const at = (e) => {
|
|
|
46
46
|
if (typeof l == "string")
|
|
47
47
|
(t[r = e.default] ?? (t[r] = [])).push(l);
|
|
48
48
|
else {
|
|
49
|
-
const
|
|
50
|
-
Object.entries(
|
|
51
|
-
const [
|
|
52
|
-
(t[
|
|
49
|
+
const s = l(e.states);
|
|
50
|
+
Object.entries(s).map((c) => {
|
|
51
|
+
const [a, d] = c;
|
|
52
|
+
(t[a] ?? (t[a] = [])).push(d);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const n = t;
|
|
57
57
|
return Object.entries(t).map((l) => {
|
|
58
|
-
let [r,
|
|
59
|
-
|
|
58
|
+
let [r, s] = l;
|
|
59
|
+
s = s.reverse(), r == e.default && s.unshift("relative"), s.unshift(nt(r)), n[r] = tt(...s);
|
|
60
60
|
}), n;
|
|
61
|
-
}, G = (e, t) => (n) =>
|
|
61
|
+
}, G = (e, t) => (n) => rt({
|
|
62
62
|
classNameList: [n.className, t],
|
|
63
63
|
default: e,
|
|
64
64
|
states: n
|
|
65
|
-
}),
|
|
65
|
+
}), ot = G(
|
|
66
66
|
"button",
|
|
67
67
|
({
|
|
68
68
|
variant: e,
|
|
@@ -70,9 +70,9 @@ const at = (e) => {
|
|
|
70
70
|
disabled: n,
|
|
71
71
|
iconPosition: l,
|
|
72
72
|
icon: r,
|
|
73
|
-
isActive:
|
|
73
|
+
isActive: s,
|
|
74
74
|
loading: c,
|
|
75
|
-
shape:
|
|
75
|
+
shape: a,
|
|
76
76
|
onToggle: d,
|
|
77
77
|
size: o,
|
|
78
78
|
allowShapeTransformation: h
|
|
@@ -84,12 +84,12 @@ const at = (e) => {
|
|
|
84
84
|
o === "medium" && "text-title-medium px-6 py-4 gap-2",
|
|
85
85
|
o === "large" && "text-headline-small px-12 py-8 gap-3",
|
|
86
86
|
o === "xLarge" && "text-headline-large px-16 py-12 gap-4",
|
|
87
|
-
|
|
87
|
+
a === "rounded" && {
|
|
88
88
|
"rounded-[30px]": o === "xSmall" || o == "small",
|
|
89
89
|
"rounded-[40px]": o === "medium",
|
|
90
90
|
"rounded-[70px]": o === "large" || o == "xLarge"
|
|
91
91
|
},
|
|
92
|
-
(
|
|
92
|
+
(a === "squared" || h && s) && {
|
|
93
93
|
"rounded-[12px]": o === "xSmall" || o == "small",
|
|
94
94
|
"rounded-[16px]": o === "medium",
|
|
95
95
|
"rounded-[28px]": o === "large" || o == "xLarge"
|
|
@@ -101,28 +101,28 @@ const at = (e) => {
|
|
|
101
101
|
},
|
|
102
102
|
e === "elevated" && {
|
|
103
103
|
"shadow-1 hover:shadow-2": !n,
|
|
104
|
-
"bg-surface-container-low text-primary": !n && !
|
|
105
|
-
"bg-primary text-on-primary": !n &&
|
|
104
|
+
"bg-surface-container-low text-primary": !n && !s,
|
|
105
|
+
"bg-primary text-on-primary": !n && s,
|
|
106
106
|
"text-on-surface/[38%]": n
|
|
107
107
|
},
|
|
108
108
|
e === "filled" && {
|
|
109
109
|
"hover:shadow-1": !n,
|
|
110
|
-
"bg-surface-container text-on-surface-variant": !n && !
|
|
111
|
-
"bg-primary text-on-primary": !n && (
|
|
110
|
+
"bg-surface-container text-on-surface-variant": !n && !s && d,
|
|
111
|
+
"bg-primary text-on-primary": !n && (s && d || !d),
|
|
112
112
|
"text-on-surface/[38%]": n
|
|
113
113
|
},
|
|
114
114
|
e === "tonal" && {
|
|
115
115
|
"hover:shadow-1": !n,
|
|
116
|
-
"bg-secondary-container text-on-secondary-container": !n && !
|
|
117
|
-
"bg-secondary text-on-secondary": !n &&
|
|
116
|
+
"bg-secondary-container text-on-secondary-container": !n && !s,
|
|
117
|
+
"bg-secondary text-on-secondary": !n && s,
|
|
118
118
|
"text-on-surface/[0.38]": n
|
|
119
119
|
},
|
|
120
120
|
e === "outlined" && [
|
|
121
121
|
" border",
|
|
122
122
|
{
|
|
123
123
|
"border-on-surface/[0.12] text-on-surface/[0.38]": n,
|
|
124
|
-
"text-primary border-outline focus:border-primary": !n && !
|
|
125
|
-
"text-inverse-on-surface bg-inverse-surface border-inverse-surface": !n &&
|
|
124
|
+
"text-primary border-outline focus:border-primary": !n && !s,
|
|
125
|
+
"text-inverse-on-surface bg-inverse-surface border-inverse-surface": !n && s
|
|
126
126
|
}
|
|
127
127
|
],
|
|
128
128
|
e === "text" && [
|
|
@@ -159,12 +159,12 @@ const at = (e) => {
|
|
|
159
159
|
"group-state-on-primary": !n && !d,
|
|
160
160
|
"group-state-on-surface-variant": !n && d
|
|
161
161
|
},
|
|
162
|
-
|
|
162
|
+
a === "rounded" && {
|
|
163
163
|
"rounded-[30px]": o === "xSmall" || o == "small",
|
|
164
164
|
"rounded-[40px]": o === "medium",
|
|
165
165
|
"rounded-[70px]": o === "large" || o == "xLarge"
|
|
166
166
|
},
|
|
167
|
-
(
|
|
167
|
+
(a === "squared" || h && s) && {
|
|
168
168
|
"rounded-[12px]": o === "xSmall" || o == "small",
|
|
169
169
|
"rounded-[16px]": o === "medium",
|
|
170
170
|
"rounded-[28px]": o === "large" || o == "xLarge"
|
|
@@ -195,7 +195,7 @@ const at = (e) => {
|
|
|
195
195
|
o === "xLarge" && "size-10"
|
|
196
196
|
)
|
|
197
197
|
})
|
|
198
|
-
),
|
|
198
|
+
), lt = G(
|
|
199
199
|
"card",
|
|
200
200
|
({ variant: e, isInteractive: t }) => ({
|
|
201
201
|
card: p(
|
|
@@ -211,7 +211,7 @@ const at = (e) => {
|
|
|
211
211
|
}
|
|
212
212
|
])
|
|
213
213
|
})
|
|
214
|
-
),
|
|
214
|
+
), at = G(
|
|
215
215
|
"carouselItem",
|
|
216
216
|
({ width: e }) => ({
|
|
217
217
|
carouselItem: p("rounded-[28px] overflow-hidden flex-none", {
|
|
@@ -219,13 +219,13 @@ const at = (e) => {
|
|
|
219
219
|
"flex-1": e == null
|
|
220
220
|
})
|
|
221
221
|
})
|
|
222
|
-
),
|
|
222
|
+
), st = G(
|
|
223
223
|
"carousel",
|
|
224
224
|
() => ({
|
|
225
225
|
carousel: p(["w-full h-[400px]"]),
|
|
226
226
|
track: p("flex h-full w-full")
|
|
227
227
|
})
|
|
228
|
-
),
|
|
228
|
+
), ct = G(
|
|
229
229
|
"divider",
|
|
230
230
|
({ orientation: e }) => ({
|
|
231
231
|
divider: p(
|
|
@@ -238,7 +238,7 @@ const at = (e) => {
|
|
|
238
238
|
}
|
|
239
239
|
)
|
|
240
240
|
})
|
|
241
|
-
),
|
|
241
|
+
), it = G(
|
|
242
242
|
"fab",
|
|
243
243
|
({ size: e, variant: t, isExtended: n }) => ({
|
|
244
244
|
fab: p(
|
|
@@ -275,7 +275,7 @@ const at = (e) => {
|
|
|
275
275
|
}),
|
|
276
276
|
label: p("text-title-medium text-nowrap")
|
|
277
277
|
})
|
|
278
|
-
),
|
|
278
|
+
), ut = G(
|
|
279
279
|
"iconButton",
|
|
280
280
|
({
|
|
281
281
|
variant: e,
|
|
@@ -283,9 +283,9 @@ const at = (e) => {
|
|
|
283
283
|
onToggle: n,
|
|
284
284
|
isActive: l,
|
|
285
285
|
size: r,
|
|
286
|
-
width:
|
|
286
|
+
width: s,
|
|
287
287
|
shape: c,
|
|
288
|
-
allowShapeTransformation:
|
|
288
|
+
allowShapeTransformation: a
|
|
289
289
|
}) => ({
|
|
290
290
|
iconButton: p(
|
|
291
291
|
"rounded-full relative flex transition-all duration-300",
|
|
@@ -298,12 +298,12 @@ const at = (e) => {
|
|
|
298
298
|
"rounded-[40px]": r === "medium",
|
|
299
299
|
"rounded-[70px]": r === "large" || r == "xLarge"
|
|
300
300
|
},
|
|
301
|
-
(c === "squared" ||
|
|
301
|
+
(c === "squared" || a && l) && {
|
|
302
302
|
"rounded-[12px]": r === "xSmall" || r == "small",
|
|
303
303
|
"rounded-[16px]": r === "medium",
|
|
304
304
|
"rounded-[28px]": r === "large" || r == "xLarge"
|
|
305
305
|
},
|
|
306
|
-
|
|
306
|
+
a && !t && {
|
|
307
307
|
"active:rounded-[12px]": r === "xSmall" || r == "small",
|
|
308
308
|
"active:rounded-[16px]": r === "medium",
|
|
309
309
|
"active:rounded-[28px]": r === "large" || r == "xLarge"
|
|
@@ -338,17 +338,17 @@ const at = (e) => {
|
|
|
338
338
|
),
|
|
339
339
|
stateLayer: p(
|
|
340
340
|
"absolute top-0 left-0 h-full w-full overflow-hidden",
|
|
341
|
-
(c === "rounded" || c === "squared" && n && !t && l &&
|
|
341
|
+
(c === "rounded" || c === "squared" && n && !t && l && a) && {
|
|
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
|
-
(c === "squared" || c === "rounded" && n && !t && l &&
|
|
346
|
+
(c === "squared" || c === "rounded" && n && !t && l && a) && {
|
|
347
347
|
"rounded-[12px]": r === "xSmall" || r == "small",
|
|
348
348
|
"rounded-[16px]": r === "medium",
|
|
349
349
|
"rounded-[28px]": r === "large" || r == "xLarge"
|
|
350
350
|
},
|
|
351
|
-
|
|
351
|
+
a && !t && {
|
|
352
352
|
"group-active:rounded-[12px]": r === "xSmall" || r == "small",
|
|
353
353
|
"group-active:rounded-[16px]": r === "medium",
|
|
354
354
|
"group-active:rounded-[28px]": r === "large" || r == "xLarge"
|
|
@@ -379,14 +379,14 @@ const at = (e) => {
|
|
|
379
379
|
{ "size-6 p-4": r === "medium" },
|
|
380
380
|
{ "size-8 p-8": r === "large" },
|
|
381
381
|
{ "size-10 p-12": r === "xLarge" },
|
|
382
|
-
|
|
382
|
+
s == "narrow" && [
|
|
383
383
|
{ "px-1": r === "xSmall" },
|
|
384
384
|
{ "px-1": r === "small" },
|
|
385
385
|
{ "px-3": r === "medium" },
|
|
386
386
|
{ "px-4": r === "large" },
|
|
387
387
|
{ "px-8": r === "xLarge" }
|
|
388
388
|
],
|
|
389
|
-
|
|
389
|
+
s == "wide" && [
|
|
390
390
|
{ "px-2.5": r === "xSmall" },
|
|
391
391
|
{ "px-3.5": r === "small" },
|
|
392
392
|
{ "px-6": r === "medium" },
|
|
@@ -414,7 +414,7 @@ const at = (e) => {
|
|
|
414
414
|
!!t && "text-on-surface/[0.38]"
|
|
415
415
|
)
|
|
416
416
|
})
|
|
417
|
-
),
|
|
417
|
+
), dt = G(
|
|
418
418
|
"progressIndicator",
|
|
419
419
|
({ variant: e, isVisible: t }) => ({
|
|
420
420
|
progressIndicator: p(
|
|
@@ -446,7 +446,7 @@ const at = (e) => {
|
|
|
446
446
|
}
|
|
447
447
|
)
|
|
448
448
|
})
|
|
449
|
-
),
|
|
449
|
+
), ft = G(
|
|
450
450
|
"slideSheet",
|
|
451
451
|
({ variant: e, position: t }) => ({
|
|
452
452
|
slideSheet: p(
|
|
@@ -473,7 +473,7 @@ const at = (e) => {
|
|
|
473
473
|
"bg-[black]/[0.32] fixed top-0 left-0 w-screen h-screen"
|
|
474
474
|
)
|
|
475
475
|
})
|
|
476
|
-
),
|
|
476
|
+
), mt = G(
|
|
477
477
|
"slider",
|
|
478
478
|
({ isChanging: e }) => ({
|
|
479
479
|
slider: p([
|
|
@@ -496,7 +496,7 @@ const at = (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
|
-
),
|
|
499
|
+
), ht = G(
|
|
500
500
|
"snackbar",
|
|
501
501
|
() => ({
|
|
502
502
|
snackbar: p(" rounded bg-inverse-surface "),
|
|
@@ -506,7 +506,7 @@ const at = (e) => {
|
|
|
506
506
|
supportingText: p("text-body-medium text-inverse-on-surface "),
|
|
507
507
|
icon: p(" ml-auto mr-0 text-inverse-on-surface block dark")
|
|
508
508
|
})
|
|
509
|
-
),
|
|
509
|
+
), pt = G(
|
|
510
510
|
"switch",
|
|
511
511
|
({ isSelected: e, disabled: t, inactiveIcon: n }) => ({
|
|
512
512
|
switch: p(
|
|
@@ -549,7 +549,7 @@ const at = (e) => {
|
|
|
549
549
|
{ "text-on-surface/[0.38]": t }
|
|
550
550
|
)
|
|
551
551
|
})
|
|
552
|
-
),
|
|
552
|
+
), yt = G(
|
|
553
553
|
"tab",
|
|
554
554
|
({ isSelected: e, icon: t, label: n, variant: l }) => ({
|
|
555
555
|
tab: p(
|
|
@@ -608,7 +608,7 @@ const at = (e) => {
|
|
|
608
608
|
l === "secondary" && "h-0.5"
|
|
609
609
|
)
|
|
610
610
|
})
|
|
611
|
-
),
|
|
611
|
+
), wt = G(
|
|
612
612
|
"tabs",
|
|
613
613
|
({ scrollable: e }) => ({
|
|
614
614
|
tabs: p(
|
|
@@ -617,7 +617,7 @@ const at = (e) => {
|
|
|
617
617
|
{ "overflow-x-auto": e }
|
|
618
618
|
)
|
|
619
619
|
})
|
|
620
|
-
),
|
|
620
|
+
), vt = G(
|
|
621
621
|
"textField",
|
|
622
622
|
({
|
|
623
623
|
disabled: e,
|
|
@@ -625,9 +625,9 @@ const at = (e) => {
|
|
|
625
625
|
trailingIcon: n,
|
|
626
626
|
variant: l,
|
|
627
627
|
errorText: r,
|
|
628
|
-
isFocused:
|
|
628
|
+
isFocused: s,
|
|
629
629
|
value: c,
|
|
630
|
-
suffix:
|
|
630
|
+
suffix: a,
|
|
631
631
|
textLine: d
|
|
632
632
|
}) => ({
|
|
633
633
|
textField: p({
|
|
@@ -637,9 +637,9 @@ const at = (e) => {
|
|
|
637
637
|
"group transition-border duration-200 relative flex items-center ",
|
|
638
638
|
{ "h-14": d == "singleLine" },
|
|
639
639
|
{
|
|
640
|
-
"border-on-surface-variant": !(r != null && r.length) && !
|
|
641
|
-
"border-outline": !(r != null && r.length) && !
|
|
642
|
-
"border-primary": !(r != null && r.length) &&
|
|
640
|
+
"border-on-surface-variant": !(r != null && r.length) && !s && l == "filled",
|
|
641
|
+
"border-outline": !(r != null && r.length) && !s && l == "outlined",
|
|
642
|
+
"border-primary": !(r != null && r.length) && s,
|
|
643
643
|
"border-error": !!(r != null && r.length)
|
|
644
644
|
},
|
|
645
645
|
{ "bg-on-surface/[0.04]": e },
|
|
@@ -650,7 +650,7 @@ const at = (e) => {
|
|
|
650
650
|
l == "outlined" && [
|
|
651
651
|
"border rounded box-border",
|
|
652
652
|
{
|
|
653
|
-
"border-[3px]":
|
|
653
|
+
"border-[3px]": s
|
|
654
654
|
}
|
|
655
655
|
]
|
|
656
656
|
),
|
|
@@ -661,7 +661,7 @@ const at = (e) => {
|
|
|
661
661
|
},
|
|
662
662
|
{
|
|
663
663
|
"group-state-on-surface": !e,
|
|
664
|
-
"focus-state-on-surface":
|
|
664
|
+
"focus-state-on-surface": s
|
|
665
665
|
}
|
|
666
666
|
),
|
|
667
667
|
label: p(
|
|
@@ -669,7 +669,7 @@ const at = (e) => {
|
|
|
669
669
|
{ "text-on-surface-variant": !e && !(r != null && r.length) },
|
|
670
670
|
{ "text-on-surface": e },
|
|
671
671
|
{ "text-error": !!(r != null && r.length) },
|
|
672
|
-
{ "text-primary": !(r != null && r.length) &&
|
|
672
|
+
{ "text-primary": !(r != null && r.length) && s }
|
|
673
673
|
),
|
|
674
674
|
input: p(
|
|
675
675
|
"w-full resize-none px-4 text-body-large bg-[inherit] outline-none autofill:transition-colors autofill:duration-[5000000ms]",
|
|
@@ -678,7 +678,7 @@ const at = (e) => {
|
|
|
678
678
|
"placeholder:text-on-surface text-on-surface": e
|
|
679
679
|
},
|
|
680
680
|
{
|
|
681
|
-
"pr-0": !!
|
|
681
|
+
"pr-0": !!a
|
|
682
682
|
},
|
|
683
683
|
l == "filled" && " pb-2 pt-6",
|
|
684
684
|
l == "outlined" && "py-4 relative z-10"
|
|
@@ -689,22 +689,22 @@ const at = (e) => {
|
|
|
689
689
|
"h-[2px] transition-all duration-300",
|
|
690
690
|
{ "bg-primary": !(r != null && r.length) },
|
|
691
691
|
{ "bg-error": !!(r != null && r.length) },
|
|
692
|
-
{ "!w-full":
|
|
692
|
+
{ "!w-full": s }
|
|
693
693
|
]
|
|
694
694
|
),
|
|
695
695
|
supportingText: p(
|
|
696
696
|
" text-body-small px-4 pt-1",
|
|
697
697
|
{ "text-on-surface-variant": !e && !(r != null && r.length) },
|
|
698
698
|
{ "text-on-surface": e },
|
|
699
|
-
{ "!w-full":
|
|
699
|
+
{ "!w-full": s },
|
|
700
700
|
{ "text-error": !!(r != null && r.length) }
|
|
701
701
|
),
|
|
702
702
|
leadingIcon: p([
|
|
703
703
|
"h-12 ml-3 flex items-center justify-center",
|
|
704
|
-
{ "cursor-text": !
|
|
704
|
+
{ "cursor-text": !T.isValidElement(t) }
|
|
705
705
|
]),
|
|
706
706
|
trailingIcon: p("h-12 w-12 flex items-center justify-center", {
|
|
707
|
-
"cursor-text": !
|
|
707
|
+
"cursor-text": !T.isValidElement(n)
|
|
708
708
|
}),
|
|
709
709
|
suffix: p(
|
|
710
710
|
"text-on-surface-variant pl-0 pr-4",
|
|
@@ -712,7 +712,7 @@ const at = (e) => {
|
|
|
712
712
|
l == "outlined" && "py-4 relative z-10"
|
|
713
713
|
)
|
|
714
714
|
})
|
|
715
|
-
),
|
|
715
|
+
), xt = G(
|
|
716
716
|
"toolTip",
|
|
717
717
|
({ position: e, variant: t }) => ({
|
|
718
718
|
toolTip: p(
|
|
@@ -743,7 +743,7 @@ const at = (e) => {
|
|
|
743
743
|
),
|
|
744
744
|
supportingText: p("")
|
|
745
745
|
})
|
|
746
|
-
),
|
|
746
|
+
), se = ({ icon: e, colors: t = [], className: n }) => {
|
|
747
747
|
if (typeof e == "string") {
|
|
748
748
|
let o = e;
|
|
749
749
|
return t[0] && (o = o.replace(
|
|
@@ -784,7 +784,7 @@ const at = (e) => {
|
|
|
784
784
|
const l = e;
|
|
785
785
|
if (!(l != null && l.prefix))
|
|
786
786
|
throw new Error(`Invalid icon type: ${typeof e}`);
|
|
787
|
-
const { icon: r } = l, [
|
|
787
|
+
const { icon: r } = l, [s, c, , , a] = r || [], d = (o) => {
|
|
788
788
|
switch (o.length) {
|
|
789
789
|
case 2:
|
|
790
790
|
return {
|
|
@@ -803,59 +803,59 @@ const at = (e) => {
|
|
|
803
803
|
className: p("size-5 box-content", n),
|
|
804
804
|
style: { ...d(t) },
|
|
805
805
|
xmlns: "http://www.w3.org/2000/svg",
|
|
806
|
-
viewBox: `0 0 ${
|
|
806
|
+
viewBox: `0 0 ${s} ${c}`,
|
|
807
807
|
role: "img",
|
|
808
808
|
"aria-hidden": "true",
|
|
809
|
-
children: typeof
|
|
809
|
+
children: typeof a == "string" ? /* @__PURE__ */ f("path", { className: "fill-current", d: a }) : a.map((o, h) => /* @__PURE__ */ f("path", { d: o }, h))
|
|
810
810
|
}
|
|
811
811
|
);
|
|
812
|
-
},
|
|
812
|
+
}, gt = ({
|
|
813
813
|
variant: e = "linear-determinate",
|
|
814
814
|
value: t = 0,
|
|
815
815
|
transitionDuration: n = 1e3,
|
|
816
816
|
className: l,
|
|
817
817
|
...r
|
|
818
818
|
}) => {
|
|
819
|
-
const [
|
|
819
|
+
const [s, c] = R(t), [a] = R(1.5);
|
|
820
820
|
$(() => {
|
|
821
821
|
t > 100 && (t = 100), t < 0 && (t = 0), c(t);
|
|
822
822
|
}, [t]);
|
|
823
|
-
const [d, o] =
|
|
823
|
+
const [d, o] = R(!0), h = () => d ? a : a * 0.5;
|
|
824
824
|
$(() => {
|
|
825
|
-
if ((e === "circular-indeterminate" || e === "linear-indeterminate") &&
|
|
825
|
+
if ((e === "circular-indeterminate" || e === "linear-indeterminate") && s !== 100) {
|
|
826
826
|
const m = setInterval(() => {
|
|
827
827
|
c(d ? 10 : 90), o(!d);
|
|
828
828
|
}, h() * 1e3);
|
|
829
829
|
return () => clearInterval(m);
|
|
830
830
|
}
|
|
831
|
-
}, [e, d,
|
|
832
|
-
const [
|
|
831
|
+
}, [e, d, s]);
|
|
832
|
+
const [v, i] = R(!1);
|
|
833
833
|
$(() => {
|
|
834
|
-
if (
|
|
834
|
+
if (s >= 100) {
|
|
835
835
|
const m = setTimeout(() => {
|
|
836
|
-
|
|
836
|
+
i(!1);
|
|
837
837
|
}, n);
|
|
838
838
|
return () => {
|
|
839
839
|
clearTimeout(m);
|
|
840
840
|
};
|
|
841
841
|
} else
|
|
842
|
-
|
|
843
|
-
}, [
|
|
844
|
-
const u =
|
|
842
|
+
i(!0);
|
|
843
|
+
}, [s, n]);
|
|
844
|
+
const u = dt({
|
|
845
845
|
className: l,
|
|
846
846
|
variant: e,
|
|
847
847
|
value: t,
|
|
848
848
|
transitionDuration: n,
|
|
849
|
-
isVisible:
|
|
849
|
+
isVisible: v
|
|
850
850
|
});
|
|
851
|
-
return /* @__PURE__ */
|
|
852
|
-
(e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */
|
|
851
|
+
return /* @__PURE__ */ U(he, { children: [
|
|
852
|
+
(e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ U("div", { className: u.progressIndicator, ...r, children: [
|
|
853
853
|
/* @__PURE__ */ f(
|
|
854
854
|
"div",
|
|
855
855
|
{
|
|
856
856
|
style: {
|
|
857
|
-
width: `${
|
|
858
|
-
transition: `width ${n}ms ease-in-out ${
|
|
857
|
+
width: `${s}%`,
|
|
858
|
+
transition: `width ${n}ms ease-in-out ${s == 100 ? ", max-height 200ms 0.5s ease-in-out" : ""}`
|
|
859
859
|
},
|
|
860
860
|
className: u.track
|
|
861
861
|
}
|
|
@@ -864,8 +864,8 @@ const at = (e) => {
|
|
|
864
864
|
"div",
|
|
865
865
|
{
|
|
866
866
|
style: {
|
|
867
|
-
marginLeft:
|
|
868
|
-
transition: `width ${n}ms ease-in-out ${
|
|
867
|
+
marginLeft: s != 100 ? "6px" : "0px",
|
|
868
|
+
transition: `width ${n}ms ease-in-out ${s == 100 ? `, max-height 200ms 0.5s ease-in-out, margin-left ${n}ms ${n / 1.5}ms` : ""}`
|
|
869
869
|
},
|
|
870
870
|
className: u.activeIndicator
|
|
871
871
|
}
|
|
@@ -882,7 +882,7 @@ const at = (e) => {
|
|
|
882
882
|
)
|
|
883
883
|
] }),
|
|
884
884
|
(e === "circular-determinate" || e == "circular-indeterminate") && /* @__PURE__ */ f(
|
|
885
|
-
|
|
885
|
+
q.svg,
|
|
886
886
|
{
|
|
887
887
|
width: "48",
|
|
888
888
|
height: "48",
|
|
@@ -897,11 +897,11 @@ const at = (e) => {
|
|
|
897
897
|
className: u.progressIndicator,
|
|
898
898
|
...r,
|
|
899
899
|
children: /* @__PURE__ */ f(
|
|
900
|
-
|
|
900
|
+
q.circle,
|
|
901
901
|
{
|
|
902
902
|
cx: "50%",
|
|
903
903
|
cy: "50%",
|
|
904
|
-
r:
|
|
904
|
+
r: v ? "calc(50% - 2px)" : "50%",
|
|
905
905
|
style: {
|
|
906
906
|
strokeLinecap: "round"
|
|
907
907
|
},
|
|
@@ -951,36 +951,36 @@ const at = (e) => {
|
|
|
951
951
|
borderRadius: { duration: 0.3, delay: 0.3 }
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
}, [l, r] =
|
|
954
|
+
}, [l, r] = R(!0), [s, c] = R(!1), [a, d] = R({ x: 0, y: 0 });
|
|
955
955
|
$(() => {
|
|
956
|
-
|
|
957
|
-
}, [
|
|
958
|
-
const
|
|
959
|
-
if (
|
|
960
|
-
return
|
|
961
|
-
|
|
956
|
+
s && (r(!0), r(!1));
|
|
957
|
+
}, [s]), $(() => {
|
|
958
|
+
const i = t == null ? void 0 : t.current;
|
|
959
|
+
if (i)
|
|
960
|
+
return i.addEventListener("mousedown", o), i.addEventListener("mouseup", v), i.addEventListener("mouseleave", h), () => {
|
|
961
|
+
i.removeEventListener("mousedown", o), i.removeEventListener("mouseup", v), i.removeEventListener("mouseleave", h);
|
|
962
962
|
};
|
|
963
963
|
}, [t]);
|
|
964
|
-
const o = (
|
|
964
|
+
const o = (i) => {
|
|
965
965
|
const u = t == null ? void 0 : t.current, m = u.getBoundingClientRect();
|
|
966
966
|
c(!0), d({
|
|
967
|
-
x: (
|
|
968
|
-
y: (
|
|
967
|
+
x: (i.clientX - m.left) / u.clientWidth * 100,
|
|
968
|
+
y: (i.clientY - m.top) / u.clientHeight * 100
|
|
969
969
|
});
|
|
970
|
-
}, h = (
|
|
970
|
+
}, h = (i) => {
|
|
971
971
|
c(!1);
|
|
972
|
-
},
|
|
972
|
+
}, v = (i) => {
|
|
973
973
|
c(!1);
|
|
974
974
|
};
|
|
975
|
-
return /* @__PURE__ */ f(
|
|
976
|
-
|
|
975
|
+
return /* @__PURE__ */ f(ce, { mode: "wait", children: (s || !s && !l) && /* @__PURE__ */ f(
|
|
976
|
+
q.div,
|
|
977
977
|
{
|
|
978
978
|
style: {
|
|
979
979
|
position: "absolute",
|
|
980
980
|
width: "100%",
|
|
981
981
|
height: "100%",
|
|
982
|
-
top:
|
|
983
|
-
left:
|
|
982
|
+
top: a.y + "%",
|
|
983
|
+
left: a.x + "%",
|
|
984
984
|
background: `color-mix(in srgb, var(--color-${e}) 12%, transparent)`,
|
|
985
985
|
pointerEvents: "none"
|
|
986
986
|
},
|
|
@@ -992,7 +992,7 @@ const at = (e) => {
|
|
|
992
992
|
className: "transform -translate-x-1/2 -translate-y-1/2"
|
|
993
993
|
}
|
|
994
994
|
) });
|
|
995
|
-
},
|
|
995
|
+
}, bt = G(
|
|
996
996
|
"customScroll",
|
|
997
997
|
({ orientation: e, draggable: t, isDragging: n }) => ({
|
|
998
998
|
customScroll: p(
|
|
@@ -1021,194 +1021,194 @@ const at = (e) => {
|
|
|
1021
1021
|
})
|
|
1022
1022
|
})
|
|
1023
1023
|
);
|
|
1024
|
-
function
|
|
1024
|
+
function Lt(e, t) {
|
|
1025
1025
|
let n = 0, l = null, r = null;
|
|
1026
|
-
const
|
|
1027
|
-
n = Date.now(), t(c,
|
|
1026
|
+
const s = (c, a) => {
|
|
1027
|
+
n = Date.now(), t(c, a);
|
|
1028
1028
|
};
|
|
1029
|
-
return (c,
|
|
1029
|
+
return (c, a) => {
|
|
1030
1030
|
const d = Date.now(), o = e - (d - n);
|
|
1031
|
-
o <= 0 ? (l && (clearTimeout(l), l = null),
|
|
1031
|
+
o <= 0 ? (l && (clearTimeout(l), l = null), s(c, a)) : (r = { v: c, o: a }, l || (l = setTimeout(() => {
|
|
1032
1032
|
l = null;
|
|
1033
1033
|
const h = r;
|
|
1034
|
-
r = null, h &&
|
|
1034
|
+
r = null, h && s(h.v, h.o);
|
|
1035
1035
|
}, o)));
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
const
|
|
1038
|
+
const Nt = ({
|
|
1039
1039
|
children: e,
|
|
1040
1040
|
orientation: t = "vertical",
|
|
1041
1041
|
scrollSize: n,
|
|
1042
1042
|
onScroll: l,
|
|
1043
1043
|
className: r,
|
|
1044
|
-
draggable:
|
|
1044
|
+
draggable: s = !1,
|
|
1045
1045
|
throttleDuration: c = 75,
|
|
1046
|
-
scroll:
|
|
1046
|
+
scroll: a,
|
|
1047
1047
|
setScroll: d
|
|
1048
1048
|
}) => {
|
|
1049
|
-
var
|
|
1050
|
-
const o =
|
|
1049
|
+
var oe, ie;
|
|
1050
|
+
const o = A(null), h = A(null), [v, i] = R({
|
|
1051
1051
|
width: null,
|
|
1052
1052
|
height: null
|
|
1053
1053
|
});
|
|
1054
1054
|
$(() => {
|
|
1055
1055
|
if (!o.current) return;
|
|
1056
|
-
const
|
|
1057
|
-
for (const
|
|
1058
|
-
|
|
1059
|
-
width:
|
|
1060
|
-
height:
|
|
1056
|
+
const k = new ResizeObserver((b) => {
|
|
1057
|
+
for (const D of b)
|
|
1058
|
+
D.target === o.current && i({
|
|
1059
|
+
width: D.contentRect.width,
|
|
1060
|
+
height: D.contentRect.height
|
|
1061
1061
|
// On observe aussi la hauteur maintenant
|
|
1062
1062
|
});
|
|
1063
1063
|
});
|
|
1064
|
-
return
|
|
1065
|
-
|
|
1064
|
+
return k.observe(o.current), () => {
|
|
1065
|
+
k.disconnect();
|
|
1066
1066
|
};
|
|
1067
1067
|
}, [o]);
|
|
1068
|
-
const u =
|
|
1069
|
-
const
|
|
1070
|
-
return
|
|
1071
|
-
width: n ??
|
|
1072
|
-
height: n ??
|
|
1068
|
+
const u = A(null), m = A(null), y = () => {
|
|
1069
|
+
const k = h.current;
|
|
1070
|
+
return k ? {
|
|
1071
|
+
width: n ?? k.scrollWidth,
|
|
1072
|
+
height: n ?? k.scrollHeight
|
|
1073
1073
|
} : null;
|
|
1074
|
-
},
|
|
1075
|
-
const
|
|
1076
|
-
return
|
|
1077
|
-
width:
|
|
1078
|
-
height:
|
|
1074
|
+
}, w = () => {
|
|
1075
|
+
const k = o.current;
|
|
1076
|
+
return k ? {
|
|
1077
|
+
width: k.clientWidth,
|
|
1078
|
+
height: k.clientHeight
|
|
1079
1079
|
// Correction ici pour retourner la bonne hauteur
|
|
1080
1080
|
} : null;
|
|
1081
|
-
}, { scrollYProgress:
|
|
1081
|
+
}, { scrollYProgress: I, scrollXProgress: g } = _e({
|
|
1082
1082
|
container: o
|
|
1083
|
-
}),
|
|
1084
|
-
|
|
1083
|
+
}), W = A(null);
|
|
1084
|
+
W.current || (W.current = Lt(
|
|
1085
1085
|
c,
|
|
1086
|
-
(
|
|
1087
|
-
!m.current || !u.current || !o.current || (
|
|
1088
|
-
scrollProgress:
|
|
1089
|
-
scroll:
|
|
1086
|
+
(k, b) => {
|
|
1087
|
+
!m.current || !u.current || !o.current || (b === (t === "horizontal" ? "x" : "y") && (d == null || d(k)), l && (t === "horizontal" && b === "x" && l({
|
|
1088
|
+
scrollProgress: k,
|
|
1089
|
+
scroll: k * (u.current.width - o.current.clientWidth),
|
|
1090
1090
|
scrollTotal: u.current.width - o.current.clientWidth,
|
|
1091
1091
|
scrollVisible: m.current.width
|
|
1092
|
-
}), t === "vertical" &&
|
|
1093
|
-
scrollProgress:
|
|
1094
|
-
scroll:
|
|
1092
|
+
}), t === "vertical" && b === "y" && l({
|
|
1093
|
+
scrollProgress: k,
|
|
1094
|
+
scroll: k * (u.current.height - o.current.clientHeight),
|
|
1095
1095
|
scrollTotal: u.current.height - o.current.clientHeight,
|
|
1096
1096
|
scrollVisible: m.current.height
|
|
1097
1097
|
})));
|
|
1098
1098
|
}
|
|
1099
1099
|
));
|
|
1100
|
-
const
|
|
1101
|
-
|
|
1100
|
+
const L = (k, b) => {
|
|
1101
|
+
W.current && W.current(k, b);
|
|
1102
1102
|
};
|
|
1103
1103
|
$(() => {
|
|
1104
|
-
|
|
1105
|
-
}, [
|
|
1106
|
-
const
|
|
1107
|
-
if (!
|
|
1108
|
-
const
|
|
1104
|
+
v.width && L(g.get(), "x"), v.height && L(I.get(), "y");
|
|
1105
|
+
}, [v]), $(() => {
|
|
1106
|
+
const k = o.current, b = h.current;
|
|
1107
|
+
if (!k || !b || typeof a != "number") return;
|
|
1108
|
+
const D = (H, j, Y) => Math.min(Y, Math.max(j, H));
|
|
1109
1109
|
if (t === "horizontal") {
|
|
1110
|
-
const H = Math.max(0, (n ??
|
|
1111
|
-
|
|
1110
|
+
const H = Math.max(0, (n ?? b.scrollWidth) - k.clientWidth);
|
|
1111
|
+
k.scrollLeft = D(a * H, 0, H);
|
|
1112
1112
|
} else {
|
|
1113
|
-
const H = Math.max(0, (n ??
|
|
1114
|
-
|
|
1113
|
+
const H = Math.max(0, (n ?? b.scrollHeight) - k.clientHeight);
|
|
1114
|
+
k.scrollTop = D(a * H, 0, H);
|
|
1115
1115
|
}
|
|
1116
|
-
}, [
|
|
1117
|
-
|
|
1118
|
-
}),
|
|
1119
|
-
|
|
1116
|
+
}, [a, t, n]), Se(g, "change", (k) => {
|
|
1117
|
+
L(k, "x");
|
|
1118
|
+
}), Se(I, "change", (k) => {
|
|
1119
|
+
L(k, "y");
|
|
1120
1120
|
});
|
|
1121
|
-
const [P,
|
|
1122
|
-
|
|
1121
|
+
const [P, N] = R(!1);
|
|
1122
|
+
He(() => {
|
|
1123
1123
|
P || !m.current || !u.current || !l || (l({
|
|
1124
1124
|
scrollProgress: 0,
|
|
1125
1125
|
scroll: 0,
|
|
1126
1126
|
scrollTotal: t == "vertical" ? u.current.height : u.current.width,
|
|
1127
1127
|
scrollVisible: t == "vertical" ? m.current.height : m.current.width
|
|
1128
|
-
}),
|
|
1129
|
-
}, [m, u, l]), u.current =
|
|
1130
|
-
const [
|
|
1131
|
-
isDragging:
|
|
1128
|
+
}), N(!0));
|
|
1129
|
+
}, [m, u, l]), u.current = y(), m.current = w();
|
|
1130
|
+
const [F, V] = R(!1), C = bt({
|
|
1131
|
+
isDragging: F,
|
|
1132
1132
|
children: e,
|
|
1133
1133
|
className: r,
|
|
1134
1134
|
onScroll: l,
|
|
1135
1135
|
orientation: t,
|
|
1136
1136
|
scrollSize: n,
|
|
1137
|
-
draggable:
|
|
1137
|
+
draggable: s,
|
|
1138
1138
|
throttleDuration: c
|
|
1139
|
-
}), [
|
|
1140
|
-
if (!
|
|
1141
|
-
const
|
|
1142
|
-
if (!
|
|
1143
|
-
const H = (
|
|
1144
|
-
|
|
1145
|
-
}, _ = (
|
|
1146
|
-
const
|
|
1147
|
-
|
|
1148
|
-
},
|
|
1149
|
-
|
|
1139
|
+
}), [x, M] = R(0), [X, J] = R(0), ee = (k) => {
|
|
1140
|
+
if (!s) return;
|
|
1141
|
+
const b = o.current;
|
|
1142
|
+
if (!b || x == null) return;
|
|
1143
|
+
const H = (k.pageX - b.offsetLeft - x) * 1.5;
|
|
1144
|
+
b.scrollLeft = X - H;
|
|
1145
|
+
}, _ = (k) => {
|
|
1146
|
+
const b = o.current;
|
|
1147
|
+
b && (V(!0), M(k.pageX - b.offsetLeft), J(b.scrollLeft));
|
|
1148
|
+
}, te = (k) => {
|
|
1149
|
+
F && (k.preventDefault(), ee(k));
|
|
1150
1150
|
}, S = () => {
|
|
1151
|
-
|
|
1151
|
+
V(!1);
|
|
1152
1152
|
}, E = () => {
|
|
1153
|
-
|
|
1154
|
-
},
|
|
1155
|
-
|
|
1156
|
-
},
|
|
1153
|
+
V(!1);
|
|
1154
|
+
}, O = (k) => {
|
|
1155
|
+
k.preventDefault();
|
|
1156
|
+
}, K = A(null);
|
|
1157
1157
|
return $(() => () => {
|
|
1158
|
-
|
|
1158
|
+
K.current && clearTimeout(K.current);
|
|
1159
1159
|
}, []), $(() => {
|
|
1160
|
-
const
|
|
1161
|
-
if (!
|
|
1162
|
-
const
|
|
1163
|
-
var
|
|
1164
|
-
const H =
|
|
1165
|
-
if (!
|
|
1166
|
-
const
|
|
1160
|
+
const k = o.current;
|
|
1161
|
+
if (!k) return;
|
|
1162
|
+
const b = (D) => {
|
|
1163
|
+
var ne, le, ue, ae;
|
|
1164
|
+
const H = D.detail, j = o.current;
|
|
1165
|
+
if (!j || !H) return;
|
|
1166
|
+
const Y = H.orientation ?? t;
|
|
1167
1167
|
if (typeof H.progress == "number")
|
|
1168
|
-
if (
|
|
1169
|
-
const
|
|
1168
|
+
if (Y === "horizontal") {
|
|
1169
|
+
const re = Math.max(
|
|
1170
1170
|
0,
|
|
1171
|
-
(((
|
|
1171
|
+
(((ne = u.current) == null ? void 0 : ne.width) ?? 0) - j.clientWidth
|
|
1172
1172
|
);
|
|
1173
|
-
|
|
1173
|
+
j.scrollLeft = Math.min(re, Math.max(0, H.progress * re));
|
|
1174
1174
|
} else {
|
|
1175
|
-
const
|
|
1175
|
+
const re = Math.max(
|
|
1176
1176
|
0,
|
|
1177
|
-
(((
|
|
1177
|
+
(((le = u.current) == null ? void 0 : le.height) ?? 0) - j.clientHeight
|
|
1178
1178
|
);
|
|
1179
|
-
|
|
1179
|
+
j.scrollTop = Math.min(re, Math.max(0, H.progress * re));
|
|
1180
1180
|
}
|
|
1181
1181
|
else if (typeof H.scroll == "number")
|
|
1182
|
-
if (
|
|
1183
|
-
const
|
|
1182
|
+
if (Y === "horizontal") {
|
|
1183
|
+
const re = Math.max(
|
|
1184
1184
|
0,
|
|
1185
|
-
(((
|
|
1185
|
+
(((ue = u.current) == null ? void 0 : ue.width) ?? 0) - j.clientWidth
|
|
1186
1186
|
);
|
|
1187
|
-
|
|
1187
|
+
j.scrollLeft = Math.min(re, Math.max(0, H.scroll));
|
|
1188
1188
|
} else {
|
|
1189
|
-
const
|
|
1189
|
+
const re = Math.max(
|
|
1190
1190
|
0,
|
|
1191
|
-
(((
|
|
1191
|
+
(((ae = u.current) == null ? void 0 : ae.height) ?? 0) - j.clientHeight
|
|
1192
1192
|
);
|
|
1193
|
-
|
|
1193
|
+
j.scrollTop = Math.min(re, Math.max(0, H.scroll));
|
|
1194
1194
|
}
|
|
1195
1195
|
};
|
|
1196
|
-
return
|
|
1197
|
-
|
|
1196
|
+
return k.addEventListener("udx:customScroll:set", b), () => {
|
|
1197
|
+
k.removeEventListener("udx:customScroll:set", b);
|
|
1198
1198
|
};
|
|
1199
|
-
}, [t]), /* @__PURE__ */
|
|
1199
|
+
}, [t]), /* @__PURE__ */ U(
|
|
1200
1200
|
"div",
|
|
1201
1201
|
{
|
|
1202
1202
|
className: C.customScroll,
|
|
1203
1203
|
ref: o,
|
|
1204
1204
|
onMouseDown: _,
|
|
1205
|
-
onMouseMove:
|
|
1205
|
+
onMouseMove: te,
|
|
1206
1206
|
onMouseUp: S,
|
|
1207
1207
|
onMouseLeave: E,
|
|
1208
|
-
onDragStart:
|
|
1209
|
-
onScroll: (
|
|
1210
|
-
|
|
1211
|
-
|
|
1208
|
+
onDragStart: O,
|
|
1209
|
+
onScroll: (k) => {
|
|
1210
|
+
F || (M(null), V(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => {
|
|
1211
|
+
V(!1);
|
|
1212
1212
|
}, 1e3));
|
|
1213
1213
|
},
|
|
1214
1214
|
children: [
|
|
@@ -1216,14 +1216,14 @@ const kt = ({
|
|
|
1216
1216
|
"div",
|
|
1217
1217
|
{
|
|
1218
1218
|
ref: h,
|
|
1219
|
-
style: t === "vertical" ? { height: ((
|
|
1219
|
+
style: t === "vertical" ? { height: ((oe = m == null ? void 0 : m.current) == null ? void 0 : oe.height) ?? "100%" } : { width: ((ie = m == null ? void 0 : m.current) == null ? void 0 : ie.width) ?? "100%" },
|
|
1220
1220
|
className: C.track,
|
|
1221
1221
|
children: e
|
|
1222
1222
|
}
|
|
1223
1223
|
),
|
|
1224
|
-
m.current && u.current && /* @__PURE__ */
|
|
1224
|
+
m.current && u.current && /* @__PURE__ */ U(he, { children: [
|
|
1225
1225
|
t === "vertical" && u.current.height > m.current.height && /* @__PURE__ */ f(
|
|
1226
|
-
|
|
1226
|
+
q.div,
|
|
1227
1227
|
{
|
|
1228
1228
|
className: "flex-none",
|
|
1229
1229
|
style: {
|
|
@@ -1232,7 +1232,7 @@ const kt = ({
|
|
|
1232
1232
|
}
|
|
1233
1233
|
),
|
|
1234
1234
|
t === "horizontal" && u.current.width > m.current.width && /* @__PURE__ */ f(
|
|
1235
|
-
|
|
1235
|
+
q.div,
|
|
1236
1236
|
{
|
|
1237
1237
|
className: "flex-none",
|
|
1238
1238
|
style: {
|
|
@@ -1244,159 +1244,159 @@ const kt = ({
|
|
|
1244
1244
|
]
|
|
1245
1245
|
}
|
|
1246
1246
|
);
|
|
1247
|
-
},
|
|
1247
|
+
}, Et = ({
|
|
1248
1248
|
onScroll: e,
|
|
1249
1249
|
el: t,
|
|
1250
1250
|
touch: n = !0
|
|
1251
1251
|
}) => {
|
|
1252
|
-
const l =
|
|
1252
|
+
const l = A(null), r = A(0), s = A(0);
|
|
1253
1253
|
$(() => {
|
|
1254
1254
|
if (!t) return;
|
|
1255
|
-
r.current = t.scrollTop,
|
|
1256
|
-
const c = (
|
|
1257
|
-
e == null || e(
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1255
|
+
r.current = t.scrollTop, s.current = t.scrollLeft;
|
|
1256
|
+
const c = (i) => {
|
|
1257
|
+
e == null || e(i);
|
|
1258
|
+
}, a = (i) => {
|
|
1259
|
+
i.preventDefault(), c({
|
|
1260
1260
|
type: "intent",
|
|
1261
1261
|
source: "wheel",
|
|
1262
|
-
deltaX:
|
|
1263
|
-
deltaY:
|
|
1264
|
-
originalEvent:
|
|
1262
|
+
deltaX: i.deltaX,
|
|
1263
|
+
deltaY: i.deltaY,
|
|
1264
|
+
originalEvent: i
|
|
1265
1265
|
});
|
|
1266
|
-
}, d = (
|
|
1266
|
+
}, d = (i) => {
|
|
1267
1267
|
if (!n) return;
|
|
1268
|
-
const u =
|
|
1268
|
+
const u = i.touches[0];
|
|
1269
1269
|
u && (l.current = { x: u.clientX, y: u.clientY });
|
|
1270
|
-
}, o = (
|
|
1270
|
+
}, o = (i) => {
|
|
1271
1271
|
if (!n) return;
|
|
1272
|
-
const u =
|
|
1272
|
+
const u = i.touches[0];
|
|
1273
1273
|
if (!u || !l.current) return;
|
|
1274
|
-
|
|
1275
|
-
const m = l.current.x - u.clientX,
|
|
1274
|
+
i.preventDefault();
|
|
1275
|
+
const m = l.current.x - u.clientX, y = l.current.y - u.clientY;
|
|
1276
1276
|
l.current = { x: u.clientX, y: u.clientY }, c({
|
|
1277
1277
|
type: "intent",
|
|
1278
1278
|
source: "touch",
|
|
1279
1279
|
deltaX: m,
|
|
1280
|
-
deltaY:
|
|
1281
|
-
originalEvent:
|
|
1280
|
+
deltaY: y,
|
|
1281
|
+
originalEvent: i
|
|
1282
1282
|
});
|
|
1283
1283
|
}, h = () => {
|
|
1284
1284
|
n && (l.current = null);
|
|
1285
|
-
},
|
|
1285
|
+
}, v = (i) => {
|
|
1286
1286
|
const m = t.clientHeight * 0.9;
|
|
1287
|
-
let
|
|
1288
|
-
switch (
|
|
1287
|
+
let y = 0, w = 0;
|
|
1288
|
+
switch (i.key) {
|
|
1289
1289
|
case "ArrowDown":
|
|
1290
|
-
|
|
1290
|
+
w = 40;
|
|
1291
1291
|
break;
|
|
1292
1292
|
case "ArrowUp":
|
|
1293
|
-
|
|
1293
|
+
w = -40;
|
|
1294
1294
|
break;
|
|
1295
1295
|
case "ArrowRight":
|
|
1296
|
-
|
|
1296
|
+
y = 40;
|
|
1297
1297
|
break;
|
|
1298
1298
|
case "ArrowLeft":
|
|
1299
|
-
|
|
1299
|
+
y = -40;
|
|
1300
1300
|
break;
|
|
1301
1301
|
case "PageDown":
|
|
1302
|
-
|
|
1302
|
+
w = m;
|
|
1303
1303
|
break;
|
|
1304
1304
|
case "PageUp":
|
|
1305
|
-
|
|
1305
|
+
w = -m;
|
|
1306
1306
|
break;
|
|
1307
1307
|
case "Home":
|
|
1308
|
-
|
|
1308
|
+
w = Number.NEGATIVE_INFINITY;
|
|
1309
1309
|
break;
|
|
1310
1310
|
case "End":
|
|
1311
|
-
|
|
1311
|
+
w = Number.POSITIVE_INFINITY;
|
|
1312
1312
|
break;
|
|
1313
1313
|
case " ":
|
|
1314
|
-
|
|
1314
|
+
w = i.shiftKey ? -m : m;
|
|
1315
1315
|
break;
|
|
1316
1316
|
default:
|
|
1317
1317
|
return;
|
|
1318
1318
|
}
|
|
1319
|
-
|
|
1319
|
+
i.preventDefault(), c({
|
|
1320
1320
|
type: "intent",
|
|
1321
1321
|
source: "keyboard",
|
|
1322
|
-
deltaX:
|
|
1323
|
-
deltaY:
|
|
1324
|
-
originalEvent:
|
|
1322
|
+
deltaX: y,
|
|
1323
|
+
deltaY: w,
|
|
1324
|
+
originalEvent: i
|
|
1325
1325
|
});
|
|
1326
1326
|
};
|
|
1327
|
-
return t.addEventListener("wheel",
|
|
1328
|
-
t.removeEventListener("wheel",
|
|
1327
|
+
return t.addEventListener("wheel", a, { passive: !1 }), t.addEventListener("touchstart", d, { passive: !0 }), t.addEventListener("touchmove", o, { passive: !1 }), t.addEventListener("touchend", h, { passive: !0 }), t.addEventListener("keydown", v), () => {
|
|
1328
|
+
t.removeEventListener("wheel", a), t.removeEventListener("touchstart", d), t.removeEventListener("touchmove", o), t.removeEventListener("touchend", h), t.removeEventListener("keydown", v);
|
|
1329
1329
|
};
|
|
1330
1330
|
}, [e]);
|
|
1331
|
-
},
|
|
1331
|
+
}, nn = ({
|
|
1332
1332
|
transition: e,
|
|
1333
1333
|
orientation: t = "vertical",
|
|
1334
1334
|
throttleDuration: n = 25
|
|
1335
1335
|
}) => {
|
|
1336
|
-
const [l, r] =
|
|
1336
|
+
const [l, r] = R(0), [s, c] = R(), a = A(!1), d = A(), o = A(0);
|
|
1337
1337
|
$(() => {
|
|
1338
1338
|
c(document);
|
|
1339
|
-
const
|
|
1340
|
-
r(
|
|
1339
|
+
const i = document.documentElement.scrollTop;
|
|
1340
|
+
r(i), o.current = i;
|
|
1341
1341
|
}, []), $(() => {
|
|
1342
|
-
const
|
|
1343
|
-
|
|
1342
|
+
const i = () => {
|
|
1343
|
+
a.current || r(document.documentElement.scrollTop);
|
|
1344
1344
|
};
|
|
1345
|
-
return
|
|
1346
|
-
d.current && clearTimeout(d.current),
|
|
1345
|
+
return s == null || s.addEventListener("scroll", i), () => {
|
|
1346
|
+
d.current && clearTimeout(d.current), s == null || s.removeEventListener("scroll", i);
|
|
1347
1347
|
};
|
|
1348
|
-
}, [
|
|
1349
|
-
const h =
|
|
1348
|
+
}, [s]);
|
|
1349
|
+
const h = A(), v = A(null);
|
|
1350
1350
|
return $(() => {
|
|
1351
|
-
const
|
|
1352
|
-
if (
|
|
1353
|
-
h.current =
|
|
1351
|
+
const i = l;
|
|
1352
|
+
if (v.current && (v.current.stop(), v.current = null), !a.current) {
|
|
1353
|
+
h.current = i;
|
|
1354
1354
|
return;
|
|
1355
1355
|
}
|
|
1356
|
-
return
|
|
1356
|
+
return v.current = Je(h.current ?? i, i, {
|
|
1357
1357
|
duration: ((e == null ? void 0 : e.duration) ?? 500) / 1e3,
|
|
1358
1358
|
ease: (e == null ? void 0 : e.ease) ?? "easeOut",
|
|
1359
1359
|
onUpdate: (u) => {
|
|
1360
1360
|
d.current && clearTimeout(d.current), h.current = u;
|
|
1361
|
-
const m = document.documentElement,
|
|
1362
|
-
Math.abs(
|
|
1361
|
+
const m = document.documentElement, y = Math.round(u * 1e3) / 1e3, w = o.current;
|
|
1362
|
+
Math.abs(y - w) < 0.1 || (o.current = y, a.current && m.scrollTo({ top: y }));
|
|
1363
1363
|
},
|
|
1364
1364
|
onComplete: () => {
|
|
1365
1365
|
d.current = setTimeout(() => {
|
|
1366
|
-
|
|
1367
|
-
}, 300),
|
|
1366
|
+
a.current = !1;
|
|
1367
|
+
}, 300), v.current = null;
|
|
1368
1368
|
}
|
|
1369
1369
|
}), () => {
|
|
1370
|
-
|
|
1370
|
+
v.current && (v.current.stop(), v.current = null);
|
|
1371
1371
|
};
|
|
1372
|
-
}, [l]),
|
|
1373
|
-
|
|
1372
|
+
}, [l]), s ? /* @__PURE__ */ f(
|
|
1373
|
+
Et,
|
|
1374
1374
|
{
|
|
1375
1375
|
touch: !1,
|
|
1376
|
-
el:
|
|
1377
|
-
onScroll: (
|
|
1378
|
-
if ("deltaY" in
|
|
1379
|
-
let u = l +
|
|
1380
|
-
const m =
|
|
1381
|
-
m && (u = Math.min(u, m.scrollHeight - m.clientHeight)), u = Math.max(u, 0), r(u),
|
|
1376
|
+
el: s,
|
|
1377
|
+
onScroll: (i) => {
|
|
1378
|
+
if ("deltaY" in i && i.deltaY !== 0 && s && l !== null) {
|
|
1379
|
+
let u = l + i.deltaY;
|
|
1380
|
+
const m = s.querySelector("html");
|
|
1381
|
+
m && (u = Math.min(u, m.scrollHeight - m.clientHeight)), u = Math.max(u, 0), r(u), a.current = !0;
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
1385
|
) : null;
|
|
1386
|
-
},
|
|
1386
|
+
}, kt = ({
|
|
1387
1387
|
targetRef: e,
|
|
1388
1388
|
children: t
|
|
1389
1389
|
}) => {
|
|
1390
|
-
const [n, l] =
|
|
1390
|
+
const [n, l] = R(null), r = A(null), s = () => {
|
|
1391
1391
|
const c = e.current;
|
|
1392
1392
|
if (!c) return;
|
|
1393
|
-
const
|
|
1393
|
+
const a = c.getBoundingClientRect();
|
|
1394
1394
|
l({
|
|
1395
1395
|
position: "fixed",
|
|
1396
|
-
top:
|
|
1397
|
-
left:
|
|
1398
|
-
width:
|
|
1399
|
-
height:
|
|
1396
|
+
top: a.top,
|
|
1397
|
+
left: a.left,
|
|
1398
|
+
width: a.width,
|
|
1399
|
+
height: a.height,
|
|
1400
1400
|
pointerEvents: "none",
|
|
1401
1401
|
// si le wrapper ne doit pas capter les events
|
|
1402
1402
|
zIndex: 999
|
|
@@ -1406,66 +1406,66 @@ const kt = ({
|
|
|
1406
1406
|
return $(() => {
|
|
1407
1407
|
const c = e.current;
|
|
1408
1408
|
if (c)
|
|
1409
|
-
return
|
|
1410
|
-
var
|
|
1411
|
-
window.removeEventListener("scroll",
|
|
1409
|
+
return s(), window.addEventListener("scroll", s, !0), window.addEventListener("resize", s), r.current = new ResizeObserver(s), r.current.observe(c), () => {
|
|
1410
|
+
var a;
|
|
1411
|
+
window.removeEventListener("scroll", s, !0), window.removeEventListener("resize", s), (a = r.current) == null || a.disconnect();
|
|
1412
1412
|
};
|
|
1413
|
-
}, [e]), n ?
|
|
1413
|
+
}, [e]), n ? Ve(/* @__PURE__ */ f("div", { style: n, children: t }), document.body) : null;
|
|
1414
1414
|
};
|
|
1415
|
-
function
|
|
1415
|
+
function It(e) {
|
|
1416
1416
|
return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e);
|
|
1417
1417
|
}
|
|
1418
|
-
const
|
|
1418
|
+
const rn = ({
|
|
1419
1419
|
config: e,
|
|
1420
1420
|
throttleDelay: t = 100,
|
|
1421
1421
|
// Délai par défaut de 300ms
|
|
1422
1422
|
onLoad: n,
|
|
1423
1423
|
loadTheme: l = !1
|
|
1424
1424
|
}) => {
|
|
1425
|
-
const [r,
|
|
1425
|
+
const [r, s] = R(null);
|
|
1426
1426
|
$(() => {
|
|
1427
1427
|
(async () => {
|
|
1428
|
-
const
|
|
1429
|
-
i
|
|
1428
|
+
const i = await Ze(e, l);
|
|
1429
|
+
s(i);
|
|
1430
1430
|
})();
|
|
1431
1431
|
}, []);
|
|
1432
|
-
const [c,
|
|
1432
|
+
const [c, a] = R(null), d = A(null), o = A(0), h = A(null);
|
|
1433
1433
|
$(() => {
|
|
1434
1434
|
if (!r) return;
|
|
1435
|
-
const
|
|
1435
|
+
const i = {
|
|
1436
1436
|
...e,
|
|
1437
1437
|
// Assurer la compatibilité avec l'API qui attend sourceColorHex
|
|
1438
1438
|
sourceColor: e.sourceColor
|
|
1439
|
-
}, u = Date.now(), m = u - o.current,
|
|
1440
|
-
await
|
|
1439
|
+
}, u = Date.now(), m = u - o.current, y = async (w) => {
|
|
1440
|
+
await v(w);
|
|
1441
1441
|
};
|
|
1442
1442
|
if (o.current === 0 || m >= t)
|
|
1443
|
-
d.current && (clearTimeout(d.current), d.current = null), h.current = null, o.current = u,
|
|
1444
|
-
else if (h.current =
|
|
1445
|
-
const
|
|
1443
|
+
d.current && (clearTimeout(d.current), d.current = null), h.current = null, o.current = u, y(i);
|
|
1444
|
+
else if (h.current = i, !d.current) {
|
|
1445
|
+
const w = Math.max(0, t - m);
|
|
1446
1446
|
d.current = setTimeout(async () => {
|
|
1447
1447
|
d.current = null;
|
|
1448
|
-
const
|
|
1449
|
-
h.current = null,
|
|
1450
|
-
},
|
|
1448
|
+
const I = h.current;
|
|
1449
|
+
h.current = null, I && (o.current = Date.now(), await y(I));
|
|
1450
|
+
}, w);
|
|
1451
1451
|
}
|
|
1452
1452
|
return () => {
|
|
1453
1453
|
};
|
|
1454
1454
|
}, [e, t, r]);
|
|
1455
|
-
const
|
|
1456
|
-
if (typeof
|
|
1455
|
+
const v = async (i) => {
|
|
1456
|
+
if (typeof i.sourceColor == "string" && !It(i.sourceColor))
|
|
1457
1457
|
throw new Error("Invalid hex color");
|
|
1458
1458
|
if (!r)
|
|
1459
1459
|
return;
|
|
1460
|
-
r.context.update(
|
|
1461
|
-
const u = r == null ? void 0 : r.plugins.getPlugin(
|
|
1462
|
-
|
|
1460
|
+
r.context.update(i), await r.load();
|
|
1461
|
+
const u = r == null ? void 0 : r.plugins.getPlugin(Oe).getInstance().outputCss;
|
|
1462
|
+
a(u), n == null || n(r);
|
|
1463
1463
|
};
|
|
1464
1464
|
return $(() => () => {
|
|
1465
1465
|
d.current && (clearTimeout(d.current), d.current = null);
|
|
1466
1466
|
}, []), c ? /* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html: c } }) : null;
|
|
1467
1467
|
};
|
|
1468
|
-
function
|
|
1468
|
+
function Mt() {
|
|
1469
1469
|
if (typeof window > "u") return !1;
|
|
1470
1470
|
try {
|
|
1471
1471
|
if (window.CSS && typeof window.CSS.supports == "function")
|
|
@@ -1475,42 +1475,42 @@ function Ct() {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
return !1;
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function St() {
|
|
1479
1479
|
return typeof window > "u" || !("matchMedia" in window) ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function Ee(e) {
|
|
1482
1482
|
if (!(e instanceof HTMLElement)) return !1;
|
|
1483
1483
|
const t = e.classList;
|
|
1484
1484
|
return Array.from(t).some(
|
|
1485
1485
|
(n) => n.startsWith("anim-") && n.includes("scroll")
|
|
1486
1486
|
);
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function $e(e) {
|
|
1489
1489
|
if (!(e instanceof HTMLElement)) return !1;
|
|
1490
1490
|
const t = e.classList;
|
|
1491
1491
|
return Array.from(t).some((n) => n.startsWith("anim-"));
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1494
|
-
if (!
|
|
1493
|
+
function be(e, t) {
|
|
1494
|
+
if (!Ee(e)) return;
|
|
1495
1495
|
if (e.hasAttribute(`data-${t}-scroll`)) {
|
|
1496
|
-
const c = (e.getAttribute(`data-${t}-scroll`) || "").trim().toLowerCase(),
|
|
1497
|
-
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`) || (
|
|
1496
|
+
const c = (e.getAttribute(`data-${t}-scroll`) || "").trim().toLowerCase(), a = c === "x" || c === "inline" ? "inline" : c === "y" || c === "block" ? "block" : "auto";
|
|
1497
|
+
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`) || (a === "inline" ? e.classList.add(`${t}-timeline-inline`) : a === "block" ? e.classList.add(`${t}-timeline-block`) : e.classList.add(`${t}-scroll`));
|
|
1498
1498
|
}
|
|
1499
1499
|
const n = e.getAttribute(`data-${t}-start`);
|
|
1500
1500
|
n && e.style.setProperty(`--${t}-range-start`, n);
|
|
1501
1501
|
const l = e.getAttribute(`data-${t}-end`);
|
|
1502
1502
|
l && e.style.setProperty(`--${t}-range-end`, l);
|
|
1503
|
-
const r = e.hasAttribute(`data-${t}-paused`) || e.classList.contains(`${t}-paused`),
|
|
1504
|
-
!r && !
|
|
1503
|
+
const r = e.hasAttribute(`data-${t}-paused`) || e.classList.contains(`${t}-paused`), s = e.hasAttribute(`data-${t}-run`) || e.classList.contains(`${t}-run`);
|
|
1504
|
+
!r && !s && e.setAttribute(`data-${t}-run`, "");
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function Le(e = document, t) {
|
|
1507
1507
|
return Array.from(
|
|
1508
1508
|
e.querySelectorAll(
|
|
1509
1509
|
`[class*="${t}-"][class*="-scroll"]`
|
|
1510
1510
|
)
|
|
1511
|
-
).filter((l) =>
|
|
1511
|
+
).filter((l) => Ee(l));
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function $t(e = document, t) {
|
|
1514
1514
|
const n = Array.from(
|
|
1515
1515
|
e.querySelectorAll(`[class*="${t}-"]`)
|
|
1516
1516
|
), l = /* @__PURE__ */ new Set([
|
|
@@ -1529,73 +1529,85 @@ function Rt(e = document, t) {
|
|
|
1529
1529
|
]);
|
|
1530
1530
|
return n.filter((r) => {
|
|
1531
1531
|
if (!(r instanceof HTMLElement)) return !1;
|
|
1532
|
-
const
|
|
1533
|
-
return
|
|
1532
|
+
const s = r.classList;
|
|
1533
|
+
return s.contains(`${t}-in`) || s.contains(`${t}-out`) || Array.from(s).some(
|
|
1534
1534
|
(d) => d.startsWith(`${t}-`) && !d.includes("scroll") && !l.has(d)
|
|
1535
|
-
) ? !0 : !
|
|
1535
|
+
) ? !0 : !Ee(r);
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function Ct(e, t) {
|
|
1539
|
+
return Array.from(e).some(
|
|
1540
|
+
(n) => n.startsWith(t) && n.includes("-out")
|
|
1541
|
+
);
|
|
1542
|
+
}
|
|
1543
|
+
function Ce(e, t, n) {
|
|
1539
1544
|
e.setAttribute(`data-${t}-run`, ""), e.setAttribute(`data-${t}-${n}-run`, "");
|
|
1540
1545
|
}
|
|
1541
|
-
function
|
|
1542
|
-
const
|
|
1543
|
-
e.style.animationName = "none", e.removeAttribute(`data-${t}-run`), e.removeAttribute(`data-${t}-in-run`), e.removeAttribute(`data-${t}-out-run`), e.offsetWidth, e.style.animationName =
|
|
1546
|
+
function Re(e, t, n) {
|
|
1547
|
+
const l = e.style.animationName;
|
|
1548
|
+
e.style.animationName = "none", e.removeAttribute(`data-${t}-run`), n ? e.removeAttribute(`data-${t}-${n}-run`) : (e.removeAttribute(`data-${t}-in-run`), e.removeAttribute(`data-${t}-out-run`)), e.offsetWidth, e.style.animationName = l;
|
|
1544
1549
|
}
|
|
1545
|
-
const
|
|
1546
|
-
function
|
|
1547
|
-
if (
|
|
1548
|
-
|
|
1550
|
+
const Rt = [0, 0.2], We = /* @__PURE__ */ new WeakSet();
|
|
1551
|
+
function De(e, t) {
|
|
1552
|
+
if (We.has(e)) return;
|
|
1553
|
+
We.add(e);
|
|
1549
1554
|
const n = (r) => {
|
|
1550
1555
|
r.target === e && (e.hasAttribute(`data-${t}-in-run`) || e.hasAttribute(`data-${t}-out-run`)) && e.setAttribute(`data-${t}-animating`, "");
|
|
1551
1556
|
}, l = (r) => {
|
|
1552
|
-
r.target === e &&
|
|
1557
|
+
r.target === e && e.removeAttribute(`data-${t}-animating`);
|
|
1553
1558
|
};
|
|
1554
1559
|
e.addEventListener("animationstart", n), e.addEventListener("animationend", l), e.addEventListener("animationcancel", l);
|
|
1555
1560
|
}
|
|
1556
|
-
function
|
|
1561
|
+
function Xe(e = {}) {
|
|
1557
1562
|
const { prefix: t = "anim", once: n = !0 } = e;
|
|
1558
|
-
if (
|
|
1563
|
+
if (St())
|
|
1559
1564
|
return () => {
|
|
1560
1565
|
};
|
|
1561
|
-
const l =
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1566
|
+
const l = Mt(), r = /* @__PURE__ */ new WeakSet();
|
|
1567
|
+
let s = typeof window < "u" && (window.pageYOffset || window.scrollY) || 0, c = !0;
|
|
1568
|
+
const a = () => {
|
|
1569
|
+
const u = window.pageYOffset || window.scrollY || 0;
|
|
1570
|
+
c = u >= s, s = u;
|
|
1571
|
+
};
|
|
1572
|
+
typeof window < "u" && window.addEventListener("scroll", a, { passive: !0 });
|
|
1573
|
+
const d = new IntersectionObserver(
|
|
1574
|
+
(u) => {
|
|
1575
|
+
for (const m of u) {
|
|
1576
|
+
const y = m.target;
|
|
1577
|
+
if (!$e(y) || y.hasAttribute(`data-${t}-animating`)) continue;
|
|
1578
|
+
const w = Ct(y.classList, t);
|
|
1579
|
+
m.isIntersecting ? (w && Re(y, t, "out"), Ce(y, t, "in"), n && d.unobserve(y)) : n || (c || Re(y, t, "in"), w && Ce(y, t, "out"));
|
|
1568
1580
|
}
|
|
1569
1581
|
},
|
|
1570
|
-
{ threshold:
|
|
1571
|
-
),
|
|
1572
|
-
const
|
|
1573
|
-
for (const
|
|
1574
|
-
r.has(
|
|
1582
|
+
{ threshold: Rt }
|
|
1583
|
+
), o = (u) => {
|
|
1584
|
+
const m = $t(u || document, t);
|
|
1585
|
+
for (const y of m)
|
|
1586
|
+
r.has(y) || (r.add(y), d.observe(y), De(y, t));
|
|
1575
1587
|
};
|
|
1576
|
-
|
|
1577
|
-
let
|
|
1588
|
+
o();
|
|
1589
|
+
let h, v = null, i = null;
|
|
1578
1590
|
if (l)
|
|
1579
1591
|
(() => {
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
const
|
|
1583
|
-
for (const
|
|
1592
|
+
i == null && (i = requestAnimationFrame(() => {
|
|
1593
|
+
i = null;
|
|
1594
|
+
const m = Le(void 0, t);
|
|
1595
|
+
for (const y of m) be(y, t);
|
|
1584
1596
|
}));
|
|
1585
|
-
})(),
|
|
1586
|
-
for (const
|
|
1587
|
-
if (
|
|
1588
|
-
const
|
|
1589
|
-
|
|
1590
|
-
} else if (
|
|
1591
|
-
for (const
|
|
1592
|
-
if (
|
|
1593
|
-
const
|
|
1594
|
-
for (const
|
|
1595
|
-
|
|
1597
|
+
})(), v = new MutationObserver((m) => {
|
|
1598
|
+
for (const y of m)
|
|
1599
|
+
if (y.type === "attributes") {
|
|
1600
|
+
const w = y.target;
|
|
1601
|
+
w instanceof HTMLElement && (be(w, t), $e(w) && (r.has(w) || (r.add(w), d.observe(w), De(w, t))));
|
|
1602
|
+
} else if (y.type === "childList" && y.addedNodes && y.addedNodes.length) {
|
|
1603
|
+
for (const w of Array.from(y.addedNodes))
|
|
1604
|
+
if (w instanceof HTMLElement) {
|
|
1605
|
+
const I = Le(w, t);
|
|
1606
|
+
for (const g of I) be(g, t);
|
|
1607
|
+
o(w);
|
|
1596
1608
|
}
|
|
1597
1609
|
}
|
|
1598
|
-
}),
|
|
1610
|
+
}), v.observe(document.documentElement, {
|
|
1599
1611
|
subtree: !0,
|
|
1600
1612
|
childList: !0,
|
|
1601
1613
|
attributes: !0,
|
|
@@ -1607,111 +1619,111 @@ function je(e = {}) {
|
|
|
1607
1619
|
`data-${t}-paused`,
|
|
1608
1620
|
`data-${t}-run`
|
|
1609
1621
|
]
|
|
1610
|
-
}),
|
|
1611
|
-
|
|
1622
|
+
}), h = () => {
|
|
1623
|
+
i != null && cancelAnimationFrame(i), v && v.disconnect();
|
|
1612
1624
|
};
|
|
1613
1625
|
else {
|
|
1614
|
-
let
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
}),
|
|
1618
|
-
typeof
|
|
1626
|
+
let u;
|
|
1627
|
+
Le(void 0, t).length > 0 && import("./scrollDriven-AP2yWhzi.js").then((y) => {
|
|
1628
|
+
u = y.initScrollViewFallback({ once: n });
|
|
1629
|
+
}), h = () => {
|
|
1630
|
+
typeof u == "function" && u();
|
|
1619
1631
|
};
|
|
1620
1632
|
}
|
|
1621
1633
|
return () => {
|
|
1622
|
-
|
|
1634
|
+
h && h(), typeof window < "u" && window.removeEventListener("scroll", a), d.disconnect();
|
|
1623
1635
|
};
|
|
1624
1636
|
}
|
|
1625
|
-
const
|
|
1637
|
+
const on = Xe, ln = Xe, Wt = ({
|
|
1626
1638
|
variant: e = "filled",
|
|
1627
1639
|
disabled: t = !1,
|
|
1628
1640
|
icon: n,
|
|
1629
1641
|
href: l,
|
|
1630
1642
|
label: r,
|
|
1631
|
-
disableTextMargins:
|
|
1643
|
+
disableTextMargins: s,
|
|
1632
1644
|
className: c,
|
|
1633
|
-
iconPosition:
|
|
1645
|
+
iconPosition: a = "left",
|
|
1634
1646
|
loading: d = !1,
|
|
1635
1647
|
shape: o = "rounded",
|
|
1636
1648
|
onClick: h,
|
|
1637
|
-
onToggle:
|
|
1638
|
-
activated:
|
|
1649
|
+
onToggle: v,
|
|
1650
|
+
activated: i,
|
|
1639
1651
|
ref: u,
|
|
1640
1652
|
size: m = "medium",
|
|
1641
|
-
allowShapeTransformation:
|
|
1642
|
-
transition:
|
|
1643
|
-
children:
|
|
1653
|
+
allowShapeTransformation: y = !0,
|
|
1654
|
+
transition: w,
|
|
1655
|
+
children: I,
|
|
1644
1656
|
...g
|
|
1645
1657
|
}) => {
|
|
1646
|
-
if (
|
|
1658
|
+
if (I && (r = I), !r)
|
|
1647
1659
|
throw new Error(
|
|
1648
1660
|
"Button component requires either a label prop or children content"
|
|
1649
1661
|
);
|
|
1650
|
-
const
|
|
1662
|
+
const W = l ? "a" : "button", L = A(null), P = u || L, [N, F] = T.useState(i);
|
|
1651
1663
|
$(() => {
|
|
1652
|
-
|
|
1653
|
-
}, [
|
|
1654
|
-
let
|
|
1655
|
-
|
|
1656
|
-
t &&
|
|
1657
|
-
const
|
|
1658
|
-
|
|
1659
|
-
}) :
|
|
1660
|
-
t &&
|
|
1664
|
+
F(i);
|
|
1665
|
+
}, [i]), w = { duration: 0.3, ...w };
|
|
1666
|
+
let V;
|
|
1667
|
+
v ? v && (V = (M) => {
|
|
1668
|
+
t && M.preventDefault();
|
|
1669
|
+
const X = !N;
|
|
1670
|
+
F(X), v(X);
|
|
1671
|
+
}) : V = (M) => {
|
|
1672
|
+
t && M.preventDefault(), h && h(M);
|
|
1661
1673
|
};
|
|
1662
|
-
const C =
|
|
1663
|
-
allowShapeTransformation:
|
|
1674
|
+
const C = ot({
|
|
1675
|
+
allowShapeTransformation: y,
|
|
1664
1676
|
size: m,
|
|
1665
|
-
disableTextMargins:
|
|
1677
|
+
disableTextMargins: s,
|
|
1666
1678
|
shape: o,
|
|
1667
1679
|
href: l,
|
|
1668
1680
|
disabled: t,
|
|
1669
1681
|
icon: n,
|
|
1670
|
-
iconPosition:
|
|
1682
|
+
iconPosition: a,
|
|
1671
1683
|
loading: d,
|
|
1672
1684
|
variant: e,
|
|
1673
|
-
transition:
|
|
1685
|
+
transition: w,
|
|
1674
1686
|
className: c,
|
|
1675
|
-
isActive:
|
|
1676
|
-
onToggle:
|
|
1677
|
-
activated:
|
|
1687
|
+
isActive: N ?? !1,
|
|
1688
|
+
onToggle: v,
|
|
1689
|
+
activated: N,
|
|
1678
1690
|
label: r,
|
|
1679
1691
|
children: r
|
|
1680
|
-
}),
|
|
1681
|
-
return /* @__PURE__ */
|
|
1682
|
-
|
|
1692
|
+
}), x = n ? /* @__PURE__ */ f(se, { icon: n, className: C.icon }) : /* @__PURE__ */ f(he, {});
|
|
1693
|
+
return /* @__PURE__ */ U(
|
|
1694
|
+
W,
|
|
1683
1695
|
{
|
|
1684
1696
|
ref: P,
|
|
1685
1697
|
href: l,
|
|
1686
1698
|
className: C.button,
|
|
1687
1699
|
...g,
|
|
1688
|
-
onClick:
|
|
1700
|
+
onClick: V,
|
|
1689
1701
|
disabled: t,
|
|
1690
|
-
"aria-pressed":
|
|
1691
|
-
style: { transition:
|
|
1702
|
+
"aria-pressed": v ? N : void 0,
|
|
1703
|
+
style: { transition: w.duration + "s" },
|
|
1692
1704
|
children: [
|
|
1693
1705
|
/* @__PURE__ */ f("div", { className: C.touchTarget }),
|
|
1694
1706
|
/* @__PURE__ */ f(
|
|
1695
1707
|
"div",
|
|
1696
1708
|
{
|
|
1697
1709
|
className: C.stateLayer,
|
|
1698
|
-
style: { transition:
|
|
1710
|
+
style: { transition: w.duration + "s" },
|
|
1699
1711
|
children: !t && /* @__PURE__ */ f(
|
|
1700
1712
|
we,
|
|
1701
1713
|
{
|
|
1702
|
-
colorName: e === "filled" &&
|
|
1714
|
+
colorName: e === "filled" && v && "on-surface-variant" || e === "filled" && !v && "on-primary" || e === "elevated" && "primary" || e === "tonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
|
|
1703
1715
|
triggerRef: P
|
|
1704
1716
|
}
|
|
1705
1717
|
)
|
|
1706
1718
|
}
|
|
1707
1719
|
),
|
|
1708
|
-
|
|
1720
|
+
a === "left" && x,
|
|
1709
1721
|
d && /* @__PURE__ */ f(
|
|
1710
1722
|
"div",
|
|
1711
1723
|
{
|
|
1712
1724
|
className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
|
|
1713
1725
|
children: /* @__PURE__ */ f(
|
|
1714
|
-
|
|
1726
|
+
gt,
|
|
1715
1727
|
{
|
|
1716
1728
|
className: () => ({
|
|
1717
1729
|
progressIndicator: "h-6 w-6",
|
|
@@ -1744,36 +1756,36 @@ const sn = je, cn = je, Bt = ({
|
|
|
1744
1756
|
}
|
|
1745
1757
|
),
|
|
1746
1758
|
/* @__PURE__ */ f("span", { className: C.label, children: r }),
|
|
1747
|
-
|
|
1759
|
+
a === "right" && x
|
|
1748
1760
|
]
|
|
1749
1761
|
}
|
|
1750
1762
|
);
|
|
1751
|
-
},
|
|
1763
|
+
}, an = ({
|
|
1752
1764
|
variant: e = "outlined",
|
|
1753
1765
|
className: t,
|
|
1754
1766
|
children: n,
|
|
1755
1767
|
isInteractive: l = !1,
|
|
1756
1768
|
ref: r,
|
|
1757
|
-
...
|
|
1769
|
+
...s
|
|
1758
1770
|
}) => {
|
|
1759
|
-
const c =
|
|
1760
|
-
return /* @__PURE__ */
|
|
1771
|
+
const c = lt({ className: t, isInteractive: l, variant: e, children: n }), a = A(null), d = r || a;
|
|
1772
|
+
return /* @__PURE__ */ U("div", { ...s, ref: d, className: c.card, children: [
|
|
1761
1773
|
/* @__PURE__ */ f("div", { className: c.stateLayer, children: l && /* @__PURE__ */ f(we, { colorName: "on-surface", triggerRef: d }) }),
|
|
1762
1774
|
n
|
|
1763
1775
|
] });
|
|
1764
1776
|
}, fe = (e, t, n = [0, 1]) => {
|
|
1765
|
-
const [l, r] = t, [
|
|
1766
|
-
return
|
|
1767
|
-
},
|
|
1777
|
+
const [l, r] = t, [s, c] = n, d = (Math.max(l, Math.min(e, r)) - l) / (r - l);
|
|
1778
|
+
return s + d * (c - s);
|
|
1779
|
+
}, Dt = ({
|
|
1768
1780
|
className: e,
|
|
1769
1781
|
children: t,
|
|
1770
1782
|
width: n,
|
|
1771
1783
|
index: l = 0,
|
|
1772
1784
|
outputRange: r,
|
|
1773
|
-
ref:
|
|
1785
|
+
ref: s,
|
|
1774
1786
|
...c
|
|
1775
1787
|
}) => {
|
|
1776
|
-
const
|
|
1788
|
+
const a = A(null), d = s || a, o = at({
|
|
1777
1789
|
className: e,
|
|
1778
1790
|
index: l,
|
|
1779
1791
|
width: n,
|
|
@@ -1799,310 +1811,275 @@ const sn = je, cn = je, Bt = ({
|
|
|
1799
1811
|
children: t
|
|
1800
1812
|
}
|
|
1801
1813
|
);
|
|
1802
|
-
},
|
|
1814
|
+
}, sn = ({
|
|
1803
1815
|
variant: e = "hero",
|
|
1804
1816
|
className: t,
|
|
1805
1817
|
children: n,
|
|
1806
1818
|
ref: l,
|
|
1807
1819
|
marginPourcent: r = 0,
|
|
1808
|
-
inputRange:
|
|
1820
|
+
inputRange: s = [0.21, 0.65],
|
|
1809
1821
|
outputRange: c = [42, 300],
|
|
1810
|
-
gap:
|
|
1822
|
+
gap: a = 8,
|
|
1811
1823
|
onChange: d,
|
|
1812
1824
|
onMetricsChange: o,
|
|
1813
1825
|
index: h,
|
|
1814
|
-
scrollSensitivity:
|
|
1815
|
-
...
|
|
1826
|
+
scrollSensitivity: v = 1.25,
|
|
1827
|
+
...i
|
|
1816
1828
|
}) => {
|
|
1817
|
-
const u =
|
|
1829
|
+
const u = A(null), m = l || u, [y, w] = R(0), I = st({
|
|
1818
1830
|
index: h,
|
|
1819
1831
|
className: t,
|
|
1820
1832
|
children: n,
|
|
1821
1833
|
variant: e,
|
|
1822
|
-
inputRange:
|
|
1834
|
+
inputRange: s,
|
|
1823
1835
|
outputRange: c,
|
|
1824
1836
|
marginPourcent: r,
|
|
1825
1837
|
onChange: d,
|
|
1826
|
-
gap:
|
|
1827
|
-
scrollSensitivity:
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1838
|
+
gap: a,
|
|
1839
|
+
scrollSensitivity: v,
|
|
1840
|
+
onMetricsChange: o
|
|
1841
|
+
}), g = T.Children.toArray(n).filter(
|
|
1842
|
+
(b) => T.isValidElement(b) && b.type === Dt
|
|
1843
|
+
), W = A(null), [L, P] = R(
|
|
1831
1844
|
{}
|
|
1832
|
-
), [
|
|
1833
|
-
var
|
|
1834
|
-
if (!
|
|
1845
|
+
), [N, F] = R(null), V = A(0), C = A(null), x = () => {
|
|
1846
|
+
var de, pe;
|
|
1847
|
+
if (!W.current || !m.current || (N == null ? void 0 : N.scrollProgress) === void 0)
|
|
1835
1848
|
return [];
|
|
1836
|
-
const
|
|
1837
|
-
function
|
|
1838
|
-
return
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1849
|
+
const b = (N == null ? void 0 : N.scrollVisible) ?? ((de = m.current) == null ? void 0 : de.clientWidth) ?? 0;
|
|
1850
|
+
function D(B, Z) {
|
|
1851
|
+
return B.map((z, ye) => {
|
|
1852
|
+
const ge = (z - Z) / Math.abs(B[1] - B[0]);
|
|
1853
|
+
return {
|
|
1854
|
+
itemScrollXCenter: z,
|
|
1855
|
+
relativeIndex: ge,
|
|
1856
|
+
index: ye,
|
|
1857
|
+
width: 0
|
|
1858
|
+
};
|
|
1859
|
+
});
|
|
1844
1860
|
}
|
|
1845
|
-
const H = g.map((
|
|
1846
|
-
if (!
|
|
1847
|
-
const
|
|
1848
|
-
return fe(
|
|
1849
|
-
}),
|
|
1861
|
+
const H = g.map((B, Z) => {
|
|
1862
|
+
if (!M[Z].current || !W.current) return 0;
|
|
1863
|
+
const ye = Z / (g.length - 1);
|
|
1864
|
+
return fe(ye, [0, 1], [0, 1]);
|
|
1865
|
+
}), j = D(
|
|
1850
1866
|
H,
|
|
1851
|
-
(
|
|
1852
|
-
).sort((
|
|
1853
|
-
let
|
|
1854
|
-
const ne =
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1867
|
+
(N == null ? void 0 : N.scrollProgress) ?? 0
|
|
1868
|
+
).sort((B, Z) => B.index - Z.index);
|
|
1869
|
+
let Y = (((pe = m.current) == null ? void 0 : pe.clientWidth) ?? b) + a + c[0] + a;
|
|
1870
|
+
const ne = j.sort((B, Z) => Math.abs(B.relativeIndex) - Math.abs(Z.relativeIndex)).map((B, Z) => {
|
|
1871
|
+
if (!(Y <= 0)) {
|
|
1872
|
+
if (Z == 0 && J(B.index), B.width = fe(
|
|
1873
|
+
Y - a,
|
|
1874
|
+
[c[0], c[1]],
|
|
1875
|
+
[c[0], c[1]]
|
|
1876
|
+
), Y -= B.width + a, Y != 0 && Y < (c[0] + a) * 2) {
|
|
1877
|
+
const z = B.width - ((c[0] + a) * 2 - Y);
|
|
1878
|
+
Y += B.width, B.width = z, Y -= B.width;
|
|
1879
|
+
} else if (Y == 0 && B.width >= c[0] * 2 + a) {
|
|
1880
|
+
const z = B.width - (c[0] + a - Y);
|
|
1881
|
+
Y += B.width, B.width = z, Y -= B.width;
|
|
1882
|
+
}
|
|
1883
|
+
return B;
|
|
1884
|
+
}
|
|
1885
|
+
}).filter(Boolean), le = ne.reverse(), ue = [...ne].sort(
|
|
1886
|
+
(B, Z) => Math.abs(B.index) - Math.abs(Z.index)
|
|
1887
|
+
);
|
|
1888
|
+
le.forEach((B, Z) => {
|
|
1889
|
+
const z = le[Z + 1];
|
|
1890
|
+
if (!z) return;
|
|
1891
|
+
const ye = 1 - (Math.abs(B.relativeIndex) - Math.abs(z == null ? void 0 : z.relativeIndex)), ge = fe(
|
|
1892
|
+
ye,
|
|
1893
|
+
[0, 2],
|
|
1894
|
+
[B.width + Y, z.width]
|
|
1873
1895
|
);
|
|
1874
|
-
|
|
1896
|
+
Y += B.width, B.width = ge, Y -= B.width;
|
|
1875
1897
|
});
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
[0, 1]
|
|
1884
|
-
);
|
|
1885
|
-
W.index >= 1 && (V.sort((z, Le) => z.index - Le.index), V[W.index - 1].width = c[0], ne.unshift(V[W.index - 1]), T -= c[0] + s, ee = fe(
|
|
1886
|
-
1 - Z,
|
|
1887
|
-
[0, 1],
|
|
1888
|
-
[0, -(c[0] + s)]
|
|
1889
|
-
)), T -= ee, W.width = fe(
|
|
1890
|
-
Z,
|
|
1891
|
-
[0, 1],
|
|
1892
|
-
[c[0], c[1]]
|
|
1893
|
-
), T -= W.width;
|
|
1894
|
-
} else {
|
|
1895
|
-
let Z = W.index, z = Z == V.length - 1;
|
|
1896
|
-
const Le = Z == V.length - 2;
|
|
1897
|
-
for (; T > 0; ) {
|
|
1898
|
-
const he = V.filter(
|
|
1899
|
-
(ge) => ge.index === Z
|
|
1900
|
-
)[0];
|
|
1901
|
-
if (!he) {
|
|
1902
|
-
if (z)
|
|
1903
|
-
throw new Error("dynamicItem not found");
|
|
1904
|
-
z = !0;
|
|
1905
|
-
break;
|
|
1906
|
-
}
|
|
1907
|
-
if (ne.includes(he) || ne.push(he), he.width = fe(
|
|
1908
|
-
T,
|
|
1909
|
-
[c[0], c[1] + (s + c[0]) * 2],
|
|
1910
|
-
[c[0], c[1]]
|
|
1911
|
-
), T -= he.width + s, (Le || z) && he.index == V.length - 1) {
|
|
1912
|
-
let ge = 1;
|
|
1913
|
-
for (; T > 0; ) {
|
|
1914
|
-
const Ne = ne[ge], De = fe(
|
|
1915
|
-
Ne.width + T,
|
|
1916
|
-
[c[0], c[1]],
|
|
1917
|
-
[c[0], c[1]]
|
|
1918
|
-
) - Ne.width;
|
|
1919
|
-
Ne.width += De, T -= De, ge--;
|
|
1920
|
-
}
|
|
1921
|
-
break;
|
|
1922
|
-
} else
|
|
1923
|
-
Z++;
|
|
1924
|
-
}
|
|
1925
|
-
}
|
|
1926
|
-
}), x(ee), Object.fromEntries(
|
|
1927
|
-
ne.map((W) => [W.index, W.width])
|
|
1898
|
+
const ae = ne.length / 2, re = fe(
|
|
1899
|
+
Math.abs(ue[0].relativeIndex),
|
|
1900
|
+
[ue[0].index == 0 ? 0 : ae - 1, ae],
|
|
1901
|
+
[0, 1]
|
|
1902
|
+
), xe = fe(re, [0, 1], [0, 1]) * -(c[0] + a);
|
|
1903
|
+
return w(xe), Object.fromEntries(
|
|
1904
|
+
ne.map((B) => [B.index, B.width])
|
|
1928
1905
|
);
|
|
1929
|
-
},
|
|
1906
|
+
}, M = A([]).current, [X, J] = R(0);
|
|
1930
1907
|
$(() => {
|
|
1931
|
-
d && d(
|
|
1932
|
-
}, [
|
|
1933
|
-
typeof h == "number" && g.length > 0 && h !==
|
|
1908
|
+
d && d(X);
|
|
1909
|
+
}, [X]), $(() => {
|
|
1910
|
+
typeof h == "number" && g.length > 0 && h !== X && te(h);
|
|
1934
1911
|
}, [h, g.length]), $(() => {
|
|
1935
|
-
_(
|
|
1936
|
-
}, [
|
|
1937
|
-
|
|
1912
|
+
_(X);
|
|
1913
|
+
}, [X]), M.length !== g.length && g.forEach((b, D) => {
|
|
1914
|
+
M[D] || (M[D] = T.createRef());
|
|
1938
1915
|
});
|
|
1939
|
-
const [
|
|
1916
|
+
const [ee, _] = R(0), te = (b, D = {}) => {
|
|
1940
1917
|
if (!g.length) return 0;
|
|
1941
|
-
const H =
|
|
1942
|
-
if (!H || !H.current || !
|
|
1943
|
-
const
|
|
1944
|
-
|
|
1918
|
+
const H = M[b];
|
|
1919
|
+
if (!H || !H.current || !W.current) return 0;
|
|
1920
|
+
const j = fe(
|
|
1921
|
+
b / Math.max(1, g.length - 1),
|
|
1945
1922
|
[0, 1],
|
|
1946
1923
|
[0, 1]
|
|
1947
1924
|
);
|
|
1948
|
-
return _(
|
|
1925
|
+
return _(b), W.current.dispatchEvent(
|
|
1949
1926
|
new CustomEvent("udx:customScroll:set", {
|
|
1950
1927
|
bubbles: !0,
|
|
1951
1928
|
detail: {
|
|
1952
|
-
progress:
|
|
1929
|
+
progress: j,
|
|
1953
1930
|
orientation: "horizontal",
|
|
1954
|
-
animate:
|
|
1931
|
+
animate: D.animate !== !1
|
|
1955
1932
|
}
|
|
1956
1933
|
})
|
|
1957
|
-
),
|
|
1958
|
-
}, S = g.map((
|
|
1959
|
-
var
|
|
1960
|
-
const H = (
|
|
1961
|
-
H == null || H(
|
|
1962
|
-
},
|
|
1963
|
-
return
|
|
1964
|
-
|
|
1934
|
+
), j;
|
|
1935
|
+
}, S = g.map((b, D) => {
|
|
1936
|
+
var ne;
|
|
1937
|
+
const H = (ne = b.props) == null ? void 0 : ne.onClick, j = (le) => {
|
|
1938
|
+
H == null || H(le);
|
|
1939
|
+
}, Y = () => _(D);
|
|
1940
|
+
return T.cloneElement(
|
|
1941
|
+
b,
|
|
1965
1942
|
{
|
|
1966
|
-
width:
|
|
1943
|
+
width: L[D],
|
|
1967
1944
|
outputRange: c,
|
|
1968
|
-
ref:
|
|
1969
|
-
key:
|
|
1970
|
-
index:
|
|
1945
|
+
ref: M[D],
|
|
1946
|
+
key: D,
|
|
1947
|
+
index: D,
|
|
1971
1948
|
role: "option",
|
|
1972
|
-
"aria-selected":
|
|
1973
|
-
tabIndex:
|
|
1974
|
-
onClick:
|
|
1975
|
-
onFocus:
|
|
1949
|
+
"aria-selected": X === D,
|
|
1950
|
+
tabIndex: X === D ? 0 : -1,
|
|
1951
|
+
onClick: j,
|
|
1952
|
+
onFocus: Y
|
|
1976
1953
|
}
|
|
1977
1954
|
);
|
|
1978
|
-
}), E = (
|
|
1979
|
-
var
|
|
1980
|
-
if (
|
|
1981
|
-
(
|
|
1982
|
-
const H =
|
|
1983
|
-
C.current =
|
|
1955
|
+
}), E = (b) => {
|
|
1956
|
+
var D;
|
|
1957
|
+
if (b.scrollTotal > 0) {
|
|
1958
|
+
(D = C.current) == null || D.stop();
|
|
1959
|
+
const H = V.current ?? 0, j = b.scrollProgress ?? 0;
|
|
1960
|
+
C.current = Ge(H, j, {
|
|
1984
1961
|
// Spring tuning to add a bit of inertia and smoothness
|
|
1985
1962
|
type: "spring",
|
|
1986
1963
|
stiffness: 260,
|
|
1987
1964
|
damping: 32,
|
|
1988
1965
|
mass: 0.6,
|
|
1989
1966
|
restDelta: 5e-4,
|
|
1990
|
-
onUpdate: (
|
|
1991
|
-
|
|
1967
|
+
onUpdate: (Y) => {
|
|
1968
|
+
V.current = Y, F({ ...b, scrollProgress: Y });
|
|
1992
1969
|
}
|
|
1993
1970
|
});
|
|
1994
1971
|
}
|
|
1995
1972
|
};
|
|
1996
1973
|
$(() => {
|
|
1997
|
-
const
|
|
1998
|
-
P(
|
|
1999
|
-
}, [
|
|
2000
|
-
const
|
|
1974
|
+
const b = x();
|
|
1975
|
+
P(b);
|
|
1976
|
+
}, [N]);
|
|
1977
|
+
const O = A(o);
|
|
2001
1978
|
$(() => {
|
|
2002
|
-
|
|
1979
|
+
O.current = o;
|
|
2003
1980
|
}, [o]);
|
|
2004
|
-
const
|
|
1981
|
+
const K = A(null);
|
|
2005
1982
|
$(() => {
|
|
2006
|
-
var
|
|
2007
|
-
const
|
|
2008
|
-
if (!
|
|
2009
|
-
const
|
|
2010
|
-
if (
|
|
2011
|
-
const H = ((
|
|
2012
|
-
Math.max(0,
|
|
2013
|
-
Math.max(0,
|
|
2014
|
-
),
|
|
2015
|
-
total:
|
|
2016
|
-
selectedIndex:
|
|
2017
|
-
visibleApprox:
|
|
2018
|
-
visibleFull:
|
|
2019
|
-
stepHalf:
|
|
2020
|
-
canPrev:
|
|
1983
|
+
var Z;
|
|
1984
|
+
const b = O.current;
|
|
1985
|
+
if (!b || !(m != null && m.current)) return;
|
|
1986
|
+
const D = g.length;
|
|
1987
|
+
if (D <= 0) return;
|
|
1988
|
+
const H = ((Z = m.current) == null ? void 0 : Z.clientWidth) ?? 0, j = c[1], Y = V.current ?? (N == null ? void 0 : N.scrollProgress) ?? 0, ne = (H + a) / (j + a), le = Math.max(1, Math.floor(ne)), ue = Math.max(1, Math.round(le * (2 / 3))), ae = Math.min(
|
|
1989
|
+
Math.max(0, X),
|
|
1990
|
+
Math.max(0, D - 1)
|
|
1991
|
+
), re = ae > 0, xe = ae < D - 1, de = {
|
|
1992
|
+
total: D,
|
|
1993
|
+
selectedIndex: ae,
|
|
1994
|
+
visibleApprox: ne,
|
|
1995
|
+
visibleFull: le,
|
|
1996
|
+
stepHalf: ue,
|
|
1997
|
+
canPrev: re,
|
|
2021
1998
|
canNext: xe,
|
|
2022
|
-
scrollProgress:
|
|
1999
|
+
scrollProgress: Y,
|
|
2023
2000
|
viewportWidth: H,
|
|
2024
|
-
itemMaxWidth:
|
|
2025
|
-
gap:
|
|
2026
|
-
},
|
|
2027
|
-
let
|
|
2028
|
-
if (!
|
|
2029
|
-
for (const
|
|
2030
|
-
if (
|
|
2031
|
-
|
|
2001
|
+
itemMaxWidth: j,
|
|
2002
|
+
gap: a
|
|
2003
|
+
}, pe = K.current;
|
|
2004
|
+
let B = !pe;
|
|
2005
|
+
if (!B) {
|
|
2006
|
+
for (const z in de)
|
|
2007
|
+
if (de[z] !== pe[z]) {
|
|
2008
|
+
B = !0;
|
|
2032
2009
|
break;
|
|
2033
2010
|
}
|
|
2034
2011
|
}
|
|
2035
|
-
|
|
2036
|
-
}, [m, g.length,
|
|
2037
|
-
var
|
|
2038
|
-
(
|
|
2012
|
+
B && (K.current = de, b(de));
|
|
2013
|
+
}, [m, g.length, X, N, a, c]), $(() => () => {
|
|
2014
|
+
var b;
|
|
2015
|
+
(b = C.current) == null || b.stop();
|
|
2039
2016
|
}, []);
|
|
2040
|
-
const [
|
|
2041
|
-
|
|
2042
|
-
let
|
|
2043
|
-
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2046
|
-
}, [m,
|
|
2047
|
-
const
|
|
2017
|
+
const [oe, ie] = R(0);
|
|
2018
|
+
He(() => {
|
|
2019
|
+
let b = c[1];
|
|
2020
|
+
N && b > N.scrollVisible && (b = N.scrollVisible);
|
|
2021
|
+
const D = (b + a) * S.length / v;
|
|
2022
|
+
ie(D);
|
|
2023
|
+
}, [m, M, N]);
|
|
2024
|
+
const k = (b) => {
|
|
2048
2025
|
if (!g.length) return;
|
|
2049
|
-
const
|
|
2050
|
-
switch (
|
|
2026
|
+
const D = ee ?? X;
|
|
2027
|
+
switch (b.key) {
|
|
2051
2028
|
case "ArrowLeft":
|
|
2052
|
-
|
|
2029
|
+
b.preventDefault(), te(Math.max(0, D - 1));
|
|
2053
2030
|
break;
|
|
2054
2031
|
case "ArrowRight":
|
|
2055
|
-
|
|
2032
|
+
b.preventDefault(), te(Math.min(g.length - 1, D + 1));
|
|
2056
2033
|
break;
|
|
2057
2034
|
case "Home":
|
|
2058
|
-
|
|
2035
|
+
b.preventDefault(), te(0);
|
|
2059
2036
|
break;
|
|
2060
2037
|
case "End":
|
|
2061
|
-
|
|
2038
|
+
b.preventDefault(), te(g.length - 1);
|
|
2062
2039
|
break;
|
|
2063
2040
|
case "Enter":
|
|
2064
2041
|
case " ":
|
|
2065
|
-
|
|
2042
|
+
b.preventDefault(), te(D);
|
|
2066
2043
|
break;
|
|
2067
2044
|
}
|
|
2068
2045
|
};
|
|
2069
2046
|
return $(() => {
|
|
2070
|
-
const
|
|
2071
|
-
if (!
|
|
2072
|
-
const
|
|
2073
|
-
const
|
|
2074
|
-
|
|
2047
|
+
const b = m.current;
|
|
2048
|
+
if (!b) return;
|
|
2049
|
+
const D = (H) => {
|
|
2050
|
+
const j = H.detail;
|
|
2051
|
+
j && typeof j.index == "number" && te(j.index);
|
|
2075
2052
|
};
|
|
2076
|
-
return
|
|
2077
|
-
|
|
2053
|
+
return b.addEventListener("udx:carousel:centerIndex", D), () => {
|
|
2054
|
+
b.removeEventListener(
|
|
2078
2055
|
"udx:carousel:centerIndex",
|
|
2079
|
-
|
|
2056
|
+
D
|
|
2080
2057
|
);
|
|
2081
2058
|
};
|
|
2082
2059
|
}, [m, g.length]), /* @__PURE__ */ f(
|
|
2083
2060
|
"div",
|
|
2084
2061
|
{
|
|
2085
|
-
className:
|
|
2062
|
+
className: I.carousel,
|
|
2086
2063
|
ref: m,
|
|
2087
2064
|
role: "listbox",
|
|
2088
2065
|
"aria-orientation": "horizontal",
|
|
2089
|
-
onKeyDown:
|
|
2090
|
-
...
|
|
2066
|
+
onKeyDown: k,
|
|
2067
|
+
...i,
|
|
2091
2068
|
children: /* @__PURE__ */ f(
|
|
2092
|
-
|
|
2069
|
+
Nt,
|
|
2093
2070
|
{
|
|
2094
2071
|
draggable: !0,
|
|
2095
2072
|
orientation: "horizontal",
|
|
2096
2073
|
onScroll: E,
|
|
2097
|
-
scrollSize:
|
|
2074
|
+
scrollSize: oe,
|
|
2098
2075
|
children: /* @__PURE__ */ f(
|
|
2099
2076
|
"div",
|
|
2100
2077
|
{
|
|
2101
|
-
className:
|
|
2102
|
-
ref:
|
|
2078
|
+
className: I.track,
|
|
2079
|
+
ref: W,
|
|
2103
2080
|
style: {
|
|
2104
|
-
gap: `${
|
|
2105
|
-
translate:
|
|
2081
|
+
gap: `${a}px`,
|
|
2082
|
+
translate: y,
|
|
2106
2083
|
willChange: "translate"
|
|
2107
2084
|
},
|
|
2108
2085
|
children: S
|
|
@@ -2112,128 +2089,128 @@ const sn = je, cn = je, Bt = ({
|
|
|
2112
2089
|
)
|
|
2113
2090
|
}
|
|
2114
2091
|
);
|
|
2115
|
-
},
|
|
2092
|
+
}, At = ({
|
|
2116
2093
|
orientation: e = "horizontal",
|
|
2117
2094
|
className: t,
|
|
2118
2095
|
...n
|
|
2119
2096
|
}) => {
|
|
2120
|
-
const l =
|
|
2097
|
+
const l = ct({ orientation: e, className: t });
|
|
2121
2098
|
return /* @__PURE__ */ f("hr", { className: l.divider, ...n });
|
|
2122
2099
|
}, Q = [];
|
|
2123
2100
|
for (let e = 0; e < 256; ++e)
|
|
2124
2101
|
Q.push((e + 256).toString(16).slice(1));
|
|
2125
|
-
function
|
|
2102
|
+
function Bt(e, t = 0) {
|
|
2126
2103
|
return (Q[e[t + 0]] + Q[e[t + 1]] + Q[e[t + 2]] + Q[e[t + 3]] + "-" + Q[e[t + 4]] + Q[e[t + 5]] + "-" + Q[e[t + 6]] + Q[e[t + 7]] + "-" + Q[e[t + 8]] + Q[e[t + 9]] + "-" + Q[e[t + 10]] + Q[e[t + 11]] + Q[e[t + 12]] + Q[e[t + 13]] + Q[e[t + 14]] + Q[e[t + 15]]).toLowerCase();
|
|
2127
2104
|
}
|
|
2128
|
-
let
|
|
2129
|
-
const
|
|
2130
|
-
function
|
|
2131
|
-
if (!
|
|
2105
|
+
let Ne;
|
|
2106
|
+
const Pt = new Uint8Array(16);
|
|
2107
|
+
function Ht() {
|
|
2108
|
+
if (!Ne) {
|
|
2132
2109
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
2133
2110
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2134
|
-
|
|
2111
|
+
Ne = crypto.getRandomValues.bind(crypto);
|
|
2135
2112
|
}
|
|
2136
|
-
return
|
|
2113
|
+
return Ne(Pt);
|
|
2137
2114
|
}
|
|
2138
|
-
const
|
|
2139
|
-
function
|
|
2115
|
+
const Vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ae = { randomUUID: Vt };
|
|
2116
|
+
function ke(e, t, n) {
|
|
2140
2117
|
var r;
|
|
2141
|
-
if (
|
|
2142
|
-
return
|
|
2118
|
+
if (Ae.randomUUID && !e)
|
|
2119
|
+
return Ae.randomUUID();
|
|
2143
2120
|
e = e || {};
|
|
2144
|
-
const l = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ??
|
|
2121
|
+
const l = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Ht();
|
|
2145
2122
|
if (l.length < 16)
|
|
2146
2123
|
throw new Error("Random bytes length must be >= 16");
|
|
2147
|
-
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128,
|
|
2124
|
+
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Bt(l);
|
|
2148
2125
|
}
|
|
2149
|
-
const
|
|
2126
|
+
const Ye = ({
|
|
2150
2127
|
variant: e = "plain",
|
|
2151
2128
|
buttons: t,
|
|
2152
2129
|
className: n,
|
|
2153
2130
|
children: l,
|
|
2154
2131
|
title: r,
|
|
2155
|
-
text:
|
|
2132
|
+
text: s,
|
|
2156
2133
|
position: c,
|
|
2157
|
-
targetRef:
|
|
2134
|
+
targetRef: a,
|
|
2158
2135
|
ref: d,
|
|
2159
2136
|
trigger: o = ["hover", "focus"],
|
|
2160
2137
|
...h
|
|
2161
2138
|
}) => {
|
|
2162
|
-
if (!l && !
|
|
2139
|
+
if (!l && !a)
|
|
2163
2140
|
throw new Error("ToolTip must have a child or a targetRef");
|
|
2164
2141
|
Array.isArray(o) || (o = [o]), t && !Array.isArray(t) && (t = [t]);
|
|
2165
|
-
const
|
|
2142
|
+
const v = A(null), i = a || v, [u, m] = R(null), [y] = R(ke()), [w, I] = R(!1), g = A(null);
|
|
2166
2143
|
$(() => {
|
|
2167
|
-
const
|
|
2168
|
-
m(
|
|
2144
|
+
const x = (M) => {
|
|
2145
|
+
m(M.detail);
|
|
2169
2146
|
};
|
|
2170
|
-
return document.addEventListener("tooltip-update",
|
|
2147
|
+
return document.addEventListener("tooltip-update", x), () => {
|
|
2171
2148
|
document.removeEventListener(
|
|
2172
2149
|
"tooltip-update",
|
|
2173
|
-
|
|
2150
|
+
x
|
|
2174
2151
|
);
|
|
2175
2152
|
};
|
|
2176
2153
|
}, []), $(() => {
|
|
2177
|
-
g.current && clearTimeout(g.current), u ?
|
|
2178
|
-
|
|
2154
|
+
g.current && clearTimeout(g.current), u ? I(u === y) : g.current = setTimeout(() => {
|
|
2155
|
+
I(!1);
|
|
2179
2156
|
}, 1200);
|
|
2180
|
-
}, [u,
|
|
2181
|
-
const
|
|
2157
|
+
}, [u, y]);
|
|
2158
|
+
const W = () => {
|
|
2182
2159
|
if (o.includes("hover")) {
|
|
2183
|
-
const
|
|
2184
|
-
document.dispatchEvent(
|
|
2160
|
+
const x = new CustomEvent("tooltip-update", { detail: y });
|
|
2161
|
+
document.dispatchEvent(x);
|
|
2185
2162
|
}
|
|
2186
|
-
},
|
|
2163
|
+
}, L = () => {
|
|
2187
2164
|
if (o.includes("hover")) {
|
|
2188
|
-
const
|
|
2189
|
-
document.dispatchEvent(
|
|
2165
|
+
const x = new CustomEvent("tooltip-update", { detail: null });
|
|
2166
|
+
document.dispatchEvent(x);
|
|
2190
2167
|
}
|
|
2191
2168
|
}, P = () => {
|
|
2192
2169
|
if (o.includes("click")) {
|
|
2193
|
-
const
|
|
2194
|
-
detail:
|
|
2170
|
+
const x = new CustomEvent("tooltip-update", {
|
|
2171
|
+
detail: w ? null : y
|
|
2195
2172
|
});
|
|
2196
|
-
document.dispatchEvent(
|
|
2173
|
+
document.dispatchEvent(x);
|
|
2197
2174
|
}
|
|
2198
|
-
},
|
|
2175
|
+
}, N = () => {
|
|
2199
2176
|
if (o.includes("focus")) {
|
|
2200
|
-
const
|
|
2201
|
-
document.dispatchEvent(
|
|
2177
|
+
const x = new CustomEvent("tooltip-update", { detail: y });
|
|
2178
|
+
document.dispatchEvent(x);
|
|
2202
2179
|
}
|
|
2203
|
-
},
|
|
2180
|
+
}, F = () => {
|
|
2204
2181
|
if (o.includes("focus")) {
|
|
2205
|
-
const
|
|
2206
|
-
document.dispatchEvent(
|
|
2182
|
+
const x = new CustomEvent("tooltip-update", { detail: null });
|
|
2183
|
+
document.dispatchEvent(x);
|
|
2207
2184
|
}
|
|
2208
2185
|
};
|
|
2209
2186
|
$(() => {
|
|
2210
|
-
if (
|
|
2211
|
-
const
|
|
2212
|
-
return
|
|
2213
|
-
|
|
2187
|
+
if (i != null && i.current) {
|
|
2188
|
+
const x = i.current;
|
|
2189
|
+
return x.addEventListener("mouseenter", W), x.addEventListener("mouseleave", L), x.addEventListener("click", P), x.addEventListener("focus", N), x.addEventListener("blur", F), () => {
|
|
2190
|
+
x.removeEventListener("mouseenter", W), x.removeEventListener("mouseleave", L), x.removeEventListener("click", P), x.removeEventListener("focus", N), x.removeEventListener("blur", F);
|
|
2214
2191
|
};
|
|
2215
2192
|
}
|
|
2216
|
-
}, [
|
|
2217
|
-
const
|
|
2218
|
-
if (!c && typeof window < "u" &&
|
|
2219
|
-
const
|
|
2220
|
-
e === "plain" ? J < 1 / 3 ? c = "right" : J > 2 / 3 ? c = "left" : c =
|
|
2193
|
+
}, [i, o, y, w]);
|
|
2194
|
+
const V = !a && me(l) ? ve(l, { ref: v }) : l;
|
|
2195
|
+
if (!c && typeof window < "u" && i != null && i.current && !c) {
|
|
2196
|
+
const x = i.current.getBoundingClientRect(), M = window.innerWidth, X = window.innerHeight, J = x.left / M, ee = x.top / X;
|
|
2197
|
+
e === "plain" ? J < 1 / 3 ? c = "right" : J > 2 / 3 ? c = "left" : c = ee > 0.5 ? "top" : "bottom" : J < 1 / 2 && ee < 1 / 2 ? c = "bottom-right" : J > 1 / 2 && ee < 1 / 2 ? c = "bottom-left" : J > 1 / 2 && ee > 1 / 2 ? c = "top-left" : J < 1 / 2 && ee > 1 / 2 && (c = "top-right");
|
|
2221
2198
|
}
|
|
2222
|
-
const C =
|
|
2199
|
+
const C = xt({
|
|
2223
2200
|
variant: e,
|
|
2224
2201
|
buttons: t,
|
|
2225
2202
|
className: n,
|
|
2226
2203
|
title: r,
|
|
2227
|
-
text:
|
|
2204
|
+
text: s,
|
|
2228
2205
|
position: c,
|
|
2229
2206
|
trigger: o,
|
|
2230
|
-
targetRef:
|
|
2207
|
+
targetRef: a,
|
|
2231
2208
|
children: l
|
|
2232
2209
|
});
|
|
2233
|
-
return /* @__PURE__ */
|
|
2234
|
-
|
|
2235
|
-
/* @__PURE__ */ f(
|
|
2236
|
-
|
|
2210
|
+
return /* @__PURE__ */ U(he, { children: [
|
|
2211
|
+
V,
|
|
2212
|
+
/* @__PURE__ */ f(ce, { children: w && /* @__PURE__ */ f(kt, { targetRef: i, children: /* @__PURE__ */ f(
|
|
2213
|
+
q.div,
|
|
2237
2214
|
{
|
|
2238
2215
|
initial: { opacity: u ? 1 : 0 },
|
|
2239
2216
|
animate: { opacity: 1 },
|
|
@@ -2241,10 +2218,10 @@ const qe = ({
|
|
|
2241
2218
|
exit: { opacity: u ? 1 : 0 },
|
|
2242
2219
|
className: C.toolTip,
|
|
2243
2220
|
...h,
|
|
2244
|
-
onMouseEnter:
|
|
2245
|
-
onMouseLeave:
|
|
2246
|
-
children: /* @__PURE__ */
|
|
2247
|
-
|
|
2221
|
+
onMouseEnter: W,
|
|
2222
|
+
onMouseLeave: L,
|
|
2223
|
+
children: /* @__PURE__ */ U(
|
|
2224
|
+
q.div,
|
|
2248
2225
|
{
|
|
2249
2226
|
className: C.container,
|
|
2250
2227
|
layoutId: "tool-tip",
|
|
@@ -2255,15 +2232,15 @@ const qe = ({
|
|
|
2255
2232
|
},
|
|
2256
2233
|
children: [
|
|
2257
2234
|
r && /* @__PURE__ */ f("div", { className: C.subHead, children: r }),
|
|
2258
|
-
/* @__PURE__ */ f("div", { className: C.supportingText, children:
|
|
2259
|
-
t && /* @__PURE__ */ f("div", { className: C.actions, children: Array.isArray(t) && t.map((
|
|
2260
|
-
|
|
2235
|
+
/* @__PURE__ */ f("div", { className: C.supportingText, children: s }),
|
|
2236
|
+
t && /* @__PURE__ */ f("div", { className: C.actions, children: Array.isArray(t) && t.map((x, M) => /* @__PURE__ */ f(
|
|
2237
|
+
Wt,
|
|
2261
2238
|
{
|
|
2262
2239
|
size: "small",
|
|
2263
2240
|
variant: "text",
|
|
2264
|
-
...
|
|
2241
|
+
...x
|
|
2265
2242
|
},
|
|
2266
|
-
|
|
2243
|
+
M
|
|
2267
2244
|
)) })
|
|
2268
2245
|
]
|
|
2269
2246
|
}
|
|
@@ -2271,28 +2248,28 @@ const qe = ({
|
|
|
2271
2248
|
}
|
|
2272
2249
|
) }) })
|
|
2273
2250
|
] });
|
|
2274
|
-
},
|
|
2251
|
+
}, Be = ({
|
|
2275
2252
|
className: e,
|
|
2276
2253
|
label: t,
|
|
2277
2254
|
variant: n = "primary",
|
|
2278
2255
|
size: l = "medium",
|
|
2279
2256
|
href: r,
|
|
2280
|
-
type:
|
|
2257
|
+
type: s,
|
|
2281
2258
|
icon: c,
|
|
2282
|
-
isExtended:
|
|
2259
|
+
isExtended: a = !1,
|
|
2283
2260
|
ref: d,
|
|
2284
2261
|
transition: o,
|
|
2285
2262
|
children: h,
|
|
2286
|
-
...
|
|
2263
|
+
...v
|
|
2287
2264
|
}) => {
|
|
2288
2265
|
if (h && (t = h), !t)
|
|
2289
2266
|
throw new Error(
|
|
2290
2267
|
"FAB component requires either a label prop or children content"
|
|
2291
2268
|
);
|
|
2292
|
-
const
|
|
2269
|
+
const i = r ? "a" : "button", u = it({
|
|
2293
2270
|
href: r,
|
|
2294
2271
|
icon: c,
|
|
2295
|
-
isExtended:
|
|
2272
|
+
isExtended: a,
|
|
2296
2273
|
label: t,
|
|
2297
2274
|
size: l,
|
|
2298
2275
|
variant: n,
|
|
@@ -2301,7 +2278,7 @@ const qe = ({
|
|
|
2301
2278
|
children: t
|
|
2302
2279
|
});
|
|
2303
2280
|
o = { duration: 0.3, ...o };
|
|
2304
|
-
const m =
|
|
2281
|
+
const m = A(null), y = d || m, w = {
|
|
2305
2282
|
visible: {
|
|
2306
2283
|
width: "auto",
|
|
2307
2284
|
marginLeft: 12,
|
|
@@ -2327,21 +2304,21 @@ const qe = ({
|
|
|
2327
2304
|
}
|
|
2328
2305
|
}
|
|
2329
2306
|
};
|
|
2330
|
-
return /* @__PURE__ */
|
|
2331
|
-
|
|
2307
|
+
return /* @__PURE__ */ U(
|
|
2308
|
+
i,
|
|
2332
2309
|
{
|
|
2333
|
-
...
|
|
2334
|
-
ref:
|
|
2310
|
+
...v,
|
|
2311
|
+
ref: y,
|
|
2335
2312
|
href: r,
|
|
2336
|
-
"aria-label":
|
|
2313
|
+
"aria-label": a ? void 0 : t,
|
|
2337
2314
|
className: u.fab,
|
|
2338
2315
|
children: [
|
|
2339
2316
|
/* @__PURE__ */ f(
|
|
2340
|
-
|
|
2317
|
+
Ye,
|
|
2341
2318
|
{
|
|
2342
|
-
trigger:
|
|
2319
|
+
trigger: a ? null : void 0,
|
|
2343
2320
|
text: t,
|
|
2344
|
-
targetRef:
|
|
2321
|
+
targetRef: y
|
|
2345
2322
|
}
|
|
2346
2323
|
),
|
|
2347
2324
|
/* @__PURE__ */ f("span", { className: u.stateLayer, children: /* @__PURE__ */ f(
|
|
@@ -2353,14 +2330,14 @@ const qe = ({
|
|
|
2353
2330
|
"on-secondary-container": n == "secondary",
|
|
2354
2331
|
"on-tertiary-container": n == "tertiary"
|
|
2355
2332
|
}),
|
|
2356
|
-
triggerRef:
|
|
2333
|
+
triggerRef: y
|
|
2357
2334
|
}
|
|
2358
2335
|
) }),
|
|
2359
|
-
/* @__PURE__ */ f(
|
|
2360
|
-
/* @__PURE__ */ f(
|
|
2361
|
-
|
|
2336
|
+
/* @__PURE__ */ f(se, { icon: c, className: u.icon }),
|
|
2337
|
+
/* @__PURE__ */ f(ce, { children: a && /* @__PURE__ */ f(
|
|
2338
|
+
q.span,
|
|
2362
2339
|
{
|
|
2363
|
-
variants:
|
|
2340
|
+
variants: w,
|
|
2364
2341
|
initial: "hidden",
|
|
2365
2342
|
animate: "visible",
|
|
2366
2343
|
exit: "hidden",
|
|
@@ -2371,127 +2348,127 @@ const qe = ({
|
|
|
2371
2348
|
]
|
|
2372
2349
|
}
|
|
2373
2350
|
);
|
|
2374
|
-
},
|
|
2351
|
+
}, Ie = ({
|
|
2375
2352
|
variant: e = "standard",
|
|
2376
2353
|
href: t,
|
|
2377
2354
|
disabled: n = !1,
|
|
2378
2355
|
type: l = "button",
|
|
2379
2356
|
title: r,
|
|
2380
|
-
label:
|
|
2357
|
+
label: s,
|
|
2381
2358
|
onToggle: c,
|
|
2382
|
-
activated:
|
|
2359
|
+
activated: a = !1,
|
|
2383
2360
|
onClick: d,
|
|
2384
2361
|
icon: o,
|
|
2385
2362
|
size: h = "medium",
|
|
2386
|
-
iconSelected:
|
|
2387
|
-
className:
|
|
2363
|
+
iconSelected: v,
|
|
2364
|
+
className: i,
|
|
2388
2365
|
ref: u,
|
|
2389
2366
|
width: m = "default",
|
|
2390
|
-
shape:
|
|
2391
|
-
allowShapeTransformation:
|
|
2392
|
-
transition:
|
|
2367
|
+
shape: y = "rounded",
|
|
2368
|
+
allowShapeTransformation: w = !0,
|
|
2369
|
+
transition: I,
|
|
2393
2370
|
children: g,
|
|
2394
|
-
...
|
|
2371
|
+
...W
|
|
2395
2372
|
}) => {
|
|
2396
|
-
if (g && (
|
|
2373
|
+
if (g && (s = g), !s)
|
|
2397
2374
|
throw new Error(
|
|
2398
2375
|
"IconButton component requires either a label prop or children content to provide an accessible aria-label"
|
|
2399
2376
|
);
|
|
2400
|
-
r || (r =
|
|
2401
|
-
const [
|
|
2402
|
-
let
|
|
2403
|
-
c ? c && (
|
|
2404
|
-
n &&
|
|
2405
|
-
}, o =
|
|
2406
|
-
n &&
|
|
2377
|
+
r || (r = s);
|
|
2378
|
+
const [L, P] = T.useState(a);
|
|
2379
|
+
let N;
|
|
2380
|
+
c ? c && (N = (M) => {
|
|
2381
|
+
n && M.preventDefault(), P(!L), c(!!L);
|
|
2382
|
+
}, o = L && v || o) : N = (M) => {
|
|
2383
|
+
n && M.preventDefault(), d && d(M);
|
|
2407
2384
|
}, $(() => {
|
|
2408
|
-
P(
|
|
2409
|
-
}, [
|
|
2410
|
-
const
|
|
2411
|
-
transition:
|
|
2412
|
-
shape:
|
|
2413
|
-
allowShapeTransformation:
|
|
2385
|
+
P(a);
|
|
2386
|
+
}, [a]);
|
|
2387
|
+
const F = t ? "a" : "button", V = ut({
|
|
2388
|
+
transition: I,
|
|
2389
|
+
shape: y,
|
|
2390
|
+
allowShapeTransformation: w,
|
|
2414
2391
|
width: m,
|
|
2415
2392
|
href: t,
|
|
2416
|
-
activated:
|
|
2417
|
-
label:
|
|
2418
|
-
iconSelected:
|
|
2419
|
-
isActive:
|
|
2393
|
+
activated: L,
|
|
2394
|
+
label: s,
|
|
2395
|
+
iconSelected: v,
|
|
2396
|
+
isActive: L,
|
|
2420
2397
|
onToggle: c,
|
|
2421
2398
|
disabled: n,
|
|
2422
2399
|
icon: o,
|
|
2423
2400
|
variant: e,
|
|
2424
|
-
className:
|
|
2401
|
+
className: i,
|
|
2425
2402
|
size: h,
|
|
2426
|
-
children:
|
|
2427
|
-
...
|
|
2428
|
-
}), C =
|
|
2429
|
-
return
|
|
2430
|
-
|
|
2403
|
+
children: s,
|
|
2404
|
+
...W
|
|
2405
|
+
}), C = A(null), x = u || C;
|
|
2406
|
+
return I = { duration: 0.3, ...I }, /* @__PURE__ */ U(
|
|
2407
|
+
F,
|
|
2431
2408
|
{
|
|
2432
2409
|
disabled: n,
|
|
2433
2410
|
href: t,
|
|
2434
|
-
style: { transition:
|
|
2435
|
-
className:
|
|
2436
|
-
"aria-label":
|
|
2437
|
-
...
|
|
2411
|
+
style: { transition: I.duration + "s" },
|
|
2412
|
+
className: V.iconButton,
|
|
2413
|
+
"aria-label": s,
|
|
2414
|
+
...W,
|
|
2438
2415
|
title: void 0,
|
|
2439
|
-
onClick:
|
|
2440
|
-
ref:
|
|
2416
|
+
onClick: N,
|
|
2417
|
+
ref: x,
|
|
2441
2418
|
children: [
|
|
2442
2419
|
/* @__PURE__ */ f(
|
|
2443
|
-
|
|
2420
|
+
Ye,
|
|
2444
2421
|
{
|
|
2445
|
-
targetRef:
|
|
2422
|
+
targetRef: x,
|
|
2446
2423
|
trigger: n ? null : void 0,
|
|
2447
2424
|
text: r
|
|
2448
2425
|
}
|
|
2449
2426
|
),
|
|
2450
|
-
/* @__PURE__ */ f("div", { className:
|
|
2427
|
+
/* @__PURE__ */ f("div", { className: V.touchTarget }),
|
|
2451
2428
|
/* @__PURE__ */ f(
|
|
2452
2429
|
"div",
|
|
2453
2430
|
{
|
|
2454
|
-
className:
|
|
2455
|
-
style: { transition:
|
|
2431
|
+
className: V.stateLayer,
|
|
2432
|
+
style: { transition: I.duration + "s" },
|
|
2456
2433
|
children: !n && /* @__PURE__ */ f(
|
|
2457
2434
|
we,
|
|
2458
2435
|
{
|
|
2459
2436
|
colorName: p(
|
|
2460
2437
|
e === "standard" && {
|
|
2461
|
-
"on-surface-variant": !
|
|
2462
|
-
primary:
|
|
2438
|
+
"on-surface-variant": !L,
|
|
2439
|
+
primary: L
|
|
2463
2440
|
},
|
|
2464
2441
|
e === "filled" && {
|
|
2465
|
-
primary: !
|
|
2466
|
-
"inverse-on-surface":
|
|
2442
|
+
primary: !L && !!c,
|
|
2443
|
+
"inverse-on-surface": L || !c
|
|
2467
2444
|
},
|
|
2468
2445
|
e === "tonal" && {
|
|
2469
|
-
"on-surface-variant": !
|
|
2470
|
-
"on-secondary-container":
|
|
2446
|
+
"on-surface-variant": !L && !!c,
|
|
2447
|
+
"on-secondary-container": L || !c
|
|
2471
2448
|
},
|
|
2472
2449
|
e === "outlined" && {
|
|
2473
|
-
"on-surface-variant": !
|
|
2474
|
-
"on-primary":
|
|
2450
|
+
"on-surface-variant": !L,
|
|
2451
|
+
"on-primary": L
|
|
2475
2452
|
}
|
|
2476
2453
|
),
|
|
2477
|
-
triggerRef:
|
|
2454
|
+
triggerRef: x
|
|
2478
2455
|
}
|
|
2479
2456
|
)
|
|
2480
2457
|
}
|
|
2481
2458
|
),
|
|
2482
|
-
o && /* @__PURE__ */ f(
|
|
2459
|
+
o && /* @__PURE__ */ f(se, { icon: o, className: V.icon })
|
|
2483
2460
|
]
|
|
2484
2461
|
}
|
|
2485
2462
|
);
|
|
2486
|
-
},
|
|
2463
|
+
}, cn = ({
|
|
2487
2464
|
className: e,
|
|
2488
2465
|
valueFormatter: t,
|
|
2489
2466
|
step: n = 10,
|
|
2490
2467
|
name: l,
|
|
2491
2468
|
value: r = 0,
|
|
2492
|
-
min:
|
|
2469
|
+
min: s = 0,
|
|
2493
2470
|
max: c = 100,
|
|
2494
|
-
marks:
|
|
2471
|
+
marks: a = [
|
|
2495
2472
|
{
|
|
2496
2473
|
value: 0,
|
|
2497
2474
|
label: "0"
|
|
@@ -2505,36 +2482,36 @@ const qe = ({
|
|
|
2505
2482
|
onChange: o,
|
|
2506
2483
|
...h
|
|
2507
2484
|
}) => {
|
|
2508
|
-
const
|
|
2509
|
-
const E = u(),
|
|
2510
|
-
return S === 1 / 0 ? 100 : S === -1 / 0 ? 0 : (S - E) / (
|
|
2511
|
-
},
|
|
2485
|
+
const v = (S) => {
|
|
2486
|
+
const E = u(), O = i();
|
|
2487
|
+
return S === 1 / 0 ? 100 : S === -1 / 0 ? 0 : (S - E) / (O - E) * 100;
|
|
2488
|
+
}, i = (S = !1) => S ? c : c == 1 / 0 ? a[(a == null ? void 0 : a.length) - 1].value : c, u = (S = !1) => S ? s : s == -1 / 0 ? a[0].value : s, m = (S) => {
|
|
2512
2489
|
const E = u(!1);
|
|
2513
|
-
return (
|
|
2514
|
-
}, [
|
|
2515
|
-
|
|
2516
|
-
},
|
|
2517
|
-
|
|
2490
|
+
return (i(!1) - E) * S / 100 + E;
|
|
2491
|
+
}, [y, w] = R(!1), I = A(null), g = d || I, [W, L] = R(r), [P, N] = R(v(r)), [F, V] = R(!1), C = (S) => {
|
|
2492
|
+
V(!0), w(!0), X(S);
|
|
2493
|
+
}, x = () => {
|
|
2494
|
+
V(!1), w(!1);
|
|
2518
2495
|
};
|
|
2519
|
-
$(() => (
|
|
2520
|
-
window.removeEventListener("mouseup",
|
|
2521
|
-
}), [
|
|
2522
|
-
const
|
|
2496
|
+
$(() => (F ? (window.addEventListener("mouseup", x), window.addEventListener("mousemove", X), window.addEventListener("touchend", x), window.addEventListener("touchmove", X)) : (window.removeEventListener("mouseup", x), window.removeEventListener("mousemove", X), window.removeEventListener("touchend", x), window.removeEventListener("touchmove", X)), () => {
|
|
2497
|
+
window.removeEventListener("mouseup", x), window.removeEventListener("mousemove", X), window.removeEventListener("touchend", x), window.removeEventListener("touchmove", X);
|
|
2498
|
+
}), [F]);
|
|
2499
|
+
const M = mt({
|
|
2523
2500
|
className: e,
|
|
2524
|
-
isChanging:
|
|
2525
|
-
marks:
|
|
2501
|
+
isChanging: y,
|
|
2502
|
+
marks: a,
|
|
2526
2503
|
max: c,
|
|
2527
|
-
min:
|
|
2504
|
+
min: s,
|
|
2528
2505
|
name: l,
|
|
2529
2506
|
step: n,
|
|
2530
|
-
value:
|
|
2507
|
+
value: W,
|
|
2531
2508
|
valueFormatter: t,
|
|
2532
2509
|
onChange: o
|
|
2533
|
-
}),
|
|
2510
|
+
}), X = (S) => {
|
|
2534
2511
|
const E = g == null ? void 0 : g.current;
|
|
2535
2512
|
if (E) {
|
|
2536
|
-
const
|
|
2537
|
-
J({ percent:
|
|
2513
|
+
const O = E.getBoundingClientRect().left, oe = ((S.type === "touchmove" || S.type === "touchstart" ? S.touches[0].clientX : S.clientX) - O) / E.offsetWidth * 100;
|
|
2514
|
+
J({ percent: oe });
|
|
2538
2515
|
}
|
|
2539
2516
|
}, J = ({
|
|
2540
2517
|
percent: S,
|
|
@@ -2542,31 +2519,31 @@ const qe = ({
|
|
|
2542
2519
|
}) => {
|
|
2543
2520
|
if (S) {
|
|
2544
2521
|
if (S >= 100) {
|
|
2545
|
-
|
|
2522
|
+
L(i(!0)), N(100);
|
|
2546
2523
|
return;
|
|
2547
2524
|
}
|
|
2548
2525
|
if (S <= 0) {
|
|
2549
|
-
|
|
2526
|
+
L(u(!0)), N(0);
|
|
2550
2527
|
return;
|
|
2551
2528
|
}
|
|
2552
|
-
E = m(S), E == u() && (E = u(!0)), E ==
|
|
2529
|
+
E = m(S), E == u() && (E = u(!0)), E == i() && (E = i(!0));
|
|
2553
2530
|
} else if (E != null) {
|
|
2554
|
-
if (E >=
|
|
2555
|
-
|
|
2531
|
+
if (E >= i()) {
|
|
2532
|
+
L(i(!0)), N(100);
|
|
2556
2533
|
return;
|
|
2557
2534
|
}
|
|
2558
2535
|
if (E <= u()) {
|
|
2559
|
-
|
|
2536
|
+
L(u(!0)), N(0);
|
|
2560
2537
|
return;
|
|
2561
2538
|
}
|
|
2562
|
-
S =
|
|
2539
|
+
S = v(E);
|
|
2563
2540
|
} else
|
|
2564
2541
|
return;
|
|
2565
|
-
n != null ? E = Math.round((E - u()) / n) * n + u() :
|
|
2566
|
-
let
|
|
2567
|
-
return
|
|
2568
|
-
}).value), E >=
|
|
2569
|
-
}, [
|
|
2542
|
+
n != null ? E = Math.round((E - u()) / n) * n + u() : a && (E = a.reduce((O, K, oe) => {
|
|
2543
|
+
let ie = K.value === 1 / 0 ? i() : K.value === -1 / 0 ? u() : K.value, k = O.value === 1 / 0 ? i() : O.value === -1 / 0 ? u() : O.value;
|
|
2544
|
+
return ie = Math.abs(ie - E), k = Math.abs(k - E), ie < k ? K : O;
|
|
2545
|
+
}).value), E >= i() && (E = i(!0)), E <= u() && (E = u(!0)), S = v(E), L(E), N(S), o && o(E);
|
|
2546
|
+
}, [ee, _] = R(0);
|
|
2570
2547
|
return $(() => {
|
|
2571
2548
|
const S = () => {
|
|
2572
2549
|
g.current && _(g.current.offsetWidth);
|
|
@@ -2574,7 +2551,7 @@ const qe = ({
|
|
|
2574
2551
|
return S(), window.addEventListener("resize", S), () => {
|
|
2575
2552
|
window.removeEventListener("resize", S);
|
|
2576
2553
|
};
|
|
2577
|
-
}, []), /* @__PURE__ */
|
|
2554
|
+
}, []), /* @__PURE__ */ U(
|
|
2578
2555
|
"div",
|
|
2579
2556
|
{
|
|
2580
2557
|
tabIndex: 0,
|
|
@@ -2582,17 +2559,17 @@ const qe = ({
|
|
|
2582
2559
|
switch (S.key) {
|
|
2583
2560
|
case "ArrowRight":
|
|
2584
2561
|
if (n)
|
|
2585
|
-
J({ value:
|
|
2586
|
-
else if (
|
|
2587
|
-
const E =
|
|
2562
|
+
J({ value: W + n });
|
|
2563
|
+
else if (a) {
|
|
2564
|
+
const E = a.find((O) => O.value > W);
|
|
2588
2565
|
E && J({ value: E.value });
|
|
2589
2566
|
}
|
|
2590
2567
|
break;
|
|
2591
2568
|
case "ArrowLeft":
|
|
2592
2569
|
if (n)
|
|
2593
|
-
J({ value:
|
|
2594
|
-
else if (
|
|
2595
|
-
const E =
|
|
2570
|
+
J({ value: W - n });
|
|
2571
|
+
else if (a) {
|
|
2572
|
+
const E = a.slice(0).reverse().find((O, K, oe) => W === 1 / 0 ? K === 1 : O.value < W);
|
|
2596
2573
|
E && J({ value: E.value });
|
|
2597
2574
|
}
|
|
2598
2575
|
break;
|
|
@@ -2602,23 +2579,23 @@ const qe = ({
|
|
|
2602
2579
|
},
|
|
2603
2580
|
role: "slider",
|
|
2604
2581
|
"aria-valuemin": u(!0),
|
|
2605
|
-
"aria-valuemax":
|
|
2606
|
-
"aria-valuenow":
|
|
2607
|
-
"aria-valuetext":
|
|
2608
|
-
className:
|
|
2582
|
+
"aria-valuemax": i(!0),
|
|
2583
|
+
"aria-valuenow": W,
|
|
2584
|
+
"aria-valuetext": W.toString(),
|
|
2585
|
+
className: M.slider,
|
|
2609
2586
|
onMouseDown: C,
|
|
2610
|
-
onClick:
|
|
2587
|
+
onClick: X,
|
|
2611
2588
|
ref: g,
|
|
2612
2589
|
onTouchStart: C,
|
|
2613
2590
|
onDragStart: (S) => S.preventDefault(),
|
|
2614
2591
|
...h,
|
|
2615
2592
|
children: [
|
|
2616
|
-
/* @__PURE__ */ f("input", { type: "hidden", name: l, value:
|
|
2617
|
-
/* @__PURE__ */ f("div", { className:
|
|
2618
|
-
/* @__PURE__ */ f("div", { className:
|
|
2619
|
-
|
|
2593
|
+
/* @__PURE__ */ f("input", { type: "hidden", name: l, value: W }),
|
|
2594
|
+
/* @__PURE__ */ f("div", { className: M.activeTrack, style: { flex: P / 100 } }),
|
|
2595
|
+
/* @__PURE__ */ f("div", { className: M.handle, children: /* @__PURE__ */ f(ce, { children: y && /* @__PURE__ */ f(
|
|
2596
|
+
q.div,
|
|
2620
2597
|
{
|
|
2621
|
-
className:
|
|
2598
|
+
className: M.valueIndicator,
|
|
2622
2599
|
initial: "hidden",
|
|
2623
2600
|
animate: "visible",
|
|
2624
2601
|
exit: "hidden",
|
|
@@ -2632,13 +2609,13 @@ const qe = ({
|
|
|
2632
2609
|
hidden: { opacity: 1, scale: 0 }
|
|
2633
2610
|
},
|
|
2634
2611
|
transition: { duration: 0.1 },
|
|
2635
|
-
children: t ? t(
|
|
2612
|
+
children: t ? t(W) : W
|
|
2636
2613
|
}
|
|
2637
2614
|
) }) }),
|
|
2638
2615
|
/* @__PURE__ */ f(
|
|
2639
2616
|
"div",
|
|
2640
2617
|
{
|
|
2641
|
-
className:
|
|
2618
|
+
className: M.inactiveTrack,
|
|
2642
2619
|
style: { flex: 1 - P / 100 }
|
|
2643
2620
|
}
|
|
2644
2621
|
),
|
|
@@ -2646,18 +2623,18 @@ const qe = ({
|
|
|
2646
2623
|
"div",
|
|
2647
2624
|
{
|
|
2648
2625
|
className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
|
|
2649
|
-
children:
|
|
2650
|
-
let
|
|
2651
|
-
const
|
|
2652
|
-
return
|
|
2626
|
+
children: a && a.map((S, E) => {
|
|
2627
|
+
let O = null;
|
|
2628
|
+
const K = (y ? 9 : 10) / ee * 100, oe = v(S.value);
|
|
2629
|
+
return oe <= P - K ? O = !0 : oe >= P + K && (O = !1), /* @__PURE__ */ f(
|
|
2653
2630
|
"div",
|
|
2654
2631
|
{
|
|
2655
|
-
className: p(
|
|
2656
|
-
"bg-primary-container":
|
|
2657
|
-
"bg-primary":
|
|
2632
|
+
className: p(M.dot, {
|
|
2633
|
+
"bg-primary-container": O != null && O,
|
|
2634
|
+
"bg-primary": O != null && !O
|
|
2658
2635
|
}),
|
|
2659
2636
|
style: {
|
|
2660
|
-
left: `${
|
|
2637
|
+
left: `${v(S.value)}%`
|
|
2661
2638
|
}
|
|
2662
2639
|
},
|
|
2663
2640
|
E
|
|
@@ -2674,51 +2651,51 @@ const qe = ({
|
|
|
2674
2651
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
2675
2652
|
* Copyright 2025 Fonticons, Inc.
|
|
2676
2653
|
*/
|
|
2677
|
-
var
|
|
2654
|
+
var Ot = {
|
|
2678
2655
|
prefix: "fas",
|
|
2679
2656
|
iconName: "circle-exclamation",
|
|
2680
2657
|
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"]
|
|
2681
|
-
},
|
|
2658
|
+
}, Me = {
|
|
2682
2659
|
prefix: "fas",
|
|
2683
2660
|
iconName: "xmark",
|
|
2684
2661
|
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"]
|
|
2685
|
-
},
|
|
2662
|
+
}, Ft = {
|
|
2686
2663
|
prefix: "fas",
|
|
2687
2664
|
iconName: "bars",
|
|
2688
2665
|
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"]
|
|
2689
2666
|
};
|
|
2690
|
-
const
|
|
2667
|
+
const un = ({
|
|
2691
2668
|
variant: e = "standard",
|
|
2692
2669
|
className: t,
|
|
2693
2670
|
children: n,
|
|
2694
2671
|
title: l,
|
|
2695
2672
|
position: r = "right",
|
|
2696
|
-
extended:
|
|
2673
|
+
extended: s,
|
|
2697
2674
|
divider: c,
|
|
2698
|
-
onExtendedChange:
|
|
2699
|
-
closeIcon: d =
|
|
2675
|
+
onExtendedChange: a,
|
|
2676
|
+
closeIcon: d = Me,
|
|
2700
2677
|
transition: o,
|
|
2701
2678
|
...h
|
|
2702
2679
|
}) => {
|
|
2703
2680
|
o = { duration: 0.3, ...o };
|
|
2704
|
-
const [
|
|
2681
|
+
const [v, i] = R(s ?? !0), u = ft({
|
|
2705
2682
|
transition: o,
|
|
2706
2683
|
title: l,
|
|
2707
2684
|
position: r,
|
|
2708
2685
|
closeIcon: d,
|
|
2709
2686
|
className: t,
|
|
2710
2687
|
children: n,
|
|
2711
|
-
onExtendedChange:
|
|
2688
|
+
onExtendedChange: a,
|
|
2712
2689
|
divider: c,
|
|
2713
|
-
isExtended:
|
|
2714
|
-
extended:
|
|
2690
|
+
isExtended: v,
|
|
2691
|
+
extended: v,
|
|
2715
2692
|
variant: e
|
|
2716
2693
|
});
|
|
2717
2694
|
$(() => {
|
|
2718
|
-
|
|
2719
|
-
}, [
|
|
2720
|
-
|
|
2721
|
-
}, [
|
|
2695
|
+
a == null || a(v ?? !1);
|
|
2696
|
+
}, [v]), $(() => {
|
|
2697
|
+
s != null && i(s);
|
|
2698
|
+
}, [s]);
|
|
2722
2699
|
const m = {
|
|
2723
2700
|
close: {
|
|
2724
2701
|
width: 0
|
|
@@ -2726,43 +2703,43 @@ const mn = ({
|
|
|
2726
2703
|
open: {
|
|
2727
2704
|
width: "auto"
|
|
2728
2705
|
}
|
|
2729
|
-
},
|
|
2730
|
-
/* @__PURE__ */ f(
|
|
2731
|
-
|
|
2706
|
+
}, y = () => /* @__PURE__ */ U(he, { children: [
|
|
2707
|
+
/* @__PURE__ */ f(ce, { children: e == "modal" && v && /* @__PURE__ */ f(
|
|
2708
|
+
q.div,
|
|
2732
2709
|
{
|
|
2733
2710
|
initial: { opacity: 0 },
|
|
2734
2711
|
animate: { opacity: 1 },
|
|
2735
2712
|
exit: { opacity: 0 },
|
|
2736
2713
|
transition: o,
|
|
2737
|
-
onClick: () =>
|
|
2714
|
+
onClick: () => i(!1),
|
|
2738
2715
|
className: u.overlay
|
|
2739
2716
|
}
|
|
2740
2717
|
) }),
|
|
2741
|
-
/* @__PURE__ */ f(
|
|
2718
|
+
/* @__PURE__ */ f(ce, { children: v && /* @__PURE__ */ U(
|
|
2742
2719
|
"div",
|
|
2743
2720
|
{
|
|
2744
2721
|
...h,
|
|
2745
2722
|
className: u.slideSheet,
|
|
2746
2723
|
style: { transition: o.duration + "s" },
|
|
2747
2724
|
children: [
|
|
2748
|
-
/* @__PURE__ */
|
|
2749
|
-
|
|
2725
|
+
/* @__PURE__ */ U(
|
|
2726
|
+
q.div,
|
|
2750
2727
|
{
|
|
2751
2728
|
variants: m,
|
|
2752
|
-
initial:
|
|
2729
|
+
initial: s === !1 ? "open" : "close",
|
|
2753
2730
|
animate: "open",
|
|
2754
2731
|
exit: "close",
|
|
2755
2732
|
className: u.container,
|
|
2756
2733
|
children: [
|
|
2757
|
-
/* @__PURE__ */
|
|
2734
|
+
/* @__PURE__ */ U("div", { className: u.header, children: [
|
|
2758
2735
|
l && /* @__PURE__ */ f("p", { className: u.title, children: l }),
|
|
2759
2736
|
/* @__PURE__ */ f(
|
|
2760
|
-
|
|
2737
|
+
Ie,
|
|
2761
2738
|
{
|
|
2762
2739
|
size: "small",
|
|
2763
2740
|
label: "close",
|
|
2764
2741
|
icon: d,
|
|
2765
|
-
onClick: () =>
|
|
2742
|
+
onClick: () => i(!1),
|
|
2766
2743
|
className: u.closeButton
|
|
2767
2744
|
}
|
|
2768
2745
|
)
|
|
@@ -2778,21 +2755,21 @@ const mn = ({
|
|
|
2778
2755
|
]
|
|
2779
2756
|
}
|
|
2780
2757
|
),
|
|
2781
|
-
(c == null && e == "standard" ? !0 : c) && /* @__PURE__ */ f(
|
|
2758
|
+
(c == null && e == "standard" ? !0 : c) && /* @__PURE__ */ f(At, { className: u.divider, orientation: "vertical" })
|
|
2782
2759
|
]
|
|
2783
2760
|
}
|
|
2784
2761
|
) })
|
|
2785
2762
|
] });
|
|
2786
|
-
return e == "modal" ?
|
|
2787
|
-
},
|
|
2763
|
+
return e == "modal" ? Ve(y(), document.body) : y();
|
|
2764
|
+
}, dn = ({
|
|
2788
2765
|
message: e,
|
|
2789
2766
|
className: t,
|
|
2790
2767
|
duration: n,
|
|
2791
|
-
closeIcon: l =
|
|
2768
|
+
closeIcon: l = Me,
|
|
2792
2769
|
onClose: r,
|
|
2793
|
-
...
|
|
2770
|
+
...s
|
|
2794
2771
|
}) => {
|
|
2795
|
-
const [c,
|
|
2772
|
+
const [c, a] = R(!0), d = ht({
|
|
2796
2773
|
className: t,
|
|
2797
2774
|
closeIcon: l,
|
|
2798
2775
|
duration: n,
|
|
@@ -2806,21 +2783,21 @@ const mn = ({
|
|
|
2806
2783
|
}, n);
|
|
2807
2784
|
}, [n]);
|
|
2808
2785
|
const o = () => {
|
|
2809
|
-
|
|
2786
|
+
a(!1), r == null || r();
|
|
2810
2787
|
};
|
|
2811
|
-
return /* @__PURE__ */ f(
|
|
2812
|
-
|
|
2788
|
+
return /* @__PURE__ */ f(ce, { children: c && /* @__PURE__ */ f(
|
|
2789
|
+
q.div,
|
|
2813
2790
|
{
|
|
2814
2791
|
initial: { height: 0 },
|
|
2815
2792
|
animate: { height: "auto" },
|
|
2816
2793
|
exit: { height: 0 },
|
|
2817
2794
|
transition: { duration: 0.1 },
|
|
2818
2795
|
className: d.snackbar,
|
|
2819
|
-
...
|
|
2820
|
-
children: /* @__PURE__ */
|
|
2796
|
+
...s,
|
|
2797
|
+
children: /* @__PURE__ */ U("div", { className: d.container, children: [
|
|
2821
2798
|
/* @__PURE__ */ f("p", { className: d.supportingText, children: e }),
|
|
2822
2799
|
/* @__PURE__ */ f(
|
|
2823
|
-
|
|
2800
|
+
Ie,
|
|
2824
2801
|
{
|
|
2825
2802
|
onClick: () => o(),
|
|
2826
2803
|
className: d.icon,
|
|
@@ -2831,48 +2808,48 @@ const mn = ({
|
|
|
2831
2808
|
] })
|
|
2832
2809
|
}
|
|
2833
2810
|
) });
|
|
2834
|
-
},
|
|
2811
|
+
}, fn = ({
|
|
2835
2812
|
selected: e = !1,
|
|
2836
2813
|
className: t,
|
|
2837
2814
|
activeIcon: n,
|
|
2838
2815
|
disabled: l = !1,
|
|
2839
2816
|
inactiveIcon: r,
|
|
2840
|
-
onChange:
|
|
2817
|
+
onChange: s,
|
|
2841
2818
|
onClick: c,
|
|
2842
|
-
onKeyDown:
|
|
2819
|
+
onKeyDown: a,
|
|
2843
2820
|
ref: d,
|
|
2844
2821
|
...o
|
|
2845
2822
|
}) => {
|
|
2846
|
-
const [h,
|
|
2823
|
+
const [h, v] = R(e), i = (g) => {
|
|
2847
2824
|
l || (m(), c && c(g));
|
|
2848
2825
|
}, u = (g) => {
|
|
2849
|
-
l || ((g.key === " " || g.key === "Enter") && (g.preventDefault(), m()),
|
|
2826
|
+
l || ((g.key === " " || g.key === "Enter") && (g.preventDefault(), m()), a && a(g));
|
|
2850
2827
|
}, m = () => {
|
|
2851
|
-
|
|
2852
|
-
},
|
|
2828
|
+
v(!h), s == null || s(!h);
|
|
2829
|
+
}, y = pt({
|
|
2853
2830
|
className: t,
|
|
2854
2831
|
isSelected: h,
|
|
2855
2832
|
activeIcon: n,
|
|
2856
2833
|
inactiveIcon: r,
|
|
2857
2834
|
disabled: l,
|
|
2858
2835
|
selected: h,
|
|
2859
|
-
onChange:
|
|
2860
|
-
}),
|
|
2861
|
-
return /* @__PURE__ */
|
|
2862
|
-
|
|
2836
|
+
onChange: s
|
|
2837
|
+
}), w = A(null), I = d || w;
|
|
2838
|
+
return /* @__PURE__ */ U(
|
|
2839
|
+
q.div,
|
|
2863
2840
|
{
|
|
2864
2841
|
role: "switch",
|
|
2865
2842
|
"aria-checked": h,
|
|
2866
2843
|
tabIndex: l ? -1 : 0,
|
|
2867
2844
|
onKeyDown: u,
|
|
2868
|
-
onClick:
|
|
2869
|
-
ref:
|
|
2870
|
-
className:
|
|
2845
|
+
onClick: i,
|
|
2846
|
+
ref: I,
|
|
2847
|
+
className: y.switch,
|
|
2871
2848
|
...o,
|
|
2872
2849
|
children: [
|
|
2873
2850
|
/* @__PURE__ */ f("input", { type: "hidden", value: h ? "1" : "0" }),
|
|
2874
|
-
/* @__PURE__ */
|
|
2875
|
-
|
|
2851
|
+
/* @__PURE__ */ U(
|
|
2852
|
+
q.div,
|
|
2876
2853
|
{
|
|
2877
2854
|
layout: !0,
|
|
2878
2855
|
style: { translate: h ? "50%" : "-50%" },
|
|
@@ -2881,91 +2858,91 @@ const mn = ({
|
|
|
2881
2858
|
stiffness: 700,
|
|
2882
2859
|
damping: 30
|
|
2883
2860
|
},
|
|
2884
|
-
className:
|
|
2861
|
+
className: y.handleContainer,
|
|
2885
2862
|
children: [
|
|
2886
|
-
/* @__PURE__ */ f("div", { className:
|
|
2887
|
-
|
|
2863
|
+
/* @__PURE__ */ f("div", { className: y.handle, children: (h ? n : r) && /* @__PURE__ */ f(
|
|
2864
|
+
se,
|
|
2888
2865
|
{
|
|
2889
|
-
className:
|
|
2866
|
+
className: y.icon,
|
|
2890
2867
|
icon: h ? n : r
|
|
2891
2868
|
}
|
|
2892
2869
|
) }),
|
|
2893
|
-
/* @__PURE__ */ f("div", { className:
|
|
2870
|
+
/* @__PURE__ */ f("div", { className: y.handleStateLayer })
|
|
2894
2871
|
]
|
|
2895
2872
|
}
|
|
2896
2873
|
)
|
|
2897
2874
|
]
|
|
2898
2875
|
}
|
|
2899
2876
|
);
|
|
2900
|
-
},
|
|
2877
|
+
}, Xt = ({
|
|
2901
2878
|
className: e,
|
|
2902
2879
|
onClick: t,
|
|
2903
2880
|
label: n,
|
|
2904
2881
|
variant: l = "primary",
|
|
2905
2882
|
href: r,
|
|
2906
|
-
icon:
|
|
2883
|
+
icon: s,
|
|
2907
2884
|
selectedTab: c,
|
|
2908
|
-
setSelectedTab:
|
|
2885
|
+
setSelectedTab: a,
|
|
2909
2886
|
tabsId: d,
|
|
2910
2887
|
index: o,
|
|
2911
2888
|
onTabSelected: h,
|
|
2912
|
-
scrollable:
|
|
2913
|
-
selected:
|
|
2889
|
+
scrollable: v = !1,
|
|
2890
|
+
selected: i = !1,
|
|
2914
2891
|
ref: u,
|
|
2915
2892
|
...m
|
|
2916
2893
|
}) => {
|
|
2917
|
-
const
|
|
2894
|
+
const y = A(null), w = u || y, [I, g] = R(i);
|
|
2918
2895
|
$(() => {
|
|
2919
|
-
|
|
2896
|
+
i && c == null ? g(!0) : g(c == o && o != null);
|
|
2920
2897
|
}, [c]), $(() => {
|
|
2921
2898
|
c == o && h && h({
|
|
2922
|
-
ref:
|
|
2899
|
+
ref: w,
|
|
2923
2900
|
index: o || 0,
|
|
2924
2901
|
label: n,
|
|
2925
|
-
icon:
|
|
2902
|
+
icon: s
|
|
2926
2903
|
});
|
|
2927
2904
|
}, [c]);
|
|
2928
|
-
const
|
|
2929
|
-
|
|
2930
|
-
}, P =
|
|
2905
|
+
const W = r ? "a" : "button", L = (N) => {
|
|
2906
|
+
a && a(o ?? null), t && t(N);
|
|
2907
|
+
}, P = yt({
|
|
2931
2908
|
className: e,
|
|
2932
2909
|
onTabSelected: h,
|
|
2933
|
-
scrollable:
|
|
2910
|
+
scrollable: v,
|
|
2934
2911
|
selectedTab: c,
|
|
2935
2912
|
index: o,
|
|
2936
2913
|
tabsId: d,
|
|
2937
|
-
selected:
|
|
2914
|
+
selected: I,
|
|
2938
2915
|
variant: l,
|
|
2939
|
-
icon:
|
|
2916
|
+
icon: s,
|
|
2940
2917
|
label: n,
|
|
2941
|
-
isSelected:
|
|
2942
|
-
setSelectedTab:
|
|
2918
|
+
isSelected: I,
|
|
2919
|
+
setSelectedTab: a,
|
|
2943
2920
|
href: r
|
|
2944
2921
|
});
|
|
2945
|
-
return /* @__PURE__ */
|
|
2946
|
-
|
|
2922
|
+
return /* @__PURE__ */ U(
|
|
2923
|
+
W,
|
|
2947
2924
|
{
|
|
2948
2925
|
...m,
|
|
2949
2926
|
role: "tab",
|
|
2950
|
-
"aria-selected":
|
|
2951
|
-
ref:
|
|
2927
|
+
"aria-selected": I,
|
|
2928
|
+
ref: w,
|
|
2952
2929
|
href: r,
|
|
2953
2930
|
className: P.tab,
|
|
2954
|
-
onClick:
|
|
2931
|
+
onClick: L,
|
|
2955
2932
|
...m,
|
|
2956
2933
|
children: [
|
|
2957
2934
|
/* @__PURE__ */ f("span", { className: P.stateLayer, children: /* @__PURE__ */ f(
|
|
2958
2935
|
we,
|
|
2959
2936
|
{
|
|
2960
|
-
colorName: l === "primary" &&
|
|
2961
|
-
triggerRef:
|
|
2937
|
+
colorName: l === "primary" && I ? "primary" : "on-surface",
|
|
2938
|
+
triggerRef: w
|
|
2962
2939
|
}
|
|
2963
2940
|
) }),
|
|
2964
|
-
/* @__PURE__ */
|
|
2965
|
-
|
|
2941
|
+
/* @__PURE__ */ U("span", { className: P.content, children: [
|
|
2942
|
+
s && /* @__PURE__ */ f(se, { icon: s, className: P.icon }),
|
|
2966
2943
|
/* @__PURE__ */ f("span", { className: P.label, children: n }),
|
|
2967
|
-
|
|
2968
|
-
|
|
2944
|
+
I && /* @__PURE__ */ f(
|
|
2945
|
+
q.span,
|
|
2969
2946
|
{
|
|
2970
2947
|
layoutId: `underline-${d}`,
|
|
2971
2948
|
className: P.underline,
|
|
@@ -2976,31 +2953,31 @@ const mn = ({
|
|
|
2976
2953
|
]
|
|
2977
2954
|
}
|
|
2978
2955
|
);
|
|
2979
|
-
},
|
|
2956
|
+
}, mn = ({
|
|
2980
2957
|
variant: e = "primary",
|
|
2981
2958
|
onTabSelected: t,
|
|
2982
2959
|
children: n,
|
|
2983
2960
|
className: l,
|
|
2984
2961
|
selectedTab: r,
|
|
2985
|
-
setSelectedTab:
|
|
2962
|
+
setSelectedTab: s,
|
|
2986
2963
|
scrollable: c = !1
|
|
2987
2964
|
}) => {
|
|
2988
|
-
const [
|
|
2965
|
+
const [a, d] = R(
|
|
2989
2966
|
null
|
|
2990
2967
|
);
|
|
2991
2968
|
let o;
|
|
2992
|
-
r == 0 || r != null ? o = r : o =
|
|
2993
|
-
const h =
|
|
2994
|
-
(
|
|
2995
|
-
),
|
|
2996
|
-
if (t == null || t(
|
|
2997
|
-
const
|
|
2998
|
-
if (
|
|
2999
|
-
const
|
|
3000
|
-
|
|
2969
|
+
r == 0 || r != null ? o = r : o = a;
|
|
2970
|
+
const h = s || d, v = T.Children.toArray(n).filter(
|
|
2971
|
+
(w) => T.isValidElement(w) && w.type === Xt
|
|
2972
|
+
), i = T.useRef(null), u = (w) => {
|
|
2973
|
+
if (t == null || t(w), c) {
|
|
2974
|
+
const I = i.current, g = w.ref.current;
|
|
2975
|
+
if (I && g) {
|
|
2976
|
+
const W = g.offsetLeft + g.offsetWidth / 2 - I.offsetWidth / 2;
|
|
2977
|
+
I.scrollTo({ left: W, behavior: "smooth" });
|
|
3001
2978
|
}
|
|
3002
2979
|
}
|
|
3003
|
-
}, m =
|
|
2980
|
+
}, m = je(() => ke(), []), y = wt({
|
|
3004
2981
|
children: n,
|
|
3005
2982
|
onTabSelected: t,
|
|
3006
2983
|
scrollable: c,
|
|
@@ -3009,9 +2986,9 @@ const mn = ({
|
|
|
3009
2986
|
className: l,
|
|
3010
2987
|
variant: e
|
|
3011
2988
|
});
|
|
3012
|
-
return /* @__PURE__ */ f("div", { ref:
|
|
3013
|
-
key:
|
|
3014
|
-
index:
|
|
2989
|
+
return /* @__PURE__ */ f("div", { ref: i, role: "tablist", className: y.tabs, children: v.map((w, I) => T.cloneElement(w, {
|
|
2990
|
+
key: I,
|
|
2991
|
+
index: I,
|
|
3015
2992
|
variant: e,
|
|
3016
2993
|
selectedTab: o,
|
|
3017
2994
|
setSelectedTab: h,
|
|
@@ -3019,126 +2996,126 @@ const mn = ({
|
|
|
3019
2996
|
onTabSelected: u,
|
|
3020
2997
|
scrollable: c
|
|
3021
2998
|
})) });
|
|
3022
|
-
},
|
|
2999
|
+
}, hn = ({
|
|
3023
3000
|
variant: e = "filled",
|
|
3024
3001
|
disabled: t = !1,
|
|
3025
3002
|
errorText: n,
|
|
3026
3003
|
placeholder: l,
|
|
3027
3004
|
suffix: r,
|
|
3028
|
-
name:
|
|
3005
|
+
name: s,
|
|
3029
3006
|
label: c,
|
|
3030
|
-
className:
|
|
3007
|
+
className: a,
|
|
3031
3008
|
supportingText: d,
|
|
3032
3009
|
trailingIcon: o,
|
|
3033
3010
|
leadingIcon: h,
|
|
3034
|
-
type:
|
|
3035
|
-
textLine:
|
|
3011
|
+
type: v = "text",
|
|
3012
|
+
textLine: i = "singleLine",
|
|
3036
3013
|
autoComplete: u = "on",
|
|
3037
3014
|
onChange: m,
|
|
3038
|
-
value:
|
|
3039
|
-
showSupportingText:
|
|
3040
|
-
...
|
|
3015
|
+
value: y,
|
|
3016
|
+
showSupportingText: w = !1,
|
|
3017
|
+
...I
|
|
3041
3018
|
}) => {
|
|
3042
|
-
const [g,
|
|
3043
|
-
|
|
3019
|
+
const [g, W] = R(y ?? ""), [L, P] = R(!1), [N, F] = R(!1), [V, C] = R(
|
|
3020
|
+
w
|
|
3044
3021
|
);
|
|
3045
3022
|
$(() => {
|
|
3046
|
-
|
|
3047
|
-
}, [
|
|
3048
|
-
n != null && n.length ?
|
|
3023
|
+
W(y ?? "");
|
|
3024
|
+
}, [y]), $(() => {
|
|
3025
|
+
n != null && n.length ? F(!0) : F(!1);
|
|
3049
3026
|
}, [n]), $(() => {
|
|
3050
|
-
|
|
3051
|
-
}, [
|
|
3052
|
-
|
|
3053
|
-
}, [
|
|
3054
|
-
const
|
|
3055
|
-
|
|
3056
|
-
},
|
|
3027
|
+
w ? C(w) : d != null && d.length ? C(!0) : C(!1);
|
|
3028
|
+
}, [V, d]), $(() => {
|
|
3029
|
+
L && F(!1);
|
|
3030
|
+
}, [L]);
|
|
3031
|
+
const x = T.useRef(null), M = () => {
|
|
3032
|
+
x.current && !L && x.current.focus();
|
|
3033
|
+
}, X = () => {
|
|
3057
3034
|
P(!0);
|
|
3058
|
-
}, J = (
|
|
3059
|
-
const
|
|
3060
|
-
|
|
3061
|
-
},
|
|
3035
|
+
}, J = (O) => {
|
|
3036
|
+
const K = O.target.value;
|
|
3037
|
+
W(K), F(!1), typeof m == "function" && m(K);
|
|
3038
|
+
}, ee = () => {
|
|
3062
3039
|
P(!1);
|
|
3063
|
-
}, _ =
|
|
3064
|
-
showSupportingText:
|
|
3065
|
-
isFocused:
|
|
3066
|
-
showErrorIcon:
|
|
3040
|
+
}, _ = vt({
|
|
3041
|
+
showSupportingText: V,
|
|
3042
|
+
isFocused: L,
|
|
3043
|
+
showErrorIcon: N,
|
|
3067
3044
|
disabled: t,
|
|
3068
|
-
name:
|
|
3045
|
+
name: s,
|
|
3069
3046
|
label: c,
|
|
3070
3047
|
autoComplete: u,
|
|
3071
|
-
className:
|
|
3048
|
+
className: a,
|
|
3072
3049
|
onChange: m,
|
|
3073
3050
|
placeholder: l,
|
|
3074
3051
|
supportingText: d,
|
|
3075
|
-
type:
|
|
3052
|
+
type: v,
|
|
3076
3053
|
leadingIcon: h,
|
|
3077
3054
|
trailingIcon: o,
|
|
3078
3055
|
variant: e,
|
|
3079
3056
|
errorText: n,
|
|
3080
3057
|
value: g,
|
|
3081
3058
|
suffix: r,
|
|
3082
|
-
textLine:
|
|
3083
|
-
}), [
|
|
3059
|
+
textLine: i
|
|
3060
|
+
}), [te] = R(ke());
|
|
3084
3061
|
let S, E;
|
|
3085
|
-
switch (
|
|
3062
|
+
switch (i) {
|
|
3086
3063
|
case "multiLine":
|
|
3087
|
-
E =
|
|
3064
|
+
E = et, S = {};
|
|
3088
3065
|
break;
|
|
3089
3066
|
case "textAreas":
|
|
3090
3067
|
E = "textarea", S = {};
|
|
3091
3068
|
break;
|
|
3092
3069
|
case "singleLine":
|
|
3093
3070
|
default:
|
|
3094
|
-
E = "input", S = { type:
|
|
3071
|
+
E = "input", S = { type: v };
|
|
3095
3072
|
break;
|
|
3096
3073
|
}
|
|
3097
|
-
return /* @__PURE__ */
|
|
3098
|
-
/* @__PURE__ */
|
|
3074
|
+
return /* @__PURE__ */ U("div", { className: _.textField, ...I, children: [
|
|
3075
|
+
/* @__PURE__ */ U("fieldset", { onClick: M, className: _.content, children: [
|
|
3099
3076
|
/* @__PURE__ */ f("div", { className: _.stateLayer }),
|
|
3100
|
-
h && /* @__PURE__ */ f("div", { className: _.leadingIcon, children:
|
|
3101
|
-
!(!
|
|
3102
|
-
|
|
3077
|
+
h && /* @__PURE__ */ f("div", { className: _.leadingIcon, children: T.isValidElement(h) ? h : /* @__PURE__ */ f(se, { className: "w-5 h-5", icon: h }) }),
|
|
3078
|
+
!(!L && !g.length || e == "filled") && /* @__PURE__ */ f(
|
|
3079
|
+
q.legend,
|
|
3103
3080
|
{
|
|
3104
3081
|
variants: {
|
|
3105
3082
|
hidden: { width: 0, padding: 0 },
|
|
3106
3083
|
visible: { width: "auto", padding: "0 8px" }
|
|
3107
3084
|
},
|
|
3108
3085
|
initial: "hidden",
|
|
3109
|
-
animate: !
|
|
3086
|
+
animate: !L && !g.length ? "hidden" : "visible",
|
|
3110
3087
|
className: "max-w-full ml-2 px-2 text-body-small h-0",
|
|
3111
3088
|
transition: { duration: 0.2 },
|
|
3112
3089
|
children: /* @__PURE__ */ f("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ f(
|
|
3113
|
-
|
|
3090
|
+
q.span,
|
|
3114
3091
|
{
|
|
3115
3092
|
className: _.label,
|
|
3116
3093
|
transition: { duration: 0.3 },
|
|
3117
|
-
layoutId:
|
|
3094
|
+
layoutId: te,
|
|
3118
3095
|
children: c
|
|
3119
3096
|
}
|
|
3120
3097
|
) })
|
|
3121
3098
|
}
|
|
3122
3099
|
),
|
|
3123
|
-
/* @__PURE__ */
|
|
3124
|
-
(!
|
|
3125
|
-
|
|
3100
|
+
/* @__PURE__ */ U("div", { className: "flex-1 relative", children: [
|
|
3101
|
+
(!L && !g.length || e == "filled") && /* @__PURE__ */ f(
|
|
3102
|
+
q.label,
|
|
3126
3103
|
{
|
|
3127
|
-
htmlFor:
|
|
3104
|
+
htmlFor: s,
|
|
3128
3105
|
className: p(
|
|
3129
3106
|
"absolute left-4 transition-all duration-300",
|
|
3130
3107
|
{
|
|
3131
|
-
"text-body-small top-2": e == "filled" && !(!
|
|
3132
|
-
"text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!
|
|
3108
|
+
"text-body-small top-2": e == "filled" && !(!L && !g.length),
|
|
3109
|
+
"text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!L && !g.length))
|
|
3133
3110
|
}
|
|
3134
3111
|
),
|
|
3135
3112
|
transition: { duration: 0.3 },
|
|
3136
3113
|
children: /* @__PURE__ */ f(
|
|
3137
|
-
|
|
3114
|
+
q.span,
|
|
3138
3115
|
{
|
|
3139
3116
|
className: _.label,
|
|
3140
3117
|
transition: { duration: 0.3 },
|
|
3141
|
-
layoutId: e == "outlined" ?
|
|
3118
|
+
layoutId: e == "outlined" ? te : void 0,
|
|
3142
3119
|
children: c
|
|
3143
3120
|
}
|
|
3144
3121
|
)
|
|
@@ -3147,15 +3124,15 @@ const mn = ({
|
|
|
3147
3124
|
/* @__PURE__ */ f(
|
|
3148
3125
|
E,
|
|
3149
3126
|
{
|
|
3150
|
-
ref:
|
|
3127
|
+
ref: x,
|
|
3151
3128
|
value: g,
|
|
3152
3129
|
onChange: J,
|
|
3153
3130
|
className: _.input,
|
|
3154
|
-
id:
|
|
3155
|
-
name:
|
|
3156
|
-
placeholder:
|
|
3157
|
-
onFocus:
|
|
3158
|
-
onBlur:
|
|
3131
|
+
id: s,
|
|
3132
|
+
name: s,
|
|
3133
|
+
placeholder: L ? l ?? void 0 : "",
|
|
3134
|
+
onFocus: X,
|
|
3135
|
+
onBlur: ee,
|
|
3159
3136
|
disabled: t,
|
|
3160
3137
|
autoComplete: u,
|
|
3161
3138
|
"aria-invalid": !!(n != null && n.length),
|
|
@@ -3165,38 +3142,38 @@ const mn = ({
|
|
|
3165
3142
|
)
|
|
3166
3143
|
] }),
|
|
3167
3144
|
/* @__PURE__ */ f("div", { className: _.activeIndicator }),
|
|
3168
|
-
!
|
|
3145
|
+
!N && /* @__PURE__ */ U(he, { children: [
|
|
3169
3146
|
o && /* @__PURE__ */ f(
|
|
3170
3147
|
"div",
|
|
3171
3148
|
{
|
|
3172
|
-
onClick: (
|
|
3173
|
-
|
|
3149
|
+
onClick: (O) => {
|
|
3150
|
+
O.stopPropagation();
|
|
3174
3151
|
},
|
|
3175
3152
|
className: _.trailingIcon,
|
|
3176
|
-
children:
|
|
3153
|
+
children: T.isValidElement(o) ? o : /* @__PURE__ */ f(se, { className: "h-5", icon: o })
|
|
3177
3154
|
}
|
|
3178
3155
|
),
|
|
3179
3156
|
!o && r && /* @__PURE__ */ f("span", { className: _.suffix, children: r })
|
|
3180
3157
|
] }),
|
|
3181
|
-
|
|
3158
|
+
N && /* @__PURE__ */ f(
|
|
3182
3159
|
"div",
|
|
3183
3160
|
{
|
|
3184
3161
|
className: p(_.trailingIcon, {
|
|
3185
3162
|
" absolute right-0": !o
|
|
3186
3163
|
}),
|
|
3187
3164
|
children: /* @__PURE__ */ f(
|
|
3188
|
-
|
|
3165
|
+
se,
|
|
3189
3166
|
{
|
|
3190
3167
|
className: "h-5 text-error",
|
|
3191
|
-
icon:
|
|
3168
|
+
icon: Ot
|
|
3192
3169
|
}
|
|
3193
3170
|
)
|
|
3194
3171
|
}
|
|
3195
3172
|
)
|
|
3196
3173
|
] }),
|
|
3197
|
-
|
|
3174
|
+
V && /* @__PURE__ */ f("p", { className: _.supportingText, children: n != null && n.length ? n : d != null && d.length ? d : " " })
|
|
3198
3175
|
] });
|
|
3199
|
-
},
|
|
3176
|
+
}, Yt = G(
|
|
3200
3177
|
"navigationRailItem",
|
|
3201
3178
|
({ isSelected: e, icon: t, label: n, variant: l }) => ({
|
|
3202
3179
|
navigationRailItem: p(
|
|
@@ -3237,115 +3214,115 @@ const mn = ({
|
|
|
3237
3214
|
"text-label-medium": l == "vertical"
|
|
3238
3215
|
})
|
|
3239
3216
|
})
|
|
3240
|
-
),
|
|
3217
|
+
), Ut = ({ label: e }) => /* @__PURE__ */ f("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ f("p", { className: "text-label-large text-on-surface-variant", children: e }) }), jt = ({
|
|
3241
3218
|
className: e,
|
|
3242
3219
|
onClick: t,
|
|
3243
3220
|
label: n,
|
|
3244
3221
|
variant: l = "vertical",
|
|
3245
3222
|
href: r,
|
|
3246
|
-
icon:
|
|
3223
|
+
icon: s,
|
|
3247
3224
|
selectedItem: c,
|
|
3248
|
-
setSelectedItem:
|
|
3225
|
+
setSelectedItem: a,
|
|
3249
3226
|
index: d,
|
|
3250
3227
|
onItemSelected: o,
|
|
3251
3228
|
selected: h = !1,
|
|
3252
|
-
ref:
|
|
3253
|
-
transition:
|
|
3229
|
+
ref: v,
|
|
3230
|
+
transition: i,
|
|
3254
3231
|
isExtended: u,
|
|
3255
3232
|
iconSelected: m,
|
|
3256
|
-
style:
|
|
3257
|
-
extendedOnly:
|
|
3258
|
-
children:
|
|
3233
|
+
style: y,
|
|
3234
|
+
extendedOnly: w,
|
|
3235
|
+
children: I,
|
|
3259
3236
|
...g
|
|
3260
3237
|
}) => {
|
|
3261
|
-
|
|
3262
|
-
const
|
|
3238
|
+
I && (n = I);
|
|
3239
|
+
const W = A(null), L = v || W, [P, N] = R(h);
|
|
3263
3240
|
$(() => {
|
|
3264
|
-
h && c == null ?
|
|
3241
|
+
h && c == null ? N(!0) : N(c == d && d != null);
|
|
3265
3242
|
}, [c]), $(() => {
|
|
3266
3243
|
c == d && o && o({
|
|
3267
|
-
ref:
|
|
3244
|
+
ref: L,
|
|
3268
3245
|
index: d || 0,
|
|
3269
3246
|
label: n,
|
|
3270
|
-
icon:
|
|
3247
|
+
icon: s
|
|
3271
3248
|
});
|
|
3272
3249
|
}, [c]);
|
|
3273
|
-
const
|
|
3274
|
-
|
|
3275
|
-
}, C =
|
|
3250
|
+
const F = r ? "a" : "button", V = (x) => {
|
|
3251
|
+
a && a(d ?? null), t && t(x);
|
|
3252
|
+
}, C = Yt({
|
|
3276
3253
|
isExtended: u,
|
|
3277
|
-
extendedOnly:
|
|
3254
|
+
extendedOnly: w,
|
|
3278
3255
|
className: e,
|
|
3279
3256
|
onItemSelected: o,
|
|
3280
3257
|
selectedItem: c,
|
|
3281
3258
|
index: d,
|
|
3282
|
-
transition:
|
|
3259
|
+
transition: i,
|
|
3283
3260
|
selected: P,
|
|
3284
3261
|
variant: l,
|
|
3285
|
-
icon:
|
|
3262
|
+
icon: s,
|
|
3286
3263
|
label: n,
|
|
3287
3264
|
isSelected: P,
|
|
3288
|
-
setSelectedItem:
|
|
3265
|
+
setSelectedItem: a,
|
|
3289
3266
|
href: r,
|
|
3290
3267
|
children: n,
|
|
3291
3268
|
iconSelected: m
|
|
3292
3269
|
});
|
|
3293
|
-
return
|
|
3270
|
+
return i = { duration: 0.3, ...i }, w && !u ? null : (
|
|
3294
3271
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3295
3272
|
// @ts-expect-error
|
|
3296
|
-
/* @__PURE__ */
|
|
3297
|
-
|
|
3273
|
+
/* @__PURE__ */ U(
|
|
3274
|
+
F,
|
|
3298
3275
|
{
|
|
3299
3276
|
...g,
|
|
3300
3277
|
role: "tab",
|
|
3301
3278
|
"aria-selected": P,
|
|
3302
|
-
ref:
|
|
3279
|
+
ref: L,
|
|
3303
3280
|
href: r,
|
|
3304
3281
|
className: C.navigationRailItem,
|
|
3305
|
-
onClick:
|
|
3306
|
-
style: { transition:
|
|
3282
|
+
onClick: V,
|
|
3283
|
+
style: { transition: i.duration + "s", ...y },
|
|
3307
3284
|
children: [
|
|
3308
|
-
/* @__PURE__ */
|
|
3309
|
-
|
|
3285
|
+
/* @__PURE__ */ U(
|
|
3286
|
+
q.div,
|
|
3310
3287
|
{
|
|
3311
3288
|
style: {
|
|
3312
|
-
transition: l == "horizontal" ?
|
|
3289
|
+
transition: l == "horizontal" ? i.duration + `s, gap ${i.duration / 2}s ${i.duration - i.duration / 2}s` : i.duration + `s, gap ${i.duration / 3}s ${i.duration - i.duration / 3}s`
|
|
3313
3290
|
},
|
|
3314
|
-
transition:
|
|
3291
|
+
transition: i,
|
|
3315
3292
|
className: C.container,
|
|
3316
3293
|
children: [
|
|
3317
|
-
/* @__PURE__ */ f(
|
|
3318
|
-
|
|
3319
|
-
|
|
3294
|
+
/* @__PURE__ */ f(q.div, { layout: !0, className: C.stateLayer }),
|
|
3295
|
+
s && /* @__PURE__ */ f(
|
|
3296
|
+
se,
|
|
3320
3297
|
{
|
|
3321
|
-
icon: P ? m :
|
|
3298
|
+
icon: P ? m : s,
|
|
3322
3299
|
className: C.icon
|
|
3323
3300
|
}
|
|
3324
3301
|
),
|
|
3325
|
-
/* @__PURE__ */ f(
|
|
3326
|
-
const
|
|
3302
|
+
/* @__PURE__ */ f(ce, { children: l == "horizontal" && (() => {
|
|
3303
|
+
const x = {
|
|
3327
3304
|
width: 0,
|
|
3328
3305
|
opacity: 0,
|
|
3329
3306
|
transition: {
|
|
3330
|
-
...
|
|
3307
|
+
...i
|
|
3331
3308
|
}
|
|
3332
|
-
},
|
|
3309
|
+
}, M = {
|
|
3333
3310
|
width: "auto",
|
|
3334
3311
|
opacity: 1,
|
|
3335
3312
|
transition: {
|
|
3336
|
-
...
|
|
3313
|
+
...i,
|
|
3337
3314
|
opacity: {
|
|
3338
|
-
duration:
|
|
3339
|
-
delay:
|
|
3315
|
+
duration: i.duration / 2,
|
|
3316
|
+
delay: i.duration - i.duration / 2
|
|
3340
3317
|
}
|
|
3341
3318
|
}
|
|
3342
3319
|
};
|
|
3343
3320
|
return /* @__PURE__ */ f(
|
|
3344
|
-
|
|
3321
|
+
q.span,
|
|
3345
3322
|
{
|
|
3346
|
-
initial:
|
|
3347
|
-
animate:
|
|
3348
|
-
exit:
|
|
3323
|
+
initial: x,
|
|
3324
|
+
animate: M,
|
|
3325
|
+
exit: x,
|
|
3349
3326
|
className: C.label,
|
|
3350
3327
|
children: n
|
|
3351
3328
|
}
|
|
@@ -3354,35 +3331,35 @@ const mn = ({
|
|
|
3354
3331
|
]
|
|
3355
3332
|
}
|
|
3356
3333
|
),
|
|
3357
|
-
/* @__PURE__ */ f(
|
|
3358
|
-
const
|
|
3334
|
+
/* @__PURE__ */ f(ce, { children: l == "vertical" && (() => {
|
|
3335
|
+
const x = {
|
|
3359
3336
|
height: 0,
|
|
3360
3337
|
opacity: 0,
|
|
3361
3338
|
transition: {
|
|
3362
|
-
...
|
|
3339
|
+
...i,
|
|
3363
3340
|
opacity: {
|
|
3364
3341
|
duration: 0
|
|
3365
3342
|
}
|
|
3366
3343
|
}
|
|
3367
|
-
},
|
|
3344
|
+
}, M = {
|
|
3368
3345
|
height: "auto",
|
|
3369
3346
|
opacity: 1,
|
|
3370
3347
|
transition: {
|
|
3371
|
-
...
|
|
3348
|
+
...i,
|
|
3372
3349
|
opacity: {
|
|
3373
|
-
duration:
|
|
3374
|
-
delay:
|
|
3350
|
+
duration: i.duration / 3,
|
|
3351
|
+
delay: i.duration - i.duration / 3
|
|
3375
3352
|
}
|
|
3376
3353
|
}
|
|
3377
3354
|
};
|
|
3378
3355
|
return /* @__PURE__ */ f(
|
|
3379
|
-
|
|
3356
|
+
q.span,
|
|
3380
3357
|
{
|
|
3381
|
-
initial:
|
|
3382
|
-
animate:
|
|
3383
|
-
exit:
|
|
3358
|
+
initial: M,
|
|
3359
|
+
animate: M,
|
|
3360
|
+
exit: x,
|
|
3384
3361
|
className: C.label,
|
|
3385
|
-
transition:
|
|
3362
|
+
transition: i,
|
|
3386
3363
|
children: n
|
|
3387
3364
|
}
|
|
3388
3365
|
);
|
|
@@ -3391,7 +3368,7 @@ const mn = ({
|
|
|
3391
3368
|
}
|
|
3392
3369
|
)
|
|
3393
3370
|
);
|
|
3394
|
-
},
|
|
3371
|
+
}, qt = G(
|
|
3395
3372
|
"navigationRail",
|
|
3396
3373
|
({ isExtended: e, alignment: t }) => ({
|
|
3397
3374
|
navigationRail: p("flex flex-col left-0 h-full top-0 pt-11", {
|
|
@@ -3407,164 +3384,164 @@ const mn = ({
|
|
|
3407
3384
|
"w-fit items-start": e
|
|
3408
3385
|
})
|
|
3409
3386
|
})
|
|
3410
|
-
),
|
|
3387
|
+
), pn = ({
|
|
3411
3388
|
variant: e = "standard",
|
|
3412
3389
|
onItemSelected: t,
|
|
3413
3390
|
children: n,
|
|
3414
3391
|
className: l,
|
|
3415
3392
|
selectedItem: r,
|
|
3416
|
-
extended:
|
|
3393
|
+
extended: s,
|
|
3417
3394
|
alignment: c = "top",
|
|
3418
|
-
menu:
|
|
3395
|
+
menu: a = {
|
|
3419
3396
|
closed: {
|
|
3420
|
-
icon:
|
|
3397
|
+
icon: Ft,
|
|
3421
3398
|
label: "Open menu"
|
|
3422
3399
|
},
|
|
3423
3400
|
opened: {
|
|
3424
|
-
icon:
|
|
3401
|
+
icon: Me,
|
|
3425
3402
|
label: "Close menu"
|
|
3426
3403
|
}
|
|
3427
3404
|
},
|
|
3428
3405
|
style: d,
|
|
3429
3406
|
onExtendedChange: o,
|
|
3430
3407
|
transition: h,
|
|
3431
|
-
setSelectedItem:
|
|
3408
|
+
setSelectedItem: v
|
|
3432
3409
|
}) => {
|
|
3433
|
-
const [
|
|
3434
|
-
let
|
|
3435
|
-
r == 0 || r != null ?
|
|
3436
|
-
const
|
|
3410
|
+
const [i, u] = R(null), [m, y] = R(s);
|
|
3411
|
+
let w;
|
|
3412
|
+
r == 0 || r != null ? w = r : w = i;
|
|
3413
|
+
const I = v || u, g = A(null), W = (C) => {
|
|
3437
3414
|
t == null || t(C);
|
|
3438
3415
|
};
|
|
3439
|
-
function
|
|
3440
|
-
const
|
|
3441
|
-
return
|
|
3442
|
-
|
|
3443
|
-
}),
|
|
3416
|
+
function L(C) {
|
|
3417
|
+
const x = [];
|
|
3418
|
+
return qe.forEach(C, (M) => {
|
|
3419
|
+
me(M) && M.type === Ke ? x.push(...L(M.props.children)) : x.push(M);
|
|
3420
|
+
}), x;
|
|
3444
3421
|
}
|
|
3445
|
-
const P =
|
|
3446
|
-
(C) =>
|
|
3447
|
-
),
|
|
3422
|
+
const P = L(n), N = P.filter(
|
|
3423
|
+
(C) => me(C) && C.type === Be
|
|
3424
|
+
), F = qt({
|
|
3448
3425
|
children: n,
|
|
3449
3426
|
onItemSelected: t,
|
|
3450
|
-
selectedItem:
|
|
3451
|
-
setSelectedItem:
|
|
3427
|
+
selectedItem: w,
|
|
3428
|
+
setSelectedItem: I,
|
|
3452
3429
|
className: l,
|
|
3453
3430
|
variant: e,
|
|
3454
3431
|
extended: m,
|
|
3455
3432
|
isExtended: m,
|
|
3456
3433
|
alignment: c,
|
|
3457
|
-
menu:
|
|
3434
|
+
menu: a,
|
|
3458
3435
|
transition: h,
|
|
3459
3436
|
onExtendedChange: o
|
|
3460
3437
|
});
|
|
3461
3438
|
h = { duration: 0.3, ...h };
|
|
3462
|
-
const
|
|
3463
|
-
return
|
|
3439
|
+
const V = A(!1);
|
|
3440
|
+
return V.current = !1, $(() => {
|
|
3464
3441
|
o == null || o(m ?? !1);
|
|
3465
|
-
}, [m]), /* @__PURE__ */
|
|
3442
|
+
}, [m]), /* @__PURE__ */ U(
|
|
3466
3443
|
"div",
|
|
3467
3444
|
{
|
|
3468
3445
|
style: { transition: h.duration + "s", ...d },
|
|
3469
3446
|
ref: g,
|
|
3470
|
-
className:
|
|
3447
|
+
className: F.navigationRail,
|
|
3471
3448
|
children: [
|
|
3472
|
-
/* @__PURE__ */
|
|
3449
|
+
/* @__PURE__ */ U("div", { className: F.header, children: [
|
|
3473
3450
|
/* @__PURE__ */ f(
|
|
3474
|
-
|
|
3451
|
+
Ie,
|
|
3475
3452
|
{
|
|
3476
|
-
onClick: () =>
|
|
3477
|
-
label: m ?
|
|
3478
|
-
className:
|
|
3479
|
-
icon: m ?
|
|
3453
|
+
onClick: () => y(!m),
|
|
3454
|
+
label: m ? a == null ? void 0 : a.opened.label : a == null ? void 0 : a.closed.label,
|
|
3455
|
+
className: F.menuIcon,
|
|
3456
|
+
icon: m ? a.opened.icon : a == null ? void 0 : a.closed.icon
|
|
3480
3457
|
}
|
|
3481
3458
|
),
|
|
3482
|
-
|
|
3459
|
+
N.length > 0 && ve(N[0], {
|
|
3483
3460
|
transition: h,
|
|
3484
3461
|
isExtended: m,
|
|
3485
|
-
className: "!shadow-none mx-5 " +
|
|
3462
|
+
className: "!shadow-none mx-5 " + N[0].props.className
|
|
3486
3463
|
})
|
|
3487
3464
|
] }),
|
|
3488
|
-
/* @__PURE__ */ f("div", { className:
|
|
3465
|
+
/* @__PURE__ */ f("div", { className: F.segments, children: (() => {
|
|
3489
3466
|
let C = 0;
|
|
3490
|
-
return P.map((
|
|
3491
|
-
|
|
3467
|
+
return P.map((x) => me(x) && x.type === jt ? ve(
|
|
3468
|
+
x,
|
|
3492
3469
|
{
|
|
3493
3470
|
key: C,
|
|
3494
3471
|
index: C++,
|
|
3495
3472
|
// Utilise et incrémente le compteur dédié
|
|
3496
3473
|
variant: m ? "horizontal" : "vertical",
|
|
3497
|
-
selectedItem:
|
|
3498
|
-
setSelectedItem:
|
|
3499
|
-
onItemSelected:
|
|
3474
|
+
selectedItem: w,
|
|
3475
|
+
setSelectedItem: I,
|
|
3476
|
+
onItemSelected: W,
|
|
3500
3477
|
transition: h,
|
|
3501
|
-
extendedOnly:
|
|
3478
|
+
extendedOnly: V.current,
|
|
3502
3479
|
isExtended: m
|
|
3503
3480
|
}
|
|
3504
|
-
) :
|
|
3481
|
+
) : me(x) && x.type === Be ? null : me(x) && x.type === Ut ? (V.current = !0, m ? ve(x, {}) : null) : x);
|
|
3505
3482
|
})() }),
|
|
3506
3483
|
/* @__PURE__ */ f("div", { className: "flex-1 max-h-[160px]" })
|
|
3507
3484
|
]
|
|
3508
3485
|
}
|
|
3509
3486
|
);
|
|
3510
3487
|
};
|
|
3511
|
-
function
|
|
3512
|
-
return
|
|
3513
|
-
variant:
|
|
3488
|
+
function yn(e) {
|
|
3489
|
+
return Qe({
|
|
3490
|
+
variant: Te.Udixio,
|
|
3514
3491
|
...e,
|
|
3515
|
-
plugins: [new
|
|
3492
|
+
plugins: [new ze(e), new Oe(e)]
|
|
3516
3493
|
});
|
|
3517
3494
|
}
|
|
3518
3495
|
export {
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3496
|
+
on as AnimateOnScrollInit,
|
|
3497
|
+
Wt as Button,
|
|
3498
|
+
an as Card,
|
|
3499
|
+
sn as Carousel,
|
|
3500
|
+
Dt as CarouselItem,
|
|
3501
|
+
Nt as CustomScroll,
|
|
3502
|
+
At as Divider,
|
|
3503
|
+
Be as Fab,
|
|
3504
|
+
se as Icon,
|
|
3505
|
+
Ie as IconButton,
|
|
3506
|
+
pn as NavigationRail,
|
|
3507
|
+
jt as NavigationRailItem,
|
|
3508
|
+
Ut as NavigationRailSection,
|
|
3509
|
+
gt as ProgressIndicator,
|
|
3533
3510
|
we as RippleEffect,
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3511
|
+
un as SideSheet,
|
|
3512
|
+
cn as Slider,
|
|
3513
|
+
nn as SmoothScroll,
|
|
3514
|
+
dn as Snackbar,
|
|
3515
|
+
fn as Switch,
|
|
3516
|
+
kt as SyncedFixedWrapper,
|
|
3517
|
+
Xt as Tab,
|
|
3518
|
+
mn as Tabs,
|
|
3519
|
+
hn as TextField,
|
|
3520
|
+
rn as ThemeProvider,
|
|
3521
|
+
Ye as ToolTip,
|
|
3522
|
+
ln as animateOnScroll,
|
|
3523
|
+
ot as buttonStyle,
|
|
3524
|
+
lt as cardStyle,
|
|
3525
|
+
at as carouselItemStyle,
|
|
3526
|
+
st as carouselStyle,
|
|
3550
3527
|
p as classNames,
|
|
3551
|
-
|
|
3552
|
-
|
|
3528
|
+
tt as classnames,
|
|
3529
|
+
bt as customScrollStyle,
|
|
3553
3530
|
G as defaultClassNames,
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3531
|
+
yn as defineConfig,
|
|
3532
|
+
ct as dividerStyle,
|
|
3533
|
+
it as fabStyle,
|
|
3534
|
+
rt as getClassNames,
|
|
3535
|
+
ut as iconButtonStyle,
|
|
3536
|
+
Xe as initAnimateOnScroll,
|
|
3560
3537
|
fe as normalize,
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3538
|
+
dt as progressIndicatorStyle,
|
|
3539
|
+
ft as sideSheetStyle,
|
|
3540
|
+
mt as sliderStyle,
|
|
3541
|
+
ht as snackbarStyle,
|
|
3542
|
+
pt as switchStyle,
|
|
3543
|
+
yt as tabStyle,
|
|
3544
|
+
wt as tabsStyle,
|
|
3545
|
+
vt as textFieldStyle,
|
|
3546
|
+
xt as toolStyle
|
|
3570
3547
|
};
|