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