@exegia/corpora-ui 0.10.0 → 0.12.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 (67) hide show
  1. package/dist-lib/components/agents/__tests__/ai-sidebar.test.d.ts +1 -0
  2. package/dist-lib/components/agents/ai-sidebar.d.ts +2 -0
  3. package/dist-lib/components/agents/index.d.ts +12 -0
  4. package/dist-lib/components/agents/marquee-label.d.ts +4 -0
  5. package/dist-lib/components/agents/sidebar-icon.d.ts +2 -0
  6. package/dist-lib/components/agents/sidebar-row.d.ts +2 -0
  7. package/dist-lib/components/agents/type.d.ts +83 -0
  8. package/dist-lib/components/agents/use-ai-sidebar.d.ts +31 -0
  9. package/dist-lib/components/agents/utils.d.ts +16 -0
  10. package/dist-lib/components/beste/piece/browser-frame.d.ts +2 -0
  11. package/dist-lib/components/beste/piece/type.d.ts +9 -0
  12. package/dist-lib/components/beste/piece/utils.d.ts +3 -0
  13. package/dist-lib/components/blocks/auth/signup-block.d.ts +5 -5
  14. package/dist-lib/components/blocks/nav/sidebar-block.d.ts +3 -56
  15. package/dist-lib/components/blocks/nav/sidebar-nav-row.d.ts +3 -0
  16. package/dist-lib/components/blocks/nav/types.d.ts +60 -0
  17. package/dist-lib/components/blocks/nav/utils.d.ts +1 -0
  18. package/dist-lib/components/blocks/profile/profile-card-block.d.ts +6 -1
  19. package/dist-lib/components/blocks/shell/index.d.ts +1 -0
  20. package/dist-lib/components/blocks/shell/shell-layout.d.ts +3 -0
  21. package/dist-lib/components/blocks/shell/type.d.ts +26 -0
  22. package/dist-lib/components/blocks/shell/utils.d.ts +1 -0
  23. package/dist-lib/components/composed/social-providers.d.ts +9 -1
  24. package/dist-lib/components/docs/demo-controls.d.ts +4 -4
  25. package/dist-lib/components/motion/animated-sidebar.d.ts +12 -1
  26. package/dist-lib/components/motion/popover-morph.d.ts +35 -0
  27. package/dist-lib/components/motion/popover-position.d.ts +15 -0
  28. package/dist-lib/components/ui/badge.d.ts +7 -0
  29. package/dist-lib/components/ui/select.d.ts +30 -0
  30. package/dist-lib/index.d.ts +1 -0
  31. package/dist-lib/index.js +644 -524
  32. package/dist-lib/index.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/components/agents/__tests__/ai-sidebar.test.tsx +93 -0
  35. package/src/components/agents/ai-sidebar.tsx +118 -0
  36. package/src/components/agents/index.ts +14 -0
  37. package/src/components/agents/marquee-label.tsx +59 -0
  38. package/src/components/agents/sidebar-icon.tsx +14 -0
  39. package/src/components/agents/sidebar-row.tsx +309 -0
  40. package/src/components/agents/type.ts +95 -0
  41. package/src/components/agents/use-ai-sidebar.ts +386 -0
  42. package/src/components/agents/utils.ts +142 -0
  43. package/src/components/beste/piece/browser-frame.tsx +55 -0
  44. package/src/components/beste/piece/type.ts +11 -0
  45. package/src/components/beste/piece/utils.ts +21 -0
  46. package/src/components/blocks/auth/linked-accounts-block.tsx +55 -57
  47. package/src/components/blocks/auth/passkey-manager-block.tsx +88 -81
  48. package/src/components/blocks/auth/signup-block.tsx +6 -6
  49. package/src/components/blocks/nav/sidebar-block.tsx +25 -155
  50. package/src/components/blocks/nav/sidebar-nav-row.tsx +79 -0
  51. package/src/components/blocks/nav/types.ts +65 -0
  52. package/src/components/blocks/nav/utils.ts +4 -0
  53. package/src/components/blocks/profile/profile-card-block.tsx +17 -6
  54. package/src/components/blocks/shell/index.ts +1 -0
  55. package/src/components/blocks/shell/shell-layout.tsx +115 -0
  56. package/src/components/blocks/shell/type.ts +50 -0
  57. package/src/components/blocks/shell/utils.ts +2 -0
  58. package/src/components/composed/social-providers.tsx +83 -27
  59. package/src/components/docs/component-preview.tsx +13 -12
  60. package/src/components/docs/demo-controls.tsx +37 -21
  61. package/src/components/motion/animated-sidebar.tsx +392 -364
  62. package/src/components/motion/popover-morph.tsx +292 -0
  63. package/src/components/motion/popover-position.ts +86 -0
  64. package/src/components/ui/badge.tsx +52 -0
  65. package/src/components/ui/select.tsx +257 -0
  66. package/src/index.css +18 -0
  67. package/src/index.ts +1 -0
package/dist-lib/index.js CHANGED
@@ -5,40 +5,40 @@ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  import { mergeProps as o } from "@base-ui/react/merge-props";
6
6
  import { useRender as s } from "@base-ui/react/use-render";
7
7
  import { cva as c } from "class-variance-authority";
8
- import { ArrowLeftIcon as l, CheckIcon as u, ChevronRight as d, ChevronRightIcon as f, ChevronsUpDownIcon as p, EyeIcon as m, EyeOffIcon as h, FingerprintIcon as g, Loader2Icon as _, LogOutIcon as v, MailIcon as y, PanelLeftIcon as b, SettingsIcon as x, SmartphoneIcon as S, UserIcon as C, UserPlusIcon as w, UsersIcon as T, XIcon as E } from "lucide-react";
9
- import * as D from "react";
10
- import { Children as O, cloneElement as k, createContext as A, createElement as j, forwardRef as M, isValidElement as N, useCallback as P, useContext as ee, useEffect as F, useId as te, useMemo as ne, useRef as re, useState as I, useSyncExternalStore as ie } from "react";
11
- import { Checkbox as ae } from "@base-ui/react/checkbox";
12
- import { bind as oe, play as se, play as ce, setEnabled as le, setVolume as ue, sounds as de } from "cuelume";
13
- import { Field as fe, Field as L } from "@base-ui/react/field";
14
- import { Input as pe } from "@base-ui/react/input";
8
+ import { ArrowLeftIcon as l, CheckIcon as u, ChevronRight as d, ChevronRightIcon as f, ChevronsUpDownIcon as p, EyeIcon as m, EyeOffIcon as h, FingerprintIcon as g, KeyRoundIcon as _, Loader2Icon as v, LogOutIcon as y, MailIcon as b, MenuIcon as x, PanelLeftIcon as S, PanelRightIcon as C, SettingsIcon as w, SmartphoneIcon as T, UserIcon as E, UserPlusIcon as D, UsersIcon as O, XIcon as k } from "lucide-react";
9
+ import * as A from "react";
10
+ import { Children as j, cloneElement as ee, createContext as te, createElement as ne, forwardRef as M, isValidElement as re, useCallback as N, useContext as ie, useEffect as P, useId as F, useMemo as ae, useRef as oe, useState as I, useSyncExternalStore as se } from "react";
11
+ import { Checkbox as ce } from "@base-ui/react/checkbox";
12
+ import { bind as le, play as ue, play as de, setEnabled as fe, setVolume as pe, sounds as me } from "cuelume";
13
+ import { Field as he, Field as L } from "@base-ui/react/field";
14
+ import { Input as ge } from "@base-ui/react/input";
15
15
  import { Menu as R } from "@base-ui/react/menu";
16
- import { OTPField as me } from "@base-ui/react/otp-field";
17
- import { Separator as he } from "@base-ui/react/separator";
18
- import { AnimatePresence as z, MotionConfig as ge, motion as B, useReducedMotion as _e } from "motion/react";
19
- import { RiAppleFill as ve, RiGithubFill as ye, RiGoogleFill as be, RiTwitterXFill as xe } from "@remixicon/react";
20
- import { createPortal as Se } from "react-dom";
16
+ import { OTPField as _e } from "@base-ui/react/otp-field";
17
+ import { Separator as ve } from "@base-ui/react/separator";
18
+ import { AnimatePresence as z, MotionConfig as ye, motion as B, useReducedMotion as be } from "motion/react";
19
+ import { RiAppleFill as xe, RiGithubFill as Se, RiGoogleFill as Ce, RiTwitterXFill as we } from "@remixicon/react";
20
+ import { createPortal as Te } from "react-dom";
21
21
  //#region src/lib/utils.ts
22
22
  function V(...e) {
23
23
  return n(t(e));
24
24
  }
25
25
  //#endregion
26
26
  //#region src/components/ui/avatar.tsx
