@jinaan/uikit 0.1.30 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,32 +1,32 @@
1
- import { jsx as e, jsxs as s, Fragment as Oe } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as s, Fragment as Oe } from "react/jsx-runtime";
2
2
  import { CircleNotch as Lt, Robot as Rt, Terminal as At, Check as X, Copy as Xe, XCircle as Bt, Warning as Ft, CheckCircle as $t, Info as qt, Minus as Gt, X as ie, CaretDown as oe, CaretRight as Ht, MagnifyingGlass as Vt, Columns as Ut, Lock as Wt, DotsSixVertical as Ot, FunnelSimple as $e, WarningCircle as Xt, CaretUp as Jt, CaretUpDown as Qt } from "@phosphor-icons/react";
3
- import { forwardRef as b, useState as z, Children as Je, isValidElement as Qe, useRef as ae, useEffect as U, useContext as B, useCallback as Yt, createContext as J, useId as de, useMemo as qe } from "react";
3
+ import { forwardRef as f, useState as T, Children as Je, isValidElement as Qe, useRef as ae, useEffect as U, useContext as B, useCallback as Yt, createContext as J, useId as de, useMemo as qe } from "react";
4
4
  import { Slot as Zt } from "@radix-ui/react-slot";
5
5
  import { cva as we } from "class-variance-authority";
6
6
  import { clsx as Kt } from "clsx";
7
7
  import { twMerge as ea } from "tailwind-merge";
8
8
  import * as Ce from "@radix-ui/react-avatar";
9
9
  import * as Ge from "@radix-ui/react-checkbox";
10
- import * as P from "@radix-ui/react-dialog";
11
- import * as C from "@radix-ui/react-dropdown-menu";
12
- import * as M from "@radix-ui/react-select";
10
+ import * as I from "@radix-ui/react-dialog";
11
+ import * as z from "@radix-ui/react-dropdown-menu";
12
+ import * as P from "@radix-ui/react-select";
13
13
  import * as ta from "@radix-ui/react-label";
14
14
  import * as aa from "@radix-ui/react-separator";
15
15
  import * as O from "@radix-ui/react-tooltip";
