@coderabbitai/carrot-ui 0.1.23 → 0.2.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 (3) hide show
  1. package/dist/index.d.ts +65 -19
  2. package/dist/index.js +1221 -1049
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,32 +1,32 @@
1
1
  import { clsx as e } from "clsx";
2
2
  import { extendTailwindMerge as t } from "tailwind-merge";
3
3
  import { ArrowLeftIcon as n, ArrowRightStartOnRectangleIcon as r, ArrowTopRightOnSquareIcon as i, CheckCircleIcon as a, CheckIcon as o, ChevronDownIcon as s, ChevronLeftIcon as c, ChevronRightIcon as l, ChevronUpDownIcon as u, ChevronUpIcon as d, ComputerDesktopIcon as f, ExclamationTriangleIcon as p, InformationCircleIcon as m, MagnifyingGlassIcon as h, MinusIcon as g, MoonIcon as _, PlusCircleIcon as v, SunIcon as y, XCircleIcon as b, XMarkIcon as x } from "@heroicons/react/16/solid";
4
- import { createContext as S, forwardRef as C, useCallback as w, useContext as ee, useEffect as te, useLayoutEffect as T, useMemo as E, useRef as D, useState as O } from "react";
5
- import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
6
- import { Combobox as M } from "@base-ui/react/combobox";
4
+ import { createContext as S, forwardRef as C, useCallback as w, useContext as T, useEffect as ee, useLayoutEffect as E, useMemo as D, useRef as O, useState as k, useSyncExternalStore as te } from "react";
5
+ import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
6
+ import { Combobox as N } from "@base-ui/react/combobox";
7
7
  import { Button as ne } from "@base-ui/react/button";
8
8
  import { Switch as re } from "@base-ui/react/switch";
9
9
  import { Checkbox as ie } from "@base-ui/react/checkbox";
10
- import { AnimatePresence as N, motion as P } from "motion/react";
11
- import { Tooltip as F } from "@base-ui/react/tooltip";
12
- import { Select as I } from "@base-ui/react/select";
10
+ import { AnimatePresence as P, motion as F } from "motion/react";
11
+ import { Drawer as I } from "@base-ui/react/drawer";
12
+ import { Tooltip as L } from "@base-ui/react/tooltip";
13
+ import { Select as R } from "@base-ui/react/select";
13
14
  import { Separator as ae } from "@base-ui/react/separator";
14
- import { Field as L } from "@base-ui/react/field";
15
- import { Menu as R } from "@base-ui/react/menu";
16
- import { Dialog as z } from "@base-ui/react/dialog";
17
- import { flexRender as oe, getCoreRowModel as se, getFilteredRowModel as ce, getPaginationRowModel as le, getSortedRowModel as ue, useReactTable as de } from "@tanstack/react-table";
18
- import { Popover as B } from "@base-ui/react/popover";
19
- import { AlertDialog as V } from "@base-ui/react/alert-dialog";
20
- import { Accordion as fe } from "@base-ui/react/accordion";
21
- import { Tabs as pe } from "@base-ui/react/tabs";
22
- import { Drawer as H } from "@base-ui/react/drawer";
15
+ import { Field as oe } from "@base-ui/react/field";
16
+ import { Menu as z } from "@base-ui/react/menu";
17
+ import { Dialog as B } from "@base-ui/react/dialog";
18
+ import { flexRender as se, getCoreRowModel as ce, getFilteredRowModel as le, getPaginationRowModel as ue, getSortedRowModel as de, useReactTable as fe } from "@tanstack/react-table";
19
+ import { Popover as V } from "@base-ui/react/popover";
20
+ import { AlertDialog as H } from "@base-ui/react/alert-dialog";
21
+ import { Accordion as pe } from "@base-ui/react/accordion";
22
+ import { Tabs as me } from "@base-ui/react/tabs";
23
23
  import { Command as U } from "cmdk";
24
- import { Toggle as me } from "@base-ui/react/toggle";
25
- import { ToggleGroup as he } from "@base-ui/react/toggle-group";
26
- import { RadioGroup as ge } from "@base-ui/react/radio-group";
27
- import { Radio as _e } from "@base-ui/react/radio";
24
+ import { Toggle as he } from "@base-ui/react/toggle";
25
+ import { ToggleGroup as ge } from "@base-ui/react/toggle-group";
26
+ import { RadioGroup as _e } from "@base-ui/react/radio-group";
27
+ import { Radio as ve } from "@base-ui/react/radio";
28
28
  //#region src/lib/cn.ts
