rl-react-components 0.0.0-stage → 2.5.0

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 (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +92 -2
  3. package/dist/components/Button/Button.d.ts +8 -0
  4. package/dist/components/Button/index.d.ts +2 -0
  5. package/dist/components/Card/Card.d.ts +28 -0
  6. package/dist/components/Card/index.d.ts +2 -0
  7. package/dist/components/Container/Container.d.ts +12 -0
  8. package/dist/components/Container/index.d.ts +2 -0
  9. package/dist/components/Icon/Icon.d.ts +36 -0
  10. package/dist/components/Icon/index.d.ts +2 -0
  11. package/dist/components/Markdown/Markdown.d.ts +11 -0
  12. package/dist/components/Markdown/index.d.ts +2 -0
  13. package/dist/components/MarkdownEditor/MarkdownEditor.d.ts +24 -0
  14. package/dist/components/MarkdownEditor/index.d.ts +2 -0
  15. package/dist/components/MatrixContainer/MatrixContainer.d.ts +54 -0
  16. package/dist/components/MatrixContainer/index.d.ts +4 -0
  17. package/dist/components/MatrixContainer/matrixConfig.d.ts +49 -0
  18. package/dist/components/OrbitalDots/OrbitalDots.d.ts +52 -0
  19. package/dist/components/OrbitalDots/index.d.ts +4 -0
  20. package/dist/components/OrbitalDots/orbitalDotsConfig.d.ts +54 -0
  21. package/dist/components/PageHero/PageHero.d.ts +10 -0
  22. package/dist/components/PageHero/index.d.ts +2 -0
  23. package/dist/components/PageTransition/PageTransition.d.ts +17 -0
  24. package/dist/components/PageTransition/index.d.ts +2 -0
  25. package/dist/components/Section/Section.d.ts +13 -0
  26. package/dist/components/Section/index.d.ts +2 -0
  27. package/dist/components/Select/Select.d.ts +11 -0
  28. package/dist/components/Select/index.d.ts +2 -0
  29. package/dist/components/ShimmerImage/ShimmerImage.d.ts +11 -0
  30. package/dist/components/ShimmerImage/index.d.ts +2 -0
  31. package/dist/components/SideNav/SideNav.d.ts +43 -0
  32. package/dist/components/SideNav/index.d.ts +2 -0
  33. package/dist/components/Tag/Tag.d.ts +24 -0
  34. package/dist/components/Tag/index.d.ts +2 -0
  35. package/dist/components/TagFilter/TagFilter.d.ts +10 -0
  36. package/dist/components/TagFilter/index.d.ts +2 -0
  37. package/dist/components/Text/Text.d.ts +37 -0
  38. package/dist/components/Text/index.d.ts +2 -0
  39. package/dist/components/TextArea/TextArea.d.ts +5 -0
  40. package/dist/components/TextArea/index.d.ts +2 -0
  41. package/dist/components/TextInput/TextInput.d.ts +7 -0
  42. package/dist/components/TextInput/index.d.ts +2 -0
  43. package/dist/components/Toast/ToastProvider.d.ts +13 -0
  44. package/dist/components/Toast/index.d.ts +2 -0
  45. package/dist/hooks/useDragReorder.d.ts +20 -0
  46. package/dist/hooks/useRotatingMessage.d.ts +10 -0
  47. package/dist/index.d.ts +42 -0
  48. package/dist/index.js +1208 -0
  49. package/dist/styles.css +2 -0
  50. package/package.json +99 -4
package/dist/index.js ADDED
@@ -0,0 +1,1208 @@
1
+ "use client";
2
+ import e, { createContext as t, useCallback as n, useContext as r, useEffect as i, useId as a, useMemo as o, useRef as s, useState as c } from "react";
3
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
4
+ import f from "react-markdown";
5
+ import p from "remark-gfm";
6
+ var m = {
7
+ button: "_button_oxaxw_1",
8
+ content: "_content_oxaxw_37",
9
+ primary: "_primary_oxaxw_45",
10
+ secondary: "_secondary_oxaxw_56",
11
+ ghost: "_ghost_oxaxw_66",
12
+ danger: "_danger_oxaxw_76",
13
+ small: "_small_oxaxw_86",
14
+ large: "_large_oxaxw_91",
15
+ fullWidth: "_fullWidth_oxaxw_96"
16
+ };
17
+ // src/components/Button/Button.tsx
18
+ function h({ variant: e = "primary", size: t = "medium", fullWidth: n = !1, children: r, className: i, ...a }) {
19
+ let o = [
20
+ m.button,
21
+ m[e],
22
+ t !== "medium" && m[t],
23
+ n && m.fullWidth,
24
+ i
25
+ ].filter(Boolean).join(" ");
26
+ return /* @__PURE__ */ u("button", {
27
+ className: o,
28
+ ...a,
29
+ children: /* @__PURE__ */ u("span", {
30
+ className: m.content,
31
+ children: r
32
+ })
33
+ });
34
+ }
35
+ var g = {
36
+ card: "_card_vtakk_1",
37
+ link: "_link_vtakk_21",
38
+ arrow: "_arrow_vtakk_41",
39
+ icon: "_icon_vtakk_45",
40
+ description: "_description_vtakk_53",
41
+ top: "_top_vtakk_57",
42
+ eyebrow: "_eyebrow_vtakk_78",
43
+ title: "_title_vtakk_86"
44
+ };
45
+ // src/components/Card/Card.tsx
46
+ function _(e) {
47
+ let t = e.currentTarget, n = t.getBoundingClientRect();
48
+ t.style.setProperty("--spot-x", `${e.clientX - n.left}px`), t.style.setProperty("--spot-y", `${e.clientY - n.top}px`);
49
+ }
50
+ function v({ title: e, description: t, icon: n, eyebrow: r, href: i, target: o, rel: s, headingLevel: c, as: l, children: f, className: p, style: m, id: h }) {
51
+ let v = a(), y = a(), b = i !== void 0, x = l ?? (b ? "a" : "div"), S = c ? `h${c}` : "span", C = [
52
+ g.card,
53
+ b && g.link,
54
+ p
55
+ ].filter(Boolean).join(" ");
56
+ return /* @__PURE__ */ d(x, {
57
+ className: C,
58
+ style: m,
59
+ id: h,
60
+ ...b ? {
61
+ href: i,
62
+ target: o,
63
+ rel: s,
64
+ onPointerMove: _,
65
+ "aria-labelledby": v,
66
+ "aria-describedby": t ? y : void 0
67
+ } : {},
68
+ children: [
69
+ (n || r) && /* @__PURE__ */ d("span", {
70
+ className: g.top,
71
+ children: [n && /* @__PURE__ */ u("span", {
72
+ className: g.icon,
73
+ "aria-hidden": "true",
74
+ children: n
75
+ }), r && /* @__PURE__ */ u("span", {
76
+ className: g.eyebrow,
77
+ children: r
78
+ })]
79
+ }),
80
+ /* @__PURE__ */ u(S, {
81
+ id: v,
82
+ className: g.title,
83
+ children: e
84
+ }),
85
+ t && /* @__PURE__ */ u("span", {
86
+ id: y,
87
+ className: g.description,
88
+ children: t
89
+ }),
90
+ f,
91
+ b && /* @__PURE__ */ u("svg", {
92
+ className: g.arrow,
93
+ width: 16,
94
+ height: 16,
95
+ viewBox: "0 0 24 24",
96
+ fill: "none",
97
+ stroke: "currentColor",
98
+ strokeWidth: 1.7,
99
+ strokeLinecap: "round",
100
+ strokeLinejoin: "round",
101
+ "aria-hidden": "true",
102
+ focusable: "false",
103
+ children: /* @__PURE__ */ u("path", { d: "M5 12h14M13 6l6 6-6 6" })
104
+ })
105
+ ]
106
+ });
107
+ }
108
+ var y = {
109
+ container: "_container_12hys_1",
110
+ sm: "_sm_12hys_8",
111
+ md: "_md_12hys_12",
112
+ lg: "_lg_12hys_16",
113
+ xl: "_xl_12hys_20",
114
+ xxl: "_xxl_12hys_24"
115
+ };
116
+ // src/components/Container/Container.tsx
117
+ function b({ children: e, size: t = "xl", className: n, as: r = "div" }) {
118
+ let i = [
119
+ y.container,
120
+ y[t],
121
+ n
122
+ ].filter(Boolean).join(" ");
123
+ return /* @__PURE__ */ u(r, {
124
+ className: i,
125
+ children: e
126
+ });
127
+ }
128
+ var x = { icon: "_icon_veg5e_1" }, S = {
129
+ sun: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("circle", {
130
+ cx: "12",
131
+ cy: "12",
132
+ r: "4"
133
+ }), /* @__PURE__ */ u("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41" })] }),
134
+ moon: /* @__PURE__ */ u("path", { d: "M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5Z" }),
135
+ copy: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("rect", {
136
+ x: "9",
137
+ y: "9",
138
+ width: "12",
139
+ height: "12",
140
+ rx: "2"
141
+ }), /* @__PURE__ */ u("path", { d: "M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1" })] }),
142
+ check: /* @__PURE__ */ u("path", { d: "m5 12.5 4.5 4.5L19 7.5" }),
143
+ arrowRight: /* @__PURE__ */ u("path", { d: "M5 12h14M13 6l6 6-6 6" }),
144
+ arrowUpRight: /* @__PURE__ */ u("path", { d: "M7 17 17 7M8 7h9v9" }),
145
+ code: /* @__PURE__ */ u("path", { d: "m8 7-5 5 5 5M16 7l5 5-5 5M14 4l-4 16" }),
146
+ book: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("path", { d: "M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5Z" }), /* @__PURE__ */ u("path", { d: "M4 20.5A2.5 2.5 0 0 0 6.5 23H20v-5" })] }),
147
+ layout: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("rect", {
148
+ x: "3",
149
+ y: "3",
150
+ width: "18",
151
+ height: "18",
152
+ rx: "2"
153
+ }), /* @__PURE__ */ u("path", { d: "M3 9h18M9 9v12" })] }),
154
+ compass: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("circle", {
155
+ cx: "12",
156
+ cy: "12",
157
+ r: "9"
158
+ }), /* @__PURE__ */ u("path", { d: "m15.5 8.5-2 5-5 2 2-5Z" })] }),
159
+ input: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("rect", {
160
+ x: "3",
161
+ y: "6",
162
+ width: "18",
163
+ height: "12",
164
+ rx: "2"
165
+ }), /* @__PURE__ */ u("path", { d: "M7 10v4" })] }),
166
+ tag: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("path", { d: "M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9Z" }), /* @__PURE__ */ u("circle", {
167
+ cx: "8",
168
+ cy: "8",
169
+ r: "1.5"
170
+ })] }),
171
+ document: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("path", { d: "M6 2h9l5 5v15H6Z" }), /* @__PURE__ */ u("path", { d: "M14 2v6h6M9 13h7M9 17h5" })] }),
172
+ bell: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("path", { d: "M6 16V11a6 6 0 0 1 12 0v5l2 2H4Z" }), /* @__PURE__ */ u("path", { d: "M10 21h4" })] }),
173
+ sparkle: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("path", { d: "M12 3c.6 4.5 2.5 6.4 7 7-4.5.6-6.4 2.5-7 7-.6-4.5-2.5-6.4-7-7 4.5-.6 6.4-2.5 7-7Z" }), /* @__PURE__ */ u("path", { d: "M19 16c.2 1.6.9 2.3 2.5 2.5-1.6.2-2.3.9-2.5 2.5-.2-1.6-.9-2.3-2.5-2.5 1.6-.2 2.3-.9 2.5-2.5Z" })] }),
174
+ braces: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("path", { d: "M8 3H7a2 2 0 0 0-2 2v4a3 3 0 0 1-2 3 3 3 0 0 1 2 3v4a2 2 0 0 0 2 2h1" }), /* @__PURE__ */ u("path", { d: "M16 3h1a2 2 0 0 1 2 2v4a3 3 0 0 0 2 3 3 3 0 0 0-2 3v4a2 2 0 0 1-2 2h-1" })] }),
175
+ type: /* @__PURE__ */ u("path", { d: "M5 7V4h14v3M12 4v16M9 20h6" })
176
+ }, C = Object.keys(S);
177
+ function ee({ name: e, size: t = 18, className: n }) {
178
+ let r = [x.icon, n].filter(Boolean).join(" ");
179
+ return /* @__PURE__ */ u("svg", {
180
+ className: r,
181
+ width: t,
182
+ height: t,
183
+ viewBox: "0 0 24 24",
184
+ fill: "none",
185
+ stroke: "currentColor",
186
+ strokeWidth: 1.7,
187
+ strokeLinecap: "round",
188
+ strokeLinejoin: "round",
189
+ "aria-hidden": "true",
190
+ focusable: "false",
191
+ children: S[e]
192
+ });
193
+ }
194
+ // src/components/Markdown/Markdown.tsx
195
+ function te({ node: e, ...t }) {
196
+ return /* @__PURE__ */ u("a", {
197
+ ...t,
198
+ target: "_blank",
199
+ rel: "noopener noreferrer"
200
+ });
201
+ }
202
+ var ne = { a: te }, re = [p];
203
+ function w({ children: e, className: t }) {
204
+ return /* @__PURE__ */ u("div", {
205
+ className: t,
206
+ children: /* @__PURE__ */ u(f, {
207
+ remarkPlugins: re,
208
+ components: ne,
209
+ children: e
210
+ })
211
+ });
212
+ }
213
+ var T = {
214
+ editor: "_editor_spixg_1",
215
+ label: "_label_spixg_7",
216
+ toolbar: "_toolbar_spixg_15",
217
+ toolBtn: "_toolBtn_spixg_28",
218
+ separator: "_separator_spixg_50",
219
+ content: "_content_spixg_56",
220
+ textarea: "_textarea_spixg_69",
221
+ visuallyHidden: "_visuallyHidden_spixg_92",
222
+ previewSection: "_previewSection_spixg_104",
223
+ previewHeader: "_previewHeader_spixg_111",
224
+ previewDot: "_previewDot_spixg_125",
225
+ preview: "_preview_spixg_104"
226
+ }, E = 200, D = " ", O = [
227
+ [
228
+ {
229
+ action: "bold",
230
+ icon: "B",
231
+ prefix: "**",
232
+ suffix: "**"
233
+ },
234
+ {
235
+ action: "italic",
236
+ icon: "I",
237
+ prefix: "_",
238
+ suffix: "_"
239
+ },
240
+ {
241
+ action: "strikethrough",
242
+ icon: "S",
243
+ prefix: "~~",
244
+ suffix: "~~"
245
+ }
246
+ ],
247
+ [
248
+ {
249
+ action: "heading1",
250
+ icon: "H1",
251
+ prefix: "# ",
252
+ suffix: "",
253
+ block: !0
254
+ },
255
+ {
256
+ action: "heading2",
257
+ icon: "H2",
258
+ prefix: "## ",
259
+ suffix: "",
260
+ block: !0
261
+ },
262
+ {
263
+ action: "heading3",
264
+ icon: "H3",
265
+ prefix: "### ",
266
+ suffix: "",
267
+ block: !0
268
+ }
269
+ ],
270
+ [
271
+ {
272
+ action: "link",
273
+ icon: "🔗",
274
+ prefix: "[",
275
+ suffix: "](url)"
276
+ },
277
+ {
278
+ action: "image",
279
+ icon: "🖼",
280
+ prefix: "![alt](",
281
+ suffix: ")"
282
+ },
283
+ {
284
+ action: "code",
285
+ icon: "</>",
286
+ prefix: "`",
287
+ suffix: "`"
288
+ },
289
+ {
290
+ action: "bulletList",
291
+ icon: "•",
292
+ prefix: "- ",
293
+ suffix: "",
294
+ block: !0
295
+ },
296
+ {
297
+ action: "numberedList",
298
+ icon: "1.",
299
+ prefix: "1. ",
300
+ suffix: "",
301
+ block: !0
302
+ },
303
+ {
304
+ action: "quote",
305
+ icon: "\"",
306
+ prefix: "> ",
307
+ suffix: "",
308
+ block: !0
309
+ },
310
+ {
311
+ action: "codeBlock",
312
+ icon: "{ }",
313
+ prefix: "```\n",
314
+ suffix: "\n```",
315
+ block: !0
316
+ },
317
+ {
318
+ action: "horizontalRule",
319
+ icon: "―",
320
+ prefix: "\n---\n",
321
+ suffix: "",
322
+ block: !0
323
+ }
324
+ ]
325
+ ];
326
+ function k({ value: t, onChange: r, labels: o, label: c, placeholder: l }) {
327
+ let f = s(null), p = s(!1), m = a(), h = a();
328
+ i(() => {
329
+ let e = f.current;
330
+ e && (e.style.height = "auto", e.style.height = `${Math.max(E, e.scrollHeight)}px`);
331
+ }, [t]);
332
+ let g = n((e) => {
333
+ let t = f.current;
334
+ if (!t) return;
335
+ let [n, i] = e(t.selectionStart, t.selectionEnd);
336
+ r(n), requestAnimationFrame(() => {
337
+ t.focus(), t.setSelectionRange(i, i);
338
+ });
339
+ }, [r]), _ = (e) => g((n, r) => {
340
+ let i = t.substring(n, r);
341
+ if (e.block && !i) {
342
+ let r = t.substring(0, n).lastIndexOf("\n") + 1;
343
+ return [t.substring(0, r) + e.prefix + t.substring(r), r + e.prefix.length];
344
+ }
345
+ let a = i || o.sampleText;
346
+ return [t.substring(0, n) + e.prefix + a + e.suffix + t.substring(r), n + e.prefix.length + a.length];
347
+ });
348
+ return /* @__PURE__ */ d("div", {
349
+ className: T.editor,
350
+ children: [
351
+ /* @__PURE__ */ u("label", {
352
+ className: T.label,
353
+ htmlFor: m,
354
+ children: c
355
+ }),
356
+ /* @__PURE__ */ u("div", {
357
+ className: T.toolbar,
358
+ children: O.map((t, n) => /* @__PURE__ */ d(e.Fragment, { children: [n > 0 && /* @__PURE__ */ u("div", { className: T.separator }), t.map((e) => /* @__PURE__ */ u("button", {
359
+ className: T.toolBtn,
360
+ onClick: () => _(e),
361
+ title: o.actions[e.action],
362
+ "aria-label": o.actions[e.action],
363
+ type: "button",
364
+ children: e.icon
365
+ }, e.action))] }, n))
366
+ }),
367
+ /* @__PURE__ */ d("div", {
368
+ className: T.content,
369
+ children: [/* @__PURE__ */ u("textarea", {
370
+ id: m,
371
+ ref: f,
372
+ className: T.textarea,
373
+ value: t,
374
+ onChange: (e) => r(e.target.value),
375
+ onKeyDown: (e) => {
376
+ let n = p.current;
377
+ p.current = e.key === "Escape", !(e.key !== "Tab" || e.shiftKey || n) && (e.preventDefault(), g((e, n) => [t.substring(0, e) + D + t.substring(n), e + 2]));
378
+ },
379
+ onBlur: () => {
380
+ p.current = !1;
381
+ },
382
+ placeholder: l,
383
+ "aria-describedby": o.tabHint ? h : void 0
384
+ }), o.tabHint && /* @__PURE__ */ u("span", {
385
+ id: h,
386
+ className: T.visuallyHidden,
387
+ children: o.tabHint
388
+ })]
389
+ }),
390
+ t.trim() && /* @__PURE__ */ d("div", {
391
+ className: T.previewSection,
392
+ children: [/* @__PURE__ */ d("div", {
393
+ className: T.previewHeader,
394
+ children: [/* @__PURE__ */ u("span", { className: T.previewDot }), o.preview]
395
+ }), /* @__PURE__ */ u(w, {
396
+ className: T.preview,
397
+ children: t
398
+ })]
399
+ })
400
+ ]
401
+ });
402
+ }
403
+ // src/components/MatrixContainer/matrixConfig.ts
404
+ var A = {
405
+ fontSize: 20,
406
+ columnDensity: .5,
407
+ trailLength: 10,
408
+ tickMs: 50,
409
+ color: "0, 255, 0",
410
+ headOpacity: 1,
411
+ trailOpacityMax: .8,
412
+ chars: Array.from("アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン0123456789")
413
+ }, ie = {
414
+ drizzle: {
415
+ columnDensity: .15,
416
+ tickMs: 250,
417
+ trailLength: 6,
418
+ headOpacity: .35,
419
+ trailOpacityMax: .1
420
+ },
421
+ downpour: {
422
+ columnDensity: 1,
423
+ tickMs: 60,
424
+ trailLength: 10,
425
+ headOpacity: .2,
426
+ trailOpacityMax: .1
427
+ },
428
+ storm: {
429
+ columnDensity: .45,
430
+ tickMs: 100,
431
+ trailLength: 16,
432
+ headOpacity: .9,
433
+ trailOpacityMax: .8
434
+ }
435
+ }, ae = {
436
+ dark: {
437
+ fontSize: 14,
438
+ columnDensity: 1,
439
+ tickMs: 60,
440
+ color: "210,255,120",
441
+ headOpacity: .2,
442
+ trailOpacityMax: .1
443
+ },
444
+ light: {
445
+ fontSize: 14,
446
+ columnDensity: 1,
447
+ tickMs: 60,
448
+ color: "56,142,0",
449
+ headOpacity: .42,
450
+ trailOpacityMax: .24
451
+ }
452
+ }, j = {
453
+ wrapper: "_wrapper_c93oc_1",
454
+ canvas: "_canvas_c93oc_6",
455
+ content: "_content_c93oc_16"
456
+ }, M = e.forwardRef(({ children: e, config: t, canvasOpacity: n = 1, paused: r = !1, className: a, style: o, id: c, as: l = "div" }, f) => {
457
+ let p = s(null), m = s(r), h = s({
458
+ ...A,
459
+ ...t
460
+ }), g = s(null);
461
+ i(() => {
462
+ let e = p.current;
463
+ if (!e) return;
464
+ let t = e.getContext("2d");
465
+ if (!t) return;
466
+ let n = h.current, r = typeof window.matchMedia == "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null, i = () => m.current || !!r?.matches, a = [], o = null, s = 0, c = () => Math.floor(e.width / n.fontSize), l = () => Math.floor(e.height / n.fontSize), u = (e, t) => {
467
+ a = Array.from({ length: e }, () => Math.random() < n.columnDensity ? t ? Math.floor(Math.random() * l()) : -Math.floor(Math.random() * l()) : -(n.trailLength + Math.floor(Math.random() * l() * 2)));
468
+ }, d = () => {
469
+ let r = n.fontSize, i = c(), o = e.height;
470
+ t.clearRect(0, 0, e.width, o), t.font = `${r}px monospace`;
471
+ for (let e = 0; e < i; e++) {
472
+ let i = a[e];
473
+ for (let a = 0; a < n.trailLength; a++) {
474
+ let s = i - a;
475
+ if (s < 0 || s * r > o) continue;
476
+ let c = a === 0, l = 1 - a / n.trailLength, u = c ? n.headOpacity : l * n.trailOpacityMax, d = n.chars[Math.floor(Math.random() * n.chars.length)];
477
+ t.fillStyle = `rgba(${n.color},${u.toFixed(3)})`, t.fillText(d, e * r, s * r);
478
+ }
479
+ if (a[e]++, (i - n.trailLength) * r > o) {
480
+ let t = Math.random() < n.columnDensity;
481
+ a[e] = t ? -Math.floor(Math.random() * n.trailLength) : -(n.trailLength + Math.floor(Math.random() * l()));
482
+ }
483
+ }
484
+ }, f = (t = !1) => {
485
+ e.width = e.offsetWidth, e.height = e.offsetHeight, u(c(), t || i()), i() && d();
486
+ }, _ = (e) => {
487
+ o = requestAnimationFrame(_), !(e - s < n.tickMs) && (s = e, d());
488
+ }, v = () => {
489
+ i() ? (o !== null && cancelAnimationFrame(o), o = null) : o === null && (o = requestAnimationFrame(_));
490
+ };
491
+ f(), v(), g.current = {
492
+ regrid: f,
493
+ redraw: () => {
494
+ i() && d();
495
+ },
496
+ syncMotion: v
497
+ };
498
+ let y = new ResizeObserver(() => f());
499
+ return y.observe(e), r?.addEventListener("change", v), () => {
500
+ o !== null && cancelAnimationFrame(o), y.disconnect(), r?.removeEventListener("change", v), g.current = null;
501
+ };
502
+ }, []), i(() => {
503
+ let e = {
504
+ ...A,
505
+ ...t
506
+ }, n = e.fontSize !== h.current.fontSize || e.columnDensity !== h.current.columnDensity;
507
+ Object.assign(h.current, e), n ? g.current?.regrid(!0) : g.current?.redraw();
508
+ }, [t]), i(() => {
509
+ m.current = r, g.current?.syncMotion();
510
+ }, [r]);
511
+ let _ = [j.wrapper, a].filter(Boolean).join(" ");
512
+ return /* @__PURE__ */ d(l, {
513
+ ref: f,
514
+ className: _,
515
+ style: o,
516
+ id: c,
517
+ children: [/* @__PURE__ */ u("canvas", {
518
+ ref: p,
519
+ className: j.canvas,
520
+ "aria-hidden": "true",
521
+ style: n === 1 ? void 0 : { opacity: n }
522
+ }), /* @__PURE__ */ u("div", {
523
+ className: j.content,
524
+ children: e
525
+ })]
526
+ });
527
+ });
528
+ M.displayName = "MatrixContainer";
529
+ // src/components/OrbitalDots/orbitalDotsConfig.ts
530
+ var N = {
531
+ dotCount: 38,
532
+ maxLineDistance: 110,
533
+ dotMinRadius: 1.5,
534
+ dotMaxRadius: 4.5,
535
+ speed: .38,
536
+ lineOpacity: .28,
537
+ dotOpacityMin: .45,
538
+ glowBlur: 10,
539
+ showOrbitRing: !0,
540
+ orbitRingRadius: .27,
541
+ showSymbols: !0,
542
+ symbols: [
543
+ "{ }",
544
+ "[ ]",
545
+ "</ >",
546
+ "( )"
547
+ ],
548
+ symbolFontScale: .035,
549
+ tickMs: 30,
550
+ color: "180,220,50"
551
+ }, P = {
552
+ wrapper: "_wrapper_c93oc_1",
553
+ canvas: "_canvas_c93oc_6",
554
+ content: "_content_c93oc_16"
555
+ }, F = e.forwardRef(({ children: e, config: t, canvasOpacity: n = 1, paused: r = !1, className: a, style: o, id: c, as: l = "div" }, f) => {
556
+ let p = s(null), m = s(r), h = s(null), g = s({
557
+ ...N,
558
+ ...t
559
+ });
560
+ i(() => {
561
+ let e = p.current;
562
+ if (!e) return;
563
+ let t = e.getContext("2d");
564
+ if (!t) return;
565
+ let n = g.current, [r, i, a] = n.color.split(",").map(Number), o = typeof window.matchMedia == "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null, s = () => m.current || !!o?.matches, c = [], l = [], u = null, d = 0, f = () => {
566
+ let t = e.width, r = e.height;
567
+ c = Array.from({ length: n.dotCount }, () => ({
568
+ x: Math.random() * t,
569
+ y: Math.random() * r,
570
+ vx: (Math.random() - .5) * 2 * n.speed,
571
+ vy: (Math.random() - .5) * 2 * n.speed,
572
+ radius: n.dotMinRadius + Math.random() * (n.dotMaxRadius - n.dotMinRadius),
573
+ opacity: n.dotOpacityMin + Math.random() * (1 - n.dotOpacityMin)
574
+ }));
575
+ }, _ = () => {
576
+ if (!n.showSymbols) {
577
+ l = [];
578
+ return;
579
+ }
580
+ let e = [
581
+ {
582
+ nx: .14,
583
+ ny: .78
584
+ },
585
+ {
586
+ nx: .63,
587
+ ny: .85
588
+ },
589
+ {
590
+ nx: .75,
591
+ ny: .43
592
+ },
593
+ {
594
+ nx: .7,
595
+ ny: .16
596
+ }
597
+ ];
598
+ l = n.symbols.map((t, n) => {
599
+ let r = e[n % e.length], i = .2 + Math.random() * .35;
600
+ return {
601
+ text: t,
602
+ nx: r.nx,
603
+ ny: r.ny,
604
+ opacity: i,
605
+ targetOpacity: .2 + Math.random() * .35,
606
+ fadeSpeed: .003 + Math.random() * .004
607
+ };
608
+ });
609
+ }, v = () => {
610
+ let o = e.width, s = e.height;
611
+ t.clearRect(0, 0, o, s);
612
+ for (let e of c) e.x += e.vx, e.y += e.vy, (e.x < e.radius || e.x > o - e.radius) && (e.vx *= -1), (e.y < e.radius || e.y > s - e.radius) && (e.vy *= -1), e.x = Math.max(e.radius, Math.min(o - e.radius, e.x)), e.y = Math.max(e.radius, Math.min(s - e.radius, e.y));
613
+ t.lineWidth = .6;
614
+ for (let e = 0; e < c.length; e++) for (let o = e + 1; o < c.length; o++) {
615
+ let s = c[e].x - c[o].x, l = c[e].y - c[o].y, u = Math.sqrt(s * s + l * l);
616
+ if (u < n.maxLineDistance) {
617
+ let s = (1 - u / n.maxLineDistance) * n.lineOpacity;
618
+ t.strokeStyle = `rgba(${r},${i},${a},${s.toFixed(3)})`, t.beginPath(), t.moveTo(c[e].x, c[e].y), t.lineTo(c[o].x, c[o].y), t.stroke();
619
+ }
620
+ }
621
+ if (n.showOrbitRing) {
622
+ let e = o / 2, c = s / 2, l = Math.min(o, s) * n.orbitRingRadius;
623
+ t.save(), t.setLineDash([3, 9]), t.lineWidth = .8, t.strokeStyle = `rgba(${r},${i},${a},0.10)`, t.beginPath(), t.arc(e, c, l, 0, Math.PI * 2), t.stroke(), t.setLineDash([]), t.restore();
624
+ }
625
+ t.shadowColor = `rgba(${r},${i},${a},0.55)`, t.shadowBlur = n.glowBlur;
626
+ for (let e of c) t.fillStyle = `rgba(${r},${i},${a},${e.opacity.toFixed(3)})`, t.beginPath(), t.arc(e.x, e.y, e.radius, 0, Math.PI * 2), t.fill();
627
+ if (t.shadowBlur = 0, n.showSymbols && l.length > 0) {
628
+ let e = Math.max(9, Math.round(Math.min(o, s) * n.symbolFontScale));
629
+ t.font = `${e}px monospace`, t.textAlign = "center";
630
+ for (let e of l) {
631
+ let n = e.targetOpacity - e.opacity;
632
+ Math.abs(n) <= e.fadeSpeed ? (e.opacity = e.targetOpacity, e.targetOpacity = .15 + Math.random() * .4) : e.opacity += n > 0 ? e.fadeSpeed : -e.fadeSpeed, t.fillStyle = `rgba(${r},${i},${a},${e.opacity.toFixed(3)})`, t.fillText(e.text, e.nx * o, e.ny * s);
633
+ }
634
+ t.textAlign = "start";
635
+ }
636
+ }, y = () => {
637
+ e.width = e.offsetWidth, e.height = e.offsetHeight, f(), _(), s() && v();
638
+ }, b = (e) => {
639
+ u = requestAnimationFrame(b), !(e - d < n.tickMs) && (d = e, v());
640
+ }, x = () => {
641
+ s() ? (u !== null && cancelAnimationFrame(u), u = null) : u === null && (u = requestAnimationFrame(b));
642
+ };
643
+ y(), x(), h.current = x;
644
+ let S = new ResizeObserver(y);
645
+ return S.observe(e), o?.addEventListener("change", x), () => {
646
+ u !== null && cancelAnimationFrame(u), S.disconnect(), o?.removeEventListener("change", x), h.current = null;
647
+ };
648
+ }, []), i(() => {
649
+ m.current = r, h.current?.();
650
+ }, [r]);
651
+ let _ = [P.wrapper, a].filter(Boolean).join(" ");
652
+ return /* @__PURE__ */ d(l, {
653
+ ref: f,
654
+ className: _,
655
+ style: o,
656
+ id: c,
657
+ children: [/* @__PURE__ */ u("canvas", {
658
+ ref: p,
659
+ className: P.canvas,
660
+ "aria-hidden": "true",
661
+ style: n === 1 ? void 0 : { opacity: n }
662
+ }), /* @__PURE__ */ u("div", {
663
+ className: P.content,
664
+ children: e
665
+ })]
666
+ });
667
+ });
668
+ F.displayName = "OrbitalDots";
669
+ var I = {
670
+ section: "_section_1tryt_1",
671
+ noPadding: "_noPadding_1tryt_11",
672
+ dark: "_dark_1tryt_15",
673
+ elevated: "_elevated_1tryt_19"
674
+ };
675
+ // src/components/Section/Section.tsx
676
+ function L({ children: e, variant: t = "dark", noPadding: n, className: r, id: i, "aria-labelledby": a, "aria-label": o }) {
677
+ let s = [
678
+ I.section,
679
+ I[t],
680
+ n && I.noPadding,
681
+ r
682
+ ].filter(Boolean).join(" ");
683
+ return /* @__PURE__ */ u("section", {
684
+ className: s,
685
+ id: i,
686
+ "aria-labelledby": a,
687
+ "aria-label": o,
688
+ children: e
689
+ });
690
+ }
691
+ var R = {
692
+ hero: "_hero_1b7du_1",
693
+ heroInner: "_heroInner_1b7du_10",
694
+ heroEyebrow: "_heroEyebrow_1b7du_22",
695
+ heroCount: "_heroCount_1b7du_47",
696
+ countNum: "_countNum_1b7du_67",
697
+ countLabel: "_countLabel_1b7du_80",
698
+ heroTitle: "_heroTitle_1b7du_94",
699
+ heroLine: "_heroLine_1b7du_117",
700
+ lineGrow: "_lineGrow_1b7du_1",
701
+ heroSubtitle: "_heroSubtitle_1b7du_137"
702
+ };
703
+ // src/components/PageHero/PageHero.tsx
704
+ function oe({ eyebrow: e, title: t, subtitle: n, count: r, countLabel: i }) {
705
+ return /* @__PURE__ */ u(L, {
706
+ noPadding: !0,
707
+ children: /* @__PURE__ */ u("div", {
708
+ className: R.hero,
709
+ children: /* @__PURE__ */ u(b, { children: /* @__PURE__ */ d("div", {
710
+ className: R.heroInner,
711
+ children: [
712
+ /* @__PURE__ */ d("div", {
713
+ className: R.heroCount,
714
+ children: [/* @__PURE__ */ u("span", {
715
+ className: R.countNum,
716
+ children: r
717
+ }), /* @__PURE__ */ u("span", {
718
+ className: R.countLabel,
719
+ children: i
720
+ })]
721
+ }),
722
+ /* @__PURE__ */ u("span", {
723
+ className: R.heroEyebrow,
724
+ children: e
725
+ }),
726
+ /* @__PURE__ */ u("h1", {
727
+ className: R.heroTitle,
728
+ children: t
729
+ }),
730
+ /* @__PURE__ */ u("p", {
731
+ className: R.heroSubtitle,
732
+ children: n
733
+ }),
734
+ /* @__PURE__ */ u("div", { className: R.heroLine })
735
+ ]
736
+ }) })
737
+ })
738
+ });
739
+ }
740
+ var z = {
741
+ wrapper: "_wrapper_1rdu6_1",
742
+ visible: "_visible_1rdu6_6"
743
+ };
744
+ // src/components/PageTransition/PageTransition.tsx
745
+ function se({ children: e, transitionKey: t, appear: n = !0 }) {
746
+ let [r, a] = c(!n), [o, s] = c(t);
747
+ return t !== o && (s(t), a(!1)), i(() => {
748
+ if (r) return;
749
+ let e, t = requestAnimationFrame(() => {
750
+ e = requestAnimationFrame(() => a(!0));
751
+ });
752
+ return () => {
753
+ cancelAnimationFrame(t), cancelAnimationFrame(e);
754
+ };
755
+ }, [r]), /* @__PURE__ */ u("div", {
756
+ className: `${z.wrapper} ${r ? z.visible : ""}`,
757
+ children: e
758
+ });
759
+ }
760
+ var B = {
761
+ wrapper: "_wrapper_2hx09_1",
762
+ label: "_label_2hx09_7",
763
+ select: "_select_2hx09_15"
764
+ };
765
+ // src/components/Select/Select.tsx
766
+ function V({ label: e, placeholder: t, options: n, className: r, id: i, ...o }) {
767
+ let s = a(), c = i ?? s;
768
+ return /* @__PURE__ */ d("div", {
769
+ className: `${B.wrapper} ${r || ""}`,
770
+ children: [e && /* @__PURE__ */ u("label", {
771
+ className: B.label,
772
+ htmlFor: c,
773
+ children: e
774
+ }), /* @__PURE__ */ d("select", {
775
+ id: c,
776
+ className: B.select,
777
+ ...o,
778
+ children: [/* @__PURE__ */ u("option", {
779
+ value: "",
780
+ children: t
781
+ }), n.map((e) => /* @__PURE__ */ u("option", {
782
+ value: e.value,
783
+ children: e.label
784
+ }, e.value))]
785
+ })]
786
+ });
787
+ }
788
+ var H = {
789
+ frame: "_frame_btbpz_1",
790
+ shimmer: "_shimmer_btbpz_7",
791
+ sweep: "_sweep_btbpz_1",
792
+ reveal: "_reveal_btbpz_21",
793
+ image: "_image_btbpz_29",
794
+ loaded: "_loaded_btbpz_38"
795
+ };
796
+ // src/components/ShimmerImage/ShimmerImage.tsx
797
+ function U({ src: e, alt: t, className: n, ...r }) {
798
+ let [i, a] = c(null), o = i === e, s = (t) => {
799
+ t?.complete && t.naturalWidth > 0 && a(e);
800
+ };
801
+ return /* @__PURE__ */ d("div", {
802
+ className: `${H.frame} ${o ? H.loaded : ""}`,
803
+ children: [/* @__PURE__ */ u("div", { className: H.shimmer }), /* @__PURE__ */ u("div", {
804
+ className: H.reveal,
805
+ children: /* @__PURE__ */ u("img", {
806
+ ...r,
807
+ ref: s,
808
+ src: e,
809
+ alt: t,
810
+ className: [H.image, n].filter(Boolean).join(" "),
811
+ onLoad: () => a(e)
812
+ })
813
+ })]
814
+ });
815
+ }
816
+ var W = {
817
+ sideNav: "_sideNav_1ljaj_1",
818
+ list: "_list_1ljaj_10",
819
+ group: "_group_1ljaj_16",
820
+ groupTitle: "_groupTitle_1ljaj_21",
821
+ link: "_link_1ljaj_33",
822
+ active: "_active_1ljaj_64",
823
+ icon: "_icon_1ljaj_76",
824
+ label: "_label_1ljaj_81"
825
+ }, G = 24;
826
+ function ce(e) {
827
+ return "items" in e;
828
+ }
829
+ function le(e) {
830
+ let { body: t, documentElement: n } = e.ownerDocument;
831
+ for (let r = e.parentElement; r; r = r.parentElement) {
832
+ if (r === t || r === n) return null;
833
+ let { overflowY: e } = getComputedStyle(r);
834
+ if ((e === "auto" || e === "scroll" || e === "overlay") && r.scrollHeight > r.clientHeight) return r;
835
+ }
836
+ return null;
837
+ }
838
+ function K(e, t) {
839
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect().top + t.clientTop, i = n.top - r + t.scrollTop, a = i + n.height;
840
+ i - G < t.scrollTop ? t.scrollTo({ top: i - G }) : a + G > t.scrollTop + t.clientHeight && t.scrollTo({ top: a + G - t.clientHeight });
841
+ }
842
+ function ue({ label: e, items: t, activeHref: n, ariaCurrent: r = "page", keepActiveInView: o = !1, as: c = "a", onItemClick: l, className: f }) {
843
+ let p = a(), m = s(null);
844
+ i(() => {
845
+ let e = m.current;
846
+ if (!o || !e) return;
847
+ let t = e.querySelector("[aria-current]"), n = le(e);
848
+ t && n && K(t, n);
849
+ }, [n, o]);
850
+ let h = (e) => {
851
+ let t = e.href === n;
852
+ return /* @__PURE__ */ u("li", { children: /* @__PURE__ */ d(c, {
853
+ href: e.href,
854
+ className: [W.link, t && W.active].filter(Boolean).join(" "),
855
+ "aria-current": t ? r : void 0,
856
+ onClick: l ? (t) => l(e, t) : void 0,
857
+ children: [e.icon && /* @__PURE__ */ u("span", {
858
+ className: W.icon,
859
+ "aria-hidden": "true",
860
+ children: e.icon
861
+ }), /* @__PURE__ */ u("span", {
862
+ className: W.label,
863
+ children: e.label
864
+ })]
865
+ }) }, e.href);
866
+ };
867
+ return /* @__PURE__ */ u("nav", {
868
+ ref: m,
869
+ className: [W.sideNav, f].filter(Boolean).join(" "),
870
+ "aria-label": e,
871
+ children: /* @__PURE__ */ u("ul", {
872
+ className: W.list,
873
+ children: t.map((e, t) => {
874
+ if (!ce(e)) return h(e);
875
+ let n = `${p}-group-${t}`;
876
+ return /* @__PURE__ */ d("li", {
877
+ className: W.group,
878
+ children: [/* @__PURE__ */ d("span", {
879
+ id: n,
880
+ className: W.groupTitle,
881
+ children: [e.icon && /* @__PURE__ */ u("span", {
882
+ className: W.icon,
883
+ "aria-hidden": "true",
884
+ children: e.icon
885
+ }), e.title]
886
+ }), /* @__PURE__ */ u("ul", {
887
+ className: W.list,
888
+ "aria-labelledby": n,
889
+ children: e.items.map(h)
890
+ })]
891
+ }, n);
892
+ })
893
+ })
894
+ });
895
+ }
896
+ var q = {
897
+ tag: "_tag_1tw86_1",
898
+ clickable: "_clickable_1tw86_20",
899
+ active: "_active_1tw86_29",
900
+ removable: "_removable_1tw86_40",
901
+ removeBtn: "_removeBtn_1tw86_44"
902
+ };
903
+ // src/components/Tag/Tag.tsx
904
+ function J({ label: e, active: t, onClick: n, onRemove: r, removeLabel: i }) {
905
+ let a = [
906
+ q.tag,
907
+ n && q.clickable,
908
+ t && q.active,
909
+ r && q.removable
910
+ ].filter(Boolean).join(" ");
911
+ return n ? /* @__PURE__ */ u("button", {
912
+ type: "button",
913
+ className: a,
914
+ onClick: n,
915
+ "aria-pressed": !!t,
916
+ children: e
917
+ }) : /* @__PURE__ */ d("span", {
918
+ className: a,
919
+ children: [e, r && /* @__PURE__ */ u("button", {
920
+ type: "button",
921
+ className: q.removeBtn,
922
+ onClick: r,
923
+ "aria-label": i,
924
+ children: "×"
925
+ })]
926
+ });
927
+ }
928
+ var de = { tagFilter: "_tagFilter_1mu0a_1" };
929
+ // src/components/TagFilter/TagFilter.tsx
930
+ function fe({ tags: e, activeTag: t, onTagClick: n, allLabel: r, groupLabel: i }) {
931
+ return /* @__PURE__ */ d("div", {
932
+ className: de.tagFilter,
933
+ role: i ? "group" : void 0,
934
+ "aria-label": i,
935
+ children: [/* @__PURE__ */ u(J, {
936
+ label: r,
937
+ active: t === null,
938
+ onClick: () => n(null)
939
+ }), e.map((e) => /* @__PURE__ */ u(J, {
940
+ label: e,
941
+ active: t === e,
942
+ onClick: () => n(e)
943
+ }, e))]
944
+ });
945
+ }
946
+ var Y = {
947
+ text: "_text_dq0aw_1",
948
+ body: "_body_dq0aw_13",
949
+ display: "_display_dq0aw_17",
950
+ label: "_label_dq0aw_24",
951
+ eyebrow: "_eyebrow_dq0aw_32",
952
+ mono: "_mono_dq0aw_41",
953
+ "size-xs": "_size-xs_dq0aw_45",
954
+ "size-sm": "_size-sm_dq0aw_49",
955
+ "size-base": "_size-base_dq0aw_53",
956
+ "size-md": "_size-md_dq0aw_57",
957
+ "size-lg": "_size-lg_dq0aw_61",
958
+ "size-xl": "_size-xl_dq0aw_65",
959
+ "size-2xl": "_size-2xl_dq0aw_69",
960
+ "size-3xl": "_size-3xl_dq0aw_73",
961
+ "size-4xl": "_size-4xl_dq0aw_77",
962
+ "size-5xl": "_size-5xl_dq0aw_81",
963
+ "weight-regular": "_weight-regular_dq0aw_85",
964
+ "weight-medium": "_weight-medium_dq0aw_89",
965
+ "weight-semibold": "_weight-semibold_dq0aw_93",
966
+ "weight-bold": "_weight-bold_dq0aw_97",
967
+ italic: "_italic_dq0aw_101",
968
+ "tone-default": "_tone-default_dq0aw_105",
969
+ "tone-secondary": "_tone-secondary_dq0aw_109",
970
+ "tone-muted": "_tone-muted_dq0aw_113",
971
+ "tone-accent": "_tone-accent_dq0aw_117",
972
+ "tone-danger": "_tone-danger_dq0aw_121",
973
+ "tone-success": "_tone-success_dq0aw_125",
974
+ "tone-warning": "_tone-warning_dq0aw_129",
975
+ "tone-info": "_tone-info_dq0aw_133",
976
+ "align-start": "_align-start_dq0aw_137",
977
+ "align-center": "_align-center_dq0aw_141",
978
+ "align-end": "_align-end_dq0aw_145",
979
+ truncate: "_truncate_dq0aw_149",
980
+ clamp: "_clamp_dq0aw_156"
981
+ };
982
+ // src/components/Text/Text.tsx
983
+ function pe({ as: e = "p", variant: t = "body", size: n, weight: r, italic: i = !1, tone: a, align: o, truncate: s, className: c, style: l, children: d, ...f }) {
984
+ let p = typeof s == "number" && s >= 1 ? Math.floor(s) : void 0, m = [
985
+ Y.text,
986
+ Y[t],
987
+ n && Y[`size-${n}`],
988
+ r && Y[`weight-${r}`],
989
+ i && Y.italic,
990
+ a && Y[`tone-${a}`],
991
+ o && Y[`align-${o}`],
992
+ s === !0 && Y.truncate,
993
+ p !== void 0 && Y.clamp,
994
+ c
995
+ ].filter(Boolean).join(" "), h = p === void 0 ? l : {
996
+ ...l,
997
+ "--text-lines": p
998
+ };
999
+ return /* @__PURE__ */ u(e, {
1000
+ className: m,
1001
+ style: h,
1002
+ ...f,
1003
+ children: d
1004
+ });
1005
+ }
1006
+ var X = {
1007
+ wrapper: "_wrapper_12bvz_1",
1008
+ label: "_label_12bvz_7",
1009
+ textarea: "_textarea_12bvz_15"
1010
+ };
1011
+ // src/components/TextArea/TextArea.tsx
1012
+ function me({ label: e, className: t, id: n, ...r }) {
1013
+ let i = a(), o = n ?? i;
1014
+ return /* @__PURE__ */ d("div", {
1015
+ className: `${X.wrapper} ${t || ""}`,
1016
+ children: [e && /* @__PURE__ */ u("label", {
1017
+ className: X.label,
1018
+ htmlFor: o,
1019
+ children: e
1020
+ }), /* @__PURE__ */ u("textarea", {
1021
+ id: o,
1022
+ className: X.textarea,
1023
+ ...r
1024
+ })]
1025
+ });
1026
+ }
1027
+ var Z = {
1028
+ wrapper: "_wrapper_3ifhw_1",
1029
+ label: "_label_3ifhw_7",
1030
+ input: "_input_3ifhw_15",
1031
+ error: "_error_3ifhw_37",
1032
+ errorMessage: "_errorMessage_3ifhw_41"
1033
+ };
1034
+ // src/components/TextInput/TextInput.tsx
1035
+ function he({ label: e, error: t, className: n, id: r, "aria-describedby": i, "aria-invalid": o, ...s }) {
1036
+ let c = a(), l = r ?? c, f = `${l}-error`, p = [i, t && f].filter(Boolean).join(" ") || void 0;
1037
+ return /* @__PURE__ */ d("div", {
1038
+ className: `${Z.wrapper} ${t ? Z.error : ""} ${n || ""}`,
1039
+ children: [
1040
+ e && /* @__PURE__ */ u("label", {
1041
+ className: Z.label,
1042
+ htmlFor: l,
1043
+ children: e
1044
+ }),
1045
+ /* @__PURE__ */ u("input", {
1046
+ id: l,
1047
+ className: Z.input,
1048
+ "aria-describedby": p,
1049
+ "aria-invalid": t ? !0 : o,
1050
+ ...s
1051
+ }),
1052
+ t && /* @__PURE__ */ u("span", {
1053
+ id: f,
1054
+ className: Z.errorMessage,
1055
+ children: t
1056
+ })
1057
+ ]
1058
+ });
1059
+ }
1060
+ var Q = {
1061
+ container: "_container_m3x4i_1",
1062
+ toast: "_toast_m3x4i_14",
1063
+ slideIn: "_slideIn_m3x4i_1",
1064
+ exiting: "_exiting_m3x4i_29",
1065
+ slideOut: "_slideOut_m3x4i_1",
1066
+ fadeIn: "_fadeIn_m3x4i_1",
1067
+ fadeOut: "_fadeOut_m3x4i_1",
1068
+ success: "_success_m3x4i_89",
1069
+ error: "_error_m3x4i_94",
1070
+ warning: "_warning_m3x4i_99",
1071
+ info: "_info_m3x4i_104",
1072
+ icon: "_icon_m3x4i_109",
1073
+ message: "_message_m3x4i_128",
1074
+ close: "_close_m3x4i_135",
1075
+ progress: "_progress_m3x4i_153",
1076
+ toastInner: "_toastInner_m3x4i_181",
1077
+ toastBody: "_toastBody_m3x4i_187"
1078
+ }, ge = 220, _e = {
1079
+ success: "✓",
1080
+ error: "✕",
1081
+ warning: "⚠",
1082
+ info: "ℹ"
1083
+ }, $ = t({ addToast: () => {} });
1084
+ function ve() {
1085
+ return r($);
1086
+ }
1087
+ function ye({ dismissLabel: e, children: t }) {
1088
+ let [r, a] = c([]), l = s(0), f = s(/* @__PURE__ */ new Map());
1089
+ i(() => {
1090
+ let e = f.current;
1091
+ return () => e.forEach((e) => clearTimeout(e));
1092
+ }, []);
1093
+ let p = n((e) => {
1094
+ clearTimeout(f.current.get(e)), f.current.delete(e), a((t) => t.map((t) => t.id === e ? {
1095
+ ...t,
1096
+ isExiting: !0
1097
+ } : t)), setTimeout(() => {
1098
+ a((t) => t.filter((t) => t.id !== e));
1099
+ }, ge);
1100
+ }, []), m = n((e, t = "success", n = 4e3) => {
1101
+ let r = String(l.current++);
1102
+ a((i) => [...i, {
1103
+ id: r,
1104
+ message: e,
1105
+ variant: t,
1106
+ duration: n,
1107
+ isExiting: !1
1108
+ }]), f.current.set(r, setTimeout(() => p(r), n));
1109
+ }, [p]), h = o(() => ({ addToast: m }), [m]);
1110
+ return /* @__PURE__ */ d($.Provider, {
1111
+ value: h,
1112
+ children: [t, /* @__PURE__ */ u(be, {
1113
+ toasts: r,
1114
+ onDismiss: p,
1115
+ dismissLabel: e
1116
+ })]
1117
+ });
1118
+ }
1119
+ function be({ toasts: e, onDismiss: t, dismissLabel: n }) {
1120
+ return /* @__PURE__ */ u("div", {
1121
+ className: Q.container,
1122
+ role: "status",
1123
+ "aria-atomic": "false",
1124
+ children: e.map((e) => /* @__PURE__ */ d("div", {
1125
+ className: `${Q.toast} ${Q[e.variant]} ${e.isExiting ? Q.exiting : ""}`,
1126
+ children: [
1127
+ /* @__PURE__ */ u("div", {
1128
+ className: Q.toastInner,
1129
+ children: /* @__PURE__ */ d("div", {
1130
+ className: Q.toastBody,
1131
+ children: [/* @__PURE__ */ u("span", {
1132
+ className: Q.icon,
1133
+ "aria-hidden": "true",
1134
+ children: _e[e.variant]
1135
+ }), /* @__PURE__ */ u("span", {
1136
+ className: Q.message,
1137
+ children: e.message
1138
+ })]
1139
+ })
1140
+ }),
1141
+ /* @__PURE__ */ u("button", {
1142
+ type: "button",
1143
+ className: Q.close,
1144
+ onClick: () => t(e.id),
1145
+ "aria-label": n,
1146
+ children: "×"
1147
+ }),
1148
+ /* @__PURE__ */ u("div", {
1149
+ className: Q.progress,
1150
+ style: { animationDuration: `${e.duration}ms` }
1151
+ })
1152
+ ]
1153
+ }, e.id))
1154
+ });
1155
+ }
1156
+ // src/hooks/useDragReorder.ts
1157
+ function xe(e, t) {
1158
+ let [n, r] = c(null), [i, a] = c(null), o = () => {
1159
+ r(null), a(null);
1160
+ }, s = (n, r) => {
1161
+ let i = (t) => t >= 0 && t < e.length;
1162
+ if (n === r || !i(n) || !i(r)) return;
1163
+ let a = [...e], [o] = a.splice(n, 1);
1164
+ a.splice(r, 0, o), t(a);
1165
+ };
1166
+ return {
1167
+ draggedIndex: n,
1168
+ overIndex: i,
1169
+ getItemProps: (e) => ({
1170
+ draggable: !0,
1171
+ onDragStart: (t) => {
1172
+ t.dataTransfer.effectAllowed = "move", r(e);
1173
+ },
1174
+ onDragOver: (t) => {
1175
+ t.preventDefault(), t.dataTransfer.dropEffect = "move", n !== null && n !== e && a(e);
1176
+ },
1177
+ onDragEnd: o,
1178
+ onDrop: (t) => {
1179
+ t.preventDefault(), n !== null && s(n, e), o();
1180
+ }
1181
+ }),
1182
+ moveItem: s
1183
+ };
1184
+ }
1185
+ // src/hooks/useRotatingMessage.ts
1186
+ var Se = 300;
1187
+ function Ce(e, t = 1e4, n = !1) {
1188
+ let [r, a] = c(0), [o, s] = c(!1);
1189
+ return i(() => {
1190
+ if (e.length <= 1 || n) return;
1191
+ let r, i = setInterval(() => {
1192
+ s(!0), r = setTimeout(() => {
1193
+ r = void 0, a((t) => (t + 1) % e.length), s(!1);
1194
+ }, Se);
1195
+ }, t);
1196
+ return () => {
1197
+ clearInterval(i), r !== void 0 && (clearTimeout(r), s(!1));
1198
+ };
1199
+ }, [
1200
+ e.length,
1201
+ t,
1202
+ n
1203
+ ]), {
1204
+ message: e[r % e.length] ?? "",
1205
+ isFading: o
1206
+ };
1207
+ }
1208
+ export { h as Button, v as Card, b as Container, C as ICON_NAMES, ee as Icon, A as MATRIX_CONFIG, ie as MATRIX_PRESETS, ae as MATRIX_THEME_CONFIG, w as Markdown, k as MarkdownEditor, M as MatrixContainer, N as ORBITAL_DOTS_CONFIG, F as OrbitalDots, oe as PageHero, se as PageTransition, L as Section, V as Select, U as ShimmerImage, ue as SideNav, J as Tag, fe as TagFilter, pe as Text, me as TextArea, he as TextInput, ye as ToastProvider, xe as useDragReorder, Ce as useRotatingMessage, ve as useToast };