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