29
- var ve = t({ extend: { classGroups: {
29
+ var ye = t({ extend: { classGroups: {
30
30
  "font-size": [{ "text-cui": [
31
31
  "sm",
32
32
  "base",
@@ -49,12 +49,12 @@ var ve = t({ extend: { classGroups: {
49
49
  ] }]
50
50
  } } });
51
51
  function W(...t) {
52
- return ve(e(t));
52
+ return ye(e(t));
53
53
  }
54
54
  //#endregion
55
55
  //#region src/components/hover/hover.tsx
56
- var ye = S(null);
57
- function be(e) {
56
+ var be = S(null);
57
+ function xe(e) {
58
58
  return {
59
59
  left: e.offsetLeft,
60
60
  top: e.offsetTop,
@@ -62,13 +62,13 @@ function be(e) {
62
62
  height: e.offsetHeight
63
63
  };
64
64
  }
65
- function xe({ children: e, background: t = "bg-cui-subtle", borderRadius: n = "rounded-sm", className: r }) {
66
- let i = D(/* @__PURE__ */ new Map()), [a, o] = O(null), s = D(null), [c, l] = O("idle"), u = w((e, t) => {
65
+ function Se({ children: e, background: t = "bg-cui-subtle", borderRadius: n = "rounded-sm", className: r }) {
66
+ let i = O(/* @__PURE__ */ new Map()), [a, o] = k(null), s = O(null), [c, l] = k("idle"), u = w((e, t) => {
67
67
  t ? i.current.set(e, t) : i.current.delete(e);
68
68
  }, []), d = w((e) => {
69
69
  let t = i.current.get(e);
70
70
  if (!t) return;
71
- let n = be(t);
71
+ let n = xe(t);
72
72
  l((e) => e === "idle" ? "fade" : "slide"), o(n);
73
73
  }, []), f = w(() => {
74
74
  l("idle"), o(null);
@@ -76,7 +76,7 @@ function xe({ children: e, background: t = "bg-cui-subtle", borderRadius: n = "r
76
76
  l("idle"), o(null);
77
77
  }, []), m = a !== null, h = a ?? s.current;
78
78
  a && (s.current = a);
79
- let g = E(() => ({
79
+ let g = D(() => ({
80
80
  registerItem: u,
81
81
  onItemHover: d,
82
82
  dismissHover: p
@@ -85,12 +85,12 @@ function xe({ children: e, background: t = "bg-cui-subtle", borderRadius: n = "r
85
85
  d,
86
86
  p
87
87
  ]);
88
- return /* @__PURE__ */ A(ye.Provider, {
88
+ return /* @__PURE__ */ j(be.Provider, {
89
89
  value: g,
90
- children: /* @__PURE__ */ j("div", {
90
+ children: /* @__PURE__ */ M("div", {
91
91
  onPointerLeave: f,
92
92
  className: W("group/h relative flex items-center", r),
93
- children: [/* @__PURE__ */ A("div", {
93
+ children: [/* @__PURE__ */ j("div", {
94
94
  "aria-hidden": !0,
95
95
  className: W("pointer-events-none absolute left-0 top-0 z-0", "motion-reduce:transition-none", c === "slide" ? "transition-[translate,width,height,opacity,scale] duration-200 ease-cui-out-expo" : "transition-[opacity,scale] duration-200 ease-cui-out-expo", m ? "scale-100 opacity-100" : "scale-95 opacity-0"),
96
96
  style: h ? {
@@ -98,14 +98,14 @@ function xe({ children: e, background: t = "bg-cui-subtle", borderRadius: n = "r
98
98
  height: h.height,
99
99
  translate: `${h.left}px ${h.top}px`
100
100
  } : void 0,
101
- children: /* @__PURE__ */ A("div", { className: W("absolute inset-0", t, n, "transition-[inset] duration-150 ease-cui-out-expo", "group-active/h:inset-px", "motion-reduce:transition-none") })
101
+ children: /* @__PURE__ */ j("div", { className: W("absolute inset-0", t, n, "transition-[inset] duration-150 ease-cui-out-expo", "group-active/h:inset-px", "motion-reduce:transition-none") })
102
102
  }), e]
103
103
  })
104
104
  });
105
105
  }
106
106
  function G({ children: e, active: t = !1, background: n = "bg-cui-subtle", backgroundClassName: r, borderRadius: i = "rounded", focus: a = !0, interactive: o = !0, instantHover: s = !1, disabled: c = !1, fullWidth: l = !1, className: u, ...d }) {
107
- let f = ee(ye);
108
- return f ? /* @__PURE__ */ A(Se, {
107
+ let f = T(be);
108
+ return f ? /* @__PURE__ */ j(Ce, {
109
109
  group: f,
110
110
  active: t,
111
111
  background: n,
@@ -117,34 +117,34 @@ function G({ children: e, active: t = !1, background: n = "bg-cui-subtle", backg
117
117
  className: u,
118
118
  ...d,
119
119
  children: e
120
- }) : /* @__PURE__ */ j("div", {
120
+ }) : /* @__PURE__ */ M("div", {
121
121
  ...d,
122
122
  className: W("group/h relative flex min-w-0 items-center text-cui-primary text-cui-base", l ? "w-full" : "w-fit", u),
123
- children: [/* @__PURE__ */ A("div", { className: W("absolute", s ? "transition-[inset] duration-150 ease-cui-out-expo motion-reduce:transition-none" : "transition-[inset,opacity,background-color] duration-150 ease-cui-out-expo motion-reduce:transition-none", n, r, i, !c && "group-hover/h:inset-0 group-hover/h:opacity-100", o && !c && "group-active/h:inset-px", t ? "opacity-100 inset-0" : s ? "opacity-0 inset-0" : "opacity-0 inset-1", a && !c && "group-has-focus-visible/h:inset-0 group-has-focus-visible/h:opacity-100 group-has-focus-visible/h:ring-cui-focus group-has-focus-visible/h:ring-2 group-has-focus-visible/h:ring-offset-2") }), /* @__PURE__ */ A("div", {
123
+ children: [/* @__PURE__ */ j("div", { className: W("absolute", s ? "transition-[inset] duration-150 ease-cui-out-expo motion-reduce:transition-none" : "transition-[inset,opacity,background-color] duration-150 ease-cui-out-expo motion-reduce:transition-none", n, r, i, !c && "group-hover/h:inset-0 group-hover/h:opacity-100", o && !c && "group-active/h:inset-px", t ? "opacity-100 inset-0" : s ? "opacity-0 inset-0" : "opacity-0 inset-1", a && !c && "group-has-focus-visible/h:inset-0 group-has-focus-visible/h:opacity-100 group-has-focus-visible/h:ring-cui-focus group-has-focus-visible/h:ring-2 group-has-focus-visible/h:ring-offset-2") }), /* @__PURE__ */ j("div", {
124
124
  className: "relative z-[2] flex w-full min-w-0 items-center gap-2",
125
125
  children: e
126
126
  })]
127
127
  });
128
128
  }
129
- function Se({ children: e, group: t, active: n, background: r, backgroundClassName: i, borderRadius: a, interactive: o, disabled: s, fullWidth: c, className: l, ...u }) {
130
- let d = D(null), f = D(null);
129
+ function Ce({ children: e, group: t, active: n, background: r, backgroundClassName: i, borderRadius: a, interactive: o, disabled: s, fullWidth: c, className: l, ...u }) {
130
+ let d = O(null), f = O(null);
131
131
  f.current === null && (f.current = Math.random());
132
- let p = f.current, m = D(t);
133
- m.current = t, T(() => {
132
+ let p = f.current, m = O(t);
133
+ m.current = t, E(() => {
134
134
  let e = m.current;
135
135
  return e.registerItem(p, d.current), () => e.registerItem(p, null);
136
136
  }, [p]);
137
- let h = D(n);
138
- return T(() => {
137
+ let h = O(n);
138
+ return E(() => {
139
139
  n && !h.current && t.dismissHover(), h.current = n;
140
- }, [n, t]), /* @__PURE__ */ j("div", {
140
+ }, [n, t]), /* @__PURE__ */ M("div", {
141
141
  ...u,
142
142
  ref: d,
143
143
  onPointerEnter: (e) => {
144
- u.onPointerEnter?.(e), !s && (n ? t.dismissHover() : t.onItemHover(p));
144
+ u.onPointerEnter?.(e), s || n ? t.dismissHover() : t.onItemHover(p);
145
145
  },
146
146
  className: W("group/hi relative z-[1] flex items-center text-cui-primary text-cui-base", c ? "w-full" : "w-fit", l),
147
- children: [/* @__PURE__ */ A("div", { className: W("absolute", r, i, a, "transition-[inset,opacity,scale] duration-150 ease-cui-out-expo", o && !s && "group-active/hi:inset-px", "motion-reduce:transition-none", n ? "inset-0 scale-100 opacity-100" : "inset-1 scale-95 opacity-0") }), /* @__PURE__ */ A("div", {
147
+ children: [/* @__PURE__ */ j("div", { className: W("absolute", r, i, a, "transition-[inset,opacity,scale] duration-150 ease-cui-out-expo", o && !s && "group-active/hi:inset-px", "motion-reduce:transition-none", n ? "inset-0 scale-100 opacity-100" : "inset-1 scale-95 opacity-0") }), /* @__PURE__ */ j("div", {
148
148
  className: "relative z-[2] flex w-full min-w-0 items-center gap-2",
149
149
  children: e
150
150
  })]
@@ -152,7 +152,7 @@ function Se({ children: e, group: t, active: n, background: r, backgroundClassNa
152
152
  }
153
153
  //#endregion
154
154
  //#region src/components/spinner/pixel-spinner.tsx
155
- var Ce = [
155
+ var we = [
156
156
  0,
157
157
  1,
158
158
  2,
@@ -161,7 +161,7 @@ var Ce = [
161
161
  7,
162
162
  6,
163
163
  3
164
- ], we = [
164
+ ], Te = [
165
165
  0,
166
166
  1,
167
167
  2,
@@ -171,23 +171,23 @@ var Ce = [
171
171
  2,
172
172
  3,
173
173
  4
174
- ], Te = {
174
+ ], Ee = {
175
175
  xs: 10,
176
176
  sm: 14,
177
177
  md: 20,
178
178
  lg: 32
179
- }, Ee = !1;
180
- function De() {
181
- if (Ee || typeof document > "u") return;
179
+ }, De = !1;
180
+ function Oe() {
181
+ if (De || typeof document > "u") return;
182
182
  let e = document.createElement("style");
183
- e.setAttribute("data-pxs", ""), e.textContent = "\n@keyframes pxs-ring-on {\n 0% { opacity: var(--hi); }\n 12.5%, 100% { opacity: var(--lo); }\n}\n@keyframes pxs-ring-off {\n 0% { opacity: var(--lo); }\n 12.5%, 100% { opacity: var(--hi); }\n}\n@keyframes pxs-trail-5 {\n 0% { opacity: var(--hi); }\n 12.5% { opacity: 0.75; }\n 25% { opacity: var(--mid); }\n 37.5% { opacity: 0.25; }\n 50% { opacity: var(--lo); }\n 100% { opacity: var(--lo); }\n}\n@keyframes pxs-wave {\n 0%, 100% { opacity: var(--lo); }\n 40%, 60% { opacity: var(--hi); }\n}\n@keyframes pxs-radiate {\n 0%, 100% { opacity: var(--lo); }\n 20%, 40% { opacity: var(--hi); }\n}\n@keyframes pxs-pulse {\n 0%, 100% { opacity: var(--lo); }\n 50% { opacity: var(--hi); }\n}\n@keyframes pxs-flicker-a { 0%, 100% { opacity: var(--hi); } 33% { opacity: var(--lo); } 66% { opacity: var(--mid); } }\n@keyframes pxs-flicker-b { 0%, 100% { opacity: var(--lo); } 25% { opacity: var(--hi); } 75% { opacity: var(--mid); } }\n@keyframes pxs-flicker-c { 0%, 100% { opacity: var(--mid); } 40% { opacity: var(--hi); } 80% { opacity: var(--lo); } }\n@media (prefers-reduced-motion: reduce) {\n .pxs-cell { animation: none !important; opacity: var(--mid) !important; }\n}\n", document.head.appendChild(e), Ee = !0;
183
+ e.setAttribute("data-pxs", ""), e.textContent = "\n@keyframes pxs-ring-on {\n 0% { opacity: var(--hi); }\n 12.5%, 100% { opacity: var(--lo); }\n}\n@keyframes pxs-ring-off {\n 0% { opacity: var(--lo); }\n 12.5%, 100% { opacity: var(--hi); }\n}\n@keyframes pxs-trail-5 {\n 0% { opacity: var(--hi); }\n 12.5% { opacity: 0.75; }\n 25% { opacity: var(--mid); }\n 37.5% { opacity: 0.25; }\n 50% { opacity: var(--lo); }\n 100% { opacity: var(--lo); }\n}\n@keyframes pxs-wave {\n 0%, 100% { opacity: var(--lo); }\n 40%, 60% { opacity: var(--hi); }\n}\n@keyframes pxs-radiate {\n 0%, 100% { opacity: var(--lo); }\n 20%, 40% { opacity: var(--hi); }\n}\n@keyframes pxs-pulse {\n 0%, 100% { opacity: var(--lo); }\n 50% { opacity: var(--hi); }\n}\n@keyframes pxs-flicker-a { 0%, 100% { opacity: var(--hi); } 33% { opacity: var(--lo); } 66% { opacity: var(--mid); } }\n@keyframes pxs-flicker-b { 0%, 100% { opacity: var(--lo); } 25% { opacity: var(--hi); } 75% { opacity: var(--mid); } }\n@keyframes pxs-flicker-c { 0%, 100% { opacity: var(--mid); } 40% { opacity: var(--hi); } 80% { opacity: var(--lo); } }\n@media (prefers-reduced-motion: reduce) {\n .pxs-cell { animation: none !important; opacity: var(--mid) !important; }\n}\n", document.head.appendChild(e), De = !0;
184
184
  }
185
- function Oe(e, t, n) {
185
+ function ke(e, t, n) {
186
186
  let r = `${n}s`;
187
187
  switch (e) {
188
- case "hole": return t === 4 ? null : `pxs-ring-off ${r} ${(-(Ce.indexOf(t) / 8) * n).toFixed(3)}s steps(1) infinite`;
189
- case "trail": return t === 4 ? null : `pxs-trail-5 ${r} ${(-(Ce.indexOf(t) / 8) * n).toFixed(3)}s linear infinite`;
190
- case "wave": return `pxs-wave ${r} ${(-((we[t] ?? 0) / 5) * n).toFixed(3)}s ease-in-out infinite`;
188
+ case "hole": return t === 4 ? null : `pxs-ring-off ${r} ${(-(we.indexOf(t) / 8) * n).toFixed(3)}s steps(1) infinite`;
189
+ case "trail": return t === 4 ? null : `pxs-trail-5 ${r} ${(-(we.indexOf(t) / 8) * n).toFixed(3)}s linear infinite`;
190
+ case "wave": return `pxs-wave ${r} ${(-((Te[t] ?? 0) / 5) * n).toFixed(3)}s ease-in-out infinite`;
191
191
  case "radiate": return `pxs-radiate ${r} ${(-((t === 4 ? 0 : [
192
192
  1,
193
193
  3,
@@ -202,17 +202,17 @@ function Oe(e, t, n) {
202
202
  ][t % 3]} ${r} ${(-(t * .17 % 1) * n).toFixed(3)}s ease-in-out infinite`;
203
203
  }
204
204
  }
205
- function ke(e, t) {
205
+ function Ae(e, t) {
206
206
  return t === 4 ? +(e === "hole") : 0;
207
207
  }
208
- function Ae({ variant: e = "wave", size: t = "xs", gap: n = .25, duration: r = 1.2, className: i }) {
209
- typeof document < "u" && De();
210
- let a = typeof t == "number" ? t : Te[t], o = a / (3 + 2 * n), s = o * (1 + n), c = Array.from({ length: 9 }, (e, t) => ({
208
+ function je({ variant: e = "wave", size: t = "xs", gap: n = .25, duration: r = 1.2, className: i }) {
209
+ typeof document < "u" && Oe();
210
+ let a = typeof t == "number" ? t : Ee[t], o = a / (3 + 2 * n), s = o * (1 + n), c = Array.from({ length: 9 }, (e, t) => ({
211
211
  row: Math.floor(t / 3),
212
212
  col: t % 3,
213
213
  cellIndex: t
214
214
  }));
215
- return /* @__PURE__ */ A("span", {
215
+ return /* @__PURE__ */ j("span", {
216
216
  "aria-label": "Loading",
217
217
  role: "status",
218
218
  className: W("inline-block text-current", i),
@@ -223,14 +223,14 @@ function Ae({ variant: e = "wave", size: t = "xs", gap: n = .25, duration: r = 1
223
223
  "--mid": "0.5",
224
224
  "--hi": "1"
225
225
  },
226
- children: /* @__PURE__ */ A("svg", {
226
+ children: /* @__PURE__ */ j("svg", {
227
227
  width: a,
228
228
  height: a,
229
229
  viewBox: `0 0 ${a} ${a}`,
230
230
  "aria-hidden": "true",
231
231
  children: c.map(({ row: t, col: n, cellIndex: i }) => {
232
- let a = Oe(e, i, r), c = ke(e, i);
233
- return /* @__PURE__ */ A("rect", {
232
+ let a = ke(e, i, r), c = Ae(e, i);
233
+ return /* @__PURE__ */ j("rect", {
234
234
  className: "pxs-cell",
235
235
  x: n * s,
236
236
  y: t * s,
@@ -248,24 +248,24 @@ function Ae({ variant: e = "wave", size: t = "xs", gap: n = .25, duration: r = 1
248
248
  }
249
249
  //#endregion
250
250
  //#region src/components/spinner/spinner.tsx
251
- var je = {
251
+ var Me = {
252
252
  sm: 10,
253
253
  md: 12
254
- }, Me = C(function({ label: e, showDots: t = !0, showSpinner: n = !0, size: r = "md", variant: i = "wave", className: a }, o) {
255
- let s = r === "sm" ? "text-cui-sm" : "text-[13px]", c = je[r];
256
- return /* @__PURE__ */ j("span", {
254
+ }, Ne = C(function({ label: e, showDots: t = !0, showSpinner: n = !0, size: r = "md", variant: i = "wave", className: a }, o) {
255
+ let s = r === "sm" ? "text-cui-sm" : "text-[13px]", c = Me[r];
256
+ return /* @__PURE__ */ M("span", {
257
257
  ref: o,
258
258
  className: W("inline-flex items-center gap-1.5", a),
259
- children: [n && /* @__PURE__ */ A(Ae, {
259
+ children: [n && /* @__PURE__ */ j(je, {
260
260
  variant: i,
261
261
  size: c,
262
262
  duration: 1.2
263
- }), e && /* @__PURE__ */ j("span", {
263
+ }), e && /* @__PURE__ */ M("span", {
264
264
  className: W("text-current", s),
265
- children: [e, t && /* @__PURE__ */ A("span", { className: "after:animate-cui-dot-cycle inline-block w-[2ch] text-left after:content-['.']" })]
265
+ children: [e, t && /* @__PURE__ */ j("span", { className: "after:animate-cui-dot-cycle inline-block w-[2ch] text-left after:content-['.']" })]
266
266
  })]
267
267
  });
268
- }), Ne = {
268
+ }), Pe = {
269
269
  primary: {
270
270
  active: !0,
271
271
  bg: "bg-cui-inverse",
@@ -302,7 +302,7 @@ var je = {
302
302
  bgClassName: "group-hover/btn:bg-cui-danger/30 group-active/btn:bg-cui-danger/50",
303
303
  text: "text-cui-danger"
304
304
  }
305
- }, Pe = {
305
+ }, Fe = {
306
306
  xs: {
307
307
  height: "h-6",
308
308
  padding: "px-1.5",
@@ -322,33 +322,33 @@ var je = {
322
322
  icon: "w-8"
323
323
  }
324
324
  }, K = C(function({ variant: e = "outline", size: t = "md", iconLeft: n, iconRight: r, loading: i = !1, disabled: a, className: o, children: s, ...c }, l) {
325
- let u = Ne[e], d = Pe[t], f = !s && !r ? W(d.height, d.icon) : W(d.height, d.padding, "w-fit");
326
- return /* @__PURE__ */ j(ne, {
325
+ let u = Pe[e], d = Fe[t], f = !s && !r ? W(d.height, d.icon) : W(d.height, d.padding, "w-fit");
326
+ return /* @__PURE__ */ M(ne, {
327
327
  ref: l,
328
328
  disabled: a,
329
329
  className: W("group/btn relative inline-flex min-w-fit cursor-pointer items-center justify-center", "rounded text-cui-base whitespace-pre select-none", "ring-cui-focus outline-none focus-visible:ring-2 focus-visible:ring-offset-2 ", a && "pointer-events-none opacity-50", u.text, f, o),
330
330
  ...c,
331
331
  children: [
332
- /* @__PURE__ */ A("div", { className: W("absolute rounded-[inherit]", u.bg, u.bgClassName, u.active ? "opacity-100 inset-0" : "opacity-0 inset-1", !a && [
332
+ /* @__PURE__ */ j("div", { className: W("absolute rounded-[inherit]", u.bg, u.bgClassName, u.active ? "opacity-100 inset-0" : "opacity-0 inset-1", !a && [
333
333
  "transition-[inset,opacity,background-color] duration-150 ease-cui-out-expo motion-reduce:transition-none",
334
334
  "group-hover/btn:inset-0 group-hover/btn:opacity-100",
335
335
  "group-active/btn:inset-px"
336
336
  ]) }),
337
- n && /* @__PURE__ */ A("span", {
337
+ n && /* @__PURE__ */ j("span", {
338
338
  className: W("relative z-[1] size-5 shrink-0 flex items-center justify-center [&>svg]:size-4", i && "opacity-0"),
339
339
  children: n
340
340
  }),
341
- s && /* @__PURE__ */ A("span", {
341
+ s && /* @__PURE__ */ j("span", {
342
342
  className: W("relative z-[1] inline", d.textPadding, i && "opacity-0"),
343
343
  children: s
344
344
  }),
345
- r && /* @__PURE__ */ A("span", {
345
+ r && /* @__PURE__ */ j("span", {
346
346
  className: W("relative z-[1] size-5 shrink-0 flex items-center justify-center [&>svg]:size-4", i && "opacity-0"),
347
347
  children: r
348
348
  }),
349
- i && /* @__PURE__ */ A("span", {
349
+ i && /* @__PURE__ */ j("span", {
350
350
  className: "absolute inset-0 z-[2] flex items-center justify-center",
351
- children: /* @__PURE__ */ A(Me, {
351
+ children: /* @__PURE__ */ j(Ne, {
352
352
  showDots: !1,
353
353
  size: "sm"
354
354
  })
@@ -357,7 +357,7 @@ var je = {
357
357
  });
358
358
  }), q = {
359
359
  Panel: C(function({ minWidth: e, className: t, children: n, ...r }, i) {
360
- return /* @__PURE__ */ A("div", {
360
+ return /* @__PURE__ */ j("div", {
361
361
  ref: i,
362
362
  className: W("flex flex-col bg-cui-base-2 border border-cui-neutral rounded-lg shadow-md p-1", e, "origin-[var(--transform-origin)] will-change-[transform,opacity]", "transition-[transform,scale,opacity] duration-200 ease-cui-out-expo", "data-[starting-style]:scale-[0.96] data-[starting-style]:opacity-0", "data-[ending-style]:scale-[0.96] data-[ending-style]:opacity-0 data-[ending-style]:duration-150", "motion-reduce:transition-none", t),
363
363
  ...r,
@@ -365,18 +365,18 @@ var je = {
365
365
  });
366
366
  }),
367
367
  Item: C(function({ icon: e, indicator: t, variant: n = "default", className: r, children: i, ...a }, o) {
368
- return /* @__PURE__ */ j("div", {
368
+ return /* @__PURE__ */ M("div", {
369
369
  ref: o,
370
370
  className: W("group relative flex items-center gap-2 px-2 py-1.5 text-cui-base cursor-pointer rounded select-none outline-none", n === "danger" ? "text-cui-danger data-[highlighted]:text-cui-danger" : "text-cui-primary", r),
371
371
  ...a,
372
372
  children: [
373
- /* @__PURE__ */ A("div", { className: W("absolute inset-0 rounded-[inherit] bg-cui-subtle opacity-0", "group-data-[highlighted]:opacity-100", "group-data-[selected]:opacity-100", "group-data-[selected=true]:opacity-100", "transition-[inset] duration-150 ease-cui-out-expo motion-reduce:transition-none", "group-active:inset-px") }),
374
- e && /* @__PURE__ */ A("span", {
373
+ /* @__PURE__ */ j("div", { className: W("absolute inset-0 rounded-[inherit] bg-cui-subtle opacity-0", "group-data-[highlighted]:opacity-100", "group-data-[selected]:opacity-100", "group-data-[selected=true]:opacity-100", "transition-[inset] duration-150 ease-cui-out-expo motion-reduce:transition-none", "group-active:inset-px") }),
374
+ e && /* @__PURE__ */ j("span", {
375
375
  className: W("relative z-[1] flex size-5 shrink-0 items-center justify-center [&>svg]:size-4", n === "danger" ? "text-cui-danger" : "text-cui-tertiary group-data-[highlighted]:text-cui-primary group-data-[selected]:text-cui-primary group-data-[selected=true]:text-cui-primary"),
376
376
  children: e
377
377
  }),
378
378
  i,
379
- t && /* @__PURE__ */ A("span", {
379
+ t && /* @__PURE__ */ j("span", {
380
380
  className: "text-cui-accent relative z-[1] ml-auto [&>svg]:size-4",
381
381
  children: t
382
382
  })
@@ -384,14 +384,14 @@ var je = {
384
384
  });
385
385
  }),
386
386
  ItemIndicator: C(function({ className: e }, t) {
387
- return /* @__PURE__ */ A("span", {
387
+ return /* @__PURE__ */ j("span", {
388
388
  ref: t,
389
389
  className: W("relative z-[1] ml-auto text-cui-secondary [&>svg]:size-4", e),
390
- children: /* @__PURE__ */ A(o, {})
390
+ children: /* @__PURE__ */ j(o, {})
391
391
  });
392
392
  }),
393
393
  List: C(function({ className: e, children: t, ...n }, r) {
394
- return /* @__PURE__ */ A("div", {
394
+ return /* @__PURE__ */ j("div", {
395
395
  ref: r,
396
396
  className: W("flex max-h-[min(var(--available-height),280px)] flex-col gap-0.5 overflow-y-auto overscroll-contain outline-none", "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", e),
397
397
  ...n,
@@ -399,14 +399,14 @@ var je = {
399
399
  });
400
400
  }),
401
401
  Separator: C(function({ className: e, ...t }, n) {
402
- return /* @__PURE__ */ A("div", {
402
+ return /* @__PURE__ */ j("div", {
403
403
  ref: n,
404
404
  className: W("my-1 border-t border-cui-neutral", e),
405
405
  ...t
406
406
  });
407
407
  }),
408
408
  GroupLabel: C(function({ className: e, children: t, ...n }, r) {
409
- return /* @__PURE__ */ A("div", {
409
+ return /* @__PURE__ */ j("div", {
410
410
  ref: r,
411
411
  className: W("px-2 py-1.5 text-cui-sm font-medium text-cui-tertiary select-none", e),
412
412
  ...n,
@@ -414,7 +414,7 @@ var je = {
414
414
  });
415
415
  }),
416
416
  Positioner: C(function({ className: e, children: t, ...n }, r) {
417
- return /* @__PURE__ */ A("div", {
417
+ return /* @__PURE__ */ j("div", {
418
418
  ref: r,
419
419
  className: W("z-50 outline-none", e),
420
420
  ...n,
@@ -422,15 +422,15 @@ var je = {
422
422
  });
423
423
  }),
424
424
  SearchInput: C(function({ className: e, children: t, ...n }, r) {
425
- return /* @__PURE__ */ j("div", {
425
+ return /* @__PURE__ */ M("div", {
426
426
  ref: r,
427
427
  className: W("mb-0.5 flex items-center gap-2 rounded px-2 py-1.5", e),
428
428
  ...n,
429
- children: [/* @__PURE__ */ A(h, { className: "text-cui-tertiary size-4 shrink-0" }), t]
429
+ children: [/* @__PURE__ */ j(h, { className: "text-cui-tertiary size-4 shrink-0" }), t]
430
430
  });
431
431
  }),
432
432
  Empty: C(function({ className: e, children: t, ...n }, r) {
433
- return /* @__PURE__ */ A("div", {
433
+ return /* @__PURE__ */ j("div", {
434
434
  ref: r,
435
435
  className: W("text-cui-secondary px-2 py-4 text-center text-cui-base empty:hidden", e),
436
436
  ...n,
@@ -440,9 +440,9 @@ var je = {
440
440
  };
441
441
  //#endregion
442
442
  //#region src/components/combobox/combobox.tsx
443
- function Fe({ value: e, defaultValue: t, onValueChange: n, items: r, children: i, className: a }) {
444
- let [o, s] = O("");
445
- return /* @__PURE__ */ A(M.Root, {
443
+ function Ie({ value: e, defaultValue: t, onValueChange: n, items: r, children: i, className: a }) {
444
+ let [o, s] = k("");
445
+ return /* @__PURE__ */ j(N.Root, {
446
446
  value: e,
447
447
  defaultValue: t,
448
448
  onValueChange: n ? (e) => {
@@ -455,176 +455,176 @@ function Fe({ value: e, defaultValue: t, onValueChange: n, items: r, children: i
455
455
  e && s("");
456
456
  },
457
457
  autoHighlight: !0,
458
- children: a ? /* @__PURE__ */ A("div", {
458
+ children: a ? /* @__PURE__ */ j("div", {
459
459
  className: a,
460
460
  children: i
461
461
  }) : i
462
462
  });
463
463
  }
464
- var Ie = C(function({ children: e, className: t }, n) {
465
- return /* @__PURE__ */ A(M.Trigger, {
464
+ var Le = C(function({ children: e, className: t }, n) {
465
+ return /* @__PURE__ */ j(N.Trigger, {
466
466
  ref: n,
467
467
  className: W("cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2 rounded", t),
468
468
  children: e
469
469
  });
470
- }), Le = C(function({ placeholder: e, size: t, className: n }, r) {
471
- return /* @__PURE__ */ A(M.Trigger, {
470
+ }), Re = C(function({ placeholder: e, size: t, className: n }, r) {
471
+ return /* @__PURE__ */ j(N.Trigger, {
472
472
  ref: r,
473
- render: /* @__PURE__ */ A(K, {
473
+ render: /* @__PURE__ */ j(K, {
474
474
  variant: "outline",
475
475
  size: t,
476
- iconRight: /* @__PURE__ */ A(u, {}),
476
+ iconRight: /* @__PURE__ */ j(u, {}),
477
477
  className: n,
478
- children: /* @__PURE__ */ A(M.Value, { placeholder: e })
478
+ children: /* @__PURE__ */ j(N.Value, { placeholder: e })
479
479
  })
480
480
  });
481
481
  });
482
- function Re({ align: e = "start", searchPlaceholder: t = "Search...", emptyMessage: n = "No results found.", minWidth: r = "min-w-[220px]", children: i, className: a }) {
483
- let o = i ?? ((e) => /* @__PURE__ */ A(ze, {
482
+ function ze({ align: e = "start", searchPlaceholder: t = "Search...", emptyMessage: n = "No results found.", minWidth: r = "min-w-[220px]", children: i, className: a }) {
483
+ let o = i ?? ((e) => /* @__PURE__ */ j(Be, {
484
484
  value: e.value,
485
485
  icon: e.icon,
486
486
  children: e.label
487
487
  }, e.value));
488
- return /* @__PURE__ */ A(M.Portal, { children: /* @__PURE__ */ A(M.Positioner, {
488
+ return /* @__PURE__ */ j(N.Portal, { children: /* @__PURE__ */ j(N.Positioner, {
489
489
  align: e,
490
490
  sideOffset: 4,
491
- render: /* @__PURE__ */ A(q.Positioner, {}),
492
- children: /* @__PURE__ */ j(M.Popup, {
493
- render: /* @__PURE__ */ A(q.Panel, {
491
+ render: /* @__PURE__ */ j(q.Positioner, {}),
492
+ children: /* @__PURE__ */ M(N.Popup, {
493
+ render: /* @__PURE__ */ j(q.Panel, {
494
494
  minWidth: r,
495
495
  className: a
496
496
  }),
497
497
  children: [
498
- /* @__PURE__ */ A(q.SearchInput, { children: /* @__PURE__ */ A(M.Input, {
498
+ /* @__PURE__ */ j(q.SearchInput, { children: /* @__PURE__ */ j(N.Input, {
499
499
  placeholder: t,
500
500
  className: "text-cui-primary placeholder:text-cui-tertiary text-cui-base flex-1 bg-transparent outline-none"
501
501
  }) }),
502
- /* @__PURE__ */ A(M.Empty, {
503
- render: /* @__PURE__ */ A(q.Empty, {}),
502
+ /* @__PURE__ */ j(N.Empty, {
503
+ render: /* @__PURE__ */ j(q.Empty, {}),
504
504
  children: n
505
505
  }),
506
- /* @__PURE__ */ A(M.List, {
507
- render: /* @__PURE__ */ A(q.List, {}),
506
+ /* @__PURE__ */ j(N.List, {
507
+ render: /* @__PURE__ */ j(q.List, {}),
508
508
  children: o
509
509
  })
510
510
  ]
511
511
  })
512
512
  }) });
513
513
  }
514
- var ze = C(function({ value: e, icon: t, children: n, className: r }, i) {
515
- return /* @__PURE__ */ j(M.Item, {
514
+ var Be = C(function({ value: e, icon: t, children: n, className: r }, i) {
515
+ return /* @__PURE__ */ M(N.Item, {
516
516
  ref: i,
517
517
  value: e,
518
- render: /* @__PURE__ */ A(q.Item, {
518
+ render: /* @__PURE__ */ j(q.Item, {
519
519
  icon: t,
520
520
  className: r
521
521
  }),
522
- children: [/* @__PURE__ */ A("span", {
522
+ children: [/* @__PURE__ */ j("span", {
523
523
  className: "relative z-[1] flex-1",
524
524
  children: n
525
- }), /* @__PURE__ */ A(M.ItemIndicator, { render: /* @__PURE__ */ A(q.ItemIndicator, {}) })]
525
+ }), /* @__PURE__ */ j(N.ItemIndicator, { render: /* @__PURE__ */ j(q.ItemIndicator, {}) })]
526
526
  });
527
- }), Be = C(function({ className: e, children: t }, n) {
528
- return /* @__PURE__ */ A(M.Group, {
527
+ }), Ve = C(function({ className: e, children: t }, n) {
528
+ return /* @__PURE__ */ j(N.Group, {
529
529
  ref: n,
530
530
  className: W("flex flex-col", e),
531
531
  children: t
532
532
  });
533
- }), Ve = C(function({ className: e, children: t }, n) {
534
- return /* @__PURE__ */ A(M.GroupLabel, {
533
+ }), He = C(function({ className: e, children: t }, n) {
534
+ return /* @__PURE__ */ j(N.GroupLabel, {
535
535
  ref: n,
536
- render: /* @__PURE__ */ A(q.GroupLabel, { className: e }),
536
+ render: /* @__PURE__ */ j(q.GroupLabel, { className: e }),
537
537
  children: t
538
538
  });
539
- }), He = C(function({ className: e }, t) {
540
- return /* @__PURE__ */ A(M.Separator, {
539
+ }), Ue = C(function({ className: e }, t) {
540
+ return /* @__PURE__ */ j(N.Separator, {
541
541
  ref: t,
542
- render: /* @__PURE__ */ A(q.Separator, { className: e })
542
+ render: /* @__PURE__ */ j(q.Separator, { className: e })
543
543
  });
544
544
  });
545
545
  //#endregion
546
546
  //#region src/components/breadcrumb/breadcrumb.tsx
547
- function Ue({ to: e, href: t, className: n, children: r }) {
548
- return /* @__PURE__ */ A("a", {
547
+ function We({ to: e, href: t, className: n, children: r }) {
548
+ return /* @__PURE__ */ j("a", {
549
549
  href: e ?? t,
550
550
  className: n,
551
551
  children: r
552
552
  });
553
553
  }
554
- function We() {
555
- return /* @__PURE__ */ A("div", {
554
+ function Ge() {
555
+ return /* @__PURE__ */ j("div", {
556
556
  className: "flex w-4 shrink-0 items-center justify-center self-stretch",
557
- children: /* @__PURE__ */ A("div", { className: "bg-cui-tertiary h-4 w-px rotate-[20deg] opacity-50" })
557
+ children: /* @__PURE__ */ j("div", { className: "bg-cui-tertiary h-4 w-px rotate-[20deg] opacity-50" })
558
558
  });
559
559
  }
560
- function Ge({ item: e, asLink: t, LinkEl: n }) {
561
- let r = W("flex items-center gap-2 h-8 px-2 text-cui-base font-medium text-cui-primary select-none", t && "outline-none rounded focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2"), i = /* @__PURE__ */ j(k, { children: [e.icon && /* @__PURE__ */ A("span", {
560
+ function Ke({ item: e, asLink: t, LinkEl: n }) {
561
+ let r = W("flex items-center gap-2 h-8 px-2 text-cui-base font-medium text-cui-primary select-none", t && "outline-none rounded focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2"), i = /* @__PURE__ */ M(A, { children: [e.icon && /* @__PURE__ */ j("span", {
562
562
  className: "flex size-5 shrink-0 items-center justify-center [&>svg]:size-4",
563
563
  children: e.icon
564
- }), /* @__PURE__ */ A("span", { children: e.label })] });
565
- return t && e.href ? /* @__PURE__ */ A(n, {
564
+ }), /* @__PURE__ */ j("span", { children: e.label })] });
565
+ return t && e.href ? /* @__PURE__ */ j(n, {
566
566
  to: e.href,
567
567
  href: e.href,
568
568
  className: r,
569
569
  children: i
570
- }) : /* @__PURE__ */ A("span", {
570
+ }) : /* @__PURE__ */ j("span", {
571
571
  className: r,
572
572
  children: i
573
573
  });
574
574
  }
575
- function Ke() {
576
- return /* @__PURE__ */ A(Ie, {
575
+ function qe() {
576
+ return /* @__PURE__ */ j(Le, {
577
577
  className: "rounded-sm",
578
- children: /* @__PURE__ */ A(G, {
578
+ children: /* @__PURE__ */ j(G, {
579
579
  background: "bg-cui-subtle",
580
580
  interactive: !0,
581
- children: /* @__PURE__ */ A("span", {
581
+ children: /* @__PURE__ */ j("span", {
582
582
  className: "flex h-8 items-center justify-center px-0.5 select-none",
583
- children: /* @__PURE__ */ A(u, { className: "text-cui-tertiary size-4" })
583
+ children: /* @__PURE__ */ j(u, { className: "text-cui-tertiary size-4" })
584
584
  })
585
585
  })
586
586
  });
587
587
  }
588
- function qe({ item: e, LinkEl: t }) {
589
- return e.selector && e.options ? /* @__PURE__ */ j(Fe, {
588
+ function Je({ item: e, LinkEl: t }) {
589
+ return e.selector && e.options ? /* @__PURE__ */ M(Ie, {
590
590
  value: e.value,
591
591
  onValueChange: e.onSelect,
592
592
  items: e.options,
593
- children: [/* @__PURE__ */ j("span", {
593
+ children: [/* @__PURE__ */ M("span", {
594
594
  className: "flex items-center",
595
- children: [/* @__PURE__ */ A(G, {
595
+ children: [/* @__PURE__ */ j(G, {
596
596
  background: "bg-cui-subtle",
597
597
  interactive: !0,
598
- children: /* @__PURE__ */ A(Ge, {
598
+ children: /* @__PURE__ */ j(Ke, {
599
599
  item: e,
600
600
  asLink: !!e.href,
601
601
  LinkEl: t
602
602
  })
603
- }), /* @__PURE__ */ A(Ke, {})]
604
- }), /* @__PURE__ */ A(Re, { searchPlaceholder: "Search..." })]
605
- }) : e.href ? /* @__PURE__ */ A(G, {
603
+ }), /* @__PURE__ */ j(qe, {})]
604
+ }), /* @__PURE__ */ j(ze, { searchPlaceholder: "Search..." })]
605
+ }) : e.href ? /* @__PURE__ */ j(G, {
606
606
  background: "bg-cui-subtle",
607
607
  interactive: !0,
608
- children: /* @__PURE__ */ A(Ge, {
608
+ children: /* @__PURE__ */ j(Ke, {
609
609
  item: e,
610
610
  asLink: !0,
611
611
  LinkEl: t
612
612
  })
613
- }) : /* @__PURE__ */ A(G, {
613
+ }) : /* @__PURE__ */ j(G, {
614
614
  background: "bg-cui-subtle",
615
615
  interactive: !0,
616
- children: /* @__PURE__ */ A(Ge, {
616
+ children: /* @__PURE__ */ j(Ke, {
617
617
  item: e,
618
618
  LinkEl: t
619
619
  })
620
620
  });
621
621
  }
622
- function Je({ items: e, linkComponent: t = Ue, className: n }) {
623
- return /* @__PURE__ */ A("nav", {
622
+ function Ye({ items: e, linkComponent: t = We, className: n }) {
623
+ return /* @__PURE__ */ j("nav", {
624
624
  className: W("flex items-center", n),
625
- children: e.map((e, n) => /* @__PURE__ */ j("span", {
625
+ children: e.map((e, n) => /* @__PURE__ */ M("span", {
626
626
  className: "flex items-center",
627
- children: [n > 0 && /* @__PURE__ */ A(We, {}), /* @__PURE__ */ A(qe, {
627
+ children: [n > 0 && /* @__PURE__ */ j(Ge, {}), /* @__PURE__ */ j(Je, {
628
628
  item: e,
629
629
  LinkEl: t
630
630
  })]
@@ -633,7 +633,7 @@ function Je({ items: e, linkComponent: t = Ue, className: n }) {
633
633
  }
634
634
  //#endregion
635
635
  //#region src/components/toggle/toggle.tsx
636
- var Ye = {
636
+ var Xe = {
637
637
  sm: {
638
638
  track: "w-9 h-5",
639
639
  thumb: "h-4 w-4 group-active/toggle:w-5"
@@ -642,9 +642,9 @@ var Ye = {
642
642
  track: "w-11 h-6",
643
643
  thumb: "h-5 w-5 group-active/toggle:w-6"
644
644
  }
645
- }, Xe = C(function({ checked: e, defaultChecked: t, onCheckedChange: n, disabled: r, size: i = "md", className: a, ...o }, s) {
646
- let c = Ye[i];
647
- return /* @__PURE__ */ A(re.Root, {
645
+ }, Ze = C(function({ checked: e, defaultChecked: t, onCheckedChange: n, disabled: r, size: i = "md", className: a, ...o }, s) {
646
+ let c = Xe[i];
647
+ return /* @__PURE__ */ j(re.Root, {
648
648
  ref: s,
649
649
  checked: e,
650
650
  defaultChecked: t,
@@ -652,9 +652,9 @@ var Ye = {
652
652
  disabled: r,
653
653
  className: W("group/toggle relative inline-flex shrink-0 cursor-pointer items-center rounded-full", "bg-cui-subtle data-[checked]:bg-cui-accent", "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2", "transition-colors duration-150 ease-cui-out-expo", r && "opacity-50 pointer-events-none", c.track, a),
654
654
  ...o,
655
- children: /* @__PURE__ */ A(re.Thumb, { className: W("block rounded-full bg-cui-accent-on shadow-sm", "translate-x-0.5 transition-all duration-150 ease-cui-out-expo", i === "sm" && "data-[checked]:translate-x-[18px] data-[checked]:group-active/toggle:translate-x-[14px]", i === "md" && "data-[checked]:translate-x-[22px] data-[checked]:group-active/toggle:translate-x-[18px]", c.thumb) })
655
+ children: /* @__PURE__ */ j(re.Thumb, { className: W("block rounded-full bg-cui-accent-on shadow-sm", "translate-x-0.5 transition-all duration-150 ease-cui-out-expo", i === "sm" && "data-[checked]:translate-x-[18px] data-[checked]:group-active/toggle:translate-x-[14px]", i === "md" && "data-[checked]:translate-x-[22px] data-[checked]:group-active/toggle:translate-x-[18px]", c.thumb) })
656
656
  });
657
- }), Ze = {
657
+ }), Qe = {
658
658
  sm: {
659
659
  root: "size-4 rounded-[4px]",
660
660
  icon: "size-3",
@@ -665,8 +665,8 @@ var Ye = {
665
665
  icon: "size-3.5",
666
666
  label: "text-cui-base"
667
667
  }
668
- }, Qe = C(function({ checked: e, defaultChecked: t, onCheckedChange: n, indeterminate: r = !1, disabled: i = !1, required: a, size: s = "md", label: c, name: l, className: u, ...d }, f) {
669
- let p = Ze[s], m = /* @__PURE__ */ A(ie.Root, {
668
+ }, $e = C(function({ checked: e, defaultChecked: t, onCheckedChange: n, indeterminate: r = !1, disabled: i = !1, required: a, size: s = "md", label: c, name: l, className: u, ...d }, f) {
669
+ let p = Qe[s], m = /* @__PURE__ */ j(ie.Root, {
670
670
  ref: f,
671
671
  checked: e,
672
672
  defaultChecked: t,
@@ -677,73 +677,73 @@ var Ye = {
677
677
  name: l,
678
678
  className: W("group/checkbox relative inline-flex shrink-0 items-center justify-center", "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2", "transition-colors duration-150 ease-out", "motion-reduce:transition-none", "before:absolute before:inset-1/2 before:size-8 before:-translate-1/2", i ? "pointer-events-none cursor-not-allowed border border-cui-neutral bg-cui-subtle" : "cursor-pointer border border-cui-neutral bg-cui-base-2 data-[checked]:border-cui-accent data-[checked]:bg-cui-accent data-[indeterminate]:border-cui-neutral-strong data-[indeterminate]:bg-cui-subtle", p.root, !c && u),
679
679
  ...d,
680
- children: /* @__PURE__ */ A(ie.Indicator, {
680
+ children: /* @__PURE__ */ j(ie.Indicator, {
681
681
  keepMounted: !0,
682
682
  className: W("flex items-center justify-center", i ? "text-cui-tertiary" : "data-[checked]:text-cui-accent-on data-[indeterminate]:text-cui-secondary", "scale-100 opacity-100", "data-[unchecked]:scale-50 data-[unchecked]:opacity-0", "data-[starting-style]:scale-50 data-[starting-style]:opacity-0", "data-[ending-style]:scale-50 data-[ending-style]:opacity-0", "transition-[scale,opacity] duration-300 ease-cui-out-expo", "motion-reduce:transition-none"),
683
- children: A(r ? g : o, { className: p.icon })
683
+ children: j(r ? g : o, { className: p.icon })
684
684
  })
685
685
  });
686
- return c ? /* @__PURE__ */ j("label", {
686
+ return c ? /* @__PURE__ */ M("label", {
687
687
  className: W("inline-flex items-center gap-2 select-none", i ? "cursor-not-allowed" : "cursor-pointer", u),
688
- children: [m, /* @__PURE__ */ A("span", {
688
+ children: [m, /* @__PURE__ */ j("span", {
689
689
  className: W(p.label, i ? "text-cui-tertiary" : "text-cui-primary"),
690
690
  children: c
691
691
  })]
692
692
  }) : m;
693
- }), $e = {
693
+ }), et = {
694
694
  default: "bg-cui-base-1 rounded-lg shadow-xs ring-1 ring-cui-neutral",
695
695
  nested: "bg-cui-base-2 rounded-sm shadow-sm ring-1 ring-cui-neutral"
696
- }, et = C(function({ className: e, children: t }, n) {
697
- return /* @__PURE__ */ A("div", {
696
+ }, tt = C(function({ className: e, children: t }, n) {
697
+ return /* @__PURE__ */ j("div", {
698
698
  ref: n,
699
699
  className: W("flex flex-col gap-1 p-1", e),
700
700
  children: t
701
701
  });
702
- }), tt = C(function({ className: e, children: t }, n) {
703
- return /* @__PURE__ */ A("div", {
702
+ }), nt = C(function({ className: e, children: t }, n) {
703
+ return /* @__PURE__ */ j("div", {
704
704
  ref: n,
705
705
  className: W("px-4 py-3", e),
706
706
  children: t
707
707
  });
708
- }), nt = C(function({ className: e, children: t }, n) {
709
- return /* @__PURE__ */ A("div", {
708
+ }), rt = C(function({ className: e, children: t }, n) {
709
+ return /* @__PURE__ */ j("div", {
710
710
  ref: n,
711
711
  className: W("p-4", e),
712
712
  children: t
713
713
  });
714
- }), rt = C(function({ className: e, children: t }, n) {
715
- return /* @__PURE__ */ A("div", {
714
+ }), it = C(function({ className: e, children: t }, n) {
715
+ return /* @__PURE__ */ j("div", {
716
716
  ref: n,
717
717
  className: W("border-b border-cui-neutral last:border-b-0 p-4", e),
718
718
  children: t
719
719
  });
720
720
  }), J = C(function({ variant: e = "default", className: t, children: n }, r) {
721
- return /* @__PURE__ */ A("div", {
721
+ return /* @__PURE__ */ j("div", {
722
722
  ref: r,
723
- className: W($e[e], t),
723
+ className: W(et[e], t),
724
724
  children: n
725
725
  });
726
726
  });
727
- J.Content = et, J.Header = tt, J.Body = nt, J.Section = rt;
727
+ J.Content = tt, J.Header = nt, J.Body = rt, J.Section = it;
728
728
  //#endregion
729
729
  //#region src/components/nav-link/nav-link.tsx
730
- var it = {
730
+ var at = {
731
731
  sm: "h-7 px-1.5",
732
732
  md: "h-8 px-1.5"
733
733
  };
734
- function at({ className: e, children: t }) {
735
- return /* @__PURE__ */ A(xe, {
734
+ function ot({ className: e, children: t }) {
735
+ return /* @__PURE__ */ j(Se, {
736
736
  background: "bg-cui-subtle",
737
737
  className: W("gap-1 p-2 flex-nowrap", e),
738
738
  children: t
739
739
  });
740
740
  }
741
- function ot({ active: e = !1, icon: t, href: n, onClick: r, size: i = "md", className: a, children: o }) {
742
- return /* @__PURE__ */ A(G, {
741
+ function st({ active: e = !1, icon: t, href: n, onClick: r, size: i = "md", className: a, children: o }) {
742
+ return /* @__PURE__ */ j(G, {
743
743
  active: e,
744
744
  background: "bg-cui-subtle",
745
745
  className: a,
746
- children: /* @__PURE__ */ j(n ? "a" : "button", {
746
+ children: /* @__PURE__ */ M(n ? "a" : "button", {
747
747
  ...n ? {
748
748
  href: n,
749
749
  onClick: r
@@ -751,11 +751,11 @@ function ot({ active: e = !1, icon: t, href: n, onClick: r, size: i = "md", clas
751
751
  type: "button",
752
752
  onClick: r
753
753
  },
754
- className: W("flex items-center text-cui-base font-medium cursor-pointer select-none whitespace-nowrap", "outline-none", it[i], e ? "text-cui-primary" : "text-cui-secondary"),
755
- children: [t && /* @__PURE__ */ A("span", {
754
+ className: W("flex items-center text-cui-base font-medium cursor-pointer select-none whitespace-nowrap", "outline-none", at[i], e ? "text-cui-primary" : "text-cui-secondary"),
755
+ children: [t && /* @__PURE__ */ j("span", {
756
756
  className: "flex size-5 shrink-0 items-center justify-center [&>svg]:size-4",
757
757
  children: t
758
- }), /* @__PURE__ */ A("span", {
758
+ }), /* @__PURE__ */ j("span", {
759
759
  className: "px-1",
760
760
  children: o
761
761
  })]
@@ -764,8 +764,8 @@ function ot({ active: e = !1, icon: t, href: n, onClick: r, size: i = "md", clas
764
764
  }
765
765
  //#endregion
766
766
  //#region src/components/logo/logo.tsx
767
- var st = C(function({ variant: e = "mark", size: t = 18, className: n }, r) {
768
- return e === "circle" ? /* @__PURE__ */ j("svg", {
767
+ var ct = C(function({ variant: e = "mark", size: t = 18, className: n }, r) {
768
+ return e === "circle" ? /* @__PURE__ */ M("svg", {
769
769
  ref: r,
770
770
  width: t,
771
771
  height: t,
@@ -774,14 +774,14 @@ var st = C(function({ variant: e = "mark", size: t = 18, className: n }, r) {
774
774
  xmlns: "http://www.w3.org/2000/svg",
775
775
  className: W("shrink-0", n),
776
776
  "aria-label": "CodeRabbit",
777
- children: [/* @__PURE__ */ A("path", {
777
+ children: [/* @__PURE__ */ j("path", {
778
778
  d: "M600.867 1200C932.238 1200 1200.87 931.37 1200.87 600C1200.87 268.629 932.238 -0.000488281 600.867 -0.000488281C269.496 -0.000488281 0.867188 268.629 0.867188 600C0.867188 931.37 269.496 1200 600.867 1200Z",
779
779
  fill: "currentColor"
780
- }), /* @__PURE__ */ A("path", {
780
+ }), /* @__PURE__ */ j("path", {
781
781
  d: "M1008.3 500.615C1008.3 500.615 924.706 393.751 819.62 387.639C751.807 383.636 735.379 392.696 732.434 399.444C728.226 364.456 698.322 202.361 491.729 168.008C518.102 357.589 627.02 308.191 691.161 438.86C691.161 438.86 582.921 291.734 404.969 345.903C404.969 345.903 469.83 482.07 661.676 509.891C661.676 509.891 677.05 562.586 681.684 571.862C681.684 571.862 386.224 417.779 296.512 713.505C229.747 698.382 207.352 770.859 284.09 820.369C284.09 820.369 297.147 768.519 328.943 753.131C328.943 753.131 260.711 829.226 340.946 920.36H628.925C635.883 908.834 666.68 848.19 590.514 802.285C644.278 801.516 688.042 902.932 735.128 921.058H803.61C805.927 915.428 810.771 898.567 799.395 883.395C781.857 863.278 743.46 866.002 743.802 828.8C757.062 655.746 1016.55 708.888 1008.3 500.615Z",
782
782
  fill: "var(--background-color-cui-base-1)"
783
783
  })]
784
- }) : /* @__PURE__ */ A("svg", {
784
+ }) : /* @__PURE__ */ j("svg", {
785
785
  ref: r,
786
786
  width: t,
787
787
  height: t,
@@ -790,12 +790,12 @@ var st = C(function({ variant: e = "mark", size: t = 18, className: n }, r) {
790
790
  xmlns: "http://www.w3.org/2000/svg",
791
791
  className: W("shrink-0", n),
792
792
  "aria-label": "CodeRabbit",
793
- children: /* @__PURE__ */ A("path", {
793
+ children: /* @__PURE__ */ j("path", {
794
794
  d: "M17.9955 7.95021C17.9955 7.95021 16.0484 5.39587 13.6007 5.24977C12.0212 5.15411 11.6385 5.37067 11.5699 5.53194C11.4719 4.69563 10.7754 0.821109 5.96335 0C6.57764 4.53152 9.1146 3.35077 10.6086 6.47412C10.6086 6.47412 8.08743 2.9574 3.94251 4.25219C3.94251 4.25219 5.45327 7.50694 9.92182 8.17196C9.92182 8.17196 10.2799 9.43152 10.3879 9.65324C10.3879 9.65324 3.50589 5.97023 1.41629 13.0389C-0.138828 12.6774 -0.660461 14.4098 1.12695 15.5933C1.12695 15.5933 1.43108 14.3539 2.17168 13.9861C2.17168 13.9861 0.582397 15.805 2.45126 17.9833H9.15897C9.32104 17.7078 10.0384 16.2583 8.26429 15.161C9.51658 15.1426 10.5359 17.5667 11.6327 18H13.2278C13.2818 17.8654 13.3946 17.4624 13.1296 17.0998C12.7211 16.6189 11.8268 16.684 11.8347 15.7948C12.1436 11.6583 18.1877 12.9285 17.9955 7.95021Z",
795
795
  fill: "currentColor"
796
796
  })
797
797
  });
798
- }), ct = {
798
+ }), lt = {
799
799
  xs: {
800
800
  outer: "size-5",
801
801
  text: "text-[8px]",
@@ -821,10 +821,10 @@ var st = C(function({ variant: e = "mark", size: t = 18, className: n }, r) {
821
821
  text: "text-cui-lg",
822
822
  px: 64
823
823
  }
824
- }, lt = {
824
+ }, ut = {
825
825
  circle: "rounded-full",
826
826
  square: "rounded-md"
827
- }, ut = {
827
+ }, dt = {
828
828
  neutral: "bg-cui-subtle text-cui-primary",
829
829
  accent: "bg-cui-accent text-cui-accent-on",
830
830
  danger: "bg-cui-danger text-cui-danger-on",
@@ -839,7 +839,7 @@ function Y(e, t = 0) {
839
839
  }
840
840
  return n = Math.imul(n ^ n >>> 16, 2246822507), n ^= Math.imul(r ^ r >>> 13, 3266489909), r = Math.imul(r ^ r >>> 16, 2246822507), r ^= Math.imul(n ^ n >>> 13, 3266489909), 4294967296 * (2097151 & r) + (n >>> 0);
841
841
  }
842
- function dt(e) {
842
+ function ft(e) {
843
843
  return [
844
844
  Y(e, 0),
845
845
  Y(e, 1),
@@ -847,7 +847,7 @@ function dt(e) {
847
847
  Y(e, 3)
848
848
  ];
849
849
  }
850
- function ft(e, t, n, r) {
850
+ function pt(e, t, n, r) {
851
851
  let i = e.filter(Boolean).length, a = Math.ceil(t * n);
852
852
  if (i >= a) return;
853
853
  let o = a - i, s = 0;
@@ -856,8 +856,8 @@ function ft(e, t, n, r) {
856
856
  e[i] || (e[i] = !0, o--), s++;
857
857
  }
858
858
  }
859
- function pt(e, t) {
860
- let n = dt(e), r = n[0] ?? 0, i = n[1] ?? r, a = n[2] ?? r, o = (e) => n[e % n.length] ?? r;
859
+ function mt(e, t) {
860
+ let n = ft(e), r = n[0] ?? 0, i = n[1] ?? r, a = n[2] ?? r, o = (e) => n[e % n.length] ?? r;
861
861
  switch (t) {
862
862
  case "grid": {
863
863
  let e = [];
@@ -865,7 +865,7 @@ function pt(e, t) {
865
865
  let n = o(Math.floor(t / 26));
866
866
  e.push((n >> t % 26 & 1) == 1);
867
867
  }
868
- return ft(e, 25, .3, a), {
868
+ return pt(e, 25, .3, a), {
869
869
  cols: 5,
870
870
  rows: 5,
871
871
  cells: e
@@ -984,27 +984,27 @@ function pt(e, t) {
984
984
  }
985
985
  }
986
986
  }
987
- function mt(e) {
987
+ function ht(e) {
988
988
  return Y(e, 42) % 360;
989
989
  }
990
- function ht(e) {
990
+ function gt(e) {
991
991
  return {
992
992
  "--ga-pixel": `light-dark(oklch(0.55 0.15 ${e}), oklch(0.7 0.14 ${e}))`,
993
993
  "--ga-bg": `light-dark(oklch(0.92 0.03 ${e}), oklch(0.25 0.03 ${e}))`
994
994
  };
995
995
  }
996
- var gt = C(function({ seed: e, pattern: t, px: n, isCircle: r, className: i }, a) {
997
- let { grid: o, hue: s } = E(() => ({
998
- grid: pt(e, t),
999
- hue: mt(e)
1000
- }), [e, t]), { cols: c, rows: l, cells: u } = o, d = t === "dense" || t === "quad-dense" ? 3 : 4, f = (100 - d * 2 - 3 * (c - 1)) / c, p = l * f + (l - 1) * 3, m = c * f + (c - 1) * 3, h = d + (100 - d * 2 - p) / 2, g = d + (100 - d * 2 - m) / 2, _ = Y(e, 99), v = (e) => .55 + (_ >> e % 26 & 3) * .15, y = `av-${Y(e + t, 7) >>> 0}`, b = ht(s), x = Y(e, 77), S = (e) => {
996
+ var _t = C(function({ seed: e, pattern: t, px: n, isCircle: r, className: i }, a) {
997
+ let { grid: o, hue: s } = D(() => ({
998
+ grid: mt(e, t),
999
+ hue: ht(e)
1000
+ }), [e, t]), { cols: c, rows: l, cells: u } = o, d = t === "dense" || t === "quad-dense" ? 3 : 4, f = (100 - d * 2 - 3 * (c - 1)) / c, p = l * f + (l - 1) * 3, m = c * f + (c - 1) * 3, h = d + (100 - d * 2 - p) / 2, g = d + (100 - d * 2 - m) / 2, _ = Y(e, 99), v = (e) => .55 + (_ >> e % 26 & 3) * .15, y = `av-${Y(e + t, 7) >>> 0}`, b = gt(s), x = Y(e, 77), S = (e) => {
1001
1001
  let t = x >> e % 26 & 7, n = _ >> (e + 5) % 26 & 7;
1002
1002
  return {
1003
1003
  duration: 1.5 + t * .35,
1004
1004
  delay: n * .4
1005
1005
  };
1006
1006
  }, C = `ga-flk-${y}`;
1007
- return /* @__PURE__ */ j("svg", {
1007
+ return /* @__PURE__ */ M("svg", {
1008
1008
  ref: a,
1009
1009
  width: n,
1010
1010
  height: n,
@@ -1019,18 +1019,18 @@ var gt = C(function({ seed: e, pattern: t, px: n, isCircle: r, className: i }, a
1019
1019
  role: "img",
1020
1020
  "aria-label": `Avatar for ${e}`,
1021
1021
  children: [
1022
- /* @__PURE__ */ A("style", { children: `
1022
+ /* @__PURE__ */ j("style", { children: `
1023
1023
  @keyframes ${C} {
1024
1024
  0%, 100% { opacity: var(--ga-o); }
1025
1025
  50% { opacity: calc(var(--ga-o) * 0.25); }
1026
1026
  }
1027
1027
  ` }),
1028
- r ? /* @__PURE__ */ A("circle", {
1028
+ r ? /* @__PURE__ */ j("circle", {
1029
1029
  cx: 50,
1030
1030
  cy: 50,
1031
1031
  r: 50,
1032
1032
  fill: "var(--ga-bg)"
1033
- }) : /* @__PURE__ */ A("rect", {
1033
+ }) : /* @__PURE__ */ j("rect", {
1034
1034
  x: 0,
1035
1035
  y: 0,
1036
1036
  width: 100,
@@ -1038,13 +1038,13 @@ var gt = C(function({ seed: e, pattern: t, px: n, isCircle: r, className: i }, a
1038
1038
  rx: 8,
1039
1039
  fill: "var(--ga-bg)"
1040
1040
  }),
1041
- /* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", {
1041
+ /* @__PURE__ */ j("defs", { children: /* @__PURE__ */ j("clipPath", {
1042
1042
  id: y,
1043
- children: r ? /* @__PURE__ */ A("circle", {
1043
+ children: r ? /* @__PURE__ */ j("circle", {
1044
1044
  cx: 50,
1045
1045
  cy: 50,
1046
1046
  r: 50
1047
- }) : /* @__PURE__ */ A("rect", {
1047
+ }) : /* @__PURE__ */ j("rect", {
1048
1048
  x: 0,
1049
1049
  y: 0,
1050
1050
  width: 100,
@@ -1052,12 +1052,12 @@ var gt = C(function({ seed: e, pattern: t, px: n, isCircle: r, className: i }, a
1052
1052
  rx: 8
1053
1053
  })
1054
1054
  }) }),
1055
- /* @__PURE__ */ A("g", {
1055
+ /* @__PURE__ */ j("g", {
1056
1056
  clipPath: `url(#${y})`,
1057
1057
  children: u.map((e, t) => {
1058
1058
  if (!e) return null;
1059
1059
  let n = t % c, r = Math.floor(t / c), i = v(t), { duration: a, delay: o } = S(t);
1060
- return /* @__PURE__ */ A("rect", {
1060
+ return /* @__PURE__ */ j("rect", {
1061
1061
  x: g + n * (f + 3),
1062
1062
  y: h + r * (f + 3),
1063
1063
  width: f,
@@ -1078,263 +1078,559 @@ var gt = C(function({ seed: e, pattern: t, px: n, isCircle: r, className: i }, a
1078
1078
  })
1079
1079
  ]
1080
1080
  });
1081
- }), _t = C(function({ src: e, initials: t, seed: n, generativePattern: r = "grid", alt: i, variant: a = "circle", size: o = "md", color: s = "neutral", className: c }, l) {
1082
- let u = ct[o], d = lt[a];
1083
- return e ? /* @__PURE__ */ A("img", {
1081
+ }), vt = C(function({ src: e, initials: t, seed: n, generativePattern: r = "grid", alt: i, variant: a = "circle", size: o = "md", color: s = "neutral", className: c }, l) {
1082
+ let u = lt[o], d = ut[a];
1083
+ return e ? /* @__PURE__ */ j("img", {
1084
1084
  ref: l,
1085
1085
  src: e,
1086
1086
  alt: i ?? t ?? n ?? "",
1087
1087
  className: W("shrink-0 object-cover", u.outer, d, c)
1088
- }) : t ? /* @__PURE__ */ A("span", {
1088
+ }) : t ? /* @__PURE__ */ j("span", {
1089
1089
  ref: l,
1090
- className: W("flex shrink-0 items-center justify-center font-semibold select-none", u.outer, u.text, d, ut[s], c),
1090
+ className: W("flex shrink-0 items-center justify-center font-semibold select-none", u.outer, u.text, d, dt[s], c),
1091
1091
  children: t
1092
- }) : n ? /* @__PURE__ */ A(gt, {
1092
+ }) : n ? /* @__PURE__ */ j(_t, {
1093
1093
  ref: l,
1094
1094
  seed: n,
1095
1095
  pattern: r,
1096
1096
  px: u.px,
1097
1097
  isCircle: a === "circle",
1098
1098
  className: c
1099
- }) : /* @__PURE__ */ A("span", {
1099
+ }) : /* @__PURE__ */ j("span", {
1100
1100
  ref: l,
1101
- className: W("flex shrink-0 items-center justify-center font-semibold select-none", u.outer, u.text, d, ut[s], c)
1101
+ className: W("flex shrink-0 items-center justify-center font-semibold select-none", u.outer, u.text, d, dt[s], c)
1102
1102
  });
1103
1103
  });
1104
1104
  //#endregion
1105
1105
  //#region src/components/app-header/app-header.tsx
1106
- function vt({ to: e, href: t, className: n, children: r }) {
1107
- return /* @__PURE__ */ A("a", {
1106
+ function yt({ to: e, href: t, className: n, children: r }) {
1107
+ return /* @__PURE__ */ j("a", {
1108
1108
  href: e ?? t,
1109
1109
  className: n,
1110
1110
  children: r
1111
1111
  });
1112
1112
  }
1113
- function yt() {
1114
- return /* @__PURE__ */ A("div", {
1113
+ function bt() {
1114
+ return /* @__PURE__ */ j("div", {
1115
1115
  className: "flex w-4 shrink-0 items-center justify-center self-stretch",
1116
- children: /* @__PURE__ */ A("div", { className: "bg-cui-tertiary h-4 w-px rotate-[20deg] opacity-50" })
1116
+ children: /* @__PURE__ */ j("div", { className: "bg-cui-tertiary h-4 w-px rotate-[20deg] opacity-50" })
1117
1117
  });
1118
1118
  }
1119
- function bt({ items: e, linkComponent: t = vt, className: n }) {
1120
- return /* @__PURE__ */ j("nav", {
1119
+ function xt({ items: e, linkComponent: t = yt, className: n }) {
1120
+ return /* @__PURE__ */ M("nav", {
1121
1121
  className: W("flex items-center", n),
1122
1122
  children: [
1123
- /* @__PURE__ */ A(t, {
1123
+ /* @__PURE__ */ j(t, {
1124
1124
  to: "/",
1125
1125
  href: "/",
1126
1126
  className: "focus-visible:ring-cui-focus flex size-8 shrink-0 items-center justify-center rounded outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
1127
- children: /* @__PURE__ */ A(st, {
1127
+ children: /* @__PURE__ */ j(ct, {
1128
1128
  variant: "circle",
1129
1129
  className: "text-cui-primary"
1130
1130
  })
1131
1131
  }),
1132
- /* @__PURE__ */ A(yt, {}),
1133
- /* @__PURE__ */ A(Je, {
1132
+ /* @__PURE__ */ j(bt, {}),
1133
+ /* @__PURE__ */ j(Ye, {
1134
1134
  items: e,
1135
1135
  linkComponent: t
1136
1136
  })
1137
1137
  ]
1138
1138
  });
1139
1139
  }
1140
- var xt = C(function({ children: e, className: t }, n) {
1141
- return /* @__PURE__ */ A("div", {
1140
+ var St = C(function({ children: e, className: t }, n) {
1141
+ return /* @__PURE__ */ j("div", {
1142
1142
  ref: n,
1143
1143
  className: W("flex items-center gap-2", t),
1144
1144
  children: e
1145
1145
  });
1146
- }), St = C(function({ children: e, className: t }, n) {
1147
- return /* @__PURE__ */ A("header", {
1146
+ }), Ct = C(function({ children: e, className: t }, n) {
1147
+ return /* @__PURE__ */ j("header", {
1148
1148
  ref: n,
1149
1149
  className: W("flex items-center justify-between px-3 py-2", t),
1150
1150
  children: e
1151
1151
  });
1152
1152
  });
1153
- St.Breadcrumb = bt, St.Actions = xt, St.Avatar = _t;
1153
+ Ct.Breadcrumb = xt, Ct.Actions = St, Ct.Avatar = vt;
1154
1154
  //#endregion
1155
1155
  //#region src/components/settings-card/settings-card.tsx
1156
- var Ct = C(function({ title: e, description: t, toggle: n, toggled: r, onToggleChange: i, defaultToggled: a = !1, children: o, className: s }, c) {
1157
- let [l, u] = O(a), d = r !== void 0, f = d ? r : l, p = n && f;
1156
+ var wt = C(function({ title: e, description: t, toggle: n, toggled: r, onToggleChange: i, defaultToggled: a = !1, children: o, className: s }, c) {
1157
+ let [l, u] = k(a), d = r !== void 0, f = d ? r : l, p = n && f;
1158
1158
  function m(e) {
1159
1159
  d || u(e), i?.(e);
1160
1160
  }
1161
- return /* @__PURE__ */ A(J, {
1161
+ return /* @__PURE__ */ j(J, {
1162
1162
  ref: c,
1163
1163
  className: s,
1164
- children: /* @__PURE__ */ j(J.Content, { children: [(e || t || n) && /* @__PURE__ */ A(J.Header, { children: /* @__PURE__ */ j("div", {
1164
+ children: /* @__PURE__ */ M(J.Content, { children: [(e || t || n) && /* @__PURE__ */ j(J.Header, { children: /* @__PURE__ */ M("div", {
1165
1165
  className: "flex items-start justify-between gap-4",
1166
- children: [/* @__PURE__ */ j("div", {
1166
+ children: [/* @__PURE__ */ M("div", {
1167
1167
  className: "flex flex-1 flex-col",
1168
- children: [e && /* @__PURE__ */ A("span", {
1168
+ children: [e && /* @__PURE__ */ j("span", {
1169
1169
  className: "text-cui-primary text-cui-base font-medium",
1170
1170
  children: e
1171
- }), t && /* @__PURE__ */ A("p", {
1171
+ }), t && /* @__PURE__ */ j("p", {
1172
1172
  className: "text-cui-secondary text-cui-base mt-1 leading-relaxed",
1173
1173
  children: t
1174
1174
  })]
1175
- }), n && /* @__PURE__ */ A("div", {
1175
+ }), n && /* @__PURE__ */ j("div", {
1176
1176
  className: "shrink-0 pt-0.5",
1177
- children: /* @__PURE__ */ A(Xe, {
1177
+ children: /* @__PURE__ */ j(Ze, {
1178
1178
  checked: f,
1179
1179
  onCheckedChange: m
1180
1180
  })
1181
1181
  })]
1182
- }) }), /* @__PURE__ */ A(J, {
1182
+ }) }), /* @__PURE__ */ j(J, {
1183
1183
  variant: "nested",
1184
1184
  className: W("transition-opacity duration-150 ease-out", p && "opacity-50 pointer-events-none select-none"),
1185
1185
  children: o
1186
1186
  })] })
1187
1187
  });
1188
- }), wt = C(function({ label: e, description: t, children: n, className: r }, i) {
1189
- return /* @__PURE__ */ j(J.Section, {
1188
+ }), Tt = C(function({ label: e, description: t, children: n, className: r }, i) {
1189
+ return /* @__PURE__ */ M(J.Section, {
1190
1190
  ref: i,
1191
1191
  className: W("flex justify-between items-start", r),
1192
- children: [/* @__PURE__ */ j("div", {
1192
+ children: [/* @__PURE__ */ M("div", {
1193
1193
  className: "mr-4 flex flex-1 flex-col gap-1",
1194
- children: [/* @__PURE__ */ A("span", {
1194
+ children: [/* @__PURE__ */ j("span", {
1195
1195
  className: "text-cui-primary text-cui-base font-medium",
1196
1196
  children: e
1197
- }), t && /* @__PURE__ */ A("span", {
1197
+ }), t && /* @__PURE__ */ j("span", {
1198
1198
  className: "text-cui-secondary text-cui-base leading-relaxed",
1199
1199
  children: t
1200
1200
  })]
1201
- }), n && /* @__PURE__ */ A("div", {
1201
+ }), n && /* @__PURE__ */ j("div", {
1202
1202
  className: "flex w-[340px] shrink-0 flex-col items-end",
1203
1203
  children: n
1204
1204
  })]
1205
1205
  });
1206
- }), Tt = C(function({ className: e, children: t, ...n }, r) {
1207
- return /* @__PURE__ */ A("div", {
1206
+ }), Et = C(function({ className: e, children: t, ...n }, r) {
1207
+ return /* @__PURE__ */ j("div", {
1208
1208
  ref: r,
1209
1209
  className: W("flex shrink-0 items-center gap-6 px-1.5 py-1.5", e),
1210
1210
  ...n,
1211
1211
  children: t
1212
1212
  });
1213
- }), Et = C(function({ className: e, children: t, ...n }, r) {
1214
- return /* @__PURE__ */ A("div", {
1213
+ }), Dt = C(function({ className: e, children: t, ...n }, r) {
1214
+ return /* @__PURE__ */ j("div", {
1215
1215
  ref: r,
1216
1216
  className: W("flex min-h-0 flex-1 gap-6 overflow-auto px-3.5 py-3", e),
1217
1217
  ...n,
1218
1218
  children: t
1219
1219
  });
1220
- }), Dt = Object.assign(C(function({ sidebar: e, className: t, children: n }, r) {
1221
- return /* @__PURE__ */ j("div", {
1220
+ }), Ot = Object.assign(C(function({ sidebar: e, className: t, children: n }, r) {
1221
+ return /* @__PURE__ */ M("div", {
1222
1222
  ref: r,
1223
1223
  className: W("flex h-screen bg-cui-base-0", t),
1224
- children: [e, /* @__PURE__ */ A("div", {
1224
+ children: [e, /* @__PURE__ */ j("div", {
1225
1225
  className: "flex min-h-0 flex-1 flex-col pt-1 pr-1 pb-1",
1226
- children: /* @__PURE__ */ A("div", {
1226
+ children: /* @__PURE__ */ j("div", {
1227
1227
  className: "bg-cui-base-1 ring-cui-neutral flex min-h-0 flex-1 flex-col rounded shadow-sm ring-1",
1228
1228
  children: n
1229
1229
  })
1230
1230
  })]
1231
1231
  });
1232
1232
  }), {
1233
- Header: Tt,
1234
- Body: Et
1233
+ Header: Et,
1234
+ Body: Dt
1235
+ }), kt = {
1236
+ right: "right",
1237
+ left: "left",
1238
+ bottom: "down",
1239
+ top: "up"
1240
+ }, At = {
1241
+ right: "inset-y-0 right-0 w-[min(420px,90vw)] p-2",
1242
+ left: "inset-y-0 left-0 w-[min(420px,90vw)] p-2",
1243
+ bottom: "inset-x-0 bottom-0 max-h-[85vh] p-2",
1244
+ top: "inset-x-0 top-0 max-h-[85vh] p-2"
1245
+ };
1246
+ function jt({ side: e = "right", responsive: t, children: n, ...r }) {
1247
+ return /* @__PURE__ */ j(I.Root, {
1248
+ swipeDirection: kt[e],
1249
+ ...r,
1250
+ children: n
1251
+ });
1252
+ }
1253
+ var Mt = C(function({ className: e, ...t }, n) {
1254
+ return /* @__PURE__ */ j(I.Trigger, {
1255
+ ref: n,
1256
+ className: W(e),
1257
+ ...t
1258
+ });
1259
+ }), Nt = C(function({ className: e, ...t }, n) {
1260
+ return /* @__PURE__ */ j(I.Backdrop, {
1261
+ ref: n,
1262
+ className: W("fixed inset-0 z-40 bg-cui-overlay backdrop-blur-[2px]", "transition-opacity duration-200", "data-[starting-style]:opacity-0", "data-[ending-style]:opacity-0", "motion-reduce:transition-none", e),
1263
+ ...t
1264
+ });
1265
+ });
1266
+ function Pt({ side: e = "right", responsive: t = !0, className: n, children: r, ...i }) {
1267
+ return /* @__PURE__ */ M(I.Portal, { children: [/* @__PURE__ */ j(Nt, {}), /* @__PURE__ */ j(I.Popup, {
1268
+ className: W("group/drawer fixed z-50 flex outline-none", At[e], "transition-transform duration-500 ease-cui-out-expo", e === "right" && ["data-[starting-style]:translate-x-[20%]", "data-[ending-style]:translate-x-[20%]"], e === "left" && ["data-[starting-style]:-translate-x-[20%]", "data-[ending-style]:-translate-x-[20%]"], e === "bottom" && ["data-[starting-style]:translate-y-[20%]", "data-[ending-style]:translate-y-[20%]"], e === "top" && ["data-[starting-style]:-translate-y-[20%]", "data-[ending-style]:-translate-y-[20%]"], "motion-reduce:transition-none", t && [
1269
+ "max-md:inset-x-0 max-md:inset-y-auto max-md:bottom-0 max-md:right-auto max-md:left-auto",
1270
+ "max-md:w-full max-md:max-h-[85vh]",
1271
+ "max-md:data-[starting-style]:translate-x-0 max-md:data-[starting-style]:translate-y-[20%]",
1272
+ "max-md:data-[ending-style]:translate-x-0 max-md:data-[ending-style]:translate-y-[20%]"
1273
+ ]),
1274
+ ...i,
1275
+ children: /* @__PURE__ */ j("div", {
1276
+ className: W("bg-cui-base-1 flex min-h-0 flex-1 rounded-lg p-0.5 shadow-xl", "transition-[opacity,scale] duration-500 ease-cui-out-expo", "group-data-[starting-style]/drawer:scale-95 group-data-[starting-style]/drawer:opacity-0", "group-data-[ending-style]/drawer:scale-95 group-data-[ending-style]/drawer:opacity-0", "motion-reduce:transition-none", n),
1277
+ children: /* @__PURE__ */ j("div", {
1278
+ className: "bg-cui-base-2 border-cui-neutral flex min-h-0 flex-1 flex-col overflow-hidden rounded-md border",
1279
+ children: r
1280
+ })
1281
+ })
1282
+ })] });
1283
+ }
1284
+ var Ft = {
1285
+ Root: jt,
1286
+ Trigger: Mt,
1287
+ Content: Pt,
1288
+ Header: C(function({ className: e, children: t }, n) {
1289
+ return /* @__PURE__ */ j("div", {
1290
+ ref: n,
1291
+ className: W("border-cui-neutral flex items-center justify-between border-b px-4 py-3", e),
1292
+ children: t
1293
+ });
1294
+ }),
1295
+ Title: C(function({ className: e, ...t }, n) {
1296
+ return /* @__PURE__ */ j(I.Title, {
1297
+ ref: n,
1298
+ className: W("text-cui-primary text-cui-base font-medium", e),
1299
+ ...t
1300
+ });
1301
+ }),
1302
+ Description: C(function({ className: e, ...t }, n) {
1303
+ return /* @__PURE__ */ j(I.Description, {
1304
+ ref: n,
1305
+ className: W("text-cui-secondary text-cui-base", e),
1306
+ ...t
1307
+ });
1308
+ }),
1309
+ Body: C(function({ className: e, children: t }, n) {
1310
+ return /* @__PURE__ */ j("div", {
1311
+ ref: n,
1312
+ className: W("flex-1 overflow-y-auto p-4", e),
1313
+ children: t
1314
+ });
1315
+ }),
1316
+ Footer: C(function({ className: e, children: t }, n) {
1317
+ return /* @__PURE__ */ j("div", {
1318
+ ref: n,
1319
+ className: W("border-cui-neutral flex items-center justify-end gap-2 border-t p-3", e),
1320
+ children: t
1321
+ });
1322
+ }),
1323
+ Close: C(function({ asIcon: e, className: t, children: n, ...r }, i) {
1324
+ return e ?? !n ? /* @__PURE__ */ j(I.Close, {
1325
+ ref: i,
1326
+ className: W("text-cui-tertiary hover:text-cui-primary -m-1 flex size-7 cursor-pointer items-center justify-center rounded-sm outline-none", "transition-colors duration-150", "focus-visible:ring-2 focus-visible:ring-cui-focus", "motion-reduce:transition-none", t),
1327
+ ...r,
1328
+ children: /* @__PURE__ */ j(x, { className: "size-4" })
1329
+ }) : /* @__PURE__ */ j(I.Close, {
1330
+ ref: i,
1331
+ className: W(t),
1332
+ ...r,
1333
+ children: n
1334
+ });
1335
+ })
1336
+ };
1337
+ //#endregion
1338
+ //#region src/components/flickering-grid/flickering-grid.tsx
1339
+ function It(e, t) {
1340
+ let n = e.style.color;
1341
+ e.style.color = t;
1342
+ let r = getComputedStyle(e).color;
1343
+ return e.style.color = n, r || "#000";
1344
+ }
1345
+ function Lt({ squareSize: e = 6, gridGap: t = 0, flickerChance: n = .3, color: r = "currentColor", maxOpacity: i = .3, sweep: a = !1, sweepDirection: o = "left", sweepDuration: s = 2.5, sweepWidth: c = .15, sweepOnly: l = !1, sweepNoise: u = .12, className: d }) {
1346
+ let f = O(null), p = O(null);
1347
+ return ee(() => {
1348
+ let d = f.current, m = p.current;
1349
+ if (!d || !m) return;
1350
+ let h = m.getContext("2d");
1351
+ if (!h) return;
1352
+ let g = It(d, r), _ = 0, v = 0, y = new Float32Array(), b = new Float32Array(), x = 1, S = 0, C = 0, w = performance.now();
1353
+ function T() {
1354
+ if (!m || !d) return;
1355
+ x = window.devicePixelRatio || 1, S = d.clientWidth, C = d.clientHeight, m.width = S * x, m.height = C * x, m.style.width = `${S}px`, m.style.height = `${C}px`;
1356
+ let n = e + t;
1357
+ _ = Math.max(1, Math.floor((S + t) / n)), v = Math.max(1, Math.floor((C + t) / n)), y = new Float32Array(_ * v), b = new Float32Array(_ * v);
1358
+ for (let e = 0; e < y.length; e++) y[e] = Math.random() * i, b[e] = (Math.random() - .5) * 2 * u;
1359
+ }
1360
+ function ee(e) {
1361
+ if (!l) for (let t = 0; t < y.length; t++) Math.random() < n * e && (y[t] = Math.random() * i);
1362
+ }
1363
+ function E(n) {
1364
+ if (!h || !m) return;
1365
+ h.clearRect(0, 0, m.width, m.height), h.fillStyle = g;
1366
+ let r = e + t, u = 0;
1367
+ if (a) {
1368
+ let e = (n - w) / 1e3 / s % 1;
1369
+ u = o === "left" ? 1 - e : e, u = u * (1 + c * 2) - c;
1370
+ }
1371
+ for (let t = 0; t < _; t++) for (let n = 0; n < v; n++) {
1372
+ let o = t * v + n, s;
1373
+ if (l && a) {
1374
+ let e = (_ > 1 ? t / (_ - 1) : 0) + (b[o] ?? 0), n = Math.abs(e - u), r = Math.max(0, 1 - n / c);
1375
+ s = r * r * (3 - 2 * r) * i;
1376
+ } else if (s = y[o] ?? 0, a) {
1377
+ let e = _ > 1 ? t / (_ - 1) : 0, n = Math.abs(e - u), r = Math.max(0, 1 - n / c), a = r * r * (3 - 2 * r);
1378
+ s = Math.min(i * 1.5, s + a * i);
1379
+ }
1380
+ s < .01 || (h.globalAlpha = s, h.fillRect(t * r * x, n * r * x, e * x, e * x));
1381
+ }
1382
+ h.globalAlpha = 1;
1383
+ }
1384
+ T();
1385
+ let D = 0, O = performance.now(), k = !0;
1386
+ function te(e) {
1387
+ if (!k) return;
1388
+ let t = (e - O) / 1e3;
1389
+ O = e, ee(t), E(e), D = requestAnimationFrame(te);
1390
+ }
1391
+ let A = new ResizeObserver(() => {
1392
+ T();
1393
+ });
1394
+ A.observe(d);
1395
+ let j = new IntersectionObserver(([e]) => {
1396
+ k = e?.isIntersecting ?? !1, k ? (O = performance.now(), D = requestAnimationFrame(te)) : cancelAnimationFrame(D);
1397
+ }, { threshold: 0 });
1398
+ j.observe(m);
1399
+ let M = new MutationObserver(() => {
1400
+ g = It(d, r);
1401
+ });
1402
+ return M.observe(document.documentElement, {
1403
+ attributes: !0,
1404
+ attributeFilter: ["data-theme", "class"]
1405
+ }), () => {
1406
+ cancelAnimationFrame(D), A.disconnect(), j.disconnect(), M.disconnect();
1407
+ };
1408
+ }, [
1409
+ e,
1410
+ t,
1411
+ n,
1412
+ r,
1413
+ i,
1414
+ a,
1415
+ o,
1416
+ s,
1417
+ c,
1418
+ l,
1419
+ u
1420
+ ]), /* @__PURE__ */ j("div", {
1421
+ ref: f,
1422
+ className: W("pointer-events-none size-full", d),
1423
+ "aria-hidden": "true",
1424
+ children: /* @__PURE__ */ j("canvas", { ref: p })
1425
+ });
1426
+ }
1427
+ //#endregion
1428
+ //#region src/components/skeleton/skeleton.tsx
1429
+ var Rt = C(function({ circular: e, className: t }, n) {
1430
+ return /* @__PURE__ */ j("div", {
1431
+ ref: n,
1432
+ className: W("relative overflow-hidden bg-cui-subtle", e ? "rounded-full" : "rounded-xs", t),
1433
+ "aria-hidden": "true",
1434
+ children: /* @__PURE__ */ j(Lt, {
1435
+ squareSize: 4,
1436
+ gridGap: 2,
1437
+ color: "var(--text-color-cui-secondary)",
1438
+ maxOpacity: .05,
1439
+ sweep: !0,
1440
+ sweepOnly: !0,
1441
+ sweepDirection: "right",
1442
+ sweepDuration: 1.5,
1443
+ sweepWidth: .4,
1444
+ sweepNoise: .1
1445
+ })
1446
+ });
1235
1447
  });
1236
1448
  //#endregion
1237
1449
  //#region src/components/tooltip/tooltip.tsx
1238
- function Ot(e) {
1239
- return /* @__PURE__ */ A(F.Provider, { ...e });
1450
+ function zt(e) {
1451
+ return /* @__PURE__ */ j(L.Provider, { ...e });
1240
1452
  }
1241
- function kt(e) {
1242
- return /* @__PURE__ */ A(F.Root, { ...e });
1453
+ function Bt(e) {
1454
+ return /* @__PURE__ */ j(L.Root, { ...e });
1243
1455
  }
1244
- var At = C(function({ className: e, ...t }, n) {
1245
- return /* @__PURE__ */ A(F.Trigger, {
1456
+ var Vt = C(function({ className: e, ...t }, n) {
1457
+ return /* @__PURE__ */ j(L.Trigger, {
1246
1458
  ref: n,
1247
1459
  className: W("outline-none", e),
1248
1460
  ...t
1249
1461
  });
1250
1462
  });
1251
- function jt({ side: e = "top", align: t = "center", sideOffset: n = 6, className: r, children: i, ...a }) {
1252
- return /* @__PURE__ */ A(F.Portal, { children: /* @__PURE__ */ A(F.Positioner, {
1463
+ function Ht({ side: e = "top", align: t = "center", sideOffset: n = 6, className: r, children: i, ...a }) {
1464
+ return /* @__PURE__ */ j(L.Portal, { children: /* @__PURE__ */ j(L.Positioner, {
1253
1465
  side: e,
1254
1466
  align: t,
1255
1467
  sideOffset: n,
1256
1468
  className: W("z-50 outline-none", "h-[var(--positioner-height)] w-[var(--positioner-width)] max-w-[var(--available-width)]", "transition-[top,left,right,bottom,transform] duration-350 ease-cui-out-expo", "data-[instant]:transition-none"),
1257
- children: /* @__PURE__ */ A(F.Popup, {
1469
+ children: /* @__PURE__ */ j(L.Popup, {
1258
1470
  className: W("bg-cui-inverse text-cui-inverse rounded px-2 py-1 text-cui-sm font-medium", "max-w-[280px]", "origin-[var(--transform-origin)]", "transition-[transform,scale,opacity] duration-150 ease-cui-out-expo", "data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "data-[ending-style]:scale-95 data-[ending-style]:opacity-0", "data-[instant]:transition-none", "motion-reduce:transition-none", r),
1259
1471
  ...a,
1260
1472
  children: i
1261
1473
  })
1262
1474
  }) });
1263
1475
  }
1264
- var Mt = C(function({ className: e, ...t }, n) {
1265
- return /* @__PURE__ */ A(F.Viewport, {
1476
+ var Ut = C(function({ className: e, ...t }, n) {
1477
+ return /* @__PURE__ */ j(L.Viewport, {
1266
1478
  ref: n,
1267
1479
  className: W("relative h-full w-full overflow-clip", "[&_[data-previous]]:transition-[translate,opacity] [&_[data-previous]]:duration-350 [&_[data-previous]]:ease-cui-out-expo", "[&_[data-current]]:transition-[translate,opacity] [&_[data-current]]:duration-350 [&_[data-current]]:ease-cui-out-expo", "[&_[data-instant]_[data-current]]:transition-none [&_[data-instant]_[data-previous]]:transition-none", "[&[data-activation-direction*=left]_[data-current][data-starting-style]]:-translate-x-1/2 [&[data-activation-direction*=left]_[data-current][data-starting-style]]:opacity-0", "[&[data-activation-direction*=right]_[data-current][data-starting-style]]:translate-x-1/2 [&[data-activation-direction*=right]_[data-current][data-starting-style]]:opacity-0", "[&[data-activation-direction*=up]_[data-current][data-starting-style]]:-translate-y-1/2 [&[data-activation-direction*=up]_[data-current][data-starting-style]]:opacity-0", "[&[data-activation-direction*=down]_[data-current][data-starting-style]]:translate-y-1/2 [&[data-activation-direction*=down]_[data-current][data-starting-style]]:opacity-0", "[&[data-activation-direction*=left]_[data-previous][data-ending-style]]:translate-x-1/2 [&[data-activation-direction*=left]_[data-previous][data-ending-style]]:opacity-0", "[&[data-activation-direction*=right]_[data-previous][data-ending-style]]:-translate-x-1/2 [&[data-activation-direction*=right]_[data-previous][data-ending-style]]:opacity-0", "[&[data-activation-direction*=up]_[data-previous][data-ending-style]]:translate-y-1/2 [&[data-activation-direction*=up]_[data-previous][data-ending-style]]:opacity-0", "[&[data-activation-direction*=down]_[data-previous][data-ending-style]]:-translate-y-1/2 [&[data-activation-direction*=down]_[data-previous][data-ending-style]]:opacity-0", "motion-reduce:[&_[data-current]]:!transition-none motion-reduce:[&_[data-previous]]:!transition-none", e),
1268
1480
  ...t
1269
1481
  });
1270
- }), Nt = F.createHandle, X = {
1271
- Provider: Ot,
1272
- Root: kt,
1273
- Trigger: At,
1274
- Content: jt,
1275
- Viewport: Mt,
1276
- createHandle: F.createHandle
1277
- }, Pt = S(null);
1482
+ }), Wt = L.createHandle, X = {
1483
+ Provider: zt,
1484
+ Root: Bt,
1485
+ Trigger: Vt,
1486
+ Content: Ht,
1487
+ Viewport: Ut,
1488
+ createHandle: L.createHandle
1489
+ }, Gt = S(null);
1278
1490
  function Z() {
1279
- let e = ee(Pt);
1280
- if (!e) throw Error("useSidebar must be used within a <Sidebar>");
1491
+ let e = T(Gt);
1492
+ if (!e) throw Error("useSidebar must be used within a <Sidebar> or <Sidebar.Provider>");
1281
1493
  return e;
1282
1494
  }
1495
+ function Kt() {
1496
+ return T(Gt);
1497
+ }
1283
1498
  //#endregion
1284
1499
  //#region src/components/sidebar/sidebar.tsx
1285
- function Ft({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, className: r, children: i }) {
1286
- let [a, o] = O(e), s = t !== void 0, c = s ? t : a, l = w(() => {
1287
- let e = !c;
1288
- s ? n?.(e) : o(e);
1500
+ var qt = "(max-width: 767px)";
1501
+ function Jt(e) {
1502
+ let t = window.matchMedia(qt);
1503
+ return t.addEventListener("change", e), () => t.removeEventListener("change", e);
1504
+ }
1505
+ function Yt() {
1506
+ return window.matchMedia(qt).matches;
1507
+ }
1508
+ function Xt() {
1509
+ return !1;
1510
+ }
1511
+ function Zt() {
1512
+ return te(Jt, Yt, Xt);
1513
+ }
1514
+ function Qt({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, linkComponent: r, children: i }) {
1515
+ let a = Zt(), [o, s] = k(e), [c, l] = k(!1), u = t !== void 0, d = u ? t : o, f = w(() => {
1516
+ let e = !d;
1517
+ u ? n?.(e) : s(e);
1289
1518
  }, [
1290
- c,
1291
- s,
1519
+ d,
1520
+ u,
1292
1521
  n
1293
- ]), u = E(() => ({
1294
- collapsed: c,
1295
- toggle: l
1296
- }), [c, l]);
1297
- return /* @__PURE__ */ A(Pt.Provider, {
1298
- value: u,
1299
- children: /* @__PURE__ */ A(X.Provider, {
1300
- delay: 0,
1301
- closeDelay: 0,
1302
- children: /* @__PURE__ */ A("div", {
1303
- className: W("relative flex h-full shrink-0 flex-col justify-between overflow-hidden px-2 py-1 transition-[width] duration-400 ease-cui-out-expo", c ? "w-12" : "w-[264px]", r),
1304
- children: i
1305
- })
1522
+ ]);
1523
+ ee(() => {
1524
+ !a && c && l(!1);
1525
+ }, [a, c]);
1526
+ let p = D(() => ({
1527
+ collapsed: a ? !0 : d,
1528
+ toggle: f,
1529
+ linkComponent: r,
1530
+ mobile: a,
1531
+ mobileOpen: c,
1532
+ setMobileOpen: l
1533
+ }), [
1534
+ d,
1535
+ f,
1536
+ r,
1537
+ a,
1538
+ c
1539
+ ]);
1540
+ return /* @__PURE__ */ j(Gt.Provider, {
1541
+ value: p,
1542
+ children: i
1543
+ });
1544
+ }
1545
+ function $t({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, linkComponent: r, className: i, children: a }) {
1546
+ let o = Kt();
1547
+ return o ? /* @__PURE__ */ j(tn, {
1548
+ className: i,
1549
+ ctx: o,
1550
+ children: a
1551
+ }) : /* @__PURE__ */ j(Qt, {
1552
+ defaultCollapsed: e,
1553
+ collapsed: t,
1554
+ onCollapsedChange: n,
1555
+ linkComponent: r,
1556
+ children: /* @__PURE__ */ j(en, {
1557
+ className: i,
1558
+ children: a
1306
1559
  })
1307
1560
  });
1308
1561
  }
1309
- function It({ className: e, children: t }) {
1310
- return /* @__PURE__ */ A("div", {
1311
- className: W("flex w-full flex-col gap-0.5", e),
1562
+ function en({ className: e, children: t }) {
1563
+ return /* @__PURE__ */ j(tn, {
1564
+ className: e,
1565
+ ctx: Z(),
1312
1566
  children: t
1313
1567
  });
1314
1568
  }
1315
- var Lt = C(function({ className: e, children: t, ...n }, r) {
1569
+ function tn({ className: e, ctx: t, children: n }) {
1570
+ let { collapsed: r, mobile: i, mobileOpen: a, setMobileOpen: o } = t, s = D(() => ({
1571
+ ...t,
1572
+ collapsed: !1
1573
+ }), [t]);
1574
+ return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(X.Provider, {
1575
+ delay: 0,
1576
+ closeDelay: 0,
1577
+ children: /* @__PURE__ */ j("div", {
1578
+ className: W("relative flex h-full shrink-0 flex-col justify-between overflow-hidden px-2 py-1 transition-[width] duration-400 ease-cui-out-expo", i || r ? "w-12" : "w-[264px]", e),
1579
+ children: n
1580
+ })
1581
+ }), i && /* @__PURE__ */ j(Ft.Root, {
1582
+ open: a,
1583
+ onOpenChange: o,
1584
+ side: "left",
1585
+ responsive: !1,
1586
+ children: /* @__PURE__ */ j(Ft.Content, {
1587
+ side: "left",
1588
+ responsive: !1,
1589
+ children: /* @__PURE__ */ j(Gt.Provider, {
1590
+ value: s,
1591
+ children: /* @__PURE__ */ j(X.Provider, {
1592
+ delay: 0,
1593
+ closeDelay: 0,
1594
+ children: /* @__PURE__ */ j("div", {
1595
+ className: "flex h-full w-full flex-col justify-between px-2 py-1",
1596
+ children: n
1597
+ })
1598
+ })
1599
+ })
1600
+ })
1601
+ })] });
1602
+ }
1603
+ function nn({ className: e, children: t }) {
1604
+ return /* @__PURE__ */ j(Se, {
1605
+ background: "bg-cui-subtle",
1606
+ borderRadius: "rounded",
1607
+ className: W("w-full flex-col items-stretch gap-0.5", e),
1608
+ children: t
1609
+ });
1610
+ }
1611
+ var rn = C(function({ className: e, children: t, ...n }, r) {
1316
1612
  let { collapsed: i } = Z();
1317
- return /* @__PURE__ */ A("div", {
1613
+ return /* @__PURE__ */ j("div", {
1318
1614
  ref: r,
1319
1615
  className: W("grid transition-all duration-400 ease-cui-out-expo", i ? "grid-rows-[0fr]" : "grid-rows-[1fr]"),
1320
1616
  ...n,
1321
- children: /* @__PURE__ */ A("div", {
1617
+ children: /* @__PURE__ */ j("div", {
1322
1618
  className: "overflow-hidden",
1323
- children: /* @__PURE__ */ A("div", {
1619
+ children: /* @__PURE__ */ j("div", {
1324
1620
  className: W("flex h-6 items-center px-2 text-cui-sm text-cui-secondary transition-all duration-400 ease-cui-out-expo", i ? "-translate-x-5 scale-80 opacity-0" : "opacity-100", e),
1325
1621
  children: t
1326
1622
  })
1327
1623
  })
1328
1624
  });
1329
1625
  });
1330
- function Rt({ className: e, children: t }) {
1626
+ function an({ className: e, children: t }) {
1331
1627
  let { collapsed: n } = Z();
1332
- return /* @__PURE__ */ j("div", {
1628
+ return /* @__PURE__ */ M("div", {
1333
1629
  className: W("flex items-center justify-center py-1.5 transition-all duration-400 ease-cui-out-expo", e),
1334
- children: [/* @__PURE__ */ A(N, {
1630
+ children: [/* @__PURE__ */ j(P, {
1335
1631
  mode: "popLayout",
1336
1632
  initial: !1,
1337
- children: !n && /* @__PURE__ */ A(P.div, {
1633
+ children: !n && /* @__PURE__ */ j(F.div, {
1338
1634
  initial: {
1339
1635
  opacity: 0,
1340
1636
  x: -320,
@@ -1358,43 +1654,84 @@ function Rt({ className: e, children: t }) {
1358
1654
  className: "flex min-w-0 flex-1 items-center gap-2",
1359
1655
  children: t
1360
1656
  })
1361
- }), /* @__PURE__ */ A(Ht, {})]
1657
+ }), /* @__PURE__ */ j(ln, {})]
1362
1658
  });
1363
1659
  }
1364
- function zt({ name: e, href: t, as: n, active: r = !1, icon: a, nested: o = !1, external: s = !1, showIndicator: c = !1, onClick: u, className: d }) {
1365
- let { collapsed: f } = Z(), p = n ?? (t ? "a" : "button"), m = n === "div" ? { onClick: u } : t ? {
1660
+ function on({ name: e, href: t, as: n, active: r = !1, icon: a, nested: o = !1, external: s = !1, showIndicator: c = !1, trailing: u, disabled: d = !1, loading: f = !1, onClick: p, className: m, ...h }) {
1661
+ let { collapsed: g, linkComponent: _, mobile: v, setMobileOpen: y } = Z();
1662
+ if (f) return /* @__PURE__ */ M("div", {
1663
+ className: W("flex h-8 w-full items-center gap-2 p-2 transition-[width] duration-400 ease-cui-out-expo", g ? "w-8" : "w-full"),
1664
+ children: [/* @__PURE__ */ j(Rt, { className: "size-4 shrink-0" }), /* @__PURE__ */ j(P, {
1665
+ mode: "popLayout",
1666
+ initial: !1,
1667
+ children: !g && /* @__PURE__ */ j(F.span, {
1668
+ initial: {
1669
+ opacity: 0,
1670
+ scale: .8
1671
+ },
1672
+ animate: {
1673
+ opacity: 1,
1674
+ scale: 1
1675
+ },
1676
+ exit: {
1677
+ opacity: 0,
1678
+ scale: .8
1679
+ },
1680
+ transition: {
1681
+ duration: .2,
1682
+ ease: "easeOut"
1683
+ },
1684
+ className: "flex-1 origin-left",
1685
+ children: /* @__PURE__ */ j(Rt, { className: "h-4 w-24" })
1686
+ })
1687
+ })]
1688
+ });
1689
+ let b = !!t && !s && !!_, x = n ?? (b ? _ : t ? "a" : "button"), S = d ? (e) => {
1690
+ e.preventDefault(), e.stopPropagation();
1691
+ } : v && g ? (e) => {
1692
+ e.preventDefault(), y(!0);
1693
+ } : () => {
1694
+ p?.(), y(!1);
1695
+ }, C = b ? {
1696
+ to: t,
1697
+ href: t,
1698
+ onClick: S
1699
+ } : n === "div" ? { onClick: S } : t ? {
1366
1700
  href: t,
1367
- onClick: u,
1701
+ onClick: S,
1368
1702
  target: s ? "_blank" : void 0,
1369
1703
  rel: s ? "noopener noreferrer" : void 0
1370
1704
  } : {
1371
1705
  type: "button",
1372
- onClick: u
1373
- }, h = /* @__PURE__ */ A(G, {
1706
+ onClick: S
1707
+ }, w = /* @__PURE__ */ j(G, {
1374
1708
  active: r,
1709
+ disabled: d,
1375
1710
  background: "bg-cui-subtle",
1376
1711
  borderRadius: "rounded",
1377
1712
  fullWidth: !0,
1378
- className: W("overflow-hidden transition-[width] duration-400 ease-cui-out-expo", f ? "w-8" : "w-full"),
1379
- children: /* @__PURE__ */ j(p, {
1380
- ...m,
1381
- "aria-label": f ? e : void 0,
1382
- className: W("flex h-8 w-full cursor-pointer select-none items-center gap-2 p-2 text-left text-cui-base text-cui-secondary group-hover/h:text-cui-primary outline-none", r && "text-cui-primary", d),
1713
+ className: W("overflow-hidden transition-[width] duration-400 ease-cui-out-expo", g ? "w-8" : "w-full"),
1714
+ ...h,
1715
+ children: /* @__PURE__ */ M(x, {
1716
+ ...C,
1717
+ "aria-label": g ? e : void 0,
1718
+ "aria-disabled": d || void 0,
1719
+ className: W("group/link flex h-8 w-full select-none items-center gap-2 p-2 text-left text-cui-base text-cui-secondary outline-none", !d && "cursor-pointer hover:text-cui-primary", r && "text-cui-primary", d && "cursor-default opacity-50", m),
1383
1720
  children: [
1384
- a && /* @__PURE__ */ j("span", {
1721
+ a && /* @__PURE__ */ M("span", {
1385
1722
  className: "relative shrink-0",
1386
- children: [/* @__PURE__ */ A("span", {
1387
- className: W("flex size-4 items-center justify-center [&>svg]:size-4", r ? "text-cui-primary" : "text-cui-secondary group-hover/h:text-cui-primary"),
1723
+ children: [/* @__PURE__ */ j("span", {
1724
+ className: W("flex size-4 items-center justify-center [&>svg]:size-4", r ? "text-cui-primary" : d ? "text-cui-tertiary" : "text-cui-secondary group-hover/link:text-cui-primary"),
1388
1725
  children: a
1389
- }), c && f && /* @__PURE__ */ A("span", {
1726
+ }), c && g && /* @__PURE__ */ j("span", {
1390
1727
  className: "bg-cui-accent-strong absolute -top-0.5 -right-0.5 size-2 rounded-full",
1391
- children: /* @__PURE__ */ A("span", { className: "bg-cui-accent-strong absolute inset-0 animate-ping rounded-full opacity-75" })
1728
+ children: /* @__PURE__ */ j("span", { className: "bg-cui-accent-strong absolute inset-0 animate-ping rounded-full opacity-75" })
1392
1729
  })]
1393
1730
  }),
1394
- /* @__PURE__ */ A(N, {
1731
+ /* @__PURE__ */ j(P, {
1395
1732
  mode: "popLayout",
1396
1733
  initial: !1,
1397
- children: !f && /* @__PURE__ */ A(P.span, {
1734
+ children: !g && /* @__PURE__ */ j(F.span, {
1398
1735
  initial: {
1399
1736
  opacity: 0,
1400
1737
  scale: .8
@@ -1415,10 +1752,10 @@ function zt({ name: e, href: t, as: n, active: r = !1, icon: a, nested: o = !1,
1415
1752
  children: e
1416
1753
  })
1417
1754
  }),
1418
- /* @__PURE__ */ A(N, {
1755
+ /* @__PURE__ */ j(P, {
1419
1756
  mode: "popLayout",
1420
1757
  initial: !1,
1421
- children: c && !f && /* @__PURE__ */ A(P.span, {
1758
+ children: c && !g && /* @__PURE__ */ j(F.span, {
1422
1759
  initial: {
1423
1760
  opacity: 0,
1424
1761
  scale: .8
@@ -1436,16 +1773,16 @@ function zt({ name: e, href: t, as: n, active: r = !1, icon: a, nested: o = !1,
1436
1773
  ease: "easeOut"
1437
1774
  },
1438
1775
  className: "flex shrink-0 origin-left items-center",
1439
- children: /* @__PURE__ */ j("span", {
1776
+ children: /* @__PURE__ */ M("span", {
1440
1777
  className: "relative flex size-2",
1441
- children: [/* @__PURE__ */ A("span", { className: "bg-cui-accent-strong absolute inline-flex size-full animate-ping rounded-full opacity-75" }), /* @__PURE__ */ A("span", { className: "bg-cui-accent-strong relative inline-flex size-2 rounded-full" })]
1778
+ children: [/* @__PURE__ */ j("span", { className: "bg-cui-accent-strong absolute inline-flex size-full animate-ping rounded-full opacity-75" }), /* @__PURE__ */ j("span", { className: "bg-cui-accent-strong relative inline-flex size-2 rounded-full" })]
1442
1779
  })
1443
1780
  })
1444
1781
  }),
1445
- /* @__PURE__ */ A(N, {
1782
+ /* @__PURE__ */ j(P, {
1446
1783
  mode: "popLayout",
1447
1784
  initial: !1,
1448
- children: s && !f && /* @__PURE__ */ A(P.span, {
1785
+ children: u && !g && /* @__PURE__ */ j(F.span, {
1449
1786
  initial: {
1450
1787
  opacity: 0,
1451
1788
  scale: .8
@@ -1462,14 +1799,14 @@ function zt({ name: e, href: t, as: n, active: r = !1, icon: a, nested: o = !1,
1462
1799
  duration: .2,
1463
1800
  ease: "easeOut"
1464
1801
  },
1465
- className: "origin-left",
1466
- children: /* @__PURE__ */ A(i, { className: "text-cui-tertiary size-4 shrink-0" })
1802
+ className: "flex shrink-0 origin-left items-center",
1803
+ children: u
1467
1804
  })
1468
1805
  }),
1469
- /* @__PURE__ */ A(N, {
1806
+ /* @__PURE__ */ j(P, {
1470
1807
  mode: "popLayout",
1471
1808
  initial: !1,
1472
- children: o && !f && /* @__PURE__ */ A(P.span, {
1809
+ children: s && !g && /* @__PURE__ */ j(F.span, {
1473
1810
  initial: {
1474
1811
  opacity: 0,
1475
1812
  scale: .8
@@ -1487,40 +1824,13 @@ function zt({ name: e, href: t, as: n, active: r = !1, icon: a, nested: o = !1,
1487
1824
  ease: "easeOut"
1488
1825
  },
1489
1826
  className: "origin-left",
1490
- children: /* @__PURE__ */ A(l, { className: "text-cui-tertiary size-4 shrink-0" })
1827
+ children: /* @__PURE__ */ j(i, { className: "text-cui-tertiary size-4 shrink-0" })
1491
1828
  })
1492
- })
1493
- ]
1494
- })
1495
- });
1496
- return /* @__PURE__ */ j(X.Root, {
1497
- disabled: !f,
1498
- children: [/* @__PURE__ */ A(X.Trigger, { render: h }), /* @__PURE__ */ A(X.Content, {
1499
- side: "right",
1500
- children: e
1501
- })]
1502
- });
1503
- }
1504
- function Bt({ name: e, onClick: t, className: r }) {
1505
- let { collapsed: i } = Z(), a = /* @__PURE__ */ A("div", {
1506
- className: "flex items-center py-1.5",
1507
- children: /* @__PURE__ */ A(G, {
1508
- background: "bg-cui-subtle",
1509
- borderRadius: "rounded",
1510
- fullWidth: !0,
1511
- className: W("overflow-hidden transition-[width] duration-400 ease-cui-out-expo", i ? "w-8" : "w-full"),
1512
- children: /* @__PURE__ */ j("button", {
1513
- type: "button",
1514
- onClick: t,
1515
- "aria-label": i ? e : void 0,
1516
- className: W("flex h-8 w-full cursor-pointer select-none items-center gap-2 p-2 text-left text-cui-base text-cui-secondary group-hover/h:text-cui-primary outline-none", r),
1517
- children: [/* @__PURE__ */ A("span", {
1518
- className: "flex size-4 shrink-0 items-center justify-center [&>svg]:size-4",
1519
- children: /* @__PURE__ */ A(n, {})
1520
- }), /* @__PURE__ */ A(N, {
1829
+ }),
1830
+ /* @__PURE__ */ j(P, {
1521
1831
  mode: "popLayout",
1522
1832
  initial: !1,
1523
- children: !i && /* @__PURE__ */ A(P.span, {
1833
+ children: o && !g && /* @__PURE__ */ j(F.span, {
1524
1834
  initial: {
1525
1835
  opacity: 0,
1526
1836
  scale: .8
@@ -1537,29 +1847,88 @@ function Bt({ name: e, onClick: t, className: r }) {
1537
1847
  duration: .2,
1538
1848
  ease: "easeOut"
1539
1849
  },
1540
- className: "flex-1 origin-left truncate",
1541
- children: e
1850
+ className: "origin-left",
1851
+ children: /* @__PURE__ */ j(l, { className: "text-cui-tertiary size-4 shrink-0" })
1542
1852
  })
1543
- })]
1544
- })
1853
+ })
1854
+ ]
1545
1855
  })
1546
1856
  });
1547
- return /* @__PURE__ */ j(X.Root, {
1857
+ return /* @__PURE__ */ M(X.Root, {
1858
+ disabled: !g || v,
1859
+ children: [/* @__PURE__ */ j(X.Trigger, {
1860
+ className: "w-full outline-none",
1861
+ render: /* @__PURE__ */ j("div", {}),
1862
+ children: w
1863
+ }), /* @__PURE__ */ j(X.Content, {
1864
+ side: "right",
1865
+ children: e
1866
+ })]
1867
+ });
1868
+ }
1869
+ function sn({ name: e, onClick: t, className: r }) {
1870
+ let { collapsed: i } = Z();
1871
+ return /* @__PURE__ */ M(X.Root, {
1548
1872
  disabled: !i,
1549
- children: [/* @__PURE__ */ A(X.Trigger, { render: a }), /* @__PURE__ */ A(X.Content, {
1873
+ children: [/* @__PURE__ */ j(X.Trigger, {
1874
+ className: "w-full outline-none",
1875
+ render: /* @__PURE__ */ j("div", {}),
1876
+ children: /* @__PURE__ */ j("div", {
1877
+ className: "flex items-center py-1.5",
1878
+ children: /* @__PURE__ */ j(G, {
1879
+ background: "bg-cui-subtle",
1880
+ borderRadius: "rounded",
1881
+ fullWidth: !0,
1882
+ className: W("overflow-hidden transition-[width] duration-400 ease-cui-out-expo", i ? "w-8" : "w-full"),
1883
+ children: /* @__PURE__ */ M("button", {
1884
+ type: "button",
1885
+ onClick: t,
1886
+ "aria-label": i ? e : void 0,
1887
+ className: W("flex h-8 w-full cursor-pointer select-none items-center gap-2 p-2 text-left text-cui-base text-cui-secondary hover:text-cui-primary outline-none", r),
1888
+ children: [/* @__PURE__ */ j("span", {
1889
+ className: "flex size-4 shrink-0 items-center justify-center [&>svg]:size-4",
1890
+ children: /* @__PURE__ */ j(n, {})
1891
+ }), /* @__PURE__ */ j(P, {
1892
+ mode: "popLayout",
1893
+ initial: !1,
1894
+ children: !i && /* @__PURE__ */ j(F.span, {
1895
+ initial: {
1896
+ opacity: 0,
1897
+ scale: .8
1898
+ },
1899
+ animate: {
1900
+ opacity: 1,
1901
+ scale: 1
1902
+ },
1903
+ exit: {
1904
+ opacity: 0,
1905
+ scale: .8
1906
+ },
1907
+ transition: {
1908
+ duration: .2,
1909
+ ease: "easeOut"
1910
+ },
1911
+ className: "flex-1 origin-left truncate",
1912
+ children: e
1913
+ })
1914
+ })]
1915
+ })
1916
+ })
1917
+ })
1918
+ }), /* @__PURE__ */ j(X.Content, {
1550
1919
  side: "right",
1551
1920
  children: e
1552
1921
  })]
1553
1922
  });
1554
1923
  }
1555
- function Vt({ collapsed: e }) {
1556
- return /* @__PURE__ */ j("svg", {
1924
+ function cn({ collapsed: e }) {
1925
+ return /* @__PURE__ */ M("svg", {
1557
1926
  width: "16",
1558
1927
  height: "16",
1559
1928
  viewBox: "0 0 16 16",
1560
1929
  fill: "none",
1561
1930
  className: "size-4",
1562
- children: [/* @__PURE__ */ A("rect", {
1931
+ children: [/* @__PURE__ */ j("rect", {
1563
1932
  x: 2,
1564
1933
  y: 3,
1565
1934
  width: 12,
@@ -1567,7 +1936,7 @@ function Vt({ collapsed: e }) {
1567
1936
  rx: 2,
1568
1937
  stroke: "currentColor",
1569
1938
  strokeWidth: 1.5
1570
- }), /* @__PURE__ */ A("rect", {
1939
+ }), /* @__PURE__ */ j("rect", {
1571
1940
  x: 4,
1572
1941
  y: 5,
1573
1942
  height: 6,
@@ -1577,25 +1946,39 @@ function Vt({ collapsed: e }) {
1577
1946
  })]
1578
1947
  });
1579
1948
  }
1580
- function Ht({ className: e }) {
1581
- let { collapsed: t, toggle: n } = Z();
1582
- return /* @__PURE__ */ A(K, {
1949
+ function ln({ className: e }) {
1950
+ let { collapsed: t, toggle: n, mobile: r, setMobileOpen: i } = Z();
1951
+ return r && !t ? /* @__PURE__ */ j(K, {
1952
+ variant: "transparent",
1953
+ size: "md",
1954
+ iconLeft: /* @__PURE__ */ j(x, {}),
1955
+ onClick: () => i(!1),
1956
+ className: W("shrink-0", e),
1957
+ "aria-label": "Close menu"
1958
+ }) : r ? /* @__PURE__ */ j(K, {
1583
1959
  variant: "transparent",
1584
1960
  size: "md",
1585
- iconLeft: /* @__PURE__ */ A(Vt, { collapsed: t }),
1961
+ iconLeft: /* @__PURE__ */ j(cn, { collapsed: t }),
1962
+ onClick: () => i(!0),
1963
+ className: W("shrink-0", e),
1964
+ "aria-label": "Open menu"
1965
+ }) : /* @__PURE__ */ j(K, {
1966
+ variant: "transparent",
1967
+ size: "md",
1968
+ iconLeft: /* @__PURE__ */ j(cn, { collapsed: t }),
1586
1969
  onClick: n,
1587
1970
  className: W("shrink-0", e),
1588
1971
  "aria-label": t ? "Expand sidebar" : "Collapse sidebar"
1589
1972
  });
1590
1973
  }
1591
- function Ut({ activeKey: e, direction: t = "forward", className: n, children: r }) {
1592
- return /* @__PURE__ */ A("div", {
1974
+ function un({ activeKey: e, direction: t = "forward", className: n, children: r }) {
1975
+ return /* @__PURE__ */ j("div", {
1593
1976
  className: W("relative min-h-0 flex-1", n),
1594
- children: /* @__PURE__ */ A(N, {
1977
+ children: /* @__PURE__ */ j(P, {
1595
1978
  mode: "popLayout",
1596
1979
  initial: !1,
1597
1980
  custom: t,
1598
- children: /* @__PURE__ */ A(P.div, {
1981
+ children: /* @__PURE__ */ j(F.div, {
1599
1982
  custom: t,
1600
1983
  variants: {
1601
1984
  enter: (e) => ({
@@ -1625,19 +2008,20 @@ function Ut({ activeKey: e, direction: t = "forward", className: n, children: r
1625
2008
  })
1626
2009
  });
1627
2010
  }
1628
- var Wt = Object.assign(Ft, {
1629
- Section: It,
1630
- Header: Rt,
1631
- Label: Lt,
1632
- Link: zt,
1633
- BackLink: Bt,
1634
- CollapseButton: Ht,
1635
- Layers: Ut
2011
+ var dn = Object.assign($t, {
2012
+ Provider: Qt,
2013
+ Section: nn,
2014
+ Header: an,
2015
+ Label: rn,
2016
+ Link: on,
2017
+ BackLink: sn,
2018
+ CollapseButton: ln,
2019
+ Layers: un
1636
2020
  });
1637
2021
  //#endregion
1638
2022
  //#region src/components/select/select.tsx
1639
- function Gt({ value: e, defaultValue: t, onValueChange: n, items: r, disabled: i, children: a, className: o }) {
1640
- return /* @__PURE__ */ A(I.Root, {
2023
+ function fn({ value: e, defaultValue: t, onValueChange: n, items: r, disabled: i, children: a, className: o }) {
2024
+ return /* @__PURE__ */ j(R.Root, {
1641
2025
  value: e,
1642
2026
  defaultValue: t,
1643
2027
  onValueChange: n ? (e) => {
@@ -1645,120 +2029,120 @@ function Gt({ value: e, defaultValue: t, onValueChange: n, items: r, disabled: i
1645
2029
  } : void 0,
1646
2030
  items: r,
1647
2031
  disabled: i,
1648
- children: o ? /* @__PURE__ */ A("div", {
2032
+ children: o ? /* @__PURE__ */ j("div", {
1649
2033
  className: o,
1650
2034
  children: a
1651
2035
  }) : a
1652
2036
  });
1653
2037
  }
1654
- var Kt = C(function({ children: e, className: t }, n) {
1655
- return /* @__PURE__ */ A(I.Trigger, {
2038
+ var pn = C(function({ children: e, className: t }, n) {
2039
+ return /* @__PURE__ */ j(R.Trigger, {
1656
2040
  ref: n,
1657
2041
  className: W("cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2 rounded", t),
1658
2042
  children: e
1659
2043
  });
1660
- }), qt = C(function({ placeholder: e, size: t, className: n }, r) {
1661
- return /* @__PURE__ */ A(I.Trigger, {
2044
+ }), mn = C(function({ placeholder: e, size: t, className: n }, r) {
2045
+ return /* @__PURE__ */ j(R.Trigger, {
1662
2046
  ref: r,
1663
- render: /* @__PURE__ */ A(K, {
2047
+ render: /* @__PURE__ */ j(K, {
1664
2048
  variant: "outline",
1665
2049
  size: t,
1666
- iconRight: /* @__PURE__ */ A(u, {}),
2050
+ iconRight: /* @__PURE__ */ j(u, {}),
1667
2051
  className: n,
1668
- children: /* @__PURE__ */ A(I.Value, { placeholder: e })
2052
+ children: /* @__PURE__ */ j(R.Value, { placeholder: e })
1669
2053
  })
1670
2054
  });
1671
2055
  });
1672
- function Jt({ align: e = "start", side: t = "bottom", sideOffset: n = 4, minWidth: r = "min-w-[220px]", children: i, className: a }) {
1673
- return /* @__PURE__ */ A(I.Portal, { children: /* @__PURE__ */ A(I.Positioner, {
2056
+ function hn({ align: e = "start", side: t = "bottom", sideOffset: n = 4, minWidth: r = "min-w-[220px]", children: i, className: a }) {
2057
+ return /* @__PURE__ */ j(R.Portal, { children: /* @__PURE__ */ j(R.Positioner, {
1674
2058
  align: e,
1675
2059
  side: t,
1676
2060
  sideOffset: n,
1677
2061
  alignItemWithTrigger: !1,
1678
- render: /* @__PURE__ */ A(q.Positioner, {}),
1679
- children: /* @__PURE__ */ A(I.Popup, {
1680
- render: /* @__PURE__ */ A(q.Panel, {
2062
+ render: /* @__PURE__ */ j(q.Positioner, {}),
2063
+ children: /* @__PURE__ */ j(R.Popup, {
2064
+ render: /* @__PURE__ */ j(q.Panel, {
1681
2065
  minWidth: r,
1682
2066
  className: a
1683
2067
  }),
1684
- children: /* @__PURE__ */ A(I.List, {
1685
- render: /* @__PURE__ */ A(q.List, {}),
2068
+ children: /* @__PURE__ */ j(R.List, {
2069
+ render: /* @__PURE__ */ j(q.List, {}),
1686
2070
  children: i
1687
2071
  })
1688
2072
  })
1689
2073
  }) });
1690
2074
  }
1691
- var Yt = C(function({ value: e, icon: t, children: n, className: r }, i) {
1692
- return /* @__PURE__ */ j(I.Item, {
2075
+ var gn = C(function({ value: e, icon: t, children: n, className: r }, i) {
2076
+ return /* @__PURE__ */ M(R.Item, {
1693
2077
  ref: i,
1694
2078
  value: e,
1695
- render: /* @__PURE__ */ A(q.Item, {
2079
+ render: /* @__PURE__ */ j(q.Item, {
1696
2080
  icon: t,
1697
2081
  className: r
1698
2082
  }),
1699
- children: [/* @__PURE__ */ A(I.ItemText, {
2083
+ children: [/* @__PURE__ */ j(R.ItemText, {
1700
2084
  className: "relative z-[1] flex-1",
1701
2085
  children: n
1702
- }), /* @__PURE__ */ A(I.ItemIndicator, { render: /* @__PURE__ */ A(q.ItemIndicator, {}) })]
2086
+ }), /* @__PURE__ */ j(R.ItemIndicator, { render: /* @__PURE__ */ j(q.ItemIndicator, {}) })]
1703
2087
  });
1704
- }), Xt = C(function({ className: e }, t) {
1705
- return /* @__PURE__ */ A(I.Separator, {
2088
+ }), _n = C(function({ className: e }, t) {
2089
+ return /* @__PURE__ */ j(R.Separator, {
1706
2090
  ref: t,
1707
- render: /* @__PURE__ */ A(q.Separator, { className: e })
2091
+ render: /* @__PURE__ */ j(q.Separator, { className: e })
1708
2092
  });
1709
- }), Zt = C(function({ className: e, children: t }, n) {
1710
- return /* @__PURE__ */ A(I.Group, {
2093
+ }), vn = C(function({ className: e, children: t }, n) {
2094
+ return /* @__PURE__ */ j(R.Group, {
1711
2095
  ref: n,
1712
2096
  className: W("flex flex-col", e),
1713
2097
  children: t
1714
2098
  });
1715
- }), Qt = C(function({ className: e, children: t }, n) {
1716
- return /* @__PURE__ */ A(I.GroupLabel, {
2099
+ }), yn = C(function({ className: e, children: t }, n) {
2100
+ return /* @__PURE__ */ j(R.GroupLabel, {
1717
2101
  ref: n,
1718
- render: /* @__PURE__ */ A(q.GroupLabel, { className: e }),
2102
+ render: /* @__PURE__ */ j(q.GroupLabel, { className: e }),
1719
2103
  children: t
1720
2104
  });
1721
- }), $t = C(function({ orientation: e = "horizontal", className: t, ...n }, r) {
1722
- return /* @__PURE__ */ A(ae, {
2105
+ }), bn = C(function({ orientation: e = "horizontal", className: t, ...n }, r) {
2106
+ return /* @__PURE__ */ j(ae, {
1723
2107
  ref: r,
1724
2108
  orientation: e,
1725
2109
  className: W(e === "horizontal" ? "w-full border-t border-cui-neutral" : "self-stretch border-l border-cui-neutral", "shrink-0", t),
1726
2110
  ...n
1727
2111
  });
1728
- }), en = {
2112
+ }), xn = {
1729
2113
  neutral: "bg-cui-subtle text-cui-secondary",
1730
2114
  accent: "bg-cui-accent-subtle text-cui-accent",
1731
2115
  danger: "bg-cui-danger-subtle text-cui-danger",
1732
2116
  warn: "bg-cui-warn-subtle text-cui-warn",
1733
2117
  success: "bg-cui-success-subtle text-cui-success"
1734
- }, tn = {
2118
+ }, Sn = {
1735
2119
  sm: "px-1.5 py-0.5 text-cui-sm",
1736
2120
  md: "px-2 py-0.5 text-cui-base"
1737
- }, nn = C(function({ variant: e = "neutral", size: t = "sm", className: n, children: r, ...i }, a) {
1738
- return /* @__PURE__ */ A("span", {
2121
+ }, Cn = C(function({ variant: e = "neutral", size: t = "sm", className: n, children: r, ...i }, a) {
2122
+ return /* @__PURE__ */ j("span", {
1739
2123
  ref: a,
1740
- className: W("inline-flex items-center rounded-md font-medium leading-tight", tn[t], en[e], n),
2124
+ className: W("inline-flex items-center rounded-md font-medium leading-tight", Sn[t], xn[e], n),
1741
2125
  ...i,
1742
2126
  children: r
1743
2127
  });
1744
- }), rn = C(function({ className: e, ...t }, n) {
1745
- return /* @__PURE__ */ A(L.Root, {
2128
+ }), wn = C(function({ className: e, ...t }, n) {
2129
+ return /* @__PURE__ */ j(oe.Root, {
1746
2130
  ref: n,
1747
2131
  className: W("flex flex-col gap-1.5", e),
1748
2132
  ...t
1749
2133
  });
1750
- }), an = C(function({ required: e, className: t, children: n, ...r }, i) {
1751
- return /* @__PURE__ */ j(L.Label, {
2134
+ }), Tn = C(function({ required: e, className: t, children: n, ...r }, i) {
2135
+ return /* @__PURE__ */ M(oe.Label, {
1752
2136
  ref: i,
1753
2137
  className: W("text-cui-base font-medium text-cui-primary", "data-[disabled]:text-cui-tertiary data-[disabled]:cursor-not-allowed", t),
1754
2138
  ...r,
1755
- children: [n, e && /* @__PURE__ */ A("span", {
2139
+ children: [n, e && /* @__PURE__ */ j("span", {
1756
2140
  className: "text-cui-danger ml-0.5",
1757
2141
  "aria-hidden": "true",
1758
2142
  children: "*"
1759
2143
  })]
1760
2144
  });
1761
- }), on = [
2145
+ }), En = [
1762
2146
  "w-full rounded-md border border-cui-neutral bg-cui-base-2 px-3 py-1.5 text-cui-base text-cui-primary",
1763
2147
  "outline-none",
1764
2148
  "placeholder:text-cui-tertiary",
@@ -1768,7 +2152,7 @@ var Yt = C(function({ value: e, icon: t, children: n, className: r }, i) {
1768
2152
  "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
1769
2153
  "data-[invalid]:border-cui-danger data-[invalid]:focus:ring-cui-danger/30",
1770
2154
  "data-[valid]:border-cui-success"
1771
- ], sn = [
2155
+ ], Dn = [
1772
2156
  "rounded-md border border-cui-neutral bg-cui-base-2 py-1.5 text-cui-base",
1773
2157
  "ring-cui-neutral ring-0 transition-[box-shadow,color,border-color] duration-150 ease-out",
1774
2158
  "has-[:focus]:ring-2 has-[:focus]:border-cui-neutral-strong",
@@ -1776,43 +2160,43 @@ var Yt = C(function({ value: e, icon: t, children: n, className: r }, i) {
1776
2160
  "has-[*[data-disabled]]:cursor-not-allowed has-[*[data-disabled]]:opacity-50",
1777
2161
  "has-[*[data-invalid]]:border-cui-danger has-[*[data-invalid]:focus]:ring-cui-danger/30",
1778
2162
  "has-[*[data-valid]]:border-cui-success"
1779
- ], cn = {
1780
- Field: rn,
1781
- Label: an,
2163
+ ], On = {
2164
+ Field: wn,
2165
+ Label: Tn,
1782
2166
  Input: C(function({ iconLeft: e, iconRight: t, wrapperClassName: n, className: r, ...i }, a) {
1783
- return e || t ? /* @__PURE__ */ j("div", {
1784
- className: W("flex items-center gap-2 px-2.5", sn, n),
2167
+ return e || t ? /* @__PURE__ */ M("div", {
2168
+ className: W("flex items-center gap-2 px-2.5", Dn, n),
1785
2169
  children: [
1786
- e && /* @__PURE__ */ A("span", {
2170
+ e && /* @__PURE__ */ j("span", {
1787
2171
  className: "text-cui-tertiary flex size-5 shrink-0 items-center justify-center [&>svg]:size-4",
1788
2172
  children: e
1789
2173
  }),
1790
- /* @__PURE__ */ A(L.Control, {
2174
+ /* @__PURE__ */ j(oe.Control, {
1791
2175
  ref: a,
1792
2176
  className: W("flex-1 min-w-0 h-full bg-transparent text-cui-base text-cui-primary outline-none placeholder:text-cui-tertiary", r),
1793
2177
  ...i
1794
2178
  }),
1795
- t && /* @__PURE__ */ A("span", {
2179
+ t && /* @__PURE__ */ j("span", {
1796
2180
  className: "text-cui-tertiary flex size-5 shrink-0 items-center justify-center [&>svg]:size-4",
1797
2181
  children: t
1798
2182
  })
1799
2183
  ]
1800
- }) : /* @__PURE__ */ A(L.Control, {
2184
+ }) : /* @__PURE__ */ j(oe.Control, {
1801
2185
  ref: a,
1802
- className: W(on, r),
2186
+ className: W(En, r),
1803
2187
  ...i
1804
2188
  });
1805
2189
  }),
1806
2190
  Textarea: C(function({ className: e, ...t }, n) {
1807
- return /* @__PURE__ */ A(L.Control, {
2191
+ return /* @__PURE__ */ j(oe.Control, {
1808
2192
  ref: n,
1809
- render: /* @__PURE__ */ A("textarea", {}),
1810
- className: W(on, "min-h-20 resize-y", e),
2193
+ render: /* @__PURE__ */ j("textarea", {}),
2194
+ className: W(En, "min-h-20 resize-y", e),
1811
2195
  ...t
1812
2196
  });
1813
2197
  }),
1814
2198
  Hint: C(function({ className: e, ...t }, n) {
1815
- return /* @__PURE__ */ A(L.Description, {
2199
+ return /* @__PURE__ */ j(oe.Description, {
1816
2200
  ref: n,
1817
2201
  className: W("text-cui-sm text-cui-tertiary data-[invalid]:text-cui-danger", e),
1818
2202
  ...t
@@ -1820,120 +2204,9 @@ var Yt = C(function({ value: e, icon: t, children: n, className: r }, i) {
1820
2204
  })
1821
2205
  };
1822
2206
  //#endregion
1823
- //#region src/components/flickering-grid/flickering-grid.tsx
1824
- function ln(e, t) {
1825
- let n = e.style.color;
1826
- e.style.color = t;
1827
- let r = getComputedStyle(e).color;
1828
- return e.style.color = n, r || "#000";
1829
- }
1830
- function un({ squareSize: e = 6, gridGap: t = 0, flickerChance: n = .3, color: r = "currentColor", maxOpacity: i = .3, sweep: a = !1, sweepDirection: o = "left", sweepDuration: s = 2.5, sweepWidth: c = .15, sweepOnly: l = !1, sweepNoise: u = .12, className: d }) {
1831
- let f = D(null), p = D(null);
1832
- return te(() => {
1833
- let d = f.current, m = p.current;
1834
- if (!d || !m) return;
1835
- let h = m.getContext("2d");
1836
- if (!h) return;
1837
- let g = ln(d, r), _ = 0, v = 0, y = new Float32Array(), b = new Float32Array(), x = 1, S = 0, C = 0, w = performance.now();
1838
- function ee() {
1839
- if (!m || !d) return;
1840
- x = window.devicePixelRatio || 1, S = d.clientWidth, C = d.clientHeight, m.width = S * x, m.height = C * x, m.style.width = `${S}px`, m.style.height = `${C}px`;
1841
- let n = e + t;
1842
- _ = Math.max(1, Math.floor((S + t) / n)), v = Math.max(1, Math.floor((C + t) / n)), y = new Float32Array(_ * v), b = new Float32Array(_ * v);
1843
- for (let e = 0; e < y.length; e++) y[e] = Math.random() * i, b[e] = (Math.random() - .5) * 2 * u;
1844
- }
1845
- function te(e) {
1846
- if (!l) for (let t = 0; t < y.length; t++) Math.random() < n * e && (y[t] = Math.random() * i);
1847
- }
1848
- function T(n) {
1849
- if (!h || !m) return;
1850
- h.clearRect(0, 0, m.width, m.height), h.fillStyle = g;
1851
- let r = e + t, u = 0;
1852
- if (a) {
1853
- let e = (n - w) / 1e3 / s % 1;
1854
- u = o === "left" ? 1 - e : e, u = u * (1 + c * 2) - c;
1855
- }
1856
- for (let t = 0; t < _; t++) for (let n = 0; n < v; n++) {
1857
- let o = t * v + n, s;
1858
- if (l && a) {
1859
- let e = (_ > 1 ? t / (_ - 1) : 0) + (b[o] ?? 0), n = Math.abs(e - u), r = Math.max(0, 1 - n / c);
1860
- s = r * r * (3 - 2 * r) * i;
1861
- } else if (s = y[o] ?? 0, a) {
1862
- let e = _ > 1 ? t / (_ - 1) : 0, n = Math.abs(e - u), r = Math.max(0, 1 - n / c), a = r * r * (3 - 2 * r);
1863
- s = Math.min(i * 1.5, s + a * i);
1864
- }
1865
- s < .01 || (h.globalAlpha = s, h.fillRect(t * r * x, n * r * x, e * x, e * x));
1866
- }
1867
- h.globalAlpha = 1;
1868
- }
1869
- ee();
1870
- let E = 0, D = performance.now(), O = !0;
1871
- function k(e) {
1872
- if (!O) return;
1873
- let t = (e - D) / 1e3;
1874
- D = e, te(t), T(e), E = requestAnimationFrame(k);
1875
- }
1876
- let A = new ResizeObserver(() => {
1877
- ee();
1878
- });
1879
- A.observe(d);
1880
- let j = new IntersectionObserver(([e]) => {
1881
- O = e?.isIntersecting ?? !1, O ? (D = performance.now(), E = requestAnimationFrame(k)) : cancelAnimationFrame(E);
1882
- }, { threshold: 0 });
1883
- j.observe(m);
1884
- let M = new MutationObserver(() => {
1885
- g = ln(d, r);
1886
- });
1887
- return M.observe(document.documentElement, {
1888
- attributes: !0,
1889
- attributeFilter: ["data-theme", "class"]
1890
- }), () => {
1891
- cancelAnimationFrame(E), A.disconnect(), j.disconnect(), M.disconnect();
1892
- };
1893
- }, [
1894
- e,
1895
- t,
1896
- n,
1897
- r,
1898
- i,
1899
- a,
1900
- o,
1901
- s,
1902
- c,
1903
- l,
1904
- u
1905
- ]), /* @__PURE__ */ A("div", {
1906
- ref: f,
1907
- className: W("pointer-events-none size-full", d),
1908
- "aria-hidden": "true",
1909
- children: /* @__PURE__ */ A("canvas", { ref: p })
1910
- });
1911
- }
1912
- //#endregion
1913
- //#region src/components/skeleton/skeleton.tsx
1914
- var dn = C(function({ circular: e, className: t }, n) {
1915
- return /* @__PURE__ */ A("div", {
1916
- ref: n,
1917
- className: W("relative overflow-hidden bg-cui-subtle", e ? "rounded-full" : "rounded-xs", t),
1918
- "aria-hidden": "true",
1919
- children: /* @__PURE__ */ A(un, {
1920
- squareSize: 4,
1921
- gridGap: 2,
1922
- color: "var(--text-color-cui-secondary)",
1923
- maxOpacity: .05,
1924
- sweep: !0,
1925
- sweepOnly: !0,
1926
- sweepDirection: "right",
1927
- sweepDuration: 1.5,
1928
- sweepWidth: .4,
1929
- sweepNoise: .1
1930
- })
1931
- });
1932
- });
1933
- //#endregion
1934
2207
  //#region src/components/dropdown-menu/dropdown-menu.tsx
1935
- function fn({ open: e, defaultOpen: t, onOpenChange: n, modal: r = !0, children: i }) {
1936
- return /* @__PURE__ */ A(R.Root, {
2208
+ function kn({ open: e, defaultOpen: t, onOpenChange: n, modal: r = !0, children: i }) {
2209
+ return /* @__PURE__ */ j(z.Root, {
1937
2210
  open: e,
1938
2211
  defaultOpen: t,
1939
2212
  onOpenChange: n ? (e) => n(e) : void 0,
@@ -1941,21 +2214,21 @@ function fn({ open: e, defaultOpen: t, onOpenChange: n, modal: r = !0, children:
1941
2214
  children: i
1942
2215
  });
1943
2216
  }
1944
- var pn = C(function({ className: e, ...t }, n) {
1945
- return /* @__PURE__ */ A(R.Trigger, {
2217
+ var An = C(function({ className: e, ...t }, n) {
2218
+ return /* @__PURE__ */ j(z.Trigger, {
1946
2219
  ref: n,
1947
2220
  className: W("cursor-pointer outline-none", e),
1948
2221
  ...t
1949
2222
  });
1950
2223
  });
1951
- function mn({ side: e = "bottom", align: t = "end", sideOffset: n = 4, minWidth: r = "min-w-[180px]", className: i, children: a }) {
1952
- return /* @__PURE__ */ A(R.Portal, { children: /* @__PURE__ */ A(R.Positioner, {
2224
+ function jn({ side: e = "bottom", align: t = "end", sideOffset: n = 4, minWidth: r = "min-w-[180px]", className: i, children: a }) {
2225
+ return /* @__PURE__ */ j(z.Portal, { children: /* @__PURE__ */ j(z.Positioner, {
1953
2226
  side: e,
1954
2227
  align: t,
1955
2228
  sideOffset: n,
1956
- render: /* @__PURE__ */ A(q.Positioner, {}),
1957
- children: /* @__PURE__ */ A(R.Popup, {
1958
- render: /* @__PURE__ */ A(q.Panel, {
2229
+ render: /* @__PURE__ */ j(q.Positioner, {}),
2230
+ children: /* @__PURE__ */ j(z.Popup, {
2231
+ render: /* @__PURE__ */ j(q.Panel, {
1959
2232
  minWidth: r,
1960
2233
  className: i
1961
2234
  }),
@@ -1964,41 +2237,41 @@ function mn({ side: e = "bottom", align: t = "end", sideOffset: n = 4, minWidth:
1964
2237
  }) });
1965
2238
  }
1966
2239
  var Q = {
1967
- Root: fn,
1968
- Trigger: pn,
1969
- Content: mn,
2240
+ Root: kn,
2241
+ Trigger: An,
2242
+ Content: jn,
1970
2243
  Item: C(function({ variant: e = "default", icon: t, onClick: n, closeOnClick: r, disabled: i, className: a, children: o }, s) {
1971
- return /* @__PURE__ */ A(R.Item, {
2244
+ return /* @__PURE__ */ j(z.Item, {
1972
2245
  ref: s,
1973
2246
  onClick: n,
1974
2247
  closeOnClick: r,
1975
2248
  disabled: i,
1976
- render: /* @__PURE__ */ A(q.Item, {
2249
+ render: /* @__PURE__ */ j(q.Item, {
1977
2250
  icon: t,
1978
2251
  variant: e,
1979
2252
  className: a
1980
2253
  }),
1981
- children: /* @__PURE__ */ A("span", {
2254
+ children: /* @__PURE__ */ j("span", {
1982
2255
  className: "relative z-[1] flex-1",
1983
2256
  children: o
1984
2257
  })
1985
2258
  });
1986
2259
  }),
1987
2260
  Separator: C(function({ className: e }, t) {
1988
- return /* @__PURE__ */ A(R.Separator, {
2261
+ return /* @__PURE__ */ j(z.Separator, {
1989
2262
  ref: t,
1990
- render: /* @__PURE__ */ A(q.Separator, { className: e })
2263
+ render: /* @__PURE__ */ j(q.Separator, { className: e })
1991
2264
  });
1992
2265
  }),
1993
2266
  Label: C(function({ className: e, children: t }, n) {
1994
- return /* @__PURE__ */ A(R.GroupLabel, {
2267
+ return /* @__PURE__ */ j(z.GroupLabel, {
1995
2268
  ref: n,
1996
- render: /* @__PURE__ */ A(q.GroupLabel, { className: e }),
2269
+ render: /* @__PURE__ */ j(q.GroupLabel, { className: e }),
1997
2270
  children: t
1998
2271
  });
1999
2272
  }),
2000
2273
  Group: C(function({ className: e, children: t }, n) {
2001
- return /* @__PURE__ */ A(R.Group, {
2274
+ return /* @__PURE__ */ j(z.Group, {
2002
2275
  ref: n,
2003
2276
  className: W("flex flex-col", e),
2004
2277
  children: t
@@ -2007,111 +2280,111 @@ var Q = {
2007
2280
  };
2008
2281
  //#endregion
2009
2282
  //#region src/components/dialog/dialog.tsx
2010
- function hn({ ...e }) {
2011
- return /* @__PURE__ */ A(z.Root, { ...e });
2283
+ function Mn({ ...e }) {
2284
+ return /* @__PURE__ */ j(B.Root, { ...e });
2012
2285
  }
2013
- var gn = C(function({ className: e, ...t }, n) {
2014
- return /* @__PURE__ */ A(z.Trigger, {
2286
+ var Nn = C(function({ className: e, ...t }, n) {
2287
+ return /* @__PURE__ */ j(B.Trigger, {
2015
2288
  ref: n,
2016
2289
  className: W(e),
2017
2290
  ...t
2018
2291
  });
2019
- }), _n = C(function({ className: e, ...t }, n) {
2020
- return /* @__PURE__ */ A(z.Backdrop, {
2292
+ }), Pn = C(function({ className: e, ...t }, n) {
2293
+ return /* @__PURE__ */ j(B.Backdrop, {
2021
2294
  ref: n,
2022
2295
  className: W("fixed inset-0 z-40 bg-cui-overlay backdrop-blur-[2px]", "transition-opacity duration-150", "data-[starting-style]:opacity-0", "data-[ending-style]:opacity-0", "motion-reduce:transition-none", e),
2023
2296
  ...t
2024
2297
  });
2025
- }), vn = {
2298
+ }), Fn = {
2026
2299
  md: "max-w-[450px]",
2027
2300
  lg: "max-w-[550px]"
2028
2301
  };
2029
- function yn({ size: e = "md", className: t, children: n, ...r }) {
2030
- return /* @__PURE__ */ j(z.Portal, { children: [/* @__PURE__ */ A(_n, {}), /* @__PURE__ */ A(z.Popup, {
2031
- className: W("bg-cui-base-1 fixed top-1/2 left-1/2 z-50 max-h-[85vh] w-[90vw] -translate-x-1/2 -translate-y-1/2 rounded-lg p-0.5 shadow-xl", "transition-[opacity,scale] duration-150 ease-out", "data-[starting-style]:opacity-0 data-[starting-style]:scale-[0.96]", "data-[ending-style]:opacity-0 data-[ending-style]:scale-[0.98]", "motion-reduce:transition-none", "focus:outline-none", vn[e], t),
2302
+ function In({ size: e = "md", className: t, children: n, ...r }) {
2303
+ return /* @__PURE__ */ M(B.Portal, { children: [/* @__PURE__ */ j(Pn, {}), /* @__PURE__ */ j(B.Popup, {
2304
+ className: W("bg-cui-base-1 fixed top-1/2 left-1/2 z-50 max-h-[85vh] w-[90vw] -translate-x-1/2 -translate-y-1/2 rounded-lg p-0.5 shadow-xl", "transition-[opacity,scale] duration-150 ease-out", "data-[starting-style]:opacity-0 data-[starting-style]:scale-[0.96]", "data-[ending-style]:opacity-0 data-[ending-style]:scale-[0.98]", "motion-reduce:transition-none", "focus:outline-none", Fn[e], t),
2032
2305
  ...r,
2033
2306
  children: n
2034
2307
  })] });
2035
2308
  }
2036
- var bn = C(function({ className: e, children: t }, n) {
2037
- return /* @__PURE__ */ A("div", {
2309
+ var Ln = C(function({ className: e, children: t }, n) {
2310
+ return /* @__PURE__ */ j("div", {
2038
2311
  ref: n,
2039
2312
  className: W("bg-cui-base-2 border-cui-neutral rounded-md border", e),
2040
2313
  children: t
2041
2314
  });
2042
- }), xn = C(function({ className: e, ...t }, n) {
2043
- return /* @__PURE__ */ A(z.Title, {
2315
+ }), Rn = C(function({ className: e, ...t }, n) {
2316
+ return /* @__PURE__ */ j(B.Title, {
2044
2317
  ref: n,
2045
2318
  className: W("text-cui-primary border-cui-neutral border-b px-4 py-3 text-cui-base font-medium", e),
2046
2319
  ...t
2047
2320
  });
2048
- }), Sn = C(function({ className: e, children: t }, n) {
2049
- return /* @__PURE__ */ A("div", {
2321
+ }), zn = C(function({ className: e, children: t }, n) {
2322
+ return /* @__PURE__ */ j("div", {
2050
2323
  ref: n,
2051
2324
  className: W("p-4", e),
2052
2325
  children: t
2053
2326
  });
2054
- }), Cn = C(function({ className: e, children: t }, n) {
2055
- return /* @__PURE__ */ A("div", {
2327
+ }), Bn = C(function({ className: e, children: t }, n) {
2328
+ return /* @__PURE__ */ j("div", {
2056
2329
  ref: n,
2057
2330
  className: W("flex items-center justify-between p-2", e),
2058
2331
  children: t
2059
2332
  });
2060
- }), wn = C(function({ className: e, ...t }, n) {
2061
- return /* @__PURE__ */ A(z.Close, {
2333
+ }), Vn = C(function({ className: e, ...t }, n) {
2334
+ return /* @__PURE__ */ j(B.Close, {
2062
2335
  ref: n,
2063
2336
  className: W(e),
2064
2337
  ...t
2065
2338
  });
2066
- }), Tn = {
2067
- Root: hn,
2068
- Trigger: gn,
2069
- Content: yn,
2070
- Panel: bn,
2071
- Title: xn,
2072
- Description: z.Description,
2073
- Body: Sn,
2074
- Footer: Cn,
2075
- Close: wn
2339
+ }), Hn = {
2340
+ Root: Mn,
2341
+ Trigger: Nn,
2342
+ Content: In,
2343
+ Panel: Ln,
2344
+ Title: Rn,
2345
+ Description: B.Description,
2346
+ Body: zn,
2347
+ Footer: Bn,
2348
+ Close: Vn
2076
2349
  }, $ = C(function({ className: e, children: t }, n) {
2077
- return /* @__PURE__ */ A("div", {
2350
+ return /* @__PURE__ */ j("div", {
2078
2351
  ref: n,
2079
2352
  className: W("overflow-hidden rounded ring-1 ring-cui-neutral", e),
2080
- children: /* @__PURE__ */ A("table", {
2353
+ children: /* @__PURE__ */ j("table", {
2081
2354
  className: "w-full table-fixed border-separate border-spacing-0",
2082
2355
  children: t
2083
2356
  })
2084
2357
  });
2085
- }), En = C(function({ className: e, children: t }, n) {
2086
- return /* @__PURE__ */ A("thead", {
2358
+ }), Un = C(function({ className: e, children: t }, n) {
2359
+ return /* @__PURE__ */ j("thead", {
2087
2360
  ref: n,
2088
2361
  className: W("[&>tr]:text-cui-sm [&>tr]:font-medium [&>tr]:text-cui-secondary", e),
2089
2362
  children: t
2090
2363
  });
2091
- }), Dn = C(function({ className: e, children: t }, n) {
2092
- return /* @__PURE__ */ A("tbody", {
2364
+ }), Wn = C(function({ className: e, children: t }, n) {
2365
+ return /* @__PURE__ */ j("tbody", {
2093
2366
  ref: n,
2094
2367
  className: W("[&>tr:not(:last-child)>td]:border-b [&>tr:not(:last-child)>td]:border-cui-neutral", e),
2095
2368
  children: t
2096
2369
  });
2097
- }), On = C(function({ className: e, children: t, onClick: n, ...r }, i) {
2098
- return /* @__PURE__ */ A("tr", {
2370
+ }), Gn = C(function({ className: e, children: t, onClick: n, ...r }, i) {
2371
+ return /* @__PURE__ */ j("tr", {
2099
2372
  ref: i,
2100
2373
  className: W("bg-cui-base-1 hover:bg-cui-subtle", "transition-colors duration-100 ease-out motion-reduce:transition-none", n && "cursor-pointer", e),
2101
2374
  onClick: n,
2102
2375
  ...r,
2103
2376
  children: t
2104
2377
  });
2105
- }), kn = C(function({ width: e, colSpan: t, className: n, children: r }, i) {
2106
- return /* @__PURE__ */ A("th", {
2378
+ }), Kn = C(function({ width: e, colSpan: t, className: n, children: r }, i) {
2379
+ return /* @__PURE__ */ j("th", {
2107
2380
  ref: i,
2108
2381
  style: e == null ? void 0 : { width: e },
2109
2382
  colSpan: t,
2110
2383
  className: W("px-4 py-2.5 text-left text-cui-sm font-medium border-b border-cui-neutral", n),
2111
2384
  children: r
2112
2385
  });
2113
- }), An = C(function({ width: e, colSpan: t, className: n, children: r }, i) {
2114
- return /* @__PURE__ */ A("td", {
2386
+ }), qn = C(function({ width: e, colSpan: t, className: n, children: r }, i) {
2387
+ return /* @__PURE__ */ j("td", {
2115
2388
  ref: i,
2116
2389
  style: e == null ? void 0 : { width: e },
2117
2390
  colSpan: t,
@@ -2119,22 +2392,22 @@ var bn = C(function({ className: e, children: t }, n) {
2119
2392
  children: r
2120
2393
  });
2121
2394
  });
2122
- function jn({ columns: e, rows: t = 5, className: n }) {
2123
- return /* @__PURE__ */ A("tbody", {
2395
+ function Jn({ columns: e, rows: t = 5, className: n }) {
2396
+ return /* @__PURE__ */ j("tbody", {
2124
2397
  className: n,
2125
- children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ A("tr", {
2398
+ children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ j("tr", {
2126
2399
  className: "bg-cui-base-1",
2127
- children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ A("td", {
2400
+ children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ j("td", {
2128
2401
  className: "px-4 py-3",
2129
- children: /* @__PURE__ */ A(dn, { className: "h-4 w-full" })
2402
+ children: /* @__PURE__ */ j(Rt, { className: "h-4 w-full" })
2130
2403
  }, `skel-cell-${String(n)}-${String(t)}`))
2131
2404
  }, `skel-row-${String(n)}`))
2132
2405
  });
2133
2406
  }
2134
- $.Header = En, $.Body = Dn, $.Row = On, $.HeaderCell = kn, $.Cell = An, $.Skeleton = jn;
2407
+ $.Header = Un, $.Body = Wn, $.Row = Gn, $.HeaderCell = Kn, $.Cell = qn, $.Skeleton = Jn;
2135
2408
  //#endregion
2136
2409
  //#region src/components/pagination/pagination.tsx
2137
- var Mn = {
2410
+ var Yn = {
2138
2411
  sm: {
2139
2412
  button: "size-7",
2140
2413
  icon: "size-4",
@@ -2146,32 +2419,32 @@ var Mn = {
2146
2419
  strip: "h-10"
2147
2420
  }
2148
2421
  };
2149
- function Nn(e, t) {
2422
+ function Xn(e, t) {
2150
2423
  let n = [];
2151
2424
  for (let r = e; r <= t; r++) n.push(r);
2152
2425
  return n;
2153
2426
  }
2154
- function Pn(e, t, n) {
2155
- if (t <= n * 2 + 5) return Nn(1, t);
2427
+ function Zn(e, t, n) {
2428
+ if (t <= n * 2 + 5) return Xn(1, t);
2156
2429
  let r = Math.max(e - n, 1), i = Math.min(e + n, t), a = r > 2, o = i < t - 1;
2157
2430
  return !a && o ? [
2158
- ...Nn(1, n * 2 + 3),
2431
+ ...Xn(1, n * 2 + 3),
2159
2432
  "ellipsis-end",
2160
2433
  t
2161
2434
  ] : a && !o ? [
2162
2435
  1,
2163
2436
  "ellipsis-start",
2164
- ...Nn(t - (n * 2 + 3) + 1, t)
2437
+ ...Xn(t - (n * 2 + 3) + 1, t)
2165
2438
  ] : [
2166
2439
  1,
2167
2440
  "ellipsis-start",
2168
- ...Nn(r, i),
2441
+ ...Xn(r, i),
2169
2442
  "ellipsis-end",
2170
2443
  t
2171
2444
  ];
2172
2445
  }
2173
- function Fn({ page: e, active: t, onClick: n, buttonSize: r }) {
2174
- return /* @__PURE__ */ A("button", {
2446
+ function Qn({ page: e, active: t, onClick: n, buttonSize: r }) {
2447
+ return /* @__PURE__ */ j("button", {
2175
2448
  type: "button",
2176
2449
  "aria-current": t ? "page" : void 0,
2177
2450
  onClick: n,
@@ -2179,73 +2452,73 @@ function Fn({ page: e, active: t, onClick: n, buttonSize: r }) {
2179
2452
  children: e
2180
2453
  });
2181
2454
  }
2182
- function In({ buttonSize: e }) {
2183
- return /* @__PURE__ */ A("span", {
2455
+ function $n({ buttonSize: e }) {
2456
+ return /* @__PURE__ */ j("span", {
2184
2457
  className: W("text-cui-tertiary flex items-center justify-center text-cui-base select-none", e),
2185
2458
  children: "..."
2186
2459
  });
2187
2460
  }
2188
- function Ln({ direction: e, disabled: t, onClick: n, buttonSize: r, iconSize: i }) {
2461
+ function er({ direction: e, disabled: t, onClick: n, buttonSize: r, iconSize: i }) {
2189
2462
  let a = e === "prev" ? c : l;
2190
- return /* @__PURE__ */ A("button", {
2463
+ return /* @__PURE__ */ j("button", {
2191
2464
  type: "button",
2192
2465
  "aria-label": e === "prev" ? "Previous page" : "Next page",
2193
2466
  disabled: t,
2194
2467
  onClick: n,
2195
2468
  className: W("rounded-sm flex items-center justify-center cursor-pointer select-none", r, "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus", "transition-colors duration-150 motion-reduce:transition-none", t ? "text-cui-tertiary pointer-events-none" : "text-cui-secondary hover:text-cui-primary hover:bg-cui-subtle"),
2196
- children: /* @__PURE__ */ A(a, { className: i })
2469
+ children: /* @__PURE__ */ j(a, { className: i })
2197
2470
  });
2198
2471
  }
2199
- var Rn = C(function({ page: e, pageCount: t, onPageChange: n, totalItems: r, rowsPerPage: i = 10, onRowsPerPageChange: a, rowOptions: o = [
2472
+ var tr = C(function({ page: e, pageCount: t, onPageChange: n, totalItems: r, rowsPerPage: i = 10, onRowsPerPageChange: a, rowOptions: o = [
2200
2473
  10,
2201
2474
  25,
2202
2475
  50
2203
2476
  ], siblingCount: s = 1, size: c = "sm", className: l }, d) {
2204
- let f = Mn[c], p = a !== void 0, m = r !== void 0, h = t > 1, g = (e - 1) * i + 1, _ = r ? Math.min(e * i, r) : e * i;
2477
+ let f = Yn[c], p = a !== void 0, m = r !== void 0, h = t > 1, g = (e - 1) * i + 1, _ = r ? Math.min(e * i, r) : e * i;
2205
2478
  if (!h && !p && !m) return null;
2206
- let v = h ? Pn(e, t, s) : [];
2207
- return /* @__PURE__ */ j("nav", {
2479
+ let v = h ? Zn(e, t, s) : [];
2480
+ return /* @__PURE__ */ M("nav", {
2208
2481
  ref: d,
2209
2482
  "aria-label": "Pagination",
2210
2483
  className: W("flex items-center bg-cui-subtle rounded-md ring-1 ring-cui-neutral", l),
2211
2484
  children: [
2212
- p && /* @__PURE__ */ j("div", {
2485
+ p && /* @__PURE__ */ M("div", {
2213
2486
  className: W("flex items-center gap-2 px-3", f.strip),
2214
- children: [/* @__PURE__ */ A("span", {
2487
+ children: [/* @__PURE__ */ j("span", {
2215
2488
  className: "text-cui-tertiary text-cui-base whitespace-nowrap",
2216
2489
  children: "Rows per page"
2217
- }), /* @__PURE__ */ j(Q.Root, { children: [/* @__PURE__ */ A(Q.Trigger, { children: /* @__PURE__ */ j("button", {
2490
+ }), /* @__PURE__ */ M(Q.Root, { children: [/* @__PURE__ */ j(Q.Trigger, { children: /* @__PURE__ */ M("button", {
2218
2491
  type: "button",
2219
2492
  className: W("flex items-center gap-1 h-6 px-1.5 rounded-sm text-cui-base text-cui-primary tabular-nums cursor-pointer select-none", "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus", "hover:bg-cui-subtle transition-colors duration-150 motion-reduce:transition-none"),
2220
- children: [i, /* @__PURE__ */ A(u, { className: "text-cui-tertiary size-3.5" })]
2221
- }) }), /* @__PURE__ */ A(Q.Content, {
2493
+ children: [i, /* @__PURE__ */ j(u, { className: "text-cui-tertiary size-3.5" })]
2494
+ }) }), /* @__PURE__ */ j(Q.Content, {
2222
2495
  align: "start",
2223
2496
  sideOffset: 4,
2224
2497
  minWidth: "min-w-[80px]",
2225
- children: o.map((e) => /* @__PURE__ */ A(Q.Item, {
2498
+ children: o.map((e) => /* @__PURE__ */ j(Q.Item, {
2226
2499
  onClick: () => a?.(e),
2227
2500
  children: e
2228
2501
  }, e))
2229
2502
  })] })]
2230
2503
  }),
2231
- p && h && /* @__PURE__ */ A("div", { className: "bg-cui-neutral w-px self-stretch" }),
2232
- h && /* @__PURE__ */ j("div", {
2504
+ p && h && /* @__PURE__ */ j("div", { className: "bg-cui-neutral w-px self-stretch" }),
2505
+ h && /* @__PURE__ */ M("div", {
2233
2506
  className: W("flex items-center gap-0.5 px-1.5", f.strip),
2234
2507
  children: [
2235
- /* @__PURE__ */ A(Ln, {
2508
+ /* @__PURE__ */ j(er, {
2236
2509
  direction: "prev",
2237
2510
  disabled: e <= 1,
2238
2511
  onClick: () => n?.(e - 1),
2239
2512
  buttonSize: f.button,
2240
2513
  iconSize: f.icon
2241
2514
  }),
2242
- v.map((t) => typeof t == "number" ? /* @__PURE__ */ A(Fn, {
2515
+ v.map((t) => typeof t == "number" ? /* @__PURE__ */ j(Qn, {
2243
2516
  page: t,
2244
2517
  active: t === e,
2245
2518
  onClick: () => n?.(t),
2246
2519
  buttonSize: f.button
2247
- }, t) : /* @__PURE__ */ A(In, { buttonSize: f.button }, t)),
2248
- /* @__PURE__ */ A(Ln, {
2520
+ }, t) : /* @__PURE__ */ j($n, { buttonSize: f.button }, t)),
2521
+ /* @__PURE__ */ j(er, {
2249
2522
  direction: "next",
2250
2523
  disabled: e >= t,
2251
2524
  onClick: () => n?.(e + 1),
@@ -2254,10 +2527,10 @@ var Rn = C(function({ page: e, pageCount: t, onPageChange: n, totalItems: r, row
2254
2527
  })
2255
2528
  ]
2256
2529
  }),
2257
- m && (h || p) && /* @__PURE__ */ A("div", { className: "bg-cui-neutral w-px self-stretch" }),
2258
- m && /* @__PURE__ */ A("div", {
2530
+ m && (h || p) && /* @__PURE__ */ j("div", { className: "bg-cui-neutral w-px self-stretch" }),
2531
+ m && /* @__PURE__ */ j("div", {
2259
2532
  className: W("flex items-center px-3", f.strip),
2260
- children: /* @__PURE__ */ j("span", {
2533
+ children: /* @__PURE__ */ M("span", {
2261
2534
  className: "text-cui-tertiary text-cui-base whitespace-nowrap tabular-nums",
2262
2535
  children: [
2263
2536
  g,
@@ -2273,24 +2546,24 @@ var Rn = C(function({ page: e, pageCount: t, onPageChange: n, totalItems: r, row
2273
2546
  });
2274
2547
  //#endregion
2275
2548
  //#region src/components/data-table/data-table.tsx
2276
- function zn({ direction: e }) {
2277
- return e === "asc" ? /* @__PURE__ */ A(d, { className: "text-cui-primary size-3.5" }) : e === "desc" ? /* @__PURE__ */ A(s, { className: "text-cui-primary size-3.5" }) : /* @__PURE__ */ A(u, { className: "text-cui-tertiary size-3.5 opacity-0 transition-opacity group-hover:opacity-100" });
2549
+ function nr({ direction: e }) {
2550
+ return e === "asc" ? /* @__PURE__ */ j(d, { className: "text-cui-primary size-3.5" }) : e === "desc" ? /* @__PURE__ */ j(s, { className: "text-cui-primary size-3.5" }) : /* @__PURE__ */ j(u, { className: "text-cui-tertiary size-3.5 opacity-0 transition-opacity group-hover:opacity-100" });
2278
2551
  }
2279
- function Bn({ columns: e, data: t, sortable: n = !1, paginated: r = !1, pageSize: i = 10, pageSizeOptions: a = [
2552
+ function rr({ columns: e, data: t, sortable: n = !1, paginated: r = !1, pageSize: i = 10, pageSizeOptions: a = [
2280
2553
  10,
2281
2554
  25,
2282
2555
  50
2283
2556
  ], selectable: o = !1, rowSelection: s, onRowSelectionChange: c, onRowClick: l, loading: u = !1, loadingRows: d = 5, emptyMessage: f = "No results.", className: p, tableOptions: m }) {
2284
- let [h, g] = O([]), [_, v] = O([]), [y, b] = O({}), [x, S] = O({}), C = s ?? x, w = c ? (e) => {
2557
+ let [h, g] = k([]), [_, v] = k([]), [y, b] = k({}), [x, S] = k({}), C = s ?? x, w = c ? (e) => {
2285
2558
  c(typeof e == "function" ? e(C) : e);
2286
- } : S, ee = o ? [{
2559
+ } : S, T = o ? [{
2287
2560
  id: "_select",
2288
- header: ({ table: e }) => /* @__PURE__ */ A(Qe, {
2561
+ header: ({ table: e }) => /* @__PURE__ */ j($e, {
2289
2562
  checked: e.getIsAllPageRowsSelected(),
2290
2563
  indeterminate: e.getIsSomePageRowsSelected(),
2291
2564
  onCheckedChange: (t) => e.toggleAllPageRowsSelected(t)
2292
2565
  }),
2293
- cell: ({ row: e }) => /* @__PURE__ */ A(Qe, {
2566
+ cell: ({ row: e }) => /* @__PURE__ */ j($e, {
2294
2567
  checked: e.getIsSelected(),
2295
2568
  disabled: !e.getCanSelect(),
2296
2569
  onCheckedChange: (t) => e.toggleSelected(t)
@@ -2298,74 +2571,74 @@ function Bn({ columns: e, data: t, sortable: n = !1, paginated: r = !1, pageSize
2298
2571
  enableSorting: !1,
2299
2572
  enableHiding: !1,
2300
2573
  size: 40
2301
- }, ...e] : e, { state: te, ...T } = m ?? {}, E = de({
2574
+ }, ...e] : e, { state: ee, ...E } = m ?? {}, D = fe({
2302
2575
  data: t,
2303
- columns: ee,
2576
+ columns: T,
2304
2577
  state: {
2305
2578
  sorting: h,
2306
2579
  columnFilters: _,
2307
2580
  columnVisibility: y,
2308
2581
  rowSelection: C,
2309
- ...te
2582
+ ...ee
2310
2583
  },
2311
2584
  onSortingChange: g,
2312
2585
  onColumnFiltersChange: v,
2313
2586
  onColumnVisibilityChange: b,
2314
2587
  onRowSelectionChange: w,
2315
- getCoreRowModel: se(),
2316
- getSortedRowModel: ue(),
2317
- getFilteredRowModel: ce(),
2318
- ...r && { getPaginationRowModel: le() },
2588
+ getCoreRowModel: ce(),
2589
+ getSortedRowModel: de(),
2590
+ getFilteredRowModel: le(),
2591
+ ...r && { getPaginationRowModel: ue() },
2319
2592
  enableRowSelection: o,
2320
2593
  initialState: { pagination: { pageSize: i } },
2321
- ...T
2322
- }), D = E.getPageCount(), k = E.getState().pagination.pageIndex + 1, M = E.getState().pagination.pageSize;
2323
- return /* @__PURE__ */ j("div", {
2594
+ ...E
2595
+ }), O = D.getPageCount(), te = D.getState().pagination.pageIndex + 1, A = D.getState().pagination.pageSize;
2596
+ return /* @__PURE__ */ M("div", {
2324
2597
  className: W("flex flex-col gap-3", p),
2325
- children: [/* @__PURE__ */ j($, { children: [/* @__PURE__ */ A($.Header, { children: E.getHeaderGroups().map((e) => /* @__PURE__ */ A($.Row, { children: e.headers.map((e) => {
2598
+ children: [/* @__PURE__ */ M($, { children: [/* @__PURE__ */ j($.Header, { children: D.getHeaderGroups().map((e) => /* @__PURE__ */ j($.Row, { children: e.headers.map((e) => {
2326
2599
  let t = n && e.column.getCanSort(), r = e.column.getIsSorted();
2327
- return /* @__PURE__ */ A($.HeaderCell, {
2600
+ return /* @__PURE__ */ j($.HeaderCell, {
2328
2601
  width: e.getSize() === 150 ? void 0 : e.getSize(),
2329
2602
  className: W(t && "cursor-pointer select-none group"),
2330
- children: e.isPlaceholder ? null : /* @__PURE__ */ j("button", {
2603
+ children: e.isPlaceholder ? null : /* @__PURE__ */ M("button", {
2331
2604
  type: "button",
2332
2605
  className: W("flex items-center gap-1", t && "cursor-pointer"),
2333
2606
  onClick: t ? e.column.getToggleSortingHandler() : void 0,
2334
2607
  tabIndex: t ? 0 : -1,
2335
- children: [oe(e.column.columnDef.header, e.getContext()), t && /* @__PURE__ */ A(zn, { direction: r })]
2608
+ children: [se(e.column.columnDef.header, e.getContext()), t && /* @__PURE__ */ j(nr, { direction: r })]
2336
2609
  })
2337
2610
  }, e.id);
2338
- }) }, e.id)) }), /* @__PURE__ */ A($.Body, { children: u ? Array.from({ length: d }, (e, t) => /* @__PURE__ */ A($.Row, { children: E.getVisibleLeafColumns().map((e, n) => /* @__PURE__ */ A($.Cell, { children: /* @__PURE__ */ A(dn, { className: "h-4 w-full" }) }, `skeleton-${String(t)}-${String(n)}`)) }, `skeleton-${String(t)}`)) : E.getRowModel().rows.length > 0 ? E.getRowModel().rows.map((e) => /* @__PURE__ */ A($.Row, {
2611
+ }) }, e.id)) }), /* @__PURE__ */ j($.Body, { children: u ? Array.from({ length: d }, (e, t) => /* @__PURE__ */ j($.Row, { children: D.getVisibleLeafColumns().map((e, n) => /* @__PURE__ */ j($.Cell, { children: /* @__PURE__ */ j(Rt, { className: "h-4 w-full" }) }, `skeleton-${String(t)}-${String(n)}`)) }, `skeleton-${String(t)}`)) : D.getRowModel().rows.length > 0 ? D.getRowModel().rows.map((e) => /* @__PURE__ */ j($.Row, {
2339
2612
  onClick: l ? () => l(e) : void 0,
2340
2613
  className: W(e.getIsSelected() && "bg-cui-subtle"),
2341
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ A($.Cell, {
2614
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ j($.Cell, {
2342
2615
  width: e.column.getSize() === 150 ? void 0 : e.column.getSize(),
2343
- children: oe(e.column.columnDef.cell, e.getContext())
2616
+ children: se(e.column.columnDef.cell, e.getContext())
2344
2617
  }, e.id))
2345
- }, e.id)) : /* @__PURE__ */ A($.Row, { children: /* @__PURE__ */ A($.Cell, {
2346
- colSpan: ee.length,
2618
+ }, e.id)) : /* @__PURE__ */ j($.Row, { children: /* @__PURE__ */ j($.Cell, {
2619
+ colSpan: T.length,
2347
2620
  className: "text-cui-tertiary py-8 text-center",
2348
2621
  children: f
2349
- }) }) })] }), r && D > 0 && /* @__PURE__ */ j("div", {
2622
+ }) }) })] }), r && O > 0 && /* @__PURE__ */ M("div", {
2350
2623
  className: "flex items-center justify-between",
2351
- children: [o && /* @__PURE__ */ j("span", {
2624
+ children: [o && /* @__PURE__ */ M("span", {
2352
2625
  className: "text-cui-secondary text-cui-base",
2353
2626
  children: [
2354
- E.getFilteredSelectedRowModel().rows.length,
2627
+ D.getFilteredSelectedRowModel().rows.length,
2355
2628
  " of",
2356
2629
  " ",
2357
- E.getFilteredRowModel().rows.length,
2630
+ D.getFilteredRowModel().rows.length,
2358
2631
  " row(s) selected"
2359
2632
  ]
2360
- }), /* @__PURE__ */ A("div", {
2633
+ }), /* @__PURE__ */ j("div", {
2361
2634
  className: W(!o && "ml-auto"),
2362
- children: /* @__PURE__ */ A(Rn, {
2363
- page: k,
2364
- pageCount: D,
2365
- onPageChange: (e) => E.setPageIndex(e - 1),
2366
- totalItems: E.getFilteredRowModel().rows.length,
2367
- rowsPerPage: M,
2368
- onRowsPerPageChange: (e) => E.setPageSize(e),
2635
+ children: /* @__PURE__ */ j(tr, {
2636
+ page: te,
2637
+ pageCount: O,
2638
+ onPageChange: (e) => D.setPageIndex(e - 1),
2639
+ totalItems: D.getFilteredRowModel().rows.length,
2640
+ rowsPerPage: A,
2641
+ onRowsPerPageChange: (e) => D.setPageSize(e),
2369
2642
  rowOptions: a
2370
2643
  })
2371
2644
  })]
@@ -2374,22 +2647,22 @@ function Bn({ columns: e, data: t, sortable: n = !1, paginated: r = !1, pageSize
2374
2647
  }
2375
2648
  //#endregion
2376
2649
  //#region src/components/data-table/data-table-toolbar.tsx
2377
- var Vn = C(function({ children: e, className: t }, n) {
2378
- return /* @__PURE__ */ A("div", {
2650
+ var ir = C(function({ children: e, className: t }, n) {
2651
+ return /* @__PURE__ */ j("div", {
2379
2652
  ref: n,
2380
2653
  className: W("flex flex-wrap items-center gap-2", t),
2381
2654
  children: e
2382
2655
  });
2383
- }), Hn = C(function({ value: e, onChange: t, placeholder: n = "Search...", className: r }, i) {
2384
- let a = D(null), o = w(() => {
2656
+ }), ar = C(function({ value: e, onChange: t, placeholder: n = "Search...", className: r }, i) {
2657
+ let a = O(null), o = w(() => {
2385
2658
  t(""), a.current?.focus();
2386
2659
  }, [t]);
2387
- return /* @__PURE__ */ j("div", {
2660
+ return /* @__PURE__ */ M("div", {
2388
2661
  ref: i,
2389
2662
  className: W("border-cui-neutral bg-cui-base-2 flex h-8 max-w-sm items-center gap-2 rounded-md border px-2.5", "ring-cui-neutral ring-0 transition-[box-shadow,border-color] duration-150 ease-out", "has-[:focus]:ring-2 has-[:focus]:border-cui-neutral-strong", "motion-reduce:transition-none", r),
2390
2663
  children: [
2391
- /* @__PURE__ */ A(h, { className: "text-cui-tertiary size-4 shrink-0" }),
2392
- /* @__PURE__ */ A("input", {
2664
+ /* @__PURE__ */ j(h, { className: "text-cui-tertiary size-4 shrink-0" }),
2665
+ /* @__PURE__ */ j("input", {
2393
2666
  ref: a,
2394
2667
  type: "text",
2395
2668
  value: e,
@@ -2397,67 +2670,67 @@ var Vn = C(function({ children: e, className: t }, n) {
2397
2670
  placeholder: n,
2398
2671
  className: "text-cui-primary placeholder:text-cui-tertiary text-cui-base min-w-0 flex-1 bg-transparent outline-none"
2399
2672
  }),
2400
- e && /* @__PURE__ */ A("button", {
2673
+ e && /* @__PURE__ */ j("button", {
2401
2674
  type: "button",
2402
2675
  onClick: o,
2403
2676
  className: "text-cui-tertiary hover:text-cui-secondary shrink-0 rounded-sm p-0.5 transition-colors",
2404
- children: /* @__PURE__ */ A(x, { className: "size-3.5" })
2677
+ children: /* @__PURE__ */ j(x, { className: "size-3.5" })
2405
2678
  })
2406
2679
  ]
2407
2680
  });
2408
2681
  });
2409
2682
  //#endregion
2410
2683
  //#region src/components/popover/popover.tsx
2411
- function Un(e) {
2412
- return /* @__PURE__ */ A(B.Root, { ...e });
2684
+ function or(e) {
2685
+ return /* @__PURE__ */ j(V.Root, { ...e });
2413
2686
  }
2414
- var Wn = C(function({ className: e, ...t }, n) {
2415
- return /* @__PURE__ */ A(B.Trigger, {
2687
+ var sr = C(function({ className: e, ...t }, n) {
2688
+ return /* @__PURE__ */ j(V.Trigger, {
2416
2689
  ref: n,
2417
2690
  className: W("cursor-pointer outline-none", e),
2418
2691
  ...t
2419
2692
  });
2420
2693
  });
2421
- function Gn({ side: e = "bottom", align: t = "center", sideOffset: n = 4, className: r, children: i, ...a }) {
2422
- return /* @__PURE__ */ A(B.Portal, { children: /* @__PURE__ */ A(B.Positioner, {
2694
+ function cr({ side: e = "bottom", align: t = "center", sideOffset: n = 4, className: r, children: i, ...a }) {
2695
+ return /* @__PURE__ */ j(V.Portal, { children: /* @__PURE__ */ j(V.Positioner, {
2423
2696
  side: e,
2424
2697
  align: t,
2425
2698
  sideOffset: n,
2426
2699
  className: "z-50 outline-none",
2427
- children: /* @__PURE__ */ A(B.Popup, {
2700
+ children: /* @__PURE__ */ j(V.Popup, {
2428
2701
  className: W("bg-cui-base-2 border border-cui-neutral rounded-md shadow-md p-3", "origin-[var(--transform-origin)] will-change-[transform,opacity]", "transition-[transform,scale,opacity] duration-200 ease-cui-out-expo", "data-[starting-style]:scale-[0.96] data-[starting-style]:opacity-0", "data-[ending-style]:scale-[0.96] data-[ending-style]:opacity-0 data-[ending-style]:duration-150", "motion-reduce:transition-none", "focus:outline-none", r),
2429
2702
  ...a,
2430
2703
  children: i
2431
2704
  })
2432
2705
  }) });
2433
2706
  }
2434
- var Kn = {
2435
- Root: Un,
2436
- Trigger: Wn,
2437
- Content: Gn,
2707
+ var lr = {
2708
+ Root: or,
2709
+ Trigger: sr,
2710
+ Content: cr,
2438
2711
  Arrow: C(function({ className: e, ...t }, n) {
2439
- return /* @__PURE__ */ A(B.Arrow, {
2712
+ return /* @__PURE__ */ j(V.Arrow, {
2440
2713
  ref: n,
2441
2714
  className: W("fill-cui-base-2 stroke-cui-neutral [stroke-width:1px]", "data-[side=top]:bottom-[-5px]", "data-[side=bottom]:top-[-5px]", "data-[side=left]:right-[-5px]", "data-[side=right]:left-[-5px]", e),
2442
2715
  ...t
2443
2716
  });
2444
2717
  }),
2445
2718
  Close: C(function({ className: e, ...t }, n) {
2446
- return /* @__PURE__ */ A(B.Close, {
2719
+ return /* @__PURE__ */ j(V.Close, {
2447
2720
  ref: n,
2448
2721
  className: W(e),
2449
2722
  ...t
2450
2723
  });
2451
2724
  }),
2452
2725
  Title: C(function({ className: e, children: t }, n) {
2453
- return /* @__PURE__ */ A("p", {
2726
+ return /* @__PURE__ */ j("p", {
2454
2727
  ref: n,
2455
2728
  className: W("text-cui-primary text-cui-base font-medium", e),
2456
2729
  children: t
2457
2730
  });
2458
2731
  }),
2459
2732
  Description: C(function({ className: e, ...t }, n) {
2460
- return /* @__PURE__ */ A(B.Description, {
2733
+ return /* @__PURE__ */ j(V.Description, {
2461
2734
  ref: n,
2462
2735
  className: W("text-cui-secondary mt-1 text-cui-base", e),
2463
2736
  ...t
@@ -2466,8 +2739,8 @@ var Kn = {
2466
2739
  };
2467
2740
  //#endregion
2468
2741
  //#region src/components/data-table/data-table-faceted-filter.tsx
2469
- function qn({ column: e, title: t, options: n, value: r, onValueChange: i }) {
2470
- let [a, s] = O(""), c = D(null), l = e?.getFacetedUniqueValues(), u = r ?? e?.getFilterValue() ?? [], d = new Set(u), f = d.size > 0, p = a ? n.filter((e) => e.label.toLowerCase().includes(a.toLowerCase())) : n;
2742
+ function ur({ column: e, title: t, options: n, value: r, onValueChange: i }) {
2743
+ let [a, s] = k(""), c = O(null), l = e?.getFacetedUniqueValues(), u = r ?? e?.getFilterValue() ?? [], d = new Set(u), f = d.size > 0, p = a ? n.filter((e) => e.label.toLowerCase().includes(a.toLowerCase())) : n;
2471
2744
  function m(t) {
2472
2745
  i ? i(t) : e?.setFilterValue(t.length ? t : void 0);
2473
2746
  }
@@ -2475,48 +2748,48 @@ function qn({ column: e, title: t, options: n, value: r, onValueChange: i }) {
2475
2748
  let t = new Set(d);
2476
2749
  t.has(e) ? t.delete(e) : t.add(e), m(Array.from(t));
2477
2750
  }
2478
- return /* @__PURE__ */ j(Kn.Root, {
2751
+ return /* @__PURE__ */ M(lr.Root, {
2479
2752
  onOpenChange: (e) => {
2480
2753
  e ? requestAnimationFrame(() => {
2481
2754
  c.current?.focus({ preventScroll: !0 });
2482
2755
  }) : s("");
2483
2756
  },
2484
- children: [/* @__PURE__ */ j(Kn.Trigger, {
2485
- render: /* @__PURE__ */ A("button", { type: "button" }),
2757
+ children: [/* @__PURE__ */ M(lr.Trigger, {
2758
+ render: /* @__PURE__ */ j("button", { type: "button" }),
2486
2759
  className: W("border-cui-neutral inline-flex h-8 items-center rounded-md border text-cui-base", f ? "gap-1 border-solid py-1 pl-2.5 pr-2.5" : "gap-1.5 border-dashed px-3", "hover:bg-cui-subtle cursor-pointer transition-colors", "ring-cui-focus outline-none focus-visible:ring-2 focus-visible:ring-offset-2"),
2487
2760
  children: [
2488
- /* @__PURE__ */ A(v, { className: "text-cui-tertiary size-4 shrink-0" }),
2489
- /* @__PURE__ */ A("span", {
2761
+ /* @__PURE__ */ j(v, { className: "text-cui-tertiary size-4 shrink-0" }),
2762
+ /* @__PURE__ */ j("span", {
2490
2763
  className: "text-cui-primary",
2491
2764
  children: t
2492
2765
  }),
2493
- f && /* @__PURE__ */ j(k, { children: [
2494
- /* @__PURE__ */ A("div", { className: "border-cui-neutral mx-0.5 h-4 w-px border-l" }),
2495
- /* @__PURE__ */ A(nn, {
2766
+ f && /* @__PURE__ */ M(A, { children: [
2767
+ /* @__PURE__ */ j("div", { className: "border-cui-neutral mx-0.5 h-4 w-px border-l" }),
2768
+ /* @__PURE__ */ j(Cn, {
2496
2769
  className: "rounded-sm px-1 font-medium lg:hidden",
2497
2770
  children: d.size
2498
2771
  }),
2499
- /* @__PURE__ */ A("span", {
2772
+ /* @__PURE__ */ j("span", {
2500
2773
  className: "hidden items-center gap-1 lg:flex",
2501
- children: d.size > 2 ? /* @__PURE__ */ j(nn, {
2774
+ children: d.size > 2 ? /* @__PURE__ */ M(Cn, {
2502
2775
  className: "rounded-sm px-1 font-medium",
2503
2776
  children: [d.size, " selected"]
2504
- }) : n.filter((e) => d.has(e.value)).map((e) => /* @__PURE__ */ A(nn, {
2777
+ }) : n.filter((e) => d.has(e.value)).map((e) => /* @__PURE__ */ j(Cn, {
2505
2778
  className: "rounded-sm px-1 font-medium",
2506
2779
  children: e.label
2507
2780
  }, e.value))
2508
2781
  })
2509
2782
  ] })
2510
2783
  ]
2511
- }), /* @__PURE__ */ j(Kn.Content, {
2784
+ }), /* @__PURE__ */ M(lr.Content, {
2512
2785
  side: "bottom",
2513
2786
  align: "start",
2514
2787
  sideOffset: 4,
2515
2788
  className: "w-[220px] p-1",
2516
2789
  children: [
2517
- /* @__PURE__ */ A(q.SearchInput, {
2790
+ /* @__PURE__ */ j(q.SearchInput, {
2518
2791
  className: "mx-0 mt-0",
2519
- children: /* @__PURE__ */ A("input", {
2792
+ children: /* @__PURE__ */ j("input", {
2520
2793
  ref: c,
2521
2794
  value: a,
2522
2795
  onChange: (e) => s(e.target.value),
@@ -2524,31 +2797,31 @@ function qn({ column: e, title: t, options: n, value: r, onValueChange: i }) {
2524
2797
  className: "text-cui-primary placeholder:text-cui-tertiary text-cui-base flex-1 bg-transparent outline-none"
2525
2798
  })
2526
2799
  }),
2527
- /* @__PURE__ */ j(q.List, { children: [p.length === 0 && /* @__PURE__ */ A(q.Empty, { children: "No results found." }), p.map((e) => {
2800
+ /* @__PURE__ */ M(q.List, { children: [p.length === 0 && /* @__PURE__ */ j(q.Empty, { children: "No results found." }), p.map((e) => {
2528
2801
  let t = d.has(e.value);
2529
- return /* @__PURE__ */ j(q.Item, {
2802
+ return /* @__PURE__ */ M(q.Item, {
2530
2803
  onClick: () => h(e.value),
2531
- icon: /* @__PURE__ */ A("div", {
2804
+ icon: /* @__PURE__ */ j("div", {
2532
2805
  className: W("flex size-4 items-center justify-center rounded border", t ? "border-cui-accent bg-cui-accent text-cui-inverse" : "border-cui-neutral [&_svg]:invisible"),
2533
- children: /* @__PURE__ */ A(o, { className: "size-3" })
2806
+ children: /* @__PURE__ */ j(o, { className: "size-3" })
2534
2807
  }),
2535
- indicator: l?.get(e.value) == null ? void 0 : /* @__PURE__ */ A("span", {
2808
+ indicator: l?.get(e.value) == null ? void 0 : /* @__PURE__ */ j("span", {
2536
2809
  className: "text-cui-tertiary font-cui-mono text-cui-sm",
2537
2810
  children: l.get(e.value)
2538
2811
  }),
2539
- children: [e.icon && /* @__PURE__ */ A("span", {
2812
+ children: [e.icon && /* @__PURE__ */ j("span", {
2540
2813
  className: "text-cui-secondary flex size-4 shrink-0 items-center justify-center [&>svg]:size-3.5",
2541
2814
  children: e.icon
2542
- }), /* @__PURE__ */ A("span", {
2815
+ }), /* @__PURE__ */ j("span", {
2543
2816
  className: "relative z-[1]",
2544
2817
  children: e.label
2545
2818
  })]
2546
2819
  }, e.value);
2547
2820
  })] }),
2548
- f && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(q.Separator, {}), /* @__PURE__ */ A(q.Item, {
2821
+ f && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(q.Separator, {}), /* @__PURE__ */ j(q.Item, {
2549
2822
  onClick: () => m([]),
2550
2823
  className: "justify-center",
2551
- children: /* @__PURE__ */ A("span", {
2824
+ children: /* @__PURE__ */ j("span", {
2552
2825
  className: "relative z-[1]",
2553
2826
  children: "Clear filters"
2554
2827
  })
@@ -2559,8 +2832,8 @@ function qn({ column: e, title: t, options: n, value: r, onValueChange: i }) {
2559
2832
  }
2560
2833
  //#endregion
2561
2834
  //#region src/components/segmented-group/segmented-group.tsx
2562
- var Jn = C(function({ activeIndex: e, itemCount: t, layout: n = "fill", className: r, children: i }, a) {
2563
- let o = n === "fill", s = D(null), [c, l] = O(null), u = D(!1), d = w(() => {
2835
+ var dr = C(function({ activeIndex: e, itemCount: t, layout: n = "fill", className: r, children: i }, a) {
2836
+ let o = n === "fill", s = O(null), [c, l] = k(null), u = O(!1), d = w(() => {
2564
2837
  if (n !== "fit") return;
2565
2838
  let t = s.current;
2566
2839
  if (!t) return;
@@ -2572,7 +2845,7 @@ var Jn = C(function({ activeIndex: e, itemCount: t, layout: n = "fill", classNam
2572
2845
  width: r.offsetWidth
2573
2846
  }), i && r.offsetHeight;
2574
2847
  }, [e, n]);
2575
- T(() => {
2848
+ E(() => {
2576
2849
  d();
2577
2850
  let e = s.current;
2578
2851
  if (!e || n !== "fit") return;
@@ -2587,21 +2860,21 @@ var Jn = C(function({ activeIndex: e, itemCount: t, layout: n = "fill", classNam
2587
2860
  width: c.width,
2588
2861
  transition: u.current ? void 0 : "none"
2589
2862
  } : { opacity: 0 };
2590
- return /* @__PURE__ */ j("div", {
2863
+ return /* @__PURE__ */ M("div", {
2591
2864
  ref: (e) => {
2592
2865
  s.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
2593
2866
  },
2594
2867
  className: W("relative bg-cui-base-0 rounded-md ring-1 ring-cui-neutral", o ? "grid" : "inline-flex", r),
2595
2868
  style: o ? { gridTemplateColumns: `repeat(${t}, 1fr)` } : void 0,
2596
- children: [/* @__PURE__ */ A("div", {
2869
+ children: [/* @__PURE__ */ j("div", {
2597
2870
  "aria-hidden": !0,
2598
2871
  className: W("absolute inset-y-0 p-0.5", "transition-all duration-200 ease-cui-out-expo", "motion-reduce:transition-none", !o && !u.current && "transition-none"),
2599
2872
  style: f,
2600
- children: /* @__PURE__ */ A("div", { className: "bg-cui-base-2 h-full rounded-sm shadow-sm" })
2873
+ children: /* @__PURE__ */ j("div", { className: "bg-cui-base-2 h-full rounded-sm shadow-sm" })
2601
2874
  }), i]
2602
2875
  });
2603
- }), Yn = C(function({ active: e = !1, className: t, children: n, ...r }, i) {
2604
- return /* @__PURE__ */ A("button", {
2876
+ }), fr = C(function({ active: e = !1, className: t, children: n, ...r }, i) {
2877
+ return /* @__PURE__ */ j("button", {
2605
2878
  ref: i,
2606
2879
  type: "button",
2607
2880
  "data-segmented-item": "",
@@ -2609,96 +2882,96 @@ var Jn = C(function({ activeIndex: e, itemCount: t, layout: n = "fill", classNam
2609
2882
  ...r,
2610
2883
  children: n
2611
2884
  });
2612
- }), Xn = {
2885
+ }), pr = {
2613
2886
  sm: "h-7 px-2.5",
2614
2887
  md: "h-8 px-3"
2615
- }, Zn = C(function({ options: e, value: t, defaultValue: n, onValueChange: r, layout: i = "fill", size: a = "sm", className: o }, s) {
2616
- let [c, l] = O(() => n ?? e[0]?.value ?? ""), u = t !== void 0, d = u ? t : c, f = e.findIndex((e) => e.value === d);
2888
+ }, mr = C(function({ options: e, value: t, defaultValue: n, onValueChange: r, layout: i = "fill", size: a = "sm", className: o }, s) {
2889
+ let [c, l] = k(() => n ?? e[0]?.value ?? ""), u = t !== void 0, d = u ? t : c, f = e.findIndex((e) => e.value === d);
2617
2890
  function p(e) {
2618
2891
  u || l(e), r?.(e);
2619
2892
  }
2620
- return /* @__PURE__ */ A(Jn, {
2893
+ return /* @__PURE__ */ j(dr, {
2621
2894
  ref: s,
2622
2895
  activeIndex: f,
2623
2896
  itemCount: e.length,
2624
2897
  layout: i,
2625
2898
  className: o,
2626
- children: e.map((e) => /* @__PURE__ */ j(Yn, {
2899
+ children: e.map((e) => /* @__PURE__ */ M(fr, {
2627
2900
  active: e.value === d,
2628
2901
  "aria-pressed": e.value === d,
2629
2902
  onClick: () => p(e.value),
2630
- className: Xn[a],
2631
- children: [e.icon && /* @__PURE__ */ A("span", {
2903
+ className: pr[a],
2904
+ children: [e.icon && /* @__PURE__ */ j("span", {
2632
2905
  className: "flex size-4 shrink-0 items-center justify-center [&>svg]:size-4",
2633
2906
  children: e.icon
2634
- }), e.label && /* @__PURE__ */ A("span", { children: e.label })]
2907
+ }), e.label && /* @__PURE__ */ j("span", { children: e.label })]
2635
2908
  }, e.value))
2636
2909
  });
2637
- }), Qn = [
2910
+ }), hr = [
2638
2911
  {
2639
2912
  value: "light",
2640
- icon: /* @__PURE__ */ A(y, {})
2913
+ icon: /* @__PURE__ */ j(y, {})
2641
2914
  },
2642
2915
  {
2643
2916
  value: "dark",
2644
- icon: /* @__PURE__ */ A(_, {})
2917
+ icon: /* @__PURE__ */ j(_, {})
2645
2918
  },
2646
2919
  {
2647
2920
  value: "system",
2648
- icon: /* @__PURE__ */ A(f, {})
2921
+ icon: /* @__PURE__ */ j(f, {})
2649
2922
  }
2650
2923
  ];
2651
- function $n({ user: e, theme: t = "system", onThemeChange: n, items: i, onLogout: a, children: o, side: s = "bottom", align: c = "end", className: l }) {
2652
- return /* @__PURE__ */ j(Q.Root, { children: [/* @__PURE__ */ A(Q.Trigger, {
2924
+ function gr({ user: e, theme: t = "system", onThemeChange: n, items: i, onLogout: a, children: o, side: s = "bottom", align: c = "end", className: l }) {
2925
+ return /* @__PURE__ */ M(Q.Root, { children: [/* @__PURE__ */ j(Q.Trigger, {
2653
2926
  className: l,
2654
- children: o ?? /* @__PURE__ */ A(_t, {
2927
+ children: o ?? /* @__PURE__ */ j(vt, {
2655
2928
  initials: e.initials,
2656
2929
  src: e.avatarUrl,
2657
2930
  size: "sm",
2658
2931
  className: "cursor-pointer"
2659
2932
  })
2660
- }), /* @__PURE__ */ j(Q.Content, {
2933
+ }), /* @__PURE__ */ M(Q.Content, {
2661
2934
  side: s,
2662
2935
  align: c,
2663
2936
  sideOffset: 8,
2664
2937
  minWidth: "min-w-[260px]",
2665
2938
  children: [
2666
- /* @__PURE__ */ j("div", {
2939
+ /* @__PURE__ */ M("div", {
2667
2940
  className: "flex items-center gap-2 px-2 py-1.5",
2668
- children: [/* @__PURE__ */ A(_t, {
2941
+ children: [/* @__PURE__ */ j(vt, {
2669
2942
  initials: e.initials,
2670
2943
  src: e.avatarUrl,
2671
2944
  size: "md"
2672
- }), /* @__PURE__ */ j("div", {
2945
+ }), /* @__PURE__ */ M("div", {
2673
2946
  className: "flex flex-col gap-0.5",
2674
- children: [/* @__PURE__ */ A("span", {
2947
+ children: [/* @__PURE__ */ j("span", {
2675
2948
  className: "text-cui-primary text-cui-base font-semibold",
2676
2949
  children: e.name
2677
- }), e.org && /* @__PURE__ */ A("span", {
2950
+ }), e.org && /* @__PURE__ */ j("span", {
2678
2951
  className: "text-cui-tertiary text-cui-sm",
2679
2952
  children: e.org
2680
2953
  })]
2681
2954
  })]
2682
2955
  }),
2683
- /* @__PURE__ */ A(Q.Separator, {}),
2684
- /* @__PURE__ */ j("div", {
2956
+ /* @__PURE__ */ j(Q.Separator, {}),
2957
+ /* @__PURE__ */ M("div", {
2685
2958
  className: "flex items-center justify-between px-2 py-1.5",
2686
- children: [/* @__PURE__ */ A("span", {
2959
+ children: [/* @__PURE__ */ j("span", {
2687
2960
  className: "text-cui-primary text-cui-base",
2688
2961
  children: "Theme"
2689
- }), /* @__PURE__ */ A(Zn, {
2690
- options: Qn,
2962
+ }), /* @__PURE__ */ j(mr, {
2963
+ options: hr,
2691
2964
  value: t,
2692
2965
  onValueChange: n
2693
2966
  })]
2694
2967
  }),
2695
- i && i.length > 0 && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(Q.Separator, {}), i.map((e) => /* @__PURE__ */ A(Q.Item, {
2968
+ i && i.length > 0 && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(Q.Separator, {}), i.map((e) => /* @__PURE__ */ j(Q.Item, {
2696
2969
  icon: e.icon,
2697
2970
  onClick: e.onClick,
2698
2971
  children: e.label
2699
2972
  }, e.label))] }),
2700
- a && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(Q.Separator, {}), /* @__PURE__ */ A(Q.Item, {
2701
- icon: /* @__PURE__ */ A(r, {}),
2973
+ a && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(Q.Separator, {}), /* @__PURE__ */ j(Q.Item, {
2974
+ icon: /* @__PURE__ */ j(r, {}),
2702
2975
  onClick: a,
2703
2976
  children: "Log out"
2704
2977
  })] })
@@ -2707,7 +2980,7 @@ function $n({ user: e, theme: t = "system", onThemeChange: n, items: i, onLogout
2707
2980
  }
2708
2981
  //#endregion
2709
2982
  //#region src/components/alert/alert.tsx
2710
- var er = {
2983
+ var _r = {
2711
2984
  accent: {
2712
2985
  container: "bg-cui-accent-subtle",
2713
2986
  icon: "text-cui-accent",
@@ -2736,90 +3009,90 @@ var er = {
2736
3009
  pattern: "text-cui-danger",
2737
3010
  defaultIcon: b
2738
3011
  }
2739
- }, tr = {
3012
+ }, vr = {
2740
3013
  maskImage: "linear-gradient(to left, black, transparent)",
2741
3014
  WebkitMaskImage: "linear-gradient(to left, black, transparent)"
2742
- }, nr = C(function({ variant: e = "accent", layout: t = "inline", icon: n, action: r, onDismiss: i, className: a, children: o }, s) {
2743
- let c = er[e], l = c.defaultIcon;
2744
- return t === "banner" ? /* @__PURE__ */ j("div", {
3015
+ }, yr = C(function({ variant: e = "accent", layout: t = "inline", icon: n, action: r, onDismiss: i, className: a, children: o }, s) {
3016
+ let c = _r[e], l = c.defaultIcon;
3017
+ return t === "banner" ? /* @__PURE__ */ M("div", {
2745
3018
  ref: s,
2746
3019
  role: "alert",
2747
3020
  className: W("relative flex w-full items-center justify-center overflow-hidden px-4 py-3", c.container, a),
2748
3021
  children: [
2749
- /* @__PURE__ */ A("div", {
3022
+ /* @__PURE__ */ j("div", {
2750
3023
  className: W("pointer-events-none absolute inset-0", c.pattern),
2751
3024
  style: {
2752
3025
  maskImage: "linear-gradient(to right, transparent, black 30%, black 70%, transparent)",
2753
3026
  WebkitMaskImage: "linear-gradient(to right, transparent, black 30%, black 70%, transparent)"
2754
3027
  },
2755
- children: /* @__PURE__ */ A(un, {
3028
+ children: /* @__PURE__ */ j(Lt, {
2756
3029
  squareSize: 4,
2757
3030
  gridGap: 2,
2758
3031
  flickerChance: .4,
2759
3032
  maxOpacity: .15
2760
3033
  })
2761
3034
  }),
2762
- /* @__PURE__ */ j("div", {
3035
+ /* @__PURE__ */ M("div", {
2763
3036
  className: "relative flex items-center gap-3",
2764
3037
  children: [
2765
- /* @__PURE__ */ A("span", {
3038
+ /* @__PURE__ */ j("span", {
2766
3039
  className: W("flex size-5 shrink-0 items-center justify-center [&>svg]:size-4", c.icon),
2767
- children: n ?? /* @__PURE__ */ A(l, {})
3040
+ children: n ?? /* @__PURE__ */ j(l, {})
2768
3041
  }),
2769
- /* @__PURE__ */ A("span", {
3042
+ /* @__PURE__ */ j("span", {
2770
3043
  className: W("text-cui-base font-medium", c.text),
2771
3044
  children: o
2772
3045
  }),
2773
- r && /* @__PURE__ */ A("div", {
3046
+ r && /* @__PURE__ */ j("div", {
2774
3047
  className: "shrink-0",
2775
3048
  children: r
2776
3049
  })
2777
3050
  ]
2778
3051
  }),
2779
- i && /* @__PURE__ */ A("div", {
3052
+ i && /* @__PURE__ */ j("div", {
2780
3053
  className: "absolute right-2",
2781
- children: /* @__PURE__ */ A(K, {
3054
+ children: /* @__PURE__ */ j(K, {
2782
3055
  variant: "transparent",
2783
3056
  size: "xs",
2784
- iconLeft: /* @__PURE__ */ A(x, {}),
3057
+ iconLeft: /* @__PURE__ */ j(x, {}),
2785
3058
  onClick: i,
2786
3059
  "aria-label": "Dismiss"
2787
3060
  })
2788
3061
  })
2789
3062
  ]
2790
- }) : /* @__PURE__ */ j("div", {
3063
+ }) : /* @__PURE__ */ M("div", {
2791
3064
  ref: s,
2792
3065
  role: "alert",
2793
3066
  className: W("relative flex min-h-10 items-center gap-3 overflow-hidden rounded-md py-1.5 pl-3 pr-1.5", c.container, a),
2794
3067
  children: [
2795
- /* @__PURE__ */ A("div", {
3068
+ /* @__PURE__ */ j("div", {
2796
3069
  className: W("pointer-events-none absolute top-0 right-0 h-full w-1/2", c.pattern),
2797
- style: tr,
2798
- children: /* @__PURE__ */ A(un, {
3070
+ style: vr,
3071
+ children: /* @__PURE__ */ j(Lt, {
2799
3072
  squareSize: 4,
2800
3073
  gridGap: 2,
2801
3074
  flickerChance: .4,
2802
3075
  maxOpacity: .2
2803
3076
  })
2804
3077
  }),
2805
- /* @__PURE__ */ A("span", {
3078
+ /* @__PURE__ */ j("span", {
2806
3079
  className: W("relative flex size-5 shrink-0 items-center justify-center [&>svg]:size-4", c.icon),
2807
- children: n ?? /* @__PURE__ */ A(l, {})
3080
+ children: n ?? /* @__PURE__ */ j(l, {})
2808
3081
  }),
2809
- /* @__PURE__ */ A("span", {
3082
+ /* @__PURE__ */ j("span", {
2810
3083
  className: W("relative flex-1 text-cui-base font-medium", c.text),
2811
3084
  children: o
2812
3085
  }),
2813
- r && /* @__PURE__ */ A("div", {
3086
+ r && /* @__PURE__ */ j("div", {
2814
3087
  className: "relative ml-auto shrink-0",
2815
3088
  children: r
2816
3089
  }),
2817
- i && /* @__PURE__ */ A("div", {
3090
+ i && /* @__PURE__ */ j("div", {
2818
3091
  className: "relative ml-auto shrink-0",
2819
- children: /* @__PURE__ */ A(K, {
3092
+ children: /* @__PURE__ */ j(K, {
2820
3093
  variant: "transparent",
2821
3094
  size: "xs",
2822
- iconLeft: /* @__PURE__ */ A(x, {}),
3095
+ iconLeft: /* @__PURE__ */ j(x, {}),
2823
3096
  onClick: i,
2824
3097
  "aria-label": "Dismiss"
2825
3098
  })
@@ -2829,95 +3102,95 @@ var er = {
2829
3102
  });
2830
3103
  //#endregion
2831
3104
  //#region src/components/alert-dialog/alert-dialog.tsx
2832
- function rr(e) {
2833
- return /* @__PURE__ */ A(V.Root, { ...e });
3105
+ function br(e) {
3106
+ return /* @__PURE__ */ j(H.Root, { ...e });
2834
3107
  }
2835
- var ir = C(function({ className: e, ...t }, n) {
2836
- return /* @__PURE__ */ A(V.Trigger, {
3108
+ var xr = C(function({ className: e, ...t }, n) {
3109
+ return /* @__PURE__ */ j(H.Trigger, {
2837
3110
  ref: n,
2838
3111
  className: W(e),
2839
3112
  ...t
2840
3113
  });
2841
- }), ar = C(function({ className: e, ...t }, n) {
2842
- return /* @__PURE__ */ A(V.Backdrop, {
3114
+ }), Sr = C(function({ className: e, ...t }, n) {
3115
+ return /* @__PURE__ */ j(H.Backdrop, {
2843
3116
  ref: n,
2844
3117
  className: W("fixed inset-0 z-40 bg-cui-overlay backdrop-blur-[2px]", "transition-opacity duration-150", "data-[starting-style]:opacity-0", "data-[ending-style]:opacity-0", "motion-reduce:transition-none", e),
2845
3118
  ...t
2846
3119
  });
2847
3120
  });
2848
- function or({ className: e, children: t, ...n }) {
2849
- return /* @__PURE__ */ j(V.Portal, { children: [/* @__PURE__ */ A(ar, {}), /* @__PURE__ */ A(V.Popup, {
3121
+ function Cr({ className: e, children: t, ...n }) {
3122
+ return /* @__PURE__ */ M(H.Portal, { children: [/* @__PURE__ */ j(Sr, {}), /* @__PURE__ */ j(H.Popup, {
2850
3123
  className: W("bg-cui-base-1 fixed top-1/2 left-1/2 z-50 max-h-[85vh] w-[90vw] max-w-[450px] -translate-x-1/2 -translate-y-1/2 rounded-lg p-0.5 shadow-xl", "transition-[opacity,scale] duration-150 ease-out", "data-[starting-style]:opacity-0 data-[starting-style]:scale-[0.96]", "data-[ending-style]:opacity-0 data-[ending-style]:scale-[0.98]", "motion-reduce:transition-none", "focus:outline-none", e),
2851
3124
  ...n,
2852
3125
  children: t
2853
3126
  })] });
2854
3127
  }
2855
- var sr = {
2856
- Root: rr,
2857
- Trigger: ir,
2858
- Content: or,
3128
+ var wr = {
3129
+ Root: br,
3130
+ Trigger: xr,
3131
+ Content: Cr,
2859
3132
  Panel: C(function({ className: e, children: t }, n) {
2860
- return /* @__PURE__ */ A("div", {
3133
+ return /* @__PURE__ */ j("div", {
2861
3134
  ref: n,
2862
3135
  className: W("bg-cui-base-2 border-cui-neutral rounded-md border", e),
2863
3136
  children: t
2864
3137
  });
2865
3138
  }),
2866
3139
  Title: C(function({ className: e, ...t }, n) {
2867
- return /* @__PURE__ */ A(V.Title, {
3140
+ return /* @__PURE__ */ j(H.Title, {
2868
3141
  ref: n,
2869
3142
  className: W("text-cui-primary border-cui-neutral border-b px-4 py-3 text-cui-base font-medium", e),
2870
3143
  ...t
2871
3144
  });
2872
3145
  }),
2873
3146
  Description: C(function({ className: e, ...t }, n) {
2874
- return /* @__PURE__ */ A(V.Description, {
3147
+ return /* @__PURE__ */ j(H.Description, {
2875
3148
  ref: n,
2876
3149
  className: W("text-cui-secondary p-4 text-cui-base", e),
2877
3150
  ...t
2878
3151
  });
2879
3152
  }),
2880
3153
  Actions: C(function({ className: e, children: t }, n) {
2881
- return /* @__PURE__ */ A("div", {
3154
+ return /* @__PURE__ */ j("div", {
2882
3155
  ref: n,
2883
3156
  className: W("flex items-center justify-end gap-2 p-2", e),
2884
3157
  children: t
2885
3158
  });
2886
3159
  }),
2887
3160
  Close: C(function({ className: e, ...t }, n) {
2888
- return /* @__PURE__ */ A(V.Close, {
3161
+ return /* @__PURE__ */ j(H.Close, {
2889
3162
  ref: n,
2890
3163
  className: W(e),
2891
3164
  ...t
2892
3165
  });
2893
3166
  })
2894
- }, cr = {
3167
+ }, Tr = {
2895
3168
  Root: C(function({ className: e, ...t }, n) {
2896
- return /* @__PURE__ */ A(fe.Root, {
3169
+ return /* @__PURE__ */ j(pe.Root, {
2897
3170
  ref: n,
2898
3171
  className: W("flex flex-col", e),
2899
3172
  ...t
2900
3173
  });
2901
3174
  }),
2902
3175
  Item: C(function({ className: e, ...t }, n) {
2903
- return /* @__PURE__ */ A(fe.Item, {
3176
+ return /* @__PURE__ */ j(pe.Item, {
2904
3177
  ref: n,
2905
3178
  className: W("border-cui-neutral border-b last:border-b-0", e),
2906
3179
  ...t
2907
3180
  });
2908
3181
  }),
2909
3182
  Trigger: C(function({ icon: e, className: t, children: n, ...r }, i) {
2910
- return /* @__PURE__ */ j(fe.Trigger, {
3183
+ return /* @__PURE__ */ M(pe.Trigger, {
2911
3184
  ref: i,
2912
3185
  className: W("group flex w-full cursor-pointer items-center gap-2 rounded-sm py-3 text-cui-base font-medium", "text-cui-primary hover:text-cui-primary", "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2", t),
2913
3186
  ...r,
2914
3187
  children: [
2915
- /* @__PURE__ */ A(l, { className: W("text-cui-tertiary size-4 shrink-0", "transition-transform duration-200 ease-cui-out-expo", "group-data-[panel-open]:rotate-90", "motion-reduce:transition-none") }),
2916
- e && /* @__PURE__ */ A("span", {
3188
+ /* @__PURE__ */ j(l, { className: W("text-cui-tertiary size-4 shrink-0", "transition-transform duration-200 ease-cui-out-expo", "group-data-[panel-open]:rotate-90", "motion-reduce:transition-none") }),
3189
+ e && /* @__PURE__ */ j("span", {
2917
3190
  className: "flex size-5 shrink-0 items-center justify-center [&>svg]:size-4",
2918
3191
  children: e
2919
3192
  }),
2920
- /* @__PURE__ */ A("span", {
3193
+ /* @__PURE__ */ j("span", {
2921
3194
  className: "flex-1 text-left",
2922
3195
  children: n
2923
3196
  })
@@ -2925,24 +3198,24 @@ var sr = {
2925
3198
  });
2926
3199
  }),
2927
3200
  Content: C(function({ className: e, children: t, ...n }, r) {
2928
- return /* @__PURE__ */ A(fe.Panel, {
3201
+ return /* @__PURE__ */ j(pe.Panel, {
2929
3202
  ref: r,
2930
3203
  className: W("overflow-hidden", "h-[var(--accordion-panel-height)]", "transition-[height] duration-200 ease-cui-out-expo", "data-[starting-style]:h-0", "data-[ending-style]:h-0", "motion-reduce:transition-none", e),
2931
3204
  ...n,
2932
- children: /* @__PURE__ */ A("div", {
3205
+ children: /* @__PURE__ */ j("div", {
2933
3206
  className: "text-cui-secondary text-cui-base pb-3",
2934
3207
  children: t
2935
3208
  })
2936
3209
  });
2937
3210
  })
2938
- }, lr = C(function({ className: e, ...t }, n) {
2939
- return /* @__PURE__ */ A(pe.Root, {
3211
+ }, Er = C(function({ className: e, ...t }, n) {
3212
+ return /* @__PURE__ */ j(me.Root, {
2940
3213
  ref: n,
2941
3214
  className: W("flex flex-col", e),
2942
3215
  ...t
2943
3216
  });
2944
- }), ur = C(function({ className: e, layout: t = "fit", children: n, ...r }, i) {
2945
- let a = D(null), [o, s] = O(0), [c, l] = O(0), u = w(() => {
3217
+ }), Dr = C(function({ className: e, layout: t = "fit", children: n, ...r }, i) {
3218
+ let a = O(null), [o, s] = k(0), [c, l] = k(0), u = w(() => {
2946
3219
  let e = a.current;
2947
3220
  if (!e) return;
2948
3221
  let t = e.querySelectorAll("[role='tab']");
@@ -2952,7 +3225,7 @@ var sr = {
2952
3225
  (e.getAttribute("data-active") !== null || e.getAttribute("aria-selected") === "true") && (n = t);
2953
3226
  }), n < 0 && (n = 0), l(n);
2954
3227
  }, []);
2955
- return T(() => {
3228
+ return E(() => {
2956
3229
  u();
2957
3230
  let e = a.current;
2958
3231
  if (!e) return;
@@ -2966,7 +3239,7 @@ var sr = {
2966
3239
  return n.observe(e), () => {
2967
3240
  t.disconnect(), n.disconnect();
2968
3241
  };
2969
- }, [u]), /* @__PURE__ */ A(Jn, {
3242
+ }, [u]), /* @__PURE__ */ j(dr, {
2970
3243
  ref: (e) => {
2971
3244
  a.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
2972
3245
  },
@@ -2974,216 +3247,115 @@ var sr = {
2974
3247
  itemCount: o,
2975
3248
  layout: t,
2976
3249
  className: typeof e == "string" ? e : void 0,
2977
- children: /* @__PURE__ */ A(pe.List, {
3250
+ children: /* @__PURE__ */ j(me.List, {
2978
3251
  className: "contents",
2979
3252
  ...r,
2980
3253
  children: n
2981
3254
  })
2982
3255
  });
2983
- }), dr = {
3256
+ }), Or = {
2984
3257
  sm: "h-7 px-2.5",
2985
3258
  md: "h-8 px-3"
2986
- }, fr = {
2987
- Root: lr,
2988
- List: ur,
3259
+ }, kr = {
3260
+ Root: Er,
3261
+ List: Dr,
2989
3262
  Tab: C(function({ size: e = "sm", className: t, children: n, ...r }, i) {
2990
- return /* @__PURE__ */ A(pe.Tab, {
3263
+ return /* @__PURE__ */ j(me.Tab, {
2991
3264
  ref: i,
2992
3265
  "data-segmented-item": "",
2993
- className: W("relative z-10 flex items-center justify-center gap-1.5 rounded-sm", dr[e], "text-cui-base font-medium select-none cursor-pointer", "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus", "transition-colors duration-150", "motion-reduce:transition-none", "text-cui-tertiary hover:text-cui-secondary", "data-[active]:text-cui-primary", t),
3266
+ className: W("relative z-10 flex items-center justify-center gap-1.5 rounded-sm", Or[e], "text-cui-base font-medium select-none cursor-pointer", "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus", "transition-colors duration-150", "motion-reduce:transition-none", "text-cui-tertiary hover:text-cui-secondary", "data-[active]:text-cui-primary", t),
2994
3267
  ...r,
2995
3268
  children: n
2996
3269
  });
2997
3270
  }),
2998
3271
  Panel: C(function({ className: e, ...t }, n) {
2999
- return /* @__PURE__ */ A(pe.Panel, {
3272
+ return /* @__PURE__ */ j(me.Panel, {
3000
3273
  ref: n,
3001
3274
  className: W("rounded-sm pt-3 outline-none", "focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2", e),
3002
3275
  ...t
3003
3276
  });
3004
3277
  })
3005
- }, pr = {
3006
- right: "right",
3007
- left: "left",
3008
- bottom: "down",
3009
- top: "up"
3010
- }, mr = {
3011
- right: "inset-y-0 right-0 w-[min(420px,90vw)] p-2",
3012
- left: "inset-y-0 left-0 w-[min(420px,90vw)] p-2",
3013
- bottom: "inset-x-0 bottom-0 max-h-[85vh] p-2",
3014
- top: "inset-x-0 top-0 max-h-[85vh] p-2"
3015
- };
3016
- function hr({ side: e = "right", responsive: t, children: n, ...r }) {
3017
- return /* @__PURE__ */ A(H.Root, {
3018
- swipeDirection: pr[e],
3019
- ...r,
3020
- children: n
3021
- });
3022
- }
3023
- var gr = C(function({ className: e, ...t }, n) {
3024
- return /* @__PURE__ */ A(H.Trigger, {
3025
- ref: n,
3026
- className: W(e),
3027
- ...t
3028
- });
3029
- }), _r = C(function({ className: e, ...t }, n) {
3030
- return /* @__PURE__ */ A(H.Backdrop, {
3031
- ref: n,
3032
- className: W("fixed inset-0 z-40 bg-cui-overlay backdrop-blur-[2px]", "transition-opacity duration-200", "data-[starting-style]:opacity-0", "data-[ending-style]:opacity-0", "motion-reduce:transition-none", e),
3033
- ...t
3034
- });
3035
- });
3036
- function vr({ side: e = "right", responsive: t = !0, className: n, children: r, ...i }) {
3037
- return /* @__PURE__ */ j(H.Portal, { children: [/* @__PURE__ */ A(_r, {}), /* @__PURE__ */ A(H.Popup, {
3038
- className: W("group/drawer fixed z-50 flex outline-none", mr[e], "transition-transform duration-500 ease-cui-out-expo", e === "right" && ["data-[starting-style]:translate-x-[20%]", "data-[ending-style]:translate-x-[20%]"], e === "left" && ["data-[starting-style]:-translate-x-[20%]", "data-[ending-style]:-translate-x-[20%]"], e === "bottom" && ["data-[starting-style]:translate-y-[20%]", "data-[ending-style]:translate-y-[20%]"], e === "top" && ["data-[starting-style]:-translate-y-[20%]", "data-[ending-style]:-translate-y-[20%]"], "motion-reduce:transition-none", t && [
3039
- "max-md:inset-x-0 max-md:inset-y-auto max-md:bottom-0 max-md:right-auto max-md:left-auto",
3040
- "max-md:w-full max-md:max-h-[85vh]",
3041
- "max-md:data-[starting-style]:translate-x-0 max-md:data-[starting-style]:translate-y-[20%]",
3042
- "max-md:data-[ending-style]:translate-x-0 max-md:data-[ending-style]:translate-y-[20%]"
3043
- ]),
3044
- ...i,
3045
- children: /* @__PURE__ */ A("div", {
3046
- className: W("bg-cui-base-1 flex min-h-0 flex-1 rounded-lg p-0.5 shadow-xl", "transition-[opacity,scale] duration-500 ease-cui-out-expo", "group-data-[starting-style]/drawer:scale-95 group-data-[starting-style]/drawer:opacity-0", "group-data-[ending-style]/drawer:scale-95 group-data-[ending-style]/drawer:opacity-0", "motion-reduce:transition-none", n),
3047
- children: /* @__PURE__ */ A("div", {
3048
- className: "bg-cui-base-2 border-cui-neutral flex min-h-0 flex-1 flex-col overflow-hidden rounded-md border",
3049
- children: r
3050
- })
3051
- })
3052
- })] });
3053
- }
3054
- var yr = {
3055
- Root: hr,
3056
- Trigger: gr,
3057
- Content: vr,
3058
- Header: C(function({ className: e, children: t }, n) {
3059
- return /* @__PURE__ */ A("div", {
3060
- ref: n,
3061
- className: W("border-cui-neutral flex items-center justify-between border-b px-4 py-3", e),
3062
- children: t
3063
- });
3064
- }),
3065
- Title: C(function({ className: e, ...t }, n) {
3066
- return /* @__PURE__ */ A(H.Title, {
3067
- ref: n,
3068
- className: W("text-cui-primary text-cui-base font-medium", e),
3069
- ...t
3070
- });
3071
- }),
3072
- Description: C(function({ className: e, ...t }, n) {
3073
- return /* @__PURE__ */ A(H.Description, {
3074
- ref: n,
3075
- className: W("text-cui-secondary text-cui-base", e),
3076
- ...t
3077
- });
3078
- }),
3079
- Body: C(function({ className: e, children: t }, n) {
3080
- return /* @__PURE__ */ A("div", {
3081
- ref: n,
3082
- className: W("flex-1 overflow-y-auto p-4", e),
3083
- children: t
3084
- });
3085
- }),
3086
- Footer: C(function({ className: e, children: t }, n) {
3087
- return /* @__PURE__ */ A("div", {
3088
- ref: n,
3089
- className: W("border-cui-neutral flex items-center justify-end gap-2 border-t p-3", e),
3090
- children: t
3091
- });
3092
- }),
3093
- Close: C(function({ asIcon: e, className: t, children: n, ...r }, i) {
3094
- return e ?? !n ? /* @__PURE__ */ A(H.Close, {
3095
- ref: i,
3096
- className: W("text-cui-tertiary hover:text-cui-primary -m-1 flex size-7 cursor-pointer items-center justify-center rounded-sm outline-none", "transition-colors duration-150", "focus-visible:ring-2 focus-visible:ring-cui-focus", "motion-reduce:transition-none", t),
3097
- ...r,
3098
- children: /* @__PURE__ */ A(x, { className: "size-4" })
3099
- }) : /* @__PURE__ */ A(H.Close, {
3100
- ref: i,
3101
- className: W(t),
3102
- ...r,
3103
- children: n
3104
- });
3105
- })
3106
- }, br = C(function({ className: e, ...t }, n) {
3107
- return /* @__PURE__ */ A(U, {
3278
+ }, Ar = C(function({ className: e, ...t }, n) {
3279
+ return /* @__PURE__ */ j(U, {
3108
3280
  ref: n,
3109
3281
  className: W("bg-cui-base-2 flex h-full w-full flex-col overflow-hidden rounded-lg", e),
3110
3282
  ...t
3111
3283
  });
3112
- }), xr = C(function({ className: e, ...t }, n) {
3113
- return /* @__PURE__ */ A(q.SearchInput, {
3284
+ }), jr = C(function({ className: e, ...t }, n) {
3285
+ return /* @__PURE__ */ j(q.SearchInput, {
3114
3286
  className: "mb-0 bg-transparent px-2",
3115
- children: /* @__PURE__ */ A(U.Input, {
3287
+ children: /* @__PURE__ */ j(U.Input, {
3116
3288
  ref: n,
3117
3289
  className: W("text-cui-primary placeholder:text-cui-tertiary flex-1 bg-transparent py-1.5 text-cui-base outline-none", e),
3118
3290
  ...t
3119
3291
  })
3120
3292
  });
3121
- }), Sr = C(function({ className: e, ...t }, n) {
3122
- return /* @__PURE__ */ A(U.List, {
3293
+ }), Mr = C(function({ className: e, ...t }, n) {
3294
+ return /* @__PURE__ */ j(U.List, {
3123
3295
  ref: n,
3124
3296
  className: W("max-h-[300px] overflow-y-auto overscroll-contain p-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", e),
3125
3297
  ...t
3126
3298
  });
3127
- }), Cr = C(function({ className: e, ...t }, n) {
3128
- return /* @__PURE__ */ A(U.Empty, {
3299
+ }), Nr = C(function({ className: e, ...t }, n) {
3300
+ return /* @__PURE__ */ j(U.Empty, {
3129
3301
  ref: n,
3130
3302
  className: W("text-cui-secondary px-2 py-4 text-center text-cui-base", e),
3131
3303
  ...t
3132
3304
  });
3133
- }), wr = C(function({ className: e, ...t }, n) {
3134
- return /* @__PURE__ */ A(U.Group, {
3305
+ }), Pr = C(function({ className: e, ...t }, n) {
3306
+ return /* @__PURE__ */ j(U.Group, {
3135
3307
  ref: n,
3136
3308
  className: W("flex flex-col gap-0.5", "[&_[cmdk-group-heading]]:text-cui-tertiary [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:select-none", e),
3137
3309
  ...t
3138
3310
  });
3139
- }), Tr = C(function({ icon: e, shortcut: t, className: n, children: r, ...i }, a) {
3140
- return /* @__PURE__ */ j(U.Item, {
3311
+ }), Fr = C(function({ icon: e, shortcut: t, className: n, children: r, ...i }, a) {
3312
+ return /* @__PURE__ */ M(U.Item, {
3141
3313
  ref: a,
3142
3314
  className: W("group relative flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-cui-base select-none outline-none", "text-cui-primary", "data-[disabled=true]:pointer-events-none data-[disabled=true]:text-cui-tertiary", n),
3143
3315
  ...i,
3144
3316
  children: [
3145
- /* @__PURE__ */ A("div", { className: W("absolute inset-0 rounded-[inherit] bg-cui-subtle opacity-0", "group-data-[selected=true]:opacity-100", "transition-[inset] duration-150 ease-cui-out-expo motion-reduce:transition-none", "group-active:inset-px") }),
3146
- e && /* @__PURE__ */ A("span", {
3317
+ /* @__PURE__ */ j("div", { className: W("absolute inset-0 rounded-[inherit] bg-cui-subtle opacity-0", "group-data-[selected=true]:opacity-100", "transition-[inset] duration-150 ease-cui-out-expo motion-reduce:transition-none", "group-active:inset-px") }),
3318
+ e && /* @__PURE__ */ j("span", {
3147
3319
  className: W("relative z-[1] flex size-5 shrink-0 items-center justify-center [&>svg]:size-4", "text-cui-tertiary group-data-[selected=true]:text-cui-primary"),
3148
3320
  children: e
3149
3321
  }),
3150
- /* @__PURE__ */ A("span", {
3322
+ /* @__PURE__ */ j("span", {
3151
3323
  className: "relative z-[1] flex-1",
3152
3324
  children: r
3153
3325
  }),
3154
- t && /* @__PURE__ */ A("kbd", {
3326
+ t && /* @__PURE__ */ j("kbd", {
3155
3327
  className: "text-cui-tertiary text-cui-sm pointer-events-none relative z-[1] ml-auto tracking-widest",
3156
3328
  children: t
3157
3329
  })
3158
3330
  ]
3159
3331
  });
3160
- }), Er = C(function({ className: e, ...t }, n) {
3161
- return /* @__PURE__ */ A(U.Separator, {
3332
+ }), Ir = C(function({ className: e, ...t }, n) {
3333
+ return /* @__PURE__ */ j(U.Separator, {
3162
3334
  ref: n,
3163
3335
  className: W("border-cui-neutral mx-2 my-1 border-t", e),
3164
3336
  ...t
3165
3337
  });
3166
3338
  });
3167
- function Dr({ open: e, onOpenChange: t, children: n, className: r }) {
3168
- return /* @__PURE__ */ A(z.Root, {
3339
+ function Lr({ open: e, onOpenChange: t, children: n, className: r }) {
3340
+ return /* @__PURE__ */ j(B.Root, {
3169
3341
  open: e,
3170
3342
  onOpenChange: t,
3171
- children: /* @__PURE__ */ j(z.Portal, { children: [/* @__PURE__ */ A(z.Backdrop, { className: W("fixed inset-0 z-40 bg-cui-overlay backdrop-blur-[2px]", "transition-opacity duration-150", "data-[starting-style]:opacity-0", "data-[ending-style]:opacity-0", "motion-reduce:transition-none") }), /* @__PURE__ */ A(z.Popup, {
3343
+ children: /* @__PURE__ */ M(B.Portal, { children: [/* @__PURE__ */ j(B.Backdrop, { className: W("fixed inset-0 z-40 bg-cui-overlay backdrop-blur-[2px]", "transition-opacity duration-150", "data-[starting-style]:opacity-0", "data-[ending-style]:opacity-0", "motion-reduce:transition-none") }), /* @__PURE__ */ j(B.Popup, {
3172
3344
  className: W("bg-cui-base-1 fixed top-[20%] left-1/2 z-50 w-[90vw] max-w-[520px] -translate-x-1/2 rounded-lg p-1 shadow-lg", "transition-[opacity,scale] duration-150 ease-out", "data-[starting-style]:opacity-0 data-[starting-style]:scale-[0.96]", "data-[ending-style]:opacity-0 data-[ending-style]:scale-[0.98]", "motion-reduce:transition-none", "focus:outline-none", r),
3173
3345
  children: n
3174
3346
  })] })
3175
3347
  });
3176
3348
  }
3177
- var Or = {
3178
- Root: br,
3179
- Input: xr,
3180
- List: Sr,
3181
- Empty: Cr,
3182
- Group: wr,
3183
- Item: Tr,
3184
- Separator: Er,
3185
- Dialog: Dr
3186
- }, kr = {
3349
+ var Rr = {
3350
+ Root: Ar,
3351
+ Input: jr,
3352
+ List: Mr,
3353
+ Empty: Nr,
3354
+ Group: Pr,
3355
+ Item: Fr,
3356
+ Separator: Ir,
3357
+ Dialog: Lr
3358
+ }, zr = {
3187
3359
  xs: {
3188
3360
  height: "h-6",
3189
3361
  padding: "px-1.5",
@@ -3202,53 +3374,53 @@ var Or = {
3202
3374
  textPadding: "px-1",
3203
3375
  icon: "w-8"
3204
3376
  }
3205
- }, Ar = C(function({ size: e = "md", iconLeft: t, iconRight: n, disabled: r, className: i, children: a, ...o }, s) {
3206
- let c = kr[e];
3207
- return /* @__PURE__ */ j(me, {
3377
+ }, Br = C(function({ size: e = "md", iconLeft: t, iconRight: n, disabled: r, className: i, children: a, ...o }, s) {
3378
+ let c = zr[e];
3379
+ return /* @__PURE__ */ M(he, {
3208
3380
  ref: s,
3209
3381
  disabled: r,
3210
3382
  className: W("group/toggle-btn relative inline-flex cursor-pointer items-center justify-center", "rounded text-cui-base whitespace-pre select-none", "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2", "text-cui-secondary", "data-[pressed]:text-cui-primary", r && "pointer-events-none opacity-50", !a && !n ? W(c.height, c.icon) : W(c.height, c.padding, "w-fit"), i),
3211
3383
  ...o,
3212
3384
  children: [
3213
- /* @__PURE__ */ A("div", { className: W("absolute rounded-[inherit] inset-0 opacity-100", "bg-cui-base-2 border border-cui-neutral shadow-xs", "group-data-[pressed]/toggle-btn:bg-cui-subtle group-data-[pressed]/toggle-btn:border-cui-neutral", !r && [
3385
+ /* @__PURE__ */ j("div", { className: W("absolute rounded-[inherit] inset-0 opacity-100", "bg-cui-base-2 border border-cui-neutral shadow-xs", "group-data-[pressed]/toggle-btn:bg-cui-subtle group-data-[pressed]/toggle-btn:border-cui-neutral", !r && [
3214
3386
  "transition-[inset,opacity,background-color] duration-150 ease-cui-out-expo motion-reduce:transition-none",
3215
3387
  "group-hover/toggle-btn:bg-cui-subtle",
3216
3388
  "group-active/toggle-btn:inset-px"
3217
3389
  ]) }),
3218
- t && /* @__PURE__ */ A("span", {
3390
+ t && /* @__PURE__ */ j("span", {
3219
3391
  className: "relative z-[1] flex size-5 shrink-0 items-center justify-center [&>svg]:size-4",
3220
3392
  children: t
3221
3393
  }),
3222
- a && /* @__PURE__ */ A("span", {
3394
+ a && /* @__PURE__ */ j("span", {
3223
3395
  className: W("relative z-[1] inline", c.textPadding),
3224
3396
  children: a
3225
3397
  }),
3226
- n && /* @__PURE__ */ A("span", {
3398
+ n && /* @__PURE__ */ j("span", {
3227
3399
  className: "relative z-[1] flex size-5 shrink-0 items-center justify-center [&>svg]:size-4",
3228
3400
  children: n
3229
3401
  })
3230
3402
  ]
3231
3403
  });
3232
- }), jr = C(function({ orientation: e = "horizontal", className: t, ...n }, r) {
3233
- return /* @__PURE__ */ A("div", {
3404
+ }), Vr = C(function({ orientation: e = "horizontal", className: t, ...n }, r) {
3405
+ return /* @__PURE__ */ j("div", {
3234
3406
  ref: r,
3235
3407
  role: "group",
3236
3408
  className: W("inline-flex", e === "vertical" ? "flex-col" : "flex-row", e === "horizontal" ? ["[&>*]:rounded-none [&>*:first-child]:rounded-l [&>*:last-child]:rounded-r", "[&>*+*]:-ml-px"] : ["[&>*]:rounded-none [&>*:first-child]:rounded-t [&>*:last-child]:rounded-b", "[&>*+*]:-mt-px"], t),
3237
3409
  ...n
3238
3410
  });
3239
- }), Mr = C(function({ orientation: e = "horizontal", className: t, ...n }, r) {
3240
- return /* @__PURE__ */ A(he, {
3411
+ }), Hr = C(function({ orientation: e = "horizontal", className: t, ...n }, r) {
3412
+ return /* @__PURE__ */ j(ge, {
3241
3413
  ref: r,
3242
3414
  className: W("inline-flex", e === "vertical" ? "flex-col" : "flex-row", e === "horizontal" ? ["[&>*]:rounded-none [&>*:first-child]:rounded-l [&>*:last-child]:rounded-r", "[&>*+*]:-ml-px"] : ["[&>*]:rounded-none [&>*:first-child]:rounded-t [&>*:last-child]:rounded-b", "[&>*+*]:-mt-px"], t),
3243
3415
  ...n
3244
3416
  });
3245
- }), Nr = C(function({ orientation: e = "vertical", className: t, ...n }, r) {
3246
- return /* @__PURE__ */ A(ge, {
3417
+ }), Ur = C(function({ orientation: e = "vertical", className: t, ...n }, r) {
3418
+ return /* @__PURE__ */ j(_e, {
3247
3419
  ref: r,
3248
3420
  className: W("flex gap-2", e === "horizontal" ? "flex-row items-center" : "flex-col", t),
3249
3421
  ...n
3250
3422
  });
3251
- }), Pr = {
3423
+ }), Wr = {
3252
3424
  sm: {
3253
3425
  radio: "size-4",
3254
3426
  indicator: "size-1.5",
@@ -3259,71 +3431,71 @@ var Or = {
3259
3431
  indicator: "size-2",
3260
3432
  label: "text-cui-base"
3261
3433
  }
3262
- }, Fr = C(function({ size: e = "md", label: t, className: n, value: r, ...i }, a) {
3263
- let o = Pr[e], s = /* @__PURE__ */ A(_e.Root, {
3434
+ }, Gr = C(function({ size: e = "md", label: t, className: n, value: r, ...i }, a) {
3435
+ let o = Wr[e], s = /* @__PURE__ */ j(ve.Root, {
3264
3436
  ref: a,
3265
3437
  value: r,
3266
3438
  className: W("group/radio relative inline-flex shrink-0 items-center justify-center rounded-full", "border border-cui-neutral bg-cui-base-2", "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2", "transition-colors duration-150 ease-out", "motion-reduce:transition-none", "cursor-pointer", "data-[checked]:border-cui-accent data-[checked]:bg-cui-accent", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", "before:absolute before:inset-1/2 before:size-8 before:-translate-1/2", o.radio, !t && n),
3267
3439
  ...i,
3268
- children: /* @__PURE__ */ A(_e.Indicator, { className: W("rounded-full bg-cui-accent-on", "scale-100 opacity-100", "data-[unchecked]:scale-0 data-[unchecked]:opacity-0", "data-[starting-style]:scale-0 data-[starting-style]:opacity-0", "data-[ending-style]:scale-0 data-[ending-style]:opacity-0", "transition-[scale,opacity] duration-150 ease-cui-out-expo", "motion-reduce:transition-none", o.indicator) })
3440
+ children: /* @__PURE__ */ j(ve.Indicator, { className: W("rounded-full bg-cui-accent-on", "scale-100 opacity-100", "data-[unchecked]:scale-0 data-[unchecked]:opacity-0", "data-[starting-style]:scale-0 data-[starting-style]:opacity-0", "data-[ending-style]:scale-0 data-[ending-style]:opacity-0", "transition-[scale,opacity] duration-150 ease-cui-out-expo", "motion-reduce:transition-none", o.indicator) })
3269
3441
  });
3270
- return t ? /* @__PURE__ */ j("label", {
3442
+ return t ? /* @__PURE__ */ M("label", {
3271
3443
  className: W("inline-flex items-center gap-2 select-none", "cursor-pointer data-[disabled]:cursor-not-allowed", n),
3272
- children: [s, /* @__PURE__ */ A("span", {
3444
+ children: [s, /* @__PURE__ */ j("span", {
3273
3445
  className: W("text-cui-primary", o.label),
3274
3446
  children: t
3275
3447
  })]
3276
3448
  }) : s;
3277
3449
  });
3278
- function Ir({ value: e, title: t, description: n, icon: r, disabled: i, className: a }) {
3279
- return /* @__PURE__ */ j("label", {
3450
+ function Kr({ value: e, title: t, description: n, icon: r, disabled: i, className: a }) {
3451
+ return /* @__PURE__ */ M("label", {
3280
3452
  className: W("group/card relative flex cursor-pointer items-start gap-3 rounded-lg p-3 ring-1 ring-cui-neutral select-none", "transition-all duration-150 ease-out", "hover:bg-cui-subtle/50", "has-[span[data-checked]]:ring-2 has-[span[data-checked]]:ring-cui-accent has-[span[data-checked]]:bg-cui-subtle", i && "pointer-events-none opacity-50", a),
3281
3453
  children: [
3282
- r && /* @__PURE__ */ A("span", {
3454
+ r && /* @__PURE__ */ j("span", {
3283
3455
  className: "text-cui-secondary flex size-5 shrink-0 items-center justify-center [&>svg]:size-5",
3284
3456
  children: r
3285
3457
  }),
3286
- /* @__PURE__ */ j("div", {
3458
+ /* @__PURE__ */ M("div", {
3287
3459
  className: "flex flex-1 flex-col gap-0.5",
3288
- children: [/* @__PURE__ */ A("span", {
3460
+ children: [/* @__PURE__ */ j("span", {
3289
3461
  className: "text-cui-primary text-cui-base font-medium",
3290
3462
  children: t
3291
- }), n && /* @__PURE__ */ A("span", {
3463
+ }), n && /* @__PURE__ */ j("span", {
3292
3464
  className: "text-cui-secondary text-cui-sm",
3293
3465
  children: n
3294
3466
  })]
3295
3467
  }),
3296
- /* @__PURE__ */ A(_e.Root, {
3468
+ /* @__PURE__ */ j(ve.Root, {
3297
3469
  value: e,
3298
3470
  disabled: i,
3299
3471
  className: W("group/radio relative mt-0.5 inline-flex size-[18px] shrink-0 items-center justify-center rounded-full", "border border-cui-neutral bg-cui-base-2", "outline-none focus-visible:ring-2 focus-visible:ring-cui-focus focus-visible:ring-offset-2", "transition-colors duration-150 ease-out", "motion-reduce:transition-none", "data-[checked]:border-cui-accent data-[checked]:bg-cui-accent"),
3300
- children: /* @__PURE__ */ A(_e.Indicator, { className: W("size-2 rounded-full bg-cui-accent-on", "scale-100 opacity-100", "data-[unchecked]:scale-0 data-[unchecked]:opacity-0", "data-[starting-style]:scale-0 data-[starting-style]:opacity-0", "data-[ending-style]:scale-0 data-[ending-style]:opacity-0", "transition-[scale,opacity] duration-150 ease-cui-out-expo", "motion-reduce:transition-none") })
3472
+ children: /* @__PURE__ */ j(ve.Indicator, { className: W("size-2 rounded-full bg-cui-accent-on", "scale-100 opacity-100", "data-[unchecked]:scale-0 data-[unchecked]:opacity-0", "data-[starting-style]:scale-0 data-[starting-style]:opacity-0", "data-[ending-style]:scale-0 data-[ending-style]:opacity-0", "transition-[scale,opacity] duration-150 ease-cui-out-expo", "motion-reduce:transition-none") })
3301
3473
  })
3302
3474
  ]
3303
3475
  });
3304
3476
  }
3305
- var Lr = {
3306
- Root: Nr,
3307
- Item: Fr,
3308
- Card: Ir
3309
- }, Rr = C(function({ show: e, message: t = "You have unsaved changes", discardLabel: n = "Reset", saveLabel: r = "Save changes", onDiscard: i, onSave: a, saving: o = !1, saveDisabled: s = !1, shake: c = !1, className: l }, u) {
3310
- return /* @__PURE__ */ A("div", {
3477
+ var qr = {
3478
+ Root: Ur,
3479
+ Item: Gr,
3480
+ Card: Kr
3481
+ }, Jr = C(function({ show: e, message: t = "You have unsaved changes", discardLabel: n = "Reset", saveLabel: r = "Save changes", onDiscard: i, onSave: a, saving: o = !1, saveDisabled: s = !1, shake: c = !1, className: l }, u) {
3482
+ return /* @__PURE__ */ j("div", {
3311
3483
  ref: u,
3312
3484
  "aria-live": "polite",
3313
3485
  className: W("pointer-events-none fixed inset-x-0 bottom-0 z-50 flex justify-center pb-6", l),
3314
- children: /* @__PURE__ */ j("div", {
3486
+ children: /* @__PURE__ */ M("div", {
3315
3487
  className: W("pointer-events-auto", "bg-cui-base-2 border-cui-neutral shadow-lg", "flex items-center gap-5 rounded-xl border py-1.5 pr-1.5 pl-3.5", "transition-all duration-500 ease-cui-out-expo", "motion-reduce:transition-none", e ? "translate-y-0 scale-100 opacity-100" : "pointer-events-none translate-y-4 scale-95 opacity-0", c && "animate-cui-shake"),
3316
- children: [/* @__PURE__ */ A("span", {
3488
+ children: [/* @__PURE__ */ j("span", {
3317
3489
  className: "text-cui-primary text-cui-base font-medium",
3318
3490
  children: t
3319
- }), /* @__PURE__ */ j("div", {
3491
+ }), /* @__PURE__ */ M("div", {
3320
3492
  className: "flex items-center gap-1.5",
3321
- children: [/* @__PURE__ */ A(K, {
3493
+ children: [/* @__PURE__ */ j(K, {
3322
3494
  variant: "danger-light",
3323
3495
  size: "sm",
3324
3496
  onClick: i,
3325
3497
  children: n
3326
- }), /* @__PURE__ */ A(K, {
3498
+ }), /* @__PURE__ */ j(K, {
3327
3499
  variant: "primary",
3328
3500
  size: "sm",
3329
3501
  onClick: a,
@@ -3334,18 +3506,18 @@ var Lr = {
3334
3506
  })]
3335
3507
  })
3336
3508
  });
3337
- }), zr = {
3509
+ }), Yr = {
3338
3510
  narrow: "max-w-[800px]",
3339
3511
  wide: "max-w-[1100px]"
3340
- }, Br = C(function({ title: e, maxWidth: t = "narrow", leading: n, children: r, className: i }, a) {
3341
- return /* @__PURE__ */ A("div", {
3512
+ }, Xr = C(function({ title: e, maxWidth: t = "narrow", leading: n, children: r, className: i }, a) {
3513
+ return /* @__PURE__ */ j("div", {
3342
3514
  ref: a,
3343
3515
  className: "flex flex-1 flex-col items-center gap-6 py-6",
3344
- children: /* @__PURE__ */ j("div", {
3345
- className: W("flex w-full flex-col gap-6 px-8", zr[t], i),
3516
+ children: /* @__PURE__ */ M("div", {
3517
+ className: W("flex w-full flex-col gap-6 px-8", Yr[t], i),
3346
3518
  children: [
3347
3519
  n,
3348
- e && /* @__PURE__ */ A("span", {
3520
+ e && /* @__PURE__ */ j("span", {
3349
3521
  className: "text-cui-primary text-cui-lg font-semibold",
3350
3522
  children: e
3351
3523
  }),
@@ -3356,12 +3528,12 @@ var Lr = {
3356
3528
  });
3357
3529
  //#endregion
3358
3530
  //#region src/lib/use-dirty-state.ts
3359
- function Vr(e) {
3360
- let [t, n] = O(e), [r, i] = O(e);
3531
+ function Zr(e) {
3532
+ let [t, n] = k(e), [r, i] = k(e);
3361
3533
  return {
3362
3534
  draft: r,
3363
3535
  saved: t,
3364
- dirty: E(() => JSON.stringify(r) !== JSON.stringify(t), [r, t]),
3536
+ dirty: D(() => JSON.stringify(r) !== JSON.stringify(t), [r, t]),
3365
3537
  setDraft: i,
3366
3538
  update: w((e, t) => {
3367
3539
  i((n) => ({
@@ -3378,4 +3550,4 @@ function Vr(e) {
3378
3550
  };
3379
3551
  }
3380
3552
  //#endregion
3381
- export { cr as Accordion, nr as Alert, sr as AlertDialog, St as AppHeader, _t as Avatar, nn as Badge, Je as Breadcrumb, K as Button, jr as ButtonGroup, J as Card, Qe as Checkbox, Fe as Combobox, Le as ComboboxButton, Re as ComboboxContent, Be as ComboboxGroup, Ve as ComboboxGroupLabel, ze as ComboboxOption, He as ComboboxSeparator, Ie as ComboboxTrigger, Or as Command, Bn as DataTable, qn as DataTableFacetedFilter, Hn as DataTableSearch, Vn as DataTableToolbar, Tn as Dialog, yr as Drawer, Q as DropdownMenu, un as FlickeringGrid, cn as Form, G as Hover, xe as HoverGroup, st as Logo, ot as NavLink, at as NavLinks, Dt as PageLayout, Rn as Pagination, Ae as PixelSpinner, Kn as Popover, Lr as RadioGroup, Rr as SaveBar, Zn as SegmentedControl, Gt as Select, qt as SelectButton, Jt as SelectContent, Zt as SelectGroup, Qt as SelectGroupLabel, Yt as SelectOption, Xt as SelectSeparator, Kt as SelectTrigger, $t as Separator, Ct as SettingsCard, Br as SettingsPage, wt as SettingsRow, Wt as Sidebar, dn as Skeleton, Me as Spinner, $ as Table, fr as Tabs, Xe as Toggle, Ar as ToggleButton, Mr as ToggleButtonGroup, X as Tooltip, $n as UserMenu, W as cn, Nt as createTooltipHandle, Vr as useDirtyState, Z as useSidebar };
3553
+ export { Tr as Accordion, yr as Alert, wr as AlertDialog, Ct as AppHeader, vt as Avatar, Cn as Badge, Ye as Breadcrumb, K as Button, Vr as ButtonGroup, J as Card, $e as Checkbox, Ie as Combobox, Re as ComboboxButton, ze as ComboboxContent, Ve as ComboboxGroup, He as ComboboxGroupLabel, Be as ComboboxOption, Ue as ComboboxSeparator, Le as ComboboxTrigger, Rr as Command, rr as DataTable, ur as DataTableFacetedFilter, ar as DataTableSearch, ir as DataTableToolbar, Hn as Dialog, Ft as Drawer, Q as DropdownMenu, Lt as FlickeringGrid, On as Form, G as Hover, Se as HoverGroup, ct as Logo, st as NavLink, ot as NavLinks, Ot as PageLayout, tr as Pagination, je as PixelSpinner, lr as Popover, qr as RadioGroup, Jr as SaveBar, mr as SegmentedControl, fn as Select, mn as SelectButton, hn as SelectContent, vn as SelectGroup, yn as SelectGroupLabel, gn as SelectOption, _n as SelectSeparator, pn as SelectTrigger, bn as Separator, wt as SettingsCard, Xr as SettingsPage, Tt as SettingsRow, dn as Sidebar, Rt as Skeleton, Ne as Spinner, $ as Table, kr as Tabs, Ze as Toggle, Br as ToggleButton, Hr as ToggleButtonGroup, X as Tooltip, gr as UserMenu, W as cn, Wt as createTooltipHandle, Zr as useDirtyState, Z as useSidebar };