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