@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/index.mjs CHANGED
@@ -1,383 +1,384 @@
1
1
  'use client';
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 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
- 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
- import qe from "@frequencyads/brand/assets/frequency-mark-white.svg";
8
- import { gradients as Ue } from "@frequencyads/brand/colors";
9
- function Cn({
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: s = 2e3,
14
- threshold: r = 0.5,
15
- abbreviate: f = !0,
14
+ duration: r = 2e3,
15
+ threshold: s = 0.5,
16
+ abbreviate: h = !0,
16
17
  decimals: y,
17
- ...g
18
+ ..._
18
19
  }) {
19
- const [_, l] = z(0), [d, w] = z(!1), i = D(null);
20
- return P(() => {
21
- const u = i.current;
22
- if (!u) return;
23
- const c = new IntersectionObserver(
24
- ([b]) => {
25
- b.isIntersecting && !d && w(!0);
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: r }
28
+ { threshold: s }
28
29
  );
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));
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 c = requestAnimationFrame(b), () => cancelAnimationFrame(c);
39
- }, [d, t, s]), /* @__PURE__ */ m(
40
- N,
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
- ...g,
46
+ ..._,
46
47
  children: [
47
48
  a,
48
49
  (() => {
49
- if (f && t >= 1e3) {
50
- const u = _ / 1e3;
51
- return u % 1 === 0 ? `${Math.round(u)}K` : `${u.toFixed(1)}K`;
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 ? _.toFixed(y) : t !== Math.floor(t) ? _.toFixed(1) : Math.round(_).toString();
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 Xe = "_root_1bq7s_1", Ye = "_svg_1bq7s_12", me = {
61
- root: Xe,
62
- svg: Ye
63
- }, Ke = 140, he = 3, pe = 10, Le = 150, V = Le / 2;
64
- function fe({
65
- barCount: t = Ke,
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 [s, r] = z(!1);
70
- if (P(() => {
71
- r(!0);
72
- }, []), !s) return null;
73
- const f = t * pe;
74
- return /* @__PURE__ */ e("div", { className: me.root, children: /* @__PURE__ */ m(
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: me.svg,
78
- viewBox: `0 0 ${f} ${Le}`,
78
+ className: ve.svg,
79
+ viewBox: `0 0 ${h} ${Ee}`,
79
80
  preserveAspectRatio: "none",
80
81
  children: [
81
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ m("linearGradient", { id: "waveformBarGradient", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [
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, g) => {
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
- return /* @__PURE__ */ m("g", { children: [
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
- B.rect,
93
+ L.rect,
93
94
  {
94
- x: _,
95
- width: he,
95
+ x: g,
96
+ width: ye,
96
97
  rx: "1.5",
97
98
  fill: "url(#waveformBarGradient)",
98
- initial: { height: l / 2, y: V - l / 4 },
99
+ initial: { height: m / 2, y: U - m / 4 },
99
100
  animate: {
100
- height: [l / 2, l * 2, l / 2, l * 1.2, l / 2],
101
+ height: [m / 2, m * 2, m / 2, m * 1.2, m / 2],
101
102
  y: [
102
- V - l / 4,
103
- V - l,
104
- V - l / 4,
105
- V - l * 0.6,
106
- V - l / 4
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: d,
114
+ delay: u,
114
115
  repeatDelay: a
115
116
  }
116
117
  }
117
118
  ),
118
119
  /* @__PURE__ */ e(
119
- B.rect,
120
+ L.rect,
120
121
  {
121
- x: _,
122
- y: V,
123
- width: he,
122
+ x: g,
123
+ y: U,
124
+ width: ye,
124
125
  rx: "1.5",
125
126
  fill: "url(#waveformBarGradient)",
126
- initial: { height: l / 2 },
127
+ initial: { height: m / 2 },
127
128
  animate: {
128
- height: [l / 2, l * 2, l / 2, l * 1.2, l / 2]
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: d,
135
+ delay: u,
135
136
  repeatDelay: a
136
137
  }
137
138
  }
138
139
  )
139
- ] }, g);
140
+ ] }, _);
140
141
  })
141
142
  ]
142
143
  }
143
144
  ) });
144
145
  }
145
- const Je = "_root_1pkxe_1", Qe = "_progressOverlay_1pkxe_9", Ze = "_bars_1pkxe_19", et = "_bar_1pkxe_19", tt = "_loading_1pkxe_34", J = {
146
- root: Je,
147
- progressOverlay: Qe,
148
- bars: Ze,
149
- bar: et,
150
- loading: tt
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 nt(t = 100) {
153
+ function mt(t = 100) {
153
154
  const o = [];
154
155
  for (let a = 0; a < t; a++) {
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) * _)));
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 le = xe(
161
+ const fe = De(
161
162
  ({
162
163
  audioRef: t,
163
164
  currentTime: o = 0,
164
165
  onSeek: a,
165
- loading: s = !1,
166
- waveColor: r = "#CCCCCC",
167
- progressColor: f = "#169bde",
166
+ loading: r = !1,
167
+ waveColor: s = "#CCCCCC",
168
+ progressColor: h = "#169bde",
168
169
  height: y = 60,
169
- barWidth: g = 2,
170
- barGap: _ = 1
171
- }, l) => {
172
- const d = D(null), [w] = z(() => nt()), [i, v] = z(0), [u, c] = z(0);
173
- Be(l, () => ({
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 && c(Math.max(0, Math.min(100, n / i * 100)));
176
+ i > 0 && d(Math.max(0, Math.min(100, n / i * 100)));
176
177
  },
177
- getCurrentTime: () => u / 100 * i,
178
+ getCurrentTime: () => c / 100 * i,
178
179
  getDuration: () => i
179
- })), P(() => {
180
+ })), S(() => {
180
181
  const n = t.current;
181
182
  if (!n) return;
182
- const p = () => {
183
- n.duration && !isNaN(n.duration) && v(n.duration);
184
- }, I = () => {
185
- n.duration > 0 && c(n.currentTime / n.duration * 100);
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) && v(n.duration), n.addEventListener("loadedmetadata", p), n.addEventListener("timeupdate", I), () => {
188
- n.removeEventListener("loadedmetadata", p), n.removeEventListener("timeupdate", I);
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]), P(() => {
191
- i > 0 && typeof o == "number" && c(o / i * 100);
191
+ }, [t]), S(() => {
192
+ i > 0 && typeof o == "number" && d(o / i * 100);
192
193
  }, [o, i]);
193
- const b = S(
194
+ const w = D(
194
195
  (n) => {
195
- if (!d.current || !a || i === 0) return;
196
- const p = d.current.getBoundingClientRect(), I = (n.clientX - p.left) / p.width * i;
197
- a(I);
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__ */ m(
202
- k,
202
+ return /* @__PURE__ */ l(
203
+ x,
203
204
  {
204
- ref: d,
205
- className: J.root,
205
+ ref: u,
206
+ className: ne.root,
206
207
  style: { height: y },
207
- onClick: b,
208
+ onClick: w,
208
209
  children: [
209
210
  /* @__PURE__ */ e(
210
211
  "div",
211
212
  {
212
- className: J.progressOverlay,
213
- style: { width: `${u}%`, backgroundColor: `${f}15` }
213
+ className: ne.progressOverlay,
214
+ style: { width: `${c}%`, backgroundColor: `${h}15` }
214
215
  }
215
216
  ),
216
- /* @__PURE__ */ e("div", { className: J.bars, style: { gap: _ }, children: w.map((n, p) => {
217
- const I = p / w.length * 100 <= u;
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: J.bar,
222
+ className: ne.bar,
222
223
  style: {
223
- width: g,
224
+ width: _,
224
225
  height: `${n}%`,
225
- backgroundColor: I ? f : r
226
+ backgroundColor: N ? h : s
226
227
  }
227
228
  },
228
- p
229
+ f
229
230
  );
230
231
  }) }),
231
- s && /* @__PURE__ */ e("div", { className: J.loading, children: "Loading waveform..." })
232
+ r && /* @__PURE__ */ e("div", { className: ne.loading, children: "Loading waveform..." })
232
233
  ]
233
234
  }
234
235
  );
235
236
  }
236
237
  );
237
- le.displayName = "AudioWaveform";
238
- const ot = "_root_n9zxy_1", st = "_playButton_n9zxy_8", at = "_time_n9zxy_22", it = "_volumeGroup_n9zxy_28", Q = {
239
- root: ot,
240
- playButton: st,
241
- time: at,
242
- volumeGroup: it
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 se(t) {
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 kn({
249
+ function lo({
249
250
  src: t,
250
251
  filename: o = "audio",
251
252
  playButtonColor: a,
252
- playButtonSize: s = 32,
253
- waveColor: r = "#D0D0D0",
254
- progressColor: f = "#a8a8a8",
253
+ playButtonSize: r = 32,
254
+ waveColor: s = "#D0D0D0",
255
+ progressColor: h = "#a8a8a8",
255
256
  waveHeight: y = 64,
256
- barWidth: g = 3,
257
- barGap: _ = 2,
258
- showVolume: l = !0,
259
- showDownload: d = !0
257
+ barWidth: _ = 3,
258
+ barGap: g = 2,
259
+ showVolume: m = !0,
260
+ showDownload: u = !0
260
261
  }) {
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
- P(() => {
263
- const h = w.current;
264
- if (!h) return;
265
- h.volume = T / 100;
266
- const x = () => {
267
- c(h.currentTime), n(se(h.currentTime));
268
- }, L = () => I(se(h.duration)), X = () => {
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
- c(0), n("00:00"), v(!1);
271
+ d(0), n("00:00"), b(!1);
271
272
  }, 500);
272
- }, Z = () => v(!0), ee = () => v(!1);
273
- return h.addEventListener("timeupdate", x), h.addEventListener("loadedmetadata", L), h.addEventListener("ended", X), h.addEventListener("play", Z), h.addEventListener("pause", ee), () => {
274
- h.removeEventListener("timeupdate", x), h.removeEventListener("loadedmetadata", L), h.removeEventListener("ended", X), h.removeEventListener("play", Z), h.removeEventListener("pause", ee);
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 E = S(() => {
278
- const h = w.current;
279
- h && (i ? h.pause() : h.play().catch(() => {
278
+ const F = D(() => {
279
+ const p = k.current;
280
+ p && (i ? p.pause() : p.play().catch(() => {
280
281
  }));
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
- (h) => {
286
- const x = w.current;
287
- x && (x.volume = h / 100, R(h), h > 0 ? (j(h), M(!1)) : M(!0));
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 = S(() => {
291
- const h = w.current;
292
- if (h)
293
- if (C) {
294
- const x = A || 50;
295
- h.volume = x / 100, R(x), M(!1);
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
- j(T), h.volume = 0, R(0), M(!0);
298
- }, [C, T, A]), K = S(() => {
299
- fetch(t).then((h) => h.blob()).then((h) => {
300
- const x = URL.createObjectURL(h), L = document.createElement("a");
301
- L.href = x, L.download = o, document.body.appendChild(L), L.click(), document.body.removeChild(L), URL.revokeObjectURL(x);
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__ */ m(F, { gap: "sm", wrap: "nowrap", className: Q.root, children: [
305
- /* @__PURE__ */ e("audio", { ref: w, src: t, preload: "metadata" }),
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
- Y,
308
+ Z,
308
309
  {
309
310
  variant: "filled",
310
311
  radius: "xl",
311
- size: s,
312
+ size: r,
312
313
  color: a,
313
- onClick: E,
314
+ onClick: F,
314
315
  "aria-label": i ? "Pause" : "Play",
315
- className: Q.playButton,
316
- children: i ? /* @__PURE__ */ e(Ce, { size: s * 0.5 }) : /* @__PURE__ */ e(ke, { size: s * 0.5 })
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(N, { size: "xs", ff: "monospace", c: "dimmed", className: Q.time, children: b }),
320
- /* @__PURE__ */ e(k, { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
321
- le,
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: w,
324
- currentTime: u,
324
+ audioRef: k,
325
+ currentTime: c,
325
326
  onSeek: G,
326
- waveColor: r,
327
- progressColor: f,
327
+ waveColor: s,
328
+ progressColor: h,
328
329
  height: y,
329
- barWidth: g,
330
- barGap: _
330
+ barWidth: _,
331
+ barGap: g
331
332
  }
332
333
  ) }),
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: [
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
- Y,
337
+ Z,
337
338
  {
338
339
  variant: "subtle",
339
340
  size: "sm",
340
341
  onClick: H,
341
- "aria-label": C ? "Unmute" : "Mute",
342
- children: C ? /* @__PURE__ */ e(Ge, { size: 16 }) : /* @__PURE__ */ e(Re, { size: 16 })
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
- Se,
347
+ Fe,
347
348
  {
348
- value: T,
349
- onChange: O,
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
- d && /* @__PURE__ */ e(Y, { variant: "subtle", size: "sm", onClick: K, "aria-label": "Download", children: /* @__PURE__ */ e(Ae, { size: 16 }) })
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 rt = "_root_ujac8_1", ct = "_textarea_ujac8_5", _e = {
360
- root: rt,
361
- textarea: ct
360
+ const ft = "_root_ujac8_1", _t = "_textarea_ujac8_5", xe = {
361
+ root: ft,
362
+ textarea: _t
362
363
  };
363
- function Ln({ code: t, filename: o, height: a = 384 }) {
364
- const [s, r] = z(!1), f = S(async () => {
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), r(!0), setTimeout(() => r(!1), 2e3);
367
+ await navigator.clipboard.writeText(t), s(!0), setTimeout(() => s(!1), 2e3);
367
368
  } catch {
368
369
  }
369
370
  }, [t]);
370
- return /* @__PURE__ */ m(k, { className: _e.root, children: [
371
- /* @__PURE__ */ m(F, { justify: "space-between", mb: "xs", children: [
372
- o && /* @__PURE__ */ e(N, { size: "sm", fw: 500, c: "dimmed", children: o }),
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: s ? "green" : "blue",
379
- onClick: f,
380
- children: s ? "Copied!" : "Copy"
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: _e.textarea,
390
+ className: xe.textarea,
390
391
  style: { height: a }
391
392
  }
392
393
  )
393
394
  ] });
394
395
  }
395
- const lt = "_root_ix1b2_1", dt = "_toast_ix1b2_5", ve = {
396
- root: lt,
397
- toast: dt
396
+ const bt = "_root_ix1b2_1", vt = "_toast_ix1b2_5", Ne = {
397
+ root: bt,
398
+ toast: vt
398
399
  };
399
- function de({ value: t, children: o }) {
400
- const [a, s] = z(null), r = S(() => {
400
+ function ue({ value: t, children: o }) {
401
+ const [a, r] = T(null), s = D(() => {
401
402
  navigator.clipboard.writeText(t).then(() => {
402
- s(`Copied ${t}`), setTimeout(() => s(null), 1800);
403
+ r(`Copied ${t}`), setTimeout(() => r(null), 1800);
403
404
  });
404
405
  }, [t]);
405
- return /* @__PURE__ */ m(ze, { children: [
406
+ return /* @__PURE__ */ l(Le, { children: [
406
407
  /* @__PURE__ */ e(
407
408
  "span",
408
409
  {
409
- onClick: r,
410
- className: ve.root,
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(Te, { children: /* @__PURE__ */ e(
416
- Pe,
416
+ a && /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(
417
+ je,
417
418
  {
418
419
  withCloseButton: !1,
419
- className: ve.toast,
420
+ className: Ne.toast,
420
421
  color: "blue",
421
422
  children: a
422
423
  }
423
424
  ) })
424
425
  ] });
425
426
  }
426
- const ut = "_root_3ht5s_1", mt = "_shade_3ht5s_5", ht = "_color_3ht5s_10", pt = "_main_3ht5s_20", te = {
427
- root: ut,
428
- shade: mt,
429
- color: ht,
430
- main: pt
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 Bn({ name: t, shades: o, mainIndex: a = 5 }) {
433
- return /* @__PURE__ */ m("div", { className: te.root, children: [
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, r) => /* @__PURE__ */ e(de, { value: s, children: /* @__PURE__ */ m("div", { className: te.shade, children: [
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: `${te.color} ${r === a ? te.main : ""}`,
440
- style: { backgroundColor: s }
440
+ className: `${ce.color} ${s === a ? ce.main : ""}`,
441
+ style: { backgroundColor: r }
441
442
  }
442
443
  ),
443
- /* @__PURE__ */ e(N, { size: "xs", c: "dimmed", ta: "center", mt: 4, children: r }),
444
- /* @__PURE__ */ e(N, { size: "xs", c: "dimmed", ta: "center", ff: "monospace", children: s })
445
- ] }) }, r)) })
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 ft = "_root_1vxkx_1", _t = "_preview_1vxkx_11", vt = "_info_1vxkx_15", ae = {
449
- root: ft,
450
- preview: _t,
451
- info: vt
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 Sn({ name: t, hex: o, label: a }) {
454
- return /* @__PURE__ */ e(de, { value: o, children: /* @__PURE__ */ m(U, { className: ae.root, shadow: "lg", radius: "md", withBorder: !1, children: [
455
- /* @__PURE__ */ e("div", { className: ae.preview, style: { backgroundColor: o } }),
456
- /* @__PURE__ */ m("div", { className: ae.info, children: [
457
- /* @__PURE__ */ e(N, { fw: 600, size: "sm", children: t }),
458
- /* @__PURE__ */ e(N, { size: "xs", c: "dimmed", ff: "monospace", children: o }),
459
- a && /* @__PURE__ */ e(N, { size: "xs", c: "dimmed", children: a })
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 gt = "_root_dzed6_1", yt = "_dont_dzed6_7", bt = "_dontIcon_dzed6_12", wt = "_dontLabel_dzed6_13", Nt = "_doIcon_dzed6_22", It = "_doLabel_dzed6_23", q = {
464
- root: gt,
465
- dont: yt,
466
- dontIcon: bt,
467
- dontLabel: wt,
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: Nt,
470
- doLabel: It
470
+ doIcon: Bt,
471
+ doLabel: Lt
471
472
  };
472
- function Tn({ items: t }) {
473
- return /* @__PURE__ */ e("div", { className: q.root, children: t.map((o, a) => /* @__PURE__ */ m(Me, { cols: { base: 1, sm: 2 }, spacing: "md", children: [
474
- /* @__PURE__ */ m(U, { className: q.dont, p: "md", radius: "md", children: [
475
- /* @__PURE__ */ m(F, { gap: 6, mb: 6, children: [
476
- /* @__PURE__ */ e(Oe, { size: 16, className: q.dontIcon }),
477
- /* @__PURE__ */ e(N, { size: "sm", fw: 600, className: q.dontLabel, children: "Don't" })
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(N, { size: "sm", children: o.dont })
480
+ /* @__PURE__ */ e(v, { size: "sm", children: o.dont })
480
481
  ] }),
481
- /* @__PURE__ */ m(U, { className: q.do, p: "md", radius: "md", children: [
482
- /* @__PURE__ */ m(F, { gap: 6, mb: 6, children: [
483
- /* @__PURE__ */ e(He, { size: 16, className: q.doIcon }),
484
- /* @__PURE__ */ e(N, { size: "sm", fw: 600, className: q.doLabel, children: "Do" })
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(N, { size: "sm", children: o.do })
487
+ /* @__PURE__ */ e(v, { size: "sm", children: o.do })
487
488
  ] })
488
489
  ] }, a)) });
489
490
  }
490
- const zt = "_root_xi08i_1", xt = "_inner_xi08i_6", ge = {
491
- root: zt,
492
- inner: xt
491
+ const Dt = "_root_xi08i_1", St = "_inner_xi08i_6", Te = {
492
+ root: Dt,
493
+ inner: St
493
494
  };
494
- function Pn({
495
+ function go({
495
496
  title: t,
496
497
  description: o,
497
498
  expandedContent: a,
498
- icon: s,
499
- color: r = "blue",
500
- iconSize: f = "lg",
499
+ icon: r,
500
+ color: s = "blue",
501
+ iconSize: h = "lg",
501
502
  collapsedHeight: y = 120,
502
- threshold: g = 0.5,
503
- delay: _ = 300,
504
- expanded: l,
505
- onExpandedChange: d
503
+ threshold: _ = 0.5,
504
+ delay: g = 300,
505
+ expanded: m,
506
+ onExpandedChange: u
506
507
  }) {
507
- const w = D(null), [i, v] = z(!1), u = l !== void 0, c = u ? l : i;
508
- return P(() => {
509
- if (u) return;
510
- const b = w.current;
511
- if (!b) return;
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
- ([p]) => {
514
- p.isIntersecting && setTimeout(() => {
515
- v(!0), d == null || d(!0);
516
- }, _);
514
+ ([f]) => {
515
+ f.isIntersecting && setTimeout(() => {
516
+ b(!0), u == null || u(!0);
517
+ }, g);
517
518
  },
518
- { threshold: g }
519
+ { threshold: _ }
519
520
  );
520
- return n.observe(b), () => n.disconnect();
521
- }, [u, g, _, d]), /* @__PURE__ */ e(
522
- U,
521
+ return n.observe(w), () => n.disconnect();
522
+ }, [c, _, g, u]), /* @__PURE__ */ e(
523
+ Y,
523
524
  {
524
- ref: w,
525
+ ref: k,
525
526
  radius: 4,
526
- className: ge.root,
527
- component: B.div,
528
- animate: { height: c ? "auto" : y },
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: ge.inner, children: /* @__PURE__ */ m(F, { align: "flex-start", justify: "space-between", gap: "lg", wrap: "nowrap", children: [
531
- /* @__PURE__ */ m(ce, { gap: "xs", style: { flex: 1 }, children: [
532
- /* @__PURE__ */ e(N, { fw: 700, size: "xl", lh: 1.3, children: t }),
533
- /* @__PURE__ */ e(N, { size: "md", c: "dimmed", children: o }),
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
- B.div,
536
+ L.div,
536
537
  {
537
538
  initial: { opacity: 0, height: 0 },
538
539
  animate: {
539
- opacity: c ? 1 : 0,
540
- height: c ? "auto" : 0
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(N, { size: "sm", c: "dimmed", mt: "sm", children: a }) : a
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
- B.div,
550
+ L.div,
550
551
  {
551
- animate: { scale: c ? 1.1 : 1 },
552
+ animate: { scale: d ? 1.1 : 1 },
552
553
  transition: { duration: 0.3 },
553
- children: /* @__PURE__ */ e(We, { size: f, radius: 4, color: r, variant: "filled", children: /* @__PURE__ */ e(s, { size: 20, stroke: 1.5 }) })
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 Mt = "_root_ho0ln_1", $t = "_visible_ho0ln_7", ye = {
561
- root: Mt,
562
- visible: $t
561
+ const Pt = "_root_ho0ln_1", Et = "_visible_ho0ln_7", $e = {
562
+ root: Pt,
563
+ visible: Et
563
564
  };
564
- function Wn({
565
+ function de({
565
566
  children: t,
566
567
  delay: o = 0,
567
568
  threshold: a = 0.1,
568
- className: s,
569
- ...r
569
+ className: r,
570
+ ...s
570
571
  }) {
571
- const f = D(null), [y, g] = z(!1);
572
- return P(() => {
573
- const _ = f.current;
574
- if (!_) return;
575
- const l = new IntersectionObserver(
576
- ([d]) => {
577
- d.isIntersecting && (o > 0 ? setTimeout(() => g(!0), o) : g(!0));
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 l.observe(_), () => l.disconnect();
582
+ return m.observe(g), () => m.disconnect();
582
583
  }, [o, a]), /* @__PURE__ */ e(
583
- k,
584
+ x,
584
585
  {
585
- ref: f,
586
- className: `${ye.root} ${y ? ye.visible : ""} ${s ?? ""}`,
587
- ...r,
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 En({ isActive: t = !1, height: o = 60 }) {
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
- for (let j = 0; j <= T; j++) {
606
- const C = j * R, M = C / v;
607
- let E = n;
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
- let X = 0;
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
- const Z = G + O + H + L + X, ee = Math.sin(M * Math.PI);
613
- E = n + Z * ee;
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
- E += Math.sin(M * Math.PI * 2 + c * A) * p;
616
- j === 0 ? i.moveTo(C, E) : i.lineTo(C, E);
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 M = v / 80, E = 16;
620
+ const I = b / 80, F = 16;
620
621
  i.shadowBlur = 3;
621
622
  for (let G = 0; G < 80; G++) {
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
- O,
624
- n - x / 2,
625
- O,
626
- n + x / 2
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
- 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
+ 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 (r)
632
- for (let C = 0; C < 15; C++) {
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();
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, r, d.start, d.mid, d.end]
638
+ [t, s, u.start, u.mid, u.end]
638
639
  );
639
- return P(() => {
640
+ return S(() => {
640
641
  const i = a.current;
641
642
  if (!i) return;
642
- const v = i.getContext("2d");
643
- if (!v) return;
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);
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
- 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);
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 s.current = requestAnimationFrame(b), () => {
654
- window.removeEventListener("resize", u), s.current && cancelAnimationFrame(s.current);
654
+ return r.current = requestAnimationFrame(w), () => {
655
+ window.removeEventListener("resize", c), r.current && cancelAnimationFrame(r.current);
655
656
  };
656
- }, [w]), P(() => {
657
+ }, [k]), S(() => {
657
658
  if (t) {
658
- queueMicrotask(() => f(!1)), y.current = Date.now();
659
+ queueMicrotask(() => h(!1)), y.current = Date.now();
659
660
  return;
660
661
  }
661
- const v = setInterval(() => {
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));
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(v);
668
- }, [t, r]), /* @__PURE__ */ e(
669
- k,
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: l ? 1 : 0.8
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 Ct = "_root_9li00_1", kt = "_preview_9li00_11", Lt = "_info_9li00_15", ie = {
694
- root: Ct,
695
- preview: kt,
696
- info: Lt
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 Dn({ name: t, colors: o, description: a }) {
699
- const s = `linear-gradient(135deg, ${o[0]} 0%, ${o[1]} 100%)`;
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
- /* @__PURE__ */ e(N, { fw: 600, size: "sm", children: t }),
704
- a && /* @__PURE__ */ e(N, { size: "xs", c: "dimmed", children: a }),
705
- /* @__PURE__ */ m(N, { size: "xs", c: "dimmed", ff: "monospace", children: [
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 Bt = "_root_1vlvy_1", St = "_video_1vlvy_9", be = {
714
- root: Bt,
715
- video: St
714
+ const At = "_root_1vlvy_1", Gt = "_video_1vlvy_9", Ie = {
715
+ root: At,
716
+ video: Gt
716
717
  };
717
- function Tt({ src: t, opacity: o = 0.3 }) {
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" }) }) });
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 Pt = "_root_1suaa_1", Wt = "_content_1suaa_8", Et = "_label_1suaa_21", Dt = "_vignette_1suaa_37", Ft = "_logoWrapper_1suaa_50", jt = "_logo_1suaa_50", Gt = "_glow_1suaa_73", Rt = "_textWrapper_1suaa_85", At = "_heading_1suaa_91", Ot = "_shimmer_1suaa_125", Ht = "_tagline_1suaa_129", Vt = "_primaryButton_1suaa_143", qt = "_secondaryButton_1suaa_148", Ut = "_scrollIndicator_1suaa_160", Xt = "_scrollLabel_1suaa_171", Yt = "_scrollLine_1suaa_179", $ = {
721
- root: Pt,
722
- content: Wt,
723
- label: Et,
724
- vignette: Dt,
725
- logoWrapper: Ft,
726
- logo: jt,
727
- glow: Gt,
728
- textWrapper: Rt,
729
- heading: At,
730
- shimmer: Ot,
731
- tagline: Ht,
732
- primaryButton: Vt,
733
- secondaryButton: qt,
734
- scrollIndicator: Ut,
735
- scrollLabel: Xt,
736
- scrollLine: Yt
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 Fn({
739
+ function _o({
739
740
  variant: t = "logo",
740
741
  heading: o,
741
742
  label: a,
742
- tagline: s,
743
- logoSrc: r = qe,
744
- gradient: f = "frequencyAlive",
743
+ tagline: r,
744
+ logoSrc: s = tt,
745
+ gradient: h = "frequencyAlive",
745
746
  shimmer: y = !0,
746
- primaryAction: g,
747
- secondaryAction: _,
748
- backgroundVideoSrc: l,
749
- showWaveform: d,
750
- showScrollIndicator: w = !1
747
+ primaryAction: _,
748
+ secondaryAction: g,
749
+ backgroundVideoSrc: m,
750
+ showWaveform: u,
751
+ showScrollIndicator: k = !1
751
752
  }) {
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
- return P(() => {
754
- v(!0);
755
- }, []), /* @__PURE__ */ m(k, { component: "section", className: $.root, children: [
756
- l && /* @__PURE__ */ e(Tt, { src: l }),
757
- /* @__PURE__ */ m("div", { className: $.content, children: [
758
- i && /* @__PURE__ */ m(ze, { children: [
759
- b && /* @__PURE__ */ e(
760
- B.p,
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: $.label,
766
- children: b
766
+ className: C.label,
767
+ children: w
767
768
  }
768
769
  ),
769
- t === "logo" && /* @__PURE__ */ m(
770
- B.div,
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: $.logoWrapper,
776
+ className: C.logoWrapper,
776
777
  children: [
777
- p && /* @__PURE__ */ e(fe, {}),
778
- p && /* @__PURE__ */ e("div", { className: $.vignette }),
778
+ f && /* @__PURE__ */ e(we, {}),
779
+ f && /* @__PURE__ */ e("div", { className: C.vignette }),
779
780
  /* @__PURE__ */ e(
780
- B.img,
781
+ L.img,
781
782
  {
782
- src: u,
783
- alt: c ?? "Frequency",
784
- className: $.logo,
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: $.glow })
790
+ /* @__PURE__ */ e("div", { className: C.glow })
790
791
  ]
791
792
  }
792
793
  ),
793
- t === "text" && c && /* @__PURE__ */ m(
794
- B.div,
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: $.textWrapper,
800
+ className: C.textWrapper,
800
801
  children: [
801
- p && /* @__PURE__ */ e(fe, {}),
802
- p && /* @__PURE__ */ e("div", { className: $.vignette }),
802
+ f && /* @__PURE__ */ e(we, {}),
803
+ f && /* @__PURE__ */ e("div", { className: C.vignette }),
803
804
  /* @__PURE__ */ e(
804
- oe,
805
+ se,
805
806
  {
806
807
  order: 1,
807
- className: `${$.heading} ${y ? $.shimmer : ""}`,
808
+ className: `${C.heading} ${y ? C.shimmer : ""}`,
808
809
  style: {
809
- backgroundImage: `linear-gradient(135deg, ${I.from}, ${I.to}, ${I.from})`,
810
+ backgroundImage: `linear-gradient(135deg, ${N.from}, ${N.to}, ${N.from})`,
810
811
  backgroundSize: y ? "200% 100%" : void 0
811
812
  },
812
- children: c
813
+ children: d
813
814
  }
814
815
  )
815
816
  ]
816
817
  }
817
818
  ),
818
- s && /* @__PURE__ */ e(
819
- B.div,
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(N, { className: $.tagline, children: s })
825
+ children: /* @__PURE__ */ e(v, { className: C.tagline, children: r })
825
826
  }
826
827
  ),
827
828
  n && /* @__PURE__ */ e(
828
- B.div,
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__ */ m(F, { gap: "md", justify: "center", wrap: "wrap", children: [
834
- g && /* @__PURE__ */ e(
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: g.href,
839
+ href: _.href,
839
840
  size: "lg",
840
841
  radius: 4,
841
- className: $.primaryButton,
842
- children: g.label
842
+ className: C.primaryButton,
843
+ children: _.label
843
844
  }
844
845
  ),
845
- _ && /* @__PURE__ */ e(
846
+ g && /* @__PURE__ */ e(
846
847
  re,
847
848
  {
848
849
  component: "a",
849
- href: _.href,
850
+ href: g.href,
850
851
  size: "lg",
851
852
  radius: 4,
852
853
  variant: "outline",
853
- className: $.secondaryButton,
854
- children: _.label
854
+ className: C.secondaryButton,
855
+ children: g.label
855
856
  }
856
857
  )
857
858
  ] })
858
859
  }
859
860
  )
860
861
  ] }),
861
- i && w && /* @__PURE__ */ m(
862
- B.div,
862
+ i && k && /* @__PURE__ */ l(
863
+ L.div,
863
864
  {
864
- className: $.scrollIndicator,
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: $.scrollLabel, children: "Scroll" }),
870
+ /* @__PURE__ */ e("span", { className: C.scrollLabel, children: "Scroll" }),
870
871
  /* @__PURE__ */ e(
871
- B.div,
872
+ L.div,
872
873
  {
873
- className: $.scrollLine,
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 we({ variant: t, children: o }) {
885
+ function Ce({ variant: t, children: o }) {
885
886
  const a = t === "do";
886
- return /* @__PURE__ */ m(
887
- $e,
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__ */ m("strong", { children: [
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 Kt = "_root_13w21_1", Jt = "_playButton_13w21_11", Ne = {
909
- root: Kt,
910
- playButton: Jt
911
- }, Qt = {
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
- }, Zt = xe(
916
+ }, cn = De(
916
917
  ({
917
918
  audioUrl: t,
918
919
  size: o = "mini",
919
920
  waveColor: a = "#CCCCCC",
920
- progressColor: s = "#169bde",
921
- onPlay: r,
922
- onPause: f,
921
+ progressColor: r = "#169bde",
922
+ onPlay: s,
923
+ onPause: h,
923
924
  className: y,
924
- style: g
925
- }, _) => {
926
- const l = D(null), [d, w] = z(!1), [i, v] = z(0), u = Qt[o];
927
- P(() => {
928
- const n = l.current;
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 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);
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 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));
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__ */ m(
946
- F,
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: `${Ne.root} ${y ?? ""}`,
952
- style: { height: u.height, ...g },
952
+ className: `${ze.root} ${y ?? ""}`,
953
+ style: { height: c.height, ..._ },
953
954
  children: [
954
- /* @__PURE__ */ e("audio", { ref: l, src: t, preload: "metadata" }),
955
+ /* @__PURE__ */ e("audio", { ref: m, src: t, preload: "metadata" }),
955
956
  /* @__PURE__ */ e(
956
- Y,
957
+ Z,
957
958
  {
958
959
  variant: "filled",
959
960
  color: "blue",
960
961
  radius: "xl",
961
- size: u.buttonSize,
962
- onClick: c,
963
- "aria-label": d ? "Pause" : "Play",
964
- className: Ne.playButton,
965
- children: d ? /* @__PURE__ */ e(Ce, { size: u.iconSize }) : /* @__PURE__ */ e(ke, { size: u.iconSize })
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(k, { style: { flex: 1, minWidth: 80 }, children: /* @__PURE__ */ e(
969
- le,
969
+ /* @__PURE__ */ e(x, { style: { flex: 1, minWidth: 80 }, children: /* @__PURE__ */ e(
970
+ fe,
970
971
  {
971
- audioRef: l,
972
+ audioRef: m,
972
973
  currentTime: i,
973
- onSeek: b,
974
+ onSeek: w,
974
975
  waveColor: a,
975
- progressColor: s,
976
- height: u.waveHeight,
977
- barWidth: u.barWidth,
978
- barGap: u.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
- Zt.displayName = "MiniAudioPlayer";
987
- const en = "_root_1bah1_1", tn = {
988
- root: en
987
+ cn.displayName = "MiniAudioPlayer";
988
+ const dn = "_root_1bah1_1", mn = {
989
+ root: dn
989
990
  };
990
- function jn({
991
+ function bo({
991
992
  accentColor: t,
992
993
  title: o,
993
994
  description: a,
994
- doHint: s,
995
- dontHint: r
995
+ doHint: r,
996
+ dontHint: s
996
997
  }) {
997
- return /* @__PURE__ */ m(
998
- U,
998
+ return /* @__PURE__ */ l(
999
+ Y,
999
1000
  {
1000
- className: tn.root,
1001
+ className: mn.root,
1001
1002
  p: "lg",
1002
1003
  radius: "md",
1003
1004
  style: { borderLeftColor: t },
1004
1005
  children: [
1005
- /* @__PURE__ */ e(oe, { order: 3, size: "h4", mb: "xs", children: o }),
1006
- /* @__PURE__ */ e(N, { c: "dimmed", children: a }),
1007
- (s || r) && /* @__PURE__ */ m(F, { gap: "sm", mt: "md", wrap: "wrap", children: [
1008
- s && /* @__PURE__ */ e(we, { variant: "do", children: s }),
1009
- r && /* @__PURE__ */ e(we, { variant: "dont", children: r })
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 nn = "_root_ydu7j_1", on = "_actions_ydu7j_22", sn = "_fab_ydu7j_43", an = "_actionButton_ydu7j_61", ne = {
1016
- root: nn,
1017
- actions: on,
1018
- fab: sn,
1019
- actionButton: an
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 Gn({
1022
+ function vo({
1022
1023
  actions: t,
1023
1024
  icon: o,
1024
1025
  openIcon: a,
1025
- direction: s = "up",
1026
- color: r = "blue",
1027
- size: f = 56,
1026
+ direction: r = "up",
1027
+ color: s = "blue",
1028
+ size: h = 56,
1028
1029
  defaultOpen: y = !1,
1029
- open: g,
1030
- onOpenChange: _,
1031
- style: l,
1032
- className: d
1030
+ open: _,
1031
+ onOpenChange: g,
1032
+ style: m,
1033
+ className: u
1033
1034
  }) {
1034
- const [w, i] = z(y), v = g ?? w, u = S(() => {
1035
- const n = !v;
1036
- i(n), _ == null || _(n);
1037
- }, [v, _]), c = S(() => {
1038
- i(!1), _ == null || _(!1);
1039
- }, [_]), b = s === "up" || s === "down";
1040
- return /* @__PURE__ */ m(
1041
- k,
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: `${ne.root} ${d ?? ""}`,
1044
- style: l,
1045
- "data-direction": s,
1044
+ className: `${me.root} ${u ?? ""}`,
1045
+ style: m,
1046
+ "data-direction": r,
1046
1047
  children: [
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;
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
- De,
1051
+ Re,
1051
1052
  {
1052
- mounted: v,
1053
- transition: b ? "slide-up" : "slide-right",
1053
+ mounted: b,
1054
+ transition: w ? "slide-up" : "slide-right",
1054
1055
  duration: 200,
1055
1056
  timingFunction: "ease",
1056
- enterDelay: I * 40,
1057
- children: (T) => /* @__PURE__ */ e(Fe, { label: n.label, position: b ? "left" : "top", children: /* @__PURE__ */ e(
1058
- Y,
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: f * 0.7,
1064
- style: T,
1065
- className: ne.actionButton,
1064
+ size: h * 0.7,
1065
+ style: P,
1066
+ className: me.actionButton,
1066
1067
  onClick: () => {
1067
- n.onClick(), c();
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
- Y,
1079
+ Z,
1079
1080
  {
1080
1081
  variant: "filled",
1081
- color: r,
1082
+ color: s,
1082
1083
  radius: "xl",
1083
- size: f,
1084
- onClick: u,
1085
- className: ne.fab,
1086
- "data-open": v || void 0,
1087
- "aria-label": v ? "Close actions" : "Open actions",
1088
- children: v ? a ?? o ?? /* @__PURE__ */ e(ue, { size: f * 0.45 }) : o ?? /* @__PURE__ */ e(ue, { size: f * 0.45 })
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 rn = "_container_9xj91_1", cn = "_layout_9xj91_16", ln = "_reversed_9xj91_29", dn = "_headingSide_9xj91_39", un = "_sticky_9xj91_49", mn = "_stickyInner_9xj91_54", hn = "_contentSide_9xj91_65", pn = "_title_9xj91_76", fn = "_preTitle_9xj91_82", _n = "_titleHighlight_9xj91_88", vn = "_description_9xj91_95", W = {
1096
- container: rn,
1097
- layout: cn,
1098
- reversed: ln,
1099
- headingSide: dn,
1100
- sticky: un,
1101
- stickyInner: mn,
1102
- contentSide: hn,
1103
- title: pn,
1104
- preTitle: fn,
1105
- titleHighlight: _n,
1106
- description: vn
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 Rn({
1109
+ function yo({
1109
1110
  badge: t,
1110
1111
  badgeColor: o = "violet",
1111
1112
  subtitle: a,
1112
- title: s,
1113
- titleColor: r = "blue",
1114
- preTitle: f,
1113
+ title: r,
1114
+ titleColor: s = "blue",
1115
+ preTitle: h,
1115
1116
  description: y,
1116
- actions: g,
1117
- heading: _,
1118
- children: l,
1119
- stickyHeading: d = !1,
1120
- py: w,
1117
+ actions: _,
1118
+ heading: g,
1119
+ children: m,
1120
+ stickyHeading: u = !1,
1121
+ py: k,
1121
1122
  reversed: i = !1,
1122
- id: v,
1123
- className: u
1123
+ id: b,
1124
+ className: c
1124
1125
  }) {
1125
- const c = _ ?? /* @__PURE__ */ m(ce, { gap: "sm", children: [
1126
- t && /* @__PURE__ */ m(k, { children: [
1126
+ const d = g ?? /* @__PURE__ */ l(K, { gap: "sm", children: [
1127
+ t && /* @__PURE__ */ l(x, { children: [
1127
1128
  /* @__PURE__ */ e(
1128
- $e,
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(N, { size: "sm", c: "dimmed", mt: "xs", tt: "uppercase", style: { letterSpacing: "0.05em" }, children: a })
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(N, { size: "sm", c: "dimmed", tt: "uppercase", style: { letterSpacing: "0.05em" }, children: a }),
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
- s && /* @__PURE__ */ e(
1146
- N,
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: W.titleHighlight,
1151
- c: r,
1152
- children: s
1151
+ className: E.titleHighlight,
1152
+ c: s,
1153
+ children: r
1153
1154
  }
1154
1155
  )
1155
1156
  ] }),
1156
- y && /* @__PURE__ */ e(N, { size: "lg", c: "dimmed", lh: 1.7, className: W.description, children: y }),
1157
- g && /* @__PURE__ */ e(k, { mt: "md", children: g })
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
- k,
1161
+ x,
1161
1162
  {
1162
1163
  component: "section",
1163
- py: w ?? "calc(var(--mantine-spacing-xl) * 3)",
1164
+ py: k ?? "calc(var(--mantine-spacing-xl) * 3)",
1164
1165
  pos: "relative",
1165
- id: v,
1166
- className: u,
1167
- children: /* @__PURE__ */ e(k, { className: W.container, children: /* @__PURE__ */ m(k, { className: `${W.layout} ${i ? W.reversed : ""}`, children: [
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
- k,
1170
+ x,
1170
1171
  {
1171
- className: `${W.headingSide} ${d ? W.sticky : ""}`,
1172
- children: /* @__PURE__ */ e(k, { className: d ? W.stickyInner : void 0, children: c })
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(k, { className: W.contentSide, children: l })
1176
+ /* @__PURE__ */ e(x, { className: E.contentSide, children: m })
1176
1177
  ] }) })
1177
1178
  }
1178
1179
  );
1179
1180
  }
1180
- const gn = "_root_ioshc_1", yn = "_quoteIcon_ioshc_6", Ie = {
1181
- root: gn,
1182
- quoteIcon: yn
1181
+ const In = "_root_ioshc_1", Cn = "_quoteIcon_ioshc_6", Me = {
1182
+ root: In,
1183
+ quoteIcon: Cn
1183
1184
  };
1184
- function bn(t) {
1185
+ function zn(t) {
1185
1186
  return t.split(" ").map((o) => o[0]).join("").toUpperCase().slice(0, 2);
1186
1187
  }
1187
- function An({
1188
+ function ko({
1188
1189
  quote: t,
1189
1190
  name: o,
1190
1191
  role: a,
1191
- company: s,
1192
- avatarSrc: r,
1193
- accentColor: f = "blue"
1192
+ company: r,
1193
+ avatarSrc: s,
1194
+ accentColor: h = "blue"
1194
1195
  }) {
1195
- const y = `var(--mantine-color-${f}-filled)`;
1196
- return /* @__PURE__ */ m(U, { className: Ie.root, p: "lg", radius: "md", style: { borderLeftColor: y }, children: [
1197
- /* @__PURE__ */ e(Ve, { size: 32, className: Ie.quoteIcon, color: y }),
1198
- /* @__PURE__ */ e(N, { fs: "italic", mt: "xs", mb: "md", children: t }),
1199
- /* @__PURE__ */ m(F, { gap: "sm", children: [
1200
- /* @__PURE__ */ e(je, { src: r, alt: o, color: f, radius: "xl", size: "md", children: bn(o) }),
1201
- /* @__PURE__ */ m(ce, { gap: 0, children: [
1202
- /* @__PURE__ */ e(N, { fw: 600, size: "sm", children: o }),
1203
- (a || s) && /* @__PURE__ */ e(N, { size: "xs", c: "dimmed", children: [a, s].filter(Boolean).join(", ") })
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
- Cn as AnimatedCounter,
1210
- fe as AnimatedWaveform,
1211
- kn as AudioPlayer,
1212
- le as AudioWaveform,
1213
- Ln as CodeBlock,
1214
- Bn as ColorPalette,
1215
- Sn as ColorSwatch,
1216
- de as Copyable,
1217
- Tn as DosDonts,
1218
- Pn as ExpandableCard,
1219
- Wn as FadeInSection,
1220
- En as FrequencyWave,
1221
- Dn as GradientSwatch,
1222
- Fn as Hero,
1223
- we as HintBadge,
1224
- Zt as MiniAudioPlayer,
1225
- jn as PrincipleCard,
1226
- Gn as SpeedDial,
1227
- Rn as SplitSection,
1228
- An as TestimonialCard,
1229
- Tt as VideoBackground
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
  };