@frequencyads/components 0.1.8 → 0.1.9
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/dist/components.css +1 -1
- package/dist/content/BrandLogos/BrandLogos.d.ts.map +1 -0
- package/dist/content/BrandLogos/index.d.ts.map +1 -0
- package/dist/content/BrandedAppName/BrandedAppName.d.ts.map +1 -0
- package/dist/content/BrandedAppName/index.d.ts.map +1 -0
- package/dist/content/DownloadCard/DownloadCard.d.ts +20 -0
- package/dist/content/DownloadCard/DownloadCard.d.ts.map +1 -0
- package/dist/content/DownloadCard/index.d.ts +2 -0
- package/dist/content/DownloadCard/index.d.ts.map +1 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +568 -530
- package/package.json +1 -1
- package/dist/brand/BrandLogos/BrandLogos.d.ts.map +0 -1
- package/dist/brand/BrandLogos/index.d.ts.map +0 -1
- package/dist/brand/BrandedAppName/BrandedAppName.d.ts.map +0 -1
- package/dist/brand/BrandedAppName/index.d.ts.map +0 -1
- /package/dist/{brand → content}/BrandLogos/BrandLogos.d.ts +0 -0
- /package/dist/{brand → content}/BrandLogos/index.d.ts +0 -0
- /package/dist/{brand → content}/BrandedAppName/BrandedAppName.d.ts +0 -0
- /package/dist/{brand → content}/BrandedAppName/index.d.ts +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useMantineColorScheme as Le, Anchor as Se, Text as v, Box as x, Container as Ge, Title as
|
|
3
|
-
import { Anchor as
|
|
4
|
-
import { jsx as e, jsxs as l, Fragment as
|
|
2
|
+
import { useMantineColorScheme as Le, Anchor as Se, Text as v, Box as x, Container as Ge, Title as te, SimpleGrid as se, Card as _e, Stack as A, Group as I, Image as oe, Paper as X, ThemeIcon as Pe, Button as J, Badge as Ee, Avatar as Re, Portal as Oe, Notification as Ve, useComputedColorScheme as He, ActionIcon as ee, Slider as Ue, Transition as Xe, Tooltip as Ye } from "@mantine/core";
|
|
3
|
+
import { Anchor as So, AspectRatio as Po, Badge as Eo, Box as Fo, Button as Wo, Card as qo, Center as Ao, Container as jo, Divider as Go, Flex as Ro, Grid as Oo, Group as Vo, Image as Ho, Paper as Uo, SimpleGrid as Xo, Stack as Yo, Text as Ko, ThemeIcon as Jo, Title as Qo } from "@mantine/core";
|
|
4
|
+
import { jsx as e, jsxs as l, Fragment as Fe } from "react/jsx-runtime";
|
|
5
5
|
import { fonts as be } from "@frequencyads/brand/typography";
|
|
6
|
-
import { useRef as
|
|
7
|
-
import { IconX as Je, IconCheck as Qe, IconQuote as Ze, IconPlayerPauseFilled as
|
|
6
|
+
import { useRef as q, useState as T, useEffect as S, forwardRef as We, useImperativeHandle as Ke, useCallback as L } from "react";
|
|
7
|
+
import { IconX as Je, IconCheck as Qe, IconQuote as Ze, IconPlayerPauseFilled as qe, IconPlayerPlayFilled as Ae, IconVolumeOff as et, IconVolume as tt, IconDownload as nt, IconPlus as ve } from "@tabler/icons-react";
|
|
8
8
|
import { motion as D } from "framer-motion";
|
|
9
9
|
import ot from "@frequencyads/brand/assets/frequency-mark-white.svg";
|
|
10
10
|
import { gradients as rt } from "@frequencyads/brand/colors";
|
|
@@ -14,15 +14,15 @@ const at = "_container_4mojd_1", st = "_appName_4mojd_7", ye = {
|
|
|
14
14
|
};
|
|
15
15
|
function uo({
|
|
16
16
|
appName: t,
|
|
17
|
-
textColor:
|
|
18
|
-
href:
|
|
19
|
-
...
|
|
17
|
+
textColor: n,
|
|
18
|
+
href: r = "/",
|
|
19
|
+
...a
|
|
20
20
|
}) {
|
|
21
|
-
const { colorScheme: s } = Le(),
|
|
21
|
+
const { colorScheme: s } = Le(), _ = s === "dark" ? "dark.0" : "gray.9";
|
|
22
22
|
return /* @__PURE__ */ e(
|
|
23
23
|
Se,
|
|
24
24
|
{
|
|
25
|
-
href:
|
|
25
|
+
href: r,
|
|
26
26
|
className: ye.container,
|
|
27
27
|
underline: "never",
|
|
28
28
|
style: {
|
|
@@ -30,8 +30,8 @@ function uo({
|
|
|
30
30
|
"--heading-font-family": be.heading.family,
|
|
31
31
|
"--heading-font-weight-semibold": be.heading.weights.semibold
|
|
32
32
|
},
|
|
33
|
-
...
|
|
34
|
-
children: /* @__PURE__ */ e(v, { className: ye.appName, c:
|
|
33
|
+
...a,
|
|
34
|
+
children: /* @__PURE__ */ e(v, { className: ye.appName, c: n ?? _, children: t })
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
}
|
|
@@ -41,33 +41,33 @@ const it = "_root_6irix_1", lt = "_visible_6irix_9", ke = {
|
|
|
41
41
|
};
|
|
42
42
|
function ce({
|
|
43
43
|
children: t,
|
|
44
|
-
delay:
|
|
45
|
-
threshold:
|
|
46
|
-
className:
|
|
44
|
+
delay: n = 0,
|
|
45
|
+
threshold: r = 0.1,
|
|
46
|
+
className: a,
|
|
47
47
|
...s
|
|
48
48
|
}) {
|
|
49
|
-
const
|
|
49
|
+
const h = q(null), [_, g] = T(!1);
|
|
50
50
|
return S(() => {
|
|
51
|
-
const
|
|
52
|
-
if (!
|
|
51
|
+
const p = h.current;
|
|
52
|
+
if (!p) return;
|
|
53
53
|
const m = new IntersectionObserver(
|
|
54
|
-
([
|
|
55
|
-
|
|
54
|
+
([u]) => {
|
|
55
|
+
u.isIntersecting && (n > 0 ? setTimeout(() => g(!0), n) : g(!0));
|
|
56
56
|
},
|
|
57
|
-
{ threshold:
|
|
57
|
+
{ threshold: r }
|
|
58
58
|
);
|
|
59
|
-
return m.observe(
|
|
60
|
-
}, [
|
|
59
|
+
return m.observe(p), () => m.disconnect();
|
|
60
|
+
}, [n, r]), /* @__PURE__ */ e(
|
|
61
61
|
x,
|
|
62
62
|
{
|
|
63
|
-
ref:
|
|
64
|
-
className: `${ke.root} ${
|
|
63
|
+
ref: h,
|
|
64
|
+
className: `${ke.root} ${_ ? ke.visible : ""} ${a ?? ""}`,
|
|
65
65
|
...s,
|
|
66
66
|
children: t
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
|
-
const ct = "_root_1bo86_1", dt = "_label_1bo86_6", mt = "_title_1bo86_11", ht = "_description_1bo86_17", ut = "_logoCard_1bo86_22",
|
|
70
|
+
const ct = "_root_1bo86_1", dt = "_label_1bo86_6", mt = "_title_1bo86_11", ht = "_description_1bo86_17", ut = "_logoCard_1bo86_22", Z = {
|
|
71
71
|
root: ct,
|
|
72
72
|
label: dt,
|
|
73
73
|
title: mt,
|
|
@@ -76,19 +76,19 @@ const ct = "_root_1bo86_1", dt = "_label_1bo86_6", mt = "_title_1bo86_11", ht =
|
|
|
76
76
|
};
|
|
77
77
|
function go({
|
|
78
78
|
title: t = "Our Logos",
|
|
79
|
-
label:
|
|
80
|
-
description:
|
|
79
|
+
label: n = "Identity",
|
|
80
|
+
description: r = "The Frequency identity comes in two forms — the horizontal textmark for standard use and the circular brand mark for compact spaces and hero moments."
|
|
81
81
|
}) {
|
|
82
|
-
return /* @__PURE__ */ e("section", { className:
|
|
82
|
+
return /* @__PURE__ */ e("section", { className: Z.root, children: /* @__PURE__ */ l(Ge, { size: "xl", children: [
|
|
83
83
|
/* @__PURE__ */ l(ce, { children: [
|
|
84
|
-
/* @__PURE__ */ e(v, { className:
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
/* @__PURE__ */ e(v, { className:
|
|
84
|
+
/* @__PURE__ */ e(v, { className: Z.label, size: "xs", tt: "uppercase", c: "blue.5", mb: "xs", children: n }),
|
|
85
|
+
/* @__PURE__ */ e(te, { order: 2, className: Z.title, mb: "lg", children: t }),
|
|
86
|
+
/* @__PURE__ */ e(v, { className: Z.description, size: "lg", c: "gray.6", mb: 60, maw: 600, children: r })
|
|
87
87
|
] }),
|
|
88
|
-
/* @__PURE__ */ l(
|
|
89
|
-
/* @__PURE__ */ e(ce, { delay: 100, children: /* @__PURE__ */ e(_e, { padding: 0, radius: "lg", className:
|
|
90
|
-
/* @__PURE__ */ e(
|
|
91
|
-
|
|
88
|
+
/* @__PURE__ */ l(se, { cols: { base: 1, lg: 2 }, spacing: 32, mb: 48, children: [
|
|
89
|
+
/* @__PURE__ */ e(ce, { delay: 100, children: /* @__PURE__ */ e(_e, { padding: 0, radius: "lg", className: Z.logoCard, children: /* @__PURE__ */ l(A, { gap: 0, children: [
|
|
90
|
+
/* @__PURE__ */ e(I, { justify: "center", align: "center", bg: "white", h: 240, children: /* @__PURE__ */ e(
|
|
91
|
+
oe,
|
|
92
92
|
{
|
|
93
93
|
src: "/images/Frequency_logo-light.png",
|
|
94
94
|
alt: "Frequency textmark on light",
|
|
@@ -96,8 +96,8 @@ function go({
|
|
|
96
96
|
fit: "contain"
|
|
97
97
|
}
|
|
98
98
|
) }),
|
|
99
|
-
/* @__PURE__ */ e(
|
|
100
|
-
|
|
99
|
+
/* @__PURE__ */ e(I, { justify: "center", align: "center", bg: "gray.9", h: 240, children: /* @__PURE__ */ e(
|
|
100
|
+
oe,
|
|
101
101
|
{
|
|
102
102
|
src: "/images/Frequency_logo-dark.png",
|
|
103
103
|
alt: "Frequency textmark on dark",
|
|
@@ -107,10 +107,10 @@ function go({
|
|
|
107
107
|
) }),
|
|
108
108
|
/* @__PURE__ */ e(x, { p: "md", bg: "gray.1", children: /* @__PURE__ */ e(v, { size: "sm", c: "gray.6", fw: 600, ff: "Montserrat, sans-serif", children: "Primary Textmark" }) })
|
|
109
109
|
] }) }) }),
|
|
110
|
-
/* @__PURE__ */ e(ce, { delay: 200, children: /* @__PURE__ */ e(_e, { padding: 0, radius: "lg", className:
|
|
111
|
-
/* @__PURE__ */ l(
|
|
112
|
-
/* @__PURE__ */ e(
|
|
113
|
-
|
|
110
|
+
/* @__PURE__ */ e(ce, { delay: 200, children: /* @__PURE__ */ e(_e, { padding: 0, radius: "lg", className: Z.logoCard, children: /* @__PURE__ */ l(A, { gap: 0, children: [
|
|
111
|
+
/* @__PURE__ */ l(se, { cols: 3, children: [
|
|
112
|
+
/* @__PURE__ */ e(I, { justify: "center", align: "center", bg: "white", style: { aspectRatio: "1/1" }, children: /* @__PURE__ */ e(
|
|
113
|
+
oe,
|
|
114
114
|
{
|
|
115
115
|
src: "/images/new-frequency-logo.png",
|
|
116
116
|
alt: "Brand mark on light",
|
|
@@ -119,8 +119,8 @@ function go({
|
|
|
119
119
|
fit: "contain"
|
|
120
120
|
}
|
|
121
121
|
) }),
|
|
122
|
-
/* @__PURE__ */ e(
|
|
123
|
-
|
|
122
|
+
/* @__PURE__ */ e(I, { justify: "center", align: "center", bg: "gray.9", style: { aspectRatio: "1/1" }, children: /* @__PURE__ */ e(
|
|
123
|
+
oe,
|
|
124
124
|
{
|
|
125
125
|
src: "/images/frequency-mark-white.svg",
|
|
126
126
|
alt: "Brand mark on dark",
|
|
@@ -130,7 +130,7 @@ function go({
|
|
|
130
130
|
}
|
|
131
131
|
) }),
|
|
132
132
|
/* @__PURE__ */ e(
|
|
133
|
-
|
|
133
|
+
I,
|
|
134
134
|
{
|
|
135
135
|
justify: "center",
|
|
136
136
|
align: "center",
|
|
@@ -139,7 +139,7 @@ function go({
|
|
|
139
139
|
background: "linear-gradient(135deg, #169BDE 0%, #7E57C2 100%)"
|
|
140
140
|
},
|
|
141
141
|
children: /* @__PURE__ */ e(
|
|
142
|
-
|
|
142
|
+
oe,
|
|
143
143
|
{
|
|
144
144
|
src: "/images/frequency-mark-white.svg",
|
|
145
145
|
alt: "Brand mark on gradient",
|
|
@@ -180,7 +180,40 @@ function go({
|
|
|
180
180
|
) })
|
|
181
181
|
] }) });
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
function po({
|
|
184
|
+
title: t,
|
|
185
|
+
description: n,
|
|
186
|
+
items: r,
|
|
187
|
+
buttonText: a,
|
|
188
|
+
href: s,
|
|
189
|
+
buttons: h
|
|
190
|
+
}) {
|
|
191
|
+
return /* @__PURE__ */ e(X, { p: "xl", radius: "md", withBorder: !0, shadow: "sm", h: "100%", children: /* @__PURE__ */ l(A, { gap: "md", justify: "space-between", h: "100%", children: [
|
|
192
|
+
/* @__PURE__ */ l(A, { gap: "md", children: [
|
|
193
|
+
/* @__PURE__ */ e(te, { order: 3, size: "h4", children: t }),
|
|
194
|
+
n && /* @__PURE__ */ e(v, { c: "dimmed", size: "sm", children: n }),
|
|
195
|
+
r && r.length > 0 && /* @__PURE__ */ e(A, { gap: "xs", children: r.map((_, g) => /* @__PURE__ */ l(I, { gap: "sm", align: "flex-start", wrap: "nowrap", children: [
|
|
196
|
+
/* @__PURE__ */ e(Pe, { color: "gray", size: 6, radius: "xl", mt: 8, style: { flexShrink: 0 }, children: /* @__PURE__ */ e("div", {}) }),
|
|
197
|
+
/* @__PURE__ */ e(v, { size: "sm", children: _ })
|
|
198
|
+
] }, g)) })
|
|
199
|
+
] }),
|
|
200
|
+
/* @__PURE__ */ e(I, { gap: "sm", mt: "md", children: h ? h.map((_, g) => /* @__PURE__ */ e(
|
|
201
|
+
J,
|
|
202
|
+
{
|
|
203
|
+
component: "a",
|
|
204
|
+
href: _.href,
|
|
205
|
+
download: !0,
|
|
206
|
+
size: "md",
|
|
207
|
+
radius: "md",
|
|
208
|
+
flex: 1,
|
|
209
|
+
style: { whiteSpace: "nowrap" },
|
|
210
|
+
children: _.label
|
|
211
|
+
},
|
|
212
|
+
g
|
|
213
|
+
)) : /* @__PURE__ */ e(J, { component: "a", href: s, download: !0, fullWidth: !0, size: "md", radius: "md", children: a }) })
|
|
214
|
+
] }) });
|
|
215
|
+
}
|
|
216
|
+
const gt = "_root_dzed6_1", pt = "_dont_dzed6_7", ft = "_dontIcon_dzed6_12", _t = "_dontLabel_dzed6_13", bt = "_doIcon_dzed6_22", vt = "_doLabel_dzed6_23", Y = {
|
|
184
217
|
root: gt,
|
|
185
218
|
dont: pt,
|
|
186
219
|
dontIcon: ft,
|
|
@@ -189,68 +222,68 @@ const gt = "_root_dzed6_1", pt = "_dont_dzed6_7", ft = "_dontIcon_dzed6_12", _t
|
|
|
189
222
|
doIcon: bt,
|
|
190
223
|
doLabel: vt
|
|
191
224
|
};
|
|
192
|
-
function
|
|
193
|
-
return /* @__PURE__ */ e("div", { className:
|
|
194
|
-
/* @__PURE__ */ l(
|
|
195
|
-
/* @__PURE__ */ l(
|
|
196
|
-
/* @__PURE__ */ e(Je, { size: 16, className:
|
|
197
|
-
/* @__PURE__ */ e(v, { size: "sm", fw: 600, className:
|
|
225
|
+
function fo({ items: t }) {
|
|
226
|
+
return /* @__PURE__ */ e("div", { className: Y.root, children: t.map((n, r) => /* @__PURE__ */ l(se, { cols: { base: 1, sm: 2 }, spacing: "md", children: [
|
|
227
|
+
/* @__PURE__ */ l(X, { className: Y.dont, p: "md", radius: "md", children: [
|
|
228
|
+
/* @__PURE__ */ l(I, { gap: 6, mb: 6, children: [
|
|
229
|
+
/* @__PURE__ */ e(Je, { size: 16, className: Y.dontIcon }),
|
|
230
|
+
/* @__PURE__ */ e(v, { size: "sm", fw: 600, className: Y.dontLabel, children: "Don't" })
|
|
198
231
|
] }),
|
|
199
|
-
/* @__PURE__ */ e(v, { size: "sm", children:
|
|
232
|
+
/* @__PURE__ */ e(v, { size: "sm", children: n.dont })
|
|
200
233
|
] }),
|
|
201
|
-
/* @__PURE__ */ l(
|
|
202
|
-
/* @__PURE__ */ l(
|
|
203
|
-
/* @__PURE__ */ e(Qe, { size: 16, className:
|
|
204
|
-
/* @__PURE__ */ e(v, { size: "sm", fw: 600, className:
|
|
234
|
+
/* @__PURE__ */ l(X, { className: Y.do, p: "md", radius: "md", children: [
|
|
235
|
+
/* @__PURE__ */ l(I, { gap: 6, mb: 6, children: [
|
|
236
|
+
/* @__PURE__ */ e(Qe, { size: 16, className: Y.doIcon }),
|
|
237
|
+
/* @__PURE__ */ e(v, { size: "sm", fw: 600, className: Y.doLabel, children: "Do" })
|
|
205
238
|
] }),
|
|
206
|
-
/* @__PURE__ */ e(v, { size: "sm", children:
|
|
239
|
+
/* @__PURE__ */ e(v, { size: "sm", children: n.do })
|
|
207
240
|
] })
|
|
208
|
-
] },
|
|
241
|
+
] }, r)) });
|
|
209
242
|
}
|
|
210
243
|
const yt = "_root_xi08i_1", kt = "_inner_xi08i_6", we = {
|
|
211
244
|
root: yt,
|
|
212
245
|
inner: kt
|
|
213
246
|
};
|
|
214
|
-
function
|
|
247
|
+
function _o({
|
|
215
248
|
title: t,
|
|
216
|
-
description:
|
|
217
|
-
expandedContent:
|
|
218
|
-
icon:
|
|
249
|
+
description: n,
|
|
250
|
+
expandedContent: r,
|
|
251
|
+
icon: a,
|
|
219
252
|
color: s = "blue",
|
|
220
|
-
iconSize:
|
|
221
|
-
collapsedHeight:
|
|
222
|
-
threshold:
|
|
223
|
-
delay:
|
|
253
|
+
iconSize: h = "lg",
|
|
254
|
+
collapsedHeight: _ = 120,
|
|
255
|
+
threshold: g = 0.5,
|
|
256
|
+
delay: p = 300,
|
|
224
257
|
expanded: m,
|
|
225
|
-
onExpandedChange:
|
|
258
|
+
onExpandedChange: u
|
|
226
259
|
}) {
|
|
227
|
-
const k =
|
|
260
|
+
const k = q(null), [i, y] = T(!1), c = m !== void 0, d = c ? m : i;
|
|
228
261
|
return S(() => {
|
|
229
262
|
if (c) return;
|
|
230
263
|
const w = k.current;
|
|
231
264
|
if (!w) return;
|
|
232
|
-
const
|
|
233
|
-
([
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
},
|
|
265
|
+
const o = new IntersectionObserver(
|
|
266
|
+
([b]) => {
|
|
267
|
+
b.isIntersecting && setTimeout(() => {
|
|
268
|
+
y(!0), u == null || u(!0);
|
|
269
|
+
}, p);
|
|
237
270
|
},
|
|
238
|
-
{ threshold:
|
|
271
|
+
{ threshold: g }
|
|
239
272
|
);
|
|
240
|
-
return
|
|
241
|
-
}, [c,
|
|
242
|
-
|
|
273
|
+
return o.observe(w), () => o.disconnect();
|
|
274
|
+
}, [c, g, p, u]), /* @__PURE__ */ e(
|
|
275
|
+
X,
|
|
243
276
|
{
|
|
244
277
|
ref: k,
|
|
245
278
|
radius: 4,
|
|
246
279
|
className: we.root,
|
|
247
280
|
component: D.div,
|
|
248
|
-
animate: { height: d ? "auto" :
|
|
281
|
+
animate: { height: d ? "auto" : _ },
|
|
249
282
|
transition: { duration: 0.5, ease: "easeOut" },
|
|
250
|
-
children: /* @__PURE__ */ e("div", { className: we.inner, children: /* @__PURE__ */ l(
|
|
251
|
-
/* @__PURE__ */ l(
|
|
283
|
+
children: /* @__PURE__ */ e("div", { className: we.inner, children: /* @__PURE__ */ l(I, { align: "flex-start", justify: "space-between", gap: "lg", wrap: "nowrap", children: [
|
|
284
|
+
/* @__PURE__ */ l(A, { gap: "xs", style: { flex: 1 }, children: [
|
|
252
285
|
/* @__PURE__ */ e(v, { fw: 700, size: "xl", lh: 1.3, children: t }),
|
|
253
|
-
/* @__PURE__ */ e(v, { size: "md", c: "dimmed", children:
|
|
286
|
+
/* @__PURE__ */ e(v, { size: "md", c: "dimmed", children: n }),
|
|
254
287
|
/* @__PURE__ */ e(
|
|
255
288
|
D.div,
|
|
256
289
|
{
|
|
@@ -261,22 +294,22 @@ function fo({
|
|
|
261
294
|
},
|
|
262
295
|
transition: { duration: 0.4, delay: 0.2 },
|
|
263
296
|
style: { overflow: "hidden" },
|
|
264
|
-
children: typeof
|
|
297
|
+
children: typeof r == "string" ? /* @__PURE__ */ e(v, { size: "sm", c: "dimmed", mt: "sm", children: r }) : r
|
|
265
298
|
}
|
|
266
299
|
)
|
|
267
300
|
] }),
|
|
268
|
-
/* @__PURE__ */ e(D.div, { animate: { scale: d ? 1.1 : 1 }, transition: { duration: 0.3 }, children: /* @__PURE__ */ e(
|
|
301
|
+
/* @__PURE__ */ e(D.div, { animate: { scale: d ? 1.1 : 1 }, transition: { duration: 0.3 }, children: /* @__PURE__ */ e(Pe, { size: h, radius: 4, color: s, variant: "filled", children: /* @__PURE__ */ e(a, { size: 20, stroke: 1.5 }) }) })
|
|
269
302
|
] }) })
|
|
270
303
|
}
|
|
271
304
|
);
|
|
272
305
|
}
|
|
273
|
-
function xe({ variant: t, children:
|
|
274
|
-
const
|
|
306
|
+
function xe({ variant: t, children: n }) {
|
|
307
|
+
const r = t === "do";
|
|
275
308
|
return /* @__PURE__ */ l(
|
|
276
|
-
|
|
309
|
+
Ee,
|
|
277
310
|
{
|
|
278
311
|
variant: "light",
|
|
279
|
-
color:
|
|
312
|
+
color: r ? "green" : "red",
|
|
280
313
|
size: "lg",
|
|
281
314
|
radius: "sm",
|
|
282
315
|
styles: {
|
|
@@ -285,11 +318,11 @@ function xe({ variant: t, children: o }) {
|
|
|
285
318
|
},
|
|
286
319
|
children: [
|
|
287
320
|
/* @__PURE__ */ l("strong", { children: [
|
|
288
|
-
|
|
321
|
+
r ? "Do" : "Don't",
|
|
289
322
|
":"
|
|
290
323
|
] }),
|
|
291
324
|
" ",
|
|
292
|
-
|
|
325
|
+
n
|
|
293
326
|
]
|
|
294
327
|
}
|
|
295
328
|
);
|
|
@@ -297,18 +330,18 @@ function xe({ variant: t, children: o }) {
|
|
|
297
330
|
const wt = "_root_1bah1_1", xt = {
|
|
298
331
|
root: wt
|
|
299
332
|
};
|
|
300
|
-
function
|
|
333
|
+
function bo({
|
|
301
334
|
accentColor: t,
|
|
302
|
-
title:
|
|
303
|
-
description:
|
|
304
|
-
doHint:
|
|
335
|
+
title: n,
|
|
336
|
+
description: r,
|
|
337
|
+
doHint: a,
|
|
305
338
|
dontHint: s
|
|
306
339
|
}) {
|
|
307
|
-
return /* @__PURE__ */ l(
|
|
308
|
-
/* @__PURE__ */ e(
|
|
309
|
-
/* @__PURE__ */ e(v, { c: "dimmed", children:
|
|
310
|
-
(
|
|
311
|
-
|
|
340
|
+
return /* @__PURE__ */ l(X, { className: xt.root, p: "lg", radius: "md", style: { borderLeftColor: t }, children: [
|
|
341
|
+
/* @__PURE__ */ e(te, { order: 3, size: "h4", mb: "xs", children: n }),
|
|
342
|
+
/* @__PURE__ */ e(v, { c: "dimmed", children: r }),
|
|
343
|
+
(a || s) && /* @__PURE__ */ l(I, { gap: "sm", mt: "md", wrap: "wrap", children: [
|
|
344
|
+
a && /* @__PURE__ */ e(xe, { variant: "do", children: a }),
|
|
312
345
|
s && /* @__PURE__ */ e(xe, { variant: "dont", children: s })
|
|
313
346
|
] })
|
|
314
347
|
] });
|
|
@@ -318,25 +351,25 @@ const Nt = "_root_ioshc_1", Tt = "_quoteIcon_ioshc_6", Ne = {
|
|
|
318
351
|
quoteIcon: Tt
|
|
319
352
|
};
|
|
320
353
|
function $t(t) {
|
|
321
|
-
return t.split(" ").map((
|
|
354
|
+
return t.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2);
|
|
322
355
|
}
|
|
323
|
-
function
|
|
356
|
+
function vo({
|
|
324
357
|
quote: t,
|
|
325
|
-
name:
|
|
326
|
-
role:
|
|
327
|
-
company:
|
|
358
|
+
name: n,
|
|
359
|
+
role: r,
|
|
360
|
+
company: a,
|
|
328
361
|
avatarSrc: s,
|
|
329
|
-
accentColor:
|
|
362
|
+
accentColor: h = "blue"
|
|
330
363
|
}) {
|
|
331
|
-
const
|
|
332
|
-
return /* @__PURE__ */ l(
|
|
333
|
-
/* @__PURE__ */ e(Ze, { size: 32, className: Ne.quoteIcon, color:
|
|
364
|
+
const _ = `var(--mantine-color-${h}-filled)`;
|
|
365
|
+
return /* @__PURE__ */ l(X, { className: Ne.root, p: "lg", radius: "md", style: { borderLeftColor: _ }, children: [
|
|
366
|
+
/* @__PURE__ */ e(Ze, { size: 32, className: Ne.quoteIcon, color: _ }),
|
|
334
367
|
/* @__PURE__ */ e(v, { fs: "italic", mt: "xs", mb: "md", children: t }),
|
|
335
|
-
/* @__PURE__ */ l(
|
|
336
|
-
/* @__PURE__ */ e(
|
|
337
|
-
/* @__PURE__ */ l(
|
|
338
|
-
/* @__PURE__ */ e(v, { fw: 600, size: "sm", children:
|
|
339
|
-
(
|
|
368
|
+
/* @__PURE__ */ l(I, { gap: "sm", children: [
|
|
369
|
+
/* @__PURE__ */ e(Re, { src: s, alt: n, color: h, radius: "xl", size: "md", children: $t(n) }),
|
|
370
|
+
/* @__PURE__ */ l(A, { gap: 0, children: [
|
|
371
|
+
/* @__PURE__ */ e(v, { fw: 600, size: "sm", children: n }),
|
|
372
|
+
(r || a) && /* @__PURE__ */ e(v, { size: "xs", c: "dimmed", children: [r, a].filter(Boolean).join(", ") })
|
|
340
373
|
] })
|
|
341
374
|
] })
|
|
342
375
|
] });
|
|
@@ -353,56 +386,56 @@ const Ct = "_root_1r7u3_1", It = "_chartWrapper_1r7u3_5", zt = "_circle_1r7u3_9"
|
|
|
353
386
|
toggleThumbDark: Pt,
|
|
354
387
|
swatch: Et
|
|
355
388
|
};
|
|
356
|
-
function
|
|
357
|
-
const [t,
|
|
389
|
+
function yo() {
|
|
390
|
+
const [t, n] = T(!1), [r, a] = T(0), s = [
|
|
358
391
|
{ color: "#5AB267", label: "Success" },
|
|
359
392
|
{ color: "#E63459", label: "Error" },
|
|
360
393
|
{ color: "#E79E26", label: "Warning" }
|
|
361
394
|
];
|
|
362
395
|
S(() => {
|
|
363
|
-
const c = setInterval(() =>
|
|
396
|
+
const c = setInterval(() => a((d) => (d + 1) % 3), 2e3);
|
|
364
397
|
return () => clearInterval(c);
|
|
365
398
|
}, []);
|
|
366
|
-
const
|
|
399
|
+
const h = s[r], _ = [
|
|
367
400
|
t ? { label: "Dark Backgrounds", pct: 50, color: "#1A1A1A", border: "1px solid #424242" } : { label: "White Backgrounds", pct: 50, color: "#ffffff", border: "1px solid #e3e3e3" },
|
|
368
401
|
{ label: "Primary Blue", pct: 20, color: "#169BDE" },
|
|
369
402
|
t ? { label: "Light Text & UI", pct: 15, color: "#f0f0f0", border: "1px solid #bdbdbd" } : { label: "Dark Text & UI", pct: 15, color: "#212121" },
|
|
370
403
|
{ label: "Secondary Violet", pct: 10, color: "#7E57C2" },
|
|
371
|
-
{ label: `Semantic (${
|
|
372
|
-
],
|
|
404
|
+
{ label: `Semantic (${h.label})`, pct: 5, color: h.color }
|
|
405
|
+
], g = 80, p = 120, m = 120, u = 36, k = 2 * Math.PI * g;
|
|
373
406
|
let i = 0;
|
|
374
|
-
const
|
|
407
|
+
const y = _.map((c) => {
|
|
375
408
|
const d = c.pct / 100 * k, w = { ...c, dasharray: `${d} ${k - d}`, dashoffset: -i };
|
|
376
409
|
return i += d, w;
|
|
377
410
|
});
|
|
378
|
-
return /* @__PURE__ */ l(
|
|
411
|
+
return /* @__PURE__ */ l(I, { gap: 40, align: "center", my: "xl", className: W.root, children: [
|
|
379
412
|
/* @__PURE__ */ e(x, { className: W.chartWrapper, children: /* @__PURE__ */ l("svg", { width: 240, height: 240, viewBox: "0 0 240 240", children: [
|
|
380
|
-
|
|
413
|
+
y.map((c, d) => /* @__PURE__ */ e(
|
|
381
414
|
"circle",
|
|
382
415
|
{
|
|
383
|
-
cx:
|
|
416
|
+
cx: p,
|
|
384
417
|
cy: m,
|
|
385
|
-
r:
|
|
418
|
+
r: g,
|
|
386
419
|
fill: "none",
|
|
387
420
|
stroke: c.color,
|
|
388
|
-
strokeWidth:
|
|
421
|
+
strokeWidth: u,
|
|
389
422
|
strokeDasharray: c.dasharray,
|
|
390
423
|
strokeDashoffset: c.dashoffset,
|
|
391
|
-
transform: `rotate(-90 ${
|
|
424
|
+
transform: `rotate(-90 ${p} ${m})`,
|
|
392
425
|
className: W.circle
|
|
393
426
|
},
|
|
394
427
|
d
|
|
395
428
|
)),
|
|
396
|
-
/* @__PURE__ */ l("text", { x:
|
|
429
|
+
/* @__PURE__ */ l("text", { x: p, y: m + 6, textAnchor: "middle", className: W.centerText, children: [
|
|
397
430
|
t ? "Dark" : "Light",
|
|
398
431
|
" Mode"
|
|
399
432
|
] })
|
|
400
433
|
] }) }),
|
|
401
|
-
/* @__PURE__ */ l(
|
|
434
|
+
/* @__PURE__ */ l(A, { gap: "lg", children: [
|
|
402
435
|
/* @__PURE__ */ e(
|
|
403
|
-
|
|
436
|
+
J,
|
|
404
437
|
{
|
|
405
|
-
onClick: () =>
|
|
438
|
+
onClick: () => n(!t),
|
|
406
439
|
variant: "default",
|
|
407
440
|
radius: "xl",
|
|
408
441
|
size: "sm",
|
|
@@ -411,7 +444,7 @@ function vo() {
|
|
|
411
444
|
children: t ? "Dark Mode" : "Light Mode"
|
|
412
445
|
}
|
|
413
446
|
),
|
|
414
|
-
/* @__PURE__ */ e(
|
|
447
|
+
/* @__PURE__ */ e(A, { gap: 8, children: _.map((c, d) => /* @__PURE__ */ l(I, { gap: 8, wrap: "nowrap", children: [
|
|
415
448
|
/* @__PURE__ */ e(
|
|
416
449
|
x,
|
|
417
450
|
{
|
|
@@ -431,22 +464,22 @@ function vo() {
|
|
|
431
464
|
const Ft = "_root_1bq7s_1", Wt = "_svg_1bq7s_12", Te = {
|
|
432
465
|
root: Ft,
|
|
433
466
|
svg: Wt
|
|
434
|
-
},
|
|
467
|
+
}, qt = 140, $e = 3, Ce = 10, je = 150, K = je / 2;
|
|
435
468
|
function Ie({
|
|
436
|
-
barCount: t =
|
|
437
|
-
duration:
|
|
438
|
-
repeatDelay:
|
|
469
|
+
barCount: t = qt,
|
|
470
|
+
duration: n = 3,
|
|
471
|
+
repeatDelay: r = 3
|
|
439
472
|
}) {
|
|
440
|
-
const [
|
|
473
|
+
const [a, s] = T(!1);
|
|
441
474
|
if (S(() => {
|
|
442
475
|
s(!0);
|
|
443
|
-
}, []), !
|
|
444
|
-
const
|
|
476
|
+
}, []), !a) return null;
|
|
477
|
+
const h = t * Ce;
|
|
445
478
|
return /* @__PURE__ */ e("div", { className: Te.root, children: /* @__PURE__ */ l(
|
|
446
479
|
"svg",
|
|
447
480
|
{
|
|
448
481
|
className: Te.svg,
|
|
449
|
-
viewBox: `0 0 ${
|
|
482
|
+
viewBox: `0 0 ${h} ${je}`,
|
|
450
483
|
preserveAspectRatio: "none",
|
|
451
484
|
children: [
|
|
452
485
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ l("linearGradient", { id: "waveformBarGradient", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [
|
|
@@ -456,17 +489,17 @@ function Ie({
|
|
|
456
489
|
/* @__PURE__ */ e("stop", { offset: "85%", stopColor: "white", stopOpacity: "0.15" }),
|
|
457
490
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: "white", stopOpacity: "0" })
|
|
458
491
|
] }) }),
|
|
459
|
-
[...Array(t)].map((
|
|
460
|
-
const
|
|
492
|
+
[...Array(t)].map((_, g) => {
|
|
493
|
+
const p = g * Ce, m = 18 + Math.sin(g * 0.4) * 6 + Math.cos(g * 0.7) * 4, u = Math.min(g, t - 1 - g) * 0.04;
|
|
461
494
|
return /* @__PURE__ */ l("g", { children: [
|
|
462
495
|
/* @__PURE__ */ e(
|
|
463
496
|
D.rect,
|
|
464
497
|
{
|
|
465
|
-
x:
|
|
498
|
+
x: p,
|
|
466
499
|
width: $e,
|
|
467
500
|
rx: "1.5",
|
|
468
501
|
fill: "url(#waveformBarGradient)",
|
|
469
|
-
initial: { height: m / 2, y:
|
|
502
|
+
initial: { height: m / 2, y: K - m / 4 },
|
|
470
503
|
animate: {
|
|
471
504
|
height: [
|
|
472
505
|
m / 2,
|
|
@@ -476,27 +509,27 @@ function Ie({
|
|
|
476
509
|
m / 2
|
|
477
510
|
],
|
|
478
511
|
y: [
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
512
|
+
K - m / 4,
|
|
513
|
+
K - m,
|
|
514
|
+
K - m / 4,
|
|
515
|
+
K - m * 0.6,
|
|
516
|
+
K - m / 4
|
|
484
517
|
]
|
|
485
518
|
},
|
|
486
519
|
transition: {
|
|
487
|
-
duration:
|
|
520
|
+
duration: n,
|
|
488
521
|
repeat: 1 / 0,
|
|
489
522
|
ease: "easeInOut",
|
|
490
|
-
delay:
|
|
491
|
-
repeatDelay:
|
|
523
|
+
delay: u,
|
|
524
|
+
repeatDelay: r
|
|
492
525
|
}
|
|
493
526
|
}
|
|
494
527
|
),
|
|
495
528
|
/* @__PURE__ */ e(
|
|
496
529
|
D.rect,
|
|
497
530
|
{
|
|
498
|
-
x:
|
|
499
|
-
y:
|
|
531
|
+
x: p,
|
|
532
|
+
y: K,
|
|
500
533
|
width: $e,
|
|
501
534
|
rx: "1.5",
|
|
502
535
|
fill: "url(#waveformBarGradient)",
|
|
@@ -511,187 +544,187 @@ function Ie({
|
|
|
511
544
|
]
|
|
512
545
|
},
|
|
513
546
|
transition: {
|
|
514
|
-
duration:
|
|
547
|
+
duration: n,
|
|
515
548
|
repeat: 1 / 0,
|
|
516
549
|
ease: "easeInOut",
|
|
517
|
-
delay:
|
|
518
|
-
repeatDelay:
|
|
550
|
+
delay: u,
|
|
551
|
+
repeatDelay: r
|
|
519
552
|
}
|
|
520
553
|
}
|
|
521
554
|
)
|
|
522
|
-
] },
|
|
555
|
+
] }, g);
|
|
523
556
|
})
|
|
524
557
|
]
|
|
525
558
|
}
|
|
526
559
|
) });
|
|
527
560
|
}
|
|
528
|
-
const
|
|
529
|
-
root:
|
|
530
|
-
progressOverlay:
|
|
531
|
-
bars:
|
|
532
|
-
bar:
|
|
561
|
+
const At = "_root_1pkxe_1", jt = "_progressOverlay_1pkxe_9", Gt = "_bars_1pkxe_19", Rt = "_bar_1pkxe_19", Ot = "_loading_1pkxe_34", re = {
|
|
562
|
+
root: At,
|
|
563
|
+
progressOverlay: jt,
|
|
564
|
+
bars: Gt,
|
|
565
|
+
bar: Rt,
|
|
533
566
|
loading: Ot
|
|
534
567
|
};
|
|
535
568
|
function Vt(t = 100) {
|
|
536
|
-
const
|
|
537
|
-
for (let
|
|
538
|
-
const
|
|
539
|
-
|
|
569
|
+
const n = [];
|
|
570
|
+
for (let r = 0; r < t; r++) {
|
|
571
|
+
const a = r / (t - 1), s = 20 + Math.sin(r * 0.1) * 15, h = (Math.random() - 0.5) * 20, _ = Math.sin(a * Math.PI) * 30, g = a > 0.2 && a < 0.8 ? Math.random() * 10 : 0, p = a < 0.05 || a > 0.95 ? Math.min(a / 0.05, (1 - a) / 0.05) : 1;
|
|
572
|
+
n.push(Math.max(5, Math.min(90, (s + h + _ + g) * p)));
|
|
540
573
|
}
|
|
541
|
-
return
|
|
574
|
+
return n;
|
|
542
575
|
}
|
|
543
|
-
const fe =
|
|
576
|
+
const fe = We(
|
|
544
577
|
({
|
|
545
578
|
audioRef: t,
|
|
546
|
-
currentTime:
|
|
547
|
-
onSeek:
|
|
548
|
-
loading:
|
|
579
|
+
currentTime: n = 0,
|
|
580
|
+
onSeek: r,
|
|
581
|
+
loading: a = !1,
|
|
549
582
|
waveColor: s = "#CCCCCC",
|
|
550
|
-
progressColor:
|
|
551
|
-
height:
|
|
552
|
-
barWidth:
|
|
553
|
-
barGap:
|
|
583
|
+
progressColor: h = "#169bde",
|
|
584
|
+
height: _ = 60,
|
|
585
|
+
barWidth: g = 2,
|
|
586
|
+
barGap: p = 1
|
|
554
587
|
}, m) => {
|
|
555
|
-
const
|
|
588
|
+
const u = q(null), [k] = T(() => Vt()), [i, y] = T(0), [c, d] = T(0);
|
|
556
589
|
Ke(m, () => ({
|
|
557
|
-
seekTo: (
|
|
558
|
-
i > 0 && d(Math.max(0, Math.min(100,
|
|
590
|
+
seekTo: (o) => {
|
|
591
|
+
i > 0 && d(Math.max(0, Math.min(100, o / i * 100)));
|
|
559
592
|
},
|
|
560
593
|
getCurrentTime: () => c / 100 * i,
|
|
561
594
|
getDuration: () => i
|
|
562
595
|
})), S(() => {
|
|
563
|
-
const
|
|
564
|
-
if (!
|
|
565
|
-
const
|
|
566
|
-
|
|
596
|
+
const o = t.current;
|
|
597
|
+
if (!o) return;
|
|
598
|
+
const b = () => {
|
|
599
|
+
o.duration && !isNaN(o.duration) && y(o.duration);
|
|
567
600
|
}, N = () => {
|
|
568
|
-
|
|
601
|
+
o.duration > 0 && d(o.currentTime / o.duration * 100);
|
|
569
602
|
};
|
|
570
|
-
return
|
|
571
|
-
|
|
603
|
+
return o.duration && !isNaN(o.duration) && y(o.duration), o.addEventListener("loadedmetadata", b), o.addEventListener("timeupdate", N), () => {
|
|
604
|
+
o.removeEventListener("loadedmetadata", b), o.removeEventListener("timeupdate", N);
|
|
572
605
|
};
|
|
573
606
|
}, [t]), S(() => {
|
|
574
|
-
i > 0 && typeof
|
|
575
|
-
}, [
|
|
607
|
+
i > 0 && typeof n == "number" && d(n / i * 100);
|
|
608
|
+
}, [n, i]);
|
|
576
609
|
const w = L(
|
|
577
|
-
(
|
|
578
|
-
if (!
|
|
579
|
-
const
|
|
580
|
-
|
|
610
|
+
(o) => {
|
|
611
|
+
if (!u.current || !r || i === 0) return;
|
|
612
|
+
const b = u.current.getBoundingClientRect(), N = (o.clientX - b.left) / b.width * i;
|
|
613
|
+
r(N);
|
|
581
614
|
},
|
|
582
|
-
[
|
|
615
|
+
[r, i]
|
|
583
616
|
);
|
|
584
|
-
return /* @__PURE__ */ l(x, { ref:
|
|
617
|
+
return /* @__PURE__ */ l(x, { ref: u, className: re.root, style: { height: _ }, onClick: w, children: [
|
|
585
618
|
/* @__PURE__ */ e(
|
|
586
619
|
"div",
|
|
587
620
|
{
|
|
588
|
-
className:
|
|
589
|
-
style: { width: `${c}%`, backgroundColor: `${
|
|
621
|
+
className: re.progressOverlay,
|
|
622
|
+
style: { width: `${c}%`, backgroundColor: `${h}15` }
|
|
590
623
|
}
|
|
591
624
|
),
|
|
592
|
-
/* @__PURE__ */ e("div", { className:
|
|
593
|
-
const N =
|
|
625
|
+
/* @__PURE__ */ e("div", { className: re.bars, style: { gap: p }, children: k.map((o, b) => {
|
|
626
|
+
const N = b / k.length * 100 <= c;
|
|
594
627
|
return /* @__PURE__ */ e(
|
|
595
628
|
"div",
|
|
596
629
|
{
|
|
597
|
-
className:
|
|
630
|
+
className: re.bar,
|
|
598
631
|
style: {
|
|
599
|
-
width:
|
|
600
|
-
height: `${
|
|
601
|
-
backgroundColor: N ?
|
|
632
|
+
width: g,
|
|
633
|
+
height: `${o}%`,
|
|
634
|
+
backgroundColor: N ? h : s
|
|
602
635
|
}
|
|
603
636
|
},
|
|
604
|
-
|
|
637
|
+
b
|
|
605
638
|
);
|
|
606
639
|
}) }),
|
|
607
|
-
|
|
640
|
+
a && /* @__PURE__ */ e("div", { className: re.loading, children: "Loading waveform..." })
|
|
608
641
|
] });
|
|
609
642
|
}
|
|
610
643
|
);
|
|
611
644
|
fe.displayName = "AudioWaveform";
|
|
612
|
-
function
|
|
613
|
-
const
|
|
645
|
+
function ko({ isActive: t = !1, height: n = 60 }) {
|
|
646
|
+
const r = q(null), a = q(void 0), [s, h] = T(!1), _ = q(null), g = q(null), { colorScheme: p } = Le(), m = p === "dark", u = {
|
|
614
647
|
start: m ? "#7950F2" : "#9775FA",
|
|
615
648
|
mid: m ? "#BE4BDB" : "#DA77F2",
|
|
616
649
|
end: m ? "#15AABF" : "#22B8CF"
|
|
617
650
|
}, k = L(
|
|
618
|
-
(i,
|
|
619
|
-
i.clearRect(0, 0,
|
|
620
|
-
const w = t || s,
|
|
621
|
-
w && (
|
|
622
|
-
const N = i.createLinearGradient(0, 0,
|
|
623
|
-
N.addColorStop(0,
|
|
624
|
-
const P = 300,
|
|
651
|
+
(i, y, c, d) => {
|
|
652
|
+
i.clearRect(0, 0, y, c);
|
|
653
|
+
const w = t || s, o = c * 0.65, b = t ? 5 : s ? 7 : 1.5;
|
|
654
|
+
w && (g.current === null && (g.current = Math.random()), Math.floor(d / 500) !== Math.floor((d - 16) / 500) && (g.current = Math.random()));
|
|
655
|
+
const N = i.createLinearGradient(0, 0, y, 0);
|
|
656
|
+
N.addColorStop(0, u.start), N.addColorStop(0.5, u.mid), N.addColorStop(1, u.end), i.strokeStyle = N, i.lineWidth = w ? 2.5 : 1.5, i.lineCap = "round", i.lineJoin = "round", w ? (i.shadowColor = u.mid, i.shadowBlur = s ? 12 : 8) : i.shadowBlur = 0, i.beginPath();
|
|
657
|
+
const P = 300, O = y / P, V = t ? 0.02 : s ? 0.025 : 3e-3;
|
|
625
658
|
for (let j = 0; j <= P; j++) {
|
|
626
|
-
const M = j *
|
|
627
|
-
let F =
|
|
659
|
+
const M = j * O, C = M / y;
|
|
660
|
+
let F = o;
|
|
628
661
|
if (w) {
|
|
629
|
-
const G = Math.sin(C * Math.PI * 6 + d *
|
|
630
|
-
let
|
|
631
|
-
s && (
|
|
632
|
-
const ie = G +
|
|
633
|
-
F =
|
|
662
|
+
const G = Math.sin(C * Math.PI * 6 + d * V) * b, H = Math.sin(C * Math.PI * 12 + d * V * 1.3) * (b * 0.4), U = Math.sin(C * Math.PI * 18 + d * V * 0.8) * (b * 0.2), ne = g.current ?? 0.5, f = Math.abs(C - ne), $ = f < 0.15 ? (1 - f / 0.15) * b * 1 : 0, B = Math.sin(C * Math.PI * 20 + d * V * 2) * $;
|
|
663
|
+
let Q = 0;
|
|
664
|
+
s && (Q = Math.sin(C * Math.PI * 30 + d * 0.03) * b * 0.4, Q += Math.sin(C * Math.PI * 8 + d * 0.015) * b * 0.5);
|
|
665
|
+
const ie = G + H + U + B + Q, le = Math.sin(C * Math.PI);
|
|
666
|
+
F = o + ie * le;
|
|
634
667
|
} else
|
|
635
|
-
F += Math.sin(C * Math.PI * 2 + d *
|
|
668
|
+
F += Math.sin(C * Math.PI * 2 + d * V) * b;
|
|
636
669
|
j === 0 ? i.moveTo(M, F) : i.lineTo(M, F);
|
|
637
670
|
}
|
|
638
671
|
if (i.stroke(), t) {
|
|
639
|
-
const C =
|
|
672
|
+
const C = y / 80, F = 16;
|
|
640
673
|
i.shadowBlur = 3;
|
|
641
674
|
for (let G = 0; G < 80; G++) {
|
|
642
|
-
const
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
675
|
+
const H = G * C + C / 2, U = H / y, ne = Math.sin(U * Math.PI * 8 + d * 0.025) * 0.5 + Math.sin(U * Math.PI * 14 + d * 0.018) * 0.3 + Math.sin(U * Math.PI * 4 + d * 0.03) * 0.2, f = Math.sin(U * Math.PI), $ = Math.abs(ne) * F * f, B = i.createLinearGradient(
|
|
676
|
+
H,
|
|
677
|
+
o - $ / 2,
|
|
678
|
+
H,
|
|
679
|
+
o + $ / 2
|
|
647
680
|
);
|
|
648
|
-
B.addColorStop(0,
|
|
681
|
+
B.addColorStop(0, u.start + "90"), B.addColorStop(0.5, u.mid + "70"), B.addColorStop(1, u.end + "50"), i.fillStyle = B, i.fillRect(H - 2 / 2, o - $ / 2, 2, $);
|
|
649
682
|
}
|
|
650
683
|
}
|
|
651
684
|
if (s)
|
|
652
685
|
for (let M = 0; M < 15; M++) {
|
|
653
|
-
const C = (Math.sin(d * 1e-3 + M * 1.5) * 0.5 + 0.5) *
|
|
654
|
-
i.beginPath(), i.arc(C, F, G, 0, Math.PI * 2), i.fillStyle = M % 2 === 0 ?
|
|
686
|
+
const C = (Math.sin(d * 1e-3 + M * 1.5) * 0.5 + 0.5) * y, F = o + Math.sin(d * 2e-3 + M) * 8, G = 1.5 + Math.sin(d * 3e-3 + M * 2) * 0.5;
|
|
687
|
+
i.beginPath(), i.arc(C, F, G, 0, Math.PI * 2), i.fillStyle = M % 2 === 0 ? u.start + "80" : u.end + "80", i.fill();
|
|
655
688
|
}
|
|
656
689
|
},
|
|
657
|
-
[t, s,
|
|
690
|
+
[t, s, u.start, u.mid, u.end]
|
|
658
691
|
);
|
|
659
692
|
return S(() => {
|
|
660
|
-
const i =
|
|
693
|
+
const i = r.current;
|
|
661
694
|
if (!i) return;
|
|
662
|
-
const
|
|
663
|
-
if (!
|
|
695
|
+
const y = i.getContext("2d");
|
|
696
|
+
if (!y) return;
|
|
664
697
|
const c = () => {
|
|
665
|
-
const
|
|
666
|
-
i.width =
|
|
698
|
+
const o = window.devicePixelRatio || 1, b = i.getBoundingClientRect();
|
|
699
|
+
i.width = b.width * o, i.height = b.height * o, y.scale(o, o);
|
|
667
700
|
};
|
|
668
701
|
c(), window.addEventListener("resize", c);
|
|
669
|
-
const d = performance.now(), w = (
|
|
670
|
-
const
|
|
671
|
-
k(
|
|
702
|
+
const d = performance.now(), w = (o) => {
|
|
703
|
+
const b = o - d, N = i.getBoundingClientRect();
|
|
704
|
+
k(y, N.width, N.height, b), a.current = requestAnimationFrame(w);
|
|
672
705
|
};
|
|
673
|
-
return
|
|
674
|
-
window.removeEventListener("resize", c),
|
|
706
|
+
return a.current = requestAnimationFrame(w), () => {
|
|
707
|
+
window.removeEventListener("resize", c), a.current && cancelAnimationFrame(a.current);
|
|
675
708
|
};
|
|
676
709
|
}, [k]), S(() => {
|
|
677
710
|
if (t) {
|
|
678
|
-
queueMicrotask(() =>
|
|
711
|
+
queueMicrotask(() => h(!1)), _.current = Date.now();
|
|
679
712
|
return;
|
|
680
713
|
}
|
|
681
|
-
const
|
|
714
|
+
const y = setInterval(() => {
|
|
682
715
|
const c = Date.now();
|
|
683
|
-
|
|
684
|
-
const d = c -
|
|
685
|
-
d >= w && !s && (
|
|
716
|
+
_.current === null && (_.current = c);
|
|
717
|
+
const d = c - _.current, w = 12e4 + Math.random() * 6e4;
|
|
718
|
+
d >= w && !s && (h(!0), _.current = c, setTimeout(() => h(!1), 4e3));
|
|
686
719
|
}, 5e3);
|
|
687
|
-
return () => clearInterval(
|
|
720
|
+
return () => clearInterval(y);
|
|
688
721
|
}, [t, s]), /* @__PURE__ */ e(
|
|
689
722
|
x,
|
|
690
723
|
{
|
|
691
724
|
style: {
|
|
692
725
|
position: "relative",
|
|
693
726
|
width: "100%",
|
|
694
|
-
height:
|
|
727
|
+
height: n,
|
|
695
728
|
overflow: "hidden",
|
|
696
729
|
pointerEvents: "none",
|
|
697
730
|
opacity: m ? 1 : 0.8
|
|
@@ -699,7 +732,7 @@ function yo({ isActive: t = !1, height: o = 60 }) {
|
|
|
699
732
|
children: /* @__PURE__ */ e(
|
|
700
733
|
"canvas",
|
|
701
734
|
{
|
|
702
|
-
ref:
|
|
735
|
+
ref: r,
|
|
703
736
|
style: {
|
|
704
737
|
width: "100%",
|
|
705
738
|
height: "100%",
|
|
@@ -714,22 +747,22 @@ const Ht = "_root_1vlvy_1", Ut = "_video_1vlvy_9", ze = {
|
|
|
714
747
|
root: Ht,
|
|
715
748
|
video: Ut
|
|
716
749
|
};
|
|
717
|
-
function Xt({ src: t, opacity:
|
|
718
|
-
return /* @__PURE__ */ e("div", { className: ze.root, style: { opacity:
|
|
750
|
+
function Xt({ src: t, opacity: n = 0.3 }) {
|
|
751
|
+
return /* @__PURE__ */ e("div", { className: ze.root, style: { opacity: n }, children: /* @__PURE__ */ e("video", { autoPlay: !0, muted: !0, loop: !0, playsInline: !0, className: ze.video, children: /* @__PURE__ */ e("source", { src: t, type: "video/mp4" }) }) });
|
|
719
752
|
}
|
|
720
753
|
const Yt = "_root_ix1b2_1", Kt = "_toast_ix1b2_5", Me = {
|
|
721
754
|
root: Yt,
|
|
722
755
|
toast: Kt
|
|
723
756
|
};
|
|
724
|
-
function he({ value: t, children:
|
|
725
|
-
const [
|
|
757
|
+
function he({ value: t, children: n }) {
|
|
758
|
+
const [r, a] = T(null), s = L(() => {
|
|
726
759
|
navigator.clipboard.writeText(t).then(() => {
|
|
727
|
-
|
|
760
|
+
a(`Copied ${t}`), setTimeout(() => a(null), 1800);
|
|
728
761
|
});
|
|
729
762
|
}, [t]);
|
|
730
|
-
return /* @__PURE__ */ l(
|
|
731
|
-
/* @__PURE__ */ e("span", { onClick: s, className: Me.root, title: `Click to copy ${t}`, children:
|
|
732
|
-
|
|
763
|
+
return /* @__PURE__ */ l(Fe, { children: [
|
|
764
|
+
/* @__PURE__ */ e("span", { onClick: s, className: Me.root, title: `Click to copy ${t}`, children: n }),
|
|
765
|
+
r && /* @__PURE__ */ e(Oe, { children: /* @__PURE__ */ e(Ve, { withCloseButton: !1, className: Me.toast, color: "blue", children: r }) })
|
|
733
766
|
] });
|
|
734
767
|
}
|
|
735
768
|
const Jt = "_root_3ht5s_1", Qt = "_shade_3ht5s_5", Zt = "_color_3ht5s_10", en = "_main_3ht5s_20", de = {
|
|
@@ -738,19 +771,19 @@ const Jt = "_root_3ht5s_1", Qt = "_shade_3ht5s_5", Zt = "_color_3ht5s_10", en =
|
|
|
738
771
|
color: Zt,
|
|
739
772
|
main: en
|
|
740
773
|
};
|
|
741
|
-
function
|
|
774
|
+
function wo({ name: t, shades: n, mainIndex: r = 5 }) {
|
|
742
775
|
return /* @__PURE__ */ l("div", { className: de.root, children: [
|
|
743
|
-
/* @__PURE__ */ e(
|
|
744
|
-
/* @__PURE__ */ e(
|
|
776
|
+
/* @__PURE__ */ e(te, { order: 4, size: "lg", tt: "capitalize", mb: "xs", children: t }),
|
|
777
|
+
/* @__PURE__ */ e(se, { cols: 10, spacing: 4, children: n.map((a, s) => /* @__PURE__ */ e(he, { value: a, children: /* @__PURE__ */ l("div", { className: de.shade, children: [
|
|
745
778
|
/* @__PURE__ */ e(
|
|
746
779
|
"div",
|
|
747
780
|
{
|
|
748
|
-
className: `${de.color} ${s ===
|
|
749
|
-
style: { backgroundColor:
|
|
781
|
+
className: `${de.color} ${s === r ? de.main : ""}`,
|
|
782
|
+
style: { backgroundColor: a }
|
|
750
783
|
}
|
|
751
784
|
),
|
|
752
785
|
/* @__PURE__ */ e(v, { size: "xs", c: "dimmed", ta: "center", mt: 4, children: s }),
|
|
753
|
-
/* @__PURE__ */ e(v, { size: "xs", c: "dimmed", ta: "center", ff: "monospace", children:
|
|
786
|
+
/* @__PURE__ */ e(v, { size: "xs", c: "dimmed", ta: "center", ff: "monospace", children: a })
|
|
754
787
|
] }) }, s)) })
|
|
755
788
|
] });
|
|
756
789
|
}
|
|
@@ -759,13 +792,13 @@ const tn = "_root_1vxkx_1", nn = "_preview_1vxkx_11", on = "_info_1vxkx_15", ue
|
|
|
759
792
|
preview: nn,
|
|
760
793
|
info: on
|
|
761
794
|
};
|
|
762
|
-
function
|
|
763
|
-
return /* @__PURE__ */ e(he, { value:
|
|
764
|
-
/* @__PURE__ */ e("div", { className: ue.preview, style: { backgroundColor:
|
|
795
|
+
function xo({ name: t, hex: n, label: r }) {
|
|
796
|
+
return /* @__PURE__ */ e(he, { value: n, children: /* @__PURE__ */ l(X, { className: ue.root, shadow: "lg", radius: "md", withBorder: !1, children: [
|
|
797
|
+
/* @__PURE__ */ e("div", { className: ue.preview, style: { backgroundColor: n } }),
|
|
765
798
|
/* @__PURE__ */ l("div", { className: ue.info, children: [
|
|
766
799
|
/* @__PURE__ */ e(v, { fw: 600, size: "sm", children: t }),
|
|
767
|
-
/* @__PURE__ */ e(v, { size: "xs", c: "dimmed", ff: "monospace", children:
|
|
768
|
-
|
|
800
|
+
/* @__PURE__ */ e(v, { size: "xs", c: "dimmed", ff: "monospace", children: n }),
|
|
801
|
+
r && /* @__PURE__ */ e(v, { size: "xs", c: "dimmed", children: r })
|
|
769
802
|
] })
|
|
770
803
|
] }) });
|
|
771
804
|
}
|
|
@@ -774,17 +807,17 @@ const rn = "_root_9li00_1", an = "_preview_9li00_11", sn = "_info_9li00_15", ge
|
|
|
774
807
|
preview: an,
|
|
775
808
|
info: sn
|
|
776
809
|
};
|
|
777
|
-
function
|
|
778
|
-
const
|
|
779
|
-
return /* @__PURE__ */ e(he, { value:
|
|
780
|
-
/* @__PURE__ */ e("div", { className: ge.preview, style: { background:
|
|
810
|
+
function No({ name: t, colors: n, description: r }) {
|
|
811
|
+
const a = `linear-gradient(135deg, ${n[0]} 0%, ${n[1]} 100%)`;
|
|
812
|
+
return /* @__PURE__ */ e(he, { value: a, children: /* @__PURE__ */ l(X, { className: ge.root, shadow: "lg", radius: "md", children: [
|
|
813
|
+
/* @__PURE__ */ e("div", { className: ge.preview, style: { background: a } }),
|
|
781
814
|
/* @__PURE__ */ l("div", { className: ge.info, children: [
|
|
782
815
|
/* @__PURE__ */ e(v, { fw: 600, size: "sm", children: t }),
|
|
783
|
-
|
|
816
|
+
r && /* @__PURE__ */ e(v, { size: "xs", c: "dimmed", children: r }),
|
|
784
817
|
/* @__PURE__ */ l(v, { size: "xs", c: "dimmed", ff: "monospace", children: [
|
|
785
|
-
|
|
818
|
+
n[0],
|
|
786
819
|
" → ",
|
|
787
|
-
|
|
820
|
+
n[1]
|
|
788
821
|
] })
|
|
789
822
|
] })
|
|
790
823
|
] }) });
|
|
@@ -800,10 +833,10 @@ const ln = "_toggle_1nlbe_1", cn = "_toggleTrack_1nlbe_7", dn = "_toggleTrackDar
|
|
|
800
833
|
sampleText: pn,
|
|
801
834
|
details: fn
|
|
802
835
|
};
|
|
803
|
-
function
|
|
804
|
-
const [t,
|
|
836
|
+
function To() {
|
|
837
|
+
const [t, n] = T(!1);
|
|
805
838
|
He("light");
|
|
806
|
-
const
|
|
839
|
+
const r = {
|
|
807
840
|
light: {
|
|
808
841
|
bg: "#FFFFFF",
|
|
809
842
|
border: "1px solid #e3e3e3",
|
|
@@ -822,12 +855,12 @@ function No() {
|
|
|
822
855
|
{ name: "Disabled Text", hex: "#424242", label: "gray[8]" }
|
|
823
856
|
]
|
|
824
857
|
}
|
|
825
|
-
},
|
|
858
|
+
}, a = t ? r.dark : r.light;
|
|
826
859
|
return /* @__PURE__ */ l(x, { my: "xl", children: [
|
|
827
860
|
/* @__PURE__ */ e(x, { mb: "lg", style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ e(
|
|
828
|
-
|
|
861
|
+
J,
|
|
829
862
|
{
|
|
830
|
-
onClick: () =>
|
|
863
|
+
onClick: () => n(!t),
|
|
831
864
|
variant: "default",
|
|
832
865
|
radius: "xl",
|
|
833
866
|
size: "sm",
|
|
@@ -836,12 +869,12 @@ function No() {
|
|
|
836
869
|
children: t ? "Dark Mode" : "Light Mode"
|
|
837
870
|
}
|
|
838
871
|
) }),
|
|
839
|
-
/* @__PURE__ */ e(
|
|
872
|
+
/* @__PURE__ */ e(se, { cols: { base: 1, md: 3 }, spacing: "lg", children: a.colors.map((s) => /* @__PURE__ */ e(he, { value: s.hex, children: /* @__PURE__ */ l(x, { className: R.card, children: [
|
|
840
873
|
/* @__PURE__ */ e(
|
|
841
874
|
x,
|
|
842
875
|
{
|
|
843
876
|
className: R.preview,
|
|
844
|
-
style: { backgroundColor:
|
|
877
|
+
style: { backgroundColor: a.bg, border: a.border },
|
|
845
878
|
children: /* @__PURE__ */ e(v, { style: { color: s.hex }, className: R.sampleText, children: "Aa" })
|
|
846
879
|
}
|
|
847
880
|
),
|
|
@@ -853,85 +886,85 @@ function No() {
|
|
|
853
886
|
] }) }, s.name + s.hex)) })
|
|
854
887
|
] });
|
|
855
888
|
}
|
|
856
|
-
const _n = "_root_n9zxy_1", bn = "_playButton_n9zxy_8", vn = "_time_n9zxy_22", yn = "_volumeGroup_n9zxy_28",
|
|
889
|
+
const _n = "_root_n9zxy_1", bn = "_playButton_n9zxy_8", vn = "_time_n9zxy_22", yn = "_volumeGroup_n9zxy_28", ae = {
|
|
857
890
|
root: _n,
|
|
858
891
|
playButton: bn,
|
|
859
892
|
time: vn,
|
|
860
893
|
volumeGroup: yn
|
|
861
894
|
};
|
|
862
895
|
function pe(t) {
|
|
863
|
-
const
|
|
864
|
-
return `${
|
|
896
|
+
const n = Math.floor(t / 60), r = Math.floor(t % 60);
|
|
897
|
+
return `${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}`;
|
|
865
898
|
}
|
|
866
|
-
function
|
|
899
|
+
function $o({
|
|
867
900
|
src: t,
|
|
868
|
-
filename:
|
|
869
|
-
playButtonColor:
|
|
870
|
-
playButtonSize:
|
|
901
|
+
filename: n = "audio",
|
|
902
|
+
playButtonColor: r,
|
|
903
|
+
playButtonSize: a = 32,
|
|
871
904
|
waveColor: s = "#D0D0D0",
|
|
872
|
-
progressColor:
|
|
873
|
-
waveHeight:
|
|
874
|
-
barWidth:
|
|
875
|
-
barGap:
|
|
905
|
+
progressColor: h = "#a8a8a8",
|
|
906
|
+
waveHeight: _ = 64,
|
|
907
|
+
barWidth: g = 3,
|
|
908
|
+
barGap: p = 2,
|
|
876
909
|
showVolume: m = !0,
|
|
877
|
-
showDownload:
|
|
910
|
+
showDownload: u = !0
|
|
878
911
|
}) {
|
|
879
|
-
const k =
|
|
912
|
+
const k = q(null), [i, y] = T(!1), [c, d] = T(0), [w, o] = T("00:00"), [b, N] = T("00:00"), [P, O] = T(50), [V, j] = T(50), [M, C] = T(!1);
|
|
880
913
|
S(() => {
|
|
881
|
-
const
|
|
882
|
-
if (!
|
|
883
|
-
|
|
914
|
+
const f = k.current;
|
|
915
|
+
if (!f) return;
|
|
916
|
+
f.volume = P / 100;
|
|
884
917
|
const $ = () => {
|
|
885
|
-
d(
|
|
886
|
-
}, B = () => N(pe(
|
|
918
|
+
d(f.currentTime), o(pe(f.currentTime));
|
|
919
|
+
}, B = () => N(pe(f.duration)), Q = () => {
|
|
887
920
|
setTimeout(() => {
|
|
888
|
-
d(0),
|
|
921
|
+
d(0), o("00:00"), y(!1);
|
|
889
922
|
}, 500);
|
|
890
|
-
}, ie = () =>
|
|
891
|
-
return
|
|
892
|
-
|
|
923
|
+
}, ie = () => y(!0), le = () => y(!1);
|
|
924
|
+
return f.addEventListener("timeupdate", $), f.addEventListener("loadedmetadata", B), f.addEventListener("ended", Q), f.addEventListener("play", ie), f.addEventListener("pause", le), () => {
|
|
925
|
+
f.removeEventListener("timeupdate", $), f.removeEventListener("loadedmetadata", B), f.removeEventListener("ended", Q), f.removeEventListener("play", ie), f.removeEventListener("pause", le);
|
|
893
926
|
};
|
|
894
927
|
}, [t]);
|
|
895
928
|
const F = L(() => {
|
|
896
|
-
const
|
|
897
|
-
|
|
929
|
+
const f = k.current;
|
|
930
|
+
f && (i ? f.pause() : f.play().catch(() => {
|
|
898
931
|
}));
|
|
899
|
-
}, [i]), G = L((
|
|
932
|
+
}, [i]), G = L((f) => {
|
|
900
933
|
const $ = k.current;
|
|
901
|
-
$ && !isNaN(
|
|
902
|
-
}, []),
|
|
934
|
+
$ && !isNaN(f) && isFinite(f) && ($.currentTime = f, d(f), o(pe(f)));
|
|
935
|
+
}, []), H = L((f) => {
|
|
903
936
|
const $ = k.current;
|
|
904
|
-
$ && ($.volume =
|
|
905
|
-
}, []),
|
|
906
|
-
const
|
|
907
|
-
if (
|
|
937
|
+
$ && ($.volume = f / 100, O(f), f > 0 ? (j(f), C(!1)) : C(!0));
|
|
938
|
+
}, []), U = L(() => {
|
|
939
|
+
const f = k.current;
|
|
940
|
+
if (f)
|
|
908
941
|
if (M) {
|
|
909
|
-
const $ =
|
|
910
|
-
|
|
942
|
+
const $ = V || 50;
|
|
943
|
+
f.volume = $ / 100, O($), C(!1);
|
|
911
944
|
} else
|
|
912
|
-
j(P),
|
|
913
|
-
}, [M, P,
|
|
914
|
-
fetch(t).then((
|
|
915
|
-
const $ = URL.createObjectURL(
|
|
916
|
-
B.href = $, B.download =
|
|
945
|
+
j(P), f.volume = 0, O(0), C(!0);
|
|
946
|
+
}, [M, P, V]), ne = L(() => {
|
|
947
|
+
fetch(t).then((f) => f.blob()).then((f) => {
|
|
948
|
+
const $ = URL.createObjectURL(f), B = document.createElement("a");
|
|
949
|
+
B.href = $, B.download = n, document.body.appendChild(B), B.click(), document.body.removeChild(B), URL.revokeObjectURL($);
|
|
917
950
|
}).catch(() => window.open(t, "_blank"));
|
|
918
|
-
}, [t,
|
|
919
|
-
return /* @__PURE__ */ l(
|
|
951
|
+
}, [t, n]);
|
|
952
|
+
return /* @__PURE__ */ l(I, { gap: "sm", wrap: "nowrap", className: ae.root, children: [
|
|
920
953
|
/* @__PURE__ */ e("audio", { ref: k, src: t, preload: "metadata" }),
|
|
921
954
|
/* @__PURE__ */ e(
|
|
922
|
-
|
|
955
|
+
ee,
|
|
923
956
|
{
|
|
924
957
|
variant: "filled",
|
|
925
958
|
radius: "xl",
|
|
926
|
-
size:
|
|
927
|
-
color:
|
|
959
|
+
size: a,
|
|
960
|
+
color: r,
|
|
928
961
|
onClick: F,
|
|
929
962
|
"aria-label": i ? "Pause" : "Play",
|
|
930
|
-
className:
|
|
931
|
-
children: i ? /* @__PURE__ */ e(
|
|
963
|
+
className: ae.playButton,
|
|
964
|
+
children: i ? /* @__PURE__ */ e(qe, { size: a * 0.5 }) : /* @__PURE__ */ e(Ae, { size: a * 0.5 })
|
|
932
965
|
}
|
|
933
966
|
),
|
|
934
|
-
/* @__PURE__ */ e(v, { size: "xs", ff: "monospace", c: "dimmed", className:
|
|
967
|
+
/* @__PURE__ */ e(v, { size: "xs", ff: "monospace", c: "dimmed", className: ae.time, children: w }),
|
|
935
968
|
/* @__PURE__ */ e(x, { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
936
969
|
fe,
|
|
937
970
|
{
|
|
@@ -939,20 +972,20 @@ function To({
|
|
|
939
972
|
currentTime: c,
|
|
940
973
|
onSeek: G,
|
|
941
974
|
waveColor: s,
|
|
942
|
-
progressColor:
|
|
943
|
-
height:
|
|
944
|
-
barWidth:
|
|
945
|
-
barGap:
|
|
975
|
+
progressColor: h,
|
|
976
|
+
height: _,
|
|
977
|
+
barWidth: g,
|
|
978
|
+
barGap: p
|
|
946
979
|
}
|
|
947
980
|
) }),
|
|
948
|
-
/* @__PURE__ */ e(v, { size: "xs", ff: "monospace", c: "dimmed", className:
|
|
949
|
-
m && /* @__PURE__ */ l(
|
|
981
|
+
/* @__PURE__ */ e(v, { size: "xs", ff: "monospace", c: "dimmed", className: ae.time, children: b }),
|
|
982
|
+
m && /* @__PURE__ */ l(I, { gap: 4, wrap: "nowrap", className: ae.volumeGroup, children: [
|
|
950
983
|
/* @__PURE__ */ e(
|
|
951
|
-
|
|
984
|
+
ee,
|
|
952
985
|
{
|
|
953
986
|
variant: "subtle",
|
|
954
987
|
size: "sm",
|
|
955
|
-
onClick:
|
|
988
|
+
onClick: U,
|
|
956
989
|
"aria-label": M ? "Unmute" : "Mute",
|
|
957
990
|
children: M ? /* @__PURE__ */ e(et, { size: 16 }) : /* @__PURE__ */ e(tt, { size: 16 })
|
|
958
991
|
}
|
|
@@ -961,14 +994,14 @@ function To({
|
|
|
961
994
|
Ue,
|
|
962
995
|
{
|
|
963
996
|
value: P,
|
|
964
|
-
onChange:
|
|
997
|
+
onChange: H,
|
|
965
998
|
size: "xs",
|
|
966
999
|
w: 80,
|
|
967
1000
|
"aria-label": "Volume"
|
|
968
1001
|
}
|
|
969
1002
|
)
|
|
970
1003
|
] }),
|
|
971
|
-
|
|
1004
|
+
u && /* @__PURE__ */ e(ee, { variant: "subtle", size: "sm", onClick: ne, "aria-label": "Download", children: /* @__PURE__ */ e(nt, { size: 16 }) })
|
|
972
1005
|
] });
|
|
973
1006
|
}
|
|
974
1007
|
const kn = "_root_13w21_1", wn = "_playButton_13w21_11", Be = {
|
|
@@ -978,57 +1011,57 @@ const kn = "_root_13w21_1", wn = "_playButton_13w21_11", Be = {
|
|
|
978
1011
|
mini: { height: 24, buttonSize: 20, iconSize: 14, waveHeight: 16, barWidth: 1, barGap: 0 },
|
|
979
1012
|
small: { height: 32, buttonSize: 28, iconSize: 16, waveHeight: 20, barWidth: 1, barGap: 0 },
|
|
980
1013
|
compact: { height: 40, buttonSize: 32, iconSize: 18, waveHeight: 24, barWidth: 2, barGap: 1 }
|
|
981
|
-
}, Nn =
|
|
1014
|
+
}, Nn = We(
|
|
982
1015
|
({
|
|
983
1016
|
audioUrl: t,
|
|
984
|
-
size:
|
|
985
|
-
waveColor:
|
|
986
|
-
progressColor:
|
|
1017
|
+
size: n = "mini",
|
|
1018
|
+
waveColor: r = "#CCCCCC",
|
|
1019
|
+
progressColor: a = "#169bde",
|
|
987
1020
|
onPlay: s,
|
|
988
|
-
onPause:
|
|
989
|
-
className:
|
|
990
|
-
style:
|
|
991
|
-
},
|
|
992
|
-
const m =
|
|
1021
|
+
onPause: h,
|
|
1022
|
+
className: _,
|
|
1023
|
+
style: g
|
|
1024
|
+
}, p) => {
|
|
1025
|
+
const m = q(null), [u, k] = T(!1), [i, y] = T(0), c = xn[n];
|
|
993
1026
|
S(() => {
|
|
994
|
-
const
|
|
995
|
-
if (!
|
|
996
|
-
const
|
|
997
|
-
k(!1),
|
|
998
|
-
}, P = () => k(!1),
|
|
999
|
-
return
|
|
1000
|
-
|
|
1027
|
+
const o = m.current;
|
|
1028
|
+
if (!o) return;
|
|
1029
|
+
const b = () => y(o.currentTime), N = () => {
|
|
1030
|
+
k(!1), y(0);
|
|
1031
|
+
}, P = () => k(!1), O = () => k(!0);
|
|
1032
|
+
return o.addEventListener("timeupdate", b), o.addEventListener("ended", N), o.addEventListener("pause", P), o.addEventListener("play", O), () => {
|
|
1033
|
+
o.removeEventListener("timeupdate", b), o.removeEventListener("ended", N), o.removeEventListener("pause", P), o.removeEventListener("play", O);
|
|
1001
1034
|
};
|
|
1002
1035
|
}, [t]);
|
|
1003
1036
|
const d = L(() => {
|
|
1004
|
-
const
|
|
1005
|
-
|
|
1037
|
+
const o = m.current;
|
|
1038
|
+
o && (u ? (o.pause(), h == null || h()) : (o.play().catch(() => {
|
|
1006
1039
|
}), s == null || s()));
|
|
1007
|
-
}, [
|
|
1008
|
-
const
|
|
1009
|
-
|
|
1040
|
+
}, [u, s, h]), w = L((o) => {
|
|
1041
|
+
const b = m.current;
|
|
1042
|
+
b && !isNaN(o) && isFinite(o) && (b.currentTime = o, y(o));
|
|
1010
1043
|
}, []);
|
|
1011
1044
|
return /* @__PURE__ */ l(
|
|
1012
|
-
|
|
1045
|
+
I,
|
|
1013
1046
|
{
|
|
1014
|
-
ref:
|
|
1015
|
-
gap:
|
|
1047
|
+
ref: p,
|
|
1048
|
+
gap: n === "mini" ? 6 : n === "small" ? 8 : 10,
|
|
1016
1049
|
wrap: "nowrap",
|
|
1017
|
-
className: `${Be.root} ${
|
|
1018
|
-
style: { height: c.height, ...
|
|
1050
|
+
className: `${Be.root} ${_ ?? ""}`,
|
|
1051
|
+
style: { height: c.height, ...g },
|
|
1019
1052
|
children: [
|
|
1020
1053
|
/* @__PURE__ */ e("audio", { ref: m, src: t, preload: "metadata" }),
|
|
1021
1054
|
/* @__PURE__ */ e(
|
|
1022
|
-
|
|
1055
|
+
ee,
|
|
1023
1056
|
{
|
|
1024
1057
|
variant: "filled",
|
|
1025
1058
|
color: "blue",
|
|
1026
1059
|
radius: "xl",
|
|
1027
1060
|
size: c.buttonSize,
|
|
1028
1061
|
onClick: d,
|
|
1029
|
-
"aria-label":
|
|
1062
|
+
"aria-label": u ? "Pause" : "Play",
|
|
1030
1063
|
className: Be.playButton,
|
|
1031
|
-
children:
|
|
1064
|
+
children: u ? /* @__PURE__ */ e(qe, { size: c.iconSize }) : /* @__PURE__ */ e(Ae, { size: c.iconSize })
|
|
1032
1065
|
}
|
|
1033
1066
|
),
|
|
1034
1067
|
/* @__PURE__ */ e(x, { style: { flex: 1, minWidth: 80 }, children: /* @__PURE__ */ e(
|
|
@@ -1037,8 +1070,8 @@ const kn = "_root_13w21_1", wn = "_playButton_13w21_11", Be = {
|
|
|
1037
1070
|
audioRef: m,
|
|
1038
1071
|
currentTime: i,
|
|
1039
1072
|
onSeek: w,
|
|
1040
|
-
waveColor:
|
|
1041
|
-
progressColor:
|
|
1073
|
+
waveColor: r,
|
|
1074
|
+
progressColor: a,
|
|
1042
1075
|
height: c.waveHeight,
|
|
1043
1076
|
barWidth: c.barWidth,
|
|
1044
1077
|
barGap: c.barGap
|
|
@@ -1056,73 +1089,73 @@ const Tn = "_root_4fblk_1", $n = "_actions_4fblk_22", Cn = "_fab_4fblk_43", In =
|
|
|
1056
1089
|
fab: Cn,
|
|
1057
1090
|
actionButton: In
|
|
1058
1091
|
};
|
|
1059
|
-
function
|
|
1092
|
+
function Co({
|
|
1060
1093
|
actions: t,
|
|
1061
|
-
icon:
|
|
1062
|
-
openIcon:
|
|
1063
|
-
direction:
|
|
1094
|
+
icon: n,
|
|
1095
|
+
openIcon: r,
|
|
1096
|
+
direction: a = "up",
|
|
1064
1097
|
color: s = "blue",
|
|
1065
|
-
size:
|
|
1066
|
-
defaultOpen:
|
|
1067
|
-
open:
|
|
1068
|
-
onOpenChange:
|
|
1098
|
+
size: h = 56,
|
|
1099
|
+
defaultOpen: _ = !1,
|
|
1100
|
+
open: g,
|
|
1101
|
+
onOpenChange: p,
|
|
1069
1102
|
style: m,
|
|
1070
|
-
className:
|
|
1103
|
+
className: u
|
|
1071
1104
|
}) {
|
|
1072
|
-
const [k, i] = T(
|
|
1073
|
-
const
|
|
1074
|
-
i(
|
|
1075
|
-
}, [
|
|
1076
|
-
i(!1),
|
|
1077
|
-
}, [
|
|
1078
|
-
return /* @__PURE__ */ l(x, { className: `${me.root} ${
|
|
1079
|
-
/* @__PURE__ */ e("div", { className: me.actions, "data-direction":
|
|
1080
|
-
const N =
|
|
1105
|
+
const [k, i] = T(_), y = g ?? k, c = L(() => {
|
|
1106
|
+
const o = !y;
|
|
1107
|
+
i(o), p == null || p(o);
|
|
1108
|
+
}, [y, p]), d = L(() => {
|
|
1109
|
+
i(!1), p == null || p(!1);
|
|
1110
|
+
}, [p]), w = a === "up" || a === "down";
|
|
1111
|
+
return /* @__PURE__ */ l(x, { className: `${me.root} ${u ?? ""}`, style: m, "data-direction": a, children: [
|
|
1112
|
+
/* @__PURE__ */ e("div", { className: me.actions, "data-direction": a, children: t.map((o, b) => {
|
|
1113
|
+
const N = a === "up" || a === "left" ? t.length - 1 - b : b;
|
|
1081
1114
|
return /* @__PURE__ */ e(
|
|
1082
1115
|
Xe,
|
|
1083
1116
|
{
|
|
1084
|
-
mounted:
|
|
1117
|
+
mounted: y,
|
|
1085
1118
|
transition: w ? "slide-up" : "slide-right",
|
|
1086
1119
|
duration: 200,
|
|
1087
1120
|
timingFunction: "ease",
|
|
1088
1121
|
enterDelay: N * 40,
|
|
1089
|
-
children: (P) => /* @__PURE__ */ e(Ye, { label:
|
|
1090
|
-
|
|
1122
|
+
children: (P) => /* @__PURE__ */ e(Ye, { label: o.label, position: w ? "left" : "top", children: /* @__PURE__ */ e(
|
|
1123
|
+
ee,
|
|
1091
1124
|
{
|
|
1092
1125
|
variant: "filled",
|
|
1093
1126
|
color: "gray",
|
|
1094
1127
|
radius: "xl",
|
|
1095
|
-
size:
|
|
1128
|
+
size: h * 0.7,
|
|
1096
1129
|
style: P,
|
|
1097
1130
|
className: me.actionButton,
|
|
1098
1131
|
onClick: () => {
|
|
1099
|
-
|
|
1132
|
+
o.onClick(), d();
|
|
1100
1133
|
},
|
|
1101
|
-
"aria-label":
|
|
1102
|
-
children:
|
|
1134
|
+
"aria-label": o.label,
|
|
1135
|
+
children: o.icon
|
|
1103
1136
|
}
|
|
1104
1137
|
) })
|
|
1105
1138
|
},
|
|
1106
|
-
|
|
1139
|
+
o.label
|
|
1107
1140
|
);
|
|
1108
1141
|
}) }),
|
|
1109
1142
|
/* @__PURE__ */ e(
|
|
1110
|
-
|
|
1143
|
+
ee,
|
|
1111
1144
|
{
|
|
1112
1145
|
variant: "filled",
|
|
1113
1146
|
color: s,
|
|
1114
1147
|
radius: "xl",
|
|
1115
|
-
size:
|
|
1148
|
+
size: h,
|
|
1116
1149
|
onClick: c,
|
|
1117
1150
|
className: me.fab,
|
|
1118
|
-
"data-open":
|
|
1119
|
-
"aria-label":
|
|
1120
|
-
children:
|
|
1151
|
+
"data-open": y || void 0,
|
|
1152
|
+
"aria-label": y ? "Close actions" : "Open actions",
|
|
1153
|
+
children: y ? r ?? n ?? /* @__PURE__ */ e(ve, { size: h * 0.45 }) : n ?? /* @__PURE__ */ e(ve, { size: h * 0.45 })
|
|
1121
1154
|
}
|
|
1122
1155
|
)
|
|
1123
1156
|
] });
|
|
1124
1157
|
}
|
|
1125
|
-
const zn = "
|
|
1158
|
+
const zn = "_root_18iq7_1", Mn = "_content_18iq7_8", Bn = "_label_18iq7_21", Dn = "_vignette_18iq7_38", Ln = "_logoWrapper_18iq7_51", Sn = "_logo_18iq7_51", Pn = "_glow_18iq7_74", En = "_textWrapper_18iq7_86", Fn = "_heading_18iq7_92", Wn = "_shimmer_18iq7_126", qn = "_tagline_18iq7_130", An = "_primaryButton_18iq7_146", jn = "_secondaryButton_18iq7_158", Gn = "_scrollIndicator_18iq7_175", Rn = "_scrollLabel_18iq7_186", On = "_scrollLine_18iq7_194", z = {
|
|
1126
1159
|
root: zn,
|
|
1127
1160
|
content: Mn,
|
|
1128
1161
|
label: Bn,
|
|
@@ -1133,41 +1166,41 @@ const zn = "_root_h15rs_1", Mn = "_content_h15rs_8", Bn = "_label_h15rs_21", Dn
|
|
|
1133
1166
|
textWrapper: En,
|
|
1134
1167
|
heading: Fn,
|
|
1135
1168
|
shimmer: Wn,
|
|
1136
|
-
tagline:
|
|
1137
|
-
primaryButton:
|
|
1138
|
-
secondaryButton:
|
|
1139
|
-
scrollIndicator:
|
|
1140
|
-
scrollLabel:
|
|
1169
|
+
tagline: qn,
|
|
1170
|
+
primaryButton: An,
|
|
1171
|
+
secondaryButton: jn,
|
|
1172
|
+
scrollIndicator: Gn,
|
|
1173
|
+
scrollLabel: Rn,
|
|
1141
1174
|
scrollLine: On
|
|
1142
1175
|
};
|
|
1143
|
-
function
|
|
1176
|
+
function Io({
|
|
1144
1177
|
variant: t = "logo",
|
|
1145
|
-
heading:
|
|
1146
|
-
label:
|
|
1147
|
-
tagline:
|
|
1178
|
+
heading: n,
|
|
1179
|
+
label: r,
|
|
1180
|
+
tagline: a,
|
|
1148
1181
|
logoSrc: s = ot,
|
|
1149
|
-
gradient:
|
|
1150
|
-
shimmer:
|
|
1151
|
-
primaryAction:
|
|
1152
|
-
secondaryAction:
|
|
1182
|
+
gradient: h = "frequencyAlive",
|
|
1183
|
+
shimmer: _ = !0,
|
|
1184
|
+
primaryAction: g,
|
|
1185
|
+
secondaryAction: p,
|
|
1153
1186
|
backgroundVideoSrc: m,
|
|
1154
|
-
showWaveform:
|
|
1187
|
+
showWaveform: u,
|
|
1155
1188
|
showScrollIndicator: k = !1
|
|
1156
1189
|
}) {
|
|
1157
|
-
const [i,
|
|
1190
|
+
const [i, y] = T(!1), c = typeof s == "string" ? s : s == null ? void 0 : s.src, d = n ?? (t === "text" ? "Your Message" : void 0), w = r || (t === "logo" ? "Welcome" : void 0), o = g || p, b = u ?? !0, N = rt[h];
|
|
1158
1191
|
return S(() => {
|
|
1159
|
-
|
|
1160
|
-
}, []), /* @__PURE__ */ l(x, { component: "section", className:
|
|
1192
|
+
y(!0);
|
|
1193
|
+
}, []), /* @__PURE__ */ l(x, { component: "section", className: z.root, children: [
|
|
1161
1194
|
m && /* @__PURE__ */ e(Xt, { src: m }),
|
|
1162
|
-
/* @__PURE__ */ l("div", { className:
|
|
1163
|
-
i && /* @__PURE__ */ l(
|
|
1195
|
+
/* @__PURE__ */ l("div", { className: z.content, children: [
|
|
1196
|
+
i && /* @__PURE__ */ l(Fe, { children: [
|
|
1164
1197
|
w && /* @__PURE__ */ e(
|
|
1165
1198
|
D.p,
|
|
1166
1199
|
{
|
|
1167
1200
|
initial: { opacity: 0 },
|
|
1168
1201
|
animate: { opacity: 1 },
|
|
1169
1202
|
transition: { duration: 0.8, delay: 0.2 },
|
|
1170
|
-
className:
|
|
1203
|
+
className: z.label,
|
|
1171
1204
|
children: w
|
|
1172
1205
|
}
|
|
1173
1206
|
),
|
|
@@ -1177,21 +1210,21 @@ function Co({
|
|
|
1177
1210
|
initial: { opacity: 0, scale: 0.8 },
|
|
1178
1211
|
animate: { opacity: 1, scale: 1 },
|
|
1179
1212
|
transition: { duration: 1.2, delay: 0.3, ease: "easeOut" },
|
|
1180
|
-
className:
|
|
1213
|
+
className: z.logoWrapper,
|
|
1181
1214
|
children: [
|
|
1182
|
-
|
|
1183
|
-
|
|
1215
|
+
b && /* @__PURE__ */ e(Ie, {}),
|
|
1216
|
+
b && /* @__PURE__ */ e("div", { className: z.vignette }),
|
|
1184
1217
|
/* @__PURE__ */ e(
|
|
1185
1218
|
D.img,
|
|
1186
1219
|
{
|
|
1187
1220
|
src: c,
|
|
1188
1221
|
alt: d ?? "Frequency",
|
|
1189
|
-
className:
|
|
1222
|
+
className: z.logo,
|
|
1190
1223
|
animate: { rotate: [0, 0.5, -0.5, 0] },
|
|
1191
1224
|
transition: { duration: 8, repeat: 1 / 0, ease: "easeInOut" }
|
|
1192
1225
|
}
|
|
1193
1226
|
),
|
|
1194
|
-
/* @__PURE__ */ e("div", { className:
|
|
1227
|
+
/* @__PURE__ */ e("div", { className: z.glow })
|
|
1195
1228
|
]
|
|
1196
1229
|
}
|
|
1197
1230
|
),
|
|
@@ -1201,18 +1234,18 @@ function Co({
|
|
|
1201
1234
|
initial: { opacity: 0, scale: 0.8 },
|
|
1202
1235
|
animate: { opacity: 1, scale: 1 },
|
|
1203
1236
|
transition: { duration: 1.2, delay: 0.3, ease: "easeOut" },
|
|
1204
|
-
className:
|
|
1237
|
+
className: z.textWrapper,
|
|
1205
1238
|
children: [
|
|
1206
|
-
|
|
1207
|
-
|
|
1239
|
+
b && /* @__PURE__ */ e(Ie, {}),
|
|
1240
|
+
b && /* @__PURE__ */ e("div", { className: z.vignette }),
|
|
1208
1241
|
/* @__PURE__ */ e(
|
|
1209
|
-
|
|
1242
|
+
te,
|
|
1210
1243
|
{
|
|
1211
1244
|
order: 1,
|
|
1212
|
-
className: `${
|
|
1245
|
+
className: `${z.heading} ${_ ? z.shimmer : ""}`,
|
|
1213
1246
|
style: {
|
|
1214
1247
|
backgroundImage: `linear-gradient(135deg, ${N.from}, ${N.to}, ${N.from})`,
|
|
1215
|
-
backgroundSize:
|
|
1248
|
+
backgroundSize: _ ? "200% 100%" : void 0
|
|
1216
1249
|
},
|
|
1217
1250
|
children: d
|
|
1218
1251
|
}
|
|
@@ -1220,43 +1253,43 @@ function Co({
|
|
|
1220
1253
|
]
|
|
1221
1254
|
}
|
|
1222
1255
|
),
|
|
1223
|
-
|
|
1256
|
+
a && /* @__PURE__ */ e(
|
|
1224
1257
|
D.div,
|
|
1225
1258
|
{
|
|
1226
1259
|
initial: { opacity: 0, y: 20 },
|
|
1227
1260
|
animate: { opacity: 1, y: 0 },
|
|
1228
1261
|
transition: { duration: 0.8, delay: 0.7 },
|
|
1229
|
-
children: /* @__PURE__ */ e(v, { className:
|
|
1262
|
+
children: /* @__PURE__ */ e(v, { className: z.tagline, children: a })
|
|
1230
1263
|
}
|
|
1231
1264
|
),
|
|
1232
|
-
|
|
1265
|
+
o && /* @__PURE__ */ e(
|
|
1233
1266
|
D.div,
|
|
1234
1267
|
{
|
|
1235
1268
|
initial: { opacity: 0, y: 20 },
|
|
1236
1269
|
animate: { opacity: 1, y: 0 },
|
|
1237
1270
|
transition: { duration: 0.8, delay: 0.9 },
|
|
1238
|
-
children: /* @__PURE__ */ l(
|
|
1239
|
-
|
|
1240
|
-
|
|
1271
|
+
children: /* @__PURE__ */ l(I, { gap: "xl", justify: "center", wrap: "wrap", children: [
|
|
1272
|
+
g && /* @__PURE__ */ e(
|
|
1273
|
+
J,
|
|
1241
1274
|
{
|
|
1242
1275
|
component: "a",
|
|
1243
|
-
href:
|
|
1276
|
+
href: g.href,
|
|
1244
1277
|
size: "lg",
|
|
1245
1278
|
radius: 4,
|
|
1246
|
-
className:
|
|
1247
|
-
children:
|
|
1279
|
+
className: z.primaryButton,
|
|
1280
|
+
children: g.label
|
|
1248
1281
|
}
|
|
1249
1282
|
),
|
|
1250
|
-
|
|
1251
|
-
|
|
1283
|
+
p && /* @__PURE__ */ e(
|
|
1284
|
+
J,
|
|
1252
1285
|
{
|
|
1253
1286
|
component: "a",
|
|
1254
|
-
href:
|
|
1287
|
+
href: p.href,
|
|
1255
1288
|
size: "lg",
|
|
1256
1289
|
radius: 4,
|
|
1257
1290
|
variant: "outline",
|
|
1258
|
-
className:
|
|
1259
|
-
children:
|
|
1291
|
+
className: z.secondaryButton,
|
|
1292
|
+
children: p.label
|
|
1260
1293
|
}
|
|
1261
1294
|
)
|
|
1262
1295
|
] })
|
|
@@ -1266,16 +1299,16 @@ function Co({
|
|
|
1266
1299
|
i && k && /* @__PURE__ */ l(
|
|
1267
1300
|
D.div,
|
|
1268
1301
|
{
|
|
1269
|
-
className:
|
|
1302
|
+
className: z.scrollIndicator,
|
|
1270
1303
|
initial: { opacity: 0 },
|
|
1271
1304
|
animate: { opacity: 1 },
|
|
1272
1305
|
transition: { duration: 1, delay: 1.4 },
|
|
1273
1306
|
children: [
|
|
1274
|
-
/* @__PURE__ */ e("span", { className:
|
|
1307
|
+
/* @__PURE__ */ e("span", { className: z.scrollLabel, children: "Scroll" }),
|
|
1275
1308
|
/* @__PURE__ */ e(
|
|
1276
1309
|
D.div,
|
|
1277
1310
|
{
|
|
1278
|
-
className:
|
|
1311
|
+
className: z.scrollLine,
|
|
1279
1312
|
animate: { scaleY: [1, 1.5, 1] },
|
|
1280
1313
|
transition: { duration: 1.5, repeat: 1 / 0 }
|
|
1281
1314
|
}
|
|
@@ -1299,36 +1332,36 @@ const Vn = "_container_9xj91_1", Hn = "_layout_9xj91_16", Un = "_reversed_9xj91_
|
|
|
1299
1332
|
titleHighlight: eo,
|
|
1300
1333
|
description: to
|
|
1301
1334
|
};
|
|
1302
|
-
function
|
|
1335
|
+
function zo({
|
|
1303
1336
|
badge: t,
|
|
1304
|
-
badgeColor:
|
|
1305
|
-
subtitle:
|
|
1306
|
-
title:
|
|
1337
|
+
badgeColor: n = "violet",
|
|
1338
|
+
subtitle: r,
|
|
1339
|
+
title: a,
|
|
1307
1340
|
titleColor: s = "blue",
|
|
1308
|
-
preTitle:
|
|
1309
|
-
description:
|
|
1310
|
-
actions:
|
|
1311
|
-
heading:
|
|
1341
|
+
preTitle: h,
|
|
1342
|
+
description: _,
|
|
1343
|
+
actions: g,
|
|
1344
|
+
heading: p,
|
|
1312
1345
|
children: m,
|
|
1313
|
-
stickyHeading:
|
|
1346
|
+
stickyHeading: u = !1,
|
|
1314
1347
|
py: k,
|
|
1315
1348
|
reversed: i = !1,
|
|
1316
|
-
id:
|
|
1349
|
+
id: y,
|
|
1317
1350
|
className: c
|
|
1318
1351
|
}) {
|
|
1319
|
-
const d =
|
|
1352
|
+
const d = p ?? /* @__PURE__ */ l(A, { gap: "sm", children: [
|
|
1320
1353
|
t && /* @__PURE__ */ l(x, { children: [
|
|
1321
|
-
/* @__PURE__ */ e(
|
|
1322
|
-
|
|
1354
|
+
/* @__PURE__ */ e(Ee, { color: n, variant: "filled", size: "sm", radius: 4, tt: "uppercase", fw: 700, children: t }),
|
|
1355
|
+
r && /* @__PURE__ */ e(v, { size: "sm", c: "dimmed", mt: "xs", tt: "uppercase", style: { letterSpacing: "0.05em" }, children: r })
|
|
1323
1356
|
] }),
|
|
1324
|
-
!t &&
|
|
1325
|
-
(
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1357
|
+
!t && r && /* @__PURE__ */ e(v, { size: "sm", c: "dimmed", tt: "uppercase", style: { letterSpacing: "0.05em" }, children: r }),
|
|
1358
|
+
(h || a) && /* @__PURE__ */ l(te, { order: 2, className: E.title, children: [
|
|
1359
|
+
h && /* @__PURE__ */ e("span", { className: E.preTitle, children: h }),
|
|
1360
|
+
h && /* @__PURE__ */ e("br", {}),
|
|
1361
|
+
a && /* @__PURE__ */ e(v, { component: "span", inherit: !0, className: E.titleHighlight, c: s, children: a })
|
|
1329
1362
|
] }),
|
|
1330
|
-
|
|
1331
|
-
|
|
1363
|
+
_ && /* @__PURE__ */ e(v, { size: "lg", c: "dimmed", lh: 1.7, className: E.description, children: _ }),
|
|
1364
|
+
g && /* @__PURE__ */ e(x, { mt: "md", children: g })
|
|
1332
1365
|
] });
|
|
1333
1366
|
return /* @__PURE__ */ e(
|
|
1334
1367
|
x,
|
|
@@ -1336,115 +1369,120 @@ function Io({
|
|
|
1336
1369
|
component: "section",
|
|
1337
1370
|
py: k ?? "calc(var(--mantine-spacing-xl) * 3)",
|
|
1338
1371
|
pos: "relative",
|
|
1339
|
-
id:
|
|
1372
|
+
id: y,
|
|
1340
1373
|
className: c,
|
|
1341
1374
|
children: /* @__PURE__ */ e(x, { className: E.container, children: /* @__PURE__ */ l(x, { className: `${E.layout} ${i ? E.reversed : ""}`, children: [
|
|
1342
|
-
/* @__PURE__ */ e(x, { className: `${E.headingSide} ${
|
|
1375
|
+
/* @__PURE__ */ e(x, { className: `${E.headingSide} ${u ? E.sticky : ""}`, children: /* @__PURE__ */ e(x, { className: u ? E.stickyInner : void 0, children: d }) }),
|
|
1343
1376
|
/* @__PURE__ */ e(x, { className: E.contentSide, children: m })
|
|
1344
1377
|
] }) })
|
|
1345
1378
|
}
|
|
1346
1379
|
);
|
|
1347
1380
|
}
|
|
1348
|
-
function
|
|
1381
|
+
function Mo({
|
|
1349
1382
|
value: t,
|
|
1350
|
-
suffix:
|
|
1351
|
-
prefix:
|
|
1352
|
-
duration:
|
|
1383
|
+
suffix: n = "",
|
|
1384
|
+
prefix: r = "",
|
|
1385
|
+
duration: a = 2e3,
|
|
1353
1386
|
threshold: s = 0.5,
|
|
1354
|
-
abbreviate:
|
|
1355
|
-
decimals:
|
|
1356
|
-
...
|
|
1387
|
+
abbreviate: h = !0,
|
|
1388
|
+
decimals: _,
|
|
1389
|
+
...g
|
|
1357
1390
|
}) {
|
|
1358
|
-
const [
|
|
1391
|
+
const [p, m] = T(0), [u, k] = T(!1), i = q(null);
|
|
1359
1392
|
return S(() => {
|
|
1360
1393
|
const c = i.current;
|
|
1361
1394
|
if (!c) return;
|
|
1362
1395
|
const d = new IntersectionObserver(
|
|
1363
1396
|
([w]) => {
|
|
1364
|
-
w.isIntersecting && !
|
|
1397
|
+
w.isIntersecting && !u && k(!0);
|
|
1365
1398
|
},
|
|
1366
1399
|
{ threshold: s }
|
|
1367
1400
|
);
|
|
1368
1401
|
return d.observe(c), () => d.disconnect();
|
|
1369
|
-
}, [
|
|
1370
|
-
if (!
|
|
1402
|
+
}, [u, s]), S(() => {
|
|
1403
|
+
if (!u) return;
|
|
1371
1404
|
let c, d;
|
|
1372
|
-
const w = (
|
|
1373
|
-
c || (c =
|
|
1374
|
-
const
|
|
1375
|
-
m(N * t),
|
|
1405
|
+
const w = (o) => {
|
|
1406
|
+
c || (c = o);
|
|
1407
|
+
const b = Math.min((o - c) / a, 1), N = 1 - Math.pow(1 - b, 3);
|
|
1408
|
+
m(N * t), b < 1 && (d = requestAnimationFrame(w));
|
|
1376
1409
|
};
|
|
1377
1410
|
return d = requestAnimationFrame(w), () => cancelAnimationFrame(d);
|
|
1378
|
-
}, [
|
|
1379
|
-
|
|
1411
|
+
}, [u, t, a]), /* @__PURE__ */ l(v, { component: "span", ref: i, style: { fontVariantNumeric: "tabular-nums" }, ...g, children: [
|
|
1412
|
+
r,
|
|
1380
1413
|
(() => {
|
|
1381
|
-
if (
|
|
1382
|
-
const c =
|
|
1414
|
+
if (h && t >= 1e3) {
|
|
1415
|
+
const c = p / 1e3;
|
|
1383
1416
|
return c % 1 === 0 ? `${Math.round(c)}K` : `${c.toFixed(1)}K`;
|
|
1384
1417
|
}
|
|
1385
|
-
return
|
|
1418
|
+
return _ !== void 0 ? p.toFixed(_) : t !== Math.floor(t) ? p.toFixed(1) : Math.round(p).toString();
|
|
1386
1419
|
})(),
|
|
1387
|
-
|
|
1420
|
+
n
|
|
1388
1421
|
] });
|
|
1389
1422
|
}
|
|
1390
1423
|
const no = "_root_ujac8_1", oo = "_textarea_ujac8_5", De = {
|
|
1391
1424
|
root: no,
|
|
1392
1425
|
textarea: oo
|
|
1393
1426
|
};
|
|
1394
|
-
function
|
|
1395
|
-
const [
|
|
1427
|
+
function Bo({ code: t, filename: n, height: r = 384 }) {
|
|
1428
|
+
const [a, s] = T(!1), h = L(async () => {
|
|
1396
1429
|
try {
|
|
1397
1430
|
await navigator.clipboard.writeText(t), s(!0), setTimeout(() => s(!1), 2e3);
|
|
1398
1431
|
} catch {
|
|
1399
1432
|
}
|
|
1400
1433
|
}, [t]);
|
|
1401
1434
|
return /* @__PURE__ */ l(x, { className: De.root, children: [
|
|
1402
|
-
/* @__PURE__ */ l(
|
|
1403
|
-
|
|
1404
|
-
/* @__PURE__ */ e(
|
|
1435
|
+
/* @__PURE__ */ l(I, { justify: "space-between", mb: "xs", children: [
|
|
1436
|
+
n && /* @__PURE__ */ e(v, { size: "sm", fw: 500, c: "dimmed", children: n }),
|
|
1437
|
+
/* @__PURE__ */ e(J, { size: "xs", radius: "md", color: a ? "green" : "blue", onClick: h, children: a ? "Copied!" : "Copy" })
|
|
1405
1438
|
] }),
|
|
1406
|
-
/* @__PURE__ */ e("textarea", { readOnly: !0, value: t, className: De.textarea, style: { height:
|
|
1439
|
+
/* @__PURE__ */ e("textarea", { readOnly: !0, value: t, className: De.textarea, style: { height: r } })
|
|
1407
1440
|
] });
|
|
1408
1441
|
}
|
|
1409
1442
|
export {
|
|
1410
|
-
|
|
1411
|
-
|
|
1443
|
+
So as Anchor,
|
|
1444
|
+
Mo as AnimatedCounter,
|
|
1412
1445
|
Ie as AnimatedWaveform,
|
|
1413
|
-
|
|
1446
|
+
Po as AspectRatio,
|
|
1447
|
+
$o as AudioPlayer,
|
|
1414
1448
|
fe as AudioWaveform,
|
|
1415
|
-
|
|
1416
|
-
|
|
1449
|
+
Eo as Badge,
|
|
1450
|
+
Fo as Box,
|
|
1417
1451
|
go as BrandLogos,
|
|
1418
1452
|
uo as BrandedAppName,
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
wo as
|
|
1424
|
-
|
|
1453
|
+
Wo as Button,
|
|
1454
|
+
qo as Card,
|
|
1455
|
+
Ao as Center,
|
|
1456
|
+
Bo as CodeBlock,
|
|
1457
|
+
wo as ColorPalette,
|
|
1458
|
+
xo as ColorSwatch,
|
|
1459
|
+
jo as Container,
|
|
1425
1460
|
he as Copyable,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1461
|
+
Go as Divider,
|
|
1462
|
+
yo as DonutChart,
|
|
1463
|
+
fo as DosDonts,
|
|
1464
|
+
po as DownloadCard,
|
|
1465
|
+
_o as ExpandableCard,
|
|
1430
1466
|
ce as FadeInSection,
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1467
|
+
Ro as Flex,
|
|
1468
|
+
ko as FrequencyWave,
|
|
1469
|
+
No as GradientSwatch,
|
|
1470
|
+
Oo as Grid,
|
|
1471
|
+
Vo as Group,
|
|
1472
|
+
Io as Hero,
|
|
1437
1473
|
xe as HintBadge,
|
|
1438
|
-
|
|
1474
|
+
Ho as Image,
|
|
1439
1475
|
Nn as MiniAudioPlayer,
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1476
|
+
Uo as Paper,
|
|
1477
|
+
bo as PrincipleCard,
|
|
1478
|
+
Xo as SimpleGrid,
|
|
1479
|
+
Co as SpeedDial,
|
|
1480
|
+
zo as SplitSection,
|
|
1481
|
+
Yo as Stack,
|
|
1482
|
+
vo as TestimonialCard,
|
|
1483
|
+
Ko as Text,
|
|
1484
|
+
Jo as ThemeIcon,
|
|
1485
|
+
Qo as Title,
|
|
1486
|
+
To as TypographyColors,
|
|
1449
1487
|
Xt as VideoBackground
|
|
1450
1488
|
};
|