27
- function Ce({ className: t, ...n }) {
27
+ function Ee({ className: t, ...n }) {
28
28
  return /* @__PURE__ */ i(e.Root, {
29
29
  className: V("inline-flex size-8 shrink-0 select-none items-center justify-center overflow-hidden rounded-full bg-background align-middle font-medium text-xs", t),
30
30
  "data-slot": "avatar",
31
31
  ...n
32
32
  });
33
33
  }
34
- function we({ className: t, ...n }) {
34
+ function De({ className: t, ...n }) {
35
35
  return /* @__PURE__ */ i(e.Image, {
36
36
  className: V("size-full object-cover", t),
37
37
  "data-slot": "avatar-image",
38
38
  ...n
39
39
  });
40
40
  }
41
- function Te({ className: t, ...n }) {
41
+ function Oe({ className: t, ...n }) {
42
42
  return /* @__PURE__ */ i(e.Fallback, {
43
43
  className: V("flex size-full items-center justify-center rounded-full bg-muted", t),
44
44
  "data-slot": "avatar-fallback",
@@ -47,8 +47,8 @@ function Te({ className: t, ...n }) {
47
47
  }
48
48
  //#endregion
49
49
  //#region src/components/ui/spinner.tsx
50
- function Ee({ className: e, ...t }) {
51
- return /* @__PURE__ */ i(_, {
50
+ function ke({ className: e, ...t }) {
51
+ return /* @__PURE__ */ i(v, {
52
52
  "aria-label": "Loading",
53
53
  className: V("animate-spin", e),
54
54
  role: "status",
@@ -57,16 +57,16 @@ function Ee({ className: e, ...t }) {
57
57
  }
58
58
  //#endregion
59
59
  //#region src/components/ui/glasscn/liquid-glass.tsx
60
- var De = 480, Oe = 1.25, ke = /* @__PURE__ */ new Map();
61
- function Ae() {
60
+ var Ae = 480, je = 1.25, Me = /* @__PURE__ */ new Map();
61
+ function Ne() {
62
62
  if (typeof navigator > "u") return !1;
63
63
  let e = navigator.userAgent;
64
64
  return (/Chrom(e|ium)/.test(e) || /Edg\//.test(e)) && !/Firefox/.test(e);
65
65
  }
66
- function je({ width: e, height: t, radius: n, bezel: r }) {
67
- let i = `${e}:${t}:${n}:${r}`, a = ke.get(i);
66
+ function Pe({ width: e, height: t, radius: n, bezel: r }) {
67
+ let i = `${e}:${t}:${n}:${r}`, a = Me.get(i);
68
68
  if (a !== void 0) return a;
69
- let o = Math.min(1, De / Math.max(e, t)), s = Math.max(2, Math.round(e * o)), c = Math.max(2, Math.round(t * o)), l = document.createElement("canvas");
69
+ let o = Math.min(1, Ae / Math.max(e, t)), s = Math.max(2, Math.round(e * o)), c = Math.max(2, Math.round(t * o)), l = document.createElement("canvas");
70
70
  l.width = s, l.height = c;
71
71
  let u = l.getContext("2d");
72
72
  if (!u) return "";
@@ -82,23 +82,23 @@ function je({ width: e, height: t, radius: n, bezel: r }) {
82
82
  f[v] = 128, f[v + 1] = 128, f[v + 2] = 128, f[v + 3] = 255;
83
83
  continue;
84
84
  }
85
- let b = 1 - Me(Math.min(1, y / g));
86
- b *= Math.min(1, y / Oe), f[v] = Math.round(128 + d * b * 127), f[v + 1] = Math.round(128 + _ * b * 127), f[v + 2] = 128, f[v + 3] = 255;
85
+ let b = 1 - Fe(Math.min(1, y / g));
86
+ b *= Math.min(1, y / je), f[v] = Math.round(128 + d * b * 127), f[v + 1] = Math.round(128 + _ * b * 127), f[v + 2] = 128, f[v + 3] = 255;
87
87
  }
88
88
  u.putImageData(d, 0, 0);
89
89
  let _ = l.toDataURL("image/png");
90
- return ke.set(i, _), _;
90
+ return Me.set(i, _), _;
91
91
  }
92
- function Me(e) {
92
+ function Fe(e) {
93
93
  return (1 - (1 - e) ** 4) ** .25;
94
94
  }
95
- var Ne = M(function({ blur: e = 2, refraction: t = 15, mapSize: n, bezel: o = .34, saturation: s = 1.28, className: c, style: l, children: u, ...d }, f) {
96
- let p = te(), m = ne(() => `liquid-glass-${p.replace(/:/g, "")}`, [p]);
95
+ var Ie = M(function({ blur: e = 2, refraction: t = 15, mapSize: n, bezel: o = .34, saturation: s = 1.28, className: c, style: l, children: u, ...d }, f) {
96
+ let p = F(), m = ae(() => `liquid-glass-${p.replace(/:/g, "")}`, [p]);
97
97
  console.log(n);
98
- let h = re(null), g = P((e) => {
98
+ let h = oe(null), g = N((e) => {
99
99
  h.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
100
100
  }, [f]), [_, v] = I(null);
101
- F(() => {
101
+ P(() => {
102
102
  let e = h.current;
103
103
  if (!e) return;
104
104
  let t = () => {
@@ -116,9 +116,9 @@ var Ne = M(function({ blur: e = 2, refraction: t = 15, mapSize: n, bezel: o = .3
116
116
  let n = new ResizeObserver(t);
117
117
  return n.observe(e), () => n.disconnect();
118
118
  }, [o]);
119
- let y = ne(() => _ ? je(_) : "", [_]), [b, x] = I(!1);
120
- F(() => {
121
- x(Ae());
119
+ let y = ae(() => _ ? Pe(_) : "", [_]), [b, x] = I(!1);
120
+ P(() => {
121
+ x(Ne());
122
122
  }, []);
123
123
  let S = b && y !== "", C = S ? `url(#${m}) blur(${e}px) saturate(${s})` : `blur(${e + 2}px) saturate(${s})`;
124
124
  return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
@@ -176,7 +176,7 @@ var Ne = M(function({ blur: e = 2, refraction: t = 15, mapSize: n, bezel: o = .3
176
176
  ]
177
177
  })
178
178
  })] });
179
- }), Pe = {
179
+ }), Le = {
180
180
  clear: [
181
181
  "backdrop-blur-[2px] backdrop-saturate-[1.9]",
182
182
  "bg-white/[0.25] dark:bg-black/[0.25]",
@@ -210,7 +210,7 @@ var Ne = M(function({ blur: e = 2, refraction: t = 15, mapSize: n, bezel: o = .3
210
210
  "[will-change:background-position]"
211
211
  ].join(" "),
212
212
  "liquid-refract": ""
213
- }, Fe = c("relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-[scale,box-shadow,width,height,background-color,border-color] [transition-duration:150ms,150ms,300ms,300ms,150ms,150ms] ease-smooth-out active:scale-97 data-pressed:scale-97 motion-reduce:transition-none motion-reduce:active:scale-100 motion-reduce:data-pressed:scale-100 [&_svg]:transition-transform [&_svg]:duration-150 [&_svg]:ease-smooth-out motion-reduce:[&_svg]:transition-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-loading:select-none sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0", {
213
+ }, Re = c("relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-[scale,box-shadow,width,height,background-color,border-color] [transition-duration:150ms,150ms,300ms,300ms,150ms,150ms] ease-smooth-out active:scale-97 data-pressed:scale-97 motion-reduce:transition-none motion-reduce:active:scale-100 motion-reduce:data-pressed:scale-100 [&_svg]:transition-transform [&_svg]:duration-150 [&_svg]:ease-smooth-out motion-reduce:[&_svg]:transition-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-loading:select-none sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0", {
214
214
  compoundVariants: [{
215
215
  class: "h-auto border-0 px-0 align-middle sm:h-auto",
216
216
  size: [
@@ -260,18 +260,18 @@ function H({ className: e, variant: t, size: n, render: c, children: l, loading:
260
260
  "aria-hidden": !u || void 0,
261
261
  "data-slot": "button-loading-indicator",
262
262
  className: V("pointer-events-none inline-flex shrink-0 items-center overflow-hidden transition-[max-width,margin-inline-start,opacity,filter] duration-300 ease-smooth-out motion-reduce:transition-none", u ? "max-w-6" : V("max-w-0 opacity-0 blur-[2px]", n === "xs" ? "-ms-1" : n === "sm" ? "-ms-1.5" : "-ms-2")),
263
- children: /* @__PURE__ */ i(Ee, { className: u ? void 0 : "animate-none" })
263
+ children: /* @__PURE__ */ i(ke, { className: u ? void 0 : "animate-none" })
264
264
  }),
265
265
  l,
266
- u && y && /* @__PURE__ */ i(Ee, {
266
+ u && y && /* @__PURE__ */ i(ke, {
267
267
  className: "pointer-events-none absolute",
268
268
  "data-slot": "button-loading-indicator"
269
269
  })
270
270
  ] }),
271
- className: V(Fe({
271
+ className: V(Re({
272
272
  size: n,
273
273
  variant: t
274
- }), !y && "hover:[&_svg:not([class*='animate-'])]:scale-110 motion-reduce:hover:[&_svg]:scale-100", u && y && "data-loading:text-transparent", _ && Pe[_], v && "bg-transparent border-0 shadow-none", e),
274
+ }), !y && "hover:[&_svg:not([class*='animate-'])]:scale-110 motion-reduce:hover:[&_svg]:scale-100", u && y && "data-loading:text-transparent", _ && Le[_], v && "bg-transparent border-0 shadow-none", e),
275
275
  "aria-disabled": u || void 0,
276
276
  "data-cuelume-press": p ? "" : void 0,
277
277
  "data-cuelume-release": p ? "" : void 0,
@@ -283,11 +283,11 @@ function H({ className: e, variant: t, size: n, render: c, children: l, loading:
283
283
  }, m),
284
284
  render: c
285
285
  });
286
- return v ? /* @__PURE__ */ i(Ne, { children: b }) : b;
286
+ return v ? /* @__PURE__ */ i(Ie, { children: b }) : b;
287
287
  }
288
288
  //#endregion
289
289
  //#region src/components/ui/card.tsx
290
- function Ie({ className: e, render: t, ...n }) {
290
+ function ze({ className: e, render: t, ...n }) {
291
291
  return s({
292
292
  defaultTagName: "div",
293
293
  props: o({
@@ -297,7 +297,7 @@ function Ie({ className: e, render: t, ...n }) {
297
297
  render: t
298
298
  });
299
299
  }
300
- function Le({ className: e, render: t, ...n }) {
300
+ function Be({ className: e, render: t, ...n }) {
301
301
  return s({
302
302
  defaultTagName: "div",
303
303
  props: o({
@@ -307,7 +307,7 @@ function Le({ className: e, render: t, ...n }) {
307
307
  render: t
308
308
  });
309
309
  }
310
- function Re({ className: e, render: t, ...n }) {
310
+ function Ve({ className: e, render: t, ...n }) {
311
311
  return s({
312
312
  defaultTagName: "div",
313
313
  props: o({
@@ -317,7 +317,7 @@ function Re({ className: e, render: t, ...n }) {
317
317
  render: t
318
318
  });
319
319
  }
320
- function ze({ className: e, render: t, ...n }) {
320
+ function He({ className: e, render: t, ...n }) {
321
321
  return s({
322
322
  defaultTagName: "div",
323
323
  props: o({
@@ -327,7 +327,7 @@ function ze({ className: e, render: t, ...n }) {
327
327
  render: t
328
328
  });
329
329
  }
330
- function Be({ className: e, render: t, ...n }) {
330
+ function Ue({ className: e, render: t, ...n }) {
331
331
  return s({
332
332
  defaultTagName: "div",
333
333
  props: o({
@@ -337,7 +337,7 @@ function Be({ className: e, render: t, ...n }) {
337
337
  render: t
338
338
  });
339
339
  }
340
- function Ve({ className: e, render: t, ...n }) {
340
+ function We({ className: e, render: t, ...n }) {
341
341
  return s({
342
342
  defaultTagName: "div",
343
343
  props: o({
@@ -347,7 +347,7 @@ function Ve({ className: e, render: t, ...n }) {
347
347
  render: t
348
348
  });
349
349
  }
350
- function He({ className: e, render: t, ...n }) {
350
+ function Ge({ className: e, render: t, ...n }) {
351
351
  return s({
352
352
  defaultTagName: "div",
353
353
  props: o({
@@ -357,7 +357,7 @@ function He({ className: e, render: t, ...n }) {
357
357
  render: t
358
358
  });
359
359
  }
360
- function Ue({ className: e, render: t, ...n }) {
360
+ function Ke({ className: e, render: t, ...n }) {
361
361
  return s({
362
362
  defaultTagName: "div",
363
363
  props: o({
@@ -367,7 +367,7 @@ function Ue({ className: e, render: t, ...n }) {
367
367
  render: t
368
368
  });
369
369
  }
370
- function We({ className: e, render: t, ...n }) {
370
+ function qe({ className: e, render: t, ...n }) {
371
371
  return s({
372
372
  defaultTagName: "div",
373
373
  props: o({
@@ -377,7 +377,7 @@ function We({ className: e, render: t, ...n }) {
377
377
  render: t
378
378
  });
379
379
  }
380
- function Ge({ className: e, render: t, ...n }) {
380
+ function Je({ className: e, render: t, ...n }) {
381
381
  return s({
382
382
  defaultTagName: "div",
383
383
  props: o({
@@ -387,7 +387,7 @@ function Ge({ className: e, render: t, ...n }) {
387
387
  render: t
388
388
  });
389
389
  }
390
- function Ke({ className: e, render: t, ...n }) {
390
+ function Ye({ className: e, render: t, ...n }) {
391
391
  return s({
392
392
  defaultTagName: "div",
393
393
  props: o({
@@ -397,7 +397,7 @@ function Ke({ className: e, render: t, ...n }) {
397
397
  render: t
398
398
  });
399
399
  }
400
- function qe({ className: e, render: t, ...n }) {
400
+ function Xe({ className: e, render: t, ...n }) {
401
401
  return s({
402
402
  defaultTagName: "div",
403
403
  props: o({
@@ -407,7 +407,7 @@ function qe({ className: e, render: t, ...n }) {
407
407
  render: t
408
408
  });
409
409
  }
410
- function Je({ className: e, render: t, ...n }) {
410
+ function Ze({ className: e, render: t, ...n }) {
411
411
  return s({
412
412
  defaultTagName: "div",
413
413
  props: o({
@@ -419,24 +419,24 @@ function Je({ className: e, render: t, ...n }) {
419
419
  }
420
420
  //#endregion
421
421
  //#region src/lib/sound.ts
422
- var Ye = !1;
423
- function Xe(e) {
424
- Ye = !0, oe(e);
422
+ var Qe = !1;
423
+ function $e(e) {
424
+ Qe = !0, le(e);
425
425
  }
426
- function Ze(e, t) {
427
- Ye && se(e, t);
426
+ function et(e, t) {
427
+ Qe && ue(e, t);
428
428
  }
429
429
  //#endregion
430
430
  //#region src/components/ui/checkbox.tsx
431
- function Qe({ className: e, sound: t = !0, onCheckedChange: n, ...r }) {
432
- return /* @__PURE__ */ i(ae.Root, {
431
+ function tt({ className: e, sound: t = !0, onCheckedChange: n, ...r }) {
432
+ return /* @__PURE__ */ i(ce.Root, {
433
433
  onCheckedChange: (e, r) => {
434
- t && Ze("toggle"), n?.(e, r);
434
+ t && et("toggle"), n?.(e, r);
435
435
  },
436
436
  className: V("relative inline-flex size-4.5 shrink-0 cursor-pointer items-center justify-center rounded-[.25rem] border border-input bg-background not-dark:bg-clip-padding shadow-xs/5 outline-none ring-ring transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[3px] not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-background aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/48 data-disabled:cursor-not-allowed data-disabled:opacity-64 sm:size-4 dark:not-data-checked:bg-input/32 dark:aria-invalid:ring-destructive/24 dark:not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] [[data-disabled],[data-checked],[aria-invalid]]:shadow-none", e),
437
437
  "data-slot": "checkbox",
438
438
  ...r,
439
- children: /* @__PURE__ */ i(ae.Indicator, {
439
+ children: /* @__PURE__ */ i(ce.Indicator, {
440
440
  className: "absolute -inset-px flex items-center justify-center rounded-[.25rem] text-primary-foreground data-unchecked:hidden data-checked:bg-primary data-indeterminate:text-foreground",
441
441
  "data-slot": "checkbox-indicator",
442
442
  render: (e, t) => /* @__PURE__ */ i("span", {
@@ -488,66 +488,66 @@ function W({ className: e, ...t }) {
488
488
  ...t
489
489
  });
490
490
  }
491
- function $e({ className: e, ...t }) {
491
+ function nt({ className: e, ...t }) {
492
492
  return /* @__PURE__ */ i(L.Item, {
493
493
  className: V("flex", e),
494
494
  "data-slot": "field-item",
495
495
  ...t
496
496
  });
497
497
  }
498
- function et({ className: e, ...t }) {
498
+ function rt({ className: e, ...t }) {
499
499
  return /* @__PURE__ */ i(L.Description, {
500
500
  className: V("overflow-hidden text-muted-foreground text-xs transition-[height,opacity,filter,translate] duration-300 ease-smooth-out starting:h-0 starting:translate-y-1 starting:opacity-0 starting:blur-[2px] motion-reduce:transition-none", e),
501
501
  "data-slot": "field-description",
502
502
  ...t
503
503
  });
504
504
  }
505
- function tt({ className: e, ...t }) {
505
+ function it({ className: e, ...t }) {
506
506
  return /* @__PURE__ */ i(L.Error, {
507
507
  className: V("overflow-hidden text-destructive-foreground text-xs transition-[height,opacity,filter,translate] duration-300 ease-smooth-out starting:h-0 starting:translate-y-1 starting:opacity-0 starting:blur-[2px] motion-reduce:transition-none", e),
508
508
  "data-slot": "field-error",
509
509
  ...t
510
510
  });
511
511
  }
512
- var nt = L.Control, rt = L.Validity;
512
+ var at = L.Control, ot = L.Validity;
513
513
  //#endregion
514
514
  //#region src/components/ui/frame.tsx
515
- function it({ className: e, ...t }) {
515
+ function st({ className: e, ...t }) {
516
516
  return /* @__PURE__ */ i("div", {
517
517
  className: V("relative flex flex-col rounded-2xl bg-muted/72 p-1", "*:[[data-slot=frame-panel]+[data-slot=frame-panel]]:mt-1", e),
518
518
  "data-slot": "frame",
519
519
  ...t
520
520
  });
521
521
  }
522
- function at({ className: e, ...t }) {
522
+ function ct({ className: e, ...t }) {
523
523
  return /* @__PURE__ */ i("div", {
524
524
  className: V("relative rounded-xl border bg-background bg-clip-padding p-5 shadow-xs/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", e),
525
525
  "data-slot": "frame-panel",
526
526
  ...t
527
527
  });
528
528
  }
529
- function ot({ className: e, ...t }) {
529
+ function lt({ className: e, ...t }) {
530
530
  return /* @__PURE__ */ i("header", {
531
531
  className: V("flex flex-col px-5 py-4", e),
532
532
  "data-slot": "frame-panel-header",
533
533
  ...t
534
534
  });
535
535
  }
536
- function st({ className: e, ...t }) {
536
+ function ut({ className: e, ...t }) {
537
537
  return /* @__PURE__ */ i("div", {
538
538
  className: V("font-semibold text-sm", e),
539
539
  "data-slot": "frame-panel-title",
540
540
  ...t
541
541
  });
542
542
  }
543
- function ct({ className: e, ...t }) {
543
+ function dt({ className: e, ...t }) {
544
544
  return /* @__PURE__ */ i("div", {
545
545
  className: V("text-muted-foreground text-sm", e),
546
546
  "data-slot": "frame-panel-description",
547
547
  ...t
548
548
  });
549
549
  }
550
- function lt({ className: e, ...t }) {
550
+ function ft({ className: e, ...t }) {
551
551
  return /* @__PURE__ */ i("footer", {
552
552
  className: V("px-5 py-4", e),
553
553
  "data-slot": "frame-panel-footer",
@@ -568,7 +568,7 @@ function G({ className: e, size: t = "default", unstyled: n = !1, nativeInput: r
568
568
  size: typeof t == "number" ? t : void 0,
569
569
  style: typeof a == "function" ? void 0 : a,
570
570
  ...o
571
- }) : /* @__PURE__ */ i(pe, {
571
+ }) : /* @__PURE__ */ i(ge, {
572
572
  className: s,
573
573
  "data-slot": "input",
574
574
  size: typeof t == "number" ? t : void 0,
@@ -579,12 +579,12 @@ function G({ className: e, size: t = "default", unstyled: n = !1, nativeInput: r
579
579
  }
580
580
  //#endregion
581
581
  //#region src/components/ui/textarea.tsx
582
- function ut({ className: e, size: t = "default", unstyled: n = !1, ref: r, ...a }) {
582
+ function pt({ className: e, size: t = "default", unstyled: n = !1, ref: r, ...a }) {
583
583
  return /* @__PURE__ */ i("span", {
584
584
  className: V(!n && "relative inline-flex w-full rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16 has-aria-invalid:border-destructive/36 has-focus-visible:border-ring has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none has-focus-visible:ring-[3px] not-has-disabled:has-not-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] sm:text-sm dark:bg-input/32 dark:has-aria-invalid:ring-destructive/24 dark:not-has-disabled:has-not-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]", e) || void 0,
585
585
  "data-size": t,
586
586
  "data-slot": "textarea-control",
587
- children: /* @__PURE__ */ i(fe.Control, {
587
+ children: /* @__PURE__ */ i(he.Control, {
588
588
  ref: r,
589
589
  value: a.value,
590
590
  defaultValue: a.defaultValue,
@@ -601,7 +601,7 @@ function ut({ className: e, size: t = "default", unstyled: n = !1, ref: r, ...a
601
601
  }
602
602
  //#endregion
603
603
  //#region src/components/ui/input-group.tsx
604
- var dt = c("flex h-auto cursor-text select-none items-center justify-center gap-2 leading-none [&>kbd]:rounded-[calc(var(--radius)-5px)] in-[[data-slot=input-group]:has([data-slot=input-control],[data-slot=textarea-control])]:[&_svg:not([class*='size-'])]:size-4.5 sm:in-[[data-slot=input-group]:has([data-slot=input-control],[data-slot=textarea-control])]:[&_svg:not([class*='size-'])]:size-4 [&_svg]:-mx-0.5 not-has-[button]:**:[svg:not([class*='opacity-'])]:opacity-80", {
604
+ var mt = c("flex h-auto cursor-text select-none items-center justify-center gap-2 leading-none [&>kbd]:rounded-[calc(var(--radius)-5px)] in-[[data-slot=input-group]:has([data-slot=input-control],[data-slot=textarea-control])]:[&_svg:not([class*='size-'])]:size-4.5 sm:in-[[data-slot=input-group]:has([data-slot=input-control],[data-slot=textarea-control])]:[&_svg:not([class*='size-'])]:size-4 [&_svg]:-mx-0.5 not-has-[button]:**:[svg:not([class*='opacity-'])]:opacity-80", {
605
605
  defaultVariants: { align: "inline-start" },
606
606
  variants: { align: {
607
607
  "block-end": "order-last w-full justify-start px-[calc(--spacing(3)-1px)] pb-[calc(--spacing(3)-1px)] [.border-t]:pt-[calc(--spacing(3)-1px)] [[data-size=sm]+&]:px-[calc(--spacing(2.5)-1px)]",
@@ -610,7 +610,7 @@ var dt = c("flex h-auto cursor-text select-none items-center justify-center gap-
610
610
  "inline-start": "order-first ps-[calc(--spacing(3)-1px)] has-[>:last-child[data-slot=badge]]:-ms-1.5 has-[>button]:-ms-2 has-[>kbd:last-child]:ms-[-0.35rem] [[data-size=sm]+&]:ps-[calc(--spacing(2.5)-1px)]"
611
611
  } }
612
612
  });
613
- function ft({ className: e, ...t }) {
613
+ function ht({ className: e, ...t }) {
614
614
  return /* @__PURE__ */ i("div", {
615
615
  className: V("relative inline-flex w-full min-w-0 items-center rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-has-[input:disabled,textarea:disabled]:not-has-[input:focus-visible,textarea:focus-visible]:not-has-[input[aria-invalid],textarea[aria-invalid]]:before:shadow-[0_1px_--theme(--color-black/4%)] has-[input:focus-visible,textarea:focus-visible]:has-[input[aria-invalid],textarea[aria-invalid]]:border-destructive/64 has-[input:focus-visible,textarea:focus-visible]:has-[input[aria-invalid],textarea[aria-invalid]]:ring-destructive/16 has-[textarea]:h-auto has-data-[align=block-end]:h-auto has-data-[align=block-start]:h-auto has-data-[align=block-end]:flex-col has-data-[align=block-start]:flex-col has-[input:focus-visible,textarea:focus-visible]:border-ring has-[input[aria-invalid],textarea[aria-invalid]]:border-destructive/36 has-autofill:bg-foreground/4 has-[input:disabled,textarea:disabled]:opacity-64 has-[input:disabled,textarea:disabled,input:focus-visible,textarea:focus-visible,input[aria-invalid],textarea[aria-invalid]]:shadow-none has-[input:focus-visible,textarea:focus-visible]:ring-[3px] sm:text-sm dark:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-[input[aria-invalid],textarea[aria-invalid]]:ring-destructive/24 dark:not-has-[input:disabled,textarea:disabled]:not-has-[input:focus-visible,textarea:focus-visible]:not-has-[input[aria-invalid],textarea[aria-invalid]]:before:shadow-[0_-1px_--theme(--color-white/6%)] has-data-[align=inline-start]:**:[[data-size=sm]_input]:ps-1.5 has-data-[align=inline-end]:**:[[data-size=sm]_input]:pe-1.5 *:[[data-slot=input-control],[data-slot=textarea-control]]:contents *:[[data-slot=input-control],[data-slot=textarea-control]]:before:hidden has-[[data-align=block-start],[data-align=block-end]]:**:[input]:h-auto has-data-[align=inline-start]:**:[input]:ps-2 has-data-[align=inline-end]:**:[input]:pe-2 has-data-[align=block-end]:**:[input]:pt-1.5 has-data-[align=block-start]:**:[input]:pb-1.5 **:[textarea]:min-h-20.5 **:[textarea]:resize-none **:[textarea]:py-[calc(--spacing(3)-1px)] **:[textarea]:max-sm:min-h-23.5 **:[textarea_button]:rounded-[calc(var(--radius-md)-1px)]", e),
616
616
  "data-slot": "input-group",
@@ -618,9 +618,9 @@ function ft({ className: e, ...t }) {
618
618
  ...t
619
619
  });
620
620
  }
621
- function pt({ className: e, align: t = "inline-start", ...n }) {
621
+ function gt({ className: e, align: t = "inline-start", ...n }) {
622
622
  return /* @__PURE__ */ i("div", {
623
- className: V(dt({ align: t }), e),
623
+ className: V(mt({ align: t }), e),
624
624
  "data-align": t,
625
625
  "data-slot": "input-group-addon",
626
626
  onMouseDown: (e) => {
@@ -632,21 +632,21 @@ function pt({ className: e, align: t = "inline-start", ...n }) {
632
632
  ...n
633
633
  });
634
634
  }
635
- function mt({ className: e, ...t }) {
635
+ function _t({ className: e, ...t }) {
636
636
  return /* @__PURE__ */ i("span", {
637
637
  className: V("line-clamp-1 flex items-center gap-2 whitespace-nowrap text-muted-foreground leading-none in-[[data-slot=input-group]:has([data-slot=input-control],[data-slot=textarea-control])]:[&_svg:not([class*='size-'])]:size-4.5 sm:in-[[data-slot=input-group]:has([data-slot=input-control],[data-slot=textarea-control])]:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5", e),
638
638
  ...t
639
639
  });
640
640
  }
641
- function ht({ className: e, ...t }) {
641
+ function vt({ className: e, ...t }) {
642
642
  return /* @__PURE__ */ i(G, {
643
643
  className: e,
644
644
  unstyled: !0,
645
645
  ...t
646
646
  });
647
647
  }
648
- function gt({ className: e, ...t }) {
649
- return /* @__PURE__ */ i(ut, {
648
+ function yt({ className: e, ...t }) {
649
+ return /* @__PURE__ */ i(pt, {
650
650
  className: e,
651
651
  unstyled: !0,
652
652
  ...t
@@ -654,7 +654,7 @@ function gt({ className: e, ...t }) {
654
654
  }
655
655
  //#endregion
656
656
  //#region src/components/ui/label.tsx
657
- function _t({ className: e, render: t, sound: n = !1, ...r }) {
657
+ function bt({ className: e, render: t, sound: n = !1, ...r }) {
658
658
  return s({
659
659
  defaultTagName: "label",
660
660
  props: o({
@@ -667,8 +667,8 @@ function _t({ className: e, render: t, sound: n = !1, ...r }) {
667
667
  }
668
668
  //#endregion
669
669
  //#region src/components/ui/menu.tsx
670
- var vt = R.createHandle, yt = R.Root, bt = R.Portal;
671
- function xt({ className: e, children: t, ...n }) {
670
+ var xt = R.createHandle, St = R.Root, Ct = R.Portal;
671
+ function wt({ className: e, children: t, ...n }) {
672
672
  return /* @__PURE__ */ i(R.Trigger, {
673
673
  className: e,
674
674
  "data-slot": "menu-trigger",
@@ -676,8 +676,8 @@ function xt({ className: e, children: t, ...n }) {
676
676
  children: t
677
677
  });
678
678
  }
679
- function St({ children: e, className: t, sideOffset: n = 4, align: r = "center", alignOffset: a, side: o = "bottom", anchor: s, portalProps: c, ...l }) {
680
- return /* @__PURE__ */ i(bt, {
679
+ function Tt({ children: e, className: t, sideOffset: n = 4, align: r = "center", alignOffset: a, side: o = "bottom", anchor: s, portalProps: c, ...l }) {
680
+ return /* @__PURE__ */ i(Ct, {
681
681
  ...c,
682
682
  children: /* @__PURE__ */ i(R.Positioner, {
683
683
  align: r,
@@ -699,13 +699,13 @@ function St({ children: e, className: t, sideOffset: n = 4, align: r = "center",
699
699
  })
700
700
  });
701
701
  }
702
- function Ct(e) {
702
+ function Et(e) {
703
703
  return /* @__PURE__ */ i(R.Group, {
704
704
  "data-slot": "menu-group",
705
705
  ...e
706
706
  });
707
707
  }
708
- function wt({ className: e, inset: t, variant: n = "default", ...r }) {
708
+ function Dt({ className: e, inset: t, variant: n = "default", ...r }) {
709
709
  return /* @__PURE__ */ i(R.Item, {
710
710
  className: V("flex min-h-8 cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-inset:ps-8 data-[variant=destructive]:text-destructive-foreground data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&>svg:not([class*='opacity-'])]:opacity-80 [&>svg:not([class*='size-'])]:size-4.5 sm:[&>svg:not([class*='size-'])]:size-4 [&>svg]:pointer-events-none [&>svg]:-mx-0.5 [&>svg]:shrink-0", e),
711
711
  "data-inset": t,
@@ -714,7 +714,7 @@ function wt({ className: e, inset: t, variant: n = "default", ...r }) {
714
714
  ...r
715
715
  });
716
716
  }
717
- function Tt({ className: e, inset: t, variant: n = "default", closeOnClick: r = !0, ...a }) {
717
+ function Ot({ className: e, inset: t, variant: n = "default", closeOnClick: r = !0, ...a }) {
718
718
  return /* @__PURE__ */ i(R.LinkItem, {
719
719
  className: V("flex min-h-8 cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-inset:ps-8 data-[variant=destructive]:text-destructive-foreground data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&>svg:not([class*='opacity-'])]:opacity-80 [&>svg:not([class*='size-'])]:size-4.5 sm:[&>svg:not([class*='size-'])]:size-4 [&>svg]:pointer-events-none [&>svg]:-mx-0.5 [&>svg]:shrink-0", e),
720
720
  closeOnClick: r,
@@ -724,7 +724,7 @@ function Tt({ className: e, inset: t, variant: n = "default", closeOnClick: r =
724
724
  ...a
725
725
  });
726
726
  }
727
- function Et({ className: e, children: t, checked: n, variant: o = "default", ...s }) {
727
+ function kt({ className: e, children: t, checked: n, variant: o = "default", ...s }) {
728
728
  return /* @__PURE__ */ i(R.CheckboxItem, {
729
729
  checked: n,
730
730
  className: V("grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default items-center gap-2 rounded-sm py-1 ps-2 text-base text-foreground outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", o === "switch" ? "grid-cols-[1fr_auto] gap-4 pe-1.5" : "grid-cols-[.75rem_1fr] pe-4", e),
@@ -758,13 +758,13 @@ function Et({ className: e, children: t, checked: n, variant: o = "default", ...
758
758
  })] })
759
759
  });
760
760
  }
761
- function Dt(e) {
761
+ function At(e) {
762
762
  return /* @__PURE__ */ i(R.RadioGroup, {
763
763
  "data-slot": "menu-radio-group",
764
764
  ...e
765
765
  });
766
766
  }
767
- function Ot({ className: e, children: t, ...n }) {
767
+ function jt({ className: e, children: t, ...n }) {
768
768
  return /* @__PURE__ */ a(R.RadioItem, {
769
769
  className: V("grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default grid-cols-[.75rem_1fr] items-center gap-2 rounded-sm py-1 ps-2 pe-4 text-base text-foreground outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
770
770
  "data-slot": "menu-radio-item",
@@ -790,7 +790,7 @@ function Ot({ className: e, children: t, ...n }) {
790
790
  })]
791
791
  });
792
792
  }
793
- function kt({ className: e, inset: t, ...n }) {
793
+ function Mt({ className: e, inset: t, ...n }) {
794
794
  return /* @__PURE__ */ i(R.GroupLabel, {
795
795
  className: V("px-2 py-1.5 font-medium text-muted-foreground text-xs data-inset:ps-9 sm:data-inset:ps-8", e),
796
796
  "data-inset": t,
@@ -798,27 +798,27 @@ function kt({ className: e, inset: t, ...n }) {
798
798
  ...n
799
799
  });
800
800
  }
801
- function At({ className: e, ...t }) {
801
+ function Nt({ className: e, ...t }) {
802
802
  return /* @__PURE__ */ i(R.Separator, {
803
803
  className: V("mx-2 my-1 h-px bg-border", e),
804
804
  "data-slot": "menu-separator",
805
805
  ...t
806
806
  });
807
807
  }
808
- function jt({ className: e, ...t }) {
808
+ function Pt({ className: e, ...t }) {
809
809
  return /* @__PURE__ */ i("kbd", {
810
810
  className: V("ms-auto font-medium font-sans text-muted-foreground/72 text-xs tracking-widest", e),
811
811
  "data-slot": "menu-shortcut",
812
812
  ...t
813
813
  });
814
814
  }
815
- function Mt(e) {
815
+ function Ft(e) {
816
816
  return /* @__PURE__ */ i(R.SubmenuRoot, {
817
817
  "data-slot": "menu-sub",
818
818
  ...e
819
819
  });
820
820
  }
821
- function Nt({ className: e, inset: t, children: n, ...r }) {
821
+ function It({ className: e, inset: t, children: n, ...r }) {
822
822
  return /* @__PURE__ */ a(R.SubmenuTrigger, {
823
823
  className: V("flex min-h-8 items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-popup-open:bg-accent data-inset:ps-8 data-highlighted:text-accent-foreground data-popup-open:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&>svg:not(:last-child)]:-mx-0.5 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", e),
824
824
  "data-inset": t,
@@ -827,8 +827,8 @@ function Nt({ className: e, inset: t, children: n, ...r }) {
827
827
  children: [n, /* @__PURE__ */ i(f, { className: "ms-auto -me-0.5 opacity-80" })]
828
828
  });
829
829
  }
830
- function Pt({ className: e, sideOffset: t = 0, alignOffset: n, align: r = "start", ...a }) {
831
- return /* @__PURE__ */ i(St, {
830
+ function Lt({ className: e, sideOffset: t = 0, alignOffset: n, align: r = "start", ...a }) {
831
+ return /* @__PURE__ */ i(Tt, {
832
832
  align: r,
833
833
  alignOffset: n ?? (r === "center" ? void 0 : -5),
834
834
  className: e,
@@ -840,8 +840,8 @@ function Pt({ className: e, sideOffset: t = 0, alignOffset: n, align: r = "start
840
840
  }
841
841
  //#endregion
842
842
  //#region src/components/ui/separator.tsx
843
- function Ft({ className: e, orientation: t = "horizontal", ...n }) {
844
- return /* @__PURE__ */ i(he, {
843
+ function Rt({ className: e, orientation: t = "horizontal", ...n }) {
844
+ return /* @__PURE__ */ i(ve, {
845
845
  className: V("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:not-[[class^='h-']]:not-[[class*='_h-']]:self-stretch", e),
846
846
  "data-slot": "separator",
847
847
  orientation: t,
@@ -850,28 +850,28 @@ function Ft({ className: e, orientation: t = "horizontal", ...n }) {
850
850
  }
851
851
  //#endregion
852
852
  //#region src/components/ui/otp-field.tsx
853
- function It({ className: e, size: t = "default", sound: n = !0, onValueChange: r, ...a }) {
854
- let o = D.useRef(String(a.value ?? a.defaultValue ?? "").length);
855
- return /* @__PURE__ */ i(me.Root, {
853
+ function zt({ className: e, size: t = "default", sound: n = !0, onValueChange: r, ...a }) {
854
+ let o = A.useRef(String(a.value ?? a.defaultValue ?? "").length);
855
+ return /* @__PURE__ */ i(_e.Root, {
856
856
  className: V("flex items-center gap-2 has-disabled:opacity-64 has-disabled:**:data-[slot=otp-field-input]:shadow-none has-disabled:**:data-[slot=otp-field-input]:before:shadow-none!", e),
857
857
  "data-size": t,
858
858
  "data-slot": "otp-field",
859
859
  onValueChange: (e, ...t) => {
860
- n && e.length > o.current && Ze("tick"), o.current = e.length, r?.(e, ...t);
860
+ n && e.length > o.current && et("tick"), o.current = e.length, r?.(e, ...t);
861
861
  },
862
862
  ...a
863
863
  });
864
864
  }
865
- function Lt({ className: e, ...t }) {
866
- return /* @__PURE__ */ i(me.Input, {
865
+ function Bt({ className: e, ...t }) {
866
+ return /* @__PURE__ */ i(_e.Input, {
867
867
  className: V("relative in-[[data-slot=otp-field][data-size=lg]]:size-10 size-9 min-w-0 rounded-lg border border-input bg-background not-dark:bg-clip-padding text-center in-[[data-slot=otp-field][data-size=lg]]:text-lg text-base text-foreground in-[[data-slot=otp-field][data-size=lg]]:leading-10 leading-9 shadow-xs/5 outline-none ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-focus-visible:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-visible:z-10 focus-visible:border-ring focus-visible:shadow-none focus-visible:ring-[3px] focus-visible:ring-ring/24 aria-invalid:border-destructive/36 aria-invalid:shadow-none aria-invalid:focus-visible:border-destructive/64 aria-invalid:focus-visible:ring-destructive/16 sm:in-[[data-slot=otp-field][data-size=lg]]:size-9 sm:size-8 sm:in-[[data-slot=otp-field][data-size=lg]]:text-base sm:text-sm sm:in-[[data-slot=otp-field][data-size=lg]]:leading-9 sm:leading-8 dark:bg-input/32 dark:aria-invalid:focus-visible:ring-destructive/24 dark:not-focus-visible:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]", e),
868
868
  "data-slot": "otp-field-input",
869
869
  spellCheck: !1,
870
870
  ...t
871
871
  });
872
872
  }
873
- function Rt({ className: e, ...t }) {
874
- return /* @__PURE__ */ i(me.Separator, { render: /* @__PURE__ */ i(Ft, {
873
+ function Vt({ className: e, ...t }) {
874
+ return /* @__PURE__ */ i(_e.Separator, { render: /* @__PURE__ */ i(Rt, {
875
875
  className: V("rounded-full bg-input data-[orientation=horizontal]:h-0.5 data-[orientation=horizontal]:w-3", e),
876
876
  orientation: "horizontal",
877
877
  ...t
@@ -879,7 +879,7 @@ function Rt({ className: e, ...t }) {
879
879
  }
880
880
  //#endregion
881
881
  //#region src/components/ui/skeleton.tsx
882
- function zt({ className: e, ...t }) {
882
+ function Ht({ className: e, ...t }) {
883
883
  return /* @__PURE__ */ i("div", {
884
884
  className: V("animate-skeleton rounded-sm [--skeleton-highlight:--alpha(var(--color-white)/64%)] [background:linear-gradient(120deg,transparent_40%,var(--skeleton-highlight),transparent_60%)_var(--color-muted)_0_0/200%_100%_fixed] dark:[--skeleton-highlight:--alpha(var(--color-white)/4%)]", e),
885
885
  "data-slot": "skeleton",
@@ -888,12 +888,12 @@ function zt({ className: e, ...t }) {
888
888
  }
889
889
  //#endregion
890
890
  //#region src/components/composed/password-input.tsx
891
- var Bt = [
891
+ var Ut = [
892
892
  .22,
893
893
  1,
894
894
  .36,
895
895
  1
896
- ], Vt = [
896
+ ], Wt = [
897
897
  {
898
898
  regex: /.{8,}/,
899
899
  text: "At least 8 characters"
@@ -911,21 +911,21 @@ var Bt = [
911
911
  text: "At least 1 uppercase letter"
912
912
  }
913
913
  ];
914
- function Ht(e) {
915
- return Vt.filter((t) => t.regex.test(e)).length;
914
+ function Gt(e) {
915
+ return Wt.filter((t) => t.regex.test(e)).length;
916
916
  }
917
- var Ut = [
917
+ var Kt = [
918
918
  "bg-border",
919
919
  "bg-red-500",
920
920
  "bg-orange-500",
921
921
  "bg-amber-500",
922
922
  "bg-emerald-500"
923
923
  ];
924
- function Wt({ visibilityToggle: e = !0, showStrength: t = !1, sound: n = !0, className: r, value: o, defaultValue: s, onChange: c, ...l }) {
925
- let [d, f] = D.useState(!1), [p, g] = D.useState(String(s ?? "")), _ = o === void 0 ? p : String(o), v = Ht(_);
924
+ function qt({ visibilityToggle: e = !0, showStrength: t = !1, sound: n = !0, className: r, value: o, defaultValue: s, onChange: c, ...l }) {
925
+ let [d, f] = A.useState(!1), [p, g] = A.useState(String(s ?? "")), _ = o === void 0 ? p : String(o), v = Gt(_);
926
926
  return /* @__PURE__ */ a("div", {
927
927
  className: V("flex w-full flex-col gap-3", r),
928
- children: [/* @__PURE__ */ a(ft, { children: [/* @__PURE__ */ i(ht, {
928
+ children: [/* @__PURE__ */ a(ht, { children: [/* @__PURE__ */ i(vt, {
929
929
  placeholder: "Enter your password",
930
930
  ...l,
931
931
  type: d ? "text" : "password",
@@ -933,12 +933,12 @@ function Wt({ visibilityToggle: e = !0, showStrength: t = !1, sound: n = !0, cla
933
933
  onChange: (e) => {
934
934
  g(e.target.value), c?.(e);
935
935
  }
936
- }), e && /* @__PURE__ */ i(pt, {
936
+ }), e && /* @__PURE__ */ i(gt, {
937
937
  align: "inline-end",
938
938
  children: /* @__PURE__ */ i(H, {
939
939
  "aria-label": d ? "Hide password" : "Show password",
940
940
  onClick: () => {
941
- n && Ze(d ? "droplet" : "bloom"), f((e) => !e);
941
+ n && et(d ? "droplet" : "bloom"), f((e) => !e);
942
942
  },
943
943
  size: "icon-xs",
944
944
  variant: "ghost",
@@ -965,7 +965,7 @@ function Wt({ visibilityToggle: e = !0, showStrength: t = !1, sound: n = !0, cla
965
965
  },
966
966
  transition: {
967
967
  duration: .15,
968
- ease: Bt
968
+ ease: Ut
969
969
  },
970
970
  children: i(d ? h : m, { "aria-hidden": "true" })
971
971
  }, d ? "off" : "on")
@@ -989,7 +989,7 @@ function Wt({ visibilityToggle: e = !0, showStrength: t = !1, sound: n = !0, cla
989
989
  },
990
990
  transition: {
991
991
  duration: .25,
992
- ease: Bt
992
+ ease: Ut
993
993
  },
994
994
  children: [/* @__PURE__ */ i("div", {
995
995
  "aria-label": "Password strength",
@@ -999,24 +999,24 @@ function Wt({ visibilityToggle: e = !0, showStrength: t = !1, sound: n = !0, cla
999
999
  className: "h-1 w-full overflow-hidden rounded-full bg-border",
1000
1000
  role: "progressbar",
1001
1001
  children: /* @__PURE__ */ i(B.div, {
1002
- className: V("h-full rounded-full", Ut[v]),
1002
+ className: V("h-full rounded-full", Kt[v]),
1003
1003
  animate: { width: `${v / 4 * 100}%` },
1004
1004
  transition: {
1005
1005
  duration: .4,
1006
- ease: Bt
1006
+ ease: Ut
1007
1007
  }
1008
1008
  })
1009
1009
  }), /* @__PURE__ */ i("ul", {
1010
1010
  "aria-label": "Password requirements",
1011
1011
  className: "flex flex-col gap-1",
1012
- children: Vt.map((e) => {
1012
+ children: Wt.map((e) => {
1013
1013
  let t = e.regex.test(_);
1014
1014
  return /* @__PURE__ */ a("li", {
1015
1015
  className: "flex items-center gap-2 text-xs",
1016
1016
  children: [t ? /* @__PURE__ */ i(u, {
1017
1017
  "aria-hidden": "true",
1018
1018
  className: "size-3.5 text-emerald-500"
1019
- }) : /* @__PURE__ */ i(E, {
1019
+ }) : /* @__PURE__ */ i(k, {
1020
1020
  "aria-hidden": "true",
1021
1021
  className: "size-3.5 text-muted-foreground/80"
1022
1022
  }), /* @__PURE__ */ a("span", {
@@ -1035,29 +1035,62 @@ function Wt({ visibilityToggle: e = !0, showStrength: t = !1, sound: n = !0, cla
1035
1035
  }
1036
1036
  //#endregion
1037
1037
  //#region src/components/composed/social-providers.tsx
1038
- var Gt = {
1038
+ function Jt(e) {
1039
+ return /* @__PURE__ */ a("svg", {
1040
+ viewBox: "0 0 24 24",
1041
+ fill: "none",
1042
+ ...e,
1043
+ children: [
1044
+ /* @__PURE__ */ i("path", {
1045
+ fill: "#4285F4",
1046
+ d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.76h3.56c2.09-1.92 3.28-4.74 3.28-8.09Z"
1047
+ }),
1048
+ /* @__PURE__ */ i("path", {
1049
+ fill: "#34A853",
1050
+ d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.56-2.76c-.99.66-2.25 1.05-3.72 1.05-2.86 0-5.28-1.93-6.15-4.53H2.18v2.85A11 11 0 0 0 12 23Z"
1051
+ }),
1052
+ /* @__PURE__ */ i("path", {
1053
+ fill: "#FBBC05",
1054
+ d: "M5.85 14.1A6.6 6.6 0 0 1 5.5 12c0-.73.13-1.44.35-2.1V7.05H2.18a11 11 0 0 0 0 9.9l3.67-2.85Z"
1055
+ }),
1056
+ /* @__PURE__ */ i("path", {
1057
+ fill: "#EA4335",
1058
+ d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15A11 11 0 0 0 2.18 7.05L5.85 9.9C6.72 7.3 9.14 5.38 12 5.38Z"
1059
+ })
1060
+ ]
1061
+ });
1062
+ }
1063
+ var Yt = {
1039
1064
  google: {
1040
1065
  label: "Google",
1041
- Icon: be
1066
+ Icon: Ce,
1067
+ BrandIcon: Jt,
1068
+ brandClassName: ""
1042
1069
  },
1043
1070
  apple: {
1044
1071
  label: "Apple",
1045
- Icon: ve
1072
+ Icon: xe,
1073
+ BrandIcon: xe,
1074
+ brandClassName: "text-foreground"
1046
1075
  },
1047
1076
  github: {
1048
1077
  label: "GitHub",
1049
- Icon: ye
1078
+ Icon: Se,
1079
+ BrandIcon: Se,
1080
+ brandClassName: "text-foreground"
1050
1081
  },
1051
1082
  x: {
1052
1083
  label: "X",
1053
- Icon: xe
1084
+ Icon: we,
1085
+ BrandIcon: we,
1086
+ brandClassName: "text-foreground"
1054
1087
  }
1055
- }, Kt = {
1088
+ }, Xt = {
1056
1089
  login: "Login with",
1057
1090
  signup: "Sign up with",
1058
1091
  continue: "Continue with"
1059
1092
  };
1060
- function qt({ providers: e = [
1093
+ function Zt({ providers: e = [
1061
1094
  "google",
1062
1095
  "apple",
1063
1096
  "github"
@@ -1066,19 +1099,19 @@ function qt({ providers: e = [
1066
1099
  return /* @__PURE__ */ i("div", {
1067
1100
  className: V("flex w-full gap-2", l ? "flex-row justify-center" : "flex-col", c),
1068
1101
  children: e.map((e) => {
1069
- let { label: n, Icon: c } = Gt[e];
1102
+ let { label: n, Icon: c } = Yt[e];
1070
1103
  return /* @__PURE__ */ a(H, {
1071
1104
  variant: "outline",
1072
1105
  size: l ? "icon" : "default",
1073
1106
  className: l ? void 0 : "w-full",
1074
- "aria-label": `${Kt[t]} ${n}`,
1107
+ "aria-label": `${Xt[t]} ${n}`,
1075
1108
  loading: r === e,
1076
1109
  disabled: o || r !== null && r !== e,
1077
1110
  onClick: () => s?.(e),
1078
1111
  children: [/* @__PURE__ */ i(c, { "aria-hidden": "true" }), !l && /* @__PURE__ */ a("span", {
1079
1112
  className: "flex-1",
1080
1113
  children: [
1081
- Kt[t],
1114
+ Xt[t],
1082
1115
  " ",
1083
1116
  n
1084
1117
  ]
@@ -1089,30 +1122,30 @@ function qt({ providers: e = [
1089
1122
  }
1090
1123
  //#endregion
1091
1124
  //#region src/components/composed/user-avatar.tsx
1092
- function Jt(e) {
1125
+ function Qt(e) {
1093
1126
  let t = e.trim().split(/\s+/).filter(Boolean);
1094
1127
  return t.length === 0 ? "" : ((t[0]?.[0] ?? "") + (t.length > 1 ? t.at(-1)?.[0] ?? "" : "")).toUpperCase();
1095
1128
  }
1096
- function Yt({ src: e, name: t = "", initials: n, alt: r, loading: o, className: s, ...c }) {
1097
- let [l, u] = D.useState("idle"), d = o ?? (e !== void 0 && (l === "idle" || l === "loading"));
1098
- return /* @__PURE__ */ a(Ce, {
1129
+ function $t({ src: e, name: t = "", initials: n, alt: r, loading: o, className: s, ...c }) {
1130
+ let [l, u] = A.useState("idle"), d = o ?? (e !== void 0 && (l === "idle" || l === "loading"));
1131
+ return /* @__PURE__ */ a(Ee, {
1099
1132
  className: V("size-8", s),
1100
1133
  "data-loading": d || void 0,
1101
1134
  "data-slot": "user-avatar",
1102
1135
  ...c,
1103
- children: [e === void 0 || o === !0 ? null : /* @__PURE__ */ i(we, {
1136
+ children: [e === void 0 || o === !0 ? null : /* @__PURE__ */ i(De, {
1104
1137
  alt: r ?? t,
1105
1138
  onLoadingStatusChange: u,
1106
1139
  src: e
1107
- }), /* @__PURE__ */ i(Te, { children: d ? /* @__PURE__ */ i(zt, {
1140
+ }), /* @__PURE__ */ i(Oe, { children: d ? /* @__PURE__ */ i(Ht, {
1108
1141
  className: "size-full rounded-full",
1109
1142
  "data-slot": "avatar-skeleton"
1110
- }) : n ?? Jt(t) })]
1143
+ }) : n ?? Qt(t) })]
1111
1144
  });
1112
1145
  }
1113
1146
  //#endregion
1114
1147
  //#region src/lib/auth-accent.ts
1115
- var Xt = {
1148
+ var en = {
1116
1149
  corpora: {
1117
1150
  "--auth-accent": "#E8B124",
1118
1151
  "--auth-accent-image": "none",
@@ -1123,19 +1156,19 @@ var Xt = {
1123
1156
  "--auth-accent-image": "linear-gradient(44deg in oklab, rgba(29,0,202,0.66) 3%, #3B0080 37%, rgba(36,0,72,0.86) 98%)",
1124
1157
  "--auth-accent-foreground": "oklch(0.985 0 0)"
1125
1158
  }
1126
- }, Zt = "border-transparent bg-[var(--auth-accent)] bg-[image:var(--auth-accent-image)] text-[var(--auth-accent-foreground)] shadow-none hover:bg-[var(--auth-accent)] hover:brightness-110 data-pressed:bg-[var(--auth-accent)] data-pressed:brightness-110 *:data-[slot=button-loading-indicator]:text-[var(--auth-accent-foreground)]", K = [
1159
+ }, tn = "border-transparent bg-[var(--auth-accent)] bg-[image:var(--auth-accent-image)] text-[var(--auth-accent-foreground)] shadow-none hover:bg-[var(--auth-accent)] hover:brightness-110 data-pressed:bg-[var(--auth-accent)] data-pressed:brightness-110 *:data-[slot=button-loading-indicator]:text-[var(--auth-accent-foreground)]", K = [
1127
1160
  .22,
1128
1161
  1,
1129
1162
  .36,
1130
1163
  1
1131
1164
  ];
1132
1165
  function q({ title: e, description: t, children: n, footer: r, className: o, logo: s, accent: c }) {
1133
- return /* @__PURE__ */ i(ge, {
1166
+ return /* @__PURE__ */ i(ye, {
1134
1167
  reducedMotion: "user",
1135
- children: /* @__PURE__ */ i(it, {
1168
+ children: /* @__PURE__ */ i(st, {
1136
1169
  className: V("w-full max-w-sm", o),
1137
1170
  "data-accent": c,
1138
- style: c ? Xt[c] : void 0,
1171
+ style: c ? en[c] : void 0,
1139
1172
  children: /* @__PURE__ */ a(B.div, {
1140
1173
  layout: !0,
1141
1174
  transition: {
@@ -1143,18 +1176,18 @@ function q({ title: e, description: t, children: n, footer: r, className: o, log
1143
1176
  ease: K
1144
1177
  },
1145
1178
  className: "flex flex-col",
1146
- children: [/* @__PURE__ */ a(Ie, { children: [/* @__PURE__ */ a(Ue, { children: [
1179
+ children: [/* @__PURE__ */ a(ze, { children: [/* @__PURE__ */ a(Ke, { children: [
1147
1180
  s && /* @__PURE__ */ i("div", {
1148
1181
  className: "mb-1.5 flex items-center [&_img:not([class*='h-'])]:h-8 [&_img]:w-auto [&_svg:not([class*='size-'])]:size-8",
1149
1182
  "data-slot": "auth-logo",
1150
1183
  children: s
1151
1184
  }),
1152
- /* @__PURE__ */ i(We, { children: e }),
1153
- t && /* @__PURE__ */ i(Ge, { children: t })
1154
- ] }), /* @__PURE__ */ i(qe, {
1185
+ /* @__PURE__ */ i(qe, { children: e }),
1186
+ t && /* @__PURE__ */ i(Je, { children: t })
1187
+ ] }), /* @__PURE__ */ i(Xe, {
1155
1188
  className: "overflow-hidden",
1156
1189
  children: n
1157
- })] }), r && /* @__PURE__ */ i(lt, {
1190
+ })] }), r && /* @__PURE__ */ i(ft, {
1158
1191
  className: "text-center text-sm text-muted-foreground",
1159
1192
  children: r
1160
1193
  })]
@@ -1192,7 +1225,7 @@ function J({ step: e, children: t, className: n }) {
1192
1225
  });
1193
1226
  }
1194
1227
  function Y({ show: e, children: t, className: n }) {
1195
- let [r, a] = D.useState({
1228
+ let [r, a] = A.useState({
1196
1229
  show: e,
1197
1230
  settled: e
1198
1231
  });
@@ -1324,21 +1357,21 @@ function Z({ title: e, description: t, children: n }) {
1324
1357
  ]
1325
1358
  });
1326
1359
  }
1327
- function Qt({ label: e = "Or" }) {
1360
+ function nn({ label: e = "Or" }) {
1328
1361
  return /* @__PURE__ */ a("div", {
1329
1362
  className: "flex items-center gap-3",
1330
1363
  children: [
1331
- /* @__PURE__ */ i(Ft, { className: "flex-1" }),
1364
+ /* @__PURE__ */ i(Rt, { className: "flex-1" }),
1332
1365
  /* @__PURE__ */ i("span", {
1333
1366
  className: "text-xs text-muted-foreground uppercase",
1334
1367
  children: e
1335
1368
  }),
1336
- /* @__PURE__ */ i(Ft, { className: "flex-1" })
1369
+ /* @__PURE__ */ i(Rt, { className: "flex-1" })
1337
1370
  ]
1338
1371
  });
1339
1372
  }
1340
- function $t(e, t) {
1341
- let [n, r] = D.useState({
1373
+ function rn(e, t) {
1374
+ let [n, r] = A.useState({
1342
1375
  restartKey: t,
1343
1376
  seconds: e,
1344
1377
  remaining: e
@@ -1347,7 +1380,7 @@ function $t(e, t) {
1347
1380
  restartKey: t,
1348
1381
  seconds: e,
1349
1382
  remaining: e
1350
- }), D.useEffect(() => {
1383
+ }), A.useEffect(() => {
1351
1384
  if (e <= 0) return;
1352
1385
  let t = window.setInterval(() => {
1353
1386
  r((e) => e.remaining <= 0 ? e : {
@@ -1360,8 +1393,8 @@ function $t(e, t) {
1360
1393
  }
1361
1394
  //#endregion
1362
1395
  //#region src/components/blocks/auth/code-auth-block.tsx
1363
- function en({ channel: e = "email", logo: t, accent: n, destination: o, length: s = 6, autoSubmit: c = !0, resendSeconds: l = 30, onVerify: u, onResend: d, onBack: f }) {
1364
- let [p, m] = D.useState("idle"), [h, g] = D.useState(null), [_, v] = D.useState(""), [b, x] = D.useState(0), C = $t(l, b), w = e === "sms" ? S : y, T = e === "sms" ? "phone" : "email", E = D.useCallback(async (e) => {
1396
+ function an({ channel: e = "email", logo: t, accent: n, destination: o, length: s = 6, autoSubmit: c = !0, resendSeconds: l = 30, onVerify: u, onResend: d, onBack: f }) {
1397
+ let [p, m] = A.useState("idle"), [h, g] = A.useState(null), [_, v] = A.useState(""), [y, x] = A.useState(0), S = rn(l, y), C = e === "sms" ? T : b, w = e === "sms" ? "phone" : "email", E = A.useCallback(async (e) => {
1365
1398
  g(null), m("loading");
1366
1399
  try {
1367
1400
  await u?.(e), m("success");
@@ -1369,10 +1402,10 @@ function en({ channel: e = "email", logo: t, accent: n, destination: o, length:
1369
1402
  m("idle"), v(""), g(e instanceof Error ? e.message : "Invalid code.");
1370
1403
  }
1371
1404
  }, [u]);
1372
- function O(e) {
1405
+ function D(e) {
1373
1406
  v(e), h && g(null), c && e.length === s && p === "idle" && E(e);
1374
1407
  }
1375
- async function k() {
1408
+ async function O() {
1376
1409
  x((e) => e + 1), v(""), g(null), await d?.();
1377
1410
  }
1378
1411
  return /* @__PURE__ */ i(q, {
@@ -1381,11 +1414,11 @@ function en({ channel: e = "email", logo: t, accent: n, destination: o, length:
1381
1414
  accent: n,
1382
1415
  description: /* @__PURE__ */ a("span", {
1383
1416
  className: "inline-flex items-center gap-1.5",
1384
- children: [/* @__PURE__ */ i(w, { className: "size-3.5 shrink-0" }), /* @__PURE__ */ a("span", { children: [
1417
+ children: [/* @__PURE__ */ i(C, { className: "size-3.5 shrink-0" }), /* @__PURE__ */ a("span", { children: [
1385
1418
  "We sent a ",
1386
1419
  s,
1387
1420
  "-digit code to your ",
1388
- T,
1421
+ w,
1389
1422
  o ? /* @__PURE__ */ a(r, { children: [" ", /* @__PURE__ */ i("span", {
1390
1423
  className: "font-medium text-foreground",
1391
1424
  children: o
@@ -1396,7 +1429,7 @@ function en({ channel: e = "email", logo: t, accent: n, destination: o, length:
1396
1429
  footer: p !== "success" && /* @__PURE__ */ a(H, {
1397
1430
  variant: "link",
1398
1431
  onClick: f,
1399
- children: ["Use a different ", T]
1432
+ children: ["Use a different ", w]
1400
1433
  }),
1401
1434
  children: /* @__PURE__ */ i(J, {
1402
1435
  step: p === "success" ? "success" : "form",
@@ -1419,12 +1452,12 @@ function en({ channel: e = "email", logo: t, accent: n, destination: o, length:
1419
1452
  duration: .4,
1420
1453
  ease: "easeInOut"
1421
1454
  },
1422
- children: /* @__PURE__ */ i(It, {
1455
+ children: /* @__PURE__ */ i(zt, {
1423
1456
  length: s,
1424
1457
  value: _,
1425
- onValueChange: O,
1458
+ onValueChange: D,
1426
1459
  disabled: p === "loading",
1427
- children: Array.from({ length: s }, (e, t) => /* @__PURE__ */ i(Lt, {
1460
+ children: Array.from({ length: s }, (e, t) => /* @__PURE__ */ i(Bt, {
1428
1461
  "aria-invalid": h ? !0 : void 0,
1429
1462
  "aria-label": `Digit ${t + 1} of ${s}`
1430
1463
  }, `slot-${t}`))
@@ -1445,17 +1478,17 @@ function en({ channel: e = "email", logo: t, accent: n, destination: o, length:
1445
1478
  ease: K
1446
1479
  },
1447
1480
  className: "text-center text-sm text-muted-foreground",
1448
- children: C > 0 ? /* @__PURE__ */ a(r, { children: [
1481
+ children: S > 0 ? /* @__PURE__ */ a(r, { children: [
1449
1482
  "Resend code in",
1450
1483
  " ",
1451
1484
  /* @__PURE__ */ a("span", {
1452
1485
  className: "font-medium tabular-nums text-foreground",
1453
- children: [C, "s"]
1486
+ children: [S, "s"]
1454
1487
  })
1455
1488
  ] }) : /* @__PURE__ */ i(H, {
1456
1489
  variant: "link",
1457
1490
  disabled: p === "loading",
1458
- onClick: () => void k(),
1491
+ onClick: () => void O(),
1459
1492
  children: "Resend code"
1460
1493
  })
1461
1494
  })
@@ -1466,8 +1499,8 @@ function en({ channel: e = "email", logo: t, accent: n, destination: o, length:
1466
1499
  }
1467
1500
  //#endregion
1468
1501
  //#region src/components/blocks/auth/forgot-password-block.tsx
1469
- function tn({ title: e = "Reset your password", logo: t, accent: n, description: o = "Enter your email and we will send you a reset link", onSubmit: s, onBackToLogin: c }) {
1470
- let u = D.useId(), [d, f] = D.useState("idle"), [p, m] = D.useState(null), [h, g] = D.useState("");
1502
+ function on({ title: e = "Reset your password", logo: t, accent: n, description: o = "Enter your email and we will send you a reset link", onSubmit: s, onBackToLogin: c }) {
1503
+ let u = A.useId(), [d, f] = A.useState("idle"), [p, m] = A.useState(null), [h, g] = A.useState("");
1471
1504
  async function _(e) {
1472
1505
  e.preventDefault(), m(null), f("loading");
1473
1506
  try {
@@ -1541,13 +1574,13 @@ function tn({ title: e = "Reset your password", logo: t, accent: n, description:
1541
1574
  }
1542
1575
  //#endregion
1543
1576
  //#region src/components/blocks/auth/linked-accounts-block.tsx
1544
- var nn = "This is your only way to sign in, so it can't be disconnected.";
1545
- function rn({ title: e = "Connected accounts", description: t = "Manage the accounts you can use to sign in.", identities: n = [], providers: r = [
1577
+ var sn = "This is your only way to sign in, so it can't be disconnected.";
1578
+ function cn({ title: e = "Connected accounts", description: t = "Manage the accounts you can use to sign in.", identities: n = [], providers: r = [
1546
1579
  "google",
1547
1580
  "apple",
1548
1581
  "github"
1549
1582
  ], loading: o = !1, hasOtherSignInMethods: s = !1, onLink: c, onUnlink: l, className: u }) {
1550
- let d = D.useId(), [f, p] = D.useState(null), [m, h] = D.useState(null), [g, _] = D.useState(null), v = new Set(n.map((e) => e.provider)), y = r.filter((e) => !v.has(e)), b = m !== null || g !== null, x = !s && n.length <= 1;
1583
+ let d = A.useId(), [f, p] = A.useState(null), [m, h] = A.useState(null), [g, _] = A.useState(null), v = new Set(n.map((e) => e.provider)), y = r.filter((e) => !v.has(e)), b = m !== null || g !== null, x = !s && n.length <= 1;
1551
1584
  async function S(e) {
1552
1585
  if (!b) {
1553
1586
  p(null), h(e);
@@ -1572,14 +1605,14 @@ function rn({ title: e = "Connected accounts", description: t = "Manage the acco
1572
1605
  }
1573
1606
  }
1574
1607
  }
1575
- return /* @__PURE__ */ i(ge, {
1608
+ return /* @__PURE__ */ i(ye, {
1576
1609
  reducedMotion: "user",
1577
- children: /* @__PURE__ */ a(Ie, {
1610
+ children: /* @__PURE__ */ a(ze, {
1578
1611
  className: V("w-full", u),
1579
1612
  "data-slot": "auth-block",
1580
- children: [/* @__PURE__ */ a(Ue, { children: [/* @__PURE__ */ i(We, { children: e }), /* @__PURE__ */ i(Ge, { children: t })] }), /* @__PURE__ */ i(qe, { children: o ? /* @__PURE__ */ a("div", {
1613
+ children: [/* @__PURE__ */ a(Ke, { children: [/* @__PURE__ */ i(qe, { children: e }), /* @__PURE__ */ i(Je, { children: t })] }), /* @__PURE__ */ i(Xe, { children: o ? /* @__PURE__ */ a("div", {
1581
1614
  className: "flex items-center gap-2 text-sm text-muted-foreground",
1582
- children: [/* @__PURE__ */ i(Ee, { className: "size-4" }), "Loading connected accounts…"]
1615
+ children: [/* @__PURE__ */ i(ke, { className: "size-4" }), "Loading connected accounts…"]
1583
1616
  }) : /* @__PURE__ */ a(B.div, {
1584
1617
  layout: !0,
1585
1618
  transition: {
@@ -1595,7 +1628,7 @@ function rn({ title: e = "Connected accounts", description: t = "Manage the acco
1595
1628
  children: /* @__PURE__ */ i(z, {
1596
1629
  initial: !1,
1597
1630
  children: n.map((e, t) => {
1598
- let { label: n, Icon: r } = Gt[e.provider];
1631
+ let { label: n, BrandIcon: r, brandClassName: o } = Yt[e.provider];
1599
1632
  return /* @__PURE__ */ a(B.li, {
1600
1633
  layout: !0,
1601
1634
  className: "flex items-center justify-between gap-3 rounded-lg border px-3 py-2",
@@ -1620,11 +1653,11 @@ function rn({ title: e = "Connected accounts", description: t = "Manage the acco
1620
1653
  className: "flex min-w-0 items-center gap-2.5",
1621
1654
  children: [/* @__PURE__ */ i(r, {
1622
1655
  "aria-hidden": "true",
1623
- className: "size-4 text-muted-foreground"
1656
+ className: V("size-4", o)
1624
1657
  }), /* @__PURE__ */ a("div", {
1625
1658
  className: "flex min-w-0 flex-col",
1626
1659
  children: [/* @__PURE__ */ i("span", {
1627
- className: "font-medium text-sm",
1660
+ className: "text-sm font-medium",
1628
1661
  children: n
1629
1662
  }), e.email && /* @__PURE__ */ i("span", {
1630
1663
  className: "truncate text-xs text-muted-foreground",
@@ -1652,10 +1685,10 @@ function rn({ title: e = "Connected accounts", description: t = "Manage the acco
1652
1685
  x && n.length > 0 && /* @__PURE__ */ i("p", {
1653
1686
  className: "text-xs text-muted-foreground",
1654
1687
  id: d,
1655
- children: nn
1688
+ children: sn
1656
1689
  }),
1657
1690
  y.map((e) => {
1658
- let { label: t, Icon: n } = Gt[e];
1691
+ let { label: t, BrandIcon: n, brandClassName: r } = Yt[e];
1659
1692
  return /* @__PURE__ */ a(H, {
1660
1693
  className: "w-full",
1661
1694
  type: "button",
@@ -1663,7 +1696,10 @@ function rn({ title: e = "Connected accounts", description: t = "Manage the acco
1663
1696
  disabled: b,
1664
1697
  loading: m === e,
1665
1698
  onClick: () => void S(e),
1666
- children: [/* @__PURE__ */ i(n, { "aria-hidden": "true" }), /* @__PURE__ */ a("span", {
1699
+ children: [/* @__PURE__ */ i(n, {
1700
+ "aria-hidden": "true",
1701
+ className: r
1702
+ }), /* @__PURE__ */ a("span", {
1667
1703
  className: "flex-1",
1668
1704
  children: ["Connect ", t]
1669
1705
  })]
@@ -1676,14 +1712,14 @@ function rn({ title: e = "Connected accounts", description: t = "Manage the acco
1676
1712
  }
1677
1713
  //#endregion
1678
1714
  //#region src/components/blocks/auth/login-block.tsx
1679
- function an({ title: e = "Login to your account", description: t = "Enter your email and password to login", logo: n, accent: o, providers: s = [
1715
+ function ln({ title: e = "Login to your account", description: t = "Enter your email and password to login", logo: n, accent: o, providers: s = [
1680
1716
  "google",
1681
1717
  "apple",
1682
1718
  "github"
1683
1719
  ], showRememberMe: c = !0, showForgotPassword: l = !0, onSubmit: u, onProviderSelect: d, onForgotPassword: f, onSignup: p }) {
1684
- let m = D.useId(), h = D.useId(), [g, _] = D.useState("idle"), [v, y] = D.useState(null), [b, x] = D.useState(null), [S, C] = D.useState(!1), [w, T] = D.useState(""), [E, O] = D.useState(!1), [k, A] = D.useState(""), j = g === "loading" || b !== null, M = k.trim().length > 0, N = E && M;
1685
- async function P(e) {
1686
- if (e.preventDefault(), !N) return;
1720
+ let m = A.useId(), h = A.useId(), [g, _] = A.useState("idle"), [v, y] = A.useState(null), [b, x] = A.useState(null), [S, C] = A.useState(!1), [w, T] = A.useState(""), [E, D] = A.useState(!1), [O, k] = A.useState(""), j = g === "loading" || b !== null, ee = O.trim().length > 0, te = E && ee;
1721
+ async function ne(e) {
1722
+ if (e.preventDefault(), !te) return;
1687
1723
  let t = new FormData(e.currentTarget);
1688
1724
  y(null), _("loading");
1689
1725
  try {
@@ -1696,7 +1732,7 @@ function an({ title: e = "Login to your account", description: t = "Enter your e
1696
1732
  _("idle"), y(e instanceof Error ? e.message : "Unable to login.");
1697
1733
  }
1698
1734
  }
1699
- async function ee(e) {
1735
+ async function M(e) {
1700
1736
  y(null), x(e);
1701
1737
  try {
1702
1738
  await d?.(e), _("success");
@@ -1729,7 +1765,7 @@ function an({ title: e = "Login to your account", description: t = "Enter your e
1729
1765
  className: "flex flex-col gap-4",
1730
1766
  children: [/* @__PURE__ */ a("form", {
1731
1767
  className: "flex flex-col gap-4",
1732
- onSubmit: P,
1768
+ onSubmit: ne,
1733
1769
  children: [
1734
1770
  /* @__PURE__ */ a(U, {
1735
1771
  name: "email",
@@ -1747,7 +1783,7 @@ function an({ title: e = "Login to your account", description: t = "Enter your e
1747
1783
  disabled: j,
1748
1784
  value: w,
1749
1785
  onChange: (e) => {
1750
- T(e.currentTarget.value), O(e.currentTarget.validity.valid);
1786
+ T(e.currentTarget.value), D(e.currentTarget.validity.valid);
1751
1787
  }
1752
1788
  })]
1753
1789
  }),
@@ -1760,14 +1796,14 @@ function an({ title: e = "Login to your account", description: t = "Enter your e
1760
1796
  htmlFor: "password",
1761
1797
  children: "Password"
1762
1798
  }),
1763
- /* @__PURE__ */ i(Wt, {
1799
+ /* @__PURE__ */ i(qt, {
1764
1800
  id: "password",
1765
1801
  name: "password",
1766
1802
  autoComplete: "current-password",
1767
1803
  required: !0,
1768
1804
  disabled: j,
1769
- value: k,
1770
- onChange: (e) => A(e.target.value)
1805
+ value: O,
1806
+ onChange: (e) => k(e.target.value)
1771
1807
  }),
1772
1808
  l && /* @__PURE__ */ i(H, {
1773
1809
  variant: "link",
@@ -1781,12 +1817,12 @@ function an({ title: e = "Login to your account", description: t = "Enter your e
1781
1817
  }),
1782
1818
  c && /* @__PURE__ */ a("div", {
1783
1819
  className: "flex items-center gap-2",
1784
- children: [/* @__PURE__ */ i(Qe, {
1820
+ children: [/* @__PURE__ */ i(tt, {
1785
1821
  id: h,
1786
1822
  checked: S,
1787
1823
  onCheckedChange: (e) => C(e),
1788
1824
  disabled: j
1789
- }), /* @__PURE__ */ i(_t, {
1825
+ }), /* @__PURE__ */ i(bt, {
1790
1826
  htmlFor: h,
1791
1827
  className: "font-normal",
1792
1828
  children: "Remember me"
@@ -1794,7 +1830,7 @@ function an({ title: e = "Login to your account", description: t = "Enter your e
1794
1830
  }),
1795
1831
  /* @__PURE__ */ i(X, { message: v }),
1796
1832
  /* @__PURE__ */ i(Y, {
1797
- show: N,
1833
+ show: te,
1798
1834
  children: /* @__PURE__ */ i(H, {
1799
1835
  className: V("w-full", o && "border-transparent bg-[var(--auth-accent)] bg-[image:var(--auth-accent-image)] text-[var(--auth-accent-foreground)] shadow-none hover:bg-[var(--auth-accent)] hover:brightness-110 data-pressed:bg-[var(--auth-accent)] data-pressed:brightness-110 *:data-[slot=button-loading-indicator]:text-[var(--auth-accent-foreground)]"),
1800
1836
  type: "submit",
@@ -1805,14 +1841,14 @@ function an({ title: e = "Login to your account", description: t = "Enter your e
1805
1841
  })
1806
1842
  ]
1807
1843
  }), s.length > 0 && /* @__PURE__ */ a(Y, {
1808
- show: !N,
1844
+ show: !te,
1809
1845
  className: "flex flex-col gap-4",
1810
- children: [/* @__PURE__ */ i(Qt, { label: "Or continue with" }), /* @__PURE__ */ i(qt, {
1846
+ children: [/* @__PURE__ */ i(nn, { label: "Or continue with" }), /* @__PURE__ */ i(Zt, {
1811
1847
  providers: s,
1812
1848
  action: "login",
1813
1849
  loadingProvider: b,
1814
1850
  disabled: g === "loading",
1815
- onSelect: ee
1851
+ onSelect: M
1816
1852
  })]
1817
1853
  })]
1818
1854
  })
@@ -1821,10 +1857,10 @@ function an({ title: e = "Login to your account", description: t = "Enter your e
1821
1857
  }
1822
1858
  //#endregion
1823
1859
  //#region src/components/blocks/auth/onboarding/profile-step.tsx
1824
- function on(e, t) {
1860
+ function un(e, t) {
1825
1861
  return e.kind === "checkbox" ? typeof t == "boolean" && t : typeof t == "string" ? t : "";
1826
1862
  }
1827
- function sn(e, t) {
1863
+ function dn(e, t) {
1828
1864
  let n = e.required === !0;
1829
1865
  if (e.kind === "checkbox") return n && t !== !0 ? `${e.label} is required` : null;
1830
1866
  let r = typeof t == "string" ? t.trim() : "";
@@ -1836,8 +1872,8 @@ function sn(e, t) {
1836
1872
  }
1837
1873
  return e.kind === "select" && r.length > 0 && !e.options.map((e) => e.value).includes(r) ? `Choose a valid option for ${e.label}` : e.validate?.(r) ?? null;
1838
1874
  }
1839
- function cn({ step: e, values: t, submitting: n = !1, submitLabel: r, onSubmit: o, onBack: s, onDraftChange: c }) {
1840
- let l = D.useId(), [u, d] = D.useState(() => Object.fromEntries(e.fields.map((e) => [e.name, on(e, t[e.name])]))), [f, p] = D.useState({});
1875
+ function fn({ step: e, values: t, submitting: n = !1, submitLabel: r, onSubmit: o, onBack: s, onDraftChange: c }) {
1876
+ let l = A.useId(), [u, d] = A.useState(() => Object.fromEntries(e.fields.map((e) => [e.name, un(e, t[e.name])]))), [f, p] = A.useState({});
1841
1877
  function m(e, t) {
1842
1878
  d((n) => ({
1843
1879
  ...n,
@@ -1851,7 +1887,7 @@ function cn({ step: e, values: t, submitting: n = !1, submitLabel: r, onSubmit:
1851
1887
  if (t.preventDefault(), n) return;
1852
1888
  let r = {};
1853
1889
  for (let t of e.fields) {
1854
- let e = sn(t, u[t.name]);
1890
+ let e = dn(t, u[t.name]);
1855
1891
  e && (r[t.name] = e);
1856
1892
  }
1857
1893
  if (Object.keys(r).length > 0) {
@@ -1878,17 +1914,17 @@ function cn({ step: e, values: t, submitting: n = !1, submitLabel: r, onSubmit:
1878
1914
  className: "gap-1.5",
1879
1915
  children: [/* @__PURE__ */ a("div", {
1880
1916
  className: "flex items-center gap-2",
1881
- children: [/* @__PURE__ */ i(Qe, {
1917
+ children: [/* @__PURE__ */ i(tt, {
1882
1918
  id: r,
1883
1919
  checked: o === !0,
1884
1920
  disabled: n,
1885
1921
  onCheckedChange: (t) => m(e.name, t)
1886
- }), /* @__PURE__ */ i(_t, {
1922
+ }), /* @__PURE__ */ i(bt, {
1887
1923
  htmlFor: r,
1888
1924
  className: "font-normal",
1889
1925
  children: e.label
1890
1926
  })]
1891
- }), t && /* @__PURE__ */ i(tt, {
1927
+ }), t && /* @__PURE__ */ i(it, {
1892
1928
  match: !0,
1893
1929
  children: t
1894
1930
  })]
@@ -1900,7 +1936,7 @@ function cn({ step: e, values: t, submitting: n = !1, submitLabel: r, onSubmit:
1900
1936
  htmlFor: r,
1901
1937
  children: e.label
1902
1938
  }),
1903
- e.kind === "textarea" ? /* @__PURE__ */ i(ut, {
1939
+ e.kind === "textarea" ? /* @__PURE__ */ i(pt, {
1904
1940
  id: r,
1905
1941
  "aria-invalid": t ? !0 : void 0,
1906
1942
  disabled: n,
@@ -1930,7 +1966,7 @@ function cn({ step: e, values: t, submitting: n = !1, submitLabel: r, onSubmit:
1930
1966
  value: String(o ?? ""),
1931
1967
  onChange: (t) => m(e.name, t.target.value)
1932
1968
  }),
1933
- t && /* @__PURE__ */ i(tt, {
1969
+ t && /* @__PURE__ */ i(it, {
1934
1970
  match: !0,
1935
1971
  children: t
1936
1972
  })
@@ -1955,7 +1991,7 @@ function cn({ step: e, values: t, submitting: n = !1, submitLabel: r, onSubmit:
1955
1991
  }
1956
1992
  //#endregion
1957
1993
  //#region src/components/blocks/auth/onboarding-block.tsx
1958
- var ln = [{
1994
+ var pn = [{
1959
1995
  id: "profile",
1960
1996
  title: "Your profile",
1961
1997
  fields: [{
@@ -1965,9 +2001,9 @@ var ln = [{
1965
2001
  required: !0
1966
2002
  }]
1967
2003
  }];
1968
- function un({ steps: e = ln, logo: t, accent: n, onStepSubmit: r, onComplete: o, showCompleteScreen: s = !0, className: c }) {
1969
- let l = D.useRef(null), u = D.useRef({}), [d, f] = D.useState({}), [p, m] = D.useState(0), [h, g] = D.useState({}), [_, v] = D.useState("idle"), [y, b] = D.useState(null), x = _ === "success", S = e[p], C = p >= e.length - 1;
1970
- D.useEffect(() => {
2004
+ function mn({ steps: e = pn, logo: t, accent: n, onStepSubmit: r, onComplete: o, showCompleteScreen: s = !0, className: c }) {
2005
+ let l = A.useRef(null), u = A.useRef({}), [d, f] = A.useState({}), [p, m] = A.useState(0), [h, g] = A.useState({}), [_, v] = A.useState("idle"), [y, b] = A.useState(null), x = _ === "success", S = e[p], C = p >= e.length - 1;
2006
+ A.useEffect(() => {
1971
2007
  y || l.current?.focus();
1972
2008
  }, [
1973
2009
  p,
@@ -2022,7 +2058,7 @@ function un({ steps: e = ln, logo: t, accent: n, onStepSubmit: r, onComplete: o,
2022
2058
  children: S.title
2023
2059
  }),
2024
2060
  /* @__PURE__ */ i(X, { message: y }),
2025
- /* @__PURE__ */ i(cn, {
2061
+ /* @__PURE__ */ i(fn, {
2026
2062
  step: S,
2027
2063
  values: {
2028
2064
  ...h,
@@ -2048,15 +2084,15 @@ function un({ steps: e = ln, logo: t, accent: n, onStepSubmit: r, onComplete: o,
2048
2084
  }
2049
2085
  //#endregion
2050
2086
  //#region src/components/blocks/auth/passkey-manager-block.tsx
2051
- var dn = 120, fn = "This is your last passkey. After deleting it you won't be able to sign in with a passkey until you register a new one.";
2052
- function pn(e) {
2087
+ var hn = 120, gn = "This is your last passkey. After deleting it you won't be able to sign in with a passkey until you register a new one.";
2088
+ function _n(e) {
2053
2089
  if (!e) return null;
2054
2090
  let t = new Date(e);
2055
2091
  return Number.isNaN(t.getTime()) ? null : t.toLocaleDateString();
2056
2092
  }
2057
- function mn({ title: e = "Passkeys", description: t = "Sign in without a password using your device's biometrics or security key.", passkeys: n = [], available: r = !0, loading: o = !1, onRegister: s, onRename: c, onDelete: l, className: u }) {
2058
- let [d, f] = D.useState(null), [p, m] = D.useState(!1), [h, g] = D.useState(!1), [_, v] = D.useState(null), [y, b] = D.useState(""), [x, S] = D.useState(null), [C, w] = D.useState(null), T = n.length === 1;
2059
- async function E(e) {
2093
+ function vn({ title: e = "Passkeys", description: t = "Sign in without a password using your device's biometrics or security key.", passkeys: n = [], available: r = !0, loading: o = !1, onRegister: s, onRename: c, onDelete: l, className: u }) {
2094
+ let [d, f] = A.useState(null), [p, m] = A.useState(!1), [h, g] = A.useState(!1), [v, y] = A.useState(null), [b, x] = A.useState(""), [S, C] = A.useState(null), [w, T] = A.useState(null), E = n.length === 1;
2095
+ async function D(e) {
2060
2096
  if (p) return { ok: !1 };
2061
2097
  f(null), m(!0);
2062
2098
  try {
@@ -2071,31 +2107,31 @@ function mn({ title: e = "Passkeys", description: t = "Sign in without a passwor
2071
2107
  }
2072
2108
  }
2073
2109
  async function O() {
2074
- g(!0), await E(() => s?.()), g(!1);
2110
+ g(!0), await D(() => s?.()), g(!1);
2075
2111
  }
2076
2112
  function k(e) {
2077
- w(null), v(e.id), b(e.name ?? ""), S(null);
2113
+ T(null), y(e.id), x(e.name ?? ""), C(null);
2078
2114
  }
2079
- async function A(e) {
2080
- let t = y.trim();
2081
- if (t.length < 1 || t.length > dn) {
2082
- S(`Name must be between 1 and ${dn} characters.`);
2115
+ async function j(e) {
2116
+ let t = b.trim();
2117
+ if (t.length < 1 || t.length > hn) {
2118
+ C(`Name must be between 1 and ${hn} characters.`);
2083
2119
  return;
2084
2120
  }
2085
- (await E(() => c?.(e, t))).ok && (v(null), S(null));
2121
+ (await D(() => c?.(e, t))).ok && (y(null), C(null));
2086
2122
  }
2087
- async function j(e) {
2088
- let t = await E(() => l?.(e));
2089
- w(null), t.ok && _ === e && v(null);
2123
+ async function ee(e) {
2124
+ let t = await D(() => l?.(e));
2125
+ T(null), t.ok && v === e && y(null);
2090
2126
  }
2091
- return /* @__PURE__ */ i(ge, {
2127
+ return /* @__PURE__ */ i(ye, {
2092
2128
  reducedMotion: "user",
2093
- children: /* @__PURE__ */ a(Ie, {
2129
+ children: /* @__PURE__ */ a(ze, {
2094
2130
  className: V("w-full", u),
2095
2131
  "data-slot": "auth-block",
2096
- children: [/* @__PURE__ */ a(Ue, { children: [/* @__PURE__ */ i(We, { children: e }), /* @__PURE__ */ i(Ge, { children: t })] }), /* @__PURE__ */ i(qe, { children: r ? o ? /* @__PURE__ */ a("div", {
2132
+ children: [/* @__PURE__ */ a(Ke, { children: [/* @__PURE__ */ i(qe, { children: e }), /* @__PURE__ */ i(Je, { children: t })] }), /* @__PURE__ */ i(Xe, { children: r ? o ? /* @__PURE__ */ a("div", {
2097
2133
  className: "flex items-center gap-2 text-sm text-muted-foreground",
2098
- children: [/* @__PURE__ */ i(Ee, { className: "size-4" }), "Loading passkeys…"]
2134
+ children: [/* @__PURE__ */ i(ke, { className: "size-4" }), "Loading passkeys…"]
2099
2135
  }) : /* @__PURE__ */ a(B.div, {
2100
2136
  layout: !0,
2101
2137
  transition: {
@@ -2111,7 +2147,7 @@ function mn({ title: e = "Passkeys", description: t = "Sign in without a passwor
2111
2147
  children: /* @__PURE__ */ i(z, {
2112
2148
  initial: !1,
2113
2149
  children: n.map((e, t) => {
2114
- let n = e.name ?? "Passkey", r = pn(e.createdAt), o = pn(e.lastUsedAt);
2150
+ let n = e.name ?? "Passkey", r = _n(e.createdAt), o = _n(e.lastUsedAt);
2115
2151
  return /* @__PURE__ */ a(B.li, {
2116
2152
  layout: !0,
2117
2153
  className: "flex flex-col gap-2 rounded-lg border px-3 py-2",
@@ -2136,17 +2172,24 @@ function mn({ title: e = "Passkeys", description: t = "Sign in without a passwor
2136
2172
  /* @__PURE__ */ a("div", {
2137
2173
  className: "flex items-center justify-between gap-3",
2138
2174
  children: [/* @__PURE__ */ a("div", {
2139
- className: "flex min-w-0 flex-col",
2175
+ className: "flex min-w-0 items-center gap-2.5",
2140
2176
  children: [/* @__PURE__ */ i("span", {
2141
- className: "truncate font-medium text-sm",
2142
- children: n
2143
- }), /* @__PURE__ */ a("span", {
2144
- className: "text-xs text-muted-foreground",
2145
- children: [
2146
- r ? `Added ${r}` : null,
2147
- r && o ? " · " : null,
2148
- o ? `Last used ${o}` : null
2149
- ]
2177
+ "aria-hidden": "true",
2178
+ className: "grid size-8 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground",
2179
+ children: /* @__PURE__ */ i(_, { className: "size-4" })
2180
+ }), /* @__PURE__ */ a("div", {
2181
+ className: "flex min-w-0 flex-col",
2182
+ children: [/* @__PURE__ */ i("span", {
2183
+ className: "truncate text-sm font-medium",
2184
+ children: n
2185
+ }), /* @__PURE__ */ a("span", {
2186
+ className: "text-xs text-muted-foreground",
2187
+ children: [
2188
+ r ? `Added ${r}` : null,
2189
+ r && o ? " · " : null,
2190
+ o ? `Last used ${o}` : null
2191
+ ]
2192
+ })]
2150
2193
  })]
2151
2194
  }), /* @__PURE__ */ a("div", {
2152
2195
  className: "flex shrink-0 gap-2",
@@ -2165,23 +2208,23 @@ function mn({ title: e = "Passkeys", description: t = "Sign in without a passwor
2165
2208
  variant: "destructive-outline",
2166
2209
  disabled: p,
2167
2210
  onClick: () => {
2168
- v(null), w(e.id);
2211
+ y(null), T(e.id);
2169
2212
  },
2170
2213
  children: "Delete"
2171
2214
  })]
2172
2215
  })]
2173
2216
  }),
2174
2217
  /* @__PURE__ */ i(Y, {
2175
- show: _ === e.id,
2218
+ show: v === e.id,
2176
2219
  children: /* @__PURE__ */ a("form", {
2177
2220
  className: "flex items-start gap-2 pt-1",
2178
2221
  onSubmit: (t) => {
2179
- t.preventDefault(), A(e.id);
2222
+ t.preventDefault(), j(e.id);
2180
2223
  },
2181
2224
  children: [
2182
2225
  /* @__PURE__ */ a(U, {
2183
2226
  className: "min-w-0 grow",
2184
- invalid: !!x,
2227
+ invalid: !!S,
2185
2228
  children: [
2186
2229
  /* @__PURE__ */ i(W, {
2187
2230
  className: "sr-only",
@@ -2189,16 +2232,16 @@ function mn({ title: e = "Passkeys", description: t = "Sign in without a passwor
2189
2232
  }),
2190
2233
  /* @__PURE__ */ i(G, {
2191
2234
  "aria-label": "Passkey name",
2192
- "aria-invalid": x ? !0 : void 0,
2235
+ "aria-invalid": S ? !0 : void 0,
2193
2236
  autoFocus: !0,
2194
2237
  disabled: p,
2195
2238
  maxLength: 121,
2196
- value: y,
2197
- onChange: (e) => b(e.target.value)
2239
+ value: b,
2240
+ onChange: (e) => x(e.target.value)
2198
2241
  }),
2199
- x && /* @__PURE__ */ i(tt, {
2242
+ S && /* @__PURE__ */ i(it, {
2200
2243
  match: !0,
2201
- children: x
2244
+ children: S
2202
2245
  })
2203
2246
  ]
2204
2247
  }),
@@ -2213,14 +2256,14 @@ function mn({ title: e = "Passkeys", description: t = "Sign in without a passwor
2213
2256
  type: "button",
2214
2257
  variant: "ghost",
2215
2258
  disabled: p,
2216
- onClick: () => v(null),
2259
+ onClick: () => y(null),
2217
2260
  children: "Cancel"
2218
2261
  })
2219
2262
  ]
2220
2263
  })
2221
2264
  }),
2222
2265
  /* @__PURE__ */ i(Y, {
2223
- show: C === e.id,
2266
+ show: w === e.id,
2224
2267
  children: /* @__PURE__ */ a("div", {
2225
2268
  className: "flex flex-col gap-2 rounded-lg bg-muted/50 p-2",
2226
2269
  role: "alertdialog",
@@ -2230,9 +2273,9 @@ function mn({ title: e = "Passkeys", description: t = "Sign in without a passwor
2230
2273
  className: "text-sm",
2231
2274
  children: "Delete this passkey? It can no longer be used to sign in."
2232
2275
  }),
2233
- T && /* @__PURE__ */ i("p", {
2276
+ E && /* @__PURE__ */ i("p", {
2234
2277
  className: "text-xs text-destructive-foreground",
2235
- children: fn
2278
+ children: gn
2236
2279
  }),
2237
2280
  /* @__PURE__ */ a("div", {
2238
2281
  className: "flex gap-2",
@@ -2241,14 +2284,14 @@ function mn({ title: e = "Passkeys", description: t = "Sign in without a passwor
2241
2284
  type: "button",
2242
2285
  variant: "destructive",
2243
2286
  loading: p,
2244
- onClick: () => void j(e.id),
2287
+ onClick: () => void ee(e.id),
2245
2288
  children: "Delete passkey"
2246
2289
  }), /* @__PURE__ */ i(H, {
2247
2290
  size: "sm",
2248
2291
  type: "button",
2249
2292
  variant: "ghost",
2250
2293
  disabled: p,
2251
- onClick: () => w(null),
2294
+ onClick: () => T(null),
2252
2295
  children: "Keep it"
2253
2296
  })]
2254
2297
  })
@@ -2282,8 +2325,8 @@ function mn({ title: e = "Passkeys", description: t = "Sign in without a passwor
2282
2325
  }
2283
2326
  //#endregion
2284
2327
  //#region src/components/blocks/auth/passkey-sign-in-block.tsx
2285
- function hn({ available: e = !0, label: t = "Sign in with a passkey", onSignIn: n, fallbackHint: r = "You can still sign in with your other methods below.", className: o }) {
2286
- let [s, c] = D.useState(null), [l, u] = D.useState(!1);
2328
+ function yn({ available: e = !0, label: t = "Sign in with a passkey", onSignIn: n, fallbackHint: r = "You can still sign in with your other methods below.", className: o }) {
2329
+ let [s, c] = A.useState(null), [l, u] = A.useState(!1);
2287
2330
  if (!e) return null;
2288
2331
  async function d() {
2289
2332
  if (!l) {
@@ -2324,22 +2367,22 @@ function hn({ available: e = !0, label: t = "Sign in with a passkey", onSignIn:
2324
2367
  }
2325
2368
  //#endregion
2326
2369
  //#region src/components/blocks/auth/signup-block.tsx
2327
- function gn({ title: e = "Create your account", description: t = "Start exploring manuscripts in minutes", logo: n, accent: o, providers: s = [
2370
+ function bn({ title: e = "Create your account", description: t = "Start exploring manuscripts in minutes", logo: n, accent: o, providers: s = [
2328
2371
  "google",
2329
2372
  "apple",
2330
2373
  "github"
2331
2374
  ], showNameField: c = !0, showTerms: l = !0, termsChecked: u, defaultTermsChecked: d = !1, onTermsCheckedChange: f, enforceStrongPassword: p = !0, onSubmit: m, termsComponent: h, onProviderSelect: g, onLogin: _, onTerms: v }) {
2332
- let y = D.useId(), b = D.useId(), x = D.useId(), S = D.useId(), [C, w] = D.useState("idle"), [T, E] = D.useState(null), [O, k] = D.useState(null), [A, j] = D.useState(""), [M, N] = D.useState(d), P = u ?? M;
2333
- function ee(e) {
2334
- u === void 0 && N(e), f?.(e);
2375
+ let y = A.useId(), b = A.useId(), x = A.useId(), S = A.useId(), [C, w] = A.useState("idle"), [T, E] = A.useState(null), [D, O] = A.useState(null), [k, j] = A.useState(""), [ee, te] = A.useState(d), ne = u ?? ee;
2376
+ function M(e) {
2377
+ u === void 0 && te(e), f?.(e);
2335
2378
  }
2336
- let [F, te] = D.useState(!1), [ne, re] = D.useState(!1), I = C === "loading" || O !== null, ie = !p || Ht(A) === Vt.length, ae = A.trim().length > 0 && ie, oe = (!c || ne) && F && ae;
2379
+ let [re, N] = A.useState(!1), [ie, P] = A.useState(!1), F = C === "loading" || D !== null, ae = !p || Gt(k) === Wt.length, oe = k.trim().length > 0 && ae, I = (!c || ie) && re && oe;
2337
2380
  async function se(e) {
2338
- if (e.preventDefault(), E(null), !ie) {
2381
+ if (e.preventDefault(), E(null), !ae) {
2339
2382
  E("Please meet all password requirements.");
2340
2383
  return;
2341
2384
  }
2342
- if (l && !P) {
2385
+ if (l && !ne) {
2343
2386
  E("Please accept the terms to continue.");
2344
2387
  return;
2345
2388
  }
@@ -2349,20 +2392,20 @@ function gn({ title: e = "Create your account", description: t = "Start explorin
2349
2392
  await m?.({
2350
2393
  name: String(t.get("name") ?? ""),
2351
2394
  email: String(t.get("email") ?? ""),
2352
- password: A
2395
+ password: k
2353
2396
  }), w("success");
2354
2397
  } catch (e) {
2355
2398
  w("idle"), E(e instanceof Error ? e.message : "Unable to create account.");
2356
2399
  }
2357
2400
  }
2358
2401
  async function ce(e) {
2359
- E(null), k(e);
2402
+ E(null), O(e);
2360
2403
  try {
2361
2404
  await g?.(e), w("success");
2362
2405
  } catch (e) {
2363
2406
  E(e instanceof Error ? e.message : "Unable to create account.");
2364
2407
  } finally {
2365
- k(null);
2408
+ O(null);
2366
2409
  }
2367
2410
  }
2368
2411
  return /* @__PURE__ */ i(q, {
@@ -2387,15 +2430,15 @@ function gn({ title: e = "Create your account", description: t = "Start explorin
2387
2430
  }) : /* @__PURE__ */ a("div", {
2388
2431
  className: "flex flex-col gap-4",
2389
2432
  children: [s.length > 0 && /* @__PURE__ */ a(Y, {
2390
- show: !oe,
2433
+ show: !I,
2391
2434
  className: "flex flex-col gap-4",
2392
- children: [/* @__PURE__ */ i(qt, {
2435
+ children: [/* @__PURE__ */ i(Zt, {
2393
2436
  providers: s,
2394
2437
  action: "signup",
2395
- loadingProvider: O,
2438
+ loadingProvider: D,
2396
2439
  disabled: C === "loading",
2397
2440
  onSelect: ce
2398
- }), /* @__PURE__ */ i(Qt, { label: "Or with email" })]
2441
+ }), /* @__PURE__ */ i(nn, { label: "Or with email" })]
2399
2442
  }), /* @__PURE__ */ a("form", {
2400
2443
  className: "flex flex-col gap-4",
2401
2444
  onSubmit: se,
@@ -2412,8 +2455,8 @@ function gn({ title: e = "Create your account", description: t = "Start explorin
2412
2455
  autoComplete: "name",
2413
2456
  placeholder: "Your name",
2414
2457
  required: !0,
2415
- disabled: I,
2416
- onChange: (e) => re(e.currentTarget.validity.valid)
2458
+ disabled: F,
2459
+ onChange: (e) => P(e.currentTarget.validity.valid)
2417
2460
  })]
2418
2461
  }),
2419
2462
  /* @__PURE__ */ a(U, {
@@ -2429,18 +2472,18 @@ function gn({ title: e = "Create your account", description: t = "Start explorin
2429
2472
  autoComplete: "email",
2430
2473
  placeholder: "you@example.com",
2431
2474
  required: !0,
2432
- disabled: I,
2433
- onChange: (e) => te(e.currentTarget.validity.valid)
2475
+ disabled: F,
2476
+ onChange: (e) => N(e.currentTarget.validity.valid)
2434
2477
  })]
2435
2478
  }),
2436
2479
  /* @__PURE__ */ i(Y, {
2437
- show: F,
2480
+ show: re,
2438
2481
  children: /* @__PURE__ */ a(U, {
2439
2482
  name: "password",
2440
2483
  children: [/* @__PURE__ */ i(W, {
2441
2484
  htmlFor: x,
2442
2485
  children: "Password"
2443
- }), /* @__PURE__ */ i(Wt, {
2486
+ }), /* @__PURE__ */ i(qt, {
2444
2487
  id: x,
2445
2488
  name: "password",
2446
2489
  "aria-label": "Password",
@@ -2448,20 +2491,20 @@ function gn({ title: e = "Create your account", description: t = "Start explorin
2448
2491
  placeholder: "Create a password",
2449
2492
  showStrength: !0,
2450
2493
  required: !0,
2451
- disabled: I,
2452
- value: A,
2494
+ disabled: F,
2495
+ value: k,
2453
2496
  onChange: (e) => j(e.target.value)
2454
2497
  })]
2455
2498
  })
2456
2499
  }),
2457
2500
  l && /* @__PURE__ */ a("div", {
2458
2501
  className: "flex items-center gap-2",
2459
- children: [/* @__PURE__ */ i(Qe, {
2502
+ children: [/* @__PURE__ */ i(tt, {
2460
2503
  id: S,
2461
- checked: P,
2462
- onCheckedChange: (e) => ee(e === !0),
2463
- disabled: I
2464
- }), /* @__PURE__ */ a(_t, {
2504
+ checked: ne,
2505
+ onCheckedChange: (e) => M(e === !0),
2506
+ disabled: F
2507
+ }), /* @__PURE__ */ a(bt, {
2465
2508
  htmlFor: S,
2466
2509
  className: "font-normal",
2467
2510
  children: [
@@ -2481,7 +2524,7 @@ function gn({ title: e = "Create your account", description: t = "Start explorin
2481
2524
  className: V("w-full", o && "border-transparent bg-[var(--auth-accent)] bg-[image:var(--auth-accent-image)] text-[var(--auth-accent-foreground)] shadow-none hover:bg-[var(--auth-accent)] hover:brightness-110 data-pressed:bg-[var(--auth-accent)] data-pressed:brightness-110 *:data-[slot=button-loading-indicator]:text-[var(--auth-accent-foreground)]"),
2482
2525
  type: "submit",
2483
2526
  loading: C === "loading",
2484
- disabled: I,
2527
+ disabled: F,
2485
2528
  children: "Create account"
2486
2529
  })
2487
2530
  ]
@@ -2492,8 +2535,8 @@ function gn({ title: e = "Create your account", description: t = "Start explorin
2492
2535
  }
2493
2536
  //#endregion
2494
2537
  //#region src/components/blocks/auth/update-password-block.tsx
2495
- function _n({ title: e = "Update your password", description: t = "Choose a new password for your account", logo: n, accent: r, minStrength: o = 4, onSubmit: s, onDone: c }) {
2496
- let l = D.useId(), u = D.useId(), [d, f] = D.useState("idle"), [p, m] = D.useState(null), [h, g] = D.useState(""), [_, v] = D.useState(""), y = Ht(h) >= o, b = _.length > 0 && _ === h, x = y && b, S = _.length > 0 && !h.startsWith(_);
2538
+ function xn({ title: e = "Update your password", description: t = "Choose a new password for your account", logo: n, accent: r, minStrength: o = 4, onSubmit: s, onDone: c }) {
2539
+ let l = A.useId(), u = A.useId(), [d, f] = A.useState("idle"), [p, m] = A.useState(null), [h, g] = A.useState(""), [_, v] = A.useState(""), y = Gt(h) >= o, b = _.length > 0 && _ === h, x = y && b, S = _.length > 0 && !h.startsWith(_);
2497
2540
  async function C(e) {
2498
2541
  if (e.preventDefault(), x) {
2499
2542
  m(null), f("loading");
@@ -2528,7 +2571,7 @@ function _n({ title: e = "Update your password", description: t = "Choose a new
2528
2571
  children: [/* @__PURE__ */ i(W, {
2529
2572
  htmlFor: l,
2530
2573
  children: "New password"
2531
- }), /* @__PURE__ */ i(Wt, {
2574
+ }), /* @__PURE__ */ i(qt, {
2532
2575
  id: l,
2533
2576
  name: "password",
2534
2577
  autoComplete: "new-password",
@@ -2546,7 +2589,7 @@ function _n({ title: e = "Update your password", description: t = "Choose a new
2546
2589
  children: [/* @__PURE__ */ i(W, {
2547
2590
  htmlFor: u,
2548
2591
  children: "Confirm new password"
2549
- }), /* @__PURE__ */ i(Wt, {
2592
+ }), /* @__PURE__ */ i(qt, {
2550
2593
  id: u,
2551
2594
  name: "confirmPassword",
2552
2595
  autoComplete: "new-password",
@@ -2579,45 +2622,45 @@ var Q = [
2579
2622
  1,
2580
2623
  .3,
2581
2624
  1
2582
- ], vn = [
2625
+ ], Sn = [
2583
2626
  .77,
2584
2627
  0,
2585
2628
  .175,
2586
2629
  1
2587
- ], yn = [
2630
+ ], Cn = [
2588
2631
  .32,
2589
2632
  .72,
2590
2633
  0,
2591
2634
  1
2592
- ], bn = "cubic-bezier(0.16, 1, 0.3, 1)", xn = {
2635
+ ], wn = "cubic-bezier(0.16, 1, 0.3, 1)", Tn = {
2593
2636
  type: "spring",
2594
2637
  stiffness: 500,
2595
2638
  damping: 30,
2596
2639
  mass: .6
2597
- }, Sn = {
2640
+ }, En = {
2598
2641
  type: "spring",
2599
2642
  stiffness: 460,
2600
2643
  damping: 30,
2601
2644
  mass: .55
2602
- }, Cn = {
2645
+ }, Dn = {
2603
2646
  type: "spring",
2604
2647
  stiffness: 420,
2605
2648
  damping: 40,
2606
2649
  mass: .5
2607
- }, wn = {
2650
+ }, On = {
2608
2651
  type: "spring",
2609
2652
  stiffness: 360,
2610
2653
  damping: 32,
2611
2654
  mass: .6
2612
- }, Tn = {
2655
+ }, kn = {
2613
2656
  stiffness: 200,
2614
2657
  damping: 15,
2615
2658
  mass: .3
2616
- }, En = {
2659
+ }, An = {
2617
2660
  stiffness: 700,
2618
2661
  damping: 50,
2619
2662
  mass: .5
2620
- }, Dn = {
2663
+ }, jn = {
2621
2664
  initial: {
2622
2665
  opacity: 0,
2623
2666
  filter: "blur(6px)"
@@ -2630,14 +2673,14 @@ var Q = [
2630
2673
  opacity: 0,
2631
2674
  filter: "blur(6px)"
2632
2675
  }
2633
- }, On = {
2676
+ }, Mn = {
2634
2677
  initial: { opacity: 0 },
2635
2678
  animate: { opacity: 1 },
2636
2679
  exit: (e) => e ? {} : { opacity: 0 }
2637
- }, kn = M(function({ children: e, as: t = "div", className: n, onMouseLeave: o, pillClassName: s, pillContainerClassName: c, inset: l = 20, ...u }, d) {
2638
- let [f, p] = I(null), m = te(), h = _e(), g = O.toArray(e).filter(N).map((e, t) => {
2680
+ }, Nn = M(function({ children: e, as: t = "div", className: n, onMouseLeave: o, pillClassName: s, pillContainerClassName: c, inset: l = 20, ...u }, d) {
2681
+ let [f, p] = I(null), m = F(), h = be(), g = j.toArray(e).filter(re).map((e, t) => {
2639
2682
  let n = e, o = n.key ? String(n.key) : `item-${t}`;
2640
- return k(n, {
2683
+ return ee(n, {
2641
2684
  key: o,
2642
2685
  className: V("relative", n.props.className),
2643
2686
  onMouseEnter: () => {
@@ -2646,7 +2689,7 @@ var Q = [
2646
2689
  }, /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(z, {
2647
2690
  custom: f !== null,
2648
2691
  children: f === null ? null : /* @__PURE__ */ i(B.div, {
2649
- variants: h ? On : Dn,
2692
+ variants: h ? Mn : jn,
2650
2693
  initial: "initial",
2651
2694
  animate: "animate",
2652
2695
  exit: "exit",
@@ -2658,7 +2701,7 @@ var Q = [
2658
2701
  },
2659
2702
  children: f === o ? /* @__PURE__ */ i(B.div, {
2660
2703
  layoutId: `shared-bg-${m}`,
2661
- transition: h ? { duration: 0 } : wn,
2704
+ transition: h ? { duration: 0 } : On,
2662
2705
  className: V("pointer-events-none h-full w-full rounded-2xl bg-primary/[0.06]", s)
2663
2706
  }) : null
2664
2707
  })
@@ -2677,25 +2720,25 @@ var Q = [
2677
2720
  className: V("flex w-full flex-col", n),
2678
2721
  children: g
2679
2722
  });
2680
- }), An = "(max-width: 767px)", jn = "b", Mn = {
2723
+ }), Pn = "(max-width: 767px)", Fn = "b", In = {
2681
2724
  duration: .36,
2682
- ease: yn
2683
- }, Nn = {
2725
+ ease: Cn
2726
+ }, Ln = {
2684
2727
  type: "spring",
2685
2728
  stiffness: 380,
2686
2729
  damping: 35,
2687
2730
  mass: .75
2688
- }, Pn = {
2731
+ }, Rn = {
2689
2732
  duration: .2,
2690
2733
  delay: .08,
2691
2734
  ease: Q
2692
- }, Fn = {
2735
+ }, zn = {
2693
2736
  duration: .12,
2694
2737
  ease: Q
2695
- }, In = {
2738
+ }, Bn = {
2696
2739
  duration: .18,
2697
2740
  ease: Q
2698
- }, Ln = {
2741
+ }, Vn = {
2699
2742
  closed: {
2700
2743
  opacity: 0,
2701
2744
  clipPath: "inset(0 0 100% 0 round 8px)",
@@ -2716,7 +2759,7 @@ var Q = [
2716
2759
  staggerChildren: .045
2717
2760
  }
2718
2761
  }
2719
- }, Rn = {
2762
+ }, Hn = {
2720
2763
  closed: {
2721
2764
  opacity: 0,
2722
2765
  y: -6,
@@ -2726,12 +2769,12 @@ var Q = [
2726
2769
  opacity: 1,
2727
2770
  y: 0,
2728
2771
  filter: "blur(0px)",
2729
- transition: In
2772
+ transition: Bn
2730
2773
  }
2731
- }, zn = {
2774
+ }, Un = {
2732
2775
  duration: .16,
2733
2776
  ease: Q
2734
- }, Bn = [
2777
+ }, Wn = [
2735
2778
  "a[href]",
2736
2779
  "button:not([disabled])",
2737
2780
  "input:not([disabled])",
@@ -2739,82 +2782,91 @@ var Q = [
2739
2782
  "textarea:not([disabled])",
2740
2783
  "[tabindex]:not([tabindex='-1'])"
2741
2784
  ].join(",");
2742
- function Vn(e) {
2743
- let t = window.matchMedia(An);
2785
+ function Gn(e) {
2786
+ let t = window.matchMedia(Pn);
2744
2787
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
2745
2788
  }
2746
- function Hn() {
2747
- return window.matchMedia(An).matches;
2789
+ function Kn() {
2790
+ return window.matchMedia(Pn).matches;
2748
2791
  }
2749
- function Un() {
2792
+ function qn() {
2750
2793
  return !1;
2751
2794
  }
2752
- function Wn() {
2753
- return ie(Vn, Hn, Un);
2795
+ function Jn() {
2796
+ return se(Gn, Kn, qn);
2754
2797
  }
2755
- var Gn = A(null), Kn = A(null);
2798
+ var Yn = te(null), Xn = te(null);
2756
2799
  function $() {
2757
- let e = ee(Gn);
2800
+ let e = ie(Yn);
2758
2801
  if (!e) throw Error("useAnimatedSidebar must be used inside AnimatedSidebarProvider.");
2759
2802
  return e;
2760
2803
  }
2761
- function qn() {
2762
- let e = ee(Kn);
2804
+ function Zn() {
2805
+ let e = ie(Xn);
2763
2806
  if (!e) throw Error("Animated Sidebar parts must be used inside AnimatedSidebar.");
2764
2807
  return e;
2765
2808
  }
2766
- function Jn({ children: e, open: t, defaultOpen: n = !0, onOpenChange: r, openMobile: a, defaultOpenMobile: o = !1, onOpenMobileChange: s, className: c, style: l, ...u }) {
2767
- let [d, f] = I(n), [p, m] = I(o), h = Wn(), g = _e() ?? !1, _ = te(), v = re(null), y = t ?? d, b = a ?? p, x = P((e) => {
2768
- t === void 0 && f(e), r?.(e);
2769
- }, [r, t]), S = P((e) => {
2770
- a === void 0 && m(e), s?.(e);
2771
- }, [s, a]), C = P(() => {
2772
- h ? S(!b) : x(!y);
2809
+ function Qn({ children: e, open: t, defaultOpen: n = !0, onOpenChange: r, openMobile: a, defaultOpenMobile: o = !1, onOpenMobileChange: s, openRight: c, defaultOpenRight: l = !1, onOpenRightChange: u, className: d, style: f, ...p }) {
2810
+ let [m, h] = I(n), [g, _] = I(o), [v, y] = I(l), b = Jn(), x = be() ?? !1, S = F(), C = oe(null), w = oe(null), T = t ?? m, E = a ?? g, D = c ?? v, O = N((e) => {
2811
+ t === void 0 && h(e), r?.(e);
2812
+ }, [r, t]), k = N((e) => {
2813
+ a === void 0 && _(e), s?.(e);
2814
+ }, [s, a]), A = N((e) => {
2815
+ c === void 0 && y(e), u?.(e);
2816
+ }, [u, c]), j = N(() => {
2817
+ b ? k(!E) : O(!T);
2773
2818
  }, [
2774
- y,
2775
- h,
2819
+ T,
2776
2820
  b,
2777
- x,
2778
- S
2779
- ]);
2780
- return F(() => {
2821
+ E,
2822
+ O,
2823
+ k
2824
+ ]), ee = N(() => {
2825
+ A(!D);
2826
+ }, [D, A]);
2827
+ return P(() => {
2781
2828
  let e = (e) => {
2782
- e.key.toLowerCase() === jn && (e.metaKey || e.ctrlKey) && (e.preventDefault(), C());
2829
+ e.key.toLowerCase() === Fn && (e.metaKey || e.ctrlKey) && (e.preventDefault(), j());
2783
2830
  };
2784
2831
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2785
- }, [C]), /* @__PURE__ */ i(Gn.Provider, {
2832
+ }, [j]), /* @__PURE__ */ i(Yn.Provider, {
2786
2833
  value: {
2787
- isMobile: h,
2788
- layoutId: `${_}-active`,
2789
- open: y,
2790
- openMobile: b,
2791
- reduce: g,
2792
- setOpen: x,
2793
- setOpenMobile: S,
2794
- state: y ? "expanded" : "collapsed",
2795
- toggleSidebar: C,
2796
- triggerRef: v
2834
+ isMobile: b,
2835
+ layoutId: `${S}-active`,
2836
+ open: T,
2837
+ openMobile: E,
2838
+ openRight: D,
2839
+ reduce: x,
2840
+ setOpen: O,
2841
+ setOpenMobile: k,
2842
+ setOpenRight: A,
2843
+ state: T ? "expanded" : "collapsed",
2844
+ toggleSidebar: j,
2845
+ toggleRightSidebar: ee,
2846
+ triggerRef: C,
2847
+ rightTriggerRef: w
2797
2848
  },
2798
2849
  children: /* @__PURE__ */ i("div", {
2799
- ...u,
2850
+ ...p,
2800
2851
  "data-slot": "sidebar-wrapper",
2801
- "data-state": y ? "expanded" : "collapsed",
2852
+ "data-state": T ? "expanded" : "collapsed",
2853
+ "data-right-state": D ? "expanded" : "collapsed",
2802
2854
  style: {
2803
- "--sidebar-width": "16rem",
2855
+ "--sidebar-width": "19rem",
2804
2856
  "--sidebar-width-icon": "4.25rem",
2805
2857
  "--sidebar-width-mobile": "18rem",
2806
- ...l
2858
+ ...f
2807
2859
  },
2808
- className: V("group/sidebar-wrapper flex min-h-svh w-full min-w-0", c),
2860
+ className: V("group/sidebar-wrapper flex min-h-svh w-full min-w-0", d),
2809
2861
  children: e
2810
2862
  })
2811
2863
  });
2812
2864
  }
2813
- function Yn({ ariaLabel: e, children: t, className: n, side: r }) {
2814
- let o = $(), s = re(null), [c, l] = I(!1);
2815
- return F(() => l(!0), []), F(() => {
2816
- if (!o.openMobile) return;
2817
- let e = document.body, t = window.scrollY, n = {
2865
+ function $n({ ariaLabel: e, children: t, className: n, side: r }) {
2866
+ let o = $(), s = r === "right", c = s ? o.openRight : o.openMobile, l = s ? o.setOpenRight : o.setOpenMobile, u = s ? o.rightTriggerRef : o.triggerRef, d = oe(null), [f, p] = I(!1);
2867
+ return P(() => p(!0), []), P(() => {
2868
+ if (!c) return;
2869
+ let e = document.body, t = window.scrollY, n = u.current, r = {
2818
2870
  left: e.style.left,
2819
2871
  overflow: e.style.overflow,
2820
2872
  position: e.style.position,
@@ -2822,56 +2874,56 @@ function Yn({ ariaLabel: e, children: t, className: n, side: r }) {
2822
2874
  top: e.style.top
2823
2875
  };
2824
2876
  e.style.position = "fixed", e.style.top = `-${t}px`, e.style.left = "0", e.style.right = "0", e.style.overflow = "hidden";
2825
- let r = requestAnimationFrame(() => {
2826
- (s.current?.querySelector(Bn) ?? s.current)?.focus({ preventScroll: !0 });
2877
+ let i = requestAnimationFrame(() => {
2878
+ (d.current?.querySelector(Wn) ?? d.current)?.focus({ preventScroll: !0 });
2827
2879
  });
2828
2880
  return () => {
2829
- cancelAnimationFrame(r), e.style.position = n.position, e.style.top = n.top, e.style.left = n.left, e.style.right = n.right, e.style.overflow = n.overflow, window.scrollTo(0, t), o.triggerRef.current?.focus({ preventScroll: !0 });
2881
+ cancelAnimationFrame(i), e.style.position = r.position, e.style.top = r.top, e.style.left = r.left, e.style.right = r.right, e.style.overflow = r.overflow, window.scrollTo(0, t), n?.focus({ preventScroll: !0 });
2830
2882
  };
2831
- }, [o.openMobile, o.triggerRef]), c ? Se(/* @__PURE__ */ a("div", {
2832
- className: V("pointer-events-none fixed inset-0 z-50 md:hidden", o.openMobile ? "visible" : "invisible"),
2883
+ }, [c, u]), f ? Te(/* @__PURE__ */ a("div", {
2884
+ className: V("pointer-events-none fixed inset-0 z-50 md:hidden", c ? "visible" : "invisible"),
2833
2885
  children: [/* @__PURE__ */ i(B.button, {
2834
2886
  type: "button",
2835
2887
  "aria-label": "Close sidebar",
2836
- tabIndex: o.openMobile ? 0 : -1,
2888
+ tabIndex: c ? 0 : -1,
2837
2889
  initial: !1,
2838
- animate: { opacity: +!!o.openMobile },
2839
- transition: o.reduce ? zn : Mn,
2840
- onClick: () => o.setOpenMobile(!1),
2841
- className: V("absolute inset-0 bg-black/40", o.openMobile ? "pointer-events-auto" : "pointer-events-none")
2890
+ animate: { opacity: +!!c },
2891
+ transition: o.reduce ? Un : In,
2892
+ onClick: () => l(!1),
2893
+ className: V("absolute inset-0", c ? "pointer-events-auto" : "pointer-events-none")
2842
2894
  }), /* @__PURE__ */ i(B.div, {
2843
- ref: s,
2895
+ ref: d,
2844
2896
  role: "dialog",
2845
2897
  "aria-modal": "true",
2846
2898
  "aria-label": e,
2847
- "aria-hidden": !o.openMobile,
2848
- inert: !o.openMobile,
2899
+ "aria-hidden": !c,
2900
+ inert: !c,
2849
2901
  tabIndex: -1,
2850
2902
  "data-mobile": "true",
2851
- "data-state": o.openMobile ? "expanded" : "collapsed",
2903
+ "data-state": c ? "expanded" : "collapsed",
2852
2904
  "data-side": r,
2853
2905
  initial: !1,
2854
2906
  animate: {
2855
- opacity: o.reduce ? +!!o.openMobile : 1,
2856
- x: o.reduce ? 0 : o.openMobile ? "0%" : r === "left" ? "-100%" : "100%"
2907
+ opacity: o.reduce ? +!!c : 1,
2908
+ x: o.reduce ? 0 : c ? "0%" : r === "left" ? "-100%" : "100%"
2857
2909
  },
2858
- transition: o.reduce ? zn : Mn,
2910
+ transition: o.reduce ? Un : In,
2859
2911
  onKeyDown: (e) => {
2860
2912
  if (e.key === "Escape") {
2861
- e.preventDefault(), o.setOpenMobile(!1);
2913
+ e.preventDefault(), l(!1);
2862
2914
  return;
2863
2915
  }
2864
2916
  if (e.key !== "Tab") return;
2865
- let t = s.current ? Array.from(s.current.querySelectorAll(Bn)) : [];
2917
+ let t = d.current ? Array.from(d.current.querySelectorAll(Wn)) : [];
2866
2918
  if (t.length === 0) {
2867
- e.preventDefault(), s.current?.focus();
2919
+ e.preventDefault(), d.current?.focus();
2868
2920
  return;
2869
2921
  }
2870
2922
  let n = t[0], r = t[t.length - 1];
2871
2923
  e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
2872
2924
  },
2873
- className: V("pointer-events-auto absolute inset-y-0 flex h-dvh w-(--sidebar-width-mobile) max-w-[88vw] flex-col overflow-hidden", "border-border bg-background shadow-2xl will-change-transform", r === "left" ? "left-0 border-r" : "right-0 border-l", !o.openMobile && "pointer-events-none", n),
2874
- children: /* @__PURE__ */ i(Kn.Provider, {
2925
+ className: V("pointer-events-auto absolute inset-y-0 flex h-dvh w-(--sidebar-width-mobile) max-w-[88vw] flex-col overflow-hidden", "will-change-transform", r === "left" ? "left-0 border-r" : "right-0", !c && "pointer-events-none", n),
2926
+ children: /* @__PURE__ */ i(Xn.Provider, {
2875
2927
  value: {
2876
2928
  collapsed: !1,
2877
2929
  collapsible: "none",
@@ -2882,76 +2934,78 @@ function Yn({ ariaLabel: e, children: t, className: n, side: r }) {
2882
2934
  })]
2883
2935
  }), document.body) : null;
2884
2936
  }
2885
- var Xn = M(function({ side: e = "left", variant: t = "sidebar", collapsible: n = "icon", ariaLabel: r = "Sidebar", children: a, className: o, panelClassName: s, style: c, ...l }, u) {
2886
- let d = $(), f = n !== "none" && !d.open, p = f && n === "offcanvas", m = p ? "0px" : f ? "var(--sidebar-width-icon)" : "var(--sidebar-width)";
2887
- return d.isMobile ? /* @__PURE__ */ i(Yn, {
2937
+ var er = M(function({ side: e = "left", variant: t = "sidebar", collapsible: n = "icon", ariaLabel: r = "Sidebar", children: o, className: s, panelClassName: c, style: l, ...u }, d) {
2938
+ let f = $(), p = e === "right" ? f.openRight : f.open, m = n !== "none" && !p, h = m && n === "offcanvas", g = h ? "0px" : m ? "var(--sidebar-width-icon)" : "var(--sidebar-width)";
2939
+ return f.isMobile ? /* @__PURE__ */ i($n, {
2888
2940
  ariaLabel: r,
2889
- className: o,
2941
+ className: s,
2890
2942
  side: e,
2891
- children: a
2892
- }) : /* @__PURE__ */ i(B.aside, {
2893
- ...l,
2894
- ref: u,
2943
+ children: o
2944
+ }) : /* @__PURE__ */ a(B.aside, {
2945
+ ...u,
2946
+ ref: d,
2895
2947
  initial: !1,
2896
2948
  "aria-label": r,
2897
2949
  "data-slot": "sidebar",
2898
- "data-state": f ? "collapsed" : "expanded",
2950
+ "data-state": m ? "collapsed" : "expanded",
2899
2951
  "data-collapsible": n,
2900
2952
  "data-variant": t,
2901
2953
  "data-side": e,
2902
- animate: { width: m },
2903
- transition: d.reduce ? { duration: 0 } : Nn,
2904
- style: c,
2905
- className: V("group/sidebar relative hidden h-auto shrink-0 md:block will-change-[width]", "peer", e === "right" && "order-last", o),
2906
- children: /* @__PURE__ */ i(B.div, {
2954
+ animate: { width: g },
2955
+ transition: f.reduce ? { duration: 0 } : Ln,
2956
+ style: l,
2957
+ className: V("group/sidebar relative hidden h-auto shrink-0 will-change-[width] md:block", "peer flex!", n === "offcanvas" && "overflow-x-visible [overflow-clip-margin:1rem]", e === "right" && "order-last", s),
2958
+ children: [e === "right" && !m && /* @__PURE__ */ i(B.div, { className: "h-full p-0.5 flex flex-1 bg-radial/decreasing from-amber-400 to-0% hover:to-50% ease-smooth-out to-amber-500/0 cursor-col-resize transition-colors duration-1000 animate-in" }), /* @__PURE__ */ i(B.div, {
2907
2959
  initial: !1,
2908
2960
  animate: {
2909
- opacity: +!p,
2910
- x: p ? e === "left" ? "-100%" : "100%" : "0%"
2961
+ opacity: +!h,
2962
+ x: h ? e === "left" ? "-100%" : "100%" : "0%"
2911
2963
  },
2912
- transition: d.reduce ? zn : Mn,
2913
- className: V("sticky top-0 flex h-svh w-full flex-col overflow-hidden bg-background", n === "offcanvas" && "w-[var(--sidebar-width)]", t === "sidebar" && (e === "left" ? "border-border border-r" : "border-border border-l"), t === "floating" && "m-2 h-[calc(100svh-1rem)] rounded-2xl border border-border shadow-sm", t === "inset" && "m-2 h-[calc(100svh-1rem)] rounded-2xl", s),
2914
- children: /* @__PURE__ */ i(Kn.Provider, {
2964
+ transition: f.reduce ? Un : In,
2965
+ className: V("sticky top-0 flex h-svh w-full flex-col overflow-hidden", n === "offcanvas" && "w-[var(--sidebar-width)]", t === "floating" && "m-2 h-[calc(100svh-1rem)]", t === "inset" && "m-2 h-[calc(100svh-1rem)]", c),
2966
+ children: /* @__PURE__ */ i(Xn.Provider, {
2915
2967
  value: {
2916
- collapsed: f,
2968
+ collapsed: m,
2917
2969
  collapsible: n,
2918
2970
  side: e
2919
2971
  },
2920
- children: a
2972
+ children: o
2921
2973
  })
2922
- })
2974
+ })]
2923
2975
  });
2924
- }), Zn = M(function({ className: e, onClick: t, type: n = "button", ...r }, a) {
2925
- let o = $(), s = o.isMobile ? o.openMobile : o.open;
2976
+ }), tr = M(function({ className: e, onClick: t, side: n = "left", type: r = "button", ...a }, o) {
2977
+ let s = $(), c = n === "right", l = c ? s.openRight : s.isMobile ? s.openMobile : s.open, u = c ? s.rightTriggerRef : s.triggerRef;
2926
2978
  return /* @__PURE__ */ i("button", {
2927
- ...r,
2979
+ ...a,
2928
2980
  ref: (e) => {
2929
- o.triggerRef.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
2981
+ u.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
2930
2982
  },
2931
- type: n,
2932
- "aria-label": r["aria-label"] ?? "Toggle sidebar",
2933
- "aria-expanded": s,
2983
+ type: r,
2984
+ "aria-label": a["aria-label"] ?? "Toggle sidebar",
2985
+ "aria-expanded": l,
2934
2986
  "data-slot": "sidebar-trigger",
2935
- "data-state": s ? "expanded" : "collapsed",
2987
+ "data-side": n,
2988
+ "data-state": l ? "expanded" : "collapsed",
2936
2989
  onClick: (e) => {
2937
- t?.(e), e.defaultPrevented || o.toggleSidebar();
2990
+ t?.(e), !e.defaultPrevented && (c ? s.toggleRightSidebar() : s.toggleSidebar());
2938
2991
  },
2939
2992
  className: V("inline-flex size-10 shrink-0 items-center justify-center rounded-xl outline-none", "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background", e)
2940
2993
  });
2941
- }), Qn = M(function({ className: e, onClick: t, type: n = "button", ...r }, a) {
2942
- let o = $();
2994
+ }), nr = M(function({ className: e, onClick: t, side: n = "left", type: r = "button", ...a }, o) {
2995
+ let s = $();
2943
2996
  return /* @__PURE__ */ i("button", {
2944
- ...r,
2945
- ref: a,
2946
- type: n,
2947
- "aria-label": r["aria-label"] ?? "Close sidebar",
2997
+ ...a,
2998
+ ref: o,
2999
+ type: r,
3000
+ "data-side": n,
3001
+ "aria-label": a["aria-label"] ?? "Close sidebar",
2948
3002
  onClick: (e) => {
2949
- t?.(e), !e.defaultPrevented && (o.isMobile ? o.setOpenMobile(!1) : o.setOpen(!1));
3003
+ t?.(e), !e.defaultPrevented && (n === "right" ? s.setOpenRight(!1) : s.isMobile ? s.setOpenMobile(!1) : s.setOpen(!1));
2950
3004
  },
2951
3005
  className: V("inline-flex size-10 shrink-0 items-center justify-center rounded-xl outline-none", "focus-visible:ring-2 focus-visible:ring-ring", e)
2952
3006
  });
2953
- }), $n = M(function({ className: e, onClick: t, type: n = "button", ...r }, a) {
2954
- let o = $(), s = qn();
3007
+ }), rr = M(function({ className: e, onClick: t, type: n = "button", ...r }, a) {
3008
+ let o = $(), s = Zn();
2955
3009
  return /* @__PURE__ */ i("button", {
2956
3010
  ...r,
2957
3011
  ref: a,
@@ -2961,64 +3015,64 @@ var Xn = M(function({ side: e = "left", variant: t = "sidebar", collapsible: n =
2961
3015
  title: "Toggle sidebar",
2962
3016
  tabIndex: -1,
2963
3017
  onClick: (e) => {
2964
- t?.(e), e.defaultPrevented || o.toggleSidebar();
3018
+ t?.(e), !e.defaultPrevented && (s.side === "right" ? o.toggleRightSidebar() : o.toggleSidebar());
2965
3019
  },
2966
- className: V("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 outline-none md:block", "after:absolute after:inset-y-0 after:left-1/2 after:w-px after:bg-transparent after:transition-colors hover:after:bg-border", "data-[side=right]:right-0 data-[side=right]:translate-x-1/2 data-[side=left]:left-full", e)
3020
+ className: V("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 outline-none md:block", "after:absolute after:inset-y-0 after:left-1/2 after:w-px after:bg-transparent after:transition-colors hover:after:bg-border", "data-[side=left]:left-full data-[side=right]:right-0 data-[side=right]:translate-x-1/2", e)
2967
3021
  });
2968
- }), er = M(function({ className: e, ...t }, n) {
3022
+ }), ir = M(function({ className: e, ...t }, n) {
2969
3023
  return /* @__PURE__ */ i(B.main, {
2970
3024
  ...t,
2971
3025
  ref: n,
2972
3026
  "data-slot": "sidebar-inset",
2973
- className: V("relative flex min-h-svh min-w-0 flex-1 flex-col bg-background", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-2xl md:peer-data-[variant=inset]:shadow-sm", e)
3027
+ className: V("relative flex min-w-0 flex-1 flex-col bg-background", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:mr-1.5 md:peer-data-[variant=inset]:rounded-md md:peer-data-[variant=inset]:shadow-md", e)
2974
3028
  });
2975
- }), tr = M(function({ className: e, ...t }, n) {
3029
+ }), ar = M(function({ className: e, ...t }, n) {
2976
3030
  return /* @__PURE__ */ i("div", {
2977
3031
  ...t,
2978
3032
  ref: n,
2979
3033
  "data-slot": "sidebar-header",
2980
3034
  className: V("flex shrink-0 flex-col gap-2 p-3", e)
2981
3035
  });
2982
- }), nr = M(function({ className: e, ...t }, n) {
3036
+ }), or = M(function({ className: e, ...t }, n) {
2983
3037
  return /* @__PURE__ */ i("div", {
2984
3038
  ...t,
2985
3039
  ref: n,
2986
3040
  "data-slot": "sidebar-content",
2987
- className: V("flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto overflow-x-hidden overscroll-contain px-2 py-2", e)
3041
+ className: V("flex min-h-0 flex-1 flex-col gap-2 overflow-x-hidden overflow-y-auto overscroll-contain px-2 py-2", e)
2988
3042
  });
2989
- }), rr = M(function({ className: e, ...t }, n) {
3043
+ }), sr = M(function({ className: e, ...t }, n) {
2990
3044
  return /* @__PURE__ */ i("div", {
2991
3045
  ...t,
2992
3046
  ref: n,
2993
3047
  "data-slot": "sidebar-footer",
2994
- className: V("flex shrink-0 flex-col gap-2 border-border border-t p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))]", e)
3048
+ className: V("flex shrink-0 flex-col gap-2 border-t border-border p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))]", e)
2995
3049
  });
2996
- }), ir = M(function({ className: e, ...t }, n) {
3050
+ }), cr = M(function({ className: e, ...t }, n) {
2997
3051
  return /* @__PURE__ */ i("div", {
2998
3052
  ...t,
2999
3053
  ref: n,
3000
3054
  "data-slot": "sidebar-group",
3001
3055
  className: V("flex w-full min-w-0 flex-col px-1 py-1.5", e)
3002
3056
  });
3003
- }), ar = M(function({ children: e, className: t, ...n }, r) {
3004
- let { collapsed: a } = qn();
3057
+ }), lr = M(function({ children: e, className: t, ...n }, r) {
3058
+ let { collapsed: a } = Zn();
3005
3059
  return /* @__PURE__ */ i("div", {
3006
3060
  ...n,
3007
3061
  ref: r,
3008
3062
  "aria-hidden": a,
3009
3063
  "data-slot": "sidebar-group-label",
3010
- className: V("mb-1 h-7 overflow-hidden px-2 text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground transition-opacity", a ? "opacity-0" : "opacity-100", t),
3064
+ className: V("mb-1 h-7 overflow-hidden px-2 text-[10px] font-medium tracking-[0.14em] text-muted-foreground uppercase transition-opacity", a ? "opacity-0" : "opacity-100", t),
3011
3065
  children: e
3012
3066
  });
3013
- }), or = M(function({ className: e, ...t }, n) {
3067
+ }), ur = M(function({ className: e, ...t }, n) {
3014
3068
  return /* @__PURE__ */ i("div", {
3015
3069
  ...t,
3016
3070
  ref: n,
3017
3071
  "data-slot": "sidebar-group-content",
3018
3072
  className: V("w-full min-w-0", e)
3019
3073
  });
3020
- }), sr = M(function({ children: e, className: t, ...n }, r) {
3021
- return /* @__PURE__ */ i(kn, {
3074
+ }), dr = M(function({ children: e, className: t, ...n }, r) {
3075
+ return /* @__PURE__ */ i(Nn, {
3022
3076
  ...n,
3023
3077
  ref: r,
3024
3078
  as: "ul",
@@ -3029,43 +3083,43 @@ var Xn = M(function({ side: e = "left", variant: t = "sidebar", collapsible: n =
3029
3083
  className: V("flex w-full min-w-0 list-none flex-col gap-0.5", t),
3030
3084
  children: e
3031
3085
  });
3032
- }), cr = M(function({ className: e, ...t }, n) {
3086
+ }), fr = M(function({ className: e, ...t }, n) {
3033
3087
  return /* @__PURE__ */ i(B.li, {
3034
3088
  ...t,
3035
3089
  ref: n,
3036
3090
  layout: "position",
3037
- transition: wn,
3091
+ transition: On,
3038
3092
  "data-slot": "sidebar-menu-item",
3039
3093
  className: V("relative", e)
3040
3094
  });
3041
- }), lr = M(function({ open: e, children: t, className: n, ...r }, a) {
3042
- let o = $(), s = qn();
3095
+ }), pr = M(function({ open: e, children: t, className: n, ...r }, a) {
3096
+ let o = $(), s = Zn();
3043
3097
  return /* @__PURE__ */ i(z, {
3044
3098
  initial: !1,
3045
3099
  mode: "popLayout",
3046
- children: e && !s.collapsed ? /* @__PURE__ */ j(B.ul, {
3100
+ children: e && !s.collapsed ? /* @__PURE__ */ ne(B.ul, {
3047
3101
  ...r,
3048
3102
  ref: a,
3049
3103
  key: "sidebar-submenu",
3050
- variants: o.reduce ? void 0 : Ln,
3104
+ variants: o.reduce ? void 0 : Vn,
3051
3105
  initial: !o.reduce && "closed",
3052
3106
  animate: o.reduce ? { opacity: 1 } : "open",
3053
3107
  exit: o.reduce ? { opacity: 0 } : "closed",
3054
3108
  transition: o.reduce ? { duration: .12 } : void 0,
3055
3109
  "data-slot": "sidebar-menu-sub",
3056
- className: V("relative mt-1 ml-5 flex min-w-0 flex-col gap-0.5 border-border border-l pl-3", n)
3110
+ className: V("relative mt-1 ml-5 flex min-w-0 flex-col gap-0.5 border-l border-border pl-3", n)
3057
3111
  }, t) : null
3058
3112
  });
3059
- }), ur = M(function({ className: e, ...t }, n) {
3113
+ }), mr = M(function({ className: e, ...t }, n) {
3060
3114
  return /* @__PURE__ */ i(B.li, {
3061
3115
  ...t,
3062
3116
  ref: n,
3063
- variants: Rn,
3117
+ variants: Hn,
3064
3118
  "data-slot": "sidebar-menu-sub-item",
3065
3119
  className: V("relative min-w-0", e)
3066
3120
  });
3067
3121
  });
3068
- function dr({ children: e, icon: t, href: n, isActive: o = !1, disabled: s = !1, closeOnSelect: c = !0, target: l, rel: u, onSelect: d, className: f }) {
3122
+ function hr({ children: e, icon: t, href: n, isActive: o = !1, disabled: s = !1, closeOnSelect: c = !0, target: l, rel: u, onSelect: d, className: f }) {
3069
3123
  let p = $(), m = (e) => {
3070
3124
  if (s) {
3071
3125
  e.preventDefault();
@@ -3089,7 +3143,7 @@ function dr({ children: e, icon: t, href: n, isActive: o = !1, disabled: s = !1,
3089
3143
  tabIndex: s ? -1 : void 0,
3090
3144
  onClick: m,
3091
3145
  whileTap: p.reduce || s ? void 0 : { scale: .98 },
3092
- transition: xn,
3146
+ transition: Tn,
3093
3147
  className: g,
3094
3148
  children: h
3095
3149
  }) : /* @__PURE__ */ i(B.button, {
@@ -3098,13 +3152,13 @@ function dr({ children: e, icon: t, href: n, isActive: o = !1, disabled: s = !1,
3098
3152
  "aria-current": o ? "page" : void 0,
3099
3153
  onClick: m,
3100
3154
  whileTap: p.reduce || s ? void 0 : { scale: .98 },
3101
- transition: xn,
3155
+ transition: Tn,
3102
3156
  className: g,
3103
3157
  children: h
3104
3158
  });
3105
3159
  }
3106
- function fr({ children: e, icon: t, badge: n, href: o, isActive: s = !1, ariaExpanded: c, disabled: l = !1, closeOnSelect: u, target: f, rel: p, onSelect: m, className: h }) {
3107
- let g = $(), _ = qn(), v = typeof e == "string" ? e : void 0, y = (e) => {
3160
+ function gr({ children: e, icon: t, badge: n, href: o, isActive: s = !1, ariaExpanded: c, disabled: l = !1, closeOnSelect: u, target: f, rel: p, onSelect: m, className: h }) {
3161
+ let g = $(), _ = Zn(), v = typeof e == "string" ? e : void 0, y = (e) => {
3108
3162
  if (l) {
3109
3163
  e.preventDefault();
3110
3164
  return;
@@ -3115,7 +3169,7 @@ function fr({ children: e, icon: t, badge: n, href: o, isActive: s = !1, ariaExp
3115
3169
  }, b = /* @__PURE__ */ a(r, { children: [
3116
3170
  s ? /* @__PURE__ */ i(B.span, {
3117
3171
  layoutId: g.layoutId,
3118
- transition: g.reduce ? { duration: 0 } : wn,
3172
+ transition: g.reduce ? { duration: 0 } : On,
3119
3173
  className: "absolute inset-0 rounded-xl bg-muted"
3120
3174
  }) : null,
3121
3175
  t ? /* @__PURE__ */ i("span", {
@@ -3129,7 +3183,7 @@ function fr({ children: e, icon: t, badge: n, href: o, isActive: s = !1, ariaExp
3129
3183
  opacity: +!_.collapsed,
3130
3184
  x: _.collapsed ? -4 : 0
3131
3185
  },
3132
- transition: g.reduce ? zn : _.collapsed ? Fn : Pn,
3186
+ transition: g.reduce ? Un : _.collapsed ? zn : Rn,
3133
3187
  "aria-hidden": _.collapsed,
3134
3188
  className: V("relative z-10 min-w-0 flex-1 truncate", _.collapsed && "pointer-events-none"),
3135
3189
  children: e
@@ -3146,7 +3200,7 @@ function fr({ children: e, icon: t, badge: n, href: o, isActive: s = !1, ariaExp
3146
3200
  rotate: c ? 90 : 0,
3147
3201
  x: _.collapsed ? 4 : 0
3148
3202
  },
3149
- transition: g.reduce ? { duration: 0 } : wn,
3203
+ transition: g.reduce ? { duration: 0 } : On,
3150
3204
  className: "relative z-10 grid size-4 shrink-0 place-items-center text-muted-foreground",
3151
3205
  children: /* @__PURE__ */ i(d, { className: "size-3.5" })
3152
3206
  })
@@ -3163,7 +3217,7 @@ function fr({ children: e, icon: t, badge: n, href: o, isActive: s = !1, ariaExp
3163
3217
  tabIndex: l ? -1 : void 0,
3164
3218
  onClick: y,
3165
3219
  whileTap: g.reduce || l ? void 0 : { scale: .98 },
3166
- transition: xn,
3220
+ transition: Tn,
3167
3221
  className: x,
3168
3222
  children: b
3169
3223
  }) : /* @__PURE__ */ i(B.button, {
@@ -3175,30 +3229,32 @@ function fr({ children: e, icon: t, badge: n, href: o, isActive: s = !1, ariaExp
3175
3229
  title: _.collapsed ? v : void 0,
3176
3230
  onClick: y,
3177
3231
  whileTap: g.reduce || l ? void 0 : { scale: .98 },
3178
- transition: xn,
3232
+ transition: Tn,
3179
3233
  className: x,
3180
3234
  children: b
3181
3235
  });
3182
3236
  }
3183
3237
  //#endregion
3184
- //#region src/components/blocks/nav/sidebar-block.tsx
3185
- function pr(e, t) {
3238
+ //#region src/components/blocks/nav/utils.ts
3239
+ function _r(e, t) {
3186
3240
  return t !== void 0 && e === t;
3187
3241
  }
3188
- function mr({ item: e, activeId: t, onNavigate: n }) {
3189
- let r = e.items ?? [], o = r.length > 0, s = r.some((e) => pr(e.id, t)), [c, l] = D.useState(null), [u, d] = D.useState(s);
3242
+ //#endregion
3243
+ //#region src/components/blocks/nav/sidebar-nav-row.tsx
3244
+ function vr({ item: e, activeId: t, onNavigate: n }) {
3245
+ let r = e.items ?? [], o = r.length > 0, s = r.some((e) => _r(e.id, t)), [c, l] = A.useState(null), [u, d] = A.useState(s);
3190
3246
  s !== u && (d(s), s && l(null));
3191
3247
  let f = c ?? e.defaultOpen ?? s;
3192
3248
  function p(e) {
3193
3249
  e.onSelect?.(), n?.(e);
3194
3250
  }
3195
- return /* @__PURE__ */ a(cr, { children: [/* @__PURE__ */ i(fr, {
3251
+ return /* @__PURE__ */ a(fr, { children: [/* @__PURE__ */ i(gr, {
3196
3252
  ariaExpanded: o ? f : void 0,
3197
3253
  badge: e.badge,
3198
3254
  disabled: e.disabled,
3199
3255
  href: o ? void 0 : e.href,
3200
3256
  icon: e.icon,
3201
- isActive: pr(e.id, t),
3257
+ isActive: _r(e.id, t),
3202
3258
  onSelect: () => {
3203
3259
  if (o) {
3204
3260
  l(!f);
@@ -3208,21 +3264,23 @@ function mr({ item: e, activeId: t, onNavigate: n }) {
3208
3264
  },
3209
3265
  target: e.target,
3210
3266
  children: e.label
3211
- }), o ? /* @__PURE__ */ i(lr, {
3267
+ }), o ? /* @__PURE__ */ i(pr, {
3212
3268
  open: f,
3213
- children: r.map((e) => /* @__PURE__ */ i(ur, { children: /* @__PURE__ */ i(dr, {
3269
+ children: r.map((e) => /* @__PURE__ */ i(mr, { children: /* @__PURE__ */ i(hr, {
3214
3270
  disabled: e.disabled,
3215
3271
  href: e.href,
3216
3272
  icon: e.icon,
3217
- isActive: pr(e.id, t),
3273
+ isActive: _r(e.id, t),
3218
3274
  onSelect: () => p(e),
3219
3275
  target: e.target,
3220
3276
  children: e.label
3221
3277
  }) }, e.id))
3222
3278
  }) : null] });
3223
3279
  }
3224
- function hr({ sections: e, activeId: t, onNavigate: n, header: r, footer: o, showTrigger: s = !0, side: c = "left", variant: l = "sidebar", collapsible: u = "icon", open: d, defaultOpen: f, onOpenChange: p, openMobile: m, defaultOpenMobile: h, onOpenMobileChange: g, width: _, iconWidth: v, mobileWidth: y, ariaLabel: x = "Main", className: S }) {
3225
- return /* @__PURE__ */ i(Jn, {
3280
+ //#endregion
3281
+ //#region src/components/blocks/nav/sidebar-block.tsx
3282
+ function yr({ sections: e, activeId: t, onNavigate: n, header: r, footer: o, showTrigger: s = !0, side: c = "left", variant: l = "sidebar", collapsible: u = "icon", open: d, defaultOpen: f, onOpenChange: p, openMobile: m, defaultOpenMobile: h, onOpenMobileChange: g, width: _, iconWidth: v, mobileWidth: y, ariaLabel: b = "Main", className: x }) {
3283
+ return /* @__PURE__ */ i(Qn, {
3226
3284
  className: "h-full min-h-0 w-auto",
3227
3285
  defaultOpen: f,
3228
3286
  defaultOpenMobile: h,
@@ -3235,38 +3293,100 @@ function hr({ sections: e, activeId: t, onNavigate: n, header: r, footer: o, sho
3235
3293
  ...v ? { "--sidebar-width-icon": v } : null,
3236
3294
  ...y ? { "--sidebar-width-mobile": y } : null
3237
3295
  },
3238
- children: /* @__PURE__ */ a(Xn, {
3239
- ariaLabel: x,
3240
- className: V("h-full", S),
3296
+ children: /* @__PURE__ */ a(er, {
3297
+ ariaLabel: b,
3298
+ className: V("h-full", x),
3241
3299
  collapsible: u,
3242
3300
  panelClassName: "h-full",
3243
3301
  role: "navigation",
3244
3302
  side: c,
3245
3303
  variant: l,
3246
3304
  children: [
3247
- r || s ? /* @__PURE__ */ i(tr, { children: /* @__PURE__ */ a("div", {
3305
+ r || s && /* @__PURE__ */ i(ar, { children: /* @__PURE__ */ a("div", {
3248
3306
  className: "flex min-w-0 items-center justify-between gap-2",
3249
- children: [r ? /* @__PURE__ */ i("div", {
3307
+ children: [r && /* @__PURE__ */ i("div", {
3250
3308
  className: "min-w-0 flex-1",
3251
3309
  children: r
3252
- }) : null, s ? /* @__PURE__ */ i(Zn, {
3310
+ }), s && /* @__PURE__ */ i(tr, {
3253
3311
  className: "text-muted-foreground hover:text-foreground",
3254
- children: /* @__PURE__ */ i(b, { className: "size-4.5" })
3255
- }) : null]
3256
- }) }) : null,
3257
- /* @__PURE__ */ i(nr, { children: e.map((e) => /* @__PURE__ */ a(ir, { children: [e.label ? /* @__PURE__ */ i(ar, { children: e.label }) : null, /* @__PURE__ */ i(or, { children: /* @__PURE__ */ i(sr, { children: e.items.map((e) => /* @__PURE__ */ i(mr, {
3312
+ children: /* @__PURE__ */ i(S, { className: "size-4.5" })
3313
+ })]
3314
+ }) }),
3315
+ /* @__PURE__ */ i(or, { children: e.map((e) => /* @__PURE__ */ a(cr, { children: [e.label && /* @__PURE__ */ i(lr, { children: e.label }), /* @__PURE__ */ i(ur, { children: /* @__PURE__ */ i(dr, { children: e.items.map((e) => /* @__PURE__ */ i(vr, {
3258
3316
  activeId: t,
3259
3317
  item: e,
3260
3318
  onNavigate: n
3261
3319
  }, e.id)) }) })] }, e.id)) }),
3262
- o ? /* @__PURE__ */ i(rr, { children: o }) : null
3320
+ o && /* @__PURE__ */ i(sr, { children: o })
3263
3321
  ]
3264
3322
  })
3265
3323
  });
3266
3324
  }
3267
3325
  //#endregion
3326
+ //#region src/components/blocks/shell/shell-layout.tsx
3327
+ function br({ children: e, open: t, defaultOpen: n, onOpenChange: r, rightDrawer: o, rightOpen: s, defaultRightOpen: c, onRightOpenChange: l, variant: u = "desktop", className: d }) {
3328
+ return /* @__PURE__ */ a(Qn, {
3329
+ className: V("block-full", d, "bg-linear-to-tr/increasing from-neutral-200 via-neutral-100 to-stone-200 dark:from-neutral-900 dark:via-neutral-950 dark:to-stone-950", "relative pr-2"),
3330
+ defaultOpen: n,
3331
+ defaultOpenRight: c,
3332
+ onOpenChange: r,
3333
+ onOpenRightChange: l,
3334
+ open: t,
3335
+ openRight: s,
3336
+ style: { paddingTop: u === "desktop" ? 48 : 0 },
3337
+ children: [
3338
+ /* @__PURE__ */ i(er, {
3339
+ ariaLabel: "Primary navigation",
3340
+ className: V(""),
3341
+ collapsible: "icon",
3342
+ role: "navigation",
3343
+ variant: "inset"
3344
+ }),
3345
+ /* @__PURE__ */ a(ir, {
3346
+ className: V("min-w-24 overflow-hidden border-t border-neutral-200 dark:border-neutral-700 inset-ring-1 inset-ring-neutral-50 dark:inset-ring-black bg-white dark:bg-card rounded-lg!", "mx-0!"),
3347
+ children: [/* @__PURE__ */ a("header", {
3348
+ className: "flex h-16 items-center justify-between gap-3 px-4 sm:px-6",
3349
+ children: [/* @__PURE__ */ i("div", {
3350
+ className: "flex min-w-0 items-center gap-3",
3351
+ children: /* @__PURE__ */ i(tr, { children: /* @__PURE__ */ i(x, { className: "size-5" }) })
3352
+ }), /* @__PURE__ */ i("div", {
3353
+ className: "flex shrink-0 items-center gap-3",
3354
+ children: /* @__PURE__ */ i(tr, {
3355
+ "aria-label": "Toggle panel",
3356
+ side: "right",
3357
+ children: /* @__PURE__ */ i(C, { className: "size-5" })
3358
+ })
3359
+ })]
3360
+ }), /* @__PURE__ */ i("div", {
3361
+ className: "min-h-24 flex-1 overflow-auto",
3362
+ children: e ?? /* @__PURE__ */ i(xr, {})
3363
+ })]
3364
+ }),
3365
+ /* @__PURE__ */ i(er, {
3366
+ ariaLabel: "Secondary panel",
3367
+ className: V("max-md:border-l max-md:border-neutral-200 max-md:bg-white dark:max-md:border-neutral-700 dark:max-md:bg-card"),
3368
+ collapsible: "offcanvas",
3369
+ panelClassName: V("top-2 ml-0 h-[calc(100%-1rem)] min-w-[calc(var(--sidebar-width))]", "rounded-lg border-t border-neutral-200 bg-white shadow-md inset-ring-1 inset-ring-neutral-50", "dark:border-neutral-700 dark:bg-card dark:inset-ring-black"),
3370
+ role: "complementary",
3371
+ side: "right",
3372
+ variant: "inset",
3373
+ children: o
3374
+ })
3375
+ ]
3376
+ });
3377
+ }
3378
+ function xr() {
3379
+ return /* @__PURE__ */ a("div", {
3380
+ className: "grid gap-5",
3381
+ children: [/* @__PURE__ */ i("div", {
3382
+ className: "grid gap-5 lg:grid-cols-3",
3383
+ children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ i("div", { className: "h-32 border border-border bg-background/60" }, t))
3384
+ }), /* @__PURE__ */ i("div", { className: "h-72 border border-border bg-background/60" })]
3385
+ });
3386
+ }
3387
+ //#endregion
3268
3388
  //#region src/components/blocks/profile/profile-card-block.tsx
3269
- var gr = [
3389
+ var Sr = [
3270
3390
  {
3271
3391
  type: "label",
3272
3392
  label: "Management"
@@ -3274,68 +3394,68 @@ var gr = [
3274
3394
  {
3275
3395
  id: "profile",
3276
3396
  label: "Profile",
3277
- icon: /* @__PURE__ */ i(C, { "aria-hidden": "true" })
3397
+ icon: /* @__PURE__ */ i(E, { "aria-hidden": "true" })
3278
3398
  },
3279
3399
  {
3280
3400
  id: "settings",
3281
3401
  label: "Settings",
3282
- icon: /* @__PURE__ */ i(x, { "aria-hidden": "true" })
3402
+ icon: /* @__PURE__ */ i(w, { "aria-hidden": "true" })
3283
3403
  },
3284
3404
  { type: "separator" },
3285
3405
  {
3286
3406
  id: "teams",
3287
3407
  label: "Teams",
3288
- icon: /* @__PURE__ */ i(T, { "aria-hidden": "true" })
3408
+ icon: /* @__PURE__ */ i(O, { "aria-hidden": "true" })
3289
3409
  },
3290
3410
  {
3291
3411
  id: "invite",
3292
3412
  label: "Invite",
3293
- icon: /* @__PURE__ */ i(w, { "aria-hidden": "true" })
3413
+ icon: /* @__PURE__ */ i(D, { "aria-hidden": "true" })
3294
3414
  },
3295
3415
  { type: "separator" },
3296
3416
  {
3297
3417
  id: "sign-out",
3298
3418
  label: "Log out",
3299
- icon: /* @__PURE__ */ i(v, { "aria-hidden": "true" }),
3419
+ icon: /* @__PURE__ */ i(y, { "aria-hidden": "true" }),
3300
3420
  variant: "destructive"
3301
3421
  }
3302
3422
  ];
3303
- function _r(e) {
3423
+ function Cr(e) {
3304
3424
  let t = [], n = { actions: [] };
3305
3425
  for (let r of e) r.type === "separator" ? (t.push(n), n = { actions: [] }) : r.type === "label" ? n.label = r.label : n.actions.push(r);
3306
3426
  return t.push(n), t.filter((e) => e.actions.length > 0 || e.label !== void 0);
3307
3427
  }
3308
- function vr({ user: e, items: t = gr, align: n = "center", side: r = "bottom", sideOffset: o = 8, open: s, defaultOpen: c, onOpenChange: l, sound: u = !0, onError: d, className: f }) {
3309
- let [m, h] = D.useState(null), g = D.useRef(!0);
3310
- D.useEffect(() => (g.current = !0, () => {
3311
- g.current = !1;
3428
+ function wr({ user: e, items: t = Sr, align: n = "center", side: r = "bottom", sideOffset: o = 8, menuWidth: s = "content", open: c, defaultOpen: l, onOpenChange: u, sound: d = !0, onError: f, className: m }) {
3429
+ let [h, g] = A.useState(null), _ = A.useRef(!0);
3430
+ A.useEffect(() => (_.current = !0, () => {
3431
+ _.current = !1;
3312
3432
  }), []);
3313
- let _ = D.useMemo(() => _r(t), [t]);
3314
- function v(e) {
3433
+ let v = A.useMemo(() => Cr(t), [t]);
3434
+ function y(e) {
3315
3435
  let t = e.onSelect?.();
3316
- t instanceof Promise && (h(e.id), t.catch((e) => d?.(e)).finally(() => {
3317
- g.current && h(null);
3436
+ t instanceof Promise && (g(e.id), t.catch((e) => f?.(e)).finally(() => {
3437
+ _.current && g(null);
3318
3438
  }));
3319
3439
  }
3320
- let y = m !== null;
3321
- return /* @__PURE__ */ a(yt, {
3322
- defaultOpen: c,
3440
+ let b = h !== null;
3441
+ return /* @__PURE__ */ a(St, {
3442
+ defaultOpen: l,
3323
3443
  onOpenChange: (e, t) => {
3324
- u && Ze(e ? "bloom" : "droplet"), l?.(e, t);
3444
+ d && et(e ? "bloom" : "droplet"), u?.(e, t);
3325
3445
  },
3326
- open: s,
3327
- children: [/* @__PURE__ */ i(xt, {
3328
- disabled: y,
3446
+ open: c,
3447
+ children: [/* @__PURE__ */ i(wt, {
3448
+ disabled: b,
3329
3449
  render: /* @__PURE__ */ a(H, {
3330
3450
  "aria-label": `${e.name}${e.username ? ` ${e.username}` : ""}, account menu`,
3331
- className: V("h-auto w-full justify-between py-1.5 pl-1.5 sm:h-auto", f),
3451
+ className: V("h-auto w-full justify-between py-1.5 pl-1.5 data-popup-open:bg-accent sm:h-auto", m),
3332
3452
  "data-slot": "profile-card",
3333
- loading: y,
3334
- sound: u,
3335
- variant: "outline",
3453
+ loading: b,
3454
+ sound: d,
3455
+ variant: "ghost",
3336
3456
  children: [/* @__PURE__ */ a("span", {
3337
3457
  className: "flex w-full min-w-0 items-center justify-start gap-2",
3338
- children: [/* @__PURE__ */ i(Yt, {
3458
+ children: [/* @__PURE__ */ i($t, {
3339
3459
  alt: "",
3340
3460
  initials: e.initials,
3341
3461
  name: e.name,
@@ -3355,25 +3475,25 @@ function vr({ user: e, items: t = gr, align: n = "center", side: r = "bottom", s
3355
3475
  className: "size-3.5"
3356
3476
  })]
3357
3477
  })
3358
- }), /* @__PURE__ */ i(St, {
3478
+ }), /* @__PURE__ */ i(Tt, {
3359
3479
  align: n,
3360
- className: "min-w-44! origin-(--transform-origin) transition-[opacity,scale,translate] duration-150 ease-smooth-out data-ending-style:scale-98 data-ending-style:opacity-0 data-ending-style:duration-100 data-starting-style:scale-98 data-starting-style:opacity-0 data-[side=bottom]:data-ending-style:-translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=top]:data-ending-style:translate-y-1 data-[side=top]:data-starting-style:translate-y-1 motion-reduce:transition-none",
3480
+ className: V(s === "card" ? "w-(--anchor-width)" : "min-w-44!", "origin-(--transform-origin) transition-[opacity,scale,translate] duration-150 ease-smooth-out data-ending-style:scale-98 data-ending-style:opacity-0 data-ending-style:duration-100 data-starting-style:scale-98 data-starting-style:opacity-0 data-[side=bottom]:data-ending-style:-translate-y-1 data-[side=bottom]:data-starting-style:-translate-y-1 data-[side=top]:data-ending-style:translate-y-1 data-[side=top]:data-starting-style:translate-y-1 motion-reduce:transition-none"),
3361
3481
  side: r,
3362
3482
  sideOffset: o,
3363
- children: _.map((e, t) => /* @__PURE__ */ a(D.Fragment, { children: [t > 0 ? /* @__PURE__ */ i(At, {}) : null, /* @__PURE__ */ a(Ct, { children: [e.label ? /* @__PURE__ */ i(kt, { children: e.label }) : null, e.actions.map((e) => /* @__PURE__ */ a(wt, {
3483
+ children: v.map((e, t) => /* @__PURE__ */ a(A.Fragment, { children: [t > 0 ? /* @__PURE__ */ i(Nt, {}) : null, /* @__PURE__ */ a(Et, { children: [e.label ? /* @__PURE__ */ i(Mt, { children: e.label }) : null, e.actions.map((e) => /* @__PURE__ */ a(Dt, {
3364
3484
  disabled: e.disabled,
3365
- onClick: () => v(e),
3485
+ onClick: () => y(e),
3366
3486
  variant: e.variant,
3367
3487
  children: [
3368
3488
  e.icon,
3369
3489
  /* @__PURE__ */ i("span", { children: e.label }),
3370
- e.shortcut ? /* @__PURE__ */ i(jt, { children: e.shortcut }) : null
3490
+ e.shortcut ? /* @__PURE__ */ i(Pt, { children: e.shortcut }) : null
3371
3491
  ]
3372
3492
  }, e.id))] })] }, e.label ?? `group-${e.actions[0]?.id}`))
3373
3493
  })]
3374
3494
  });
3375
3495
  }
3376
3496
  //#endregion
3377
- export { Xn as AnimatedSidebar, Qn as AnimatedSidebarClose, nr as AnimatedSidebarContent, rr as AnimatedSidebarFooter, ir as AnimatedSidebarGroup, or as AnimatedSidebarGroupContent, ar as AnimatedSidebarGroupLabel, tr as AnimatedSidebarHeader, er as AnimatedSidebarInset, sr as AnimatedSidebarMenu, fr as AnimatedSidebarMenuButton, cr as AnimatedSidebarMenuItem, lr as AnimatedSidebarMenuSub, dr as AnimatedSidebarMenuSubButton, ur as AnimatedSidebarMenuSubItem, Jn as AnimatedSidebarProvider, $n as AnimatedSidebarRail, Zn as AnimatedSidebarTrigger, q as AuthCard, X as AuthError, Qt as AuthSeparator, Z as AuthSuccess, Ce as Avatar, Te as AvatarFallback, we as AvatarImage, e as AvatarPrimitive, H as Button, Ie as Card, Ke as CardAction, qe as CardContent, qe as CardPanel, Ge as CardDescription, Je as CardFooter, Le as CardFrame, Ve as CardFrameAction, Be as CardFrameDescription, He as CardFrameFooter, Re as CardFrameHeader, ze as CardFrameTitle, Ue as CardHeader, We as CardTitle, Qe as Checkbox, ae as CheckboxPrimitive, en as CodeAuthBlock, ln as DEFAULT_ONBOARDING_STEPS, yt as DropdownMenu, yt as Menu, Et as DropdownMenuCheckboxItem, Et as MenuCheckboxItem, St as DropdownMenuContent, St as MenuPopup, vt as DropdownMenuCreateHandle, vt as MenuCreateHandle, Ct as DropdownMenuGroup, Ct as MenuGroup, wt as DropdownMenuItem, wt as MenuItem, kt as DropdownMenuLabel, kt as MenuGroupLabel, bt as DropdownMenuPortal, bt as MenuPortal, Dt as DropdownMenuRadioGroup, Dt as MenuRadioGroup, Ot as DropdownMenuRadioItem, Ot as MenuRadioItem, At as DropdownMenuSeparator, At as MenuSeparator, jt as DropdownMenuShortcut, jt as MenuShortcut, Mt as DropdownMenuSub, Mt as MenuSub, Pt as DropdownMenuSubContent, Pt as MenuSubPopup, Nt as DropdownMenuSubTrigger, Nt as MenuSubTrigger, xt as DropdownMenuTrigger, xt as MenuTrigger, K as EASE, yn as EASE_DRAWER, vn as EASE_IN_OUT, Q as EASE_OUT, bn as EASE_OUT_CSS, U as Field, nt as FieldControl, et as FieldDescription, tt as FieldError, $e as FieldItem, W as FieldLabel, rt as FieldValidity, tn as ForgotPasswordBlock, it as Frame, ct as FrameDescription, lt as FrameFooter, ot as FrameHeader, at as FramePanel, st as FrameTitle, G as Input, ft as InputGroup, pt as InputGroupAddon, ht as InputGroupInput, mt as InputGroupText, gt as InputGroupTextarea, pe as InputPrimitive, _t as Label, rn as LinkedAccountsBlock, an as LoginBlock, Tt as MenuLinkItem, R as MenuPrimitive, J as MorphStep, It as OTPField, Lt as OTPFieldInput, me as OTPFieldPrimitive, Rt as OTPFieldSeparator, un as OnboardingBlock, mn as PasskeyManagerBlock, hn as PasskeySignInBlock, Wt as PasswordInput, vr as ProfileCardBlock, Y as Reveal, Gt as SOCIAL_PROVIDERS, En as SPRING_GLIDE, wn as SPRING_LAYOUT, Tn as SPRING_MOUSE, Cn as SPRING_PANEL, xn as SPRING_PRESS, Sn as SPRING_SWAP, Ft as Separator, he as SeparatorPrimitive, kn as SharedLayoutBg, hr as SidebarBlock, gn as SignupBlock, zt as Skeleton, qt as SocialProviders, Ee as Spinner, ut as Textarea, _n as UpdatePasswordBlock, Yt as UserAvatar, Zt as authAccentActionStyles, Xt as authAccentVars, Xe as bindSounds, Fe as buttonVariants, V as cn, gr as defaultProfileCardItems, Ht as getPasswordStrength, Jt as initialsFrom, Vt as passwordRequirements, Ze as playCue, ce as playSound, le as setSoundEnabled, ue as setSoundVolume, de as sounds, $ as useAnimatedSidebar, $t as useCountdown };
3497
+ export { er as AnimatedSidebar, nr as AnimatedSidebarClose, or as AnimatedSidebarContent, sr as AnimatedSidebarFooter, cr as AnimatedSidebarGroup, ur as AnimatedSidebarGroupContent, lr as AnimatedSidebarGroupLabel, ar as AnimatedSidebarHeader, ir as AnimatedSidebarInset, dr as AnimatedSidebarMenu, gr as AnimatedSidebarMenuButton, fr as AnimatedSidebarMenuItem, pr as AnimatedSidebarMenuSub, hr as AnimatedSidebarMenuSubButton, mr as AnimatedSidebarMenuSubItem, Qn as AnimatedSidebarProvider, rr as AnimatedSidebarRail, tr as AnimatedSidebarTrigger, q as AuthCard, X as AuthError, nn as AuthSeparator, Z as AuthSuccess, Ee as Avatar, Oe as AvatarFallback, De as AvatarImage, e as AvatarPrimitive, H as Button, ze as Card, Ye as CardAction, Xe as CardContent, Xe as CardPanel, Je as CardDescription, Ze as CardFooter, Be as CardFrame, We as CardFrameAction, Ue as CardFrameDescription, Ge as CardFrameFooter, Ve as CardFrameHeader, He as CardFrameTitle, Ke as CardHeader, qe as CardTitle, tt as Checkbox, ce as CheckboxPrimitive, an as CodeAuthBlock, pn as DEFAULT_ONBOARDING_STEPS, St as DropdownMenu, St as Menu, kt as DropdownMenuCheckboxItem, kt as MenuCheckboxItem, Tt as DropdownMenuContent, Tt as MenuPopup, xt as DropdownMenuCreateHandle, xt as MenuCreateHandle, Et as DropdownMenuGroup, Et as MenuGroup, Dt as DropdownMenuItem, Dt as MenuItem, Mt as DropdownMenuLabel, Mt as MenuGroupLabel, Ct as DropdownMenuPortal, Ct as MenuPortal, At as DropdownMenuRadioGroup, At as MenuRadioGroup, jt as DropdownMenuRadioItem, jt as MenuRadioItem, Nt as DropdownMenuSeparator, Nt as MenuSeparator, Pt as DropdownMenuShortcut, Pt as MenuShortcut, Ft as DropdownMenuSub, Ft as MenuSub, Lt as DropdownMenuSubContent, Lt as MenuSubPopup, It as DropdownMenuSubTrigger, It as MenuSubTrigger, wt as DropdownMenuTrigger, wt as MenuTrigger, K as EASE, Cn as EASE_DRAWER, Sn as EASE_IN_OUT, Q as EASE_OUT, wn as EASE_OUT_CSS, U as Field, at as FieldControl, rt as FieldDescription, it as FieldError, nt as FieldItem, W as FieldLabel, ot as FieldValidity, on as ForgotPasswordBlock, st as Frame, dt as FrameDescription, ft as FrameFooter, lt as FrameHeader, ct as FramePanel, ut as FrameTitle, G as Input, ht as InputGroup, gt as InputGroupAddon, vt as InputGroupInput, _t as InputGroupText, yt as InputGroupTextarea, ge as InputPrimitive, bt as Label, cn as LinkedAccountsBlock, ln as LoginBlock, Ot as MenuLinkItem, R as MenuPrimitive, J as MorphStep, zt as OTPField, Bt as OTPFieldInput, _e as OTPFieldPrimitive, Vt as OTPFieldSeparator, mn as OnboardingBlock, vn as PasskeyManagerBlock, yn as PasskeySignInBlock, qt as PasswordInput, wr as ProfileCardBlock, Y as Reveal, Yt as SOCIAL_PROVIDERS, An as SPRING_GLIDE, On as SPRING_LAYOUT, kn as SPRING_MOUSE, Dn as SPRING_PANEL, Tn as SPRING_PRESS, En as SPRING_SWAP, Rt as Separator, ve as SeparatorPrimitive, Nn as SharedLayoutBg, br as ShellLayout, yr as SidebarBlock, bn as SignupBlock, Ht as Skeleton, Zt as SocialProviders, ke as Spinner, pt as Textarea, xn as UpdatePasswordBlock, $t as UserAvatar, tn as authAccentActionStyles, en as authAccentVars, $e as bindSounds, Re as buttonVariants, V as cn, Sr as defaultProfileCardItems, Gt as getPasswordStrength, Qt as initialsFrom, Wt as passwordRequirements, et as playCue, de as playSound, fe as setSoundEnabled, pe as setSoundVolume, me as sounds, $ as useAnimatedSidebar, rn as useCountdown };
3378
3498
 
3379
3499
  //# sourceMappingURL=index.js.map