@frequencyads/components 0.1.6 → 0.1.8

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