16
- function o(...t) {
17
- return ea(Kt(t));
16
+ function o(...e) {
17
+ return ea(Kt(e));
18
18
  }
19
- function ra(t, a, n) {
20
- if (a === n || a < 0 || n < 0 || a >= t.length || n >= t.length)
21
- return t;
22
- const l = [...t], [i] = l.splice(a, 1);
19
+ function ra(e, a, n) {
20
+ if (a === n || a < 0 || n < 0 || a >= e.length || n >= e.length)
21
+ return e;
22
+ const l = [...e], [i] = l.splice(a, 1);
23
23
  return l.splice(n, 0, i), l;
24
24
  }
25
- function na({ className: t }) {
26
- return /* @__PURE__ */ e(
25
+ function na({ className: e }) {
26
+ return /* @__PURE__ */ t(
27
27
  Lt,
28
28
  {
29
- className: o("size-4 animate-spin text-muted", t),
29
+ className: o("size-4 animate-spin text-muted", e),
30
30
  weight: "bold",
31
31
  "aria-hidden": !0
32
32
  }
@@ -65,37 +65,37 @@ const la = we(
65
65
  lg: "[&_svg]:size-[var(--control-icon-lg)]",
66
66
  xl: "[&_svg]:size-[var(--control-icon-xl)]",
67
67
  icon: "[&_svg]:size-[var(--control-icon-md)]"
68
- }, D = b(
68
+ }, M = f(
69
69
  ({
70
- className: t,
70
+ className: e,
71
71
  variant: a,
72
72
  size: n = "md",
73
73
  asChild: l = !1,
74
74
  leadingIcon: i,
75
- trailingIcon: d,
75
+ trailingIcon: c,
76
76
  iconOnly: u = !1,
77
77
  loading: m = !1,
78
- fullWidth: h = !1,
78
+ fullWidth: b = !1,
79
79
  disabled: g,
80
- children: f,
81
- ...N
82
- }, T) => {
83
- const S = l ? Zt : "button", w = ia[n ?? "md"];
84
- return /* @__PURE__ */ e(
85
- S,
80
+ children: h,
81
+ ...y
82
+ }, S) => {
83
+ const k = l ? Zt : "button", w = ia[n ?? "md"];
84
+ return /* @__PURE__ */ t(
85
+ k,
86
86
  {
87
- ref: T,
87
+ ref: S,
88
88
  "aria-busy": m || void 0,
89
89
  disabled: l ? void 0 : g || m,
90
90
  className: o(
91
91
  la({ variant: a, size: n }),
92
92
  u && "aspect-square px-0",
93
- h && "w-full",
93
+ b && "w-full",
94
94
  m && "disabled:opacity-100",
95
- t
95
+ e
96
96
  ),
97
- ...N,
98
- children: l ? f : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
97
+ ...y,
98
+ children: l ? h : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
99
99
  /* @__PURE__ */ s(
100
100
  "span",
101
101
  {
@@ -105,13 +105,13 @@ const la = we(
105
105
  ),
106
106
  "aria-hidden": m || void 0,
107
107
  children: [
108
- !m && i ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: i }) : null,
109
- f,
110
- !m && d ? /* @__PURE__ */ e("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: d }) : null
108
+ !m && i ? /* @__PURE__ */ t("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: i }) : null,
109
+ h,
110
+ !m && c ? /* @__PURE__ */ t("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: c }) : null
111
111
  ]
112
112
  }
113
113
  ),
114
- /* @__PURE__ */ e(
114
+ /* @__PURE__ */ t(
115
115
  "span",
116
116
  {
117
117
  "data-button-spinner": !0,
@@ -120,7 +120,7 @@ const la = we(
120
120
  m ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
121
121
  ),
122
122
  "aria-hidden": !0,
123
- children: /* @__PURE__ */ e(na, { className: o("text-current", w) })
123
+ children: /* @__PURE__ */ t(na, { className: o("text-current", w) })
124
124
  }
125
125
  )
126
126
  ] })
@@ -128,29 +128,29 @@ const la = we(
128
128
  );
129
129
  }
130
130
  );
131
- D.displayName = "Button";
132
- function ar({
133
- command: t,
131
+ M.displayName = "Button";
132
+ function rr({
133
+ command: e,
134
134
  tag: a = "Build with agents",
135
135
  icon: n,
136
136
  className: l
137
137
  }) {
138
- const [i, d] = z(!1), u = async () => {
138
+ const [i, c] = T(!1), u = async () => {
139
139
  try {
140
- await navigator.clipboard.writeText(t), d(!0), window.setTimeout(() => d(!1), 1500);
140
+ await navigator.clipboard.writeText(e), c(!0), window.setTimeout(() => c(!1), 1500);
141
141
  } catch {
142
142
  }
143
143
  };
144
144
  return /* @__PURE__ */ s("div", { className: o("relative inline-flex max-w-full", l), children: [
145
145
  /* @__PURE__ */ s("span", { className: "absolute -top-2.5 left-4 z-10 inline-flex items-center gap-1.5 rounded-md bg-fg px-2 py-1 text-[11px] font-medium text-canvas shadow-sm", children: [
146
- n ?? /* @__PURE__ */ e(Rt, { className: "size-3.5", weight: "fill" }),
146
+ n ?? /* @__PURE__ */ t(Rt, { className: "size-3.5", weight: "fill" }),
147
147
  a
148
148
  ] }),
149
149
  /* @__PURE__ */ s("div", { className: "mt-2 flex w-full items-center gap-2 rounded-xl border border-line bg-surface py-2 pl-3 pr-2 shadow-sm", children: [
150
- /* @__PURE__ */ e(At, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
151
- /* @__PURE__ */ e("span", { className: "truncate font-mono text-sm text-fg", children: t }),
152
- /* @__PURE__ */ e(
153
- D,
150
+ /* @__PURE__ */ t(At, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
151
+ /* @__PURE__ */ t("span", { className: "truncate font-mono text-sm text-fg", children: e }),
152
+ /* @__PURE__ */ t(
153
+ M,
154
154
  {
155
155
  variant: "ghost",
156
156
  size: "sm",
@@ -158,40 +158,40 @@ function ar({
158
158
  "aria-label": "Copy prompt",
159
159
  className: "ml-auto",
160
160
  onClick: u,
161
- children: i ? /* @__PURE__ */ e(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Xe, {})
161
+ children: i ? /* @__PURE__ */ t(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ t(Xe, {})
162
162
  }
163
163
  )
164
164
  ] })
165
165
  ] });
166
166
  }
167
- const Ye = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
167
+ const Ye = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
168
168
  Ce.Root,
169
169
  {
170
170
  ref: n,
171
171
  className: o(
172
172
  "relative flex size-8 shrink-0 overflow-hidden rounded-full border border-line",
173
- t
173
+ e
174
174
  ),
175
175
  ...a
176
176
  }
177
177
  ));
178
178
  Ye.displayName = "Avatar";
179
- const Ze = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
179
+ const Ze = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
180
180
  Ce.Image,
181
181
  {
182
182
  ref: n,
183
- className: o("aspect-square size-full object-cover", t),
183
+ className: o("aspect-square size-full object-cover", e),
184
184
  ...a
185
185
  }
186
186
  ));
187
187
  Ze.displayName = "AvatarImage";
188
- const Ke = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
188
+ const Ke = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
189
189
  Ce.Fallback,
190
190
  {
191
191
  ref: n,
192
192
  className: o(
193
193
  "flex size-full items-center justify-center bg-elevated text-xs font-medium text-muted",
194
- t
194
+ e
195
195
  ),
196
196
  ...a
197
197
  }
@@ -227,9 +227,9 @@ const oa = we(
227
227
  },
228
228
  defaultVariants: { variant: "neutral" }
229
229
  });
230
- function da({ className: t, variant: a, dot: n = !1, children: l, ...i }) {
231
- return /* @__PURE__ */ s("span", { className: o(oa({ variant: a }), t), ...i, children: [
232
- n ? /* @__PURE__ */ e("span", { className: o(sa({ variant: a })), "aria-hidden": !0 }) : null,
230
+ function da({ className: e, variant: a, dot: n = !1, children: l, ...i }) {
231
+ return /* @__PURE__ */ s("span", { className: o(oa({ variant: a }), e), ...i, children: [
232
+ n ? /* @__PURE__ */ t("span", { className: o(sa({ variant: a })), "aria-hidden": !0 }) : null,
233
233
  l
234
234
  ] });
235
235
  }
@@ -255,18 +255,18 @@ const ca = {
255
255
  iconClassName: "text-error"
256
256
  }
257
257
  };
258
- function rr({
259
- variant: t = "info",
258
+ function nr({
259
+ variant: e = "info",
260
260
  title: a,
261
261
  children: n,
262
262
  icon: l,
263
263
  className: i
264
264
  }) {
265
- const { Icon: d, className: u, iconClassName: m } = ca[t];
265
+ const { Icon: c, className: u, iconClassName: m } = ca[e];
266
266
  return /* @__PURE__ */ s(
267
267
  "div",
268
268
  {
269
- role: t === "error" ? "alert" : void 0,
269
+ role: e === "error" ? "alert" : void 0,
270
270
  className: o(
271
271
  "flex items-start gap-2.5 rounded-lg border px-3.5 py-3 text-sm",
272
272
  "animate-in fade-in-0 slide-in-from-top-1 duration-200 motion-reduce:animate-none",
@@ -274,91 +274,91 @@ function rr({
274
274
  i
275
275
  ),
276
276
  children: [
277
- /* @__PURE__ */ e("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", m), children: l ?? /* @__PURE__ */ e(d, { weight: "fill" }) }),
277
+ /* @__PURE__ */ t("span", { className: o("mt-0.5 shrink-0 [&_svg]:size-4", m), children: l ?? /* @__PURE__ */ t(c, { weight: "fill" }) }),
278
278
  /* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
279
- a ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: a }) : null,
280
- n ? /* @__PURE__ */ e("div", { className: "text-muted", children: n }) : null
279
+ a ? /* @__PURE__ */ t("p", { className: "font-medium text-fg", children: a }) : null,
280
+ n ? /* @__PURE__ */ t("div", { className: "text-muted", children: n }) : null
281
281
  ] })
282
282
  ]
283
283
  }
284
284
  );
285
285
  }
286
286
  function ua({
287
- className: t,
287
+ className: e,
288
288
  ...a
289
289
  }) {
290
- return /* @__PURE__ */ e(
290
+ return /* @__PURE__ */ t(
291
291
  "div",
292
292
  {
293
293
  className: o(
294
294
  "w-full overflow-hidden rounded-(--table-radius-outer) bg-table-container p-(--table-inset)",
295
- t
295
+ e
296
296
  ),
297
297
  ...a
298
298
  }
299
299
  );
300
300
  }
301
301
  function ma({
302
- className: t,
302
+ className: e,
303
303
  ...a
304
304
  }) {
305
- return /* @__PURE__ */ e(
305
+ return /* @__PURE__ */ t(
306
306
  "div",
307
307
  {
308
308
  className: o(
309
309
  "overflow-hidden rounded-(--table-radius-panel) border border-table-panel-border bg-table-panel",
310
- t
310
+ e
311
311
  ),
312
312
  ...a
313
313
  }
314
314
  );
315
315
  }
316
- function nr({ className: t, ...a }) {
317
- return /* @__PURE__ */ e(
316
+ function lr({ className: e, ...a }) {
317
+ return /* @__PURE__ */ t(
318
318
  "table",
319
319
  {
320
- className: o("w-full table-fixed border-collapse caption-bottom text-sm", t),
320
+ className: o("w-full table-fixed border-collapse caption-bottom text-sm", e),
321
321
  ...a
322
322
  }
323
323
  );
324
324
  }
325
- function lr({ className: t, ...a }) {
326
- return /* @__PURE__ */ e("thead", { className: t, ...a });
325
+ function ir({ className: e, ...a }) {
326
+ return /* @__PURE__ */ t("thead", { className: e, ...a });
327
327
  }
328
- function pa({ className: t, ...a }) {
329
- return /* @__PURE__ */ e("tbody", { className: o("[&_tr:last-child]:border-0", t), ...a });
328
+ function pa({ className: e, ...a }) {
329
+ return /* @__PURE__ */ t("tbody", { className: o("[&_tr:last-child]:border-0", e), ...a });
330
330
  }
331
- function fa({ className: t, ...a }) {
332
- return /* @__PURE__ */ e(
331
+ function fa({ className: e, ...a }) {
332
+ return /* @__PURE__ */ t(
333
333
  "tr",
334
334
  {
335
335
  className: o(
336
336
  "border-b border-table-panel-border transition-colors last:border-0 hover:bg-table-row-hover data-[state=selected]:bg-table-row-selected",
337
- t
337
+ e
338
338
  ),
339
339
  ...a
340
340
  }
341
341
  );
342
342
  }
343
- function ir({ className: t, ...a }) {
344
- return /* @__PURE__ */ e(
343
+ function or({ className: e, ...a }) {
344
+ return /* @__PURE__ */ t(
345
345
  "th",
346
346
  {
347
347
  className: o(
348
348
  "h-(--table-header-h) whitespace-nowrap px-(--table-pad-x) text-left align-middle text-[0.8125rem] font-medium text-table-header",
349
- t
349
+ e
350
350
  ),
351
351
  ...a
352
352
  }
353
353
  );
354
354
  }
355
- function he({ className: t, ...a }) {
356
- return /* @__PURE__ */ e(
355
+ function he({ className: e, ...a }) {
356
+ return /* @__PURE__ */ t(
357
357
  "td",
358
358
  {
359
359
  className: o(
360
360
  "px-(--table-pad-x) py-3 align-middle text-sm text-table-row data-numeric:font-numeric data-numeric:tabular-nums",
361
- t
361
+ e
362
362
  ),
363
363
  ...a
364
364
  }
@@ -373,23 +373,23 @@ const ba = {
373
373
  muted: "bg-elevated border-line",
374
374
  transparent: "bg-transparent border-line"
375
375
  };
376
- function ga(t) {
377
- return typeof t == "object" && t !== null && "label" in t && typeof t.label == "string";
376
+ function ga(e) {
377
+ return typeof e == "object" && e !== null && "label" in e && typeof e.label == "string";
378
378
  }
379
379
  function ce({
380
- title: t,
380
+ title: e,
381
381
  description: a,
382
382
  header: n,
383
383
  children: l,
384
384
  action: i,
385
- tone: d = "default",
385
+ tone: c = "default",
386
386
  className: u,
387
387
  headerClassName: m,
388
- panelClassName: h,
388
+ panelClassName: b,
389
389
  minHeight: g
390
390
  }) {
391
- const f = !!(t || a), N = ga(i) ? /* @__PURE__ */ e(
392
- D,
391
+ const h = !!(e || a), y = ga(i) ? /* @__PURE__ */ t(
392
+ M,
393
393
  {
394
394
  variant: i.variant ?? "primary",
395
395
  size: "xs",
@@ -403,104 +403,104 @@ function ce({
403
403
  ] }) : i.label
404
404
  }
405
405
  ) : i;
406
- return /* @__PURE__ */ s(ua, { className: o("relative", ba[d], u), children: [
406
+ return /* @__PURE__ */ s(ua, { className: o("relative", ba[c], u), children: [
407
407
  /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
408
- n || f ? (
408
+ n || h ? (
409
409
  // Header rows must not inherit the body row hover surface.
410
410
  /* @__PURE__ */ s("div", { className: o("[--table-row-hover:transparent] text-table-header", m), children: [
411
- f ? /* @__PURE__ */ s(
411
+ h ? /* @__PURE__ */ s(
412
412
  "div",
413
413
  {
414
414
  className: o(
415
415
  "px-(--table-pad-x) pb-3 pt-4",
416
- N && "pr-28"
416
+ y && "pr-28"
417
417
  ),
418
418
  children: [
419
- t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
420
- a ? /* @__PURE__ */ e("div", { className: "mt-0.5 text-sm text-muted", children: a }) : null
419
+ e ? /* @__PURE__ */ t("div", { className: "text-sm font-semibold text-fg", children: e }) : null,
420
+ a ? /* @__PURE__ */ t("div", { className: "mt-0.5 text-sm text-muted", children: a }) : null
421
421
  ]
422
422
  }
423
423
  ) : null,
424
424
  n
425
425
  ] })
426
426
  ) : null,
427
- /* @__PURE__ */ e(
427
+ /* @__PURE__ */ t(
428
428
  ma,
429
429
  {
430
- className: o(ha[d], h),
430
+ className: o(ha[c], b),
431
431
  style: g ? { minHeight: g } : void 0,
432
432
  children: l
433
433
  }
434
434
  )
435
435
  ] }),
436
- N ? /* @__PURE__ */ e("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ e("div", { className: "pointer-events-auto", children: N }) }) : null
436
+ y ? /* @__PURE__ */ t("div", { className: "pointer-events-none absolute right-4 top-(--table-inset) flex h-(--table-header-h) items-center", children: /* @__PURE__ */ t("div", { className: "pointer-events-auto", children: y }) }) : null
437
437
  ] });
438
438
  }
439
- function xa(t) {
440
- const a = Je.toArray(t), n = a.filter(
439
+ function xa(e) {
440
+ const a = Je.toArray(e), n = a.filter(
441
441
  (l) => Qe(l) && l.type === et
442
442
  );
443
443
  return {
444
- header: n.length > 0 ? /* @__PURE__ */ e(Oe, { children: n }) : void 0,
444
+ header: n.length > 0 ? /* @__PURE__ */ t(Oe, { children: n }) : void 0,
445
445
  body: a.filter((l) => !n.includes(l))
446
446
  };
447
447
  }
448
- const va = b(
449
- ({ className: t, children: a, ...n }, l) => {
450
- const { header: i, body: d } = xa(a);
451
- return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(ce, { className: o("shadow-xs", t), header: i, children: d }) });
448
+ const va = f(
449
+ ({ className: e, children: a, ...n }, l) => {
450
+ const { header: i, body: c } = xa(a);
451
+ return /* @__PURE__ */ t("div", { ref: l, ...n, children: /* @__PURE__ */ t(ce, { className: o("shadow-xs", e), header: i, children: c }) });
452
452
  }
453
453
  );
454
454
  va.displayName = "Card";
455
- const et = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
455
+ const et = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
456
456
  "div",
457
457
  {
458
458
  ref: n,
459
459
  className: o(
460
460
  "flex flex-col gap-1 px-5 py-4",
461
- t
461
+ e
462
462
  ),
463
463
  ...a
464
464
  }
465
465
  ));
466
466
  et.displayName = "CardHeader";
467
- const Na = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
467
+ const Na = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
468
468
  "h2",
469
469
  {
470
470
  ref: n,
471
- className: o("text-sm font-semibold text-fg", t),
471
+ className: o("text-sm font-semibold text-fg", e),
472
472
  ...a
473
473
  }
474
474
  ));
475
475
  Na.displayName = "CardTitle";
476
- const ya = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
476
+ const ya = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
477
477
  "p",
478
478
  {
479
479
  ref: n,
480
480
  className: o(
481
481
  "mt-1 border-t border-card-divider pt-2 text-sm text-muted",
482
482
  "first:mt-0 first:border-t-0 first:pt-0",
483
- t
483
+ e
484
484
  ),
485
485
  ...a
486
486
  }
487
487
  ));
488
488
  ya.displayName = "CardDescription";
489
- const wa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e("div", { ref: n, className: o("px-5 py-4", t), ...a }));
489
+ const wa = f(({ className: e, ...a }, n) => /* @__PURE__ */ t("div", { ref: n, className: o("px-5 py-4", e), ...a }));
490
490
  wa.displayName = "CardContent";
491
- const Ca = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
491
+ const Ca = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
492
492
  "div",
493
493
  {
494
494
  ref: n,
495
495
  className: o(
496
496
  "flex items-center gap-3 border-t border-line px-5 py-3",
497
- t
497
+ e
498
498
  ),
499
499
  ...a
500
500
  }
501
501
  ));
502
502
  Ca.displayName = "CardFooter";
503
- const ve = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
503
+ const ve = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
504
504
  Ge.Root,
505
505
  {
506
506
  ref: n,
@@ -510,31 +510,31 @@ const ve = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
510
510
  "disabled:cursor-not-allowed disabled:opacity-50",
511
511
  "data-[state=checked]:border-primary",
512
512
  "data-[state=indeterminate]:border-primary",
513
- t
513
+ e
514
514
  ),
515
515
  ...a,
516
- children: /* @__PURE__ */ e(Ge.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ e(Gt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(X, { className: "size-3", weight: "bold" }) })
516
+ children: /* @__PURE__ */ t(Ge.Indicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-[var(--button-primary-bg)] text-[var(--button-primary-fg)] [--button-inner:var(--button-primary-inner)]", children: a.checked === "indeterminate" ? /* @__PURE__ */ t(Gt, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ t(X, { className: "size-3", weight: "bold" }) })
517
517
  }
518
518
  ));
519
519
  ve.displayName = "Checkbox";
520
- function He(t) {
521
- return t.width > 0 && t.height > 0;
520
+ function He(e) {
521
+ return e.width > 0 && e.height > 0;
522
522
  }
523
- function Ve(t) {
524
- return Math.min(1, Math.max(0.1, t));
523
+ function Ve(e) {
524
+ return Math.min(1, Math.max(0.1, e));
525
525
  }
526
- function Sa(t, a) {
527
- return !He(t) || !He(a) ? null : {
528
- dx: t.left + t.width / 2 - (a.left + a.width / 2),
529
- dy: t.top + t.height / 2 - (a.top + a.height / 2),
530
- sx: Ve(t.width / a.width),
531
- sy: Ve(t.height / a.height)
526
+ function Sa(e, a) {
527
+ return !He(e) || !He(a) ? null : {
528
+ dx: e.left + e.width / 2 - (a.left + a.width / 2),
529
+ dy: e.top + e.height / 2 - (a.top + a.height / 2),
530
+ sx: Ve(e.width / a.width),
531
+ sy: Ve(e.height / a.height)
532
532
  };
533
533
  }
534
534
  const tt = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
535
535
  let A = null, Ue = !1;
536
- function Se(t) {
537
- const a = t.getBoundingClientRect();
536
+ function Se(e) {
537
+ const a = e.getBoundingClientRect();
538
538
  return a.width <= 0 || a.height <= 0 ? null : {
539
539
  left: a.left,
540
540
  top: a.top,
@@ -542,9 +542,9 @@ function Se(t) {
542
542
  height: a.height
543
543
  };
544
544
  }
545
- function Ne(t) {
546
- if (!(t instanceof Element)) return;
547
- const a = t.closest(tt);
545
+ function Ne(e) {
546
+ if (!(e instanceof Element)) return;
547
+ const a = e.closest(tt);
548
548
  if (!a) return;
549
549
  const n = Se(a);
550
550
  n && (A = { rect: n, at: Date.now() });
@@ -552,305 +552,333 @@ function Ne(t) {
552
552
  function ka() {
553
553
  Ue || typeof document > "u" || (Ue = !0, document.addEventListener(
554
554
  "pointerdown",
555
- (t) => Ne(t.target),
555
+ (e) => Ne(e.target),
556
556
  !0
557
557
  ), document.addEventListener(
558
558
  "keydown",
559
- (t) => {
560
- t.key !== "Enter" && t.key !== " " || Ne(document.activeElement);
559
+ (e) => {
560
+ e.key !== "Enter" && e.key !== " " || Ne(document.activeElement);
561
561
  },
562
562
  !0
563
563
  ));
564
564
  }
565
- function za(t) {
565
+ function za(e) {
566
566
  if (A && Date.now() - A.at < 2e3) {
567
567
  const n = A.rect;
568
568
  return A = null, n;
569
569
  }
570
570
  A = null;
571
571
  const a = document.activeElement;
572
- return a instanceof Element && a !== t && !t.contains(a) && a.matches(tt) ? Se(a) : null;
572
+ return a instanceof Element && a !== e && !e.contains(a) && a.matches(tt) ? Se(a) : null;
573
573
  }
574
574
  const Da = 250, at = J(!1), rt = J(() => {
575
575
  }), ke = J(!1);
576
576
  function Ta({
577
- open: t,
577
+ open: e,
578
578
  defaultOpen: a,
579
579
  onOpenChange: n,
580
580
  children: l,
581
581
  ...i
582
582
  }) {
583
- const [d, u] = z(
583
+ const [c, u] = T(
584
584
  a ?? !1
585
- ), [m, h] = z(!1), g = ae(!1), f = ae(null), N = t ?? d, T = ae(N);
586
- T.current = N;
587
- const S = t !== void 0;
585
+ ), [m, b] = T(!1), g = ae(!1), h = ae(null), y = e ?? c, S = ae(y);
586
+ S.current = y;
587
+ const k = e !== void 0;
588
588
  U(() => ka(), []), U(() => {
589
- t && (f.current && clearTimeout(f.current), g.current = !1, h(!1));
590
- }, [t]), U(
589
+ e && (h.current && clearTimeout(h.current), g.current = !1, b(!1));
590
+ }, [e]), U(
591
591
  () => () => {
592
- f.current && clearTimeout(f.current);
592
+ h.current && clearTimeout(h.current);
593
593
  },
594
594
  []
595
595
  );
596
- const w = (I) => {
597
- if (I) {
598
- f.current && clearTimeout(f.current), g.current = !1, h(!1), S || u(!0), n == null || n(!0);
596
+ const w = (x) => {
597
+ if (x) {
598
+ h.current && clearTimeout(h.current), g.current = !1, b(!1), k || u(!0), n == null || n(!0);
599
599
  return;
600
600
  }
601
- if (!N || g.current) return;
601
+ if (!y || g.current) return;
602
602
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
603
- S || u(!1), n == null || n(!1);
603
+ k || u(!1), n == null || n(!1);
604
604
  return;
605
605
  }
606
- g.current = !0, h(!0), f.current = setTimeout(() => {
607
- S || u(!1), n == null || n(!1), requestAnimationFrame(() => {
608
- T.current && (g.current = !1, h(!1));
606
+ g.current = !0, b(!0), h.current = setTimeout(() => {
607
+ k || u(!1), n == null || n(!1), requestAnimationFrame(() => {
608
+ S.current && (g.current = !1, b(!1));
609
609
  });
610
610
  }, Da);
611
611
  };
612
- return /* @__PURE__ */ e(rt.Provider, { value: () => w(!1), children: /* @__PURE__ */ e(at.Provider, { value: m, children: /* @__PURE__ */ e(ke.Provider, { value: !0, children: /* @__PURE__ */ e(
613
- P.Root,
612
+ return /* @__PURE__ */ t(rt.Provider, { value: () => w(!1), children: /* @__PURE__ */ t(at.Provider, { value: m, children: /* @__PURE__ */ t(ke.Provider, { value: !0, children: /* @__PURE__ */ t(
613
+ I.Root,
614
614
  {
615
- open: N,
615
+ open: y,
616
616
  onOpenChange: w,
617
617
  ...i,
618
618
  children: l
619
619
  }
620
620
  ) }) }) });
621
621
  }
622
- const nt = b(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
623
- P.Trigger,
622
+ const nt = f(({ onClick: e, ...a }, n) => /* @__PURE__ */ t(
623
+ I.Trigger,
624
624
  {
625
625
  ref: n,
626
626
  onClick: (l) => {
627
- Ne(l.currentTarget), t == null || t(l);
627
+ Ne(l.currentTarget), e == null || e(l);
628
628
  },
629
629
  ...a
630
630
  }
631
631
  ));
632
632
  nt.displayName = "DialogTrigger";
633
- const or = P.Close, lt = b(
634
- ({ variant: t = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ e(P.Close, { asChild: !0, children: /* @__PURE__ */ e(D, { ref: l, type: "button", variant: t, ...n, children: a }) })
633
+ const sr = I.Close, lt = f(
634
+ ({ variant: e = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ t(I.Close, { asChild: !0, children: /* @__PURE__ */ t(M, { ref: l, type: "button", variant: e, ...n, children: a }) })
635
635
  );
636
636
  lt.displayName = "DialogCancel";
637
- function it(t, a = !0) {
638
- if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
637
+ function it(e, a = !0) {
638
+ if (e.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
639
639
  return;
640
- const n = Se(t);
640
+ const n = Se(e);
641
641
  if (!n) {
642
- a && window.requestAnimationFrame(() => it(t, !1));
642
+ a && window.requestAnimationFrame(() => it(e, !1));
643
643
  return;
644
644
  }
645
- t.dataset.dialogMotionStarted = "true";
646
- const l = za(t), i = l ? Sa(l, n) : null;
647
- i ? (t.style.setProperty("--dialog-dx", `${i.dx}px`), t.style.setProperty("--dialog-dy", `${i.dy}px`), t.style.setProperty("--dialog-sx", String(i.sx)), t.style.setProperty("--dialog-sy", String(i.sy)), t.classList.add("dialog-fly-in")) : (t.style.removeProperty("--dialog-dx"), t.style.removeProperty("--dialog-dy"), t.style.removeProperty("--dialog-sx"), t.style.removeProperty("--dialog-sy"), t.classList.add("dialog-pop-in"));
648
- const d = () => {
649
- t.classList.remove("dialog-fly-in", "dialog-pop-in");
645
+ e.dataset.dialogMotionStarted = "true";
646
+ const l = za(e), i = l ? Sa(l, n) : null;
647
+ i ? (e.style.setProperty("--dialog-dx", `${i.dx}px`), e.style.setProperty("--dialog-dy", `${i.dy}px`), e.style.setProperty("--dialog-sx", String(i.sx)), e.style.setProperty("--dialog-sy", String(i.sy)), e.classList.add("dialog-fly-in")) : (e.style.removeProperty("--dialog-dx"), e.style.removeProperty("--dialog-dy"), e.style.removeProperty("--dialog-sx"), e.style.removeProperty("--dialog-sy"), e.classList.add("dialog-pop-in"));
648
+ const c = () => {
649
+ e.classList.remove("dialog-fly-in", "dialog-pop-in");
650
650
  }, u = (m) => {
651
- m.target === t && (m.animationName !== "dialog-fly-in" && m.animationName !== "dialog-pop-in" || (t.removeEventListener("animationend", u), d()));
651
+ m.target === e && (m.animationName !== "dialog-fly-in" && m.animationName !== "dialog-pop-in" || (e.removeEventListener("animationend", u), c()));
652
652
  };
653
- t.addEventListener("animationend", u);
653
+ e.addEventListener("animationend", u);
654
654
  }
655
- const ot = b(({ className: t, children: a, onEscapeKeyDown: n, onPointerDownOutside: l, ...i }, d) => {
656
- const u = B(at), m = B(rt), h = ae(null), g = Yt(
657
- (f) => {
658
- if (h.current = f, f && it(f), typeof d == "function") {
659
- d(f);
660
- return;
661
- }
662
- d && (d.current = f);
663
- },
664
- [d]
665
- );
666
- return /* @__PURE__ */ s(P.Portal, { children: [
667
- /* @__PURE__ */ e(
668
- P.Overlay,
669
- {
670
- className: o(
671
- "fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
672
- !u && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
673
- u && "opacity-0 transition-opacity duration-200"
674
- ),
675
- children: /* @__PURE__ */ e(
676
- "span",
677
- {
678
- "aria-hidden": "true",
679
- className: "dialog-noise pointer-events-none absolute inset-0"
680
- }
681
- )
682
- }
683
- ),
684
- /* @__PURE__ */ e("div", { className: "pointer-events-none fixed inset-0 z-50 flex items-center justify-center overflow-y-auto p-4", children: /* @__PURE__ */ s(
685
- P.Content,
686
- {
687
- ref: g,
688
- className: o(
689
- "dialog-content pointer-events-auto relative flex max-h-[min(85vh,44rem)] w-full max-w-[22.4rem] flex-col gap-0 overflow-hidden will-change-[transform,opacity]",
690
- "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
691
- u && "dialog-closing",
692
- "focus:outline-none",
693
- t
694
- ),
695
- onEscapeKeyDown: (f) => {
696
- n == null || n(f), !f.defaultPrevented && (f.preventDefault(), m());
697
- },
698
- onPointerDownOutside: (f) => {
699
- l == null || l(f), !f.defaultPrevented && (f.preventDefault(), m());
700
- },
701
- ...i,
702
- children: [
703
- a,
704
- /* @__PURE__ */ s(P.Close, { className: "absolute right-3.5 top-3.5 z-10 rounded-sm text-subtle transition-colors hover:text-fg focus-visible:outline-none", children: [
705
- /* @__PURE__ */ e(ie, { className: "size-4" }),
706
- /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
707
- ] })
708
- ]
709
- }
710
- ) })
711
- ] });
712
- });
655
+ function Ma(e) {
656
+ return e.replace(/dvh\b/g, "vh");
657
+ }
658
+ const ot = f(
659
+ ({
660
+ className: e,
661
+ children: a,
662
+ placement: n = "center",
663
+ topOffset: l = "11dvh",
664
+ style: i,
665
+ onEscapeKeyDown: c,
666
+ onPointerDownOutside: u,
667
+ ...m
668
+ }, b) => {
669
+ const g = B(at), h = n === "top", y = h ? {
670
+ "--dialog-top-offset": l,
671
+ "--dialog-top-offset-fallback": Ma(l)
672
+ } : void 0, S = B(rt), k = ae(null), w = Yt(
673
+ (x) => {
674
+ if (k.current = x, x && it(x), typeof b == "function") {
675
+ b(x);
676
+ return;
677
+ }
678
+ b && (b.current = x);
679
+ },
680
+ [b]
681
+ );
682
+ return /* @__PURE__ */ s(I.Portal, { children: [
683
+ /* @__PURE__ */ t(
684
+ I.Overlay,
685
+ {
686
+ className: o(
687
+ "fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
688
+ !g && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
689
+ g && "opacity-0 transition-opacity duration-200"
690
+ ),
691
+ children: /* @__PURE__ */ t(
692
+ "span",
693
+ {
694
+ "aria-hidden": "true",
695
+ className: "dialog-noise pointer-events-none absolute inset-0"
696
+ }
697
+ )
698
+ }
699
+ ),
700
+ /* @__PURE__ */ t(
701
+ "div",
702
+ {
703
+ className: o(
704
+ "pointer-events-none fixed inset-0 z-50 flex justify-center overflow-y-auto p-4",
705
+ h ? "items-start" : "items-center"
706
+ ),
707
+ children: /* @__PURE__ */ s(
708
+ I.Content,
709
+ {
710
+ ref: w,
711
+ style: y ? { ...y, ...i } : i,
712
+ className: o(
713
+ "dialog-content pointer-events-auto relative flex max-h-[min(85vh,44rem)] w-full max-w-[22.4rem] flex-col gap-0 overflow-hidden will-change-[transform,opacity]",
714
+ "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
715
+ h && "dialog-anchor-top",
716
+ g && "dialog-closing",
717
+ "focus:outline-none",
718
+ e
719
+ ),
720
+ onEscapeKeyDown: (x) => {
721
+ c == null || c(x), !x.defaultPrevented && (x.preventDefault(), S());
722
+ },
723
+ onPointerDownOutside: (x) => {
724
+ u == null || u(x), !x.defaultPrevented && (x.preventDefault(), S());
725
+ },
726
+ ...m,
727
+ children: [
728
+ a,
729
+ /* @__PURE__ */ s(I.Close, { className: "absolute right-3.5 top-3.5 z-10 rounded-sm text-subtle transition-colors hover:text-fg focus-visible:outline-none", children: [
730
+ /* @__PURE__ */ t(ie, { className: "size-4" }),
731
+ /* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
732
+ ] })
733
+ ]
734
+ }
735
+ )
736
+ }
737
+ )
738
+ ] });
739
+ }
740
+ );
713
741
  ot.displayName = "DialogContent";
714
- function Ma({
715
- className: t,
742
+ function Pa({
743
+ className: e,
716
744
  ...a
717
745
  }) {
718
- return /* @__PURE__ */ e(
746
+ return /* @__PURE__ */ t(
719
747
  "div",
720
748
  {
721
749
  "data-slot": "panel",
722
750
  className: o(
723
751
  "flex min-h-0 flex-1 flex-col overflow-hidden rounded-b-2xl border-x-0 border-t-0 border-b border-(--dialog-panel-border) bg-(--dialog-panel-bg) shadow-(--dialog-panel-shadow)",
724
- t
752
+ e
725
753
  ),
726
754
  ...a
727
755
  }
728
756
  );
729
757
  }
730
- function Pa({
731
- className: t,
758
+ function Ia({
759
+ className: e,
732
760
  ...a
733
761
  }) {
734
- return /* @__PURE__ */ e(
762
+ return /* @__PURE__ */ t(
735
763
  "div",
736
764
  {
737
765
  "data-slot": "body",
738
- className: o("min-h-0 flex-1 overflow-y-auto px-5 py-4", t),
766
+ className: o("min-h-0 flex-1 overflow-y-auto px-5 py-4", e),
739
767
  ...a
740
768
  }
741
769
  );
742
770
  }
743
- function Ia({
744
- className: t,
771
+ function Ea({
772
+ className: e,
745
773
  ...a
746
774
  }) {
747
- return /* @__PURE__ */ e(
775
+ return /* @__PURE__ */ t(
748
776
  "div",
749
777
  {
750
778
  "data-slot": "header",
751
779
  className: o(
752
780
  "flex shrink-0 flex-col gap-1.5 border-b border-(--dialog-panel-border) px-5 py-4",
753
- t
781
+ e
754
782
  ),
755
783
  ...a
756
784
  }
757
785
  );
758
786
  }
759
- function Ea({
760
- className: t,
787
+ function ja({
788
+ className: e,
761
789
  ...a
762
790
  }) {
763
- return /* @__PURE__ */ e(
791
+ return /* @__PURE__ */ t(
764
792
  "div",
765
793
  {
766
794
  "data-slot": "footer",
767
795
  className: o(
768
796
  "flex shrink-0 flex-col-reverse gap-2 px-3 pt-3 sm:flex-row sm:px-4 sm:pt-3.5 sm:*:flex-1",
769
- t
797
+ e
770
798
  ),
771
799
  ...a
772
800
  }
773
801
  );
774
802
  }
775
- const st = b(({ className: t, ...a }, n) => {
776
- const l = B(ke) ? P.Title : "h2";
777
- return /* @__PURE__ */ e(
803
+ const st = f(({ className: e, ...a }, n) => {
804
+ const l = B(ke) ? I.Title : "h2";
805
+ return /* @__PURE__ */ t(
778
806
  l,
779
807
  {
780
808
  ref: n,
781
- className: o("text-base font-semibold text-fg", t),
809
+ className: o("text-base font-semibold text-fg", e),
782
810
  ...a
783
811
  }
784
812
  );
785
813
  });
786
814
  st.displayName = "DialogTitle";
787
- const ja = b(({ className: t, ...a }, n) => {
788
- const l = B(ke) ? P.Description : "p";
789
- return /* @__PURE__ */ e(
815
+ const _a = f(({ className: e, ...a }, n) => {
816
+ const l = B(ke) ? I.Description : "p";
817
+ return /* @__PURE__ */ t(
790
818
  l,
791
819
  {
792
820
  ref: n,
793
- className: o("text-sm text-muted", t),
821
+ className: o("text-sm text-muted", e),
794
822
  ...a
795
823
  }
796
824
  );
797
825
  });
798
- ja.displayName = "DialogDescription";
826
+ _a.displayName = "DialogDescription";
799
827
  const dt = J(null);
800
- function _a({
801
- label: t,
828
+ function La({
829
+ label: e,
802
830
  value: a,
803
831
  onChange: n,
804
832
  disabled: l = !1,
805
833
  name: i,
806
- className: d,
834
+ className: c,
807
835
  children: u,
808
836
  ...m
809
837
  }) {
810
- const h = de(), g = i ?? h;
811
- return /* @__PURE__ */ e(dt.Provider, { value: { name: g, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", d), ...m, children: [
812
- /* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
838
+ const b = de(), g = i ?? b;
839
+ return /* @__PURE__ */ t(dt.Provider, { value: { name: g, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", c), ...m, children: [
840
+ /* @__PURE__ */ t("legend", { className: "sr-only", children: e }),
813
841
  u
814
842
  ] }) });
815
843
  }
816
- function La({
817
- value: t,
844
+ function Ra({
845
+ value: e,
818
846
  title: a,
819
847
  description: n,
820
848
  badge: l,
821
849
  disabled: i = !1,
822
- className: d
850
+ className: c
823
851
  }) {
824
852
  const u = B(dt), m = de();
825
853
  if (!u)
826
854
  throw new Error("RadioCard must be rendered inside a RadioGroup");
827
- const h = i || u.disabled, g = u.value === t;
855
+ const b = i || u.disabled, g = u.value === e;
828
856
  return /* @__PURE__ */ s(
829
857
  "label",
830
858
  {
831
859
  className: o(
832
860
  "group relative flex items-start gap-3",
833
- h ? "cursor-not-allowed opacity-50" : "cursor-pointer",
834
- d
861
+ b ? "cursor-not-allowed opacity-50" : "cursor-pointer",
862
+ c
835
863
  ),
836
864
  children: [
837
- /* @__PURE__ */ e(
865
+ /* @__PURE__ */ t(
838
866
  "input",
839
867
  {
840
868
  type: "radio",
841
869
  name: u.name,
842
- value: t,
870
+ value: e,
843
871
  checked: g,
844
- disabled: h,
872
+ disabled: b,
845
873
  onChange: () => {
846
- var f;
847
- return (f = u.onChange) == null ? void 0 : f.call(u, t);
874
+ var h;
875
+ return (h = u.onChange) == null ? void 0 : h.call(u, e);
848
876
  },
849
877
  "aria-describedby": n ? m : void 0,
850
878
  className: "peer sr-only"
851
879
  }
852
880
  ),
853
- /* @__PURE__ */ e(
881
+ /* @__PURE__ */ t(
854
882
  "span",
855
883
  {
856
884
  "aria-hidden": !0,
@@ -863,96 +891,96 @@ function La({
863
891
  ),
864
892
  /* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
865
893
  /* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
866
- /* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: a }),
867
- l ? /* @__PURE__ */ e(da, { variant: "primary", children: l }) : null
894
+ /* @__PURE__ */ t("span", { className: "text-base font-semibold text-fg", children: a }),
895
+ l ? /* @__PURE__ */ t(da, { variant: "primary", children: l }) : null
868
896
  ] }),
869
- n ? /* @__PURE__ */ e("span", { id: m, className: "mt-1 block text-sm text-muted", children: n }) : null
897
+ n ? /* @__PURE__ */ t("span", { id: m, className: "mt-1 block text-sm text-muted", children: n }) : null
870
898
  ] })
871
899
  ]
872
900
  }
873
901
  );
874
902
  }
875
- function sr({
876
- open: t,
903
+ function dr({
904
+ open: e,
877
905
  onOpenChange: a,
878
906
  trigger: n,
879
907
  title: l,
880
908
  options: i,
881
- defaultValue: d,
909
+ defaultValue: c,
882
910
  value: u,
883
911
  onValueChange: m,
884
- cancelLabel: h = "Cancel",
912
+ cancelLabel: b = "Cancel",
885
913
  confirmLabel: g = "Continue",
886
- onConfirm: f
914
+ onConfirm: h
887
915
  }) {
888
- var I;
889
- const [N, T] = z(d ?? ((I = i[0]) == null ? void 0 : I.value) ?? ""), S = u ?? N;
890
- return /* @__PURE__ */ s(Ta, { open: t, onOpenChange: a, children: [
891
- n ? /* @__PURE__ */ e(nt, { asChild: !0, children: n }) : null,
916
+ var x;
917
+ const [y, S] = T(c ?? ((x = i[0]) == null ? void 0 : x.value) ?? ""), k = u ?? y;
918
+ return /* @__PURE__ */ s(Ta, { open: e, onOpenChange: a, children: [
919
+ n ? /* @__PURE__ */ t(nt, { asChild: !0, children: n }) : null,
892
920
  /* @__PURE__ */ s(
893
921
  ot,
894
922
  {
895
923
  "aria-describedby": void 0,
896
924
  className: "max-w-[29.4rem] [&>button]:hidden",
897
925
  children: [
898
- /* @__PURE__ */ s(Ma, { children: [
899
- /* @__PURE__ */ e(Ia, { children: /* @__PURE__ */ e(st, { className: "text-xl", children: l }) }),
900
- /* @__PURE__ */ e(Pa, { children: /* @__PURE__ */ e(_a, { label: l, value: S, onChange: (y) => {
901
- u === void 0 && T(y), m == null || m(y);
902
- }, children: i.map((y) => /* @__PURE__ */ e(
903
- La,
926
+ /* @__PURE__ */ s(Pa, { children: [
927
+ /* @__PURE__ */ t(Ea, { children: /* @__PURE__ */ t(st, { className: "text-xl", children: l }) }),
928
+ /* @__PURE__ */ t(Ia, { children: /* @__PURE__ */ t(La, { label: l, value: k, onChange: (C) => {
929
+ u === void 0 && S(C), m == null || m(C);
930
+ }, children: i.map((C) => /* @__PURE__ */ t(
931
+ Ra,
904
932
  {
905
- value: y.value,
906
- title: y.title,
907
- description: y.description,
908
- badge: y.badge
933
+ value: C.value,
934
+ title: C.title,
935
+ description: C.description,
936
+ badge: C.badge
909
937
  },
910
- y.value
938
+ C.value
911
939
  )) }) })
912
940
  ] }),
913
- /* @__PURE__ */ s(Ea, { className: "gap-3 pt-2.5", children: [
914
- /* @__PURE__ */ e(lt, { className: "flex-1", children: h }),
915
- /* @__PURE__ */ e(D, { className: "flex-1", onClick: () => f == null ? void 0 : f(S), children: g })
941
+ /* @__PURE__ */ s(ja, { className: "gap-3 pt-2.5", children: [
942
+ /* @__PURE__ */ t(lt, { className: "flex-1", children: b }),
943
+ /* @__PURE__ */ t(M, { className: "flex-1", onClick: () => h == null ? void 0 : h(k), children: g })
916
944
  ] })
917
945
  ]
918
946
  }
919
947
  )
920
948
  ] });
921
949
  }
922
- function dr({ code: t, label: a, className: n }) {
923
- const [l, i] = z(!1);
924
- return /* @__PURE__ */ e(
950
+ function cr({ code: e, label: a, className: n }) {
951
+ const [l, i] = T(!1);
952
+ return /* @__PURE__ */ t(
925
953
  ce,
926
954
  {
927
955
  className: n,
928
- header: /* @__PURE__ */ e("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ e("span", { className: "truncate text-[13px] font-medium text-table-header", children: a }) }),
956
+ header: /* @__PURE__ */ t("div", { className: "flex h-(--table-header-h) items-center px-(--table-pad-x) pr-28", children: /* @__PURE__ */ t("span", { className: "truncate text-[13px] font-medium text-table-header", children: a }) }),
929
957
  action: {
930
958
  label: l ? "Copied" : "Copy",
931
- icon: l ? /* @__PURE__ */ e(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Xe, {}),
959
+ icon: l ? /* @__PURE__ */ t(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ t(Xe, {}),
932
960
  variant: "ghost",
933
961
  onClick: async () => {
934
962
  try {
935
- await navigator.clipboard.writeText(t), i(!0), window.setTimeout(() => i(!1), 1500);
963
+ await navigator.clipboard.writeText(e), i(!0), window.setTimeout(() => i(!1), 1500);
936
964
  } catch {
937
965
  }
938
966
  }
939
967
  },
940
968
  panelClassName: "min-w-0",
941
- children: /* @__PURE__ */ e("pre", { className: "overflow-x-auto p-4 font-mono text-xs leading-relaxed text-fg", children: /* @__PURE__ */ e("code", { children: t }) })
969
+ children: /* @__PURE__ */ t("pre", { className: "overflow-x-auto p-4 font-mono text-xs leading-relaxed text-fg", children: /* @__PURE__ */ t("code", { children: e }) })
942
970
  }
943
971
  );
944
972
  }
945
- const Ra = {
973
+ const Aa = {
946
974
  sm: "h-[var(--control-h-sm)] text-sm",
947
975
  md: "h-[var(--control-h-md)] text-sm",
948
976
  lg: "h-[var(--control-h-lg)] text-sm",
949
977
  xl: "h-[var(--control-h-xl)] rounded-lg text-base"
950
- }, Aa = {
978
+ }, Ba = {
951
979
  sm: "px-[var(--control-pad-x-sm)]",
952
980
  md: "px-[var(--control-pad-x-md)]",
953
981
  lg: "px-[var(--control-pad-x-lg)]",
954
982
  xl: "px-[var(--control-pad-x-xl)]"
955
- }, Ba = {
983
+ }, Fa = {
956
984
  sm: "left-[var(--control-pad-x-sm)]",
957
985
  md: "left-[var(--control-pad-x-md)]",
958
986
  lg: "left-[var(--control-pad-x-lg)]",
@@ -967,73 +995,73 @@ const Ra = {
967
995
  md: "size-[var(--control-icon-md)]",
968
996
  lg: "size-[var(--control-icon-lg)]",
969
997
  xl: "size-[var(--control-icon-xl)]"
970
- }, ct = b(
998
+ }, ct = f(
971
999
  ({
972
- className: t,
1000
+ className: e,
973
1001
  containerClassName: a,
974
1002
  type: n = "text",
975
1003
  size: l = "md",
976
1004
  leadingIcon: i,
977
- trailingIcon: d,
1005
+ trailingIcon: c,
978
1006
  onClear: u,
979
1007
  value: m,
980
- defaultValue: h,
1008
+ defaultValue: b,
981
1009
  error: g = !1,
982
- helperText: f,
983
- id: N,
984
- "aria-describedby": T,
985
- disabled: S,
1010
+ helperText: h,
1011
+ id: y,
1012
+ "aria-describedby": S,
1013
+ disabled: k,
986
1014
  readOnly: w,
987
- ...I
988
- }, y) => {
989
- const F = de(), Q = N ?? F, $ = !!f, _ = !!(u && (m !== void 0 ? String(m).length > 0 : h !== void 0 && String(h).length > 0)), Y = $ ? `${Q}-description` : void 0, ue = [T, Y].filter(Boolean).join(" ") || void 0, Z = /* @__PURE__ */ e(
1015
+ ...x
1016
+ }, C) => {
1017
+ const F = de(), Q = y ?? F, $ = !!h, _ = !!(u && (m !== void 0 ? String(m).length > 0 : b !== void 0 && String(b).length > 0)), Y = $ ? `${Q}-description` : void 0, ue = [S, Y].filter(Boolean).join(" ") || void 0, Z = /* @__PURE__ */ t(
990
1018
  "input",
991
1019
  {
992
- ref: y,
1020
+ ref: C,
993
1021
  id: Q,
994
1022
  type: n,
995
- disabled: S,
1023
+ disabled: k,
996
1024
  readOnly: w,
997
1025
  "aria-invalid": g || void 0,
998
1026
  "aria-describedby": ue,
999
- style: i || d || _ ? {
1027
+ style: i || c || _ ? {
1000
1028
  paddingInlineStart: i ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
1001
- paddingInlineEnd: d || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
1029
+ paddingInlineEnd: c || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
1002
1030
  } : void 0,
1003
1031
  className: o(
1004
1032
  "flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
1005
- Ra[l],
1006
1033
  Aa[l],
1034
+ Ba[l],
1007
1035
  "placeholder:text-(--input-placeholder)",
1008
1036
  "hover:border-(--input-border-hover)",
1009
1037
  "focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
1010
1038
  g && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
1011
1039
  !g && "border-(--input-border)",
1012
1040
  n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
1013
- S && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1041
+ k && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1014
1042
  w && "cursor-default focus-visible:ring-0",
1015
- t
1043
+ e
1016
1044
  ),
1017
1045
  value: m,
1018
- defaultValue: h,
1019
- ...I
1046
+ defaultValue: b,
1047
+ ...x
1020
1048
  }
1021
1049
  );
1022
- return !i && !d && !_ && !$ ? Z : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1050
+ return !i && !c && !_ && !$ ? Z : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1023
1051
  /* @__PURE__ */ s("div", { className: "relative", children: [
1024
- i ? /* @__PURE__ */ e(
1052
+ i ? /* @__PURE__ */ t(
1025
1053
  "span",
1026
1054
  {
1027
1055
  className: o(
1028
1056
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1029
- Ba[l]
1057
+ Fa[l]
1030
1058
  ),
1031
1059
  "aria-hidden": !0,
1032
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ge[l]), children: i })
1060
+ children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: i })
1033
1061
  }
1034
1062
  ) : null,
1035
1063
  Z,
1036
- _ ? /* @__PURE__ */ e(
1064
+ _ ? /* @__PURE__ */ t(
1037
1065
  "button",
1038
1066
  {
1039
1067
  type: "button",
@@ -1043,9 +1071,9 @@ const Ra = {
1043
1071
  "absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
1044
1072
  We[l]
1045
1073
  ),
1046
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ge[l]), children: /* @__PURE__ */ e(ie, {}) })
1074
+ children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: /* @__PURE__ */ t(ie, {}) })
1047
1075
  }
1048
- ) : d ? /* @__PURE__ */ e(
1076
+ ) : c ? /* @__PURE__ */ t(
1049
1077
  "span",
1050
1078
  {
1051
1079
  className: o(
@@ -1053,27 +1081,27 @@ const Ra = {
1053
1081
  We[l]
1054
1082
  ),
1055
1083
  "aria-hidden": !0,
1056
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ge[l]), children: d })
1084
+ children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: c })
1057
1085
  }
1058
1086
  ) : null
1059
1087
  ] }),
1060
- $ ? /* @__PURE__ */ e(
1088
+ $ ? /* @__PURE__ */ t(
1061
1089
  "p",
1062
1090
  {
1063
1091
  id: Y,
1064
1092
  className: o("mt-1.5 text-xs", g ? "text-error" : "text-muted"),
1065
- children: f
1093
+ children: h
1066
1094
  }
1067
1095
  ) : null
1068
1096
  ] });
1069
1097
  }
1070
1098
  );
1071
1099
  ct.displayName = "Input";
1072
- function ze(t, a) {
1100
+ function ze(e, a) {
1073
1101
  let n = 0;
1074
- return Je.forEach(t, (l) => {
1102
+ return Je.forEach(e, (l) => {
1075
1103
  if (!Qe(l)) return;
1076
- if (a.some((d) => d === l.type)) {
1104
+ if (a.some((c) => c === l.type)) {
1077
1105
  n += 1;
1078
1106
  return;
1079
1107
  }
@@ -1083,44 +1111,44 @@ function ze(t, a) {
1083
1111
  }
1084
1112
  const ut = J(!1);
1085
1113
  function xe({
1086
- children: t,
1114
+ children: e,
1087
1115
  ...a
1088
1116
  }) {
1089
- const n = ze(t, [
1117
+ const n = ze(e, [
1090
1118
  se,
1091
1119
  W,
1092
1120
  pt
1093
1121
  ]) === 0;
1094
- return /* @__PURE__ */ e(ut.Provider, { value: n, children: /* @__PURE__ */ e(C.Root, { ...a, children: t }) });
1122
+ return /* @__PURE__ */ t(ut.Provider, { value: n, children: /* @__PURE__ */ t(z.Root, { ...a, children: e }) });
1095
1123
  }
1096
- const re = b(({ className: t, disabled: a, ...n }, l) => {
1124
+ const re = f(({ className: e, disabled: a, ...n }, l) => {
1097
1125
  const i = B(ut);
1098
- return /* @__PURE__ */ e(
1099
- C.Trigger,
1126
+ return /* @__PURE__ */ t(
1127
+ z.Trigger,
1100
1128
  {
1101
1129
  ref: l,
1102
- className: o("group", t),
1130
+ className: o("group", e),
1103
1131
  disabled: a || i,
1104
1132
  ...n
1105
1133
  }
1106
1134
  );
1107
1135
  });
1108
1136
  re.displayName = "DropdownMenuTrigger";
1109
- const mt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1137
+ const mt = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1110
1138
  oe,
1111
1139
  {
1112
1140
  ref: n,
1113
1141
  "aria-hidden": !0,
1114
1142
  className: o(
1115
1143
  "ml-auto size-3.5 shrink-0 text-subtle transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none",
1116
- t
1144
+ e
1117
1145
  ),
1118
1146
  ...a
1119
1147
  }
1120
1148
  ));
1121
1149
  mt.displayName = "DropdownMenuChevron";
1122
- const cr = C.Group, ur = C.Portal, ne = b(({ className: t, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ e(C.Portal, { children: /* @__PURE__ */ e(
1123
- C.Content,
1150
+ const ur = z.Group, mr = z.Portal, ne = f(({ className: e, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ t(z.Portal, { children: /* @__PURE__ */ t(
1151
+ z.Content,
1124
1152
  {
1125
1153
  ref: l,
1126
1154
  sideOffset: a,
@@ -1132,14 +1160,14 @@ const cr = C.Group, ur = C.Portal, ne = b(({ className: t, sideOffset: a = 8, ..
1132
1160
  "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
1133
1161
  "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
1134
1162
  "duration-150 ease-out",
1135
- t
1163
+ e
1136
1164
  ),
1137
1165
  ...n
1138
1166
  }
1139
1167
  ) }));
1140
1168
  ne.displayName = "DropdownMenuContent";
1141
- const se = b(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1142
- C.Item,
1169
+ const se = f(({ className: e, inset: a, ...n }, l) => /* @__PURE__ */ t(
1170
+ z.Item,
1143
1171
  {
1144
1172
  ref: l,
1145
1173
  className: o(
@@ -1147,40 +1175,40 @@ const se = b(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1147
1175
  "focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
1148
1176
  "[&_svg]:size-4 [&_svg]:text-muted",
1149
1177
  a && "pl-8",
1150
- t
1178
+ e
1151
1179
  ),
1152
1180
  ...n
1153
1181
  }
1154
1182
  ));
1155
1183
  se.displayName = "DropdownMenuItem";
1156
- const W = b(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
1157
- C.CheckboxItem,
1184
+ const W = f(({ className: e, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
1185
+ z.CheckboxItem,
1158
1186
  {
1159
1187
  ref: i,
1160
1188
  className: o(
1161
1189
  "group relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-fg outline-none transition-colors focus:bg-(--menu-highlight)",
1162
- t
1190
+ e
1163
1191
  ),
1164
1192
  checked: n,
1165
1193
  ...l,
1166
1194
  children: [
1167
- /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ e(C.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-(--button-primary-bg) text-(--button-primary-fg) [--button-inner:var(--button-primary-inner)]", children: /* @__PURE__ */ e(X, { className: "size-3", weight: "bold" }) }) }),
1195
+ /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-4 shrink-0 items-center justify-center rounded border border-line-strong bg-transparent transition-colors group-data-[state=checked]:border-primary", children: /* @__PURE__ */ t(z.ItemIndicator, { className: "btn-fill btn-inner-border flex size-full items-center justify-center rounded-[3px] border-0 bg-(--button-primary-bg) text-(--button-primary-fg) [--button-inner:var(--button-primary-inner)]", children: /* @__PURE__ */ t(X, { className: "size-3", weight: "bold" }) }) }),
1168
1196
  a
1169
1197
  ]
1170
1198
  }
1171
1199
  ));
1172
1200
  W.displayName = "DropdownMenuCheckboxItem";
1173
- const le = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1174
- C.Label,
1201
+ const le = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1202
+ z.Label,
1175
1203
  {
1176
1204
  ref: n,
1177
- className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
1205
+ className: o("px-2 py-1.5 text-xs font-medium text-subtle", e),
1178
1206
  ...a
1179
1207
  }
1180
1208
  ));
1181
1209
  le.displayName = "DropdownMenuLabel";
1182
- const mr = C.Sub, pt = b(({ className: t, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
1183
- C.SubTrigger,
1210
+ const pr = z.Sub, pt = f(({ className: e, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
1211
+ z.SubTrigger,
1184
1212
  {
1185
1213
  ref: i,
1186
1214
  className: o(
@@ -1188,18 +1216,18 @@ const mr = C.Sub, pt = b(({ className: t, inset: a, children: n, ...l }, i) => /
1188
1216
  "focus:bg-(--menu-highlight) data-[state=open]:bg-(--menu-highlight)",
1189
1217
  "[&_svg]:size-4 [&_svg]:text-muted",
1190
1218
  a && "pl-8",
1191
- t
1219
+ e
1192
1220
  ),
1193
1221
  ...l,
1194
1222
  children: [
1195
1223
  n,
1196
- /* @__PURE__ */ e(Ht, { className: "ml-auto shrink-0" })
1224
+ /* @__PURE__ */ t(Ht, { className: "ml-auto shrink-0" })
1197
1225
  ]
1198
1226
  }
1199
1227
  ));
1200
1228
  pt.displayName = "DropdownMenuSubTrigger";
1201
- const Fa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1202
- C.SubContent,
1229
+ const $a = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1230
+ z.SubContent,
1203
1231
  {
1204
1232
  ref: n,
1205
1233
  sideOffset: 8,
@@ -1211,32 +1239,32 @@ const Fa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1211
1239
  "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
1212
1240
  "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
1213
1241
  "duration-150 ease-out",
1214
- t
1242
+ e
1215
1243
  ),
1216
1244
  ...a
1217
1245
  }
1218
1246
  ));
1219
- Fa.displayName = "DropdownMenuSubContent";
1220
- const ye = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1221
- C.Separator,
1247
+ $a.displayName = "DropdownMenuSubContent";
1248
+ const ye = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1249
+ z.Separator,
1222
1250
  {
1223
1251
  ref: n,
1224
- className: o("-mx-1 my-1 h-px bg-line-strong", t),
1252
+ className: o("-mx-1 my-1 h-px bg-line-strong", e),
1225
1253
  ...a
1226
1254
  }
1227
1255
  ));
1228
1256
  ye.displayName = "DropdownMenuSeparator";
1229
- const pr = M.Group, $a = M.Value;
1230
- function qa({
1231
- children: t,
1257
+ const fr = P.Group, qa = P.Value;
1258
+ function Ga({
1259
+ children: e,
1232
1260
  disabled: a,
1233
1261
  ...n
1234
1262
  }) {
1235
- const l = ze(t, [De]) === 0;
1236
- return /* @__PURE__ */ e(M.Root, { disabled: a || l, ...n, children: t });
1263
+ const l = ze(e, [De]) === 0;
1264
+ return /* @__PURE__ */ t(P.Root, { disabled: a || l, ...n, children: e });
1237
1265
  }
1238
- const ft = b(({ className: t, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1239
- M.Trigger,
1266
+ const ft = f(({ className: e, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1267
+ P.Trigger,
1240
1268
  {
1241
1269
  ref: i,
1242
1270
  className: o(
@@ -1245,21 +1273,21 @@ const ft = b(({ className: t, children: a, variant: n = "field", ...l }, i) => /
1245
1273
  "data-disabled:cursor-not-allowed data-disabled:opacity-50",
1246
1274
  n === "field" && "h-(--control-h-md) w-full rounded-md border border-line bg-surface px-3 focus:border-primary focus:ring-2 focus:ring-focus/30",
1247
1275
  n === "inline" && "btn-fill btn-inner-border btn-interactive h-(--control-h-md) w-auto rounded-(--control-radius) border-0 bg-(--button-secondary-bg) px-(--control-pad-x-sm) font-medium text-fg hover:bg-(--button-surface-hover) active:bg-(--button-surface-active) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong",
1248
- t
1276
+ e
1249
1277
  ),
1250
1278
  ...l,
1251
1279
  children: [
1252
- /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
1253
- /* @__PURE__ */ e(M.Icon, { asChild: !0, children: /* @__PURE__ */ e(oe, { className: "ml-auto size-3.5 shrink-0 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) })
1280
+ /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
1281
+ /* @__PURE__ */ t(P.Icon, { asChild: !0, children: /* @__PURE__ */ t(oe, { className: "ml-auto size-3.5 shrink-0 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) })
1254
1282
  ]
1255
1283
  }
1256
1284
  ));
1257
1285
  ft.displayName = "SelectTrigger";
1258
- const bt = b(
1259
- ({ className: t, children: a, position: n = "popper", sideOffset: l = 8, ...i }, d) => /* @__PURE__ */ e(M.Portal, { children: /* @__PURE__ */ e(
1260
- M.Content,
1286
+ const bt = f(
1287
+ ({ className: e, children: a, position: n = "popper", sideOffset: l = 8, ...i }, c) => /* @__PURE__ */ t(P.Portal, { children: /* @__PURE__ */ t(
1288
+ P.Content,
1261
1289
  {
1262
- ref: d,
1290
+ ref: c,
1263
1291
  position: n,
1264
1292
  sideOffset: l,
1265
1293
  className: o(
@@ -1270,41 +1298,41 @@ const bt = b(
1270
1298
  "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
1271
1299
  "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
1272
1300
  "duration-150 ease-out",
1273
- t
1301
+ e
1274
1302
  ),
1275
1303
  ...i,
1276
- children: /* @__PURE__ */ e(M.Viewport, { className: "p-0", children: a })
1304
+ children: /* @__PURE__ */ t(P.Viewport, { className: "p-0", children: a })
1277
1305
  }
1278
1306
  ) })
1279
1307
  );
1280
1308
  bt.displayName = "SelectContent";
1281
- const De = b(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
1282
- M.Item,
1309
+ const De = f(({ className: e, children: a, ...n }, l) => /* @__PURE__ */ s(
1310
+ P.Item,
1283
1311
  {
1284
1312
  ref: l,
1285
1313
  className: o(
1286
1314
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-fg outline-none focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
1287
- t
1315
+ e
1288
1316
  ),
1289
1317
  ...n,
1290
1318
  children: [
1291
- /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(M.ItemIndicator, { children: /* @__PURE__ */ e(X, { className: "size-3.5" }) }) }),
1292
- /* @__PURE__ */ e(M.ItemText, { children: a })
1319
+ /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ t(P.ItemIndicator, { children: /* @__PURE__ */ t(X, { className: "size-3.5" }) }) }),
1320
+ /* @__PURE__ */ t(P.ItemText, { children: a })
1293
1321
  ]
1294
1322
  }
1295
1323
  ));
1296
1324
  De.displayName = "SelectItem";
1297
- const Ga = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1298
- M.Label,
1325
+ const Ha = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1326
+ P.Label,
1299
1327
  {
1300
1328
  ref: n,
1301
- className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
1329
+ className: o("px-2 py-1.5 text-xs font-medium text-subtle", e),
1302
1330
  ...a
1303
1331
  }
1304
1332
  ));
1305
- Ga.displayName = "SelectLabel";
1306
- function Ha({
1307
- icon: t,
1333
+ Ha.displayName = "SelectLabel";
1334
+ function Va({
1335
+ icon: e,
1308
1336
  title: a,
1309
1337
  description: n,
1310
1338
  action: l,
@@ -1318,57 +1346,57 @@ function Ha({
1318
1346
  i
1319
1347
  ),
1320
1348
  children: [
1321
- t ? /* @__PURE__ */ e("div", { className: "flex size-[var(--table-empty-icon)] items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-table-muted [&_svg]:size-8", children: t }) : null,
1349
+ e ? /* @__PURE__ */ t("div", { className: "flex size-[var(--table-empty-icon)] items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-table-muted [&_svg]:size-8", children: e }) : null,
1322
1350
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1323
- /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children: a }),
1324
- n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: n }) : null
1351
+ /* @__PURE__ */ t("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children: a }),
1352
+ n ? /* @__PURE__ */ t("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: n }) : null
1325
1353
  ] }),
1326
- l ? /* @__PURE__ */ e("div", { className: "text-sm font-medium text-table-accent", children: l }) : null
1354
+ l ? /* @__PURE__ */ t("div", { className: "text-sm font-medium text-table-accent", children: l }) : null
1327
1355
  ]
1328
1356
  }
1329
1357
  );
1330
1358
  }
1331
- const Va = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1332
- function Ua(t) {
1333
- return t.split(/\s+/).slice(0, 2).map((a) => {
1359
+ const Ua = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1360
+ function Wa(e) {
1361
+ return e.split(/\s+/).slice(0, 2).map((a) => {
1334
1362
  var n;
1335
1363
  return ((n = a[0]) == null ? void 0 : n.toUpperCase()) ?? "";
1336
1364
  }).join("");
1337
1365
  }
1338
- function fr({
1339
- name: t,
1366
+ function br({
1367
+ name: e,
1340
1368
  secondary: a,
1341
1369
  image: n
1342
1370
  }) {
1343
1371
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
1344
1372
  /* @__PURE__ */ s(Ye, { className: "size-8", children: [
1345
- n ? /* @__PURE__ */ e(Ze, { src: n, alt: "" }) : null,
1346
- /* @__PURE__ */ e(Ke, { children: Ua(t) })
1373
+ n ? /* @__PURE__ */ t(Ze, { src: n, alt: "" }) : null,
1374
+ /* @__PURE__ */ t(Ke, { children: Wa(e) })
1347
1375
  ] }),
1348
1376
  /* @__PURE__ */ s("div", { className: "min-w-0", children: [
1349
- /* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
1350
- a ? /* @__PURE__ */ e("div", { className: "truncate text-xs text-table-muted", children: a }) : null
1377
+ /* @__PURE__ */ t("div", { className: "truncate font-medium text-table-header-active", children: e }),
1378
+ a ? /* @__PURE__ */ t("div", { className: "truncate text-xs text-table-muted", children: a }) : null
1351
1379
  ] })
1352
1380
  ] });
1353
1381
  }
1354
- function br({
1355
- rows: t,
1382
+ function hr({
1383
+ rows: e,
1356
1384
  columns: a,
1357
1385
  getRowId: n,
1358
1386
  loading: l = !1,
1359
1387
  error: i,
1360
- empty: d,
1388
+ empty: c,
1361
1389
  search: u,
1362
1390
  filters: m,
1363
- toolbarStart: h,
1391
+ toolbarStart: b,
1364
1392
  toolbarEnd: g,
1365
- tabs: f,
1366
- activeTab: N,
1367
- onTabChange: T,
1368
- infoBanner: S,
1393
+ tabs: h,
1394
+ activeTab: y,
1395
+ onTabChange: S,
1396
+ infoBanner: k,
1369
1397
  selectable: w = !1,
1370
- bulkActions: I,
1371
- rowActions: y,
1398
+ bulkActions: x,
1399
+ rowActions: C,
1372
1400
  onRowClick: F,
1373
1401
  defaultSort: Q,
1374
1402
  pageSize: $ = 25,
@@ -1379,74 +1407,74 @@ function br({
1379
1407
  panelClassName: ht,
1380
1408
  className: gt
1381
1409
  }) {
1382
- const [Te, Me] = z(
1410
+ const [Te, Me] = T(
1383
1411
  () => Object.fromEntries(
1384
1412
  a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
1385
1413
  )
1386
- ), [Pe, Ie] = z(null), [me, Ee] = z(null), [v, xt] = z(
1414
+ ), [Pe, Ie] = T(null), [me, Ee] = T(null), [N, xt] = T(
1387
1415
  Q ?? null
1388
- ), [q, K] = z(0), [L, vt] = z($), [R, pe] = z(/* @__PURE__ */ new Set()), [Nt, fe] = z([]), je = a.map((r) => r.id), _e = new Map(a.map((r) => [r.id, r])), Le = Pe ? Pe.map((r) => _e.get(r)).filter((r) => !!r) : a, E = Le.filter((r) => !Te[r.id]), Re = Le.filter((r) => Te[r.id] && !r.required), Ae = (r) => !!r.required, yt = (r) => _e.get(r), wt = (r, c) => {
1389
- const p = c ? yt(c) : void 0;
1390
- !p || Ae(p) || r === c || Ie((x) => {
1391
- const k = x ?? je;
1392
- return ra(k, k.indexOf(r), k.indexOf(c));
1416
+ ), [q, K] = T(0), [L, vt] = T($), [R, pe] = T(/* @__PURE__ */ new Set()), [Nt, fe] = T([]), je = a.map((r) => r.id), _e = new Map(a.map((r) => [r.id, r])), Le = Pe ? Pe.map((r) => _e.get(r)).filter((r) => !!r) : a, E = Le.filter((r) => !Te[r.id]), Re = Le.filter((r) => Te[r.id] && !r.required), Ae = (r) => !!r.required, yt = (r) => _e.get(r), wt = (r, d) => {
1417
+ const p = d ? yt(d) : void 0;
1418
+ !p || Ae(p) || r === d || Ie((v) => {
1419
+ const D = v ?? je;
1420
+ return ra(D, D.indexOf(r), D.indexOf(d));
1393
1421
  });
1394
1422
  }, Ct = (r) => {
1395
- Me((c) => ({ ...c, [r]: !1 })), Ie((c) => c && c.includes(r) ? c : [...c ?? je, r]);
1423
+ Me((d) => ({ ...d, [r]: !1 })), Ie((d) => d && d.includes(r) ? d : [...d ?? je, r]);
1396
1424
  }, be = (m ?? []).filter((r) => Nt.includes(r.id)), St = (m ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), ee = qe(() => {
1397
- let r = t;
1425
+ let r = e;
1398
1426
  for (const p of m ?? [])
1399
- p.value.length > 0 && (r = r.filter((x) => p.match(x, p.value)));
1427
+ p.value.length > 0 && (r = r.filter((v) => p.match(v, p.value)));
1400
1428
  if (!u || !u.value.trim()) return r;
1401
- const c = u.value.trim().toLowerCase();
1402
- return r.filter((p) => u.keys(p).toLowerCase().includes(c));
1403
- }, [t, u, m]), G = qe(() => {
1404
- if (!v) return ee;
1405
- const r = a.find((p) => p.id === v.id);
1429
+ const d = u.value.trim().toLowerCase();
1430
+ return r.filter((p) => u.keys(p).toLowerCase().includes(d));
1431
+ }, [e, u, m]), G = qe(() => {
1432
+ if (!N) return ee;
1433
+ const r = a.find((p) => p.id === N.id);
1406
1434
  if (!(r != null && r.sortValue)) return ee;
1407
- const c = v.dir === "asc" ? 1 : -1;
1408
- return [...ee].sort((p, x) => {
1409
- const k = r.sortValue(p), V = r.sortValue(x);
1410
- return k == null && V == null ? 0 : k == null ? 1 : V == null ? -1 : typeof k == "number" && typeof V == "number" ? (k - V) * c : String(k).localeCompare(String(V)) * c;
1435
+ const d = N.dir === "asc" ? 1 : -1;
1436
+ return [...ee].sort((p, v) => {
1437
+ const D = r.sortValue(p), V = r.sortValue(v);
1438
+ return D == null && V == null ? 0 : D == null ? 1 : V == null ? -1 : typeof D == "number" && typeof V == "number" ? (D - V) * d : String(D).localeCompare(String(V)) * d;
1411
1439
  });
1412
- }, [ee, v, a]), H = Math.max(1, Math.ceil(G.length / L));
1440
+ }, [ee, N, a]), H = Math.max(1, Math.ceil(G.length / L));
1413
1441
  U(() => {
1414
1442
  K(0);
1415
- }, [u == null ? void 0 : u.value, L, v == null ? void 0 : v.id, v == null ? void 0 : v.dir, N, St]), U(() => {
1443
+ }, [u == null ? void 0 : u.value, L, N == null ? void 0 : N.id, N == null ? void 0 : N.dir, y, St]), U(() => {
1416
1444
  q > H - 1 && K(H - 1);
1417
1445
  }, [q, H]);
1418
1446
  const te = q * L, j = G.slice(te, te + L), kt = (r) => {
1419
1447
  r.sortable && xt(
1420
- (c) => (c == null ? void 0 : c.id) === r.id ? c.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
1448
+ (d) => (d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
1421
1449
  );
1422
- }, Be = j.length > 0 && j.every((r) => R.has(n(r))), zt = j.some((r) => R.has(n(r))), Dt = t.filter((r) => R.has(n(r))), Tt = () => {
1450
+ }, Be = j.length > 0 && j.every((r) => R.has(n(r))), zt = j.some((r) => R.has(n(r))), Dt = e.filter((r) => R.has(n(r))), Tt = () => {
1423
1451
  pe((r) => {
1424
- const c = new Set(r);
1425
- return Be ? j.forEach((p) => c.delete(n(p))) : j.forEach((p) => c.add(n(p))), c;
1452
+ const d = new Set(r);
1453
+ return Be ? j.forEach((p) => d.delete(n(p))) : j.forEach((p) => d.add(n(p))), d;
1426
1454
  });
1427
1455
  }, Mt = (r) => {
1428
- pe((c) => {
1429
- const p = new Set(c);
1456
+ pe((d) => {
1457
+ const p = new Set(d);
1430
1458
  return p.has(r) ? p.delete(r) : p.add(r), p;
1431
1459
  });
1432
- }, Pt = !!(u || m != null && m.length || h || g), It = E.some((r) => r.width), Et = E.length > 1 ? 70 / (E.length - 1) : 100, jt = E.map((r, c) => r.width ? r.width : It ? "auto" : `${c === 0 ? 30 : Et}%`), Fe = [
1460
+ }, Pt = !!(u || m != null && m.length || b || g), It = E.some((r) => r.width), Et = E.length > 1 ? 70 / (E.length - 1) : 100, jt = E.map((r, d) => r.width ? r.width : It ? "auto" : `${d === 0 ? 30 : Et}%`), Fe = [
1433
1461
  ...w ? ["2.75rem"] : [],
1434
1462
  ...jt,
1435
- ...y ? ["11rem"] : []
1436
- ], _t = (r) => (v == null ? void 0 : v.id) === r.id ? v.dir === "asc" ? "ascending" : "descending" : void 0;
1463
+ ...C ? ["11rem"] : []
1464
+ ], _t = (r) => (N == null ? void 0 : N.id) === r.id ? N.dir === "asc" ? "ascending" : "descending" : void 0;
1437
1465
  return /* @__PURE__ */ s("div", { className: o("space-y-4", gt), children: [
1438
- f && f.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: f.map((r) => {
1439
- const c = r.id === N;
1440
- return /* @__PURE__ */ e(
1466
+ h && h.length > 0 && /* @__PURE__ */ t("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: h.map((r) => {
1467
+ const d = r.id === y;
1468
+ return /* @__PURE__ */ t(
1441
1469
  "button",
1442
1470
  {
1443
1471
  type: "button",
1444
1472
  role: "tab",
1445
- "aria-selected": c,
1446
- onClick: () => T == null ? void 0 : T(r.id),
1473
+ "aria-selected": d,
1474
+ onClick: () => S == null ? void 0 : S(r.id),
1447
1475
  className: o(
1448
1476
  "-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
1449
- c ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
1477
+ d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
1450
1478
  ),
1451
1479
  children: r.label
1452
1480
  },
@@ -1454,7 +1482,7 @@ function br({
1454
1482
  );
1455
1483
  }) }),
1456
1484
  Pt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1457
- u && /* @__PURE__ */ e(
1485
+ u && /* @__PURE__ */ t(
1458
1486
  ct,
1459
1487
  {
1460
1488
  type: "search",
@@ -1463,34 +1491,34 @@ function br({
1463
1491
  value: u.value,
1464
1492
  onChange: (r) => u.onChange(r.target.value),
1465
1493
  onClear: () => u.onChange(""),
1466
- leadingIcon: /* @__PURE__ */ e(Vt, {}),
1494
+ leadingIcon: /* @__PURE__ */ t(Vt, {}),
1467
1495
  containerClassName: "w-full sm:w-[280px]",
1468
1496
  className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
1469
1497
  }
1470
1498
  ),
1471
- h,
1499
+ b,
1472
1500
  /* @__PURE__ */ s(xe, { children: [
1473
- /* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ e(
1474
- D,
1501
+ /* @__PURE__ */ t(re, { asChild: !0, children: /* @__PURE__ */ t(
1502
+ M,
1475
1503
  {
1476
1504
  variant: "secondary",
1477
1505
  size: "md",
1478
- leadingIcon: /* @__PURE__ */ e(Ut, {}),
1479
- trailingIcon: /* @__PURE__ */ e(mt, {}),
1506
+ leadingIcon: /* @__PURE__ */ t(Ut, {}),
1507
+ trailingIcon: /* @__PURE__ */ t(mt, {}),
1480
1508
  children: "Columns"
1481
1509
  }
1482
1510
  ) }),
1483
1511
  /* @__PURE__ */ s(ne, { align: "end", className: "w-54", children: [
1484
- /* @__PURE__ */ e(le, { className: "text-[13px]", children: "Active columns" }),
1512
+ /* @__PURE__ */ t(le, { className: "text-[13px]", children: "Active columns" }),
1485
1513
  E.map((r) => {
1486
- const c = Ae(r);
1514
+ const d = Ae(r);
1487
1515
  return /* @__PURE__ */ s(
1488
1516
  W,
1489
1517
  {
1490
1518
  checked: !0,
1491
- draggable: !c,
1519
+ draggable: !d,
1492
1520
  onDragStart: (p) => {
1493
- if (c) {
1521
+ if (d) {
1494
1522
  p.preventDefault();
1495
1523
  return;
1496
1524
  }
@@ -1502,13 +1530,13 @@ function br({
1502
1530
  onDrop: (p) => p.preventDefault(),
1503
1531
  onDragEnd: () => Ee(null),
1504
1532
  onCheckedChange: (p) => {
1505
- !p && !c && Me((x) => ({ ...x, [r.id]: !0 }));
1533
+ !p && !d && Me((v) => ({ ...v, [r.id]: !0 }));
1506
1534
  },
1507
1535
  onSelect: (p) => p.preventDefault(),
1508
1536
  className: "justify-between",
1509
1537
  children: [
1510
- /* @__PURE__ */ e("span", { className: "truncate", children: r.header }),
1511
- c ? /* @__PURE__ */ e(Wt, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
1538
+ /* @__PURE__ */ t("span", { className: "truncate", children: r.header }),
1539
+ d ? /* @__PURE__ */ t(Wt, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ t(
1512
1540
  Ot,
1513
1541
  {
1514
1542
  "aria-hidden": !0,
@@ -1524,14 +1552,14 @@ function br({
1524
1552
  );
1525
1553
  }),
1526
1554
  Re.length > 0 ? /* @__PURE__ */ s(Oe, { children: [
1527
- /* @__PURE__ */ e(ye, {}),
1528
- /* @__PURE__ */ e(le, { className: "text-[13px]", children: "Available columns" }),
1529
- Re.map((r) => /* @__PURE__ */ e(
1555
+ /* @__PURE__ */ t(ye, {}),
1556
+ /* @__PURE__ */ t(le, { className: "text-[13px]", children: "Available columns" }),
1557
+ Re.map((r) => /* @__PURE__ */ t(
1530
1558
  W,
1531
1559
  {
1532
1560
  checked: !1,
1533
1561
  onCheckedChange: () => Ct(r.id),
1534
- onSelect: (c) => c.preventDefault(),
1562
+ onSelect: (d) => d.preventDefault(),
1535
1563
  children: r.header
1536
1564
  },
1537
1565
  r.id
@@ -1540,54 +1568,54 @@ function br({
1540
1568
  ] })
1541
1569
  ] }),
1542
1570
  m && m.length > 0 ? /* @__PURE__ */ s(xe, { children: [
1543
- /* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ e(
1544
- D,
1571
+ /* @__PURE__ */ t(re, { asChild: !0, children: /* @__PURE__ */ t(
1572
+ M,
1545
1573
  {
1546
1574
  variant: "secondary",
1547
1575
  size: "md",
1548
1576
  iconOnly: !0,
1549
1577
  "aria-label": "Add filter",
1550
- children: /* @__PURE__ */ e($e, {})
1578
+ children: /* @__PURE__ */ t($e, {})
1551
1579
  }
1552
1580
  ) }),
1553
- /* @__PURE__ */ e(ne, { align: "start", className: "w-54", children: m.map((r) => /* @__PURE__ */ e(
1581
+ /* @__PURE__ */ t(ne, { align: "start", className: "w-54", children: m.map((r) => /* @__PURE__ */ t(
1554
1582
  se,
1555
1583
  {
1556
1584
  onSelect: () => fe(
1557
- (c) => c.includes(r.id) ? c : [...c, r.id]
1585
+ (d) => d.includes(r.id) ? d : [...d, r.id]
1558
1586
  ),
1559
1587
  children: r.label
1560
1588
  },
1561
1589
  r.id
1562
1590
  )) })
1563
1591
  ] }) : null,
1564
- g ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: g }) : null
1592
+ g ? /* @__PURE__ */ t("div", { className: "flex-0 sm:ml-auto", children: g }) : null
1565
1593
  ] }),
1566
1594
  be.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1567
1595
  be.map((r) => {
1568
- const c = () => {
1569
- r.onChange([]), fe((p) => p.filter((x) => x !== r.id));
1596
+ const d = () => {
1597
+ r.onChange([]), fe((p) => p.filter((v) => v !== r.id));
1570
1598
  };
1571
1599
  return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
1572
- /* @__PURE__ */ e(
1573
- D,
1600
+ /* @__PURE__ */ t(
1601
+ M,
1574
1602
  {
1575
1603
  variant: "secondary",
1576
1604
  size: "md",
1577
1605
  iconOnly: !0,
1578
1606
  "aria-label": `Remove ${r.label} filter`,
1579
1607
  className: "rounded-r-none",
1580
- onClick: c,
1581
- children: /* @__PURE__ */ e(ie, {})
1608
+ onClick: d,
1609
+ children: /* @__PURE__ */ t(ie, {})
1582
1610
  }
1583
1611
  ),
1584
1612
  /* @__PURE__ */ s(xe, { children: [
1585
- /* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ s(D, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1586
- /* @__PURE__ */ e($e, {}),
1587
- /* @__PURE__ */ e("span", { className: "font-medium", children: r.label }),
1588
- /* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
1589
- /* @__PURE__ */ e("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
1590
- /* @__PURE__ */ e(oe, { className: "text-muted" })
1613
+ /* @__PURE__ */ t(re, { asChild: !0, children: /* @__PURE__ */ s(M, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1614
+ /* @__PURE__ */ t($e, {}),
1615
+ /* @__PURE__ */ t("span", { className: "font-medium", children: r.label }),
1616
+ /* @__PURE__ */ t("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
1617
+ /* @__PURE__ */ t("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
1618
+ /* @__PURE__ */ t(oe, { className: "text-muted" })
1591
1619
  ] }) }),
1592
1620
  /* @__PURE__ */ s(ne, { align: "start", className: "w-56", children: [
1593
1621
  /* @__PURE__ */ s(le, { className: "text-[13px]", children: [
@@ -1595,27 +1623,27 @@ function br({
1595
1623
  r.label
1596
1624
  ] }),
1597
1625
  r.options.map((p) => {
1598
- const x = r.value.includes(p.value);
1599
- return /* @__PURE__ */ e(
1626
+ const v = r.value.includes(p.value);
1627
+ return /* @__PURE__ */ t(
1600
1628
  W,
1601
1629
  {
1602
- checked: x,
1630
+ checked: v,
1603
1631
  onCheckedChange: () => r.onChange(
1604
- x ? r.value.filter((k) => k !== p.value) : [...r.value, p.value]
1632
+ v ? r.value.filter((D) => D !== p.value) : [...r.value, p.value]
1605
1633
  ),
1606
- onSelect: (k) => k.preventDefault(),
1634
+ onSelect: (D) => D.preventDefault(),
1607
1635
  children: p.label
1608
1636
  },
1609
1637
  p.value
1610
1638
  );
1611
1639
  }),
1612
- /* @__PURE__ */ e(ye, {}),
1613
- /* @__PURE__ */ e(se, { onSelect: c, children: "Clear filter" })
1640
+ /* @__PURE__ */ t(ye, {}),
1641
+ /* @__PURE__ */ t(se, { onSelect: d, children: "Clear filter" })
1614
1642
  ] })
1615
1643
  ] })
1616
1644
  ] }, r.id);
1617
1645
  }),
1618
- /* @__PURE__ */ e(
1646
+ /* @__PURE__ */ t(
1619
1647
  "button",
1620
1648
  {
1621
1649
  type: "button",
@@ -1628,14 +1656,14 @@ function br({
1628
1656
  }
1629
1657
  )
1630
1658
  ] }) : null,
1631
- S,
1659
+ k,
1632
1660
  w && R.size > 0 && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-3 rounded-lg border border-line bg-elevated px-3 py-2 text-sm", children: [
1633
1661
  /* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
1634
1662
  R.size,
1635
1663
  " selected"
1636
1664
  ] }),
1637
- /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (I ?? []).map((r) => /* @__PURE__ */ s(
1638
- D,
1665
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: (x ?? []).map((r) => /* @__PURE__ */ s(
1666
+ M,
1639
1667
  {
1640
1668
  size: "md",
1641
1669
  variant: r.variant ?? "outline",
@@ -1655,13 +1683,13 @@ function br({
1655
1683
  onClick: () => pe(/* @__PURE__ */ new Set()),
1656
1684
  className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
1657
1685
  children: [
1658
- /* @__PURE__ */ e(ie, { className: "size-3.5" }),
1686
+ /* @__PURE__ */ t(ie, { className: "size-3.5" }),
1659
1687
  "Clear"
1660
1688
  ]
1661
1689
  }
1662
1690
  )
1663
1691
  ] }),
1664
- /* @__PURE__ */ e(
1692
+ /* @__PURE__ */ t(
1665
1693
  ce,
1666
1694
  {
1667
1695
  action: ue,
@@ -1672,9 +1700,9 @@ function br({
1672
1700
  // Visible header: presentational so its controls stay focusable while
1673
1701
  // the body table carries the semantic column headers (sr-only).
1674
1702
  /* @__PURE__ */ s("table", { role: "presentation", className: "w-full table-fixed border-collapse", children: [
1675
- /* @__PURE__ */ e("colgroup", { children: Fe.map((r, c) => /* @__PURE__ */ e("col", { style: { width: r } }, c)) }),
1676
- /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
1677
- w && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-4 align-middle", children: /* @__PURE__ */ e(
1703
+ /* @__PURE__ */ t("colgroup", { children: Fe.map((r, d) => /* @__PURE__ */ t("col", { style: { width: r } }, d)) }),
1704
+ /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ s("tr", { children: [
1705
+ w && /* @__PURE__ */ t("th", { className: "h-(--table-header-h) w-11 px-4 align-middle", children: /* @__PURE__ */ t(
1678
1706
  ve,
1679
1707
  {
1680
1708
  "aria-label": "Select all rows",
@@ -1682,12 +1710,12 @@ function br({
1682
1710
  onCheckedChange: Tt
1683
1711
  }
1684
1712
  ) }),
1685
- E.map((r) => /* @__PURE__ */ e(
1713
+ E.map((r) => /* @__PURE__ */ t(
1686
1714
  "th",
1687
1715
  {
1688
- className: o(Va, r.align === "right" && "text-right", r.className),
1716
+ className: o(Ua, r.align === "right" && "text-right", r.className),
1689
1717
  children: r.sortable ? /* @__PURE__ */ s(
1690
- D,
1718
+ M,
1691
1719
  {
1692
1720
  type: "button",
1693
1721
  variant: "ghost",
@@ -1698,45 +1726,45 @@ function br({
1698
1726
  "h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
1699
1727
  "hover:bg-transparent hover:text-table-header-active hover:shadow-none",
1700
1728
  "active:scale-100 active:bg-transparent active:shadow-none",
1701
- (v == null ? void 0 : v.id) === r.id && "text-table-header-active"
1729
+ (N == null ? void 0 : N.id) === r.id && "text-table-header-active"
1702
1730
  ),
1703
1731
  children: [
1704
1732
  r.header,
1705
- (v == null ? void 0 : v.id) === r.id ? v.dir === "asc" ? /* @__PURE__ */ e(Jt, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(oe, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Qt, { className: "size-3.5 opacity-50" })
1733
+ (N == null ? void 0 : N.id) === r.id ? N.dir === "asc" ? /* @__PURE__ */ t(Jt, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(oe, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ t(Qt, { className: "size-3.5 opacity-50" })
1706
1734
  ]
1707
1735
  }
1708
1736
  ) : r.header
1709
1737
  },
1710
1738
  r.id
1711
1739
  )),
1712
- y && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1740
+ C && /* @__PURE__ */ t("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ t("span", { className: "sr-only", children: "Actions" }) })
1713
1741
  ] }) })
1714
1742
  ] })
1715
1743
  ),
1716
- children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((r) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, r)) }) : i ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1717
- /* @__PURE__ */ e("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ e(Xt, { weight: "duotone" }) }),
1744
+ children: l ? /* @__PURE__ */ t("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((r) => /* @__PURE__ */ t("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, r)) }) : i ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1745
+ /* @__PURE__ */ t("div", { className: "flex size-(--table-empty-icon) items-center justify-center rounded-2xl border border-table-empty-icon-border bg-table-empty-icon text-error [&_svg]:size-8", children: /* @__PURE__ */ t(Xt, { weight: "duotone" }) }),
1718
1746
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1719
- /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
1720
- i.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
1747
+ /* @__PURE__ */ t("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
1748
+ i.description ? /* @__PURE__ */ t("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
1721
1749
  ] }),
1722
1750
  i.action
1723
- ] }) : j.length === 0 ? /* @__PURE__ */ e(
1724
- Ha,
1751
+ ] }) : j.length === 0 ? /* @__PURE__ */ t(
1752
+ Va,
1725
1753
  {
1726
- icon: d == null ? void 0 : d.icon,
1727
- title: (d == null ? void 0 : d.title) ?? "No results",
1728
- description: typeof (d == null ? void 0 : d.description) == "string" ? d.description : void 0,
1729
- action: d == null ? void 0 : d.action
1754
+ icon: c == null ? void 0 : c.icon,
1755
+ title: (c == null ? void 0 : c.title) ?? "No results",
1756
+ description: typeof (c == null ? void 0 : c.description) == "string" ? c.description : void 0,
1757
+ action: c == null ? void 0 : c.action
1730
1758
  }
1731
1759
  ) : /* @__PURE__ */ s("table", { className: "w-full table-fixed border-collapse", children: [
1732
- /* @__PURE__ */ e("colgroup", { children: Fe.map((r, c) => /* @__PURE__ */ e("col", { style: { width: r } }, c)) }),
1733
- /* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
1734
- w && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
1735
- E.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": _t(r), children: r.header }, r.id)),
1736
- y && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1760
+ /* @__PURE__ */ t("colgroup", { children: Fe.map((r, d) => /* @__PURE__ */ t("col", { style: { width: r } }, d)) }),
1761
+ /* @__PURE__ */ t("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
1762
+ w && /* @__PURE__ */ t("th", { scope: "col", children: "Select" }),
1763
+ E.map((r) => /* @__PURE__ */ t("th", { scope: "col", "aria-sort": _t(r), children: r.header }, r.id)),
1764
+ C && /* @__PURE__ */ t("th", { scope: "col", children: "Actions" })
1737
1765
  ] }) }),
1738
- /* @__PURE__ */ e(pa, { children: j.map((r) => {
1739
- const c = n(r), p = R.has(c);
1766
+ /* @__PURE__ */ t(pa, { children: j.map((r) => {
1767
+ const d = n(r), p = R.has(d);
1740
1768
  return /* @__PURE__ */ s(
1741
1769
  fa,
1742
1770
  {
@@ -1744,27 +1772,27 @@ function br({
1744
1772
  onClick: F ? () => F(r) : void 0,
1745
1773
  className: F ? "cursor-pointer" : void 0,
1746
1774
  children: [
1747
- w && /* @__PURE__ */ e(he, { className: "w-11 px-4", onClick: (x) => x.stopPropagation(), children: /* @__PURE__ */ e(
1775
+ w && /* @__PURE__ */ t(he, { className: "w-11 px-4", onClick: (v) => v.stopPropagation(), children: /* @__PURE__ */ t(
1748
1776
  ve,
1749
1777
  {
1750
1778
  "aria-label": "Select row",
1751
1779
  checked: p,
1752
- onCheckedChange: () => Mt(c)
1780
+ onCheckedChange: () => Mt(d)
1753
1781
  }
1754
1782
  ) }),
1755
- E.map((x) => /* @__PURE__ */ e(
1783
+ E.map((v) => /* @__PURE__ */ t(
1756
1784
  he,
1757
1785
  {
1758
- "data-numeric": x.numeric ? "" : void 0,
1759
- className: o(x.align === "right" && "text-right", x.className),
1760
- children: x.cell(r)
1786
+ "data-numeric": v.numeric ? "" : void 0,
1787
+ className: o(v.align === "right" && "text-right", v.className),
1788
+ children: v.cell(r)
1761
1789
  },
1762
- x.id
1790
+ v.id
1763
1791
  )),
1764
- y && /* @__PURE__ */ e(he, { className: "w-44 px-4 text-right", onClick: (x) => x.stopPropagation(), children: y(r) })
1792
+ C && /* @__PURE__ */ t(he, { className: "w-44 px-4 text-right", onClick: (v) => v.stopPropagation(), children: C(r) })
1765
1793
  ]
1766
1794
  },
1767
- c
1795
+ d
1768
1796
  );
1769
1797
  }) })
1770
1798
  ] })
@@ -1779,15 +1807,15 @@ function br({
1779
1807
  G.length
1780
1808
  ] }),
1781
1809
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
1782
- /* @__PURE__ */ s(qa, { value: String(L), onValueChange: (r) => vt(Number(r)), children: [
1783
- /* @__PURE__ */ e(ft, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ e($a, {}) }),
1784
- /* @__PURE__ */ e(bt, { children: _.map((r) => /* @__PURE__ */ s(De, { value: String(r), children: [
1810
+ /* @__PURE__ */ s(Ga, { value: String(L), onValueChange: (r) => vt(Number(r)), children: [
1811
+ /* @__PURE__ */ t(ft, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ t(qa, {}) }),
1812
+ /* @__PURE__ */ t(bt, { children: _.map((r) => /* @__PURE__ */ s(De, { value: String(r), children: [
1785
1813
  r,
1786
1814
  " / page"
1787
1815
  ] }, r)) })
1788
1816
  ] }),
1789
- /* @__PURE__ */ e(
1790
- D,
1817
+ /* @__PURE__ */ t(
1818
+ M,
1791
1819
  {
1792
1820
  variant: "outline",
1793
1821
  size: "md",
@@ -1796,8 +1824,8 @@ function br({
1796
1824
  children: "Previous"
1797
1825
  }
1798
1826
  ),
1799
- /* @__PURE__ */ e(
1800
- D,
1827
+ /* @__PURE__ */ t(
1828
+ M,
1801
1829
  {
1802
1830
  variant: "outline",
1803
1831
  size: "md",
@@ -1810,61 +1838,61 @@ function br({
1810
1838
  ] })
1811
1839
  ] });
1812
1840
  }
1813
- function hr({ icon: t, title: a, description: n, action: l, className: i }) {
1814
- return /* @__PURE__ */ e(ce, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1815
- t ? /* @__PURE__ */ e("div", { className: "flex size-11 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-6", children: t }) : null,
1841
+ function gr({ icon: e, title: a, description: n, action: l, className: i }) {
1842
+ return /* @__PURE__ */ t(ce, { className: i, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1843
+ e ? /* @__PURE__ */ t("div", { className: "flex size-11 items-center justify-center rounded-xl border border-line bg-elevated text-subtle [&_svg]:size-6", children: e }) : null,
1816
1844
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
1817
- /* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: a }),
1818
- n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-sm text-sm text-muted", children: n }) : null
1845
+ /* @__PURE__ */ t("p", { className: "text-sm font-medium text-fg", children: a }),
1846
+ n ? /* @__PURE__ */ t("p", { className: "mx-auto max-w-sm text-sm text-muted", children: n }) : null
1819
1847
  ] }),
1820
1848
  l
1821
1849
  ] }) });
1822
1850
  }
1823
- function gr({ className: t, ...a }) {
1824
- return /* @__PURE__ */ e(
1851
+ function xr({ className: e, ...a }) {
1852
+ return /* @__PURE__ */ t(
1825
1853
  "kbd",
1826
1854
  {
1827
1855
  className: o(
1828
1856
  "inline-flex h-5 min-w-5 items-center justify-center rounded border border-line bg-elevated px-1.5 font-mono text-[11px] font-medium text-subtle",
1829
- t
1857
+ e
1830
1858
  ),
1831
1859
  ...a
1832
1860
  }
1833
1861
  );
1834
1862
  }
1835
- const Wa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1863
+ const Oa = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1836
1864
  ta.Root,
1837
1865
  {
1838
1866
  ref: n,
1839
1867
  className: o(
1840
1868
  "mb-2.5 block text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
1841
- t
1869
+ e
1842
1870
  ),
1843
1871
  ...a
1844
1872
  }
1845
1873
  ));
1846
- Wa.displayName = "Label";
1847
- function xr({
1848
- value: t,
1874
+ Oa.displayName = "Label";
1875
+ function vr({
1876
+ value: e,
1849
1877
  onValueChange: a,
1850
1878
  options: n,
1851
1879
  size: l = "sm",
1852
1880
  className: i,
1853
- ...d
1881
+ ...c
1854
1882
  }) {
1855
1883
  const u = de();
1856
- return /* @__PURE__ */ e(
1884
+ return /* @__PURE__ */ t(
1857
1885
  "div",
1858
1886
  {
1859
1887
  role: "radiogroup",
1860
- "aria-label": d["aria-label"],
1888
+ "aria-label": c["aria-label"],
1861
1889
  className: o(
1862
1890
  "inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
1863
1891
  l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
1864
1892
  i
1865
1893
  ),
1866
1894
  children: n.map((m) => {
1867
- const h = m.value === t;
1895
+ const b = m.value === e;
1868
1896
  return /* @__PURE__ */ s(
1869
1897
  "label",
1870
1898
  {
@@ -1872,16 +1900,16 @@ function xr({
1872
1900
  "inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
1873
1901
  "has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
1874
1902
  l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
1875
- h ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
1903
+ b ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
1876
1904
  ),
1877
1905
  children: [
1878
- /* @__PURE__ */ e(
1906
+ /* @__PURE__ */ t(
1879
1907
  "input",
1880
1908
  {
1881
1909
  type: "radio",
1882
1910
  name: u,
1883
1911
  value: m.value,
1884
- checked: h,
1912
+ checked: b,
1885
1913
  onChange: () => a(m.value),
1886
1914
  className: "sr-only"
1887
1915
  }
@@ -1896,7 +1924,7 @@ function xr({
1896
1924
  }
1897
1925
  );
1898
1926
  }
1899
- const Oa = b(({ className: t, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
1927
+ const Xa = f(({ className: e, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ t(
1900
1928
  aa.Root,
1901
1929
  {
1902
1930
  ref: i,
@@ -1905,22 +1933,22 @@ const Oa = b(({ className: t, orientation: a = "horizontal", decorative: n = !0,
1905
1933
  className: o(
1906
1934
  "shrink-0 bg-line",
1907
1935
  a === "horizontal" ? "h-px w-full" : "h-full w-px",
1908
- t
1936
+ e
1909
1937
  ),
1910
1938
  ...l
1911
1939
  }
1912
1940
  ));
1913
- Oa.displayName = "Separator";
1914
- function vr({ className: t, ...a }) {
1915
- return /* @__PURE__ */ e(
1941
+ Xa.displayName = "Separator";
1942
+ function Nr({ className: e, ...a }) {
1943
+ return /* @__PURE__ */ t(
1916
1944
  "div",
1917
1945
  {
1918
- className: o("animate-pulse rounded-md bg-elevated", t),
1946
+ className: o("animate-pulse rounded-md bg-elevated", e),
1919
1947
  ...a
1920
1948
  }
1921
1949
  );
1922
1950
  }
1923
- const Nr = O.Provider, yr = O.Root, wr = O.Trigger, Xa = b(({ className: t, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ e(O.Portal, { children: /* @__PURE__ */ e(
1951
+ const yr = O.Provider, wr = O.Root, Cr = O.Trigger, Ja = f(({ className: e, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ t(O.Portal, { children: /* @__PURE__ */ t(
1924
1952
  O.Content,
1925
1953
  {
1926
1954
  ref: l,
@@ -1933,20 +1961,20 @@ const Nr = O.Provider, yr = O.Root, wr = O.Trigger, Xa = b(({ className: t, side
1933
1961
  "data-[side=bottom]:slide-in-from-top-1 data-[side=top]:slide-in-from-bottom-1",
1934
1962
  "data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1",
1935
1963
  "duration-150 ease-out",
1936
- t
1964
+ e
1937
1965
  ),
1938
1966
  ...n
1939
1967
  }
1940
1968
  ) }));
1941
- Xa.displayName = "TooltipContent";
1969
+ Ja.displayName = "TooltipContent";
1942
1970
  export {
1943
- ar as AgentPrompt,
1971
+ rr as AgentPrompt,
1944
1972
  Ye as Avatar,
1945
1973
  Ke as AvatarFallback,
1946
1974
  Ze as AvatarImage,
1947
1975
  da as Badge,
1948
- D as Button,
1949
- rr as Callout,
1976
+ M as Button,
1977
+ nr as Callout,
1950
1978
  va as Card,
1951
1979
  wa as CardContent,
1952
1980
  ya as CardDescription,
@@ -1954,65 +1982,65 @@ export {
1954
1982
  et as CardHeader,
1955
1983
  Na as CardTitle,
1956
1984
  ve as Checkbox,
1957
- sr as ChoiceDialog,
1958
- dr as CodeBlock,
1959
- br as DataTable,
1960
- fr as DataTableIdentity,
1985
+ dr as ChoiceDialog,
1986
+ cr as CodeBlock,
1987
+ hr as DataTable,
1988
+ br as DataTableIdentity,
1961
1989
  Ta as Dialog,
1962
- Pa as DialogBody,
1990
+ Ia as DialogBody,
1963
1991
  lt as DialogCancel,
1964
- or as DialogClose,
1992
+ sr as DialogClose,
1965
1993
  ot as DialogContent,
1966
- ja as DialogDescription,
1967
- Ea as DialogFooter,
1968
- Ia as DialogHeader,
1969
- Ma as DialogPanel,
1994
+ _a as DialogDescription,
1995
+ ja as DialogFooter,
1996
+ Ea as DialogHeader,
1997
+ Pa as DialogPanel,
1970
1998
  st as DialogTitle,
1971
1999
  nt as DialogTrigger,
1972
2000
  xe as DropdownMenu,
1973
2001
  W as DropdownMenuCheckboxItem,
1974
2002
  mt as DropdownMenuChevron,
1975
2003
  ne as DropdownMenuContent,
1976
- cr as DropdownMenuGroup,
2004
+ ur as DropdownMenuGroup,
1977
2005
  se as DropdownMenuItem,
1978
2006
  le as DropdownMenuLabel,
1979
- ur as DropdownMenuPortal,
2007
+ mr as DropdownMenuPortal,
1980
2008
  ye as DropdownMenuSeparator,
1981
- mr as DropdownMenuSub,
1982
- Fa as DropdownMenuSubContent,
2009
+ pr as DropdownMenuSub,
2010
+ $a as DropdownMenuSubContent,
1983
2011
  pt as DropdownMenuSubTrigger,
1984
2012
  re as DropdownMenuTrigger,
1985
- hr as EmptyState,
2013
+ gr as EmptyState,
1986
2014
  ct as Input,
1987
- gr as Kbd,
1988
- Wa as Label,
1989
- La as RadioCard,
1990
- _a as RadioGroup,
1991
- xr as Segmented,
1992
- qa as Select,
2015
+ xr as Kbd,
2016
+ Oa as Label,
2017
+ Ra as RadioCard,
2018
+ La as RadioGroup,
2019
+ vr as Segmented,
2020
+ Ga as Select,
1993
2021
  bt as SelectContent,
1994
- pr as SelectGroup,
2022
+ fr as SelectGroup,
1995
2023
  De as SelectItem,
1996
- Ga as SelectLabel,
2024
+ Ha as SelectLabel,
1997
2025
  ft as SelectTrigger,
1998
- $a as SelectValue,
1999
- Oa as Separator,
2000
- vr as Skeleton,
2026
+ qa as SelectValue,
2027
+ Xa as Separator,
2028
+ Nr as Skeleton,
2001
2029
  na as Spinner,
2002
- nr as Table,
2030
+ lr as Table,
2003
2031
  pa as TableBody,
2004
2032
  he as TableCell,
2005
2033
  ua as TableContainer,
2006
- Ha as TableEmptyState,
2007
- ir as TableHead,
2008
- lr as TableHeader,
2034
+ Va as TableEmptyState,
2035
+ or as TableHead,
2036
+ ir as TableHeader,
2009
2037
  ma as TablePanel,
2010
2038
  fa as TableRow,
2011
2039
  ce as TableSurface,
2012
- yr as Tooltip,
2013
- Xa as TooltipContent,
2014
- Nr as TooltipProvider,
2015
- wr as TooltipTrigger,
2040
+ wr as Tooltip,
2041
+ Ja as TooltipContent,
2042
+ yr as TooltipProvider,
2043
+ Cr as TooltipTrigger,
2016
2044
  oa as badgeVariants,
2017
2045
  la as buttonVariants
2018
2046
  };