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