@frequencyads/components 0.1.3 → 0.1.4
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/Hero/Hero.d.ts +3 -1
- package/dist/Hero/Hero.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +308 -308
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsxs as m, jsx as e, Fragment as ze } from "react/jsx-runtime";
|
|
3
|
-
import { useState as z, useRef as D, useEffect as P, forwardRef as xe, useImperativeHandle as
|
|
4
|
-
import { Text as N, Box as k, Group as F, ActionIcon as Y, Slider as
|
|
5
|
-
import { motion as
|
|
3
|
+
import { useState as z, useRef as D, useEffect as P, forwardRef as xe, useImperativeHandle as Be, useCallback as S } from "react";
|
|
4
|
+
import { Text as N, Box as k, Group as F, ActionIcon as Y, Slider as Se, Button as re, Portal as Te, Notification as Pe, Title as oe, SimpleGrid as Me, Paper as U, Stack as ce, ThemeIcon as We, useMantineColorScheme as Ee, Badge as $e, Transition as De, Tooltip as Fe, Avatar as je } from "@mantine/core";
|
|
5
|
+
import { motion as B } from "framer-motion";
|
|
6
6
|
import { IconPlayerPauseFilled as Ce, IconPlayerPlayFilled as ke, IconVolumeOff as Ge, IconVolume as Re, IconDownload as Ae, IconX as Oe, IconCheck as He, IconPlus as ue, IconQuote as Ve } from "@tabler/icons-react";
|
|
7
7
|
import qe from "@frequencyads/brand/assets/frequency-mark-white.svg";
|
|
8
8
|
import { gradients as Ue } from "@frequencyads/brand/colors";
|
|
@@ -11,44 +11,44 @@ function Cn({
|
|
|
11
11
|
suffix: o = "",
|
|
12
12
|
prefix: a = "",
|
|
13
13
|
duration: s = 2e3,
|
|
14
|
-
threshold:
|
|
15
|
-
abbreviate:
|
|
14
|
+
threshold: r = 0.5,
|
|
15
|
+
abbreviate: f = !0,
|
|
16
16
|
decimals: y,
|
|
17
17
|
...g
|
|
18
18
|
}) {
|
|
19
|
-
const [_,
|
|
19
|
+
const [_, l] = z(0), [d, w] = z(!1), i = D(null);
|
|
20
20
|
return P(() => {
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
23
|
-
const
|
|
24
|
-
([
|
|
25
|
-
|
|
21
|
+
const u = i.current;
|
|
22
|
+
if (!u) return;
|
|
23
|
+
const c = new IntersectionObserver(
|
|
24
|
+
([b]) => {
|
|
25
|
+
b.isIntersecting && !d && w(!0);
|
|
26
26
|
},
|
|
27
|
-
{ threshold:
|
|
27
|
+
{ threshold: r }
|
|
28
28
|
);
|
|
29
|
-
return
|
|
30
|
-
}, [
|
|
31
|
-
if (!
|
|
32
|
-
let
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
29
|
+
return c.observe(u), () => c.disconnect();
|
|
30
|
+
}, [d, r]), P(() => {
|
|
31
|
+
if (!d) return;
|
|
32
|
+
let u, c;
|
|
33
|
+
const b = (n) => {
|
|
34
|
+
u || (u = n);
|
|
35
|
+
const p = Math.min((n - u) / s, 1), I = 1 - Math.pow(1 - p, 3);
|
|
36
|
+
l(I * t), p < 1 && (c = requestAnimationFrame(b));
|
|
37
37
|
};
|
|
38
|
-
return
|
|
39
|
-
}, [
|
|
38
|
+
return c = requestAnimationFrame(b), () => cancelAnimationFrame(c);
|
|
39
|
+
}, [d, t, s]), /* @__PURE__ */ m(
|
|
40
40
|
N,
|
|
41
41
|
{
|
|
42
42
|
component: "span",
|
|
43
|
-
ref:
|
|
43
|
+
ref: i,
|
|
44
44
|
style: { fontVariantNumeric: "tabular-nums" },
|
|
45
45
|
...g,
|
|
46
46
|
children: [
|
|
47
47
|
a,
|
|
48
48
|
(() => {
|
|
49
|
-
if (
|
|
50
|
-
const
|
|
51
|
-
return
|
|
49
|
+
if (f && t >= 1e3) {
|
|
50
|
+
const u = _ / 1e3;
|
|
51
|
+
return u % 1 === 0 ? `${Math.round(u)}K` : `${u.toFixed(1)}K`;
|
|
52
52
|
}
|
|
53
53
|
return y !== void 0 ? _.toFixed(y) : t !== Math.floor(t) ? _.toFixed(1) : Math.round(_).toString();
|
|
54
54
|
})(),
|
|
@@ -66,16 +66,16 @@ function fe({
|
|
|
66
66
|
duration: o = 3,
|
|
67
67
|
repeatDelay: a = 3
|
|
68
68
|
}) {
|
|
69
|
-
const [s,
|
|
69
|
+
const [s, r] = z(!1);
|
|
70
70
|
if (P(() => {
|
|
71
|
-
|
|
71
|
+
r(!0);
|
|
72
72
|
}, []), !s) return null;
|
|
73
|
-
const
|
|
73
|
+
const f = t * pe;
|
|
74
74
|
return /* @__PURE__ */ e("div", { className: me.root, children: /* @__PURE__ */ m(
|
|
75
75
|
"svg",
|
|
76
76
|
{
|
|
77
77
|
className: me.svg,
|
|
78
|
-
viewBox: `0 0 ${
|
|
78
|
+
viewBox: `0 0 ${f} ${Le}`,
|
|
79
79
|
preserveAspectRatio: "none",
|
|
80
80
|
children: [
|
|
81
81
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ m("linearGradient", { id: "waveformBarGradient", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [
|
|
@@ -86,52 +86,52 @@ function fe({
|
|
|
86
86
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: "white", stopOpacity: "0" })
|
|
87
87
|
] }) }),
|
|
88
88
|
[...Array(t)].map((y, g) => {
|
|
89
|
-
const _ = g * pe,
|
|
89
|
+
const _ = g * pe, l = 18 + Math.sin(g * 0.4) * 6 + Math.cos(g * 0.7) * 4, d = Math.min(g, t - 1 - g) * 0.04;
|
|
90
90
|
return /* @__PURE__ */ m("g", { children: [
|
|
91
91
|
/* @__PURE__ */ e(
|
|
92
|
-
|
|
92
|
+
B.rect,
|
|
93
93
|
{
|
|
94
94
|
x: _,
|
|
95
95
|
width: he,
|
|
96
96
|
rx: "1.5",
|
|
97
97
|
fill: "url(#waveformBarGradient)",
|
|
98
|
-
initial: { height:
|
|
98
|
+
initial: { height: l / 2, y: V - l / 4 },
|
|
99
99
|
animate: {
|
|
100
|
-
height: [
|
|
100
|
+
height: [l / 2, l * 2, l / 2, l * 1.2, l / 2],
|
|
101
101
|
y: [
|
|
102
|
-
V -
|
|
103
|
-
V -
|
|
104
|
-
V -
|
|
105
|
-
V -
|
|
106
|
-
V -
|
|
102
|
+
V - l / 4,
|
|
103
|
+
V - l,
|
|
104
|
+
V - l / 4,
|
|
105
|
+
V - l * 0.6,
|
|
106
|
+
V - l / 4
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
109
|
transition: {
|
|
110
110
|
duration: o,
|
|
111
111
|
repeat: 1 / 0,
|
|
112
112
|
ease: "easeInOut",
|
|
113
|
-
delay:
|
|
113
|
+
delay: d,
|
|
114
114
|
repeatDelay: a
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
118
|
/* @__PURE__ */ e(
|
|
119
|
-
|
|
119
|
+
B.rect,
|
|
120
120
|
{
|
|
121
121
|
x: _,
|
|
122
122
|
y: V,
|
|
123
123
|
width: he,
|
|
124
124
|
rx: "1.5",
|
|
125
125
|
fill: "url(#waveformBarGradient)",
|
|
126
|
-
initial: { height:
|
|
126
|
+
initial: { height: l / 2 },
|
|
127
127
|
animate: {
|
|
128
|
-
height: [
|
|
128
|
+
height: [l / 2, l * 2, l / 2, l * 1.2, l / 2]
|
|
129
129
|
},
|
|
130
130
|
transition: {
|
|
131
131
|
duration: o,
|
|
132
132
|
repeat: 1 / 0,
|
|
133
133
|
ease: "easeInOut",
|
|
134
|
-
delay:
|
|
134
|
+
delay: d,
|
|
135
135
|
repeatDelay: a
|
|
136
136
|
}
|
|
137
137
|
}
|
|
@@ -152,8 +152,8 @@ const Je = "_root_1pkxe_1", Qe = "_progressOverlay_1pkxe_9", Ze = "_bars_1pkxe_1
|
|
|
152
152
|
function nt(t = 100) {
|
|
153
153
|
const o = [];
|
|
154
154
|
for (let a = 0; a < t; a++) {
|
|
155
|
-
const s = a / (t - 1),
|
|
156
|
-
o.push(Math.max(5, Math.min(90, (
|
|
155
|
+
const s = a / (t - 1), r = 20 + Math.sin(a * 0.1) * 15, f = (Math.random() - 0.5) * 20, y = Math.sin(s * Math.PI) * 30, g = s > 0.2 && s < 0.8 ? Math.random() * 10 : 0, _ = s < 0.05 || s > 0.95 ? Math.min(s / 0.05, (1 - s) / 0.05) : 1;
|
|
156
|
+
o.push(Math.max(5, Math.min(90, (r + f + y + g) * _)));
|
|
157
157
|
}
|
|
158
158
|
return o;
|
|
159
159
|
}
|
|
@@ -163,58 +163,58 @@ const le = xe(
|
|
|
163
163
|
currentTime: o = 0,
|
|
164
164
|
onSeek: a,
|
|
165
165
|
loading: s = !1,
|
|
166
|
-
waveColor:
|
|
167
|
-
progressColor:
|
|
166
|
+
waveColor: r = "#CCCCCC",
|
|
167
|
+
progressColor: f = "#169bde",
|
|
168
168
|
height: y = 60,
|
|
169
169
|
barWidth: g = 2,
|
|
170
170
|
barGap: _ = 1
|
|
171
|
-
},
|
|
172
|
-
const
|
|
173
|
-
|
|
171
|
+
}, l) => {
|
|
172
|
+
const d = D(null), [w] = z(() => nt()), [i, v] = z(0), [u, c] = z(0);
|
|
173
|
+
Be(l, () => ({
|
|
174
174
|
seekTo: (n) => {
|
|
175
|
-
|
|
175
|
+
i > 0 && c(Math.max(0, Math.min(100, n / i * 100)));
|
|
176
176
|
},
|
|
177
|
-
getCurrentTime: () =>
|
|
178
|
-
getDuration: () =>
|
|
177
|
+
getCurrentTime: () => u / 100 * i,
|
|
178
|
+
getDuration: () => i
|
|
179
179
|
})), P(() => {
|
|
180
180
|
const n = t.current;
|
|
181
181
|
if (!n) return;
|
|
182
|
-
const
|
|
182
|
+
const p = () => {
|
|
183
183
|
n.duration && !isNaN(n.duration) && v(n.duration);
|
|
184
184
|
}, I = () => {
|
|
185
|
-
n.duration > 0 &&
|
|
185
|
+
n.duration > 0 && c(n.currentTime / n.duration * 100);
|
|
186
186
|
};
|
|
187
|
-
return n.duration && !isNaN(n.duration) && v(n.duration), n.addEventListener("loadedmetadata",
|
|
188
|
-
n.removeEventListener("loadedmetadata",
|
|
187
|
+
return n.duration && !isNaN(n.duration) && v(n.duration), n.addEventListener("loadedmetadata", p), n.addEventListener("timeupdate", I), () => {
|
|
188
|
+
n.removeEventListener("loadedmetadata", p), n.removeEventListener("timeupdate", I);
|
|
189
189
|
};
|
|
190
190
|
}, [t]), P(() => {
|
|
191
|
-
|
|
192
|
-
}, [o,
|
|
193
|
-
const
|
|
191
|
+
i > 0 && typeof o == "number" && c(o / i * 100);
|
|
192
|
+
}, [o, i]);
|
|
193
|
+
const b = S(
|
|
194
194
|
(n) => {
|
|
195
|
-
if (!
|
|
196
|
-
const
|
|
195
|
+
if (!d.current || !a || i === 0) return;
|
|
196
|
+
const p = d.current.getBoundingClientRect(), I = (n.clientX - p.left) / p.width * i;
|
|
197
197
|
a(I);
|
|
198
198
|
},
|
|
199
|
-
[a,
|
|
199
|
+
[a, i]
|
|
200
200
|
);
|
|
201
201
|
return /* @__PURE__ */ m(
|
|
202
202
|
k,
|
|
203
203
|
{
|
|
204
|
-
ref:
|
|
204
|
+
ref: d,
|
|
205
205
|
className: J.root,
|
|
206
206
|
style: { height: y },
|
|
207
|
-
onClick:
|
|
207
|
+
onClick: b,
|
|
208
208
|
children: [
|
|
209
209
|
/* @__PURE__ */ e(
|
|
210
210
|
"div",
|
|
211
211
|
{
|
|
212
212
|
className: J.progressOverlay,
|
|
213
|
-
style: { width: `${
|
|
213
|
+
style: { width: `${u}%`, backgroundColor: `${f}15` }
|
|
214
214
|
}
|
|
215
215
|
),
|
|
216
|
-
/* @__PURE__ */ e("div", { className: J.bars, style: { gap: _ }, children:
|
|
217
|
-
const I =
|
|
216
|
+
/* @__PURE__ */ e("div", { className: J.bars, style: { gap: _ }, children: w.map((n, p) => {
|
|
217
|
+
const I = p / w.length * 100 <= u;
|
|
218
218
|
return /* @__PURE__ */ e(
|
|
219
219
|
"div",
|
|
220
220
|
{
|
|
@@ -222,10 +222,10 @@ const le = xe(
|
|
|
222
222
|
style: {
|
|
223
223
|
width: g,
|
|
224
224
|
height: `${n}%`,
|
|
225
|
-
backgroundColor: I ?
|
|
225
|
+
backgroundColor: I ? f : r
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
|
-
|
|
228
|
+
p
|
|
229
229
|
);
|
|
230
230
|
}) }),
|
|
231
231
|
s && /* @__PURE__ */ e("div", { className: J.loading, children: "Loading waveform..." })
|
|
@@ -235,11 +235,11 @@ const le = xe(
|
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
237
|
le.displayName = "AudioWaveform";
|
|
238
|
-
const ot = "_root_n9zxy_1", st = "_playButton_n9zxy_8", at = "_time_n9zxy_22",
|
|
238
|
+
const ot = "_root_n9zxy_1", st = "_playButton_n9zxy_8", at = "_time_n9zxy_22", it = "_volumeGroup_n9zxy_28", Q = {
|
|
239
239
|
root: ot,
|
|
240
240
|
playButton: st,
|
|
241
241
|
time: at,
|
|
242
|
-
volumeGroup:
|
|
242
|
+
volumeGroup: it
|
|
243
243
|
};
|
|
244
244
|
function se(t) {
|
|
245
245
|
const o = Math.floor(t / 60), a = Math.floor(t % 60);
|
|
@@ -250,59 +250,59 @@ function kn({
|
|
|
250
250
|
filename: o = "audio",
|
|
251
251
|
playButtonColor: a,
|
|
252
252
|
playButtonSize: s = 32,
|
|
253
|
-
waveColor:
|
|
254
|
-
progressColor:
|
|
253
|
+
waveColor: r = "#D0D0D0",
|
|
254
|
+
progressColor: f = "#a8a8a8",
|
|
255
255
|
waveHeight: y = 64,
|
|
256
256
|
barWidth: g = 3,
|
|
257
257
|
barGap: _ = 2,
|
|
258
|
-
showVolume:
|
|
259
|
-
showDownload:
|
|
258
|
+
showVolume: l = !0,
|
|
259
|
+
showDownload: d = !0
|
|
260
260
|
}) {
|
|
261
|
-
const
|
|
261
|
+
const w = D(null), [i, v] = z(!1), [u, c] = z(0), [b, n] = z("00:00"), [p, I] = z("00:00"), [T, R] = z(50), [A, j] = z(50), [C, M] = z(!1);
|
|
262
262
|
P(() => {
|
|
263
|
-
const h =
|
|
263
|
+
const h = w.current;
|
|
264
264
|
if (!h) return;
|
|
265
265
|
h.volume = T / 100;
|
|
266
266
|
const x = () => {
|
|
267
|
-
|
|
267
|
+
c(h.currentTime), n(se(h.currentTime));
|
|
268
268
|
}, L = () => I(se(h.duration)), X = () => {
|
|
269
269
|
setTimeout(() => {
|
|
270
|
-
|
|
270
|
+
c(0), n("00:00"), v(!1);
|
|
271
271
|
}, 500);
|
|
272
272
|
}, Z = () => v(!0), ee = () => v(!1);
|
|
273
273
|
return h.addEventListener("timeupdate", x), h.addEventListener("loadedmetadata", L), h.addEventListener("ended", X), h.addEventListener("play", Z), h.addEventListener("pause", ee), () => {
|
|
274
274
|
h.removeEventListener("timeupdate", x), h.removeEventListener("loadedmetadata", L), h.removeEventListener("ended", X), h.removeEventListener("play", Z), h.removeEventListener("pause", ee);
|
|
275
275
|
};
|
|
276
276
|
}, [t]);
|
|
277
|
-
const E =
|
|
278
|
-
const h =
|
|
279
|
-
h && (
|
|
277
|
+
const E = S(() => {
|
|
278
|
+
const h = w.current;
|
|
279
|
+
h && (i ? h.pause() : h.play().catch(() => {
|
|
280
280
|
}));
|
|
281
|
-
}, [
|
|
282
|
-
const x =
|
|
283
|
-
x && !isNaN(h) && isFinite(h) && (x.currentTime = h,
|
|
284
|
-
}, []), O =
|
|
281
|
+
}, [i]), G = S((h) => {
|
|
282
|
+
const x = w.current;
|
|
283
|
+
x && !isNaN(h) && isFinite(h) && (x.currentTime = h, c(h), n(se(h)));
|
|
284
|
+
}, []), O = S(
|
|
285
285
|
(h) => {
|
|
286
|
-
const x =
|
|
286
|
+
const x = w.current;
|
|
287
287
|
x && (x.volume = h / 100, R(h), h > 0 ? (j(h), M(!1)) : M(!0));
|
|
288
288
|
},
|
|
289
289
|
[]
|
|
290
|
-
), H =
|
|
291
|
-
const h =
|
|
290
|
+
), H = S(() => {
|
|
291
|
+
const h = w.current;
|
|
292
292
|
if (h)
|
|
293
293
|
if (C) {
|
|
294
294
|
const x = A || 50;
|
|
295
295
|
h.volume = x / 100, R(x), M(!1);
|
|
296
296
|
} else
|
|
297
297
|
j(T), h.volume = 0, R(0), M(!0);
|
|
298
|
-
}, [C, T, A]), K =
|
|
298
|
+
}, [C, T, A]), K = S(() => {
|
|
299
299
|
fetch(t).then((h) => h.blob()).then((h) => {
|
|
300
300
|
const x = URL.createObjectURL(h), L = document.createElement("a");
|
|
301
301
|
L.href = x, L.download = o, document.body.appendChild(L), L.click(), document.body.removeChild(L), URL.revokeObjectURL(x);
|
|
302
302
|
}).catch(() => window.open(t, "_blank"));
|
|
303
303
|
}, [t, o]);
|
|
304
304
|
return /* @__PURE__ */ m(F, { gap: "sm", wrap: "nowrap", className: Q.root, children: [
|
|
305
|
-
/* @__PURE__ */ e("audio", { ref:
|
|
305
|
+
/* @__PURE__ */ e("audio", { ref: w, src: t, preload: "metadata" }),
|
|
306
306
|
/* @__PURE__ */ e(
|
|
307
307
|
Y,
|
|
308
308
|
{
|
|
@@ -311,27 +311,27 @@ function kn({
|
|
|
311
311
|
size: s,
|
|
312
312
|
color: a,
|
|
313
313
|
onClick: E,
|
|
314
|
-
"aria-label":
|
|
314
|
+
"aria-label": i ? "Pause" : "Play",
|
|
315
315
|
className: Q.playButton,
|
|
316
|
-
children:
|
|
316
|
+
children: i ? /* @__PURE__ */ e(Ce, { size: s * 0.5 }) : /* @__PURE__ */ e(ke, { size: s * 0.5 })
|
|
317
317
|
}
|
|
318
318
|
),
|
|
319
|
-
/* @__PURE__ */ e(N, { size: "xs", ff: "monospace", c: "dimmed", className: Q.time, children:
|
|
319
|
+
/* @__PURE__ */ e(N, { size: "xs", ff: "monospace", c: "dimmed", className: Q.time, children: b }),
|
|
320
320
|
/* @__PURE__ */ e(k, { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
321
321
|
le,
|
|
322
322
|
{
|
|
323
|
-
audioRef:
|
|
324
|
-
currentTime:
|
|
323
|
+
audioRef: w,
|
|
324
|
+
currentTime: u,
|
|
325
325
|
onSeek: G,
|
|
326
|
-
waveColor:
|
|
327
|
-
progressColor:
|
|
326
|
+
waveColor: r,
|
|
327
|
+
progressColor: f,
|
|
328
328
|
height: y,
|
|
329
329
|
barWidth: g,
|
|
330
330
|
barGap: _
|
|
331
331
|
}
|
|
332
332
|
) }),
|
|
333
|
-
/* @__PURE__ */ e(N, { size: "xs", ff: "monospace", c: "dimmed", className: Q.time, children:
|
|
334
|
-
|
|
333
|
+
/* @__PURE__ */ e(N, { size: "xs", ff: "monospace", c: "dimmed", className: Q.time, children: p }),
|
|
334
|
+
l && /* @__PURE__ */ m(F, { gap: 4, wrap: "nowrap", className: Q.volumeGroup, children: [
|
|
335
335
|
/* @__PURE__ */ e(
|
|
336
336
|
Y,
|
|
337
337
|
{
|
|
@@ -343,7 +343,7 @@ function kn({
|
|
|
343
343
|
}
|
|
344
344
|
),
|
|
345
345
|
/* @__PURE__ */ e(
|
|
346
|
-
|
|
346
|
+
Se,
|
|
347
347
|
{
|
|
348
348
|
value: T,
|
|
349
349
|
onChange: O,
|
|
@@ -353,17 +353,17 @@ function kn({
|
|
|
353
353
|
}
|
|
354
354
|
)
|
|
355
355
|
] }),
|
|
356
|
-
|
|
356
|
+
d && /* @__PURE__ */ e(Y, { variant: "subtle", size: "sm", onClick: K, "aria-label": "Download", children: /* @__PURE__ */ e(Ae, { size: 16 }) })
|
|
357
357
|
] });
|
|
358
358
|
}
|
|
359
|
-
const
|
|
360
|
-
root:
|
|
359
|
+
const rt = "_root_ujac8_1", ct = "_textarea_ujac8_5", _e = {
|
|
360
|
+
root: rt,
|
|
361
361
|
textarea: ct
|
|
362
362
|
};
|
|
363
363
|
function Ln({ code: t, filename: o, height: a = 384 }) {
|
|
364
|
-
const [s,
|
|
364
|
+
const [s, r] = z(!1), f = S(async () => {
|
|
365
365
|
try {
|
|
366
|
-
await navigator.clipboard.writeText(t),
|
|
366
|
+
await navigator.clipboard.writeText(t), r(!0), setTimeout(() => r(!1), 2e3);
|
|
367
367
|
} catch {
|
|
368
368
|
}
|
|
369
369
|
}, [t]);
|
|
@@ -371,12 +371,12 @@ function Ln({ code: t, filename: o, height: a = 384 }) {
|
|
|
371
371
|
/* @__PURE__ */ m(F, { justify: "space-between", mb: "xs", children: [
|
|
372
372
|
o && /* @__PURE__ */ e(N, { size: "sm", fw: 500, c: "dimmed", children: o }),
|
|
373
373
|
/* @__PURE__ */ e(
|
|
374
|
-
|
|
374
|
+
re,
|
|
375
375
|
{
|
|
376
376
|
size: "xs",
|
|
377
377
|
radius: "md",
|
|
378
378
|
color: s ? "green" : "blue",
|
|
379
|
-
onClick:
|
|
379
|
+
onClick: f,
|
|
380
380
|
children: s ? "Copied!" : "Copy"
|
|
381
381
|
}
|
|
382
382
|
)
|
|
@@ -397,7 +397,7 @@ const lt = "_root_ix1b2_1", dt = "_toast_ix1b2_5", ve = {
|
|
|
397
397
|
toast: dt
|
|
398
398
|
};
|
|
399
399
|
function de({ value: t, children: o }) {
|
|
400
|
-
const [a, s] = z(null),
|
|
400
|
+
const [a, s] = z(null), r = S(() => {
|
|
401
401
|
navigator.clipboard.writeText(t).then(() => {
|
|
402
402
|
s(`Copied ${t}`), setTimeout(() => s(null), 1800);
|
|
403
403
|
});
|
|
@@ -406,7 +406,7 @@ function de({ value: t, children: o }) {
|
|
|
406
406
|
/* @__PURE__ */ e(
|
|
407
407
|
"span",
|
|
408
408
|
{
|
|
409
|
-
onClick:
|
|
409
|
+
onClick: r,
|
|
410
410
|
className: ve.root,
|
|
411
411
|
title: `Click to copy ${t}`,
|
|
412
412
|
children: o
|
|
@@ -429,20 +429,20 @@ const ut = "_root_3ht5s_1", mt = "_shade_3ht5s_5", ht = "_color_3ht5s_10", pt =
|
|
|
429
429
|
color: ht,
|
|
430
430
|
main: pt
|
|
431
431
|
};
|
|
432
|
-
function
|
|
432
|
+
function Bn({ name: t, shades: o, mainIndex: a = 5 }) {
|
|
433
433
|
return /* @__PURE__ */ m("div", { className: te.root, children: [
|
|
434
434
|
/* @__PURE__ */ e(oe, { order: 4, size: "lg", tt: "capitalize", mb: "xs", children: t }),
|
|
435
|
-
/* @__PURE__ */ e(Me, { cols: 10, spacing: 4, children: o.map((s,
|
|
435
|
+
/* @__PURE__ */ e(Me, { cols: 10, spacing: 4, children: o.map((s, r) => /* @__PURE__ */ e(de, { value: s, children: /* @__PURE__ */ m("div", { className: te.shade, children: [
|
|
436
436
|
/* @__PURE__ */ e(
|
|
437
437
|
"div",
|
|
438
438
|
{
|
|
439
|
-
className: `${te.color} ${
|
|
439
|
+
className: `${te.color} ${r === a ? te.main : ""}`,
|
|
440
440
|
style: { backgroundColor: s }
|
|
441
441
|
}
|
|
442
442
|
),
|
|
443
|
-
/* @__PURE__ */ e(N, { size: "xs", c: "dimmed", ta: "center", mt: 4, children:
|
|
443
|
+
/* @__PURE__ */ e(N, { size: "xs", c: "dimmed", ta: "center", mt: 4, children: r }),
|
|
444
444
|
/* @__PURE__ */ e(N, { size: "xs", c: "dimmed", ta: "center", ff: "monospace", children: s })
|
|
445
|
-
] }) },
|
|
445
|
+
] }) }, r)) })
|
|
446
446
|
] });
|
|
447
447
|
}
|
|
448
448
|
const ft = "_root_1vxkx_1", _t = "_preview_1vxkx_11", vt = "_info_1vxkx_15", ae = {
|
|
@@ -450,7 +450,7 @@ const ft = "_root_1vxkx_1", _t = "_preview_1vxkx_11", vt = "_info_1vxkx_15", ae
|
|
|
450
450
|
preview: _t,
|
|
451
451
|
info: vt
|
|
452
452
|
};
|
|
453
|
-
function
|
|
453
|
+
function Sn({ name: t, hex: o, label: a }) {
|
|
454
454
|
return /* @__PURE__ */ e(de, { value: o, children: /* @__PURE__ */ m(U, { className: ae.root, shadow: "lg", radius: "md", withBorder: !1, children: [
|
|
455
455
|
/* @__PURE__ */ e("div", { className: ae.preview, style: { backgroundColor: o } }),
|
|
456
456
|
/* @__PURE__ */ m("div", { className: ae.info, children: [
|
|
@@ -496,48 +496,48 @@ function Pn({
|
|
|
496
496
|
description: o,
|
|
497
497
|
expandedContent: a,
|
|
498
498
|
icon: s,
|
|
499
|
-
color:
|
|
500
|
-
iconSize:
|
|
499
|
+
color: r = "blue",
|
|
500
|
+
iconSize: f = "lg",
|
|
501
501
|
collapsedHeight: y = 120,
|
|
502
502
|
threshold: g = 0.5,
|
|
503
503
|
delay: _ = 300,
|
|
504
|
-
expanded:
|
|
505
|
-
onExpandedChange:
|
|
504
|
+
expanded: l,
|
|
505
|
+
onExpandedChange: d
|
|
506
506
|
}) {
|
|
507
|
-
const
|
|
507
|
+
const w = D(null), [i, v] = z(!1), u = l !== void 0, c = u ? l : i;
|
|
508
508
|
return P(() => {
|
|
509
|
-
if (
|
|
510
|
-
const
|
|
511
|
-
if (!
|
|
509
|
+
if (u) return;
|
|
510
|
+
const b = w.current;
|
|
511
|
+
if (!b) return;
|
|
512
512
|
const n = new IntersectionObserver(
|
|
513
|
-
([
|
|
514
|
-
|
|
515
|
-
v(!0),
|
|
513
|
+
([p]) => {
|
|
514
|
+
p.isIntersecting && setTimeout(() => {
|
|
515
|
+
v(!0), d == null || d(!0);
|
|
516
516
|
}, _);
|
|
517
517
|
},
|
|
518
518
|
{ threshold: g }
|
|
519
519
|
);
|
|
520
|
-
return n.observe(
|
|
521
|
-
}, [
|
|
520
|
+
return n.observe(b), () => n.disconnect();
|
|
521
|
+
}, [u, g, _, d]), /* @__PURE__ */ e(
|
|
522
522
|
U,
|
|
523
523
|
{
|
|
524
|
-
ref:
|
|
524
|
+
ref: w,
|
|
525
525
|
radius: 4,
|
|
526
526
|
className: ge.root,
|
|
527
|
-
component:
|
|
528
|
-
animate: { height:
|
|
527
|
+
component: B.div,
|
|
528
|
+
animate: { height: c ? "auto" : y },
|
|
529
529
|
transition: { duration: 0.5, ease: "easeOut" },
|
|
530
530
|
children: /* @__PURE__ */ e("div", { className: ge.inner, children: /* @__PURE__ */ m(F, { align: "flex-start", justify: "space-between", gap: "lg", wrap: "nowrap", children: [
|
|
531
531
|
/* @__PURE__ */ m(ce, { gap: "xs", style: { flex: 1 }, children: [
|
|
532
532
|
/* @__PURE__ */ e(N, { fw: 700, size: "xl", lh: 1.3, children: t }),
|
|
533
533
|
/* @__PURE__ */ e(N, { size: "md", c: "dimmed", children: o }),
|
|
534
534
|
/* @__PURE__ */ e(
|
|
535
|
-
|
|
535
|
+
B.div,
|
|
536
536
|
{
|
|
537
537
|
initial: { opacity: 0, height: 0 },
|
|
538
538
|
animate: {
|
|
539
|
-
opacity:
|
|
540
|
-
height:
|
|
539
|
+
opacity: c ? 1 : 0,
|
|
540
|
+
height: c ? "auto" : 0
|
|
541
541
|
},
|
|
542
542
|
transition: { duration: 0.4, delay: 0.2 },
|
|
543
543
|
style: { overflow: "hidden" },
|
|
@@ -546,11 +546,11 @@ function Pn({
|
|
|
546
546
|
)
|
|
547
547
|
] }),
|
|
548
548
|
/* @__PURE__ */ e(
|
|
549
|
-
|
|
549
|
+
B.div,
|
|
550
550
|
{
|
|
551
|
-
animate: { scale:
|
|
551
|
+
animate: { scale: c ? 1.1 : 1 },
|
|
552
552
|
transition: { duration: 0.3 },
|
|
553
|
-
children: /* @__PURE__ */ e(We, { size:
|
|
553
|
+
children: /* @__PURE__ */ e(We, { size: f, radius: 4, color: r, variant: "filled", children: /* @__PURE__ */ e(s, { size: 20, stroke: 1.5 }) })
|
|
554
554
|
}
|
|
555
555
|
)
|
|
556
556
|
] }) })
|
|
@@ -566,106 +566,106 @@ function Wn({
|
|
|
566
566
|
delay: o = 0,
|
|
567
567
|
threshold: a = 0.1,
|
|
568
568
|
className: s,
|
|
569
|
-
...
|
|
569
|
+
...r
|
|
570
570
|
}) {
|
|
571
|
-
const
|
|
571
|
+
const f = D(null), [y, g] = z(!1);
|
|
572
572
|
return P(() => {
|
|
573
|
-
const _ =
|
|
573
|
+
const _ = f.current;
|
|
574
574
|
if (!_) return;
|
|
575
|
-
const
|
|
576
|
-
([
|
|
577
|
-
|
|
575
|
+
const l = new IntersectionObserver(
|
|
576
|
+
([d]) => {
|
|
577
|
+
d.isIntersecting && (o > 0 ? setTimeout(() => g(!0), o) : g(!0));
|
|
578
578
|
},
|
|
579
579
|
{ threshold: a }
|
|
580
580
|
);
|
|
581
|
-
return
|
|
581
|
+
return l.observe(_), () => l.disconnect();
|
|
582
582
|
}, [o, a]), /* @__PURE__ */ e(
|
|
583
583
|
k,
|
|
584
584
|
{
|
|
585
|
-
ref:
|
|
585
|
+
ref: f,
|
|
586
586
|
className: `${ye.root} ${y ? ye.visible : ""} ${s ?? ""}`,
|
|
587
|
-
...
|
|
587
|
+
...r,
|
|
588
588
|
children: t
|
|
589
589
|
}
|
|
590
590
|
);
|
|
591
591
|
}
|
|
592
592
|
function En({ isActive: t = !1, height: o = 60 }) {
|
|
593
|
-
const a = D(null), s = D(void 0), [
|
|
594
|
-
start:
|
|
595
|
-
mid:
|
|
596
|
-
end:
|
|
597
|
-
},
|
|
598
|
-
(
|
|
599
|
-
|
|
600
|
-
const
|
|
601
|
-
|
|
602
|
-
const I =
|
|
603
|
-
I.addColorStop(0,
|
|
604
|
-
const T = 300, R = v / T, A = t ? 0.02 :
|
|
593
|
+
const a = D(null), s = D(void 0), [r, f] = z(!1), y = D(null), g = D(null), { colorScheme: _ } = Ee(), l = _ === "dark", d = {
|
|
594
|
+
start: l ? "#7950F2" : "#9775FA",
|
|
595
|
+
mid: l ? "#BE4BDB" : "#DA77F2",
|
|
596
|
+
end: l ? "#15AABF" : "#22B8CF"
|
|
597
|
+
}, w = S(
|
|
598
|
+
(i, v, u, c) => {
|
|
599
|
+
i.clearRect(0, 0, v, u);
|
|
600
|
+
const b = t || r, n = u * 0.65, p = t ? 5 : r ? 7 : 1.5;
|
|
601
|
+
b && (g.current === null && (g.current = Math.random()), Math.floor(c / 500) !== Math.floor((c - 16) / 500) && (g.current = Math.random()));
|
|
602
|
+
const I = i.createLinearGradient(0, 0, v, 0);
|
|
603
|
+
I.addColorStop(0, d.start), I.addColorStop(0.5, d.mid), I.addColorStop(1, d.end), i.strokeStyle = I, i.lineWidth = b ? 2.5 : 1.5, i.lineCap = "round", i.lineJoin = "round", b ? (i.shadowColor = d.mid, i.shadowBlur = r ? 12 : 8) : i.shadowBlur = 0, i.beginPath();
|
|
604
|
+
const T = 300, R = v / T, A = t ? 0.02 : r ? 0.025 : 3e-3;
|
|
605
605
|
for (let j = 0; j <= T; j++) {
|
|
606
606
|
const C = j * R, M = C / v;
|
|
607
607
|
let E = n;
|
|
608
|
-
if (
|
|
609
|
-
const G = Math.sin(M * Math.PI * 6 +
|
|
608
|
+
if (b) {
|
|
609
|
+
const G = Math.sin(M * Math.PI * 6 + c * A) * p, O = Math.sin(M * Math.PI * 12 + c * A * 1.3) * (p * 0.4), H = Math.sin(M * Math.PI * 18 + c * A * 0.8) * (p * 0.2), K = g.current ?? 0.5, h = Math.abs(M - K), x = h < 0.15 ? (1 - h / 0.15) * p * 1 : 0, L = Math.sin(M * Math.PI * 20 + c * A * 2) * x;
|
|
610
610
|
let X = 0;
|
|
611
|
-
|
|
611
|
+
r && (X = Math.sin(M * Math.PI * 30 + c * 0.03) * p * 0.4, X += Math.sin(M * Math.PI * 8 + c * 0.015) * p * 0.5);
|
|
612
612
|
const Z = G + O + H + L + X, ee = Math.sin(M * Math.PI);
|
|
613
613
|
E = n + Z * ee;
|
|
614
614
|
} else
|
|
615
|
-
E += Math.sin(M * Math.PI * 2 +
|
|
616
|
-
j === 0 ?
|
|
615
|
+
E += Math.sin(M * Math.PI * 2 + c * A) * p;
|
|
616
|
+
j === 0 ? i.moveTo(C, E) : i.lineTo(C, E);
|
|
617
617
|
}
|
|
618
|
-
if (
|
|
618
|
+
if (i.stroke(), t) {
|
|
619
619
|
const M = v / 80, E = 16;
|
|
620
|
-
|
|
620
|
+
i.shadowBlur = 3;
|
|
621
621
|
for (let G = 0; G < 80; G++) {
|
|
622
|
-
const O = G * M + M / 2, H = O / v, K = Math.sin(H * Math.PI * 8 +
|
|
622
|
+
const O = G * M + M / 2, H = O / v, K = Math.sin(H * Math.PI * 8 + c * 0.025) * 0.5 + Math.sin(H * Math.PI * 14 + c * 0.018) * 0.3 + Math.sin(H * Math.PI * 4 + c * 0.03) * 0.2, h = Math.sin(H * Math.PI), x = Math.abs(K) * E * h, L = i.createLinearGradient(
|
|
623
623
|
O,
|
|
624
624
|
n - x / 2,
|
|
625
625
|
O,
|
|
626
626
|
n + x / 2
|
|
627
627
|
);
|
|
628
|
-
L.addColorStop(0,
|
|
628
|
+
L.addColorStop(0, d.start + "90"), L.addColorStop(0.5, d.mid + "70"), L.addColorStop(1, d.end + "50"), i.fillStyle = L, i.fillRect(O - 2 / 2, n - x / 2, 2, x);
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
if (
|
|
631
|
+
if (r)
|
|
632
632
|
for (let C = 0; C < 15; C++) {
|
|
633
|
-
const M = (Math.sin(
|
|
634
|
-
|
|
633
|
+
const M = (Math.sin(c * 1e-3 + C * 1.5) * 0.5 + 0.5) * v, E = n + Math.sin(c * 2e-3 + C) * 8, G = 1.5 + Math.sin(c * 3e-3 + C * 2) * 0.5;
|
|
634
|
+
i.beginPath(), i.arc(M, E, G, 0, Math.PI * 2), i.fillStyle = C % 2 === 0 ? d.start + "80" : d.end + "80", i.fill();
|
|
635
635
|
}
|
|
636
636
|
},
|
|
637
|
-
[t,
|
|
637
|
+
[t, r, d.start, d.mid, d.end]
|
|
638
638
|
);
|
|
639
639
|
return P(() => {
|
|
640
|
-
const
|
|
641
|
-
if (!
|
|
642
|
-
const v =
|
|
640
|
+
const i = a.current;
|
|
641
|
+
if (!i) return;
|
|
642
|
+
const v = i.getContext("2d");
|
|
643
643
|
if (!v) return;
|
|
644
|
-
const
|
|
645
|
-
const n = window.devicePixelRatio || 1,
|
|
646
|
-
|
|
644
|
+
const u = () => {
|
|
645
|
+
const n = window.devicePixelRatio || 1, p = i.getBoundingClientRect();
|
|
646
|
+
i.width = p.width * n, i.height = p.height * n, v.scale(n, n);
|
|
647
647
|
};
|
|
648
|
-
|
|
649
|
-
const
|
|
650
|
-
const
|
|
651
|
-
|
|
648
|
+
u(), window.addEventListener("resize", u);
|
|
649
|
+
const c = performance.now(), b = (n) => {
|
|
650
|
+
const p = n - c, I = i.getBoundingClientRect();
|
|
651
|
+
w(v, I.width, I.height, p), s.current = requestAnimationFrame(b);
|
|
652
652
|
};
|
|
653
|
-
return s.current = requestAnimationFrame(
|
|
654
|
-
window.removeEventListener("resize",
|
|
653
|
+
return s.current = requestAnimationFrame(b), () => {
|
|
654
|
+
window.removeEventListener("resize", u), s.current && cancelAnimationFrame(s.current);
|
|
655
655
|
};
|
|
656
|
-
}, [
|
|
656
|
+
}, [w]), P(() => {
|
|
657
657
|
if (t) {
|
|
658
|
-
queueMicrotask(() =>
|
|
658
|
+
queueMicrotask(() => f(!1)), y.current = Date.now();
|
|
659
659
|
return;
|
|
660
660
|
}
|
|
661
661
|
const v = setInterval(() => {
|
|
662
|
-
const
|
|
663
|
-
y.current === null && (y.current =
|
|
664
|
-
const
|
|
665
|
-
|
|
662
|
+
const u = Date.now();
|
|
663
|
+
y.current === null && (y.current = u);
|
|
664
|
+
const c = u - y.current, b = 12e4 + Math.random() * 6e4;
|
|
665
|
+
c >= b && !r && (f(!0), y.current = u, setTimeout(() => f(!1), 4e3));
|
|
666
666
|
}, 5e3);
|
|
667
667
|
return () => clearInterval(v);
|
|
668
|
-
}, [t,
|
|
668
|
+
}, [t, r]), /* @__PURE__ */ e(
|
|
669
669
|
k,
|
|
670
670
|
{
|
|
671
671
|
style: {
|
|
@@ -674,7 +674,7 @@ function En({ isActive: t = !1, height: o = 60 }) {
|
|
|
674
674
|
height: o,
|
|
675
675
|
overflow: "hidden",
|
|
676
676
|
pointerEvents: "none",
|
|
677
|
-
opacity:
|
|
677
|
+
opacity: l ? 1 : 0.8
|
|
678
678
|
},
|
|
679
679
|
children: /* @__PURE__ */ e(
|
|
680
680
|
"canvas",
|
|
@@ -690,16 +690,16 @@ function En({ isActive: t = !1, height: o = 60 }) {
|
|
|
690
690
|
}
|
|
691
691
|
);
|
|
692
692
|
}
|
|
693
|
-
const Ct = "_root_9li00_1", kt = "_preview_9li00_11", Lt = "_info_9li00_15",
|
|
693
|
+
const Ct = "_root_9li00_1", kt = "_preview_9li00_11", Lt = "_info_9li00_15", ie = {
|
|
694
694
|
root: Ct,
|
|
695
695
|
preview: kt,
|
|
696
696
|
info: Lt
|
|
697
697
|
};
|
|
698
698
|
function Dn({ name: t, colors: o, description: a }) {
|
|
699
699
|
const s = `linear-gradient(135deg, ${o[0]} 0%, ${o[1]} 100%)`;
|
|
700
|
-
return /* @__PURE__ */ e(de, { value: s, children: /* @__PURE__ */ m(U, { className:
|
|
701
|
-
/* @__PURE__ */ e("div", { className:
|
|
702
|
-
/* @__PURE__ */ m("div", { className:
|
|
700
|
+
return /* @__PURE__ */ e(de, { value: s, children: /* @__PURE__ */ m(U, { className: ie.root, shadow: "lg", radius: "md", children: [
|
|
701
|
+
/* @__PURE__ */ e("div", { className: ie.preview, style: { background: s } }),
|
|
702
|
+
/* @__PURE__ */ m("div", { className: ie.info, children: [
|
|
703
703
|
/* @__PURE__ */ e(N, { fw: 600, size: "sm", children: t }),
|
|
704
704
|
a && /* @__PURE__ */ e(N, { size: "xs", c: "dimmed", children: a }),
|
|
705
705
|
/* @__PURE__ */ m(N, { size: "xs", c: "dimmed", ff: "monospace", children: [
|
|
@@ -710,9 +710,9 @@ function Dn({ name: t, colors: o, description: a }) {
|
|
|
710
710
|
] })
|
|
711
711
|
] }) });
|
|
712
712
|
}
|
|
713
|
-
const
|
|
714
|
-
root:
|
|
715
|
-
video:
|
|
713
|
+
const Bt = "_root_1vlvy_1", St = "_video_1vlvy_9", be = {
|
|
714
|
+
root: Bt,
|
|
715
|
+
video: St
|
|
716
716
|
};
|
|
717
717
|
function Tt({ src: t, opacity: o = 0.3 }) {
|
|
718
718
|
return /* @__PURE__ */ e("div", { className: be.root, style: { opacity: o }, children: /* @__PURE__ */ e("video", { autoPlay: !0, muted: !0, loop: !0, playsInline: !0, className: be.video, children: /* @__PURE__ */ e("source", { src: t, type: "video/mp4" }) }) });
|
|
@@ -740,47 +740,47 @@ function Fn({
|
|
|
740
740
|
heading: o,
|
|
741
741
|
label: a,
|
|
742
742
|
tagline: s,
|
|
743
|
-
logoSrc:
|
|
744
|
-
gradient:
|
|
743
|
+
logoSrc: r = qe,
|
|
744
|
+
gradient: f = "frequencyAlive",
|
|
745
745
|
shimmer: y = !0,
|
|
746
746
|
primaryAction: g,
|
|
747
747
|
secondaryAction: _,
|
|
748
|
-
backgroundVideoSrc:
|
|
749
|
-
showWaveform:
|
|
750
|
-
showScrollIndicator:
|
|
748
|
+
backgroundVideoSrc: l,
|
|
749
|
+
showWaveform: d,
|
|
750
|
+
showScrollIndicator: w = !1
|
|
751
751
|
}) {
|
|
752
|
-
const [
|
|
752
|
+
const [i, v] = z(!1), u = typeof r == "string" ? r : r == null ? void 0 : r.src, c = o ?? (t === "text" ? "Your Message" : void 0), b = a || (t === "logo" ? "Welcome" : void 0), n = g || _, p = d ?? !0, I = Ue[f];
|
|
753
753
|
return P(() => {
|
|
754
754
|
v(!0);
|
|
755
755
|
}, []), /* @__PURE__ */ m(k, { component: "section", className: $.root, children: [
|
|
756
|
-
|
|
756
|
+
l && /* @__PURE__ */ e(Tt, { src: l }),
|
|
757
757
|
/* @__PURE__ */ m("div", { className: $.content, children: [
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
758
|
+
i && /* @__PURE__ */ m(ze, { children: [
|
|
759
|
+
b && /* @__PURE__ */ e(
|
|
760
|
+
B.p,
|
|
761
761
|
{
|
|
762
762
|
initial: { opacity: 0 },
|
|
763
763
|
animate: { opacity: 1 },
|
|
764
764
|
transition: { duration: 0.8, delay: 0.2 },
|
|
765
765
|
className: $.label,
|
|
766
|
-
children:
|
|
766
|
+
children: b
|
|
767
767
|
}
|
|
768
768
|
),
|
|
769
769
|
t === "logo" && /* @__PURE__ */ m(
|
|
770
|
-
|
|
770
|
+
B.div,
|
|
771
771
|
{
|
|
772
772
|
initial: { opacity: 0, scale: 0.8 },
|
|
773
773
|
animate: { opacity: 1, scale: 1 },
|
|
774
774
|
transition: { duration: 1.2, delay: 0.3, ease: "easeOut" },
|
|
775
775
|
className: $.logoWrapper,
|
|
776
776
|
children: [
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
p && /* @__PURE__ */ e(fe, {}),
|
|
778
|
+
p && /* @__PURE__ */ e("div", { className: $.vignette }),
|
|
779
779
|
/* @__PURE__ */ e(
|
|
780
|
-
|
|
780
|
+
B.img,
|
|
781
781
|
{
|
|
782
|
-
src:
|
|
783
|
-
alt:
|
|
782
|
+
src: u,
|
|
783
|
+
alt: c ?? "Frequency",
|
|
784
784
|
className: $.logo,
|
|
785
785
|
animate: { rotate: [0, 0.5, -0.5, 0] },
|
|
786
786
|
transition: { duration: 8, repeat: 1 / 0, ease: "easeInOut" }
|
|
@@ -790,33 +790,33 @@ function Fn({
|
|
|
790
790
|
]
|
|
791
791
|
}
|
|
792
792
|
),
|
|
793
|
-
t === "text" &&
|
|
794
|
-
|
|
793
|
+
t === "text" && c && /* @__PURE__ */ m(
|
|
794
|
+
B.div,
|
|
795
795
|
{
|
|
796
796
|
initial: { opacity: 0, scale: 0.8 },
|
|
797
797
|
animate: { opacity: 1, scale: 1 },
|
|
798
798
|
transition: { duration: 1.2, delay: 0.3, ease: "easeOut" },
|
|
799
799
|
className: $.textWrapper,
|
|
800
800
|
children: [
|
|
801
|
-
|
|
802
|
-
|
|
801
|
+
p && /* @__PURE__ */ e(fe, {}),
|
|
802
|
+
p && /* @__PURE__ */ e("div", { className: $.vignette }),
|
|
803
803
|
/* @__PURE__ */ e(
|
|
804
804
|
oe,
|
|
805
805
|
{
|
|
806
806
|
order: 1,
|
|
807
807
|
className: `${$.heading} ${y ? $.shimmer : ""}`,
|
|
808
808
|
style: {
|
|
809
|
-
backgroundImage: `linear-gradient(135deg, ${
|
|
809
|
+
backgroundImage: `linear-gradient(135deg, ${I.from}, ${I.to}, ${I.from})`,
|
|
810
810
|
backgroundSize: y ? "200% 100%" : void 0
|
|
811
811
|
},
|
|
812
|
-
children:
|
|
812
|
+
children: c
|
|
813
813
|
}
|
|
814
814
|
)
|
|
815
815
|
]
|
|
816
816
|
}
|
|
817
817
|
),
|
|
818
818
|
s && /* @__PURE__ */ e(
|
|
819
|
-
|
|
819
|
+
B.div,
|
|
820
820
|
{
|
|
821
821
|
initial: { opacity: 0, y: 20 },
|
|
822
822
|
animate: { opacity: 1, y: 0 },
|
|
@@ -824,15 +824,15 @@ function Fn({
|
|
|
824
824
|
children: /* @__PURE__ */ e(N, { className: $.tagline, children: s })
|
|
825
825
|
}
|
|
826
826
|
),
|
|
827
|
-
|
|
828
|
-
|
|
827
|
+
n && /* @__PURE__ */ e(
|
|
828
|
+
B.div,
|
|
829
829
|
{
|
|
830
830
|
initial: { opacity: 0, y: 20 },
|
|
831
831
|
animate: { opacity: 1, y: 0 },
|
|
832
832
|
transition: { duration: 0.8, delay: 0.9 },
|
|
833
833
|
children: /* @__PURE__ */ m(F, { gap: "md", justify: "center", wrap: "wrap", children: [
|
|
834
834
|
g && /* @__PURE__ */ e(
|
|
835
|
-
|
|
835
|
+
re,
|
|
836
836
|
{
|
|
837
837
|
component: "a",
|
|
838
838
|
href: g.href,
|
|
@@ -843,7 +843,7 @@ function Fn({
|
|
|
843
843
|
}
|
|
844
844
|
),
|
|
845
845
|
_ && /* @__PURE__ */ e(
|
|
846
|
-
|
|
846
|
+
re,
|
|
847
847
|
{
|
|
848
848
|
component: "a",
|
|
849
849
|
href: _.href,
|
|
@@ -858,8 +858,8 @@ function Fn({
|
|
|
858
858
|
}
|
|
859
859
|
)
|
|
860
860
|
] }),
|
|
861
|
-
|
|
862
|
-
|
|
861
|
+
i && w && /* @__PURE__ */ m(
|
|
862
|
+
B.div,
|
|
863
863
|
{
|
|
864
864
|
className: $.scrollIndicator,
|
|
865
865
|
initial: { opacity: 0 },
|
|
@@ -868,7 +868,7 @@ function Fn({
|
|
|
868
868
|
children: [
|
|
869
869
|
/* @__PURE__ */ e("span", { className: $.scrollLabel, children: "Scroll" }),
|
|
870
870
|
/* @__PURE__ */ e(
|
|
871
|
-
|
|
871
|
+
B.div,
|
|
872
872
|
{
|
|
873
873
|
className: $.scrollLine,
|
|
874
874
|
animate: { scaleY: [1, 1.5, 1] },
|
|
@@ -918,29 +918,29 @@ const Kt = "_root_13w21_1", Jt = "_playButton_13w21_11", Ne = {
|
|
|
918
918
|
size: o = "mini",
|
|
919
919
|
waveColor: a = "#CCCCCC",
|
|
920
920
|
progressColor: s = "#169bde",
|
|
921
|
-
onPlay:
|
|
922
|
-
onPause:
|
|
921
|
+
onPlay: r,
|
|
922
|
+
onPause: f,
|
|
923
923
|
className: y,
|
|
924
924
|
style: g
|
|
925
925
|
}, _) => {
|
|
926
|
-
const
|
|
926
|
+
const l = D(null), [d, w] = z(!1), [i, v] = z(0), u = Qt[o];
|
|
927
927
|
P(() => {
|
|
928
|
-
const n =
|
|
928
|
+
const n = l.current;
|
|
929
929
|
if (!n) return;
|
|
930
|
-
const
|
|
931
|
-
|
|
932
|
-
}, T = () =>
|
|
933
|
-
return n.addEventListener("timeupdate",
|
|
934
|
-
n.removeEventListener("timeupdate",
|
|
930
|
+
const p = () => v(n.currentTime), I = () => {
|
|
931
|
+
w(!1), v(0);
|
|
932
|
+
}, T = () => w(!1), R = () => w(!0);
|
|
933
|
+
return n.addEventListener("timeupdate", p), n.addEventListener("ended", I), n.addEventListener("pause", T), n.addEventListener("play", R), () => {
|
|
934
|
+
n.removeEventListener("timeupdate", p), n.removeEventListener("ended", I), n.removeEventListener("pause", T), n.removeEventListener("play", R);
|
|
935
935
|
};
|
|
936
936
|
}, [t]);
|
|
937
|
-
const
|
|
938
|
-
const n =
|
|
939
|
-
n && (
|
|
940
|
-
}),
|
|
941
|
-
}, [
|
|
942
|
-
const
|
|
943
|
-
|
|
937
|
+
const c = S(() => {
|
|
938
|
+
const n = l.current;
|
|
939
|
+
n && (d ? (n.pause(), f == null || f()) : (n.play().catch(() => {
|
|
940
|
+
}), r == null || r()));
|
|
941
|
+
}, [d, r, f]), b = S((n) => {
|
|
942
|
+
const p = l.current;
|
|
943
|
+
p && !isNaN(n) && isFinite(n) && (p.currentTime = n, v(n));
|
|
944
944
|
}, []);
|
|
945
945
|
return /* @__PURE__ */ m(
|
|
946
946
|
F,
|
|
@@ -949,33 +949,33 @@ const Kt = "_root_13w21_1", Jt = "_playButton_13w21_11", Ne = {
|
|
|
949
949
|
gap: o === "mini" ? 6 : o === "small" ? 8 : 10,
|
|
950
950
|
wrap: "nowrap",
|
|
951
951
|
className: `${Ne.root} ${y ?? ""}`,
|
|
952
|
-
style: { height:
|
|
952
|
+
style: { height: u.height, ...g },
|
|
953
953
|
children: [
|
|
954
|
-
/* @__PURE__ */ e("audio", { ref:
|
|
954
|
+
/* @__PURE__ */ e("audio", { ref: l, src: t, preload: "metadata" }),
|
|
955
955
|
/* @__PURE__ */ e(
|
|
956
956
|
Y,
|
|
957
957
|
{
|
|
958
958
|
variant: "filled",
|
|
959
959
|
color: "blue",
|
|
960
960
|
radius: "xl",
|
|
961
|
-
size:
|
|
962
|
-
onClick:
|
|
963
|
-
"aria-label":
|
|
961
|
+
size: u.buttonSize,
|
|
962
|
+
onClick: c,
|
|
963
|
+
"aria-label": d ? "Pause" : "Play",
|
|
964
964
|
className: Ne.playButton,
|
|
965
|
-
children:
|
|
965
|
+
children: d ? /* @__PURE__ */ e(Ce, { size: u.iconSize }) : /* @__PURE__ */ e(ke, { size: u.iconSize })
|
|
966
966
|
}
|
|
967
967
|
),
|
|
968
968
|
/* @__PURE__ */ e(k, { style: { flex: 1, minWidth: 80 }, children: /* @__PURE__ */ e(
|
|
969
969
|
le,
|
|
970
970
|
{
|
|
971
|
-
audioRef:
|
|
972
|
-
currentTime:
|
|
973
|
-
onSeek:
|
|
971
|
+
audioRef: l,
|
|
972
|
+
currentTime: i,
|
|
973
|
+
onSeek: b,
|
|
974
974
|
waveColor: a,
|
|
975
975
|
progressColor: s,
|
|
976
|
-
height:
|
|
977
|
-
barWidth:
|
|
978
|
-
barGap:
|
|
976
|
+
height: u.waveHeight,
|
|
977
|
+
barWidth: u.barWidth,
|
|
978
|
+
barGap: u.barGap
|
|
979
979
|
}
|
|
980
980
|
) })
|
|
981
981
|
]
|
|
@@ -992,7 +992,7 @@ function jn({
|
|
|
992
992
|
title: o,
|
|
993
993
|
description: a,
|
|
994
994
|
doHint: s,
|
|
995
|
-
dontHint:
|
|
995
|
+
dontHint: r
|
|
996
996
|
}) {
|
|
997
997
|
return /* @__PURE__ */ m(
|
|
998
998
|
U,
|
|
@@ -1004,9 +1004,9 @@ function jn({
|
|
|
1004
1004
|
children: [
|
|
1005
1005
|
/* @__PURE__ */ e(oe, { order: 3, size: "h4", mb: "xs", children: o }),
|
|
1006
1006
|
/* @__PURE__ */ e(N, { c: "dimmed", children: a }),
|
|
1007
|
-
(s ||
|
|
1007
|
+
(s || r) && /* @__PURE__ */ m(F, { gap: "sm", mt: "md", wrap: "wrap", children: [
|
|
1008
1008
|
s && /* @__PURE__ */ e(we, { variant: "do", children: s }),
|
|
1009
|
-
|
|
1009
|
+
r && /* @__PURE__ */ e(we, { variant: "dont", children: r })
|
|
1010
1010
|
] })
|
|
1011
1011
|
]
|
|
1012
1012
|
}
|
|
@@ -1023,48 +1023,48 @@ function Gn({
|
|
|
1023
1023
|
icon: o,
|
|
1024
1024
|
openIcon: a,
|
|
1025
1025
|
direction: s = "up",
|
|
1026
|
-
color:
|
|
1027
|
-
size:
|
|
1026
|
+
color: r = "blue",
|
|
1027
|
+
size: f = 56,
|
|
1028
1028
|
defaultOpen: y = !1,
|
|
1029
1029
|
open: g,
|
|
1030
1030
|
onOpenChange: _,
|
|
1031
|
-
style:
|
|
1032
|
-
className:
|
|
1031
|
+
style: l,
|
|
1032
|
+
className: d
|
|
1033
1033
|
}) {
|
|
1034
|
-
const [
|
|
1034
|
+
const [w, i] = z(y), v = g ?? w, u = S(() => {
|
|
1035
1035
|
const n = !v;
|
|
1036
|
-
|
|
1037
|
-
}, [v, _]),
|
|
1038
|
-
|
|
1039
|
-
}, [_]),
|
|
1036
|
+
i(n), _ == null || _(n);
|
|
1037
|
+
}, [v, _]), c = S(() => {
|
|
1038
|
+
i(!1), _ == null || _(!1);
|
|
1039
|
+
}, [_]), b = s === "up" || s === "down";
|
|
1040
1040
|
return /* @__PURE__ */ m(
|
|
1041
1041
|
k,
|
|
1042
1042
|
{
|
|
1043
|
-
className: `${ne.root} ${
|
|
1044
|
-
style:
|
|
1043
|
+
className: `${ne.root} ${d ?? ""}`,
|
|
1044
|
+
style: l,
|
|
1045
1045
|
"data-direction": s,
|
|
1046
1046
|
children: [
|
|
1047
|
-
/* @__PURE__ */ e("div", { className: ne.actions, "data-direction": s, children: t.map((n,
|
|
1048
|
-
const I = s === "up" || s === "left" ? t.length - 1 -
|
|
1047
|
+
/* @__PURE__ */ e("div", { className: ne.actions, "data-direction": s, children: t.map((n, p) => {
|
|
1048
|
+
const I = s === "up" || s === "left" ? t.length - 1 - p : p;
|
|
1049
1049
|
return /* @__PURE__ */ e(
|
|
1050
1050
|
De,
|
|
1051
1051
|
{
|
|
1052
1052
|
mounted: v,
|
|
1053
|
-
transition:
|
|
1053
|
+
transition: b ? "slide-up" : "slide-right",
|
|
1054
1054
|
duration: 200,
|
|
1055
1055
|
timingFunction: "ease",
|
|
1056
1056
|
enterDelay: I * 40,
|
|
1057
|
-
children: (T) => /* @__PURE__ */ e(Fe, { label: n.label, position:
|
|
1057
|
+
children: (T) => /* @__PURE__ */ e(Fe, { label: n.label, position: b ? "left" : "top", children: /* @__PURE__ */ e(
|
|
1058
1058
|
Y,
|
|
1059
1059
|
{
|
|
1060
1060
|
variant: "filled",
|
|
1061
1061
|
color: "gray",
|
|
1062
1062
|
radius: "xl",
|
|
1063
|
-
size:
|
|
1063
|
+
size: f * 0.7,
|
|
1064
1064
|
style: T,
|
|
1065
1065
|
className: ne.actionButton,
|
|
1066
1066
|
onClick: () => {
|
|
1067
|
-
n.onClick(),
|
|
1067
|
+
n.onClick(), c();
|
|
1068
1068
|
},
|
|
1069
1069
|
"aria-label": n.label,
|
|
1070
1070
|
children: n.icon
|
|
@@ -1078,14 +1078,14 @@ function Gn({
|
|
|
1078
1078
|
Y,
|
|
1079
1079
|
{
|
|
1080
1080
|
variant: "filled",
|
|
1081
|
-
color:
|
|
1081
|
+
color: r,
|
|
1082
1082
|
radius: "xl",
|
|
1083
|
-
size:
|
|
1084
|
-
onClick:
|
|
1083
|
+
size: f,
|
|
1084
|
+
onClick: u,
|
|
1085
1085
|
className: ne.fab,
|
|
1086
1086
|
"data-open": v || void 0,
|
|
1087
1087
|
"aria-label": v ? "Close actions" : "Open actions",
|
|
1088
|
-
children: v ? a ?? o ?? /* @__PURE__ */ e(ue, { size:
|
|
1088
|
+
children: v ? a ?? o ?? /* @__PURE__ */ e(ue, { size: f * 0.45 }) : o ?? /* @__PURE__ */ e(ue, { size: f * 0.45 })
|
|
1089
1089
|
}
|
|
1090
1090
|
)
|
|
1091
1091
|
]
|
|
@@ -1110,19 +1110,19 @@ function Rn({
|
|
|
1110
1110
|
badgeColor: o = "violet",
|
|
1111
1111
|
subtitle: a,
|
|
1112
1112
|
title: s,
|
|
1113
|
-
titleColor:
|
|
1114
|
-
preTitle:
|
|
1113
|
+
titleColor: r = "blue",
|
|
1114
|
+
preTitle: f,
|
|
1115
1115
|
description: y,
|
|
1116
1116
|
actions: g,
|
|
1117
1117
|
heading: _,
|
|
1118
|
-
children:
|
|
1119
|
-
stickyHeading:
|
|
1120
|
-
py:
|
|
1121
|
-
reversed:
|
|
1118
|
+
children: l,
|
|
1119
|
+
stickyHeading: d = !1,
|
|
1120
|
+
py: w,
|
|
1121
|
+
reversed: i = !1,
|
|
1122
1122
|
id: v,
|
|
1123
|
-
className:
|
|
1123
|
+
className: u
|
|
1124
1124
|
}) {
|
|
1125
|
-
const
|
|
1125
|
+
const c = _ ?? /* @__PURE__ */ m(ce, { gap: "sm", children: [
|
|
1126
1126
|
t && /* @__PURE__ */ m(k, { children: [
|
|
1127
1127
|
/* @__PURE__ */ e(
|
|
1128
1128
|
$e,
|
|
@@ -1139,16 +1139,16 @@ function Rn({
|
|
|
1139
1139
|
a && /* @__PURE__ */ e(N, { size: "sm", c: "dimmed", mt: "xs", tt: "uppercase", style: { letterSpacing: "0.05em" }, children: a })
|
|
1140
1140
|
] }),
|
|
1141
1141
|
!t && a && /* @__PURE__ */ e(N, { size: "sm", c: "dimmed", tt: "uppercase", style: { letterSpacing: "0.05em" }, children: a }),
|
|
1142
|
-
(
|
|
1143
|
-
|
|
1144
|
-
|
|
1142
|
+
(f || s) && /* @__PURE__ */ m(oe, { order: 2, className: W.title, children: [
|
|
1143
|
+
f && /* @__PURE__ */ e("span", { className: W.preTitle, children: f }),
|
|
1144
|
+
f && /* @__PURE__ */ e("br", {}),
|
|
1145
1145
|
s && /* @__PURE__ */ e(
|
|
1146
1146
|
N,
|
|
1147
1147
|
{
|
|
1148
1148
|
component: "span",
|
|
1149
1149
|
inherit: !0,
|
|
1150
1150
|
className: W.titleHighlight,
|
|
1151
|
-
c:
|
|
1151
|
+
c: r,
|
|
1152
1152
|
children: s
|
|
1153
1153
|
}
|
|
1154
1154
|
)
|
|
@@ -1160,19 +1160,19 @@ function Rn({
|
|
|
1160
1160
|
k,
|
|
1161
1161
|
{
|
|
1162
1162
|
component: "section",
|
|
1163
|
-
py:
|
|
1163
|
+
py: w ?? "calc(var(--mantine-spacing-xl) * 3)",
|
|
1164
1164
|
pos: "relative",
|
|
1165
1165
|
id: v,
|
|
1166
|
-
className:
|
|
1167
|
-
children: /* @__PURE__ */ e(k, { className: W.container, children: /* @__PURE__ */ m(k, { className: `${W.layout} ${
|
|
1166
|
+
className: u,
|
|
1167
|
+
children: /* @__PURE__ */ e(k, { className: W.container, children: /* @__PURE__ */ m(k, { className: `${W.layout} ${i ? W.reversed : ""}`, children: [
|
|
1168
1168
|
/* @__PURE__ */ e(
|
|
1169
1169
|
k,
|
|
1170
1170
|
{
|
|
1171
|
-
className: `${W.headingSide} ${
|
|
1172
|
-
children: /* @__PURE__ */ e(k, { className:
|
|
1171
|
+
className: `${W.headingSide} ${d ? W.sticky : ""}`,
|
|
1172
|
+
children: /* @__PURE__ */ e(k, { className: d ? W.stickyInner : void 0, children: c })
|
|
1173
1173
|
}
|
|
1174
1174
|
),
|
|
1175
|
-
/* @__PURE__ */ e(k, { className: W.contentSide, children:
|
|
1175
|
+
/* @__PURE__ */ e(k, { className: W.contentSide, children: l })
|
|
1176
1176
|
] }) })
|
|
1177
1177
|
}
|
|
1178
1178
|
);
|
|
@@ -1189,15 +1189,15 @@ function An({
|
|
|
1189
1189
|
name: o,
|
|
1190
1190
|
role: a,
|
|
1191
1191
|
company: s,
|
|
1192
|
-
avatarSrc:
|
|
1193
|
-
accentColor:
|
|
1192
|
+
avatarSrc: r,
|
|
1193
|
+
accentColor: f = "blue"
|
|
1194
1194
|
}) {
|
|
1195
|
-
const y = `var(--mantine-color-${
|
|
1195
|
+
const y = `var(--mantine-color-${f}-filled)`;
|
|
1196
1196
|
return /* @__PURE__ */ m(U, { className: Ie.root, p: "lg", radius: "md", style: { borderLeftColor: y }, children: [
|
|
1197
1197
|
/* @__PURE__ */ e(Ve, { size: 32, className: Ie.quoteIcon, color: y }),
|
|
1198
1198
|
/* @__PURE__ */ e(N, { fs: "italic", mt: "xs", mb: "md", children: t }),
|
|
1199
1199
|
/* @__PURE__ */ m(F, { gap: "sm", children: [
|
|
1200
|
-
/* @__PURE__ */ e(je, { src:
|
|
1200
|
+
/* @__PURE__ */ e(je, { src: r, alt: o, color: f, radius: "xl", size: "md", children: bn(o) }),
|
|
1201
1201
|
/* @__PURE__ */ m(ce, { gap: 0, children: [
|
|
1202
1202
|
/* @__PURE__ */ e(N, { fw: 600, size: "sm", children: o }),
|
|
1203
1203
|
(a || s) && /* @__PURE__ */ e(N, { size: "xs", c: "dimmed", children: [a, s].filter(Boolean).join(", ") })
|
|
@@ -1211,8 +1211,8 @@ export {
|
|
|
1211
1211
|
kn as AudioPlayer,
|
|
1212
1212
|
le as AudioWaveform,
|
|
1213
1213
|
Ln as CodeBlock,
|
|
1214
|
-
|
|
1215
|
-
|
|
1214
|
+
Bn as ColorPalette,
|
|
1215
|
+
Sn as ColorSwatch,
|
|
1216
1216
|
de as Copyable,
|
|
1217
1217
|
Tn as DosDonts,
|
|
1218
1218
|
Pn as ExpandableCard,
|