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