@udixio/ui-react 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -10
- package/dist/index.cjs +2 -2
- package/dist/index.js +1164 -1181
- package/dist/lib/components/Button.d.ts +4 -2
- package/dist/lib/components/Button.d.ts.map +1 -1
- package/dist/lib/components/Card.d.ts +5 -0
- package/dist/lib/components/Card.d.ts.map +1 -1
- package/dist/lib/components/Carousel.d.ts +6 -0
- package/dist/lib/components/Carousel.d.ts.map +1 -1
- package/dist/lib/components/CarouselItem.d.ts +4 -0
- package/dist/lib/components/CarouselItem.d.ts.map +1 -1
- package/dist/lib/components/{Divided.d.ts → Divider.d.ts} +6 -1
- package/dist/lib/components/Divider.d.ts.map +1 -0
- package/dist/lib/components/Fab.d.ts +5 -0
- package/dist/lib/components/Fab.d.ts.map +1 -1
- package/dist/lib/components/IconButton.d.ts +6 -1
- package/dist/lib/components/IconButton.d.ts.map +1 -1
- package/dist/lib/components/NavigationRail.d.ts +5 -0
- package/dist/lib/components/NavigationRail.d.ts.map +1 -1
- package/dist/lib/components/NavigationRailItem.d.ts +8 -0
- package/dist/lib/components/NavigationRailItem.d.ts.map +1 -1
- package/dist/lib/components/ProgressIndicator.d.ts +4 -0
- package/dist/lib/components/ProgressIndicator.d.ts.map +1 -1
- package/dist/lib/components/Slider.d.ts +5 -0
- package/dist/lib/components/Slider.d.ts.map +1 -1
- package/dist/lib/components/Snackbar.d.ts +5 -0
- package/dist/lib/components/Snackbar.d.ts.map +1 -1
- package/dist/lib/components/Switch.d.ts +5 -0
- package/dist/lib/components/Switch.d.ts.map +1 -1
- package/dist/lib/components/Tab.d.ts +4 -0
- package/dist/lib/components/Tab.d.ts.map +1 -1
- package/dist/lib/components/Tabs.d.ts +5 -0
- package/dist/lib/components/Tabs.d.ts.map +1 -1
- package/dist/lib/components/TextField.d.ts +5 -0
- package/dist/lib/components/TextField.d.ts.map +1 -1
- package/dist/lib/components/ToolTip.d.ts +5 -0
- package/dist/lib/components/ToolTip.d.ts.map +1 -1
- package/dist/lib/components/index.d.ts +1 -1
- package/dist/lib/effects/SyncedFixedWrapper.d.ts.map +1 -1
- package/dist/lib/interfaces/button.interface.d.ts +5 -0
- package/dist/lib/interfaces/button.interface.d.ts.map +1 -1
- package/dist/lib/interfaces/icon-button.interface.d.ts +1 -1
- package/dist/lib/interfaces/icon-button.interface.d.ts.map +1 -1
- package/dist/lib/styles/button.style.d.ts +14 -4
- package/dist/lib/styles/button.style.d.ts.map +1 -1
- package/dist/lib/styles/icon-button.style.d.ts +4 -4
- package/package.json +2 -2
- package/src/lib/components/Button.tsx +42 -15
- package/src/lib/components/Card.tsx +5 -0
- package/src/lib/components/Carousel.tsx +12 -6
- package/src/lib/components/CarouselItem.tsx +6 -1
- package/src/lib/components/{Divided.tsx → Divider.tsx} +5 -0
- package/src/lib/components/Fab.tsx +6 -1
- package/src/lib/components/IconButton.tsx +12 -7
- package/src/lib/components/NavigationRail.tsx +40 -41
- package/src/lib/components/NavigationRailItem.tsx +8 -0
- package/src/lib/components/ProgressIndicator.tsx +8 -2
- package/src/lib/components/Slider.tsx +5 -0
- package/src/lib/components/Snackbar.tsx +7 -2
- package/src/lib/components/Switch.tsx +5 -0
- package/src/lib/components/Tab.tsx +4 -0
- package/src/lib/components/Tabs.tsx +8 -3
- package/src/lib/components/TextField.tsx +8 -3
- package/src/lib/components/ToolTip.tsx +8 -8
- package/src/lib/components/index.ts +1 -1
- package/src/lib/effects/SyncedFixedWrapper.tsx +0 -2
- package/src/lib/interfaces/button.interface.ts +6 -0
- package/src/lib/interfaces/icon-button.interface.ts +1 -1
- package/src/lib/styles/button.style.ts +27 -48
- package/dist/lib/components/Divided.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { extendTailwindMerge as
|
|
4
|
-
import
|
|
5
|
-
import { motion as U, AnimatePresence as z, useScroll as
|
|
6
|
-
import { throttle as
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { jsx as i, jsxs as $, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as fe } from "clsx";
|
|
3
|
+
import { extendTailwindMerge as we } from "tailwind-merge";
|
|
4
|
+
import _, { useState as S, useEffect as W, useRef as P, useLayoutEffect as de, isValidElement as ee, cloneElement as le, useMemo as ve, Children as be, Fragment as Ne } from "react";
|
|
5
|
+
import { motion as U, AnimatePresence as z, useScroll as Le, useMotionValueEvent as se, motionValue as me, useTransform as oe } from "motion/react";
|
|
6
|
+
import { throttle as Ie } from "throttle-debounce";
|
|
7
|
+
import { createPortal as Ee } from "react-dom";
|
|
8
|
+
import ke from "react-textarea-autosize";
|
|
9
|
+
const pe = we({
|
|
10
10
|
override: {
|
|
11
11
|
classGroups: {
|
|
12
12
|
"text-color": [
|
|
@@ -32,45 +32,46 @@ const de = xe({
|
|
|
32
32
|
font: ["font"]
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
}), f = (...e) =>
|
|
36
|
-
function
|
|
35
|
+
}), f = (...e) => pe(fe(e)), Me = (...e) => pe(fe(e));
|
|
36
|
+
function Re(e) {
|
|
37
37
|
return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const Se = (e) => {
|
|
40
40
|
const t = {};
|
|
41
|
-
e.classNameList.forEach((
|
|
42
|
-
var
|
|
43
|
-
if (
|
|
44
|
-
if (typeof
|
|
45
|
-
(t[
|
|
41
|
+
e.classNameList.forEach((l) => {
|
|
42
|
+
var n;
|
|
43
|
+
if (l)
|
|
44
|
+
if (typeof l == "string")
|
|
45
|
+
(t[n = e.default] ?? (t[n] = [])).push(l);
|
|
46
46
|
else {
|
|
47
|
-
const c =
|
|
48
|
-
Object.entries(c).map((
|
|
49
|
-
const [
|
|
50
|
-
(t[
|
|
47
|
+
const c = l(e.states);
|
|
48
|
+
Object.entries(c).map((s) => {
|
|
49
|
+
const [o, d] = s;
|
|
50
|
+
(t[o] ?? (t[o] = [])).push(d);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
const
|
|
55
|
-
return Object.entries(t).map((
|
|
56
|
-
let [
|
|
57
|
-
c = c.reverse(),
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
classNameList: [
|
|
54
|
+
const r = t;
|
|
55
|
+
return Object.entries(t).map((l) => {
|
|
56
|
+
let [n, c] = l;
|
|
57
|
+
c = c.reverse(), n == e.default && c.unshift("relative"), c.unshift(Re(n)), r[n] = Me(...c);
|
|
58
|
+
}), r;
|
|
59
|
+
}, q = (e, t) => (r) => Se({
|
|
60
|
+
classNameList: [r.className, t],
|
|
61
61
|
default: e,
|
|
62
|
-
states:
|
|
63
|
-
}),
|
|
62
|
+
states: r
|
|
63
|
+
}), Ce = q(
|
|
64
64
|
"button",
|
|
65
65
|
({
|
|
66
66
|
variant: e,
|
|
67
67
|
disabled: t,
|
|
68
|
-
iconPosition:
|
|
69
|
-
icon:
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
iconPosition: r,
|
|
69
|
+
icon: l,
|
|
70
|
+
isActive: n,
|
|
71
|
+
loading: c,
|
|
72
|
+
shape: s,
|
|
72
73
|
size: o,
|
|
73
|
-
allowShapeTransformation:
|
|
74
|
+
allowShapeTransformation: d
|
|
74
75
|
}) => ({
|
|
75
76
|
button: f(
|
|
76
77
|
"group flex items-center cursor-pointer",
|
|
@@ -88,35 +89,50 @@ const Re = (e) => {
|
|
|
88
89
|
o === "medium" && "text-title-medium px-6 py-4 gap-2",
|
|
89
90
|
o === "large" && "text-headline-small px-12 py-8 gap-3",
|
|
90
91
|
o === "xLarge" && "text-headline-large px-16 py-12 gap-4",
|
|
91
|
-
|
|
92
|
+
s === "rounded" && {
|
|
92
93
|
"rounded-[30px]": o === "xSmall" || o == "small",
|
|
93
94
|
"rounded-[40px]": o === "medium",
|
|
94
95
|
"rounded-[70px]": o === "large" || o == "xLarge"
|
|
95
96
|
},
|
|
96
|
-
|
|
97
|
+
s === "squared" && {
|
|
97
98
|
"rounded-[12px]": o === "xSmall" || o == "small",
|
|
98
99
|
"rounded-[16px]": o === "medium",
|
|
99
100
|
"rounded-[28px]": o === "large" || o == "xLarge"
|
|
100
101
|
},
|
|
101
|
-
|
|
102
|
+
d && !t && {
|
|
102
103
|
"group-active:rounded-[12px]": o === "xSmall" || o == "small",
|
|
103
104
|
"group-active:rounded-[16px]": o === "medium",
|
|
104
105
|
"group-active:rounded-[28px]": o === "large" || o == "xLarge"
|
|
105
106
|
},
|
|
107
|
+
d && n && {
|
|
108
|
+
"rounded-[12px]": o === "xSmall" || o == "small",
|
|
109
|
+
"rounded-[16px]": o === "medium",
|
|
110
|
+
"rounded-[28px]": o === "large" || o == "xLarge"
|
|
111
|
+
},
|
|
106
112
|
e === "elevated" && {
|
|
107
|
-
"
|
|
113
|
+
"shadow-1 hover:shadow-2": !t,
|
|
114
|
+
"bg-surface-container-low text-primary": !t && !n,
|
|
115
|
+
"bg-primary text-on-primary": !t && n,
|
|
116
|
+
"text-on-surface/[38%]": t
|
|
108
117
|
},
|
|
109
118
|
e === "filled" && {
|
|
110
|
-
"
|
|
119
|
+
"hover:shadow-1": !t,
|
|
120
|
+
"bg-surface-container text-on-surface-variant": !t && !n,
|
|
121
|
+
"bg-primary text-on-primary": !t && n,
|
|
122
|
+
"text-on-surface/[38%]": t
|
|
111
123
|
},
|
|
112
124
|
e === "filledTonal" && {
|
|
113
|
-
"
|
|
125
|
+
"hover:shadow-1": !t,
|
|
126
|
+
"bg-secondary-container text-on-secondary-container": !t && !n,
|
|
127
|
+
"bg-secondary text-on-secondary": !t && n,
|
|
128
|
+
"text-on-surface/[0.38]": t
|
|
114
129
|
},
|
|
115
130
|
e === "outlined" && [
|
|
116
131
|
" border",
|
|
117
132
|
{
|
|
118
|
-
"border-on-surface/[0.12]": t,
|
|
119
|
-
" border-outline focus:border-primary": !t
|
|
133
|
+
"border-on-surface/[0.12] text-on-surface/[0.38]": t,
|
|
134
|
+
"text-primary border-outline focus:border-primary": !t && !n,
|
|
135
|
+
"text-inverse-on-surface bg-inverse-surface border-inverse-surface": !t && n
|
|
120
136
|
}
|
|
121
137
|
],
|
|
122
138
|
e === "text" && [
|
|
@@ -158,59 +174,17 @@ const Re = (e) => {
|
|
|
158
174
|
"group-state-primary": !t
|
|
159
175
|
}
|
|
160
176
|
),
|
|
161
|
-
label: f(
|
|
162
|
-
{ invisible: l },
|
|
163
|
-
e === "elevated" && {
|
|
164
|
-
"text-primary": !t,
|
|
165
|
-
"text-on-surface/[38%]": t
|
|
166
|
-
},
|
|
167
|
-
e === "filled" && {
|
|
168
|
-
"text-on-primary": !t,
|
|
169
|
-
"text-on-surface/[38%]": t
|
|
170
|
-
},
|
|
171
|
-
e === "filledTonal" && {
|
|
172
|
-
"text-on-secondary-container": !t,
|
|
173
|
-
"text-on-surface/[0.38]": t
|
|
174
|
-
},
|
|
175
|
-
e === "outlined" && {
|
|
176
|
-
"text-primary": !t,
|
|
177
|
-
"text-on-surface/[0.38]": t
|
|
178
|
-
},
|
|
179
|
-
e === "text" && {
|
|
180
|
-
"text-primary": !t,
|
|
181
|
-
"text-on-surface/[0.38]": t
|
|
182
|
-
}
|
|
183
|
-
),
|
|
177
|
+
label: f({ invisible: c }),
|
|
184
178
|
icon: f(
|
|
185
|
-
{ invisible:
|
|
179
|
+
{ invisible: c },
|
|
186
180
|
o === "xSmall" && "size-5",
|
|
187
181
|
o === "small" && "size-5",
|
|
188
182
|
o === "medium" && "size-6",
|
|
189
183
|
o === "large" && "size-8",
|
|
190
|
-
o === "xLarge" && "size-10"
|
|
191
|
-
e === "elevated" && {
|
|
192
|
-
"text-primary": !t,
|
|
193
|
-
"text-on-surface/[38%]": t
|
|
194
|
-
},
|
|
195
|
-
e === "filled" && {
|
|
196
|
-
"text-on-primary": !t,
|
|
197
|
-
"text-on-surface/[38%]": t
|
|
198
|
-
},
|
|
199
|
-
e === "filledTonal" && {
|
|
200
|
-
"text-on-secondary-container": !t,
|
|
201
|
-
"text-on-surface/[0.38]": t
|
|
202
|
-
},
|
|
203
|
-
e === "outlined" && {
|
|
204
|
-
"text-primary": !t,
|
|
205
|
-
"text-on-surface/[0.38]": t
|
|
206
|
-
},
|
|
207
|
-
e === "text" && {
|
|
208
|
-
"text-primary": !t,
|
|
209
|
-
"text-on-surface/[0.38]": t
|
|
210
|
-
}
|
|
184
|
+
o === "xLarge" && "size-10"
|
|
211
185
|
)
|
|
212
186
|
})
|
|
213
|
-
),
|
|
187
|
+
), Be = q(
|
|
214
188
|
"card",
|
|
215
189
|
({ variant: e, isInteractive: t }) => ({
|
|
216
190
|
card: f(
|
|
@@ -227,12 +201,12 @@ const Re = (e) => {
|
|
|
227
201
|
}
|
|
228
202
|
])
|
|
229
203
|
})
|
|
230
|
-
),
|
|
204
|
+
), De = q(
|
|
231
205
|
"carouselItem",
|
|
232
206
|
() => ({
|
|
233
207
|
carouselItem: f("rounded-[28px] overflow-hidden flex-none")
|
|
234
208
|
})
|
|
235
|
-
), Ve =
|
|
209
|
+
), Ve = q(
|
|
236
210
|
"carousel",
|
|
237
211
|
() => ({
|
|
238
212
|
carousel: f(["w-full h-[400px]"]),
|
|
@@ -240,7 +214,7 @@ const Re = (e) => {
|
|
|
240
214
|
"grid grid-flow-col h-full transition-transform ease-out w-fit"
|
|
241
215
|
)
|
|
242
216
|
})
|
|
243
|
-
),
|
|
217
|
+
), We = q(
|
|
244
218
|
"divider",
|
|
245
219
|
({ orientation: e }) => ({
|
|
246
220
|
divider: f(
|
|
@@ -253,20 +227,20 @@ const Re = (e) => {
|
|
|
253
227
|
}
|
|
254
228
|
)
|
|
255
229
|
})
|
|
256
|
-
),
|
|
230
|
+
), $e = q(
|
|
257
231
|
"fab",
|
|
258
|
-
({ size: e, variant: t, isExtended:
|
|
232
|
+
({ size: e, variant: t, isExtended: r }) => ({
|
|
259
233
|
fab: f(
|
|
260
234
|
"flex shadow-3 hover:shadow-4 group overflow-hidden outline-none items-center cursor-pointer",
|
|
261
235
|
{
|
|
262
|
-
"rounded-[12px]": e == "small" && !
|
|
263
|
-
"rounded-[16px]": e == "medium" ||
|
|
264
|
-
"rounded-[28px]": e == "large" && !
|
|
236
|
+
"rounded-[12px]": e == "small" && !r,
|
|
237
|
+
"rounded-[16px]": e == "medium" || r,
|
|
238
|
+
"rounded-[28px]": e == "large" && !r
|
|
265
239
|
},
|
|
266
240
|
{
|
|
267
|
-
"p-2": e == "small" && !
|
|
268
|
-
"p-4": e == "medium" ||
|
|
269
|
-
"p-[30px]": e == "large" && !
|
|
241
|
+
"p-2": e == "small" && !r,
|
|
242
|
+
"p-4": e == "medium" || r,
|
|
243
|
+
"p-[30px]": e == "large" && !r
|
|
270
244
|
},
|
|
271
245
|
t === "surface" && "bg-surface-container",
|
|
272
246
|
t === "primary" && "bg-primary-container",
|
|
@@ -282,8 +256,8 @@ const Re = (e) => {
|
|
|
282
256
|
),
|
|
283
257
|
icon: f(
|
|
284
258
|
{
|
|
285
|
-
"size-6": e == "small" || e == "medium" ||
|
|
286
|
-
"size-9": e == "large" && !
|
|
259
|
+
"size-6": e == "small" || e == "medium" || r,
|
|
260
|
+
"size-9": e == "large" && !r
|
|
287
261
|
},
|
|
288
262
|
t === "surface" && "text-primary",
|
|
289
263
|
t === "primary" && "text-on-primary-container",
|
|
@@ -298,17 +272,17 @@ const Re = (e) => {
|
|
|
298
272
|
t === "tertiary" && "text-on-tertiary-container"
|
|
299
273
|
)
|
|
300
274
|
})
|
|
301
|
-
),
|
|
275
|
+
), Pe = q(
|
|
302
276
|
"iconButton",
|
|
303
277
|
({
|
|
304
278
|
variant: e,
|
|
305
279
|
disabled: t,
|
|
306
|
-
onToggle:
|
|
307
|
-
isActive:
|
|
308
|
-
size:
|
|
280
|
+
onToggle: r,
|
|
281
|
+
isActive: l,
|
|
282
|
+
size: n,
|
|
309
283
|
width: c,
|
|
310
|
-
shape:
|
|
311
|
-
allowShapeTransformation:
|
|
284
|
+
shape: s,
|
|
285
|
+
allowShapeTransformation: o
|
|
312
286
|
}) => ({
|
|
313
287
|
iconButton: f(
|
|
314
288
|
"group min-h-12 flex items-center cursor-pointer",
|
|
@@ -318,43 +292,43 @@ const Re = (e) => {
|
|
|
318
292
|
),
|
|
319
293
|
container: f(
|
|
320
294
|
"rounded-full relative flex overflow-hidden transition-all duration-300",
|
|
321
|
-
(
|
|
322
|
-
"rounded-[30px]":
|
|
323
|
-
"rounded-[40px]":
|
|
324
|
-
"rounded-[70px]":
|
|
295
|
+
(s === "rounded" || s === "squared" && r && !t && l && o) && {
|
|
296
|
+
"rounded-[30px]": n === "xSmall" || n == "small",
|
|
297
|
+
"rounded-[40px]": n === "medium",
|
|
298
|
+
"rounded-[70px]": n === "large" || n == "xLarge"
|
|
325
299
|
},
|
|
326
|
-
(
|
|
327
|
-
"rounded-[12px]":
|
|
328
|
-
"rounded-[16px]":
|
|
329
|
-
"rounded-[28px]":
|
|
300
|
+
(s === "squared" || s === "rounded" && r && !t && l && o) && {
|
|
301
|
+
"rounded-[12px]": n === "xSmall" || n == "small",
|
|
302
|
+
"rounded-[16px]": n === "medium",
|
|
303
|
+
"rounded-[28px]": n === "large" || n == "xLarge"
|
|
330
304
|
},
|
|
331
|
-
|
|
332
|
-
"group-active:rounded-[12px]":
|
|
333
|
-
"group-active:rounded-[16px]":
|
|
334
|
-
"group-active:rounded-[28px]":
|
|
305
|
+
o && !t && {
|
|
306
|
+
"group-active:rounded-[12px]": n === "xSmall" || n == "small",
|
|
307
|
+
"group-active:rounded-[16px]": n === "medium",
|
|
308
|
+
"group-active:rounded-[28px]": n === "large" || n == "xLarge"
|
|
335
309
|
},
|
|
336
310
|
e === "filled" && [
|
|
337
311
|
!t && {
|
|
338
|
-
"bg-surface-container": !
|
|
339
|
-
"bg-primary":
|
|
312
|
+
"bg-surface-container": !l && !!r,
|
|
313
|
+
"bg-primary": l || !r
|
|
340
314
|
},
|
|
341
315
|
!!t && "bg-on-surface/[0.12]"
|
|
342
316
|
],
|
|
343
317
|
e === "tonal" && [
|
|
344
318
|
!t && {
|
|
345
|
-
"bg-surface-container": !
|
|
346
|
-
"bg-secondary-container":
|
|
319
|
+
"bg-surface-container": !l && !!r,
|
|
320
|
+
"bg-secondary-container": l || !r
|
|
347
321
|
},
|
|
348
322
|
!!t && "bg-on-surface/[0.12]"
|
|
349
323
|
],
|
|
350
324
|
e === "outlined" && [
|
|
351
325
|
!t && {
|
|
352
|
-
"border border-outline": !
|
|
353
|
-
"border border-transparent bg-inverse-surface":
|
|
326
|
+
"border border-outline": !l,
|
|
327
|
+
"border border-transparent bg-inverse-surface": l
|
|
354
328
|
},
|
|
355
329
|
!!t && {
|
|
356
|
-
"border border-on-surface/[0.12]": !
|
|
357
|
-
"border border-transparent bg-on-surface/[0.12]":
|
|
330
|
+
"border border-on-surface/[0.12]": !l,
|
|
331
|
+
"border border-transparent bg-on-surface/[0.12]": l
|
|
358
332
|
}
|
|
359
333
|
]
|
|
360
334
|
),
|
|
@@ -362,66 +336,66 @@ const Re = (e) => {
|
|
|
362
336
|
"absolute top-0 left-0 h-full w-full ",
|
|
363
337
|
!t && [
|
|
364
338
|
e === "standard" && {
|
|
365
|
-
"state-on-surface-variant": !
|
|
366
|
-
"state-primary":
|
|
339
|
+
"state-on-surface-variant": !l,
|
|
340
|
+
"state-primary": l
|
|
367
341
|
},
|
|
368
342
|
e === "filled" && {
|
|
369
|
-
"state-primary": !
|
|
370
|
-
"state-inverse-on-surface":
|
|
343
|
+
"state-primary": !l && !!r,
|
|
344
|
+
"state-inverse-on-surface": l || !r
|
|
371
345
|
},
|
|
372
346
|
e === "tonal" && {
|
|
373
|
-
"state-on-surface-variant": !
|
|
374
|
-
"state-on-secondary-container":
|
|
347
|
+
"state-on-surface-variant": !l && !!r,
|
|
348
|
+
"state-on-secondary-container": l || !r
|
|
375
349
|
},
|
|
376
350
|
e === "outlined" && {
|
|
377
|
-
"state-on-surface-variant": !
|
|
378
|
-
"state-on-primary":
|
|
351
|
+
"state-on-surface-variant": !l,
|
|
352
|
+
"state-on-primary": l
|
|
379
353
|
}
|
|
380
354
|
]
|
|
381
355
|
),
|
|
382
356
|
icon: f(
|
|
383
357
|
" 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":
|
|
358
|
+
{ "size-5 p-1.5": n === "xSmall" },
|
|
359
|
+
{ "size-6 p-2": n === "small" },
|
|
360
|
+
{ "size-6 p-4": n === "medium" },
|
|
361
|
+
{ "size-8 p-8": n === "large" },
|
|
362
|
+
{ "size-10 p-12": n === "xLarge" },
|
|
389
363
|
c == "narrow" && [
|
|
390
|
-
{ "px-1":
|
|
391
|
-
{ "px-1":
|
|
392
|
-
{ "px-3":
|
|
393
|
-
{ "px-4":
|
|
394
|
-
{ "px-8":
|
|
364
|
+
{ "px-1": n === "xSmall" },
|
|
365
|
+
{ "px-1": n === "small" },
|
|
366
|
+
{ "px-3": n === "medium" },
|
|
367
|
+
{ "px-4": n === "large" },
|
|
368
|
+
{ "px-8": n === "xLarge" }
|
|
395
369
|
],
|
|
396
370
|
c == "wide" && [
|
|
397
|
-
{ "px-2.5":
|
|
398
|
-
{ "px-3.5":
|
|
399
|
-
{ "px-6":
|
|
400
|
-
{ "px-12":
|
|
401
|
-
{ "px-[72px]":
|
|
371
|
+
{ "px-2.5": n === "xSmall" },
|
|
372
|
+
{ "px-3.5": n === "small" },
|
|
373
|
+
{ "px-6": n === "medium" },
|
|
374
|
+
{ "px-12": n === "large" },
|
|
375
|
+
{ "px-[72px]": n === "xLarge" }
|
|
402
376
|
],
|
|
403
377
|
!t && [
|
|
404
378
|
e === "standard" && {
|
|
405
|
-
"text-on-surface-variant": !
|
|
406
|
-
"text-primary":
|
|
379
|
+
"text-on-surface-variant": !l,
|
|
380
|
+
"text-primary": l
|
|
407
381
|
},
|
|
408
382
|
e === "filled" && {
|
|
409
|
-
"text-primary": !
|
|
410
|
-
"text-on-primary":
|
|
383
|
+
"text-primary": !l && !!r,
|
|
384
|
+
"text-on-primary": l || !r
|
|
411
385
|
},
|
|
412
386
|
e === "tonal" && {
|
|
413
|
-
"text-on-surface-variant": !
|
|
414
|
-
"text-on-secondary-container":
|
|
387
|
+
"text-on-surface-variant": !l && !!r,
|
|
388
|
+
"text-on-secondary-container": l || !r
|
|
415
389
|
},
|
|
416
390
|
e === "outlined" && {
|
|
417
|
-
"text-on-surface-variant": !
|
|
418
|
-
"text-inverse-on-surface":
|
|
391
|
+
"text-on-surface-variant": !l,
|
|
392
|
+
"text-inverse-on-surface": l
|
|
419
393
|
}
|
|
420
394
|
],
|
|
421
395
|
!!t && "text-on-surface/[0.38]"
|
|
422
396
|
)
|
|
423
397
|
})
|
|
424
|
-
),
|
|
398
|
+
), Ue = q(
|
|
425
399
|
"progressIndicator",
|
|
426
400
|
({ variant: e, isVisible: t }) => ({
|
|
427
401
|
progressIndicator: f(
|
|
@@ -440,7 +414,7 @@ const Re = (e) => {
|
|
|
440
414
|
),
|
|
441
415
|
stop: "absolute right-0 bg-primary rounded-full"
|
|
442
416
|
})
|
|
443
|
-
),
|
|
417
|
+
), je = q(
|
|
444
418
|
"slider",
|
|
445
419
|
({ isChanging: e }) => ({
|
|
446
420
|
slider: f([
|
|
@@ -463,7 +437,7 @@ const Re = (e) => {
|
|
|
463
437
|
"h-1 w-1 absolute transform -translate-y-1/2 -translate-x-1/2 top-1/2 rounded-full"
|
|
464
438
|
])
|
|
465
439
|
})
|
|
466
|
-
),
|
|
440
|
+
), Xe = q(
|
|
467
441
|
"snackbar",
|
|
468
442
|
() => ({
|
|
469
443
|
snackbar: f(" rounded bg-inverse-surface "),
|
|
@@ -473,9 +447,9 @@ const Re = (e) => {
|
|
|
473
447
|
supportingText: f("text-body-medium text-inverse-on-surface "),
|
|
474
448
|
icon: f(" ml-auto mr-0 text-inverse-on-surface block dark")
|
|
475
449
|
})
|
|
476
|
-
),
|
|
450
|
+
), Fe = q(
|
|
477
451
|
"switch",
|
|
478
|
-
({ isSelected: e, disabled: t, inactiveIcon:
|
|
452
|
+
({ isSelected: e, disabled: t, inactiveIcon: r }) => ({
|
|
479
453
|
switch: f(
|
|
480
454
|
"group w-[52px] h-[32px] outline-none rounded-full border-2 flex items-center",
|
|
481
455
|
{ "bg-on-surface/[0.12] border-transparent": t },
|
|
@@ -494,8 +468,8 @@ const Re = (e) => {
|
|
|
494
468
|
),
|
|
495
469
|
handle: f(
|
|
496
470
|
"transition-all duration-100 z-10 rounded-full flex items-center justify-center",
|
|
497
|
-
{ "w-[16px] h-[16px]": !e && !
|
|
498
|
-
{ "w-[24px] h-[24px]": !(!e && !
|
|
471
|
+
{ "w-[16px] h-[16px]": !e && !r },
|
|
472
|
+
{ "w-[24px] h-[24px]": !(!e && !r) },
|
|
499
473
|
!t && [
|
|
500
474
|
"cursor-pointer group-active:h-[28px] group-active:w-[28px]",
|
|
501
475
|
{ "bg-on-primary group-hover:bg-primary-container": e },
|
|
@@ -516,66 +490,66 @@ const Re = (e) => {
|
|
|
516
490
|
{ "text-on-surface/[0.38]": t }
|
|
517
491
|
)
|
|
518
492
|
})
|
|
519
|
-
),
|
|
493
|
+
), Oe = q(
|
|
520
494
|
"tab",
|
|
521
|
-
({ isSelected: e, icon: t, label:
|
|
495
|
+
({ isSelected: e, icon: t, label: r, variant: l }) => ({
|
|
522
496
|
tab: f(
|
|
523
497
|
"bg-surface flex-1 group outline-none flex px-4 justify-center items-center cursor-pointer",
|
|
524
498
|
{ "z-10": e },
|
|
525
|
-
!!(t &&
|
|
526
|
-
!(t &&
|
|
499
|
+
!!(t && r) && l === "primary" && "h-16",
|
|
500
|
+
!(t && r && l === "primary") && "h-12"
|
|
527
501
|
),
|
|
528
502
|
stateLayer: f(
|
|
529
503
|
"absolute w-full h-full overflow-hidden left-1/2 top-1/2 transform -translate-y-1/2 -translate-x-1/2",
|
|
530
|
-
|
|
504
|
+
l === "primary" && {
|
|
531
505
|
"group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface": !e,
|
|
532
506
|
"group-hover:hover-state-primary group-focus-visible:focus-state-primary": e
|
|
533
507
|
},
|
|
534
|
-
|
|
508
|
+
l === "secondary" && "group-hover:hover-state-on-surface group-focus-visible:focus-state-on-surface"
|
|
535
509
|
),
|
|
536
510
|
content: f(
|
|
537
511
|
"flex gap-0.5 h-full justify-center",
|
|
538
512
|
{
|
|
539
|
-
relative:
|
|
513
|
+
relative: l == "primary"
|
|
540
514
|
},
|
|
541
515
|
{
|
|
542
|
-
"": !!(
|
|
516
|
+
"": !!(r && !t)
|
|
543
517
|
},
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
"flex-col items-center": !(
|
|
547
|
-
"flex-row items-center gap-2": !!(
|
|
518
|
+
l === "primary" && "flex-col items-center",
|
|
519
|
+
l === "secondary" && {
|
|
520
|
+
"flex-col items-center": !(r && t),
|
|
521
|
+
"flex-row items-center gap-2": !!(r && t)
|
|
548
522
|
}
|
|
549
523
|
),
|
|
550
524
|
icon: f(
|
|
551
525
|
"h-6 w-6 p-0.5 !box-border",
|
|
552
|
-
|
|
526
|
+
l === "primary" && {
|
|
553
527
|
"text-on-surface-variant": !e,
|
|
554
528
|
"text-primary": e
|
|
555
529
|
},
|
|
556
|
-
|
|
530
|
+
l === "secondary" && {
|
|
557
531
|
"text-on-surface-variant": !e,
|
|
558
532
|
"text-on-surface": e
|
|
559
533
|
}
|
|
560
534
|
),
|
|
561
535
|
label: f(
|
|
562
536
|
"text-title-small text-nowrap",
|
|
563
|
-
|
|
537
|
+
l === "primary" && {
|
|
564
538
|
"text-on-surface-variant": !e,
|
|
565
539
|
"text-primary": e
|
|
566
540
|
},
|
|
567
|
-
|
|
541
|
+
l === "secondary" && {
|
|
568
542
|
"text-on-surface-variant": !e,
|
|
569
543
|
"text-on-surface": e
|
|
570
544
|
}
|
|
571
545
|
),
|
|
572
546
|
underline: f(
|
|
573
547
|
"bg-primary absolute w-full left-0 bottom-0",
|
|
574
|
-
|
|
575
|
-
|
|
548
|
+
l === "primary" && "h-[3px] rounded-t",
|
|
549
|
+
l === "secondary" && "h-0.5"
|
|
576
550
|
)
|
|
577
551
|
})
|
|
578
|
-
),
|
|
552
|
+
), Ke = q(
|
|
579
553
|
"tabs",
|
|
580
554
|
({ scrollable: e }) => ({
|
|
581
555
|
tabs: f(
|
|
@@ -584,17 +558,17 @@ const Re = (e) => {
|
|
|
584
558
|
{ "overflow-x-auto": e }
|
|
585
559
|
)
|
|
586
560
|
})
|
|
587
|
-
),
|
|
561
|
+
), Ge = q(
|
|
588
562
|
"textField",
|
|
589
563
|
({
|
|
590
564
|
disabled: e,
|
|
591
565
|
leadingIcon: t,
|
|
592
|
-
trailingIcon:
|
|
593
|
-
variant:
|
|
594
|
-
errorText:
|
|
566
|
+
trailingIcon: r,
|
|
567
|
+
variant: l,
|
|
568
|
+
errorText: n,
|
|
595
569
|
isFocused: c,
|
|
596
|
-
value:
|
|
597
|
-
suffix:
|
|
570
|
+
value: s,
|
|
571
|
+
suffix: o,
|
|
598
572
|
textLine: d
|
|
599
573
|
}) => ({
|
|
600
574
|
textField: f({
|
|
@@ -604,17 +578,17 @@ const Re = (e) => {
|
|
|
604
578
|
"group transition-border duration-200 relative flex items-center ",
|
|
605
579
|
{ "h-14": d == "singleLine" },
|
|
606
580
|
{
|
|
607
|
-
"border-on-surface-variant": !(
|
|
608
|
-
"border-outline": !(
|
|
609
|
-
"border-primary": !(
|
|
610
|
-
"border-error": !!(
|
|
581
|
+
"border-on-surface-variant": !(n != null && n.length) && !c && l == "filled",
|
|
582
|
+
"border-outline": !(n != null && n.length) && !c && l == "outlined",
|
|
583
|
+
"border-primary": !(n != null && n.length) && c,
|
|
584
|
+
"border-error": !!(n != null && n.length)
|
|
611
585
|
},
|
|
612
586
|
{ "bg-on-surface/[0.04]": e },
|
|
613
|
-
|
|
587
|
+
l == "filled" && [
|
|
614
588
|
"rounded-t overflow-hidden border-b",
|
|
615
589
|
{ "bg-surface-container-highest": !e }
|
|
616
590
|
],
|
|
617
|
-
|
|
591
|
+
l == "outlined" && [
|
|
618
592
|
"border rounded box-border",
|
|
619
593
|
{
|
|
620
594
|
"border-[3px]": c
|
|
@@ -624,7 +598,7 @@ const Re = (e) => {
|
|
|
624
598
|
stateLayer: f(
|
|
625
599
|
"absolute -z-10 w-full h-full top-0 left-0",
|
|
626
600
|
{
|
|
627
|
-
hidden:
|
|
601
|
+
hidden: l == "outlined"
|
|
628
602
|
},
|
|
629
603
|
{
|
|
630
604
|
"group-state-on-surface": !e,
|
|
@@ -633,10 +607,10 @@ const Re = (e) => {
|
|
|
633
607
|
),
|
|
634
608
|
label: f(
|
|
635
609
|
"inline-flex outline-none whitespace-nowrap",
|
|
636
|
-
{ "text-on-surface-variant": !e && !(
|
|
610
|
+
{ "text-on-surface-variant": !e && !(n != null && n.length) },
|
|
637
611
|
{ "text-on-surface": e },
|
|
638
|
-
{ "text-error": !!(
|
|
639
|
-
{ "text-primary": !(
|
|
612
|
+
{ "text-error": !!(n != null && n.length) },
|
|
613
|
+
{ "text-primary": !(n != null && n.length) && c }
|
|
640
614
|
),
|
|
641
615
|
input: f(
|
|
642
616
|
"w-full resize-none px-4 text-body-large bg-[inherit] outline-none autofill:transition-colors autofill:duration-[5000000ms]",
|
|
@@ -645,41 +619,41 @@ const Re = (e) => {
|
|
|
645
619
|
"placeholder:text-on-surface text-on-surface": e
|
|
646
620
|
},
|
|
647
621
|
{
|
|
648
|
-
"pr-0": !!
|
|
622
|
+
"pr-0": !!o
|
|
649
623
|
},
|
|
650
|
-
|
|
651
|
-
|
|
624
|
+
l == "filled" && " pb-2 pt-6",
|
|
625
|
+
l == "outlined" && "py-4 relative z-10"
|
|
652
626
|
),
|
|
653
627
|
activeIndicator: f(
|
|
654
628
|
"absolute w-0 inset-x-0 border-rounded mx-auto bottom-0",
|
|
655
|
-
|
|
629
|
+
l == "filled" && [
|
|
656
630
|
"h-[2px] transition-all duration-300",
|
|
657
|
-
{ "bg-primary": !(
|
|
658
|
-
{ "bg-error": !!(
|
|
631
|
+
{ "bg-primary": !(n != null && n.length) },
|
|
632
|
+
{ "bg-error": !!(n != null && n.length) },
|
|
659
633
|
{ "!w-full": c }
|
|
660
634
|
]
|
|
661
635
|
),
|
|
662
636
|
supportingText: f(
|
|
663
637
|
" text-body-small px-4 pt-1",
|
|
664
|
-
{ "text-on-surface-variant": !e && !(
|
|
638
|
+
{ "text-on-surface-variant": !e && !(n != null && n.length) },
|
|
665
639
|
{ "text-on-surface": e },
|
|
666
640
|
{ "!w-full": c },
|
|
667
|
-
{ "text-error": !!(
|
|
641
|
+
{ "text-error": !!(n != null && n.length) }
|
|
668
642
|
),
|
|
669
643
|
leadingIcon: f([
|
|
670
644
|
"h-12 ml-3 flex items-center justify-center",
|
|
671
|
-
{ "cursor-text":
|
|
645
|
+
{ "cursor-text": !_.isValidElement(t) }
|
|
672
646
|
]),
|
|
673
647
|
trailingIcon: f("h-12 w-12 flex items-center justify-center", {
|
|
674
|
-
"cursor-text":
|
|
648
|
+
"cursor-text": !_.isValidElement(r)
|
|
675
649
|
}),
|
|
676
650
|
suffix: f(
|
|
677
651
|
"text-on-surface-variant pl-0 pr-4",
|
|
678
|
-
|
|
679
|
-
|
|
652
|
+
l == "filled" && " pb-2 pt-6",
|
|
653
|
+
l == "outlined" && "py-4 relative z-10"
|
|
680
654
|
)
|
|
681
655
|
})
|
|
682
|
-
),
|
|
656
|
+
), qe = q(
|
|
683
657
|
"toolTip",
|
|
684
658
|
({ position: e, variant: t }) => ({
|
|
685
659
|
toolTip: f(
|
|
@@ -710,8 +684,8 @@ const Re = (e) => {
|
|
|
710
684
|
),
|
|
711
685
|
supportingText: f("")
|
|
712
686
|
})
|
|
713
|
-
), Q = ({ icon: e, colors: t = [], className:
|
|
714
|
-
const { icon:
|
|
687
|
+
), Q = ({ icon: e, colors: t = [], className: r }) => {
|
|
688
|
+
const { icon: l } = e, [n, c, , , s] = l || [], o = (d) => {
|
|
715
689
|
switch (d.length) {
|
|
716
690
|
case 2:
|
|
717
691
|
return {
|
|
@@ -727,97 +701,97 @@ const Re = (e) => {
|
|
|
727
701
|
return /* @__PURE__ */ i(
|
|
728
702
|
"svg",
|
|
729
703
|
{
|
|
730
|
-
className: f("size-5 box-content",
|
|
704
|
+
className: f("size-5 box-content", r),
|
|
731
705
|
style: {
|
|
732
|
-
...
|
|
706
|
+
...o(t)
|
|
733
707
|
},
|
|
734
708
|
xmlns: "http://www.w3.org/2000/svg",
|
|
735
|
-
viewBox: `0 0 ${
|
|
709
|
+
viewBox: `0 0 ${n} ${c}`,
|
|
736
710
|
role: "img",
|
|
737
711
|
"aria-hidden": "true",
|
|
738
|
-
children: typeof
|
|
712
|
+
children: typeof s == "string" ? /* @__PURE__ */ i("path", { className: "fill-current", d: s }) : s.map((d, u) => /* @__PURE__ */ i("path", { d }, u))
|
|
739
713
|
}
|
|
740
714
|
);
|
|
741
|
-
},
|
|
715
|
+
}, He = ({
|
|
742
716
|
variant: e = "linear-determinate",
|
|
743
717
|
minHeight: t = 4,
|
|
744
|
-
value:
|
|
745
|
-
transitionDuration:
|
|
746
|
-
className:
|
|
718
|
+
value: r = 0,
|
|
719
|
+
transitionDuration: l = 1e3,
|
|
720
|
+
className: n,
|
|
747
721
|
...c
|
|
748
722
|
}) => {
|
|
749
|
-
const [
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
}, [
|
|
753
|
-
const [
|
|
754
|
-
|
|
755
|
-
if ((e === "circular-indeterminate" || e === "linear-indeterminate") &&
|
|
756
|
-
const
|
|
757
|
-
|
|
758
|
-
},
|
|
759
|
-
return () => clearInterval(
|
|
723
|
+
const [s, o] = S(r), [d] = S(1.5);
|
|
724
|
+
W(() => {
|
|
725
|
+
r > 100 && (r = 100), r < 0 && (r = 0), o(r);
|
|
726
|
+
}, [r]);
|
|
727
|
+
const [u, x] = S(!0), y = () => u ? d : d * 0.5;
|
|
728
|
+
W(() => {
|
|
729
|
+
if ((e === "circular-indeterminate" || e === "linear-indeterminate") && s !== 100) {
|
|
730
|
+
const b = setInterval(() => {
|
|
731
|
+
o(u ? 10 : 90), x(!u);
|
|
732
|
+
}, y() * 1e3);
|
|
733
|
+
return () => clearInterval(b);
|
|
760
734
|
}
|
|
761
|
-
}, [e,
|
|
762
|
-
const [
|
|
763
|
-
|
|
764
|
-
if (
|
|
765
|
-
const
|
|
735
|
+
}, [e, u, s]);
|
|
736
|
+
const [a, v] = S(!1);
|
|
737
|
+
W(() => {
|
|
738
|
+
if (s >= 100) {
|
|
739
|
+
const b = setTimeout(() => {
|
|
766
740
|
v(!1);
|
|
767
|
-
},
|
|
741
|
+
}, l);
|
|
768
742
|
return () => {
|
|
769
|
-
clearTimeout(
|
|
743
|
+
clearTimeout(b);
|
|
770
744
|
};
|
|
771
745
|
} else
|
|
772
746
|
v(!0);
|
|
773
|
-
}, [
|
|
774
|
-
const
|
|
775
|
-
className:
|
|
747
|
+
}, [s, l]);
|
|
748
|
+
const g = Ue({
|
|
749
|
+
className: n,
|
|
776
750
|
variant: e,
|
|
777
|
-
value:
|
|
778
|
-
transitionDuration:
|
|
779
|
-
isVisible:
|
|
751
|
+
value: r,
|
|
752
|
+
transitionDuration: l,
|
|
753
|
+
isVisible: a,
|
|
780
754
|
minHeight: t
|
|
781
755
|
});
|
|
782
|
-
return /* @__PURE__ */
|
|
783
|
-
(e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */
|
|
756
|
+
return /* @__PURE__ */ $(ne, { children: [
|
|
757
|
+
(e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ $(
|
|
784
758
|
"div",
|
|
785
759
|
{
|
|
786
760
|
style: { height: `${t}px` },
|
|
787
|
-
className:
|
|
761
|
+
className: g.progressIndicator,
|
|
788
762
|
...c,
|
|
789
763
|
children: [
|
|
790
764
|
/* @__PURE__ */ i(
|
|
791
765
|
"div",
|
|
792
766
|
{
|
|
793
767
|
style: {
|
|
794
|
-
height:
|
|
795
|
-
width: `${
|
|
796
|
-
transition: `width 1ms ease-in-out ${
|
|
768
|
+
height: a ? `${t}px` : "0px",
|
|
769
|
+
width: `${s}%`,
|
|
770
|
+
transition: `width 1ms ease-in-out ${s == 100 ? ", height 200ms 0.5s ease-in-out" : ""}`
|
|
797
771
|
},
|
|
798
|
-
className:
|
|
772
|
+
className: g.track
|
|
799
773
|
}
|
|
800
774
|
),
|
|
801
775
|
/* @__PURE__ */ i(
|
|
802
776
|
"div",
|
|
803
777
|
{
|
|
804
778
|
style: {
|
|
805
|
-
height:
|
|
806
|
-
marginLeft:
|
|
807
|
-
transition: `width ${
|
|
779
|
+
height: a ? `${t}px` : "0px",
|
|
780
|
+
marginLeft: s != 100 ? "6px" : "0px",
|
|
781
|
+
transition: `width ${l}ms ease-in-out ${s == 100 ? `, height 200ms 0.5s ease-in-out, margin-left ${l}ms ${l / 1.5}ms` : ""}`
|
|
808
782
|
},
|
|
809
|
-
className:
|
|
783
|
+
className: g.activeIndicator
|
|
810
784
|
}
|
|
811
785
|
),
|
|
812
786
|
/* @__PURE__ */ i(
|
|
813
787
|
"div",
|
|
814
788
|
{
|
|
815
789
|
style: {
|
|
816
|
-
height:
|
|
790
|
+
height: a ? `${t}px` : "0px",
|
|
817
791
|
width: `${t}px`,
|
|
818
|
-
transition: `width ${
|
|
792
|
+
transition: `width ${l}ms ease-in-out, height 200ms 0.5s ease-in-out`
|
|
819
793
|
},
|
|
820
|
-
className:
|
|
794
|
+
className: g.stop
|
|
821
795
|
}
|
|
822
796
|
)
|
|
823
797
|
]
|
|
@@ -833,50 +807,50 @@ const Re = (e) => {
|
|
|
833
807
|
animate: { rotate: 270 },
|
|
834
808
|
transition: {
|
|
835
809
|
repeat: 1 / 0,
|
|
836
|
-
duration:
|
|
810
|
+
duration: y(),
|
|
837
811
|
ease: "linear"
|
|
838
812
|
},
|
|
839
|
-
className:
|
|
813
|
+
className: g.progressIndicator,
|
|
840
814
|
...c,
|
|
841
815
|
children: /* @__PURE__ */ i(
|
|
842
816
|
U.circle,
|
|
843
817
|
{
|
|
844
818
|
cx: "50%",
|
|
845
819
|
cy: "50%",
|
|
846
|
-
r:
|
|
820
|
+
r: a ? "calc(50% - 2px)" : "50%",
|
|
847
821
|
style: {
|
|
848
822
|
strokeLinecap: "round"
|
|
849
823
|
},
|
|
850
824
|
initial: "hidden",
|
|
851
825
|
animate: "visible",
|
|
852
|
-
className:
|
|
826
|
+
className: g.activeIndicator,
|
|
853
827
|
variants: {
|
|
854
828
|
hidden: {
|
|
855
|
-
pathLength:
|
|
829
|
+
pathLength: u ? 10 / 100 : 90 / 100
|
|
856
830
|
},
|
|
857
831
|
visible: {
|
|
858
|
-
pathLength:
|
|
832
|
+
pathLength: u ? 90 / 100 : 10 / 100
|
|
859
833
|
}
|
|
860
834
|
},
|
|
861
835
|
transition: {
|
|
862
836
|
pathLength: {
|
|
863
837
|
type: "tween",
|
|
864
838
|
ease: "linear",
|
|
865
|
-
duration:
|
|
839
|
+
duration: y(),
|
|
866
840
|
bounce: 0
|
|
867
841
|
}
|
|
868
842
|
}
|
|
869
843
|
}
|
|
870
844
|
)
|
|
871
845
|
},
|
|
872
|
-
|
|
846
|
+
u + ""
|
|
873
847
|
)
|
|
874
848
|
] });
|
|
875
|
-
},
|
|
849
|
+
}, re = ({
|
|
876
850
|
colorName: e = "on-surface",
|
|
877
851
|
triggerRef: t
|
|
878
852
|
}) => {
|
|
879
|
-
const
|
|
853
|
+
const r = {
|
|
880
854
|
initial: {
|
|
881
855
|
opacity: 0,
|
|
882
856
|
borderRadius: "50%",
|
|
@@ -893,50 +867,50 @@ const Re = (e) => {
|
|
|
893
867
|
borderRadius: { duration: 0.3, delay: 0.3 }
|
|
894
868
|
}
|
|
895
869
|
}
|
|
896
|
-
}, [
|
|
897
|
-
|
|
898
|
-
c && (
|
|
899
|
-
}, [c]),
|
|
870
|
+
}, [l, n] = S(!0), [c, s] = S(!1), [o, d] = S({ x: 0, y: 0 });
|
|
871
|
+
W(() => {
|
|
872
|
+
c && (n(!0), n(!1));
|
|
873
|
+
}, [c]), W(() => {
|
|
900
874
|
const a = t == null ? void 0 : t.current;
|
|
901
875
|
if (a)
|
|
902
|
-
return a.addEventListener("mousedown", u), a.addEventListener("mouseup",
|
|
903
|
-
a.removeEventListener("mousedown", u), a.removeEventListener("mouseup",
|
|
876
|
+
return a.addEventListener("mousedown", u), a.addEventListener("mouseup", y), a.addEventListener("mouseleave", x), () => {
|
|
877
|
+
a.removeEventListener("mousedown", u), a.removeEventListener("mouseup", y), a.removeEventListener("mouseleave", x);
|
|
904
878
|
};
|
|
905
879
|
}, [t]);
|
|
906
880
|
const u = (a) => {
|
|
907
|
-
const
|
|
908
|
-
|
|
909
|
-
x: (a.clientX -
|
|
910
|
-
y: (a.clientY -
|
|
881
|
+
const v = t == null ? void 0 : t.current, g = v.getBoundingClientRect();
|
|
882
|
+
s(!0), d({
|
|
883
|
+
x: (a.clientX - g.left) / v.clientWidth * 100,
|
|
884
|
+
y: (a.clientY - g.top) / v.clientHeight * 100
|
|
911
885
|
});
|
|
912
|
-
},
|
|
913
|
-
|
|
914
|
-
},
|
|
915
|
-
|
|
886
|
+
}, x = (a) => {
|
|
887
|
+
s(!1);
|
|
888
|
+
}, y = (a) => {
|
|
889
|
+
s(!1);
|
|
916
890
|
};
|
|
917
|
-
return /* @__PURE__ */ i(z, { mode: "wait", children: (c || !c && !
|
|
891
|
+
return /* @__PURE__ */ i(z, { mode: "wait", children: (c || !c && !l) && /* @__PURE__ */ i(
|
|
918
892
|
U.div,
|
|
919
893
|
{
|
|
920
894
|
style: {
|
|
921
895
|
position: "absolute",
|
|
922
896
|
width: "100%",
|
|
923
897
|
height: "100%",
|
|
924
|
-
top:
|
|
925
|
-
left:
|
|
898
|
+
top: o.y + "%",
|
|
899
|
+
left: o.x + "%",
|
|
926
900
|
background: `color-mix(in srgb, var(--color-${e}) 12%, transparent)`,
|
|
927
901
|
pointerEvents: "none"
|
|
928
902
|
},
|
|
929
|
-
variants:
|
|
903
|
+
variants: r,
|
|
930
904
|
initial: "initial",
|
|
931
905
|
animate: "animate",
|
|
932
906
|
exit: { opacity: 0, transition: { duration: 0 } },
|
|
933
|
-
onAnimationComplete: () =>
|
|
907
|
+
onAnimationComplete: () => n(!0),
|
|
934
908
|
className: "transform -translate-x-1/2 -translate-y-1/2"
|
|
935
909
|
}
|
|
936
910
|
) });
|
|
937
|
-
},
|
|
911
|
+
}, Ye = q(
|
|
938
912
|
"customScroll",
|
|
939
|
-
({ orientation: e, draggable: t, isDragging:
|
|
913
|
+
({ orientation: e, draggable: t, isDragging: r }) => ({
|
|
940
914
|
customScroll: f(
|
|
941
915
|
"flex h-full w-full",
|
|
942
916
|
t && [
|
|
@@ -944,8 +918,8 @@ const Re = (e) => {
|
|
|
944
918
|
"[&::-webkit-scrollbar-track]:bg-transparent",
|
|
945
919
|
"[&::-webkit-scrollbar-thumb]:rounded-full",
|
|
946
920
|
{
|
|
947
|
-
"[&::-webkit-scrollbar-thumb]:bg-outline":
|
|
948
|
-
"[&::-webkit-scrollbar-thumb]:bg-transparent": !
|
|
921
|
+
"[&::-webkit-scrollbar-thumb]:bg-outline": r,
|
|
922
|
+
"[&::-webkit-scrollbar-thumb]:bg-transparent": !r
|
|
949
923
|
},
|
|
950
924
|
{ "[&::-webkit-scrollbar]:h-2": e === "horizontal" },
|
|
951
925
|
{ "[&::-webkit-scrollbar]:w-2": e === "vertical" }
|
|
@@ -953,8 +927,8 @@ const Re = (e) => {
|
|
|
953
927
|
{
|
|
954
928
|
"overflow-y-scroll flex-col": e === "vertical",
|
|
955
929
|
"overflow-x-scroll flex-row": e === "horizontal",
|
|
956
|
-
"cursor-grab": t && !
|
|
957
|
-
"cursor-grabbing": t &&
|
|
930
|
+
"cursor-grab": t && !r,
|
|
931
|
+
"cursor-grabbing": t && r
|
|
958
932
|
}
|
|
959
933
|
),
|
|
960
934
|
track: f("overflow-hidden flex-none sticky", {
|
|
@@ -962,126 +936,126 @@ const Re = (e) => {
|
|
|
962
936
|
"top-0 w-full": e === "vertical"
|
|
963
937
|
})
|
|
964
938
|
})
|
|
965
|
-
),
|
|
939
|
+
), he = ({
|
|
966
940
|
children: e,
|
|
967
941
|
orientation: t = "vertical",
|
|
968
|
-
scrollSize:
|
|
969
|
-
onScroll:
|
|
970
|
-
className:
|
|
942
|
+
scrollSize: r,
|
|
943
|
+
onScroll: l,
|
|
944
|
+
className: n,
|
|
971
945
|
draggable: c = !1,
|
|
972
|
-
throttleDuration:
|
|
946
|
+
throttleDuration: s = 75
|
|
973
947
|
}) => {
|
|
974
|
-
var V,
|
|
975
|
-
const
|
|
948
|
+
var V, X;
|
|
949
|
+
const o = P(null), d = P(null), [u, x] = S({
|
|
976
950
|
width: null,
|
|
977
951
|
height: null
|
|
978
952
|
});
|
|
979
|
-
|
|
980
|
-
if (!
|
|
981
|
-
const
|
|
982
|
-
for (const
|
|
983
|
-
|
|
984
|
-
width:
|
|
985
|
-
height:
|
|
953
|
+
W(() => {
|
|
954
|
+
if (!o.current) return;
|
|
955
|
+
const k = new ResizeObserver((F) => {
|
|
956
|
+
for (const O of F)
|
|
957
|
+
O.target === o.current && x({
|
|
958
|
+
width: O.contentRect.width,
|
|
959
|
+
height: O.contentRect.height
|
|
986
960
|
// On observe aussi la hauteur maintenant
|
|
987
961
|
});
|
|
988
962
|
});
|
|
989
|
-
return
|
|
990
|
-
|
|
963
|
+
return k.observe(o.current), () => {
|
|
964
|
+
k.disconnect();
|
|
991
965
|
};
|
|
992
|
-
}, [
|
|
993
|
-
const
|
|
994
|
-
const
|
|
995
|
-
return
|
|
996
|
-
width:
|
|
997
|
-
height:
|
|
966
|
+
}, [o]);
|
|
967
|
+
const y = P(null), a = P(null), v = () => {
|
|
968
|
+
const k = d.current;
|
|
969
|
+
return k ? {
|
|
970
|
+
width: r ?? k.scrollWidth,
|
|
971
|
+
height: r ?? k.scrollHeight
|
|
998
972
|
} : null;
|
|
999
|
-
},
|
|
1000
|
-
const
|
|
1001
|
-
return
|
|
1002
|
-
width:
|
|
1003
|
-
height:
|
|
973
|
+
}, g = () => {
|
|
974
|
+
const k = o.current;
|
|
975
|
+
return k ? {
|
|
976
|
+
width: k.clientWidth,
|
|
977
|
+
height: k.clientHeight
|
|
1004
978
|
// Correction ici pour retourner la bonne hauteur
|
|
1005
979
|
} : null;
|
|
1006
|
-
}, { scrollYProgress: b, scrollXProgress:
|
|
1007
|
-
container:
|
|
1008
|
-
}),
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
(
|
|
1012
|
-
!a.current || !
|
|
1013
|
-
scrollProgress:
|
|
1014
|
-
scroll:
|
|
1015
|
-
scrollTotal:
|
|
980
|
+
}, { scrollYProgress: b, scrollXProgress: E } = Le({
|
|
981
|
+
container: o
|
|
982
|
+
}), M = P(null);
|
|
983
|
+
M.current || (M.current = Ie(
|
|
984
|
+
s,
|
|
985
|
+
(k, F) => {
|
|
986
|
+
!a.current || !y.current || l && (t === "horizontal" && F === "x" && l({
|
|
987
|
+
scrollProgress: k,
|
|
988
|
+
scroll: k * y.current.width,
|
|
989
|
+
scrollTotal: y.current.width,
|
|
1016
990
|
scrollVisible: a.current.width
|
|
1017
|
-
}), t === "vertical" &&
|
|
1018
|
-
scrollProgress:
|
|
1019
|
-
scroll:
|
|
1020
|
-
scrollTotal:
|
|
991
|
+
}), t === "vertical" && F === "y" && l({
|
|
992
|
+
scrollProgress: k,
|
|
993
|
+
scroll: k * y.current.height,
|
|
994
|
+
scrollTotal: y.current.height,
|
|
1021
995
|
scrollVisible: a.current.height
|
|
1022
996
|
}));
|
|
1023
997
|
}
|
|
1024
998
|
));
|
|
1025
|
-
const
|
|
1026
|
-
|
|
999
|
+
const w = (k, F) => {
|
|
1000
|
+
M.current && M.current(k, F);
|
|
1027
1001
|
};
|
|
1028
|
-
|
|
1029
|
-
u.width &&
|
|
1030
|
-
}, [u]),
|
|
1031
|
-
|
|
1032
|
-
}),
|
|
1033
|
-
|
|
1002
|
+
W(() => {
|
|
1003
|
+
u.width && w(E.get(), "x"), u.height && w(b.get(), "y");
|
|
1004
|
+
}, [u]), se(E, "change", (k) => {
|
|
1005
|
+
w(k, "x");
|
|
1006
|
+
}), se(b, "change", (k) => {
|
|
1007
|
+
w(k, "y");
|
|
1034
1008
|
});
|
|
1035
|
-
const [N,
|
|
1036
|
-
|
|
1037
|
-
N || !a.current || !
|
|
1009
|
+
const [N, R] = S(!1);
|
|
1010
|
+
de(() => {
|
|
1011
|
+
N || !a.current || !y.current || !l || (l({
|
|
1038
1012
|
scrollProgress: 0,
|
|
1039
1013
|
scroll: 0,
|
|
1040
|
-
scrollTotal: t == "vertical" ?
|
|
1014
|
+
scrollTotal: t == "vertical" ? y.current.height : y.current.width,
|
|
1041
1015
|
scrollVisible: t == "vertical" ? a.current.height : a.current.width
|
|
1042
|
-
}),
|
|
1043
|
-
}, [a,
|
|
1044
|
-
const [
|
|
1045
|
-
isDragging:
|
|
1016
|
+
}), R(!0));
|
|
1017
|
+
}, [a, y, l]), y.current = v(), a.current = g();
|
|
1018
|
+
const [L, C] = S(!1), D = Ye({
|
|
1019
|
+
isDragging: L,
|
|
1046
1020
|
children: e,
|
|
1047
|
-
className:
|
|
1048
|
-
onScroll:
|
|
1021
|
+
className: n,
|
|
1022
|
+
onScroll: l,
|
|
1049
1023
|
orientation: t,
|
|
1050
|
-
scrollSize:
|
|
1024
|
+
scrollSize: r,
|
|
1051
1025
|
draggable: c,
|
|
1052
|
-
throttleDuration:
|
|
1053
|
-
}), [
|
|
1026
|
+
throttleDuration: s
|
|
1027
|
+
}), [B, I] = S(0), [m, j] = S(0), Y = (k) => {
|
|
1054
1028
|
if (!c) return;
|
|
1055
|
-
const
|
|
1056
|
-
if (!
|
|
1057
|
-
const J = (
|
|
1058
|
-
|
|
1059
|
-
},
|
|
1060
|
-
const
|
|
1061
|
-
|
|
1062
|
-
}, Z = (
|
|
1063
|
-
|
|
1064
|
-
},
|
|
1029
|
+
const F = o.current;
|
|
1030
|
+
if (!F || B == null) return;
|
|
1031
|
+
const J = (k.pageX - F.offsetLeft - B) * 1.5;
|
|
1032
|
+
F.scrollLeft = m - J;
|
|
1033
|
+
}, G = (k) => {
|
|
1034
|
+
const F = o.current;
|
|
1035
|
+
F && (C(!0), I(k.pageX - F.offsetLeft), j(F.scrollLeft));
|
|
1036
|
+
}, Z = (k) => {
|
|
1037
|
+
L && (k.preventDefault(), Y(k));
|
|
1038
|
+
}, K = () => {
|
|
1065
1039
|
C(!1);
|
|
1066
1040
|
}, A = () => {
|
|
1067
1041
|
C(!1);
|
|
1068
|
-
},
|
|
1069
|
-
|
|
1070
|
-
},
|
|
1071
|
-
return
|
|
1072
|
-
|
|
1073
|
-
}, []), /* @__PURE__ */
|
|
1042
|
+
}, h = (k) => {
|
|
1043
|
+
k.preventDefault();
|
|
1044
|
+
}, p = P(null);
|
|
1045
|
+
return W(() => () => {
|
|
1046
|
+
p.current && clearTimeout(p.current);
|
|
1047
|
+
}, []), /* @__PURE__ */ $(
|
|
1074
1048
|
"div",
|
|
1075
1049
|
{
|
|
1076
|
-
className:
|
|
1077
|
-
ref:
|
|
1078
|
-
onMouseDown:
|
|
1050
|
+
className: D.customScroll,
|
|
1051
|
+
ref: o,
|
|
1052
|
+
onMouseDown: G,
|
|
1079
1053
|
onMouseMove: Z,
|
|
1080
|
-
onMouseUp:
|
|
1054
|
+
onMouseUp: K,
|
|
1081
1055
|
onMouseLeave: A,
|
|
1082
|
-
onDragStart:
|
|
1083
|
-
onScroll: (
|
|
1084
|
-
|
|
1056
|
+
onDragStart: h,
|
|
1057
|
+
onScroll: (k) => {
|
|
1058
|
+
L || (I(null), C(!0), p.current && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
1085
1059
|
C(!1);
|
|
1086
1060
|
}, 1e3));
|
|
1087
1061
|
},
|
|
@@ -1090,27 +1064,27 @@ const Re = (e) => {
|
|
|
1090
1064
|
"div",
|
|
1091
1065
|
{
|
|
1092
1066
|
ref: d,
|
|
1093
|
-
style: t === "vertical" ? { height: ((V = a == null ? void 0 : a.current) == null ? void 0 : V.height) ?? "100%" } : { width: ((
|
|
1094
|
-
className:
|
|
1067
|
+
style: t === "vertical" ? { height: ((V = a == null ? void 0 : a.current) == null ? void 0 : V.height) ?? "100%" } : { width: ((X = a == null ? void 0 : a.current) == null ? void 0 : X.width) ?? "100%" },
|
|
1068
|
+
className: D.track,
|
|
1095
1069
|
children: e
|
|
1096
1070
|
}
|
|
1097
1071
|
),
|
|
1098
|
-
a.current &&
|
|
1099
|
-
t === "vertical" &&
|
|
1072
|
+
a.current && y.current && /* @__PURE__ */ $(ne, { children: [
|
|
1073
|
+
t === "vertical" && y.current.height > a.current.height && /* @__PURE__ */ i(
|
|
1100
1074
|
U.div,
|
|
1101
1075
|
{
|
|
1102
1076
|
className: "flex-none",
|
|
1103
1077
|
style: {
|
|
1104
|
-
height:
|
|
1078
|
+
height: y.current.height - a.current.height
|
|
1105
1079
|
}
|
|
1106
1080
|
}
|
|
1107
1081
|
),
|
|
1108
|
-
t === "horizontal" &&
|
|
1082
|
+
t === "horizontal" && y.current.width > a.current.width && /* @__PURE__ */ i(
|
|
1109
1083
|
U.div,
|
|
1110
1084
|
{
|
|
1111
1085
|
className: "flex-none",
|
|
1112
1086
|
style: {
|
|
1113
|
-
width:
|
|
1087
|
+
width: y.current.width - a.current.width
|
|
1114
1088
|
}
|
|
1115
1089
|
}
|
|
1116
1090
|
)
|
|
@@ -1118,142 +1092,157 @@ const Re = (e) => {
|
|
|
1118
1092
|
]
|
|
1119
1093
|
}
|
|
1120
1094
|
);
|
|
1121
|
-
},
|
|
1095
|
+
}, yt = ({
|
|
1122
1096
|
children: e,
|
|
1123
1097
|
transition: t = ".5s",
|
|
1124
|
-
orientation:
|
|
1125
|
-
throttleDuration:
|
|
1126
|
-
...
|
|
1098
|
+
orientation: r = "vertical",
|
|
1099
|
+
throttleDuration: l = 25,
|
|
1100
|
+
...n
|
|
1127
1101
|
}) => {
|
|
1128
|
-
const [c,
|
|
1129
|
-
|
|
1102
|
+
const [c, s] = S(null), o = me((c == null ? void 0 : c.scrollProgress) ?? 0), d = oe(
|
|
1103
|
+
o,
|
|
1130
1104
|
[0, 1],
|
|
1131
1105
|
[0, 1 - ((c == null ? void 0 : c.scrollVisible) ?? 0) / ((c == null ? void 0 : c.scrollTotal) ?? 0)]
|
|
1132
|
-
), u =
|
|
1106
|
+
), u = oe(
|
|
1133
1107
|
d,
|
|
1134
1108
|
(a) => `${-a * 100}%`
|
|
1135
|
-
),
|
|
1136
|
-
|
|
1137
|
-
},
|
|
1138
|
-
return
|
|
1139
|
-
const
|
|
1140
|
-
if (
|
|
1141
|
-
const
|
|
1142
|
-
console.log(`Delta temps : ${
|
|
1109
|
+
), x = (a) => {
|
|
1110
|
+
o.set(a.scrollProgress), a.scrollTotal > 0 && s(a);
|
|
1111
|
+
}, y = P(null);
|
|
1112
|
+
return se(u, "change", (a) => {
|
|
1113
|
+
const v = performance.now();
|
|
1114
|
+
if (y.current !== null) {
|
|
1115
|
+
const g = v - y.current;
|
|
1116
|
+
console.log(`Delta temps : ${g} ms`);
|
|
1143
1117
|
}
|
|
1144
|
-
|
|
1118
|
+
y.current = v, console.log(a);
|
|
1145
1119
|
}), /* @__PURE__ */ i(
|
|
1146
|
-
|
|
1120
|
+
he,
|
|
1147
1121
|
{
|
|
1148
|
-
onScroll:
|
|
1149
|
-
throttleDuration:
|
|
1150
|
-
...
|
|
1122
|
+
onScroll: x,
|
|
1123
|
+
throttleDuration: l,
|
|
1124
|
+
...n,
|
|
1151
1125
|
children: /* @__PURE__ */ i(
|
|
1152
1126
|
U.div,
|
|
1153
1127
|
{
|
|
1154
1128
|
className: f("transition-transform ease-out", {
|
|
1155
|
-
"w-fit h-full":
|
|
1156
|
-
"h-fit w-full":
|
|
1129
|
+
"w-fit h-full": r === "horizontal",
|
|
1130
|
+
"h-fit w-full": r === "vertical"
|
|
1157
1131
|
}),
|
|
1158
1132
|
style: {
|
|
1159
1133
|
transitionDuration: t,
|
|
1160
|
-
...
|
|
1134
|
+
...r == "vertical" ? { y: u } : { x: u }
|
|
1161
1135
|
},
|
|
1162
1136
|
children: e
|
|
1163
1137
|
}
|
|
1164
1138
|
)
|
|
1165
1139
|
}
|
|
1166
1140
|
);
|
|
1167
|
-
},
|
|
1141
|
+
}, _e = ({
|
|
1168
1142
|
targetRef: e,
|
|
1169
1143
|
children: t
|
|
1170
1144
|
}) => {
|
|
1171
|
-
const [
|
|
1172
|
-
const
|
|
1173
|
-
if (!
|
|
1174
|
-
const
|
|
1175
|
-
|
|
1145
|
+
const [r, l] = S(null), n = P(null), c = () => {
|
|
1146
|
+
const s = e.current;
|
|
1147
|
+
if (!s) return;
|
|
1148
|
+
const o = s.getBoundingClientRect();
|
|
1149
|
+
l({
|
|
1176
1150
|
position: "fixed",
|
|
1177
|
-
top:
|
|
1178
|
-
left:
|
|
1179
|
-
width:
|
|
1180
|
-
height:
|
|
1151
|
+
top: o.top,
|
|
1152
|
+
left: o.left,
|
|
1153
|
+
width: o.width,
|
|
1154
|
+
height: o.height,
|
|
1181
1155
|
pointerEvents: "none",
|
|
1182
1156
|
// si le wrapper ne doit pas capter les events
|
|
1183
1157
|
zIndex: 999
|
|
1184
1158
|
// personnalise si besoin
|
|
1185
1159
|
});
|
|
1186
1160
|
};
|
|
1187
|
-
return
|
|
1188
|
-
const
|
|
1189
|
-
if (
|
|
1190
|
-
return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c),
|
|
1191
|
-
var
|
|
1192
|
-
window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), (
|
|
1161
|
+
return W(() => {
|
|
1162
|
+
const s = e.current;
|
|
1163
|
+
if (s)
|
|
1164
|
+
return c(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), n.current = new ResizeObserver(c), n.current.observe(s), () => {
|
|
1165
|
+
var o;
|
|
1166
|
+
window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), (o = n.current) == null || o.disconnect();
|
|
1193
1167
|
};
|
|
1194
|
-
}, [e]),
|
|
1195
|
-
},
|
|
1168
|
+
}, [e]), r ? Ee(/* @__PURE__ */ i("div", { style: r, children: t }), document.body) : null;
|
|
1169
|
+
}, Ze = ({
|
|
1196
1170
|
variant: e = "filled",
|
|
1197
1171
|
disabled: t = !1,
|
|
1198
|
-
icon:
|
|
1199
|
-
href:
|
|
1200
|
-
label:
|
|
1172
|
+
icon: r,
|
|
1173
|
+
href: l,
|
|
1174
|
+
label: n,
|
|
1201
1175
|
className: c,
|
|
1202
|
-
iconPosition:
|
|
1203
|
-
loading:
|
|
1176
|
+
iconPosition: s = "left",
|
|
1177
|
+
loading: o = !1,
|
|
1204
1178
|
shape: d = "rounded",
|
|
1205
1179
|
onClick: u,
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1180
|
+
onToggle: x,
|
|
1181
|
+
activated: y,
|
|
1182
|
+
ref: a,
|
|
1183
|
+
size: v = "medium",
|
|
1184
|
+
allowShapeTransformation: g = !0,
|
|
1185
|
+
transition: b,
|
|
1186
|
+
children: E,
|
|
1187
|
+
...M
|
|
1211
1188
|
}) => {
|
|
1212
|
-
const
|
|
1213
|
-
|
|
1214
|
-
|
|
1189
|
+
const w = l ? "a" : "button", N = P(null), R = a || N, [L, C] = _.useState(y);
|
|
1190
|
+
W(() => {
|
|
1191
|
+
C(y);
|
|
1192
|
+
}, [y]), b = { duration: 0.3, ...b };
|
|
1193
|
+
let D;
|
|
1194
|
+
x ? x && (D = (m) => {
|
|
1195
|
+
t && m.preventDefault(), C(!L), x(!!L);
|
|
1196
|
+
}) : D = (m) => {
|
|
1197
|
+
t && m.preventDefault(), u && u(m);
|
|
1198
|
+
};
|
|
1199
|
+
const B = Ce({
|
|
1200
|
+
allowShapeTransformation: g,
|
|
1201
|
+
size: v,
|
|
1215
1202
|
shape: d,
|
|
1216
|
-
href:
|
|
1203
|
+
href: l,
|
|
1217
1204
|
disabled: t,
|
|
1218
|
-
icon:
|
|
1219
|
-
iconPosition:
|
|
1220
|
-
label:
|
|
1221
|
-
loading:
|
|
1205
|
+
icon: r,
|
|
1206
|
+
iconPosition: s,
|
|
1207
|
+
label: n,
|
|
1208
|
+
loading: o,
|
|
1222
1209
|
variant: e,
|
|
1223
|
-
transition:
|
|
1224
|
-
className: c
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1210
|
+
transition: b,
|
|
1211
|
+
className: c,
|
|
1212
|
+
isActive: L ?? !1,
|
|
1213
|
+
onToggle: x,
|
|
1214
|
+
activated: L
|
|
1215
|
+
}), I = r ? /* @__PURE__ */ i(Q, { icon: r, className: B.icon }) : /* @__PURE__ */ i(ne, {});
|
|
1216
|
+
return console.log("gfegrger", x), console.log("test", L, x, D), /* @__PURE__ */ i(
|
|
1217
|
+
w,
|
|
1228
1218
|
{
|
|
1229
|
-
ref:
|
|
1230
|
-
href:
|
|
1231
|
-
className:
|
|
1232
|
-
...
|
|
1233
|
-
onClick:
|
|
1234
|
-
t ? k.preventDefault() : u && u(k);
|
|
1235
|
-
},
|
|
1219
|
+
ref: R,
|
|
1220
|
+
href: l,
|
|
1221
|
+
className: B.button,
|
|
1222
|
+
...M,
|
|
1223
|
+
onClick: D,
|
|
1236
1224
|
disabled: t,
|
|
1237
|
-
|
|
1225
|
+
"aria-pressed": x ? L : void 0,
|
|
1226
|
+
children: /* @__PURE__ */ $(
|
|
1238
1227
|
"div",
|
|
1239
1228
|
{
|
|
1240
|
-
className:
|
|
1241
|
-
style: { transition:
|
|
1229
|
+
className: B.container,
|
|
1230
|
+
style: { transition: b.duration + "s" },
|
|
1242
1231
|
children: [
|
|
1243
|
-
/* @__PURE__ */ i("div", { className:
|
|
1244
|
-
|
|
1232
|
+
/* @__PURE__ */ i("div", { className: B.stateLayer, children: !t && /* @__PURE__ */ i(
|
|
1233
|
+
re,
|
|
1245
1234
|
{
|
|
1246
1235
|
colorName: e === "elevated" && "primary" || e === "filled" && "on-primary" || e === "filledTonal" && "on-secondary-container" || e === "outlined" && "primary" || e === "text" && "primary" || "",
|
|
1247
|
-
triggerRef:
|
|
1236
|
+
triggerRef: R
|
|
1248
1237
|
}
|
|
1249
1238
|
) }),
|
|
1250
|
-
|
|
1251
|
-
|
|
1239
|
+
s === "left" && I,
|
|
1240
|
+
o && /* @__PURE__ */ i(
|
|
1252
1241
|
"div",
|
|
1253
1242
|
{
|
|
1254
1243
|
className: "!absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2",
|
|
1255
1244
|
children: /* @__PURE__ */ i(
|
|
1256
|
-
|
|
1245
|
+
He,
|
|
1257
1246
|
{
|
|
1258
1247
|
className: () => ({
|
|
1259
1248
|
progressIndicator: "h-6 w-6",
|
|
@@ -1285,48 +1274,48 @@ const Re = (e) => {
|
|
|
1285
1274
|
)
|
|
1286
1275
|
}
|
|
1287
1276
|
),
|
|
1288
|
-
/* @__PURE__ */ i("span", { className:
|
|
1289
|
-
|
|
1277
|
+
/* @__PURE__ */ i("span", { className: B.label, children: n ?? E }),
|
|
1278
|
+
s === "right" && I
|
|
1290
1279
|
]
|
|
1291
1280
|
}
|
|
1292
1281
|
)
|
|
1293
1282
|
}
|
|
1294
1283
|
);
|
|
1295
|
-
},
|
|
1284
|
+
}, xt = ({
|
|
1296
1285
|
variant: e = "outlined",
|
|
1297
1286
|
className: t,
|
|
1298
|
-
children:
|
|
1299
|
-
isInteractive:
|
|
1300
|
-
ref:
|
|
1287
|
+
children: r,
|
|
1288
|
+
isInteractive: l = !1,
|
|
1289
|
+
ref: n,
|
|
1301
1290
|
...c
|
|
1302
1291
|
}) => {
|
|
1303
|
-
const
|
|
1304
|
-
return /* @__PURE__ */
|
|
1305
|
-
/* @__PURE__ */ i("div", { className:
|
|
1306
|
-
|
|
1292
|
+
const s = Be({ className: t, isInteractive: l, variant: e }), o = P(null), d = n || o;
|
|
1293
|
+
return /* @__PURE__ */ $("div", { ...c, ref: d, className: s.card, children: [
|
|
1294
|
+
/* @__PURE__ */ i("div", { className: s.stateLayer, children: l && /* @__PURE__ */ i(re, { colorName: "on-surface", triggerRef: d }) }),
|
|
1295
|
+
r
|
|
1307
1296
|
] });
|
|
1308
|
-
},
|
|
1309
|
-
const [
|
|
1310
|
-
return c + d * (
|
|
1311
|
-
},
|
|
1297
|
+
}, Je = (e, t, r = [0, 1]) => {
|
|
1298
|
+
const [l, n] = t, [c, s] = r, d = (Math.max(l, Math.min(e, n)) - l) / (n - l);
|
|
1299
|
+
return c + d * (s - c);
|
|
1300
|
+
}, Qe = ({
|
|
1312
1301
|
className: e,
|
|
1313
1302
|
children: t,
|
|
1314
|
-
width:
|
|
1315
|
-
index:
|
|
1316
|
-
ref:
|
|
1303
|
+
width: r = 1,
|
|
1304
|
+
index: l = 0,
|
|
1305
|
+
ref: n,
|
|
1317
1306
|
...c
|
|
1318
1307
|
}) => {
|
|
1319
|
-
const
|
|
1308
|
+
const s = P(null), o = n || s, d = De({
|
|
1320
1309
|
className: e,
|
|
1321
|
-
index:
|
|
1322
|
-
width:
|
|
1310
|
+
index: l,
|
|
1311
|
+
width: r,
|
|
1323
1312
|
children: t
|
|
1324
1313
|
});
|
|
1325
1314
|
return /* @__PURE__ */ i(
|
|
1326
1315
|
U.div,
|
|
1327
1316
|
{
|
|
1328
|
-
ref:
|
|
1329
|
-
animate: { width:
|
|
1317
|
+
ref: o,
|
|
1318
|
+
animate: { width: r + "px" },
|
|
1330
1319
|
transition: {
|
|
1331
1320
|
duration: 0.5,
|
|
1332
1321
|
ease: "linear"
|
|
@@ -1336,167 +1325,167 @@ const Re = (e) => {
|
|
|
1336
1325
|
children: t
|
|
1337
1326
|
}
|
|
1338
1327
|
);
|
|
1339
|
-
},
|
|
1328
|
+
}, gt = ({
|
|
1340
1329
|
variant: e = "hero",
|
|
1341
1330
|
className: t,
|
|
1342
|
-
children:
|
|
1343
|
-
ref:
|
|
1344
|
-
marginPourcent:
|
|
1331
|
+
children: r,
|
|
1332
|
+
ref: l,
|
|
1333
|
+
marginPourcent: n = 0,
|
|
1345
1334
|
inputRange: c = [0.21, 0.65],
|
|
1346
|
-
outputRange:
|
|
1347
|
-
gap:
|
|
1335
|
+
outputRange: s = [42, 300],
|
|
1336
|
+
gap: o = 8,
|
|
1348
1337
|
onChange: d,
|
|
1349
1338
|
scrollSensitivity: u = 1.25,
|
|
1350
|
-
...
|
|
1339
|
+
...x
|
|
1351
1340
|
}) => {
|
|
1352
|
-
var
|
|
1353
|
-
const
|
|
1341
|
+
var K, A;
|
|
1342
|
+
const y = P(null), a = l || y, v = Ve({
|
|
1354
1343
|
className: t,
|
|
1355
|
-
children:
|
|
1344
|
+
children: r,
|
|
1356
1345
|
variant: e,
|
|
1357
1346
|
inputRange: c,
|
|
1358
|
-
outputRange:
|
|
1359
|
-
marginPourcent:
|
|
1347
|
+
outputRange: s,
|
|
1348
|
+
marginPourcent: n,
|
|
1360
1349
|
onChange: d,
|
|
1361
|
-
gap:
|
|
1350
|
+
gap: o,
|
|
1362
1351
|
scrollSensitivity: u
|
|
1363
|
-
}),
|
|
1364
|
-
(
|
|
1365
|
-
), b =
|
|
1366
|
-
var
|
|
1367
|
-
if (!b.current || !a.current || !
|
|
1368
|
-
const { scrollVisible:
|
|
1369
|
-
function V(
|
|
1370
|
-
return
|
|
1371
|
-
(T) => (T - J) / Math.abs(
|
|
1352
|
+
}), g = _.Children.toArray(r).filter(
|
|
1353
|
+
(h) => _.isValidElement(h) && h.type === Qe
|
|
1354
|
+
), b = P(null), [E, M] = S([]), [w, N] = S(null), R = () => {
|
|
1355
|
+
var F;
|
|
1356
|
+
if (!b.current || !a.current || !w) return [];
|
|
1357
|
+
const { scrollVisible: h, scrollProgress: p } = w;
|
|
1358
|
+
function V(O, J) {
|
|
1359
|
+
return O.map(
|
|
1360
|
+
(T) => (T - J) / Math.abs(O[1] - O[0])
|
|
1372
1361
|
);
|
|
1373
1362
|
}
|
|
1374
|
-
let
|
|
1375
|
-
if (!
|
|
1376
|
-
let
|
|
1377
|
-
return
|
|
1363
|
+
let X = g.map((O, J) => {
|
|
1364
|
+
if (!L[J].current || !b.current) return 0;
|
|
1365
|
+
let te = J / (g.length - 1);
|
|
1366
|
+
return te > 1 && (te = 1), te < 0 && (te = 0), te;
|
|
1378
1367
|
});
|
|
1379
|
-
|
|
1380
|
-
let
|
|
1381
|
-
return
|
|
1382
|
-
J === 0 &&
|
|
1383
|
-
let T =
|
|
1384
|
-
T <
|
|
1385
|
-
}),
|
|
1386
|
-
},
|
|
1387
|
-
|
|
1368
|
+
X = V(X, p);
|
|
1369
|
+
let k = ((((F = a.current) == null ? void 0 : F.clientWidth) ?? h) - (s[0] + o)) / (s[1] + o);
|
|
1370
|
+
return X.map((O, J) => ({ value: Math.abs(O), originalIndex: J })).sort((O, J) => O.value - J.value).forEach((O, J) => {
|
|
1371
|
+
J === 0 && D(O.originalIndex);
|
|
1372
|
+
let T = Je(k, [0, 1], [0, s[1]]);
|
|
1373
|
+
T < s[0] && (T = s[0]), k--, X[O.originalIndex] = T;
|
|
1374
|
+
}), X;
|
|
1375
|
+
}, L = P([]).current, [C, D] = S(0);
|
|
1376
|
+
W(() => {
|
|
1388
1377
|
d && d(C);
|
|
1389
|
-
}, [C]),
|
|
1390
|
-
|
|
1378
|
+
}, [C]), L.length !== g.length && g.forEach((h, p) => {
|
|
1379
|
+
L[p] || (L[p] = _.createRef());
|
|
1391
1380
|
});
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1381
|
+
const B = g.map((h, p) => _.cloneElement(
|
|
1382
|
+
h,
|
|
1394
1383
|
{
|
|
1395
|
-
width:
|
|
1396
|
-
ref:
|
|
1397
|
-
key:
|
|
1398
|
-
index:
|
|
1384
|
+
width: E[p],
|
|
1385
|
+
ref: L[p],
|
|
1386
|
+
key: p,
|
|
1387
|
+
index: p
|
|
1399
1388
|
}
|
|
1400
|
-
)),
|
|
1401
|
-
|
|
1389
|
+
)), I = me((w == null ? void 0 : w.scrollProgress) ?? 0), m = oe(
|
|
1390
|
+
I,
|
|
1402
1391
|
[0, 1],
|
|
1403
1392
|
[
|
|
1404
1393
|
0,
|
|
1405
|
-
1 - (((
|
|
1394
|
+
1 - (((K = a.current) == null ? void 0 : K.clientWidth) ?? 0) / (((A = b == null ? void 0 : b.current) == null ? void 0 : A.clientWidth) ?? 0)
|
|
1406
1395
|
]
|
|
1407
|
-
), j =
|
|
1396
|
+
), j = oe(
|
|
1408
1397
|
m,
|
|
1409
|
-
(
|
|
1410
|
-
),
|
|
1411
|
-
|
|
1398
|
+
(h) => `${-h * 100}%`
|
|
1399
|
+
), Y = (h) => {
|
|
1400
|
+
h.scrollTotal > 0 && N(h);
|
|
1412
1401
|
};
|
|
1413
|
-
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1416
|
-
}, [
|
|
1417
|
-
const [
|
|
1418
|
-
return
|
|
1419
|
-
let
|
|
1420
|
-
|
|
1421
|
-
const
|
|
1422
|
-
Z(
|
|
1423
|
-
}, [a,
|
|
1424
|
-
|
|
1402
|
+
W(() => {
|
|
1403
|
+
const h = R();
|
|
1404
|
+
M(h);
|
|
1405
|
+
}, [w]);
|
|
1406
|
+
const [G, Z] = S(0);
|
|
1407
|
+
return de(() => {
|
|
1408
|
+
let h = s[1];
|
|
1409
|
+
w && h > w.scrollVisible && (h = w.scrollVisible);
|
|
1410
|
+
const p = (h + o) * B.length / u;
|
|
1411
|
+
Z(p);
|
|
1412
|
+
}, [a, L, w]), /* @__PURE__ */ i("div", { className: v.carousel, ref: a, ...x, children: /* @__PURE__ */ i(
|
|
1413
|
+
he,
|
|
1425
1414
|
{
|
|
1426
1415
|
draggable: !0,
|
|
1427
1416
|
orientation: "horizontal",
|
|
1428
|
-
onScroll:
|
|
1429
|
-
scrollSize:
|
|
1417
|
+
onScroll: Y,
|
|
1418
|
+
scrollSize: G,
|
|
1430
1419
|
children: /* @__PURE__ */ i(
|
|
1431
1420
|
U.div,
|
|
1432
1421
|
{
|
|
1433
|
-
className:
|
|
1422
|
+
className: v.track,
|
|
1434
1423
|
ref: b,
|
|
1435
1424
|
style: {
|
|
1436
1425
|
transitionDuration: "0.5s",
|
|
1437
1426
|
transitionTimingFunction: "ease-out",
|
|
1438
|
-
gap: `${
|
|
1427
|
+
gap: `${o}px`,
|
|
1439
1428
|
x: j
|
|
1440
1429
|
},
|
|
1441
|
-
children:
|
|
1430
|
+
children: B
|
|
1442
1431
|
}
|
|
1443
1432
|
)
|
|
1444
1433
|
}
|
|
1445
1434
|
) });
|
|
1446
|
-
},
|
|
1435
|
+
}, wt = ({
|
|
1447
1436
|
orientation: e = "horizontal",
|
|
1448
1437
|
className: t,
|
|
1449
|
-
...
|
|
1438
|
+
...r
|
|
1450
1439
|
}) => {
|
|
1451
|
-
const
|
|
1452
|
-
return /* @__PURE__ */ i("hr", { className:
|
|
1453
|
-
},
|
|
1440
|
+
const l = We({ orientation: e, className: t });
|
|
1441
|
+
return /* @__PURE__ */ i("hr", { className: l.divider, ...r });
|
|
1442
|
+
}, H = [];
|
|
1454
1443
|
for (let e = 0; e < 256; ++e)
|
|
1455
|
-
|
|
1456
|
-
function
|
|
1457
|
-
return (
|
|
1444
|
+
H.push((e + 256).toString(16).slice(1));
|
|
1445
|
+
function Ae(e, t = 0) {
|
|
1446
|
+
return (H[e[t + 0]] + H[e[t + 1]] + H[e[t + 2]] + H[e[t + 3]] + "-" + H[e[t + 4]] + H[e[t + 5]] + "-" + H[e[t + 6]] + H[e[t + 7]] + "-" + H[e[t + 8]] + H[e[t + 9]] + "-" + H[e[t + 10]] + H[e[t + 11]] + H[e[t + 12]] + H[e[t + 13]] + H[e[t + 14]] + H[e[t + 15]]).toLowerCase();
|
|
1458
1447
|
}
|
|
1459
|
-
let
|
|
1460
|
-
const
|
|
1461
|
-
function
|
|
1462
|
-
if (!
|
|
1448
|
+
let ae;
|
|
1449
|
+
const ze = new Uint8Array(16);
|
|
1450
|
+
function Te() {
|
|
1451
|
+
if (!ae) {
|
|
1463
1452
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1464
1453
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1465
|
-
|
|
1454
|
+
ae = crypto.getRandomValues.bind(crypto);
|
|
1466
1455
|
}
|
|
1467
|
-
return
|
|
1456
|
+
return ae(ze);
|
|
1468
1457
|
}
|
|
1469
|
-
const
|
|
1470
|
-
function
|
|
1471
|
-
var
|
|
1472
|
-
if (
|
|
1473
|
-
return
|
|
1458
|
+
const et = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ie = { randomUUID: et };
|
|
1459
|
+
function ce(e, t, r) {
|
|
1460
|
+
var n;
|
|
1461
|
+
if (ie.randomUUID && !e)
|
|
1462
|
+
return ie.randomUUID();
|
|
1474
1463
|
e = e || {};
|
|
1475
|
-
const
|
|
1476
|
-
if (
|
|
1464
|
+
const l = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Te();
|
|
1465
|
+
if (l.length < 16)
|
|
1477
1466
|
throw new Error("Random bytes length must be >= 16");
|
|
1478
|
-
return
|
|
1467
|
+
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Ae(l);
|
|
1479
1468
|
}
|
|
1480
|
-
const
|
|
1469
|
+
const ye = ({
|
|
1481
1470
|
variant: e = "plain",
|
|
1482
1471
|
buttons: t,
|
|
1483
|
-
className:
|
|
1484
|
-
children:
|
|
1485
|
-
title:
|
|
1472
|
+
className: r,
|
|
1473
|
+
children: l,
|
|
1474
|
+
title: n,
|
|
1486
1475
|
text: c,
|
|
1487
|
-
position:
|
|
1488
|
-
targetRef:
|
|
1476
|
+
position: s,
|
|
1477
|
+
targetRef: o,
|
|
1489
1478
|
ref: d,
|
|
1490
1479
|
trigger: u = ["hover", "focus"],
|
|
1491
|
-
...
|
|
1480
|
+
...x
|
|
1492
1481
|
}) => {
|
|
1493
|
-
if (!
|
|
1482
|
+
if (!l && !o)
|
|
1494
1483
|
throw new Error("ToolTip must have a child or a targetRef");
|
|
1495
1484
|
Array.isArray(u) || (u = [u]), t && !Array.isArray(t) && (t = [t]);
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1485
|
+
const y = P(null), a = o || y, [v, g] = S(null), [b] = S(ce()), [E, M] = S(!1), w = P(null);
|
|
1486
|
+
W(() => {
|
|
1498
1487
|
const m = (j) => {
|
|
1499
|
-
|
|
1488
|
+
g(j.detail);
|
|
1500
1489
|
};
|
|
1501
1490
|
return document.addEventListener("tooltip-update", m), () => {
|
|
1502
1491
|
document.removeEventListener(
|
|
@@ -1504,25 +1493,25 @@ const pe = ({
|
|
|
1504
1493
|
m
|
|
1505
1494
|
);
|
|
1506
1495
|
};
|
|
1507
|
-
}, []),
|
|
1508
|
-
|
|
1509
|
-
|
|
1496
|
+
}, []), W(() => {
|
|
1497
|
+
w.current && clearTimeout(w.current), v ? M(v === b) : w.current = setTimeout(() => {
|
|
1498
|
+
M(!1);
|
|
1510
1499
|
}, 1200);
|
|
1511
|
-
}, [
|
|
1500
|
+
}, [v, b]);
|
|
1512
1501
|
const N = () => {
|
|
1513
1502
|
if (u.includes("hover")) {
|
|
1514
1503
|
const m = new CustomEvent("tooltip-update", { detail: b });
|
|
1515
1504
|
document.dispatchEvent(m);
|
|
1516
1505
|
}
|
|
1517
|
-
},
|
|
1506
|
+
}, R = () => {
|
|
1518
1507
|
if (u.includes("hover")) {
|
|
1519
1508
|
const m = new CustomEvent("tooltip-update", { detail: null });
|
|
1520
1509
|
document.dispatchEvent(m);
|
|
1521
1510
|
}
|
|
1522
|
-
},
|
|
1511
|
+
}, L = () => {
|
|
1523
1512
|
if (u.includes("click")) {
|
|
1524
1513
|
const m = new CustomEvent("tooltip-update", {
|
|
1525
|
-
detail:
|
|
1514
|
+
detail: E ? null : b
|
|
1526
1515
|
});
|
|
1527
1516
|
document.dispatchEvent(m);
|
|
1528
1517
|
}
|
|
@@ -1531,53 +1520,53 @@ const pe = ({
|
|
|
1531
1520
|
const m = new CustomEvent("tooltip-update", { detail: b });
|
|
1532
1521
|
document.dispatchEvent(m);
|
|
1533
1522
|
}
|
|
1534
|
-
},
|
|
1523
|
+
}, D = () => {
|
|
1535
1524
|
if (u.includes("focus")) {
|
|
1536
1525
|
const m = new CustomEvent("tooltip-update", { detail: null });
|
|
1537
1526
|
document.dispatchEvent(m);
|
|
1538
1527
|
}
|
|
1539
1528
|
};
|
|
1540
|
-
|
|
1529
|
+
W(() => {
|
|
1541
1530
|
if (a != null && a.current) {
|
|
1542
1531
|
const m = a.current;
|
|
1543
|
-
return m.addEventListener("mouseenter", N), m.addEventListener("mouseleave",
|
|
1544
|
-
m.removeEventListener("mouseenter", N), m.removeEventListener("mouseleave",
|
|
1532
|
+
return m.addEventListener("mouseenter", N), m.addEventListener("mouseleave", R), m.addEventListener("click", L), m.addEventListener("focus", C), m.addEventListener("blur", D), () => {
|
|
1533
|
+
m.removeEventListener("mouseenter", N), m.removeEventListener("mouseleave", R), m.removeEventListener("click", L), m.removeEventListener("focus", C), m.removeEventListener("blur", D);
|
|
1545
1534
|
};
|
|
1546
1535
|
}
|
|
1547
|
-
}, [a, u, b,
|
|
1548
|
-
const
|
|
1549
|
-
if (!
|
|
1550
|
-
const m = a.current.getBoundingClientRect(), j = window.innerWidth,
|
|
1551
|
-
e === "plain" ?
|
|
1536
|
+
}, [a, u, b, E]);
|
|
1537
|
+
const B = !o && ee(l) ? le(l, { ref: y }) : l;
|
|
1538
|
+
if (!s && typeof window < "u" && a != null && a.current && !s) {
|
|
1539
|
+
const m = a.current.getBoundingClientRect(), j = window.innerWidth, Y = window.innerHeight, G = m.left / j, Z = m.top / Y;
|
|
1540
|
+
e === "plain" ? G < 1 / 3 ? s = "right" : G > 2 / 3 ? s = "left" : s = Z > 0.5 ? "top" : "bottom" : G < 1 / 2 && Z < 1 / 2 ? s = "bottom-right" : G > 1 / 2 && Z < 1 / 2 ? s = "bottom-left" : G > 1 / 2 && Z > 1 / 2 ? s = "top-left" : G < 1 / 2 && Z > 1 / 2 && (s = "top-right");
|
|
1552
1541
|
}
|
|
1553
|
-
const
|
|
1542
|
+
const I = qe({
|
|
1554
1543
|
variant: e,
|
|
1555
1544
|
buttons: t,
|
|
1556
|
-
className:
|
|
1557
|
-
title:
|
|
1545
|
+
className: r,
|
|
1546
|
+
title: n,
|
|
1558
1547
|
text: c,
|
|
1559
|
-
position:
|
|
1548
|
+
position: s,
|
|
1560
1549
|
trigger: u,
|
|
1561
|
-
targetRef:
|
|
1562
|
-
children:
|
|
1550
|
+
targetRef: o,
|
|
1551
|
+
children: l
|
|
1563
1552
|
});
|
|
1564
|
-
return /* @__PURE__ */
|
|
1565
|
-
|
|
1566
|
-
/* @__PURE__ */ i(z, { children:
|
|
1553
|
+
return /* @__PURE__ */ $(ne, { children: [
|
|
1554
|
+
B,
|
|
1555
|
+
/* @__PURE__ */ i(z, { children: E && /* @__PURE__ */ i(_e, { targetRef: a, children: /* @__PURE__ */ i(
|
|
1567
1556
|
U.div,
|
|
1568
1557
|
{
|
|
1569
|
-
initial: { opacity:
|
|
1558
|
+
initial: { opacity: v ? 1 : 0 },
|
|
1570
1559
|
animate: { opacity: 1 },
|
|
1571
|
-
transition: { duration:
|
|
1572
|
-
exit: { opacity:
|
|
1573
|
-
className:
|
|
1574
|
-
...
|
|
1560
|
+
transition: { duration: v ? 0 : 0.3 },
|
|
1561
|
+
exit: { opacity: v ? 1 : 0 },
|
|
1562
|
+
className: I.toolTip,
|
|
1563
|
+
...x,
|
|
1575
1564
|
onMouseEnter: N,
|
|
1576
|
-
onMouseLeave:
|
|
1577
|
-
children: /* @__PURE__ */
|
|
1565
|
+
onMouseLeave: R,
|
|
1566
|
+
children: /* @__PURE__ */ $(
|
|
1578
1567
|
U.div,
|
|
1579
1568
|
{
|
|
1580
|
-
className:
|
|
1569
|
+
className: I.container,
|
|
1581
1570
|
layoutId: "tool-tip",
|
|
1582
1571
|
transition: {
|
|
1583
1572
|
type: "spring",
|
|
@@ -1585,10 +1574,10 @@ const pe = ({
|
|
|
1585
1574
|
damping: 20
|
|
1586
1575
|
},
|
|
1587
1576
|
children: [
|
|
1588
|
-
|
|
1589
|
-
/* @__PURE__ */ i("div", { className:
|
|
1590
|
-
t && /* @__PURE__ */ i("div", { className:
|
|
1591
|
-
|
|
1577
|
+
n && /* @__PURE__ */ i("div", { className: I.subHead, children: n }),
|
|
1578
|
+
/* @__PURE__ */ i("div", { className: I.supportingText, children: c }),
|
|
1579
|
+
t && /* @__PURE__ */ i("div", { className: I.actions, children: Array.isArray(t) && t.map((m, j) => /* @__PURE__ */ i(
|
|
1580
|
+
Ze,
|
|
1592
1581
|
{
|
|
1593
1582
|
size: "small",
|
|
1594
1583
|
variant: "text",
|
|
@@ -1602,31 +1591,31 @@ const pe = ({
|
|
|
1602
1591
|
}
|
|
1603
1592
|
) }) })
|
|
1604
1593
|
] });
|
|
1605
|
-
},
|
|
1594
|
+
}, ue = ({
|
|
1606
1595
|
className: e,
|
|
1607
1596
|
label: t,
|
|
1608
|
-
variant:
|
|
1609
|
-
size:
|
|
1610
|
-
href:
|
|
1597
|
+
variant: r = "primary",
|
|
1598
|
+
size: l = "medium",
|
|
1599
|
+
href: n,
|
|
1611
1600
|
type: c,
|
|
1612
|
-
icon:
|
|
1613
|
-
isExtended:
|
|
1601
|
+
icon: s,
|
|
1602
|
+
isExtended: o = !1,
|
|
1614
1603
|
ref: d,
|
|
1615
1604
|
transition: u,
|
|
1616
|
-
...
|
|
1605
|
+
...x
|
|
1617
1606
|
}) => {
|
|
1618
|
-
const
|
|
1619
|
-
href:
|
|
1620
|
-
icon:
|
|
1621
|
-
isExtended:
|
|
1607
|
+
const y = n ? "a" : "button", a = $e({
|
|
1608
|
+
href: n,
|
|
1609
|
+
icon: s,
|
|
1610
|
+
isExtended: o,
|
|
1622
1611
|
label: t,
|
|
1623
|
-
size:
|
|
1624
|
-
variant:
|
|
1612
|
+
size: l,
|
|
1613
|
+
variant: r,
|
|
1625
1614
|
className: e,
|
|
1626
1615
|
transition: u
|
|
1627
1616
|
});
|
|
1628
1617
|
u = { duration: 0.3, ...u };
|
|
1629
|
-
const
|
|
1618
|
+
const v = P(null), g = d || v, b = {
|
|
1630
1619
|
visible: {
|
|
1631
1620
|
width: "auto",
|
|
1632
1621
|
marginLeft: 12,
|
|
@@ -1652,37 +1641,37 @@ const pe = ({
|
|
|
1652
1641
|
}
|
|
1653
1642
|
}
|
|
1654
1643
|
};
|
|
1655
|
-
return /* @__PURE__ */
|
|
1656
|
-
|
|
1644
|
+
return /* @__PURE__ */ $(
|
|
1645
|
+
y,
|
|
1657
1646
|
{
|
|
1658
|
-
...
|
|
1659
|
-
ref:
|
|
1660
|
-
href:
|
|
1661
|
-
"aria-label":
|
|
1647
|
+
...x,
|
|
1648
|
+
ref: g,
|
|
1649
|
+
href: n,
|
|
1650
|
+
"aria-label": o ? void 0 : t,
|
|
1662
1651
|
className: a.fab,
|
|
1663
1652
|
children: [
|
|
1664
1653
|
/* @__PURE__ */ i(
|
|
1665
|
-
|
|
1654
|
+
ye,
|
|
1666
1655
|
{
|
|
1667
|
-
trigger:
|
|
1656
|
+
trigger: o ? null : void 0,
|
|
1668
1657
|
text: t,
|
|
1669
|
-
targetRef:
|
|
1658
|
+
targetRef: g
|
|
1670
1659
|
}
|
|
1671
1660
|
),
|
|
1672
1661
|
/* @__PURE__ */ i("span", { className: a.stateLayer, children: /* @__PURE__ */ i(
|
|
1673
|
-
|
|
1662
|
+
re,
|
|
1674
1663
|
{
|
|
1675
1664
|
colorName: f({
|
|
1676
|
-
primary:
|
|
1677
|
-
"on-primary-container":
|
|
1678
|
-
"on-secondary-container":
|
|
1679
|
-
"on-tertiary-container":
|
|
1665
|
+
primary: r == "surface",
|
|
1666
|
+
"on-primary-container": r == "primary",
|
|
1667
|
+
"on-secondary-container": r == "secondary",
|
|
1668
|
+
"on-tertiary-container": r == "tertiary"
|
|
1680
1669
|
}),
|
|
1681
|
-
triggerRef:
|
|
1670
|
+
triggerRef: g
|
|
1682
1671
|
}
|
|
1683
1672
|
) }),
|
|
1684
|
-
/* @__PURE__ */ i(Q, { icon:
|
|
1685
|
-
/* @__PURE__ */ i(z, { children:
|
|
1673
|
+
/* @__PURE__ */ i(Q, { icon: s, className: a.icon }),
|
|
1674
|
+
/* @__PURE__ */ i(z, { children: o && /* @__PURE__ */ i(
|
|
1686
1675
|
U.span,
|
|
1687
1676
|
{
|
|
1688
1677
|
variants: b,
|
|
@@ -1696,83 +1685,83 @@ const pe = ({
|
|
|
1696
1685
|
]
|
|
1697
1686
|
}
|
|
1698
1687
|
);
|
|
1699
|
-
},
|
|
1688
|
+
}, xe = ({
|
|
1700
1689
|
variant: e = "standard",
|
|
1701
1690
|
href: t,
|
|
1702
|
-
disabled:
|
|
1703
|
-
type:
|
|
1704
|
-
title:
|
|
1705
|
-
|
|
1706
|
-
onToggle:
|
|
1707
|
-
activated:
|
|
1691
|
+
disabled: r = !1,
|
|
1692
|
+
type: l = "button",
|
|
1693
|
+
title: n,
|
|
1694
|
+
ariaLabel: c,
|
|
1695
|
+
onToggle: s,
|
|
1696
|
+
activated: o = !1,
|
|
1708
1697
|
onClick: d,
|
|
1709
1698
|
icon: u,
|
|
1710
|
-
size:
|
|
1711
|
-
iconSelected:
|
|
1699
|
+
size: x = "medium",
|
|
1700
|
+
iconSelected: y,
|
|
1712
1701
|
className: a,
|
|
1713
|
-
ref:
|
|
1714
|
-
width:
|
|
1702
|
+
ref: v,
|
|
1703
|
+
width: g = "default",
|
|
1715
1704
|
shape: b = "rounded",
|
|
1716
|
-
allowShapeTransformation:
|
|
1717
|
-
transition:
|
|
1718
|
-
...
|
|
1705
|
+
allowShapeTransformation: E = !0,
|
|
1706
|
+
transition: M,
|
|
1707
|
+
...w
|
|
1719
1708
|
}) => {
|
|
1720
|
-
|
|
1721
|
-
const [N,
|
|
1722
|
-
let
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
}, u = N &&
|
|
1726
|
-
|
|
1727
|
-
},
|
|
1728
|
-
|
|
1729
|
-
}, [
|
|
1730
|
-
const C = t ? "a" : "button",
|
|
1731
|
-
transition:
|
|
1709
|
+
n || (n = c);
|
|
1710
|
+
const [N, R] = _.useState(o);
|
|
1711
|
+
let L;
|
|
1712
|
+
s ? s && (L = (m) => {
|
|
1713
|
+
r && m.preventDefault(), R(!N), s(!!N);
|
|
1714
|
+
}, u = N && y || u) : L = (m) => {
|
|
1715
|
+
r && m.preventDefault(), d && d(m);
|
|
1716
|
+
}, W(() => {
|
|
1717
|
+
R(o);
|
|
1718
|
+
}, [o]);
|
|
1719
|
+
const C = t ? "a" : "button", D = Pe({
|
|
1720
|
+
transition: M,
|
|
1732
1721
|
shape: b,
|
|
1733
|
-
allowShapeTransformation:
|
|
1734
|
-
width:
|
|
1722
|
+
allowShapeTransformation: E,
|
|
1723
|
+
width: g,
|
|
1735
1724
|
href: t,
|
|
1736
|
-
activated:
|
|
1737
|
-
|
|
1738
|
-
iconSelected:
|
|
1725
|
+
activated: N,
|
|
1726
|
+
ariaLabel: c,
|
|
1727
|
+
iconSelected: y,
|
|
1739
1728
|
isActive: N,
|
|
1740
|
-
onToggle:
|
|
1741
|
-
disabled:
|
|
1729
|
+
onToggle: s,
|
|
1730
|
+
disabled: r,
|
|
1742
1731
|
icon: u,
|
|
1743
1732
|
variant: e,
|
|
1744
1733
|
className: a,
|
|
1745
|
-
size:
|
|
1746
|
-
...
|
|
1747
|
-
}),
|
|
1748
|
-
return
|
|
1734
|
+
size: x,
|
|
1735
|
+
...w
|
|
1736
|
+
}), B = P(null), I = v || B;
|
|
1737
|
+
return M = { duration: 0.3, ...M }, /* @__PURE__ */ $(
|
|
1749
1738
|
C,
|
|
1750
1739
|
{
|
|
1751
|
-
disabled:
|
|
1740
|
+
disabled: r,
|
|
1752
1741
|
href: t,
|
|
1753
|
-
className:
|
|
1742
|
+
className: D.iconButton,
|
|
1754
1743
|
"aria-label": c,
|
|
1755
|
-
...
|
|
1744
|
+
...w,
|
|
1756
1745
|
title: void 0,
|
|
1757
|
-
onClick:
|
|
1758
|
-
ref:
|
|
1746
|
+
onClick: L,
|
|
1747
|
+
ref: I,
|
|
1759
1748
|
children: [
|
|
1760
1749
|
/* @__PURE__ */ i(
|
|
1761
|
-
|
|
1750
|
+
ye,
|
|
1762
1751
|
{
|
|
1763
|
-
targetRef:
|
|
1764
|
-
trigger:
|
|
1765
|
-
text:
|
|
1752
|
+
targetRef: I,
|
|
1753
|
+
trigger: r ? null : void 0,
|
|
1754
|
+
text: n
|
|
1766
1755
|
}
|
|
1767
1756
|
),
|
|
1768
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ $(
|
|
1769
1758
|
"div",
|
|
1770
1759
|
{
|
|
1771
|
-
style: { transition:
|
|
1772
|
-
className:
|
|
1760
|
+
style: { transition: M.duration + "s" },
|
|
1761
|
+
className: D.container,
|
|
1773
1762
|
children: [
|
|
1774
|
-
/* @__PURE__ */ i("div", { className:
|
|
1775
|
-
|
|
1763
|
+
/* @__PURE__ */ i("div", { className: D.stateLayer, children: !r && /* @__PURE__ */ i(
|
|
1764
|
+
re,
|
|
1776
1765
|
{
|
|
1777
1766
|
colorName: f(
|
|
1778
1767
|
e === "standard" && {
|
|
@@ -1780,37 +1769,37 @@ const pe = ({
|
|
|
1780
1769
|
primary: N
|
|
1781
1770
|
},
|
|
1782
1771
|
e === "filled" && {
|
|
1783
|
-
primary: !N && !!
|
|
1784
|
-
"inverse-on-surface": N || !
|
|
1772
|
+
primary: !N && !!s,
|
|
1773
|
+
"inverse-on-surface": N || !s
|
|
1785
1774
|
},
|
|
1786
1775
|
e === "tonal" && {
|
|
1787
|
-
"on-surface-variant": !N && !!
|
|
1788
|
-
"on-secondary-container": N || !
|
|
1776
|
+
"on-surface-variant": !N && !!s,
|
|
1777
|
+
"on-secondary-container": N || !s
|
|
1789
1778
|
},
|
|
1790
1779
|
e === "outlined" && {
|
|
1791
1780
|
"on-surface-variant": !N,
|
|
1792
1781
|
"on-primary": N
|
|
1793
1782
|
}
|
|
1794
1783
|
),
|
|
1795
|
-
triggerRef:
|
|
1784
|
+
triggerRef: I
|
|
1796
1785
|
}
|
|
1797
1786
|
) }),
|
|
1798
|
-
u && /* @__PURE__ */ i(Q, { icon: u, className:
|
|
1787
|
+
u && /* @__PURE__ */ i(Q, { icon: u, className: D.icon })
|
|
1799
1788
|
]
|
|
1800
1789
|
}
|
|
1801
1790
|
)
|
|
1802
1791
|
]
|
|
1803
1792
|
}
|
|
1804
1793
|
);
|
|
1805
|
-
},
|
|
1794
|
+
}, vt = ({
|
|
1806
1795
|
className: e,
|
|
1807
1796
|
valueFormatter: t,
|
|
1808
|
-
step:
|
|
1809
|
-
name:
|
|
1810
|
-
value:
|
|
1797
|
+
step: r = 10,
|
|
1798
|
+
name: l,
|
|
1799
|
+
value: n = 0,
|
|
1811
1800
|
min: c = 0,
|
|
1812
|
-
max:
|
|
1813
|
-
marks:
|
|
1801
|
+
max: s = 100,
|
|
1802
|
+
marks: o = [
|
|
1814
1803
|
{
|
|
1815
1804
|
value: 0,
|
|
1816
1805
|
label: "0"
|
|
@@ -1822,97 +1811,97 @@ const pe = ({
|
|
|
1822
1811
|
],
|
|
1823
1812
|
ref: d,
|
|
1824
1813
|
onChange: u,
|
|
1825
|
-
...
|
|
1814
|
+
...x
|
|
1826
1815
|
}) => {
|
|
1827
|
-
const
|
|
1828
|
-
const
|
|
1829
|
-
return
|
|
1830
|
-
}, a = (
|
|
1831
|
-
const
|
|
1832
|
-
return (a(!1) -
|
|
1833
|
-
}, [b,
|
|
1834
|
-
|
|
1816
|
+
const y = (h) => {
|
|
1817
|
+
const p = v(), V = a();
|
|
1818
|
+
return h === 1 / 0 ? 100 : h === -1 / 0 ? 0 : (h - p) / (V - p) * 100;
|
|
1819
|
+
}, a = (h = !1) => h ? s : s == 1 / 0 ? o[(o == null ? void 0 : o.length) - 1].value : s, v = (h = !1) => h ? c : c == -1 / 0 ? o[0].value : c, g = (h) => {
|
|
1820
|
+
const p = v(!1);
|
|
1821
|
+
return (a(!1) - p) * h / 100 + p;
|
|
1822
|
+
}, [b, E] = S(!1), M = P(null), w = d || M, [N, R] = S(n), [L, C] = S(y(n)), [D, B] = S(!1), I = (h) => {
|
|
1823
|
+
B(!0), E(!0), Y(h);
|
|
1835
1824
|
}, m = () => {
|
|
1836
|
-
|
|
1825
|
+
B(!1), E(!1);
|
|
1837
1826
|
};
|
|
1838
|
-
|
|
1839
|
-
window.removeEventListener("mouseup", m), window.removeEventListener("mousemove",
|
|
1840
|
-
}), [
|
|
1841
|
-
const j =
|
|
1827
|
+
W(() => (D ? (window.addEventListener("mouseup", m), window.addEventListener("mousemove", Y), window.addEventListener("touchend", m), window.addEventListener("touchmove", Y)) : (window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", Y)), () => {
|
|
1828
|
+
window.removeEventListener("mouseup", m), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", m), window.removeEventListener("touchmove", Y);
|
|
1829
|
+
}), [D]);
|
|
1830
|
+
const j = je({
|
|
1842
1831
|
className: e,
|
|
1843
1832
|
isChanging: b,
|
|
1844
|
-
marks:
|
|
1845
|
-
max:
|
|
1833
|
+
marks: o,
|
|
1834
|
+
max: s,
|
|
1846
1835
|
min: c,
|
|
1847
|
-
name:
|
|
1848
|
-
step:
|
|
1836
|
+
name: l,
|
|
1837
|
+
step: r,
|
|
1849
1838
|
value: N,
|
|
1850
1839
|
valueFormatter: t,
|
|
1851
1840
|
onChange: u
|
|
1852
|
-
}),
|
|
1853
|
-
const
|
|
1854
|
-
if (
|
|
1855
|
-
const V =
|
|
1856
|
-
|
|
1841
|
+
}), Y = (h) => {
|
|
1842
|
+
const p = w == null ? void 0 : w.current;
|
|
1843
|
+
if (p) {
|
|
1844
|
+
const V = p.getBoundingClientRect().left, k = ((h.type === "touchmove" || h.type === "touchstart" ? h.touches[0].clientX : h.clientX) - V) / p.offsetWidth * 100;
|
|
1845
|
+
G({ pourcent: k });
|
|
1857
1846
|
}
|
|
1858
|
-
},
|
|
1859
|
-
pourcent:
|
|
1860
|
-
value:
|
|
1847
|
+
}, G = ({
|
|
1848
|
+
pourcent: h,
|
|
1849
|
+
value: p
|
|
1861
1850
|
}) => {
|
|
1862
|
-
if (
|
|
1863
|
-
if (
|
|
1864
|
-
|
|
1851
|
+
if (h) {
|
|
1852
|
+
if (h >= 100) {
|
|
1853
|
+
R(a(!0)), C(100);
|
|
1865
1854
|
return;
|
|
1866
1855
|
}
|
|
1867
|
-
if (
|
|
1868
|
-
|
|
1856
|
+
if (h <= 0) {
|
|
1857
|
+
R(v(!0)), C(0);
|
|
1869
1858
|
return;
|
|
1870
1859
|
}
|
|
1871
|
-
|
|
1872
|
-
} else if (
|
|
1873
|
-
if (
|
|
1874
|
-
|
|
1860
|
+
p = g(h), p == v() && (p = v(!0)), p == a() && (p = a(!0));
|
|
1861
|
+
} else if (p != null) {
|
|
1862
|
+
if (p >= a()) {
|
|
1863
|
+
R(a(!0)), C(100);
|
|
1875
1864
|
return;
|
|
1876
1865
|
}
|
|
1877
|
-
if (
|
|
1878
|
-
|
|
1866
|
+
if (p <= v()) {
|
|
1867
|
+
R(v(!0)), C(0);
|
|
1879
1868
|
return;
|
|
1880
1869
|
}
|
|
1881
|
-
|
|
1870
|
+
h = y(p);
|
|
1882
1871
|
} else
|
|
1883
1872
|
return;
|
|
1884
|
-
|
|
1885
|
-
let
|
|
1886
|
-
return
|
|
1887
|
-
}).value),
|
|
1888
|
-
}, [Z,
|
|
1889
|
-
return
|
|
1890
|
-
const
|
|
1891
|
-
|
|
1873
|
+
r != null ? p = Math.round((p - v()) / r) * r + v() : o && (p = o.reduce((V, X, k) => {
|
|
1874
|
+
let F = X.value === 1 / 0 ? a() : X.value === -1 / 0 ? v() : X.value, O = V.value === 1 / 0 ? a() : V.value === -1 / 0 ? v() : V.value;
|
|
1875
|
+
return F = Math.abs(F - p), O = Math.abs(O - p), F < O ? X : V;
|
|
1876
|
+
}).value), p >= a() && (p = a(!0)), p <= v() && (p = v(!0)), h = y(p), R(p), C(h), u && u(p);
|
|
1877
|
+
}, [Z, K] = S(0);
|
|
1878
|
+
return W(() => {
|
|
1879
|
+
const h = () => {
|
|
1880
|
+
w.current && K(w.current.offsetWidth);
|
|
1892
1881
|
};
|
|
1893
|
-
return
|
|
1894
|
-
window.removeEventListener("resize",
|
|
1882
|
+
return h(), window.addEventListener("resize", h), () => {
|
|
1883
|
+
window.removeEventListener("resize", h);
|
|
1895
1884
|
};
|
|
1896
|
-
}, []), /* @__PURE__ */
|
|
1885
|
+
}, []), /* @__PURE__ */ $(
|
|
1897
1886
|
"div",
|
|
1898
1887
|
{
|
|
1899
1888
|
tabIndex: 0,
|
|
1900
|
-
onKeyDown: (
|
|
1901
|
-
switch (
|
|
1889
|
+
onKeyDown: (h) => {
|
|
1890
|
+
switch (h.key) {
|
|
1902
1891
|
case "ArrowRight":
|
|
1903
|
-
if (
|
|
1904
|
-
|
|
1905
|
-
else if (
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1892
|
+
if (r)
|
|
1893
|
+
G({ value: N + r });
|
|
1894
|
+
else if (o) {
|
|
1895
|
+
const p = o.find((V) => V.value > N);
|
|
1896
|
+
p && G({ value: p.value });
|
|
1908
1897
|
}
|
|
1909
1898
|
break;
|
|
1910
1899
|
case "ArrowLeft":
|
|
1911
|
-
if (
|
|
1912
|
-
|
|
1913
|
-
else if (
|
|
1914
|
-
const
|
|
1915
|
-
|
|
1900
|
+
if (r)
|
|
1901
|
+
G({ value: N - r });
|
|
1902
|
+
else if (o) {
|
|
1903
|
+
const p = o.slice(0).reverse().find((V, X, k) => N === 1 / 0 ? X === 1 : V.value < N);
|
|
1904
|
+
p && G({ value: p.value });
|
|
1916
1905
|
}
|
|
1917
1906
|
break;
|
|
1918
1907
|
default:
|
|
@@ -1920,24 +1909,24 @@ const pe = ({
|
|
|
1920
1909
|
}
|
|
1921
1910
|
},
|
|
1922
1911
|
role: "slider",
|
|
1923
|
-
"aria-valuemin":
|
|
1912
|
+
"aria-valuemin": v(!0),
|
|
1924
1913
|
"aria-valuemax": a(!0),
|
|
1925
1914
|
"aria-valuenow": N,
|
|
1926
1915
|
"aria-valuetext": N.toString(),
|
|
1927
1916
|
className: j.slider,
|
|
1928
|
-
onMouseDown:
|
|
1929
|
-
onClick:
|
|
1930
|
-
ref:
|
|
1931
|
-
onTouchStart:
|
|
1932
|
-
onDragStart: (
|
|
1933
|
-
...
|
|
1917
|
+
onMouseDown: I,
|
|
1918
|
+
onClick: Y,
|
|
1919
|
+
ref: w,
|
|
1920
|
+
onTouchStart: I,
|
|
1921
|
+
onDragStart: (h) => h.preventDefault(),
|
|
1922
|
+
...x,
|
|
1934
1923
|
children: [
|
|
1935
|
-
/* @__PURE__ */ i("input", { type: "hidden", name:
|
|
1924
|
+
/* @__PURE__ */ i("input", { type: "hidden", name: l, value: N }),
|
|
1936
1925
|
/* @__PURE__ */ i(
|
|
1937
1926
|
"div",
|
|
1938
1927
|
{
|
|
1939
1928
|
className: j.activeTrack,
|
|
1940
|
-
style: { flex:
|
|
1929
|
+
style: { flex: L / 100 }
|
|
1941
1930
|
}
|
|
1942
1931
|
),
|
|
1943
1932
|
/* @__PURE__ */ i("div", { className: j.handle, children: /* @__PURE__ */ i(z, { children: b && /* @__PURE__ */ i(
|
|
@@ -1964,17 +1953,17 @@ const pe = ({
|
|
|
1964
1953
|
"div",
|
|
1965
1954
|
{
|
|
1966
1955
|
className: j.inactiveTrack,
|
|
1967
|
-
style: { flex: 1 -
|
|
1956
|
+
style: { flex: 1 - L / 100 }
|
|
1968
1957
|
}
|
|
1969
1958
|
),
|
|
1970
1959
|
/* @__PURE__ */ i(
|
|
1971
1960
|
"div",
|
|
1972
1961
|
{
|
|
1973
1962
|
className: "w-[calc(100%-12px)] h-full absolute -translate-x-1/2 transform left-1/2",
|
|
1974
|
-
children:
|
|
1963
|
+
children: o && o.map((h, p) => {
|
|
1975
1964
|
let V = null;
|
|
1976
|
-
const
|
|
1977
|
-
return
|
|
1965
|
+
const X = (b ? 9 : 10) / Z * 100, k = y(h.value);
|
|
1966
|
+
return k <= L - X ? V = !0 : k >= L + X && (V = !1), /* @__PURE__ */ i(
|
|
1978
1967
|
"div",
|
|
1979
1968
|
{
|
|
1980
1969
|
className: f(j.dot, {
|
|
@@ -1982,10 +1971,10 @@ const pe = ({
|
|
|
1982
1971
|
"bg-primary": V != null && !V
|
|
1983
1972
|
}),
|
|
1984
1973
|
style: {
|
|
1985
|
-
left: `${
|
|
1974
|
+
left: `${y(h.value)}%`
|
|
1986
1975
|
}
|
|
1987
1976
|
},
|
|
1988
|
-
|
|
1977
|
+
p
|
|
1989
1978
|
);
|
|
1990
1979
|
})
|
|
1991
1980
|
}
|
|
@@ -1999,43 +1988,43 @@ const pe = ({
|
|
|
1999
1988
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
2000
1989
|
* Copyright 2024 Fonticons, Inc.
|
|
2001
1990
|
*/
|
|
2002
|
-
const
|
|
1991
|
+
const tt = {
|
|
2003
1992
|
prefix: "fas",
|
|
2004
1993
|
iconName: "bars",
|
|
2005
1994
|
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"]
|
|
2006
|
-
},
|
|
1995
|
+
}, nt = {
|
|
2007
1996
|
prefix: "fas",
|
|
2008
1997
|
iconName: "circle-exclamation",
|
|
2009
1998
|
icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]
|
|
2010
|
-
},
|
|
1999
|
+
}, ge = {
|
|
2011
2000
|
prefix: "fas",
|
|
2012
2001
|
iconName: "xmark",
|
|
2013
2002
|
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]
|
|
2014
|
-
},
|
|
2003
|
+
}, bt = ({
|
|
2015
2004
|
supportingText: e,
|
|
2016
2005
|
className: t,
|
|
2017
|
-
duration:
|
|
2018
|
-
closeIcon:
|
|
2019
|
-
onClose:
|
|
2006
|
+
duration: r,
|
|
2007
|
+
closeIcon: l = ge,
|
|
2008
|
+
onClose: n,
|
|
2020
2009
|
...c
|
|
2021
2010
|
}) => {
|
|
2022
|
-
const [
|
|
2011
|
+
const [s, o] = S(!0), d = Xe({
|
|
2023
2012
|
className: t,
|
|
2024
|
-
closeIcon:
|
|
2025
|
-
duration:
|
|
2026
|
-
isVisible:
|
|
2027
|
-
onClose:
|
|
2013
|
+
closeIcon: l,
|
|
2014
|
+
duration: r,
|
|
2015
|
+
isVisible: s,
|
|
2016
|
+
onClose: n,
|
|
2028
2017
|
supportingText: e
|
|
2029
2018
|
});
|
|
2030
|
-
|
|
2031
|
-
|
|
2019
|
+
W(() => {
|
|
2020
|
+
r && setTimeout(() => {
|
|
2032
2021
|
u();
|
|
2033
|
-
},
|
|
2034
|
-
}, [
|
|
2022
|
+
}, r);
|
|
2023
|
+
}, [r]);
|
|
2035
2024
|
const u = () => {
|
|
2036
|
-
|
|
2025
|
+
o(!1), n == null || n();
|
|
2037
2026
|
};
|
|
2038
|
-
return /* @__PURE__ */ i(z, { children:
|
|
2027
|
+
return /* @__PURE__ */ i(z, { children: s && /* @__PURE__ */ i(
|
|
2039
2028
|
U.div,
|
|
2040
2029
|
{
|
|
2041
2030
|
initial: { height: 0 },
|
|
@@ -2044,65 +2033,65 @@ const Te = {
|
|
|
2044
2033
|
transition: { duration: 0.1 },
|
|
2045
2034
|
className: d.snackbar,
|
|
2046
2035
|
...c,
|
|
2047
|
-
children: /* @__PURE__ */
|
|
2036
|
+
children: /* @__PURE__ */ $("div", { className: d.container, children: [
|
|
2048
2037
|
/* @__PURE__ */ i("p", { className: d.supportingText, children: e }),
|
|
2049
2038
|
/* @__PURE__ */ i(
|
|
2050
|
-
|
|
2039
|
+
xe,
|
|
2051
2040
|
{
|
|
2052
2041
|
onClick: () => u(),
|
|
2053
2042
|
className: d.icon,
|
|
2054
|
-
icon:
|
|
2055
|
-
|
|
2043
|
+
icon: l,
|
|
2044
|
+
ariaLabel: "close the snackbar"
|
|
2056
2045
|
}
|
|
2057
2046
|
)
|
|
2058
2047
|
] })
|
|
2059
2048
|
}
|
|
2060
2049
|
) });
|
|
2061
|
-
},
|
|
2050
|
+
}, Nt = ({
|
|
2062
2051
|
selected: e = !1,
|
|
2063
2052
|
className: t,
|
|
2064
|
-
activeIcon:
|
|
2065
|
-
disabled:
|
|
2066
|
-
inactiveIcon:
|
|
2053
|
+
activeIcon: r,
|
|
2054
|
+
disabled: l = !1,
|
|
2055
|
+
inactiveIcon: n,
|
|
2067
2056
|
onChange: c,
|
|
2068
|
-
onClick:
|
|
2069
|
-
onKeyDown:
|
|
2057
|
+
onClick: s,
|
|
2058
|
+
onKeyDown: o,
|
|
2070
2059
|
ref: d,
|
|
2071
2060
|
...u
|
|
2072
2061
|
}) => {
|
|
2073
|
-
const [
|
|
2074
|
-
|
|
2075
|
-
},
|
|
2076
|
-
|
|
2077
|
-
},
|
|
2078
|
-
|
|
2079
|
-
}, b =
|
|
2062
|
+
const [x, y] = S(e), a = (w) => {
|
|
2063
|
+
l || (g(), s && s(w));
|
|
2064
|
+
}, v = (w) => {
|
|
2065
|
+
l || ((w.key === " " || w.key === "Enter") && (w.preventDefault(), g()), o && o(w));
|
|
2066
|
+
}, g = () => {
|
|
2067
|
+
y(!x), c == null || c(!x);
|
|
2068
|
+
}, b = Fe({
|
|
2080
2069
|
className: t,
|
|
2081
|
-
isSelected:
|
|
2082
|
-
activeIcon:
|
|
2083
|
-
inactiveIcon:
|
|
2084
|
-
disabled:
|
|
2085
|
-
selected:
|
|
2070
|
+
isSelected: x,
|
|
2071
|
+
activeIcon: r,
|
|
2072
|
+
inactiveIcon: n,
|
|
2073
|
+
disabled: l,
|
|
2074
|
+
selected: x,
|
|
2086
2075
|
onChange: c
|
|
2087
|
-
}),
|
|
2088
|
-
return /* @__PURE__ */
|
|
2076
|
+
}), E = P(null), M = d || E;
|
|
2077
|
+
return /* @__PURE__ */ $(
|
|
2089
2078
|
U.div,
|
|
2090
2079
|
{
|
|
2091
2080
|
role: "switch",
|
|
2092
|
-
"aria-checked":
|
|
2093
|
-
tabIndex:
|
|
2094
|
-
onKeyDown:
|
|
2081
|
+
"aria-checked": x,
|
|
2082
|
+
tabIndex: l ? -1 : 0,
|
|
2083
|
+
onKeyDown: v,
|
|
2095
2084
|
onClick: a,
|
|
2096
|
-
ref:
|
|
2085
|
+
ref: M,
|
|
2097
2086
|
className: b.switch,
|
|
2098
2087
|
...u,
|
|
2099
2088
|
children: [
|
|
2100
|
-
/* @__PURE__ */ i("input", { type: "hidden", value:
|
|
2101
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ i("input", { type: "hidden", value: x ? "1" : "0" }),
|
|
2090
|
+
/* @__PURE__ */ $(
|
|
2102
2091
|
U.div,
|
|
2103
2092
|
{
|
|
2104
2093
|
layout: !0,
|
|
2105
|
-
style: { translate:
|
|
2094
|
+
style: { translate: x ? "50%" : "-50%" },
|
|
2106
2095
|
transition: {
|
|
2107
2096
|
type: "spring",
|
|
2108
2097
|
stiffness: 700,
|
|
@@ -2110,11 +2099,11 @@ const Te = {
|
|
|
2110
2099
|
},
|
|
2111
2100
|
className: b.handleContainer,
|
|
2112
2101
|
children: [
|
|
2113
|
-
/* @__PURE__ */ i("div", { className: b.handle, children: (
|
|
2102
|
+
/* @__PURE__ */ i("div", { className: b.handle, children: (x ? r : n) && /* @__PURE__ */ i(
|
|
2114
2103
|
Q,
|
|
2115
2104
|
{
|
|
2116
2105
|
className: b.icon,
|
|
2117
|
-
icon:
|
|
2106
|
+
icon: x ? r : n
|
|
2118
2107
|
}
|
|
2119
2108
|
) }),
|
|
2120
2109
|
/* @__PURE__ */ i("div", { className: b.handleStateLayer })
|
|
@@ -2124,78 +2113,78 @@ const Te = {
|
|
|
2124
2113
|
]
|
|
2125
2114
|
}
|
|
2126
2115
|
);
|
|
2127
|
-
},
|
|
2116
|
+
}, rt = ({
|
|
2128
2117
|
className: e,
|
|
2129
2118
|
onClick: t,
|
|
2130
|
-
label:
|
|
2131
|
-
variant:
|
|
2132
|
-
href:
|
|
2119
|
+
label: r,
|
|
2120
|
+
variant: l = "primary",
|
|
2121
|
+
href: n,
|
|
2133
2122
|
icon: c,
|
|
2134
|
-
selectedTab:
|
|
2135
|
-
setSelectedTab:
|
|
2123
|
+
selectedTab: s,
|
|
2124
|
+
setSelectedTab: o,
|
|
2136
2125
|
tabsId: d,
|
|
2137
2126
|
index: u,
|
|
2138
|
-
onTabSelected:
|
|
2139
|
-
scrollable:
|
|
2127
|
+
onTabSelected: x,
|
|
2128
|
+
scrollable: y = !1,
|
|
2140
2129
|
selected: a = !1,
|
|
2141
|
-
ref:
|
|
2142
|
-
...
|
|
2130
|
+
ref: v,
|
|
2131
|
+
...g
|
|
2143
2132
|
}) => {
|
|
2144
|
-
const b =
|
|
2145
|
-
|
|
2146
|
-
a &&
|
|
2147
|
-
}, [
|
|
2148
|
-
|
|
2149
|
-
ref:
|
|
2133
|
+
const b = P(null), E = v || b, [M, w] = S(a);
|
|
2134
|
+
W(() => {
|
|
2135
|
+
a && s == null ? w(!0) : w(s == u && u != null);
|
|
2136
|
+
}, [s]), W(() => {
|
|
2137
|
+
s == u && x && x({
|
|
2138
|
+
ref: E,
|
|
2150
2139
|
index: u || 0,
|
|
2151
|
-
label:
|
|
2140
|
+
label: r,
|
|
2152
2141
|
icon: c
|
|
2153
2142
|
});
|
|
2154
|
-
}, [
|
|
2155
|
-
const N =
|
|
2156
|
-
|
|
2157
|
-
},
|
|
2143
|
+
}, [s]);
|
|
2144
|
+
const N = n ? "a" : "button", R = (C) => {
|
|
2145
|
+
o && o(u ?? null), t && t(C);
|
|
2146
|
+
}, L = Oe({
|
|
2158
2147
|
className: e,
|
|
2159
|
-
onTabSelected:
|
|
2160
|
-
scrollable:
|
|
2161
|
-
selectedTab:
|
|
2148
|
+
onTabSelected: x,
|
|
2149
|
+
scrollable: y,
|
|
2150
|
+
selectedTab: s,
|
|
2162
2151
|
index: u,
|
|
2163
2152
|
tabsId: d,
|
|
2164
|
-
selected:
|
|
2165
|
-
variant:
|
|
2153
|
+
selected: M,
|
|
2154
|
+
variant: l,
|
|
2166
2155
|
icon: c,
|
|
2167
|
-
label:
|
|
2168
|
-
isSelected:
|
|
2169
|
-
setSelectedTab:
|
|
2170
|
-
href:
|
|
2156
|
+
label: r,
|
|
2157
|
+
isSelected: M,
|
|
2158
|
+
setSelectedTab: o,
|
|
2159
|
+
href: n
|
|
2171
2160
|
});
|
|
2172
|
-
return /* @__PURE__ */
|
|
2161
|
+
return /* @__PURE__ */ $(
|
|
2173
2162
|
N,
|
|
2174
2163
|
{
|
|
2175
|
-
...
|
|
2164
|
+
...g,
|
|
2176
2165
|
role: "tab",
|
|
2177
|
-
"aria-selected":
|
|
2178
|
-
ref:
|
|
2179
|
-
href:
|
|
2180
|
-
className:
|
|
2181
|
-
onClick:
|
|
2182
|
-
...
|
|
2166
|
+
"aria-selected": M,
|
|
2167
|
+
ref: E,
|
|
2168
|
+
href: n,
|
|
2169
|
+
className: L.tab,
|
|
2170
|
+
onClick: R,
|
|
2171
|
+
...g,
|
|
2183
2172
|
children: [
|
|
2184
|
-
/* @__PURE__ */ i("span", { className:
|
|
2185
|
-
|
|
2173
|
+
/* @__PURE__ */ i("span", { className: L.stateLayer, children: /* @__PURE__ */ i(
|
|
2174
|
+
re,
|
|
2186
2175
|
{
|
|
2187
|
-
colorName:
|
|
2188
|
-
triggerRef:
|
|
2176
|
+
colorName: l === "primary" && M ? "primary" : "on-surface",
|
|
2177
|
+
triggerRef: E
|
|
2189
2178
|
}
|
|
2190
2179
|
) }),
|
|
2191
|
-
/* @__PURE__ */
|
|
2192
|
-
c && /* @__PURE__ */ i(Q, { icon: c, className:
|
|
2193
|
-
/* @__PURE__ */ i("span", { className:
|
|
2194
|
-
|
|
2180
|
+
/* @__PURE__ */ $("span", { className: L.content, children: [
|
|
2181
|
+
c && /* @__PURE__ */ i(Q, { icon: c, className: L.icon }),
|
|
2182
|
+
/* @__PURE__ */ i("span", { className: L.label, children: r }),
|
|
2183
|
+
M && /* @__PURE__ */ i(
|
|
2195
2184
|
U.span,
|
|
2196
2185
|
{
|
|
2197
2186
|
layoutId: `underline-${d}`,
|
|
2198
|
-
className:
|
|
2187
|
+
className: L.underline,
|
|
2199
2188
|
transition: { duration: 0.3 }
|
|
2200
2189
|
}
|
|
2201
2190
|
)
|
|
@@ -2203,129 +2192,129 @@ const Te = {
|
|
|
2203
2192
|
]
|
|
2204
2193
|
}
|
|
2205
2194
|
);
|
|
2206
|
-
},
|
|
2195
|
+
}, Lt = ({
|
|
2207
2196
|
variant: e = "primary",
|
|
2208
2197
|
onTabSelected: t,
|
|
2209
|
-
children:
|
|
2210
|
-
className:
|
|
2211
|
-
selectedTab:
|
|
2198
|
+
children: r,
|
|
2199
|
+
className: l,
|
|
2200
|
+
selectedTab: n,
|
|
2212
2201
|
setSelectedTab: c,
|
|
2213
|
-
scrollable:
|
|
2202
|
+
scrollable: s = !1
|
|
2214
2203
|
}) => {
|
|
2215
|
-
const [
|
|
2204
|
+
const [o, d] = S(
|
|
2216
2205
|
null
|
|
2217
2206
|
);
|
|
2218
2207
|
let u;
|
|
2219
|
-
|
|
2220
|
-
const
|
|
2221
|
-
(
|
|
2222
|
-
), a =
|
|
2223
|
-
if (t == null || t(
|
|
2224
|
-
const
|
|
2225
|
-
if (
|
|
2226
|
-
const N =
|
|
2227
|
-
|
|
2208
|
+
n == 0 || n != null ? u = n : u = o;
|
|
2209
|
+
const x = c || d, y = _.Children.toArray(r).filter(
|
|
2210
|
+
(E) => _.isValidElement(E) && E.type === rt
|
|
2211
|
+
), a = _.useRef(null), v = (E) => {
|
|
2212
|
+
if (t == null || t(E), s) {
|
|
2213
|
+
const M = a.current, w = E.ref.current;
|
|
2214
|
+
if (M && w) {
|
|
2215
|
+
const N = w.offsetLeft + w.offsetWidth / 2 - M.offsetWidth / 2;
|
|
2216
|
+
M.scrollTo({ left: N, behavior: "smooth" });
|
|
2228
2217
|
}
|
|
2229
2218
|
}
|
|
2230
|
-
},
|
|
2231
|
-
children:
|
|
2219
|
+
}, g = ve(() => ce(), []), b = Ke({
|
|
2220
|
+
children: r,
|
|
2232
2221
|
onTabSelected: t,
|
|
2233
|
-
scrollable:
|
|
2222
|
+
scrollable: s,
|
|
2234
2223
|
selectedTab: u,
|
|
2235
|
-
setSelectedTab:
|
|
2236
|
-
className:
|
|
2224
|
+
setSelectedTab: x,
|
|
2225
|
+
className: l,
|
|
2237
2226
|
variant: e
|
|
2238
2227
|
});
|
|
2239
|
-
return /* @__PURE__ */ i("div", { ref: a, role: "tablist", className: b.tabs, children:
|
|
2240
|
-
key:
|
|
2241
|
-
index:
|
|
2228
|
+
return /* @__PURE__ */ i("div", { ref: a, role: "tablist", className: b.tabs, children: y.map((E, M) => _.cloneElement(E, {
|
|
2229
|
+
key: M,
|
|
2230
|
+
index: M,
|
|
2242
2231
|
variant: e,
|
|
2243
2232
|
selectedTab: u,
|
|
2244
|
-
setSelectedTab:
|
|
2245
|
-
tabsId:
|
|
2246
|
-
onTabSelected:
|
|
2247
|
-
scrollable:
|
|
2233
|
+
setSelectedTab: x,
|
|
2234
|
+
tabsId: g,
|
|
2235
|
+
onTabSelected: v,
|
|
2236
|
+
scrollable: s
|
|
2248
2237
|
})) });
|
|
2249
|
-
},
|
|
2238
|
+
}, It = ({
|
|
2250
2239
|
variant: e = "filled",
|
|
2251
2240
|
disabled: t = !1,
|
|
2252
|
-
errorText:
|
|
2253
|
-
placeholder:
|
|
2254
|
-
suffix:
|
|
2241
|
+
errorText: r,
|
|
2242
|
+
placeholder: l,
|
|
2243
|
+
suffix: n,
|
|
2255
2244
|
name: c,
|
|
2256
|
-
label:
|
|
2257
|
-
className:
|
|
2245
|
+
label: s,
|
|
2246
|
+
className: o,
|
|
2258
2247
|
supportingText: d,
|
|
2259
2248
|
trailingIcon: u,
|
|
2260
|
-
leadingIcon:
|
|
2261
|
-
type:
|
|
2249
|
+
leadingIcon: x,
|
|
2250
|
+
type: y = "text",
|
|
2262
2251
|
textLine: a = "singleLine",
|
|
2263
|
-
autoComplete:
|
|
2264
|
-
onChange:
|
|
2252
|
+
autoComplete: v = "on",
|
|
2253
|
+
onChange: g,
|
|
2265
2254
|
value: b,
|
|
2266
|
-
showSupportingText:
|
|
2267
|
-
...
|
|
2255
|
+
showSupportingText: E = !1,
|
|
2256
|
+
...M
|
|
2268
2257
|
}) => {
|
|
2269
|
-
const [
|
|
2270
|
-
|
|
2258
|
+
const [w, N] = S(b ?? ""), [R, L] = S(!1), [C, D] = S(!1), [B, I] = S(
|
|
2259
|
+
E
|
|
2271
2260
|
);
|
|
2272
|
-
|
|
2261
|
+
W(() => {
|
|
2273
2262
|
N(b ?? "");
|
|
2274
|
-
}, [b]),
|
|
2275
|
-
|
|
2276
|
-
}, [
|
|
2277
|
-
|
|
2278
|
-
}, [
|
|
2279
|
-
|
|
2280
|
-
}, [
|
|
2281
|
-
const m =
|
|
2282
|
-
m.current && !
|
|
2283
|
-
},
|
|
2284
|
-
|
|
2285
|
-
},
|
|
2286
|
-
const
|
|
2287
|
-
N(
|
|
2263
|
+
}, [b]), W(() => {
|
|
2264
|
+
r != null && r.length ? D(!0) : D(!1);
|
|
2265
|
+
}, [r]), W(() => {
|
|
2266
|
+
E ? I(E) : d != null && d.length ? I(!0) : I(!1);
|
|
2267
|
+
}, [B, d]), W(() => {
|
|
2268
|
+
R && D(!1);
|
|
2269
|
+
}, [R]);
|
|
2270
|
+
const m = _.useRef(null), j = () => {
|
|
2271
|
+
m.current && !R && m.current.focus();
|
|
2272
|
+
}, Y = () => {
|
|
2273
|
+
L(!0);
|
|
2274
|
+
}, G = (V) => {
|
|
2275
|
+
const X = V.target.value;
|
|
2276
|
+
N(X), D(!1), typeof g == "function" && g(X);
|
|
2288
2277
|
}, Z = () => {
|
|
2289
|
-
|
|
2290
|
-
},
|
|
2291
|
-
showSupportingText:
|
|
2292
|
-
isFocused:
|
|
2278
|
+
L(!1);
|
|
2279
|
+
}, K = Ge({
|
|
2280
|
+
showSupportingText: B,
|
|
2281
|
+
isFocused: R,
|
|
2293
2282
|
showErrorIcon: C,
|
|
2294
2283
|
disabled: t,
|
|
2295
2284
|
name: c,
|
|
2296
|
-
label:
|
|
2297
|
-
autoComplete:
|
|
2298
|
-
className:
|
|
2299
|
-
onChange:
|
|
2300
|
-
placeholder:
|
|
2285
|
+
label: s,
|
|
2286
|
+
autoComplete: v,
|
|
2287
|
+
className: o,
|
|
2288
|
+
onChange: g,
|
|
2289
|
+
placeholder: l,
|
|
2301
2290
|
supportingText: d,
|
|
2302
|
-
type:
|
|
2303
|
-
leadingIcon:
|
|
2291
|
+
type: y,
|
|
2292
|
+
leadingIcon: x,
|
|
2304
2293
|
trailingIcon: u,
|
|
2305
2294
|
variant: e,
|
|
2306
|
-
errorText:
|
|
2307
|
-
value:
|
|
2308
|
-
suffix:
|
|
2295
|
+
errorText: r,
|
|
2296
|
+
value: w,
|
|
2297
|
+
suffix: n,
|
|
2309
2298
|
textLine: a
|
|
2310
|
-
}), [A] = S(
|
|
2311
|
-
let
|
|
2299
|
+
}), [A] = S(ce());
|
|
2300
|
+
let h, p;
|
|
2312
2301
|
switch (a) {
|
|
2313
2302
|
case "multiLine":
|
|
2314
|
-
|
|
2303
|
+
p = ke, h = {};
|
|
2315
2304
|
break;
|
|
2316
2305
|
case "textAreas":
|
|
2317
|
-
|
|
2306
|
+
p = "textarea", h = {};
|
|
2318
2307
|
break;
|
|
2319
2308
|
case "singleLine":
|
|
2320
2309
|
default:
|
|
2321
|
-
|
|
2310
|
+
p = "input", h = { type: y };
|
|
2322
2311
|
break;
|
|
2323
2312
|
}
|
|
2324
|
-
return /* @__PURE__ */
|
|
2325
|
-
/* @__PURE__ */
|
|
2326
|
-
/* @__PURE__ */ i("div", { className:
|
|
2327
|
-
|
|
2328
|
-
!(!
|
|
2313
|
+
return /* @__PURE__ */ $("div", { className: K.textField, ...M, children: [
|
|
2314
|
+
/* @__PURE__ */ $("fieldset", { onClick: j, className: K.content, children: [
|
|
2315
|
+
/* @__PURE__ */ i("div", { className: K.stateLayer }),
|
|
2316
|
+
x && /* @__PURE__ */ i("div", { className: K.leadingIcon, children: _.isValidElement(x) ? x : /* @__PURE__ */ i(Q, { className: "w-5 h-5", icon: x }) }),
|
|
2317
|
+
!(!R && !w.length || e == "filled") && /* @__PURE__ */ i(
|
|
2329
2318
|
U.legend,
|
|
2330
2319
|
{
|
|
2331
2320
|
variants: {
|
|
@@ -2333,118 +2322,118 @@ const Te = {
|
|
|
2333
2322
|
visible: { width: "auto", padding: "0 8px" }
|
|
2334
2323
|
},
|
|
2335
2324
|
initial: "hidden",
|
|
2336
|
-
animate: !
|
|
2325
|
+
animate: !R && !w.length ? "hidden" : "visible",
|
|
2337
2326
|
className: "max-w-full ml-2 px-2 text-body-small h-0",
|
|
2338
2327
|
transition: { duration: 0.2 },
|
|
2339
2328
|
children: /* @__PURE__ */ i("span", { className: "transform inline-flex -translate-y-1/2", children: /* @__PURE__ */ i(
|
|
2340
2329
|
U.span,
|
|
2341
2330
|
{
|
|
2342
|
-
className:
|
|
2331
|
+
className: K.label,
|
|
2343
2332
|
transition: { duration: 0.3 },
|
|
2344
2333
|
layoutId: A,
|
|
2345
|
-
children:
|
|
2334
|
+
children: s
|
|
2346
2335
|
}
|
|
2347
2336
|
) })
|
|
2348
2337
|
}
|
|
2349
2338
|
),
|
|
2350
|
-
/* @__PURE__ */
|
|
2351
|
-
(!
|
|
2339
|
+
/* @__PURE__ */ $("div", { className: "flex-1 relative", children: [
|
|
2340
|
+
(!R && !w.length || e == "filled") && /* @__PURE__ */ i(
|
|
2352
2341
|
U.label,
|
|
2353
2342
|
{
|
|
2354
2343
|
htmlFor: c,
|
|
2355
2344
|
className: f(
|
|
2356
2345
|
"absolute left-4 transition-all duration-300",
|
|
2357
2346
|
{
|
|
2358
|
-
"text-body-small top-2": e == "filled" && !(!
|
|
2359
|
-
"text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!
|
|
2347
|
+
"text-body-small top-2": e == "filled" && !(!R && !w.length),
|
|
2348
|
+
"text-body-large top-1/2 transform -translate-y-1/2": !(e == "filled" && !(!R && !w.length))
|
|
2360
2349
|
}
|
|
2361
2350
|
),
|
|
2362
2351
|
transition: { duration: 0.3 },
|
|
2363
2352
|
children: /* @__PURE__ */ i(
|
|
2364
2353
|
U.span,
|
|
2365
2354
|
{
|
|
2366
|
-
className:
|
|
2355
|
+
className: K.label,
|
|
2367
2356
|
transition: { duration: 0.3 },
|
|
2368
2357
|
layoutId: e == "outlined" ? A : void 0,
|
|
2369
|
-
children:
|
|
2358
|
+
children: s
|
|
2370
2359
|
}
|
|
2371
2360
|
)
|
|
2372
2361
|
}
|
|
2373
2362
|
),
|
|
2374
2363
|
/* @__PURE__ */ i(
|
|
2375
|
-
|
|
2364
|
+
p,
|
|
2376
2365
|
{
|
|
2377
2366
|
ref: m,
|
|
2378
|
-
value:
|
|
2379
|
-
onChange:
|
|
2380
|
-
className:
|
|
2367
|
+
value: w,
|
|
2368
|
+
onChange: G,
|
|
2369
|
+
className: K.input,
|
|
2381
2370
|
id: c,
|
|
2382
2371
|
name: c,
|
|
2383
|
-
placeholder:
|
|
2384
|
-
onFocus:
|
|
2372
|
+
placeholder: R ? l ?? void 0 : "",
|
|
2373
|
+
onFocus: Y,
|
|
2385
2374
|
onBlur: Z,
|
|
2386
2375
|
disabled: t,
|
|
2387
|
-
autoComplete:
|
|
2388
|
-
"aria-invalid": !!(
|
|
2389
|
-
"aria-label":
|
|
2390
|
-
...
|
|
2376
|
+
autoComplete: v,
|
|
2377
|
+
"aria-invalid": !!(r != null && r.length),
|
|
2378
|
+
"aria-label": s,
|
|
2379
|
+
...h
|
|
2391
2380
|
}
|
|
2392
2381
|
)
|
|
2393
2382
|
] }),
|
|
2394
|
-
/* @__PURE__ */ i("div", { className:
|
|
2395
|
-
!C && /* @__PURE__ */
|
|
2383
|
+
/* @__PURE__ */ i("div", { className: K.activeIndicator }),
|
|
2384
|
+
!C && /* @__PURE__ */ $(ne, { children: [
|
|
2396
2385
|
u && /* @__PURE__ */ i(
|
|
2397
2386
|
"div",
|
|
2398
2387
|
{
|
|
2399
2388
|
onClick: (V) => {
|
|
2400
2389
|
V.stopPropagation();
|
|
2401
2390
|
},
|
|
2402
|
-
className:
|
|
2403
|
-
children:
|
|
2391
|
+
className: K.trailingIcon,
|
|
2392
|
+
children: _.isValidElement(u) ? u : /* @__PURE__ */ i(Q, { className: "h-5", icon: u })
|
|
2404
2393
|
}
|
|
2405
2394
|
),
|
|
2406
|
-
!u &&
|
|
2395
|
+
!u && n && /* @__PURE__ */ i("span", { className: K.suffix, children: n })
|
|
2407
2396
|
] }),
|
|
2408
2397
|
C && /* @__PURE__ */ i(
|
|
2409
2398
|
"div",
|
|
2410
2399
|
{
|
|
2411
|
-
className: f(
|
|
2400
|
+
className: f(K.trailingIcon, {
|
|
2412
2401
|
" absolute right-0": !u
|
|
2413
2402
|
}),
|
|
2414
2403
|
children: /* @__PURE__ */ i(
|
|
2415
2404
|
Q,
|
|
2416
2405
|
{
|
|
2417
2406
|
className: "h-5 text-error",
|
|
2418
|
-
icon:
|
|
2407
|
+
icon: nt
|
|
2419
2408
|
}
|
|
2420
2409
|
)
|
|
2421
2410
|
}
|
|
2422
2411
|
)
|
|
2423
2412
|
] }),
|
|
2424
|
-
|
|
2413
|
+
B && /* @__PURE__ */ i("p", { className: K.supportingText, children: r != null && r.length ? r : d != null && d.length ? d : " " })
|
|
2425
2414
|
] });
|
|
2426
|
-
},
|
|
2415
|
+
}, lt = q(
|
|
2427
2416
|
"navigationRailItem",
|
|
2428
|
-
({ isSelected: e, icon: t, label:
|
|
2417
|
+
({ isSelected: e, icon: t, label: r, variant: l }) => ({
|
|
2429
2418
|
navigationRailItem: f(" group flex flex-col pt-1 pb-1.5 cursor-pointer", {
|
|
2430
2419
|
"text-on-surface-variant": !e,
|
|
2431
2420
|
"text-on-secondary-container": e,
|
|
2432
|
-
"gap-2 h-[68px]":
|
|
2433
|
-
"gap-0 h-[66px]":
|
|
2421
|
+
"gap-2 h-[68px]": l == "vertical",
|
|
2422
|
+
"gap-0 h-[66px]": l == "horizontal"
|
|
2434
2423
|
}),
|
|
2435
2424
|
container: f(
|
|
2436
2425
|
" w-fit flex justify-center relative rounded-full items-center mx-5",
|
|
2437
2426
|
{
|
|
2438
2427
|
"bg-secondary-container overflow-hidden": e,
|
|
2439
|
-
"gap-2 ":
|
|
2440
|
-
"gap-0 ":
|
|
2441
|
-
"p-4": !
|
|
2428
|
+
"gap-2 ": l == "horizontal",
|
|
2429
|
+
"gap-0 ": l == "vertical",
|
|
2430
|
+
"p-4": !r
|
|
2442
2431
|
},
|
|
2443
|
-
|
|
2432
|
+
r && [
|
|
2444
2433
|
"px-4",
|
|
2445
2434
|
{
|
|
2446
|
-
"py-1 ":
|
|
2447
|
-
"py-4 ":
|
|
2435
|
+
"py-1 ": l == "vertical",
|
|
2436
|
+
"py-4 ": l == "horizontal"
|
|
2448
2437
|
}
|
|
2449
2438
|
]
|
|
2450
2439
|
),
|
|
@@ -2457,94 +2446,94 @@ const Te = {
|
|
|
2457
2446
|
),
|
|
2458
2447
|
icon: f("size-6 flex"),
|
|
2459
2448
|
label: f("w-fit mx-auto", {
|
|
2460
|
-
"text-label-large ":
|
|
2461
|
-
"text-label-medium":
|
|
2449
|
+
"text-label-large ": l == "horizontal",
|
|
2450
|
+
"text-label-medium": l == "vertical"
|
|
2462
2451
|
})
|
|
2463
2452
|
})
|
|
2464
|
-
),
|
|
2453
|
+
), ot = ({ label: e }) => /* @__PURE__ */ i("div", { className: " h-9 flex items-center mx-9 mt-3", children: /* @__PURE__ */ i("p", { className: "text-label-large text-on-surface-variant", children: e }) }), at = ({
|
|
2465
2454
|
className: e,
|
|
2466
2455
|
onClick: t,
|
|
2467
|
-
label:
|
|
2468
|
-
variant:
|
|
2469
|
-
href:
|
|
2456
|
+
label: r,
|
|
2457
|
+
variant: l = "vertical",
|
|
2458
|
+
href: n,
|
|
2470
2459
|
icon: c,
|
|
2471
|
-
selectedItem:
|
|
2472
|
-
setSelectedItem:
|
|
2460
|
+
selectedItem: s,
|
|
2461
|
+
setSelectedItem: o,
|
|
2473
2462
|
index: d,
|
|
2474
2463
|
onItemSelected: u,
|
|
2475
|
-
selected:
|
|
2476
|
-
ref:
|
|
2464
|
+
selected: x = !1,
|
|
2465
|
+
ref: y,
|
|
2477
2466
|
transition: a,
|
|
2478
|
-
isExtended:
|
|
2479
|
-
iconSelected:
|
|
2467
|
+
isExtended: v,
|
|
2468
|
+
iconSelected: g,
|
|
2480
2469
|
style: b,
|
|
2481
|
-
extendedOnly:
|
|
2482
|
-
...
|
|
2470
|
+
extendedOnly: E,
|
|
2471
|
+
...M
|
|
2483
2472
|
}) => {
|
|
2484
|
-
const
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
}, [
|
|
2488
|
-
|
|
2473
|
+
const w = P(null), N = y || w, [R, L] = S(x);
|
|
2474
|
+
W(() => {
|
|
2475
|
+
x && s == null ? L(!0) : L(s == d && d != null);
|
|
2476
|
+
}, [s]), W(() => {
|
|
2477
|
+
s == d && u && u({
|
|
2489
2478
|
ref: N,
|
|
2490
2479
|
index: d || 0,
|
|
2491
|
-
label:
|
|
2480
|
+
label: r,
|
|
2492
2481
|
icon: c
|
|
2493
2482
|
});
|
|
2494
|
-
}, [
|
|
2495
|
-
const C =
|
|
2496
|
-
|
|
2497
|
-
},
|
|
2498
|
-
isExtended:
|
|
2499
|
-
extendedOnly:
|
|
2483
|
+
}, [s]);
|
|
2484
|
+
const C = n ? "a" : "button", D = (I) => {
|
|
2485
|
+
o && o(d ?? null), t && t(I);
|
|
2486
|
+
}, B = lt({
|
|
2487
|
+
isExtended: v,
|
|
2488
|
+
extendedOnly: E,
|
|
2500
2489
|
className: e,
|
|
2501
2490
|
onItemSelected: u,
|
|
2502
|
-
selectedItem:
|
|
2491
|
+
selectedItem: s,
|
|
2503
2492
|
index: d,
|
|
2504
2493
|
transition: a,
|
|
2505
|
-
selected:
|
|
2506
|
-
variant:
|
|
2494
|
+
selected: R,
|
|
2495
|
+
variant: l,
|
|
2507
2496
|
icon: c,
|
|
2508
|
-
label:
|
|
2509
|
-
isSelected:
|
|
2510
|
-
setSelectedItem:
|
|
2511
|
-
href:
|
|
2512
|
-
iconSelected:
|
|
2497
|
+
label: r,
|
|
2498
|
+
isSelected: R,
|
|
2499
|
+
setSelectedItem: o,
|
|
2500
|
+
href: n,
|
|
2501
|
+
iconSelected: g
|
|
2513
2502
|
});
|
|
2514
|
-
return a = { duration: 0.3, ...a },
|
|
2503
|
+
return a = { duration: 0.3, ...a }, E && !v ? null : (
|
|
2515
2504
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2516
2505
|
// @ts-expect-error
|
|
2517
|
-
/* @__PURE__ */
|
|
2506
|
+
/* @__PURE__ */ $(
|
|
2518
2507
|
C,
|
|
2519
2508
|
{
|
|
2520
|
-
...
|
|
2509
|
+
...M,
|
|
2521
2510
|
role: "tab",
|
|
2522
|
-
"aria-selected":
|
|
2511
|
+
"aria-selected": R,
|
|
2523
2512
|
ref: N,
|
|
2524
|
-
href:
|
|
2525
|
-
className:
|
|
2526
|
-
onClick:
|
|
2513
|
+
href: n,
|
|
2514
|
+
className: B.navigationRailItem,
|
|
2515
|
+
onClick: D,
|
|
2527
2516
|
style: { transition: a.duration + "s", ...b },
|
|
2528
2517
|
children: [
|
|
2529
|
-
/* @__PURE__ */
|
|
2518
|
+
/* @__PURE__ */ $(
|
|
2530
2519
|
U.div,
|
|
2531
2520
|
{
|
|
2532
2521
|
style: {
|
|
2533
|
-
transition:
|
|
2522
|
+
transition: l == "horizontal" ? a.duration + `s, gap ${a.duration / 2}s ${a.duration - a.duration / 2}s` : a.duration + `s, gap ${a.duration / 3}s ${a.duration - a.duration / 3}s`
|
|
2534
2523
|
},
|
|
2535
2524
|
transition: a,
|
|
2536
|
-
className:
|
|
2525
|
+
className: B.container,
|
|
2537
2526
|
children: [
|
|
2538
|
-
/* @__PURE__ */ i(U.div, { layout: !0, className:
|
|
2527
|
+
/* @__PURE__ */ i(U.div, { layout: !0, className: B.stateLayer }),
|
|
2539
2528
|
c && /* @__PURE__ */ i(
|
|
2540
2529
|
Q,
|
|
2541
2530
|
{
|
|
2542
|
-
icon:
|
|
2543
|
-
className:
|
|
2531
|
+
icon: R ? g : c,
|
|
2532
|
+
className: B.icon
|
|
2544
2533
|
}
|
|
2545
2534
|
),
|
|
2546
|
-
/* @__PURE__ */ i(z, { children:
|
|
2547
|
-
const
|
|
2535
|
+
/* @__PURE__ */ i(z, { children: l == "horizontal" && (() => {
|
|
2536
|
+
const I = {
|
|
2548
2537
|
width: 0,
|
|
2549
2538
|
opacity: 0,
|
|
2550
2539
|
transition: {
|
|
@@ -2564,19 +2553,19 @@ const Te = {
|
|
|
2564
2553
|
return /* @__PURE__ */ i(
|
|
2565
2554
|
U.span,
|
|
2566
2555
|
{
|
|
2567
|
-
initial:
|
|
2556
|
+
initial: I,
|
|
2568
2557
|
animate: m,
|
|
2569
|
-
exit:
|
|
2570
|
-
className:
|
|
2571
|
-
children:
|
|
2558
|
+
exit: I,
|
|
2559
|
+
className: B.label,
|
|
2560
|
+
children: r
|
|
2572
2561
|
}
|
|
2573
2562
|
);
|
|
2574
2563
|
})() })
|
|
2575
2564
|
]
|
|
2576
2565
|
}
|
|
2577
2566
|
),
|
|
2578
|
-
/* @__PURE__ */ i(z, { children:
|
|
2579
|
-
const
|
|
2567
|
+
/* @__PURE__ */ i(z, { children: l == "vertical" && (() => {
|
|
2568
|
+
const I = {
|
|
2580
2569
|
height: 0,
|
|
2581
2570
|
opacity: 0,
|
|
2582
2571
|
transition: {
|
|
@@ -2599,12 +2588,12 @@ const Te = {
|
|
|
2599
2588
|
return /* @__PURE__ */ i(
|
|
2600
2589
|
U.span,
|
|
2601
2590
|
{
|
|
2602
|
-
initial:
|
|
2591
|
+
initial: I,
|
|
2603
2592
|
animate: m,
|
|
2604
|
-
exit:
|
|
2605
|
-
className:
|
|
2593
|
+
exit: I,
|
|
2594
|
+
className: B.label,
|
|
2606
2595
|
transition: a,
|
|
2607
|
-
children:
|
|
2596
|
+
children: r
|
|
2608
2597
|
}
|
|
2609
2598
|
);
|
|
2610
2599
|
})() })
|
|
@@ -2612,7 +2601,7 @@ const Te = {
|
|
|
2612
2601
|
}
|
|
2613
2602
|
)
|
|
2614
2603
|
);
|
|
2615
|
-
},
|
|
2604
|
+
}, st = q(
|
|
2616
2605
|
"navigationRail",
|
|
2617
2606
|
({ isExtended: e, alignment: t }) => ({
|
|
2618
2607
|
navigationRail: f("flex flex-col left-0 h-full top-0 pt-11", {
|
|
@@ -2628,107 +2617,101 @@ const Te = {
|
|
|
2628
2617
|
"w-fit items-start": e
|
|
2629
2618
|
})
|
|
2630
2619
|
})
|
|
2631
|
-
),
|
|
2620
|
+
), Et = ({
|
|
2632
2621
|
variant: e = "standard",
|
|
2633
2622
|
onItemSelected: t,
|
|
2634
|
-
children:
|
|
2635
|
-
className:
|
|
2636
|
-
selectedItem:
|
|
2623
|
+
children: r,
|
|
2624
|
+
className: l,
|
|
2625
|
+
selectedItem: n,
|
|
2637
2626
|
extended: c,
|
|
2638
|
-
alignment:
|
|
2639
|
-
menu:
|
|
2627
|
+
alignment: s = "top",
|
|
2628
|
+
menu: o = {
|
|
2640
2629
|
closed: {
|
|
2641
|
-
icon:
|
|
2630
|
+
icon: tt,
|
|
2642
2631
|
label: "Open menu"
|
|
2643
2632
|
},
|
|
2644
2633
|
opened: {
|
|
2645
|
-
icon:
|
|
2634
|
+
icon: ge,
|
|
2646
2635
|
label: "Close menu"
|
|
2647
2636
|
}
|
|
2648
2637
|
},
|
|
2649
2638
|
style: d,
|
|
2650
2639
|
onExtendedChange: u,
|
|
2651
|
-
transition:
|
|
2652
|
-
setSelectedItem:
|
|
2640
|
+
transition: x,
|
|
2641
|
+
setSelectedItem: y
|
|
2653
2642
|
}) => {
|
|
2654
|
-
const [a,
|
|
2655
|
-
let
|
|
2656
|
-
|
|
2657
|
-
const
|
|
2658
|
-
t == null || t(
|
|
2643
|
+
const [a, v] = S(null), [g, b] = S(c);
|
|
2644
|
+
let E;
|
|
2645
|
+
n == 0 || n != null ? E = n : E = a;
|
|
2646
|
+
const M = y || v, w = P(null), N = (I) => {
|
|
2647
|
+
t == null || t(I);
|
|
2659
2648
|
};
|
|
2660
|
-
function
|
|
2649
|
+
function R(I) {
|
|
2661
2650
|
const m = [];
|
|
2662
|
-
return
|
|
2663
|
-
|
|
2651
|
+
return be.forEach(I, (j) => {
|
|
2652
|
+
ee(j) && j.type === Ne ? m.push(...R(j.props.children)) : m.push(j);
|
|
2664
2653
|
}), m;
|
|
2665
2654
|
}
|
|
2666
|
-
const
|
|
2667
|
-
(
|
|
2668
|
-
),
|
|
2669
|
-
children:
|
|
2655
|
+
const L = R(r), C = L.filter(
|
|
2656
|
+
(I) => ee(I) && I.type === ue
|
|
2657
|
+
), D = st({
|
|
2658
|
+
children: r,
|
|
2670
2659
|
onItemSelected: t,
|
|
2671
|
-
selectedItem:
|
|
2672
|
-
setSelectedItem:
|
|
2673
|
-
className:
|
|
2660
|
+
selectedItem: E,
|
|
2661
|
+
setSelectedItem: M,
|
|
2662
|
+
className: l,
|
|
2674
2663
|
variant: e,
|
|
2675
|
-
extended:
|
|
2676
|
-
isExtended:
|
|
2677
|
-
alignment:
|
|
2678
|
-
menu:
|
|
2679
|
-
transition:
|
|
2664
|
+
extended: g,
|
|
2665
|
+
isExtended: g,
|
|
2666
|
+
alignment: s,
|
|
2667
|
+
menu: o,
|
|
2668
|
+
transition: x,
|
|
2680
2669
|
onExtendedChange: u
|
|
2681
2670
|
});
|
|
2682
|
-
|
|
2683
|
-
const
|
|
2684
|
-
return
|
|
2685
|
-
u == null || u(
|
|
2686
|
-
}, [
|
|
2671
|
+
x = { duration: 0.3, ...x };
|
|
2672
|
+
const B = P(!1);
|
|
2673
|
+
return B.current = !1, W(() => {
|
|
2674
|
+
u == null || u(g ?? !1);
|
|
2675
|
+
}, [g]), /* @__PURE__ */ $(
|
|
2687
2676
|
"div",
|
|
2688
2677
|
{
|
|
2689
|
-
style: { transition:
|
|
2690
|
-
ref:
|
|
2691
|
-
className:
|
|
2678
|
+
style: { transition: x.duration + "s", ...d },
|
|
2679
|
+
ref: w,
|
|
2680
|
+
className: D.navigationRail,
|
|
2692
2681
|
children: [
|
|
2693
|
-
/* @__PURE__ */
|
|
2682
|
+
/* @__PURE__ */ $("div", { className: D.header, children: [
|
|
2694
2683
|
/* @__PURE__ */ i(
|
|
2695
|
-
|
|
2684
|
+
xe,
|
|
2696
2685
|
{
|
|
2697
|
-
onClick: () => b(!
|
|
2698
|
-
|
|
2699
|
-
className:
|
|
2700
|
-
icon:
|
|
2686
|
+
onClick: () => b(!g),
|
|
2687
|
+
ariaLabel: g ? o == null ? void 0 : o.opened.label : o == null ? void 0 : o.closed.label,
|
|
2688
|
+
className: D.menuIcon,
|
|
2689
|
+
icon: g ? o.opened.icon : o == null ? void 0 : o.closed.icon
|
|
2701
2690
|
}
|
|
2702
2691
|
),
|
|
2703
|
-
C.length > 0 &&
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
className: "!shadow-none mx-5 " + C[0].props.className
|
|
2709
|
-
}
|
|
2710
|
-
)
|
|
2692
|
+
C.length > 0 && le(C[0], {
|
|
2693
|
+
transition: x,
|
|
2694
|
+
isExtended: g,
|
|
2695
|
+
className: "!shadow-none mx-5 " + C[0].props.className
|
|
2696
|
+
})
|
|
2711
2697
|
] }),
|
|
2712
|
-
/* @__PURE__ */ i("div", { className:
|
|
2713
|
-
let
|
|
2714
|
-
return
|
|
2698
|
+
/* @__PURE__ */ i("div", { className: D.segments, children: (() => {
|
|
2699
|
+
let I = 0;
|
|
2700
|
+
return L.map((m) => ee(m) && m.type === at ? le(
|
|
2715
2701
|
m,
|
|
2716
2702
|
{
|
|
2717
|
-
key:
|
|
2718
|
-
index:
|
|
2703
|
+
key: I,
|
|
2704
|
+
index: I++,
|
|
2719
2705
|
// Utilise et incrémente le compteur dédié
|
|
2720
|
-
variant:
|
|
2721
|
-
selectedItem:
|
|
2722
|
-
setSelectedItem:
|
|
2706
|
+
variant: g ? "horizontal" : "vertical",
|
|
2707
|
+
selectedItem: E,
|
|
2708
|
+
setSelectedItem: M,
|
|
2723
2709
|
onItemSelected: N,
|
|
2724
|
-
transition:
|
|
2725
|
-
extendedOnly:
|
|
2726
|
-
isExtended:
|
|
2710
|
+
transition: x,
|
|
2711
|
+
extendedOnly: B.current,
|
|
2712
|
+
isExtended: g
|
|
2727
2713
|
}
|
|
2728
|
-
) :
|
|
2729
|
-
m,
|
|
2730
|
-
{}
|
|
2731
|
-
) : null) : m);
|
|
2714
|
+
) : ee(m) && m.type === ue ? null : ee(m) && m.type === ot ? (B.current = !0, g ? le(m, {}) : null) : m);
|
|
2732
2715
|
})() }),
|
|
2733
2716
|
/* @__PURE__ */ i("div", { className: "flex-1 max-h-[160px]" })
|
|
2734
2717
|
]
|
|
@@ -2736,48 +2719,48 @@ const Te = {
|
|
|
2736
2719
|
);
|
|
2737
2720
|
};
|
|
2738
2721
|
export {
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2722
|
+
Ze as Button,
|
|
2723
|
+
xt as Card,
|
|
2724
|
+
gt as Carousel,
|
|
2725
|
+
Qe as CarouselItem,
|
|
2726
|
+
he as CustomScroll,
|
|
2727
|
+
wt as Divider,
|
|
2728
|
+
ue as Fab,
|
|
2746
2729
|
Q as Icon,
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2730
|
+
xe as IconButton,
|
|
2731
|
+
Et as NavigationRail,
|
|
2732
|
+
at as NavigationRailItem,
|
|
2733
|
+
ot as NavigationRailSection,
|
|
2734
|
+
He as ProgressIndicator,
|
|
2735
|
+
re as RippleEffect,
|
|
2736
|
+
vt as Slider,
|
|
2737
|
+
yt as SmoothScroll,
|
|
2738
|
+
bt as Snackbar,
|
|
2739
|
+
Nt as Switch,
|
|
2740
|
+
_e as SyncedFixedWrapper,
|
|
2741
|
+
rt as Tab,
|
|
2742
|
+
Lt as Tabs,
|
|
2743
|
+
It as TextField,
|
|
2744
|
+
ye as ToolTip,
|
|
2745
|
+
Ce as buttonStyle,
|
|
2746
|
+
Be as cardStyle,
|
|
2747
|
+
De as carouselItemStyle,
|
|
2765
2748
|
Ve as carouselStyle,
|
|
2766
2749
|
f as classNames,
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2750
|
+
Me as classnames,
|
|
2751
|
+
Ye as customScrollStyle,
|
|
2752
|
+
q as defaultClassNames,
|
|
2753
|
+
We as dividerStyle,
|
|
2754
|
+
$e as fabStyle,
|
|
2755
|
+
Se as getClassNames,
|
|
2756
|
+
Pe as iconButtonStyle,
|
|
2757
|
+
Je as normalize,
|
|
2758
|
+
Ue as progressIndicatorStyle,
|
|
2759
|
+
je as sliderStyle,
|
|
2760
|
+
Xe as snackbarStyle,
|
|
2761
|
+
Fe as switchStyle,
|
|
2762
|
+
Oe as tabStyle,
|
|
2763
|
+
Ke as tabsStyle,
|
|
2764
|
+
Ge as textFieldStyle,
|
|
2765
|
+
qe as toolStyle
|
|
2783
2766
|
};
|