@frequencyads/components 0.1.3 → 0.1.5

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