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