@jinaan/uikit 0.1.30 → 0.1.32

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 D, 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";
10
+ import * as I from "@radix-ui/react-dialog";
11
+ import * as k from "@radix-ui/react-dropdown-menu";
12
12
  import * as M 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,62 +65,62 @@ 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
+ }, T = 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,
76
- iconOnly: u = !1,
77
- loading: m = !1,
78
- fullWidth: h = !1,
79
- disabled: g,
80
- children: f,
75
+ trailingIcon: u,
76
+ iconOnly: m = !1,
77
+ loading: c = !1,
78
+ fullWidth: x = !1,
79
+ disabled: b,
80
+ children: h,
81
81
  ...N
82
- }, T) => {
83
- const S = l ? Zt : "button", w = ia[n ?? "md"];
84
- return /* @__PURE__ */ e(
85
- S,
82
+ }, S) => {
83
+ const C = l ? Zt : "button", w = ia[n ?? "md"];
84
+ return /* @__PURE__ */ t(
85
+ C,
86
86
  {
87
- ref: T,
88
- "aria-busy": m || void 0,
89
- disabled: l ? void 0 : g || m,
87
+ ref: S,
88
+ "aria-busy": c || void 0,
89
+ disabled: l ? void 0 : b || c,
90
90
  className: o(
91
91
  la({ variant: a, size: n }),
92
- u && "aspect-square px-0",
93
- h && "w-full",
94
- m && "disabled:opacity-100",
95
- t
92
+ m && "aspect-square px-0",
93
+ x && "w-full",
94
+ c && "disabled:opacity-100",
95
+ e
96
96
  ),
97
97
  ...N,
98
- children: l ? f : /* @__PURE__ */ s("span", { className: "relative inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap)", children: [
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
  {
102
102
  className: o(
103
103
  "inline-flex w-full items-center [justify-content:inherit] gap-(--control-gap) transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
104
- m && "translate-y-2 opacity-0"
104
+ c && "translate-y-2 opacity-0"
105
105
  ),
106
- "aria-hidden": m || void 0,
106
+ "aria-hidden": c || 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
+ !c && i ? /* @__PURE__ */ t("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: i }) : null,
109
+ h,
110
+ !c && u ? /* @__PURE__ */ t("span", { className: o("inline-flex shrink-0", w), "aria-hidden": !0, children: u }) : null
111
111
  ]
112
112
  }
113
113
  ),
114
- /* @__PURE__ */ e(
114
+ /* @__PURE__ */ t(
115
115
  "span",
116
116
  {
117
117
  "data-button-spinner": !0,
118
118
  className: o(
119
119
  "pointer-events-none absolute inset-0 flex items-center justify-center transition-[opacity,translate] duration-150 ease-out motion-reduce:transition-none",
120
- m ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
120
+ c ? "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,70 +128,70 @@ const la = we(
128
128
  );
129
129
  }
130
130
  );
131
- D.displayName = "Button";
132
- function ar({
133
- command: t,
131
+ T.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, u] = D(!1), m = async () => {
139
139
  try {
140
- await navigator.clipboard.writeText(t), d(!0), window.setTimeout(() => d(!1), 1500);
140
+ await navigator.clipboard.writeText(e), u(!0), window.setTimeout(() => u(!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
+ T,
154
154
  {
155
155
  variant: "ghost",
156
156
  size: "sm",
157
157
  iconOnly: !0,
158
158
  "aria-label": "Copy prompt",
159
159
  className: "ml-auto",
160
- onClick: u,
161
- children: i ? /* @__PURE__ */ e(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Xe, {})
160
+ onClick: m,
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,110 +255,110 @@ 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: u, className: m, iconClassName: c } = 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",
273
- u,
273
+ m,
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", c), children: l ?? /* @__PURE__ */ t(u, { 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",
386
- className: u,
387
- headerClassName: m,
388
- panelClassName: h,
389
- minHeight: g
385
+ tone: u = "default",
386
+ className: m,
387
+ headerClassName: c,
388
+ panelClassName: x,
389
+ minHeight: b
390
390
  }) {
391
- const f = !!(t || a), N = ga(i) ? /* @__PURE__ */ e(
392
- D,
391
+ const h = !!(e || a), N = ga(i) ? /* @__PURE__ */ t(
392
+ T,
393
393
  {
394
394
  variant: i.variant ?? "primary",
395
395
  size: "xs",
@@ -403,12 +403,12 @@ 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[u], m), 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
- /* @__PURE__ */ s("div", { className: o("[--table-row-hover:transparent] text-table-header", m), children: [
411
- f ? /* @__PURE__ */ s(
410
+ /* @__PURE__ */ s("div", { className: o("[--table-row-hover:transparent] text-table-header", c), children: [
411
+ h ? /* @__PURE__ */ s(
412
412
  "div",
413
413
  {
414
414
  className: o(
@@ -416,91 +416,91 @@ function ce({
416
416
  N && "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),
431
- style: g ? { minHeight: g } : void 0,
430
+ className: o(ha[u], x),
431
+ style: b ? { minHeight: b } : 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
+ N ? /* @__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: N }) }) : 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: u } = xa(a);
451
+ return /* @__PURE__ */ t("div", { ref: l, ...n, children: /* @__PURE__ */ t(ce, { className: o("shadow-xs", e), header: i, children: u }) });
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,65 +552,65 @@ 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 [u, m] = D(
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
+ ), [c, x] = D(!1), b = ae(!1), h = ae(null), N = e ?? u, S = ae(N);
586
+ S.current = N;
587
+ const C = 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), b.current = !1, x(!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 = (P) => {
597
+ if (P) {
598
+ h.current && clearTimeout(h.current), b.current = !1, x(!1), C || m(!0), n == null || n(!0);
599
599
  return;
600
600
  }
601
- if (!N || g.current) return;
601
+ if (!N || b.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
+ C || m(!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
+ b.current = !0, x(!0), h.current = setTimeout(() => {
607
+ C || m(!1), n == null || n(!1), requestAnimationFrame(() => {
608
+ S.current && (b.current = !1, x(!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: c, children: /* @__PURE__ */ t(ke.Provider, { value: !0, children: /* @__PURE__ */ t(
613
+ I.Root,
614
614
  {
615
615
  open: N,
616
616
  onOpenChange: w,
@@ -619,238 +619,268 @@ function Ta({
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(T, { 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");
650
- }, u = (m) => {
651
- m.target === t && (m.animationName !== "dialog-fly-in" && m.animationName !== "dialog-pop-in" || (t.removeEventListener("animationend", u), d()));
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 u = () => {
649
+ e.classList.remove("dialog-fly-in", "dialog-pop-in");
650
+ }, m = (c) => {
651
+ c.target === e && (c.animationName !== "dialog-fly-in" && c.animationName !== "dialog-pop-in" || (e.removeEventListener("animationend", m), u()));
652
652
  };
653
- t.addEventListener("animationend", u);
653
+ e.addEventListener("animationend", m);
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
+ motion: i = "auto",
665
+ style: u,
666
+ onEscapeKeyDown: m,
667
+ onPointerDownOutside: c,
668
+ ...x
669
+ }, b) => {
670
+ const h = B(at), N = n === "top", S = N ? {
671
+ "--dialog-top-offset": l,
672
+ "--dialog-top-offset-fallback": Ma(l)
673
+ } : void 0, C = B(rt), w = ae(null), P = Yt(
674
+ (g) => {
675
+ if (w.current = g, g && i === "auto" && it(g), typeof b == "function") {
676
+ b(g);
677
+ return;
678
+ }
679
+ b && (b.current = g);
680
+ },
681
+ [i, b]
682
+ );
683
+ return /* @__PURE__ */ s(I.Portal, { children: [
684
+ /* @__PURE__ */ t(
685
+ I.Overlay,
686
+ {
687
+ className: o(
688
+ "fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
689
+ !h && "data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
690
+ h && "opacity-0 transition-opacity duration-200"
691
+ ),
692
+ children: /* @__PURE__ */ t(
693
+ "span",
694
+ {
695
+ "aria-hidden": "true",
696
+ className: "dialog-noise pointer-events-none absolute inset-0"
697
+ }
698
+ )
699
+ }
700
+ ),
701
+ /* @__PURE__ */ t(
702
+ "div",
703
+ {
704
+ className: o(
705
+ "pointer-events-none fixed inset-0 z-50 flex justify-center overflow-y-auto p-4",
706
+ N ? "items-start" : "items-center"
707
+ ),
708
+ children: /* @__PURE__ */ s(
709
+ I.Content,
710
+ {
711
+ ref: P,
712
+ style: S ? { ...S, ...u } : u,
713
+ className: o(
714
+ "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]",
715
+ "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
716
+ N && "dialog-anchor-top",
717
+ i === "command" && "dialog-command-motion",
718
+ h && "dialog-closing",
719
+ "focus:outline-none",
720
+ e
721
+ ),
722
+ onEscapeKeyDown: (g) => {
723
+ m == null || m(g), !g.defaultPrevented && (g.preventDefault(), C());
724
+ },
725
+ onPointerDownOutside: (g) => {
726
+ c == null || c(g), !g.defaultPrevented && (g.preventDefault(), C());
727
+ },
728
+ ...x,
729
+ children: [
730
+ a,
731
+ /* @__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: [
732
+ /* @__PURE__ */ t(ie, { className: "size-4" }),
733
+ /* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
734
+ ] })
735
+ ]
736
+ }
737
+ )
738
+ }
739
+ )
740
+ ] });
741
+ }
742
+ );
713
743
  ot.displayName = "DialogContent";
714
- function Ma({
715
- className: t,
744
+ function Pa({
745
+ className: e,
716
746
  ...a
717
747
  }) {
718
- return /* @__PURE__ */ e(
748
+ return /* @__PURE__ */ t(
719
749
  "div",
720
750
  {
721
751
  "data-slot": "panel",
722
752
  className: o(
723
753
  "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
754
+ e
725
755
  ),
726
756
  ...a
727
757
  }
728
758
  );
729
759
  }
730
- function Pa({
731
- className: t,
760
+ function Ia({
761
+ className: e,
732
762
  ...a
733
763
  }) {
734
- return /* @__PURE__ */ e(
764
+ return /* @__PURE__ */ t(
735
765
  "div",
736
766
  {
737
767
  "data-slot": "body",
738
- className: o("min-h-0 flex-1 overflow-y-auto px-5 py-4", t),
768
+ className: o("min-h-0 flex-1 overflow-y-auto px-5 py-4", e),
739
769
  ...a
740
770
  }
741
771
  );
742
772
  }
743
- function Ia({
744
- className: t,
773
+ function Ea({
774
+ className: e,
745
775
  ...a
746
776
  }) {
747
- return /* @__PURE__ */ e(
777
+ return /* @__PURE__ */ t(
748
778
  "div",
749
779
  {
750
780
  "data-slot": "header",
751
781
  className: o(
752
782
  "flex shrink-0 flex-col gap-1.5 border-b border-(--dialog-panel-border) px-5 py-4",
753
- t
783
+ e
754
784
  ),
755
785
  ...a
756
786
  }
757
787
  );
758
788
  }
759
- function Ea({
760
- className: t,
789
+ function ja({
790
+ className: e,
761
791
  ...a
762
792
  }) {
763
- return /* @__PURE__ */ e(
793
+ return /* @__PURE__ */ t(
764
794
  "div",
765
795
  {
766
796
  "data-slot": "footer",
767
797
  className: o(
768
798
  "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
799
+ e
770
800
  ),
771
801
  ...a
772
802
  }
773
803
  );
774
804
  }
775
- const st = b(({ className: t, ...a }, n) => {
776
- const l = B(ke) ? P.Title : "h2";
777
- return /* @__PURE__ */ e(
805
+ const st = f(({ className: e, ...a }, n) => {
806
+ const l = B(ke) ? I.Title : "h2";
807
+ return /* @__PURE__ */ t(
778
808
  l,
779
809
  {
780
810
  ref: n,
781
- className: o("text-base font-semibold text-fg", t),
811
+ className: o("text-base font-semibold text-fg", e),
782
812
  ...a
783
813
  }
784
814
  );
785
815
  });
786
816
  st.displayName = "DialogTitle";
787
- const ja = b(({ className: t, ...a }, n) => {
788
- const l = B(ke) ? P.Description : "p";
789
- return /* @__PURE__ */ e(
817
+ const _a = f(({ className: e, ...a }, n) => {
818
+ const l = B(ke) ? I.Description : "p";
819
+ return /* @__PURE__ */ t(
790
820
  l,
791
821
  {
792
822
  ref: n,
793
- className: o("text-sm text-muted", t),
823
+ className: o("text-sm text-muted", e),
794
824
  ...a
795
825
  }
796
826
  );
797
827
  });
798
- ja.displayName = "DialogDescription";
828
+ _a.displayName = "DialogDescription";
799
829
  const dt = J(null);
800
- function _a({
801
- label: t,
830
+ function La({
831
+ label: e,
802
832
  value: a,
803
833
  onChange: n,
804
834
  disabled: l = !1,
805
835
  name: i,
806
- className: d,
807
- children: u,
808
- ...m
836
+ className: u,
837
+ children: m,
838
+ ...c
809
839
  }) {
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 }),
813
- u
840
+ const x = de(), b = i ?? x;
841
+ return /* @__PURE__ */ t(dt.Provider, { value: { name: b, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: o("flex flex-col gap-6", u), ...c, children: [
842
+ /* @__PURE__ */ t("legend", { className: "sr-only", children: e }),
843
+ m
814
844
  ] }) });
815
845
  }
816
- function La({
817
- value: t,
846
+ function Ra({
847
+ value: e,
818
848
  title: a,
819
849
  description: n,
820
850
  badge: l,
821
851
  disabled: i = !1,
822
- className: d
852
+ className: u
823
853
  }) {
824
- const u = B(dt), m = de();
825
- if (!u)
854
+ const m = B(dt), c = de();
855
+ if (!m)
826
856
  throw new Error("RadioCard must be rendered inside a RadioGroup");
827
- const h = i || u.disabled, g = u.value === t;
857
+ const x = i || m.disabled, b = m.value === e;
828
858
  return /* @__PURE__ */ s(
829
859
  "label",
830
860
  {
831
861
  className: o(
832
862
  "group relative flex items-start gap-3",
833
- h ? "cursor-not-allowed opacity-50" : "cursor-pointer",
834
- d
863
+ x ? "cursor-not-allowed opacity-50" : "cursor-pointer",
864
+ u
835
865
  ),
836
866
  children: [
837
- /* @__PURE__ */ e(
867
+ /* @__PURE__ */ t(
838
868
  "input",
839
869
  {
840
870
  type: "radio",
841
- name: u.name,
842
- value: t,
843
- checked: g,
844
- disabled: h,
871
+ name: m.name,
872
+ value: e,
873
+ checked: b,
874
+ disabled: x,
845
875
  onChange: () => {
846
- var f;
847
- return (f = u.onChange) == null ? void 0 : f.call(u, t);
876
+ var h;
877
+ return (h = m.onChange) == null ? void 0 : h.call(m, e);
848
878
  },
849
- "aria-describedby": n ? m : void 0,
879
+ "aria-describedby": n ? c : void 0,
850
880
  className: "peer sr-only"
851
881
  }
852
882
  ),
853
- /* @__PURE__ */ e(
883
+ /* @__PURE__ */ t(
854
884
  "span",
855
885
  {
856
886
  "aria-hidden": !0,
@@ -863,96 +893,96 @@ function La({
863
893
  ),
864
894
  /* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
865
895
  /* @__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
896
+ /* @__PURE__ */ t("span", { className: "text-base font-semibold text-fg", children: a }),
897
+ l ? /* @__PURE__ */ t(da, { variant: "primary", children: l }) : null
868
898
  ] }),
869
- n ? /* @__PURE__ */ e("span", { id: m, className: "mt-1 block text-sm text-muted", children: n }) : null
899
+ n ? /* @__PURE__ */ t("span", { id: c, className: "mt-1 block text-sm text-muted", children: n }) : null
870
900
  ] })
871
901
  ]
872
902
  }
873
903
  );
874
904
  }
875
- function sr({
876
- open: t,
905
+ function dr({
906
+ open: e,
877
907
  onOpenChange: a,
878
908
  trigger: n,
879
909
  title: l,
880
910
  options: i,
881
- defaultValue: d,
882
- value: u,
883
- onValueChange: m,
884
- cancelLabel: h = "Cancel",
885
- confirmLabel: g = "Continue",
886
- onConfirm: f
911
+ defaultValue: u,
912
+ value: m,
913
+ onValueChange: c,
914
+ cancelLabel: x = "Cancel",
915
+ confirmLabel: b = "Continue",
916
+ onConfirm: h
887
917
  }) {
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,
918
+ var P;
919
+ const [N, S] = D(u ?? ((P = i[0]) == null ? void 0 : P.value) ?? ""), C = m ?? N;
920
+ return /* @__PURE__ */ s(Ta, { open: e, onOpenChange: a, children: [
921
+ n ? /* @__PURE__ */ t(nt, { asChild: !0, children: n }) : null,
892
922
  /* @__PURE__ */ s(
893
923
  ot,
894
924
  {
895
925
  "aria-describedby": void 0,
896
926
  className: "max-w-[29.4rem] [&>button]:hidden",
897
927
  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,
928
+ /* @__PURE__ */ s(Pa, { children: [
929
+ /* @__PURE__ */ t(Ea, { children: /* @__PURE__ */ t(st, { className: "text-xl", children: l }) }),
930
+ /* @__PURE__ */ t(Ia, { children: /* @__PURE__ */ t(La, { label: l, value: C, onChange: (g) => {
931
+ m === void 0 && S(g), c == null || c(g);
932
+ }, children: i.map((g) => /* @__PURE__ */ t(
933
+ Ra,
904
934
  {
905
- value: y.value,
906
- title: y.title,
907
- description: y.description,
908
- badge: y.badge
935
+ value: g.value,
936
+ title: g.title,
937
+ description: g.description,
938
+ badge: g.badge
909
939
  },
910
- y.value
940
+ g.value
911
941
  )) }) })
912
942
  ] }),
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 })
943
+ /* @__PURE__ */ s(ja, { className: "gap-3 pt-2.5", children: [
944
+ /* @__PURE__ */ t(lt, { className: "flex-1", children: x }),
945
+ /* @__PURE__ */ t(T, { className: "flex-1", onClick: () => h == null ? void 0 : h(C), children: b })
916
946
  ] })
917
947
  ]
918
948
  }
919
949
  )
920
950
  ] });
921
951
  }
922
- function dr({ code: t, label: a, className: n }) {
923
- const [l, i] = z(!1);
924
- return /* @__PURE__ */ e(
952
+ function cr({ code: e, label: a, className: n }) {
953
+ const [l, i] = D(!1);
954
+ return /* @__PURE__ */ t(
925
955
  ce,
926
956
  {
927
957
  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 }) }),
958
+ 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
959
  action: {
930
960
  label: l ? "Copied" : "Copy",
931
- icon: l ? /* @__PURE__ */ e(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(Xe, {}),
961
+ icon: l ? /* @__PURE__ */ t(X, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ t(Xe, {}),
932
962
  variant: "ghost",
933
963
  onClick: async () => {
934
964
  try {
935
- await navigator.clipboard.writeText(t), i(!0), window.setTimeout(() => i(!1), 1500);
965
+ await navigator.clipboard.writeText(e), i(!0), window.setTimeout(() => i(!1), 1500);
936
966
  } catch {
937
967
  }
938
968
  }
939
969
  },
940
970
  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 }) })
971
+ 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
972
  }
943
973
  );
944
974
  }
945
- const Ra = {
975
+ const Aa = {
946
976
  sm: "h-[var(--control-h-sm)] text-sm",
947
977
  md: "h-[var(--control-h-md)] text-sm",
948
978
  lg: "h-[var(--control-h-lg)] text-sm",
949
979
  xl: "h-[var(--control-h-xl)] rounded-lg text-base"
950
- }, Aa = {
980
+ }, Ba = {
951
981
  sm: "px-[var(--control-pad-x-sm)]",
952
982
  md: "px-[var(--control-pad-x-md)]",
953
983
  lg: "px-[var(--control-pad-x-lg)]",
954
984
  xl: "px-[var(--control-pad-x-xl)]"
955
- }, Ba = {
985
+ }, Fa = {
956
986
  sm: "left-[var(--control-pad-x-sm)]",
957
987
  md: "left-[var(--control-pad-x-md)]",
958
988
  lg: "left-[var(--control-pad-x-lg)]",
@@ -967,85 +997,85 @@ const Ra = {
967
997
  md: "size-[var(--control-icon-md)]",
968
998
  lg: "size-[var(--control-icon-lg)]",
969
999
  xl: "size-[var(--control-icon-xl)]"
970
- }, ct = b(
1000
+ }, ct = f(
971
1001
  ({
972
- className: t,
1002
+ className: e,
973
1003
  containerClassName: a,
974
1004
  type: n = "text",
975
1005
  size: l = "md",
976
1006
  leadingIcon: i,
977
- trailingIcon: d,
978
- onClear: u,
979
- value: m,
980
- defaultValue: h,
981
- error: g = !1,
982
- helperText: f,
1007
+ trailingIcon: u,
1008
+ onClear: m,
1009
+ value: c,
1010
+ defaultValue: x,
1011
+ error: b = !1,
1012
+ helperText: h,
983
1013
  id: N,
984
- "aria-describedby": T,
985
- disabled: S,
1014
+ "aria-describedby": S,
1015
+ disabled: C,
986
1016
  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(
1017
+ ...P
1018
+ }, g) => {
1019
+ const F = de(), Q = N ?? F, $ = !!h, _ = !!(m && (c !== void 0 ? String(c).length > 0 : x !== void 0 && String(x).length > 0)), Y = $ ? `${Q}-description` : void 0, ue = [S, Y].filter(Boolean).join(" ") || void 0, Z = /* @__PURE__ */ t(
990
1020
  "input",
991
1021
  {
992
- ref: y,
1022
+ ref: g,
993
1023
  id: Q,
994
1024
  type: n,
995
- disabled: S,
1025
+ disabled: C,
996
1026
  readOnly: w,
997
- "aria-invalid": g || void 0,
1027
+ "aria-invalid": b || void 0,
998
1028
  "aria-describedby": ue,
999
- style: i || d || _ ? {
1029
+ style: i || u || _ ? {
1000
1030
  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
1031
+ paddingInlineEnd: u || _ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
1002
1032
  } : void 0,
1003
1033
  className: o(
1004
1034
  "flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
1005
- Ra[l],
1006
1035
  Aa[l],
1036
+ Ba[l],
1007
1037
  "placeholder:text-(--input-placeholder)",
1008
1038
  "hover:border-(--input-border-hover)",
1009
1039
  "focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
1010
- g && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
1011
- !g && "border-(--input-border)",
1040
+ b && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
1041
+ !b && "border-(--input-border)",
1012
1042
  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)",
1043
+ C && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1014
1044
  w && "cursor-default focus-visible:ring-0",
1015
- t
1045
+ e
1016
1046
  ),
1017
- value: m,
1018
- defaultValue: h,
1019
- ...I
1047
+ value: c,
1048
+ defaultValue: x,
1049
+ ...P
1020
1050
  }
1021
1051
  );
1022
- return !i && !d && !_ && !$ ? Z : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1052
+ return !i && !u && !_ && !$ ? Z : /* @__PURE__ */ s("div", { className: o("w-full", a), children: [
1023
1053
  /* @__PURE__ */ s("div", { className: "relative", children: [
1024
- i ? /* @__PURE__ */ e(
1054
+ i ? /* @__PURE__ */ t(
1025
1055
  "span",
1026
1056
  {
1027
1057
  className: o(
1028
1058
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1029
- Ba[l]
1059
+ Fa[l]
1030
1060
  ),
1031
1061
  "aria-hidden": !0,
1032
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ge[l]), children: i })
1062
+ children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: i })
1033
1063
  }
1034
1064
  ) : null,
1035
1065
  Z,
1036
- _ ? /* @__PURE__ */ e(
1066
+ _ ? /* @__PURE__ */ t(
1037
1067
  "button",
1038
1068
  {
1039
1069
  type: "button",
1040
1070
  "aria-label": "Clear search",
1041
- onClick: u,
1071
+ onClick: m,
1042
1072
  className: o(
1043
1073
  "absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
1044
1074
  We[l]
1045
1075
  ),
1046
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ge[l]), children: /* @__PURE__ */ e(ie, {}) })
1076
+ children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: /* @__PURE__ */ t(ie, {}) })
1047
1077
  }
1048
- ) : d ? /* @__PURE__ */ e(
1078
+ ) : u ? /* @__PURE__ */ t(
1049
1079
  "span",
1050
1080
  {
1051
1081
  className: o(
@@ -1053,27 +1083,27 @@ const Ra = {
1053
1083
  We[l]
1054
1084
  ),
1055
1085
  "aria-hidden": !0,
1056
- children: /* @__PURE__ */ e("span", { className: o("inline-flex items-center justify-center", ge[l]), children: d })
1086
+ children: /* @__PURE__ */ t("span", { className: o("inline-flex items-center justify-center", ge[l]), children: u })
1057
1087
  }
1058
1088
  ) : null
1059
1089
  ] }),
1060
- $ ? /* @__PURE__ */ e(
1090
+ $ ? /* @__PURE__ */ t(
1061
1091
  "p",
1062
1092
  {
1063
1093
  id: Y,
1064
- className: o("mt-1.5 text-xs", g ? "text-error" : "text-muted"),
1065
- children: f
1094
+ className: o("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
1095
+ children: h
1066
1096
  }
1067
1097
  ) : null
1068
1098
  ] });
1069
1099
  }
1070
1100
  );
1071
1101
  ct.displayName = "Input";
1072
- function ze(t, a) {
1102
+ function ze(e, a) {
1073
1103
  let n = 0;
1074
- return Je.forEach(t, (l) => {
1104
+ return Je.forEach(e, (l) => {
1075
1105
  if (!Qe(l)) return;
1076
- if (a.some((d) => d === l.type)) {
1106
+ if (a.some((u) => u === l.type)) {
1077
1107
  n += 1;
1078
1108
  return;
1079
1109
  }
@@ -1083,44 +1113,44 @@ function ze(t, a) {
1083
1113
  }
1084
1114
  const ut = J(!1);
1085
1115
  function xe({
1086
- children: t,
1116
+ children: e,
1087
1117
  ...a
1088
1118
  }) {
1089
- const n = ze(t, [
1119
+ const n = ze(e, [
1090
1120
  se,
1091
1121
  W,
1092
1122
  pt
1093
1123
  ]) === 0;
1094
- return /* @__PURE__ */ e(ut.Provider, { value: n, children: /* @__PURE__ */ e(C.Root, { ...a, children: t }) });
1124
+ return /* @__PURE__ */ t(ut.Provider, { value: n, children: /* @__PURE__ */ t(k.Root, { ...a, children: e }) });
1095
1125
  }
1096
- const re = b(({ className: t, disabled: a, ...n }, l) => {
1126
+ const re = f(({ className: e, disabled: a, ...n }, l) => {
1097
1127
  const i = B(ut);
1098
- return /* @__PURE__ */ e(
1099
- C.Trigger,
1128
+ return /* @__PURE__ */ t(
1129
+ k.Trigger,
1100
1130
  {
1101
1131
  ref: l,
1102
- className: o("group", t),
1132
+ className: o("group", e),
1103
1133
  disabled: a || i,
1104
1134
  ...n
1105
1135
  }
1106
1136
  );
1107
1137
  });
1108
1138
  re.displayName = "DropdownMenuTrigger";
1109
- const mt = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1139
+ const mt = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1110
1140
  oe,
1111
1141
  {
1112
1142
  ref: n,
1113
1143
  "aria-hidden": !0,
1114
1144
  className: o(
1115
1145
  "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
1146
+ e
1117
1147
  ),
1118
1148
  ...a
1119
1149
  }
1120
1150
  ));
1121
1151
  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,
1152
+ const ur = k.Group, mr = k.Portal, ne = f(({ className: e, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ t(k.Portal, { children: /* @__PURE__ */ t(
1153
+ k.Content,
1124
1154
  {
1125
1155
  ref: l,
1126
1156
  sideOffset: a,
@@ -1132,14 +1162,14 @@ const cr = C.Group, ur = C.Portal, ne = b(({ className: t, sideOffset: a = 8, ..
1132
1162
  "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
1133
1163
  "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
1134
1164
  "duration-150 ease-out",
1135
- t
1165
+ e
1136
1166
  ),
1137
1167
  ...n
1138
1168
  }
1139
1169
  ) }));
1140
1170
  ne.displayName = "DropdownMenuContent";
1141
- const se = b(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1142
- C.Item,
1171
+ const se = f(({ className: e, inset: a, ...n }, l) => /* @__PURE__ */ t(
1172
+ k.Item,
1143
1173
  {
1144
1174
  ref: l,
1145
1175
  className: o(
@@ -1147,40 +1177,40 @@ const se = b(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1147
1177
  "focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
1148
1178
  "[&_svg]:size-4 [&_svg]:text-muted",
1149
1179
  a && "pl-8",
1150
- t
1180
+ e
1151
1181
  ),
1152
1182
  ...n
1153
1183
  }
1154
1184
  ));
1155
1185
  se.displayName = "DropdownMenuItem";
1156
- const W = b(({ className: t, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
1157
- C.CheckboxItem,
1186
+ const W = f(({ className: e, children: a, checked: n, ...l }, i) => /* @__PURE__ */ s(
1187
+ k.CheckboxItem,
1158
1188
  {
1159
1189
  ref: i,
1160
1190
  className: o(
1161
1191
  "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
1192
+ e
1163
1193
  ),
1164
1194
  checked: n,
1165
1195
  ...l,
1166
1196
  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" }) }) }),
1197
+ /* @__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(k.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
1198
  a
1169
1199
  ]
1170
1200
  }
1171
1201
  ));
1172
1202
  W.displayName = "DropdownMenuCheckboxItem";
1173
- const le = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1174
- C.Label,
1203
+ const le = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1204
+ k.Label,
1175
1205
  {
1176
1206
  ref: n,
1177
- className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
1207
+ className: o("px-2 py-1.5 text-xs font-medium text-subtle", e),
1178
1208
  ...a
1179
1209
  }
1180
1210
  ));
1181
1211
  le.displayName = "DropdownMenuLabel";
1182
- const mr = C.Sub, pt = b(({ className: t, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
1183
- C.SubTrigger,
1212
+ const pr = k.Sub, pt = f(({ className: e, inset: a, children: n, ...l }, i) => /* @__PURE__ */ s(
1213
+ k.SubTrigger,
1184
1214
  {
1185
1215
  ref: i,
1186
1216
  className: o(
@@ -1188,18 +1218,18 @@ const mr = C.Sub, pt = b(({ className: t, inset: a, children: n, ...l }, i) => /
1188
1218
  "focus:bg-(--menu-highlight) data-[state=open]:bg-(--menu-highlight)",
1189
1219
  "[&_svg]:size-4 [&_svg]:text-muted",
1190
1220
  a && "pl-8",
1191
- t
1221
+ e
1192
1222
  ),
1193
1223
  ...l,
1194
1224
  children: [
1195
1225
  n,
1196
- /* @__PURE__ */ e(Ht, { className: "ml-auto shrink-0" })
1226
+ /* @__PURE__ */ t(Ht, { className: "ml-auto shrink-0" })
1197
1227
  ]
1198
1228
  }
1199
1229
  ));
1200
1230
  pt.displayName = "DropdownMenuSubTrigger";
1201
- const Fa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1202
- C.SubContent,
1231
+ const $a = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1232
+ k.SubContent,
1203
1233
  {
1204
1234
  ref: n,
1205
1235
  sideOffset: 8,
@@ -1211,31 +1241,31 @@ const Fa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1211
1241
  "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
1212
1242
  "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
1213
1243
  "duration-150 ease-out",
1214
- t
1244
+ e
1215
1245
  ),
1216
1246
  ...a
1217
1247
  }
1218
1248
  ));
1219
- Fa.displayName = "DropdownMenuSubContent";
1220
- const ye = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1221
- C.Separator,
1249
+ $a.displayName = "DropdownMenuSubContent";
1250
+ const ye = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1251
+ k.Separator,
1222
1252
  {
1223
1253
  ref: n,
1224
- className: o("-mx-1 my-1 h-px bg-line-strong", t),
1254
+ className: o("-mx-1 my-1 h-px bg-line-strong", e),
1225
1255
  ...a
1226
1256
  }
1227
1257
  ));
1228
1258
  ye.displayName = "DropdownMenuSeparator";
1229
- const pr = M.Group, $a = M.Value;
1230
- function qa({
1231
- children: t,
1259
+ const fr = M.Group, qa = M.Value;
1260
+ function Ga({
1261
+ children: e,
1232
1262
  disabled: a,
1233
1263
  ...n
1234
1264
  }) {
1235
- const l = ze(t, [De]) === 0;
1236
- return /* @__PURE__ */ e(M.Root, { disabled: a || l, ...n, children: t });
1265
+ const l = ze(e, [De]) === 0;
1266
+ return /* @__PURE__ */ t(M.Root, { disabled: a || l, ...n, children: e });
1237
1267
  }
1238
- const ft = b(({ className: t, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1268
+ const ft = f(({ className: e, children: a, variant: n = "field", ...l }, i) => /* @__PURE__ */ s(
1239
1269
  M.Trigger,
1240
1270
  {
1241
1271
  ref: i,
@@ -1245,21 +1275,21 @@ const ft = b(({ className: t, children: a, variant: n = "field", ...l }, i) => /
1245
1275
  "data-disabled:cursor-not-allowed data-disabled:opacity-50",
1246
1276
  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
1277
  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
1278
+ e
1249
1279
  ),
1250
1280
  ...l,
1251
1281
  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" }) })
1282
+ /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
1283
+ /* @__PURE__ */ t(M.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
1284
  ]
1255
1285
  }
1256
1286
  ));
1257
1287
  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(
1288
+ const bt = f(
1289
+ ({ className: e, children: a, position: n = "popper", sideOffset: l = 8, ...i }, u) => /* @__PURE__ */ t(M.Portal, { children: /* @__PURE__ */ t(
1260
1290
  M.Content,
1261
1291
  {
1262
- ref: d,
1292
+ ref: u,
1263
1293
  position: n,
1264
1294
  sideOffset: l,
1265
1295
  className: o(
@@ -1270,41 +1300,41 @@ const bt = b(
1270
1300
  "data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
1271
1301
  "data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
1272
1302
  "duration-150 ease-out",
1273
- t
1303
+ e
1274
1304
  ),
1275
1305
  ...i,
1276
- children: /* @__PURE__ */ e(M.Viewport, { className: "p-0", children: a })
1306
+ children: /* @__PURE__ */ t(M.Viewport, { className: "p-0", children: a })
1277
1307
  }
1278
1308
  ) })
1279
1309
  );
1280
1310
  bt.displayName = "SelectContent";
1281
- const De = b(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
1311
+ const De = f(({ className: e, children: a, ...n }, l) => /* @__PURE__ */ s(
1282
1312
  M.Item,
1283
1313
  {
1284
1314
  ref: l,
1285
1315
  className: o(
1286
1316
  "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
1317
+ e
1288
1318
  ),
1289
1319
  ...n,
1290
1320
  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 })
1321
+ /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ t(M.ItemIndicator, { children: /* @__PURE__ */ t(X, { className: "size-3.5" }) }) }),
1322
+ /* @__PURE__ */ t(M.ItemText, { children: a })
1293
1323
  ]
1294
1324
  }
1295
1325
  ));
1296
1326
  De.displayName = "SelectItem";
1297
- const Ga = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1327
+ const Ha = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1298
1328
  M.Label,
1299
1329
  {
1300
1330
  ref: n,
1301
- className: o("px-2 py-1.5 text-xs font-medium text-subtle", t),
1331
+ className: o("px-2 py-1.5 text-xs font-medium text-subtle", e),
1302
1332
  ...a
1303
1333
  }
1304
1334
  ));
1305
- Ga.displayName = "SelectLabel";
1306
- function Ha({
1307
- icon: t,
1335
+ Ha.displayName = "SelectLabel";
1336
+ function Va({
1337
+ icon: e,
1308
1338
  title: a,
1309
1339
  description: n,
1310
1340
  action: l,
@@ -1318,57 +1348,57 @@ function Ha({
1318
1348
  i
1319
1349
  ),
1320
1350
  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,
1351
+ 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
1352
  /* @__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
1353
+ /* @__PURE__ */ t("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children: a }),
1354
+ n ? /* @__PURE__ */ t("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: n }) : null
1325
1355
  ] }),
1326
- l ? /* @__PURE__ */ e("div", { className: "text-sm font-medium text-table-accent", children: l }) : null
1356
+ l ? /* @__PURE__ */ t("div", { className: "text-sm font-medium text-table-accent", children: l }) : null
1327
1357
  ]
1328
1358
  }
1329
1359
  );
1330
1360
  }
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) => {
1361
+ 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";
1362
+ function Wa(e) {
1363
+ return e.split(/\s+/).slice(0, 2).map((a) => {
1334
1364
  var n;
1335
1365
  return ((n = a[0]) == null ? void 0 : n.toUpperCase()) ?? "";
1336
1366
  }).join("");
1337
1367
  }
1338
- function fr({
1339
- name: t,
1368
+ function br({
1369
+ name: e,
1340
1370
  secondary: a,
1341
1371
  image: n
1342
1372
  }) {
1343
1373
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
1344
1374
  /* @__PURE__ */ s(Ye, { className: "size-8", children: [
1345
- n ? /* @__PURE__ */ e(Ze, { src: n, alt: "" }) : null,
1346
- /* @__PURE__ */ e(Ke, { children: Ua(t) })
1375
+ n ? /* @__PURE__ */ t(Ze, { src: n, alt: "" }) : null,
1376
+ /* @__PURE__ */ t(Ke, { children: Wa(e) })
1347
1377
  ] }),
1348
1378
  /* @__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
1379
+ /* @__PURE__ */ t("div", { className: "truncate font-medium text-table-header-active", children: e }),
1380
+ a ? /* @__PURE__ */ t("div", { className: "truncate text-xs text-table-muted", children: a }) : null
1351
1381
  ] })
1352
1382
  ] });
1353
1383
  }
1354
- function br({
1355
- rows: t,
1384
+ function hr({
1385
+ rows: e,
1356
1386
  columns: a,
1357
1387
  getRowId: n,
1358
1388
  loading: l = !1,
1359
1389
  error: i,
1360
- empty: d,
1361
- search: u,
1362
- filters: m,
1363
- toolbarStart: h,
1364
- toolbarEnd: g,
1365
- tabs: f,
1390
+ empty: u,
1391
+ search: m,
1392
+ filters: c,
1393
+ toolbarStart: x,
1394
+ toolbarEnd: b,
1395
+ tabs: h,
1366
1396
  activeTab: N,
1367
- onTabChange: T,
1368
- infoBanner: S,
1397
+ onTabChange: S,
1398
+ infoBanner: C,
1369
1399
  selectable: w = !1,
1370
- bulkActions: I,
1371
- rowActions: y,
1400
+ bulkActions: P,
1401
+ rowActions: g,
1372
1402
  onRowClick: F,
1373
1403
  defaultSort: Q,
1374
1404
  pageSize: $ = 25,
@@ -1379,74 +1409,74 @@ function br({
1379
1409
  panelClassName: ht,
1380
1410
  className: gt
1381
1411
  }) {
1382
- const [Te, Me] = z(
1412
+ const [Te, Me] = D(
1383
1413
  () => Object.fromEntries(
1384
1414
  a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
1385
1415
  )
1386
- ), [Pe, Ie] = z(null), [me, Ee] = z(null), [v, xt] = z(
1416
+ ), [Pe, Ie] = D(null), [me, Ee] = D(null), [y, xt] = D(
1387
1417
  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));
1418
+ ), [q, K] = D(0), [L, vt] = D($), [R, pe] = D(/* @__PURE__ */ new Set()), [Nt, fe] = D([]), 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) => {
1419
+ const p = d ? yt(d) : void 0;
1420
+ !p || Ae(p) || r === d || Ie((v) => {
1421
+ const z = v ?? je;
1422
+ return ra(z, z.indexOf(r), z.indexOf(d));
1393
1423
  });
1394
1424
  }, Ct = (r) => {
1395
- Me((c) => ({ ...c, [r]: !1 })), Ie((c) => c && c.includes(r) ? c : [...c ?? je, r]);
1396
- }, be = (m ?? []).filter((r) => Nt.includes(r.id)), St = (m ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), ee = qe(() => {
1397
- let r = t;
1398
- for (const p of m ?? [])
1399
- p.value.length > 0 && (r = r.filter((x) => p.match(x, p.value)));
1400
- 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);
1425
+ Me((d) => ({ ...d, [r]: !1 })), Ie((d) => d && d.includes(r) ? d : [...d ?? je, r]);
1426
+ }, be = (c ?? []).filter((r) => Nt.includes(r.id)), St = (c ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), ee = qe(() => {
1427
+ let r = e;
1428
+ for (const p of c ?? [])
1429
+ p.value.length > 0 && (r = r.filter((v) => p.match(v, p.value)));
1430
+ if (!m || !m.value.trim()) return r;
1431
+ const d = m.value.trim().toLowerCase();
1432
+ return r.filter((p) => m.keys(p).toLowerCase().includes(d));
1433
+ }, [e, m, c]), G = qe(() => {
1434
+ if (!y) return ee;
1435
+ const r = a.find((p) => p.id === y.id);
1406
1436
  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;
1437
+ const d = y.dir === "asc" ? 1 : -1;
1438
+ return [...ee].sort((p, v) => {
1439
+ const z = r.sortValue(p), V = r.sortValue(v);
1440
+ return z == null && V == null ? 0 : z == null ? 1 : V == null ? -1 : typeof z == "number" && typeof V == "number" ? (z - V) * d : String(z).localeCompare(String(V)) * d;
1411
1441
  });
1412
- }, [ee, v, a]), H = Math.max(1, Math.ceil(G.length / L));
1442
+ }, [ee, y, a]), H = Math.max(1, Math.ceil(G.length / L));
1413
1443
  U(() => {
1414
1444
  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(() => {
1445
+ }, [m == null ? void 0 : m.value, L, y == null ? void 0 : y.id, y == null ? void 0 : y.dir, N, St]), U(() => {
1416
1446
  q > H - 1 && K(H - 1);
1417
1447
  }, [q, H]);
1418
1448
  const te = q * L, j = G.slice(te, te + L), kt = (r) => {
1419
1449
  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" }
1450
+ (d) => (d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
1421
1451
  );
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 = () => {
1452
+ }, 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
1453
  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;
1454
+ const d = new Set(r);
1455
+ return Be ? j.forEach((p) => d.delete(n(p))) : j.forEach((p) => d.add(n(p))), d;
1426
1456
  });
1427
1457
  }, Mt = (r) => {
1428
- pe((c) => {
1429
- const p = new Set(c);
1458
+ pe((d) => {
1459
+ const p = new Set(d);
1430
1460
  return p.has(r) ? p.delete(r) : p.add(r), p;
1431
1461
  });
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 = [
1462
+ }, Pt = !!(m || c != null && c.length || x || b), 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
1463
  ...w ? ["2.75rem"] : [],
1434
1464
  ...jt,
1435
- ...y ? ["11rem"] : []
1436
- ], _t = (r) => (v == null ? void 0 : v.id) === r.id ? v.dir === "asc" ? "ascending" : "descending" : void 0;
1465
+ ...g ? ["11rem"] : []
1466
+ ], _t = (r) => (y == null ? void 0 : y.id) === r.id ? y.dir === "asc" ? "ascending" : "descending" : void 0;
1437
1467
  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(
1468
+ h && h.length > 0 && /* @__PURE__ */ t("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: h.map((r) => {
1469
+ const d = r.id === N;
1470
+ return /* @__PURE__ */ t(
1441
1471
  "button",
1442
1472
  {
1443
1473
  type: "button",
1444
1474
  role: "tab",
1445
- "aria-selected": c,
1446
- onClick: () => T == null ? void 0 : T(r.id),
1475
+ "aria-selected": d,
1476
+ onClick: () => S == null ? void 0 : S(r.id),
1447
1477
  className: o(
1448
1478
  "-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"
1479
+ d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
1450
1480
  ),
1451
1481
  children: r.label
1452
1482
  },
@@ -1454,43 +1484,43 @@ function br({
1454
1484
  );
1455
1485
  }) }),
1456
1486
  Pt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1457
- u && /* @__PURE__ */ e(
1487
+ m && /* @__PURE__ */ t(
1458
1488
  ct,
1459
1489
  {
1460
1490
  type: "search",
1461
- "aria-label": u.placeholder ?? "Search",
1462
- placeholder: u.placeholder ?? "Search...",
1463
- value: u.value,
1464
- onChange: (r) => u.onChange(r.target.value),
1465
- onClear: () => u.onChange(""),
1466
- leadingIcon: /* @__PURE__ */ e(Vt, {}),
1491
+ "aria-label": m.placeholder ?? "Search",
1492
+ placeholder: m.placeholder ?? "Search...",
1493
+ value: m.value,
1494
+ onChange: (r) => m.onChange(r.target.value),
1495
+ onClear: () => m.onChange(""),
1496
+ leadingIcon: /* @__PURE__ */ t(Vt, {}),
1467
1497
  containerClassName: "w-full sm:w-[280px]",
1468
1498
  className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
1469
1499
  }
1470
1500
  ),
1471
- h,
1501
+ x,
1472
1502
  /* @__PURE__ */ s(xe, { children: [
1473
- /* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ e(
1474
- D,
1503
+ /* @__PURE__ */ t(re, { asChild: !0, children: /* @__PURE__ */ t(
1504
+ T,
1475
1505
  {
1476
1506
  variant: "secondary",
1477
1507
  size: "md",
1478
- leadingIcon: /* @__PURE__ */ e(Ut, {}),
1479
- trailingIcon: /* @__PURE__ */ e(mt, {}),
1508
+ leadingIcon: /* @__PURE__ */ t(Ut, {}),
1509
+ trailingIcon: /* @__PURE__ */ t(mt, {}),
1480
1510
  children: "Columns"
1481
1511
  }
1482
1512
  ) }),
1483
1513
  /* @__PURE__ */ s(ne, { align: "end", className: "w-54", children: [
1484
- /* @__PURE__ */ e(le, { className: "text-[13px]", children: "Active columns" }),
1514
+ /* @__PURE__ */ t(le, { className: "text-[13px]", children: "Active columns" }),
1485
1515
  E.map((r) => {
1486
- const c = Ae(r);
1516
+ const d = Ae(r);
1487
1517
  return /* @__PURE__ */ s(
1488
1518
  W,
1489
1519
  {
1490
1520
  checked: !0,
1491
- draggable: !c,
1521
+ draggable: !d,
1492
1522
  onDragStart: (p) => {
1493
- if (c) {
1523
+ if (d) {
1494
1524
  p.preventDefault();
1495
1525
  return;
1496
1526
  }
@@ -1502,13 +1532,13 @@ function br({
1502
1532
  onDrop: (p) => p.preventDefault(),
1503
1533
  onDragEnd: () => Ee(null),
1504
1534
  onCheckedChange: (p) => {
1505
- !p && !c && Me((x) => ({ ...x, [r.id]: !0 }));
1535
+ !p && !d && Me((v) => ({ ...v, [r.id]: !0 }));
1506
1536
  },
1507
1537
  onSelect: (p) => p.preventDefault(),
1508
1538
  className: "justify-between",
1509
1539
  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(
1540
+ /* @__PURE__ */ t("span", { className: "truncate", children: r.header }),
1541
+ d ? /* @__PURE__ */ t(Wt, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ t(
1512
1542
  Ot,
1513
1543
  {
1514
1544
  "aria-hidden": !0,
@@ -1524,14 +1554,14 @@ function br({
1524
1554
  );
1525
1555
  }),
1526
1556
  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(
1557
+ /* @__PURE__ */ t(ye, {}),
1558
+ /* @__PURE__ */ t(le, { className: "text-[13px]", children: "Available columns" }),
1559
+ Re.map((r) => /* @__PURE__ */ t(
1530
1560
  W,
1531
1561
  {
1532
1562
  checked: !1,
1533
1563
  onCheckedChange: () => Ct(r.id),
1534
- onSelect: (c) => c.preventDefault(),
1564
+ onSelect: (d) => d.preventDefault(),
1535
1565
  children: r.header
1536
1566
  },
1537
1567
  r.id
@@ -1539,55 +1569,55 @@ function br({
1539
1569
  ] }) : null
1540
1570
  ] })
1541
1571
  ] }),
1542
- m && m.length > 0 ? /* @__PURE__ */ s(xe, { children: [
1543
- /* @__PURE__ */ e(re, { asChild: !0, children: /* @__PURE__ */ e(
1544
- D,
1572
+ c && c.length > 0 ? /* @__PURE__ */ s(xe, { children: [
1573
+ /* @__PURE__ */ t(re, { asChild: !0, children: /* @__PURE__ */ t(
1574
+ T,
1545
1575
  {
1546
1576
  variant: "secondary",
1547
1577
  size: "md",
1548
1578
  iconOnly: !0,
1549
1579
  "aria-label": "Add filter",
1550
- children: /* @__PURE__ */ e($e, {})
1580
+ children: /* @__PURE__ */ t($e, {})
1551
1581
  }
1552
1582
  ) }),
1553
- /* @__PURE__ */ e(ne, { align: "start", className: "w-54", children: m.map((r) => /* @__PURE__ */ e(
1583
+ /* @__PURE__ */ t(ne, { align: "start", className: "w-54", children: c.map((r) => /* @__PURE__ */ t(
1554
1584
  se,
1555
1585
  {
1556
1586
  onSelect: () => fe(
1557
- (c) => c.includes(r.id) ? c : [...c, r.id]
1587
+ (d) => d.includes(r.id) ? d : [...d, r.id]
1558
1588
  ),
1559
1589
  children: r.label
1560
1590
  },
1561
1591
  r.id
1562
1592
  )) })
1563
1593
  ] }) : null,
1564
- g ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: g }) : null
1594
+ b ? /* @__PURE__ */ t("div", { className: "flex-0 sm:ml-auto", children: b }) : null
1565
1595
  ] }),
1566
1596
  be.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1567
1597
  be.map((r) => {
1568
- const c = () => {
1569
- r.onChange([]), fe((p) => p.filter((x) => x !== r.id));
1598
+ const d = () => {
1599
+ r.onChange([]), fe((p) => p.filter((v) => v !== r.id));
1570
1600
  };
1571
1601
  return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
1572
- /* @__PURE__ */ e(
1573
- D,
1602
+ /* @__PURE__ */ t(
1603
+ T,
1574
1604
  {
1575
1605
  variant: "secondary",
1576
1606
  size: "md",
1577
1607
  iconOnly: !0,
1578
1608
  "aria-label": `Remove ${r.label} filter`,
1579
1609
  className: "rounded-r-none",
1580
- onClick: c,
1581
- children: /* @__PURE__ */ e(ie, {})
1610
+ onClick: d,
1611
+ children: /* @__PURE__ */ t(ie, {})
1582
1612
  }
1583
1613
  ),
1584
1614
  /* @__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" })
1615
+ /* @__PURE__ */ t(re, { asChild: !0, children: /* @__PURE__ */ s(T, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1616
+ /* @__PURE__ */ t($e, {}),
1617
+ /* @__PURE__ */ t("span", { className: "font-medium", children: r.label }),
1618
+ /* @__PURE__ */ t("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
1619
+ /* @__PURE__ */ t("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
1620
+ /* @__PURE__ */ t(oe, { className: "text-muted" })
1591
1621
  ] }) }),
1592
1622
  /* @__PURE__ */ s(ne, { align: "start", className: "w-56", children: [
1593
1623
  /* @__PURE__ */ s(le, { className: "text-[13px]", children: [
@@ -1595,27 +1625,27 @@ function br({
1595
1625
  r.label
1596
1626
  ] }),
1597
1627
  r.options.map((p) => {
1598
- const x = r.value.includes(p.value);
1599
- return /* @__PURE__ */ e(
1628
+ const v = r.value.includes(p.value);
1629
+ return /* @__PURE__ */ t(
1600
1630
  W,
1601
1631
  {
1602
- checked: x,
1632
+ checked: v,
1603
1633
  onCheckedChange: () => r.onChange(
1604
- x ? r.value.filter((k) => k !== p.value) : [...r.value, p.value]
1634
+ v ? r.value.filter((z) => z !== p.value) : [...r.value, p.value]
1605
1635
  ),
1606
- onSelect: (k) => k.preventDefault(),
1636
+ onSelect: (z) => z.preventDefault(),
1607
1637
  children: p.label
1608
1638
  },
1609
1639
  p.value
1610
1640
  );
1611
1641
  }),
1612
- /* @__PURE__ */ e(ye, {}),
1613
- /* @__PURE__ */ e(se, { onSelect: c, children: "Clear filter" })
1642
+ /* @__PURE__ */ t(ye, {}),
1643
+ /* @__PURE__ */ t(se, { onSelect: d, children: "Clear filter" })
1614
1644
  ] })
1615
1645
  ] })
1616
1646
  ] }, r.id);
1617
1647
  }),
1618
- /* @__PURE__ */ e(
1648
+ /* @__PURE__ */ t(
1619
1649
  "button",
1620
1650
  {
1621
1651
  type: "button",
@@ -1628,14 +1658,14 @@ function br({
1628
1658
  }
1629
1659
  )
1630
1660
  ] }) : null,
1631
- S,
1661
+ C,
1632
1662
  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
1663
  /* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
1634
1664
  R.size,
1635
1665
  " selected"
1636
1666
  ] }),
1637
- /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (I ?? []).map((r) => /* @__PURE__ */ s(
1638
- D,
1667
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: (P ?? []).map((r) => /* @__PURE__ */ s(
1668
+ T,
1639
1669
  {
1640
1670
  size: "md",
1641
1671
  variant: r.variant ?? "outline",
@@ -1655,13 +1685,13 @@ function br({
1655
1685
  onClick: () => pe(/* @__PURE__ */ new Set()),
1656
1686
  className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
1657
1687
  children: [
1658
- /* @__PURE__ */ e(ie, { className: "size-3.5" }),
1688
+ /* @__PURE__ */ t(ie, { className: "size-3.5" }),
1659
1689
  "Clear"
1660
1690
  ]
1661
1691
  }
1662
1692
  )
1663
1693
  ] }),
1664
- /* @__PURE__ */ e(
1694
+ /* @__PURE__ */ t(
1665
1695
  ce,
1666
1696
  {
1667
1697
  action: ue,
@@ -1672,9 +1702,9 @@ function br({
1672
1702
  // Visible header: presentational so its controls stay focusable while
1673
1703
  // the body table carries the semantic column headers (sr-only).
1674
1704
  /* @__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(
1705
+ /* @__PURE__ */ t("colgroup", { children: Fe.map((r, d) => /* @__PURE__ */ t("col", { style: { width: r } }, d)) }),
1706
+ /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ s("tr", { children: [
1707
+ w && /* @__PURE__ */ t("th", { className: "h-(--table-header-h) w-11 px-4 align-middle", children: /* @__PURE__ */ t(
1678
1708
  ve,
1679
1709
  {
1680
1710
  "aria-label": "Select all rows",
@@ -1682,12 +1712,12 @@ function br({
1682
1712
  onCheckedChange: Tt
1683
1713
  }
1684
1714
  ) }),
1685
- E.map((r) => /* @__PURE__ */ e(
1715
+ E.map((r) => /* @__PURE__ */ t(
1686
1716
  "th",
1687
1717
  {
1688
- className: o(Va, r.align === "right" && "text-right", r.className),
1718
+ className: o(Ua, r.align === "right" && "text-right", r.className),
1689
1719
  children: r.sortable ? /* @__PURE__ */ s(
1690
- D,
1720
+ T,
1691
1721
  {
1692
1722
  type: "button",
1693
1723
  variant: "ghost",
@@ -1698,45 +1728,45 @@ function br({
1698
1728
  "h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
1699
1729
  "hover:bg-transparent hover:text-table-header-active hover:shadow-none",
1700
1730
  "active:scale-100 active:bg-transparent active:shadow-none",
1701
- (v == null ? void 0 : v.id) === r.id && "text-table-header-active"
1731
+ (y == null ? void 0 : y.id) === r.id && "text-table-header-active"
1702
1732
  ),
1703
1733
  children: [
1704
1734
  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" })
1735
+ (y == null ? void 0 : y.id) === r.id ? y.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
1736
  ]
1707
1737
  }
1708
1738
  ) : r.header
1709
1739
  },
1710
1740
  r.id
1711
1741
  )),
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" }) })
1742
+ g && /* @__PURE__ */ t("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ t("span", { className: "sr-only", children: "Actions" }) })
1713
1743
  ] }) })
1714
1744
  ] })
1715
1745
  ),
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" }) }),
1746
+ 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: [
1747
+ /* @__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
1748
  /* @__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
1749
+ /* @__PURE__ */ t("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: i.title }),
1750
+ i.description ? /* @__PURE__ */ t("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: i.description }) : null
1721
1751
  ] }),
1722
1752
  i.action
1723
- ] }) : j.length === 0 ? /* @__PURE__ */ e(
1724
- Ha,
1753
+ ] }) : j.length === 0 ? /* @__PURE__ */ t(
1754
+ Va,
1725
1755
  {
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
1756
+ icon: u == null ? void 0 : u.icon,
1757
+ title: (u == null ? void 0 : u.title) ?? "No results",
1758
+ description: typeof (u == null ? void 0 : u.description) == "string" ? u.description : void 0,
1759
+ action: u == null ? void 0 : u.action
1730
1760
  }
1731
1761
  ) : /* @__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" })
1762
+ /* @__PURE__ */ t("colgroup", { children: Fe.map((r, d) => /* @__PURE__ */ t("col", { style: { width: r } }, d)) }),
1763
+ /* @__PURE__ */ t("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
1764
+ w && /* @__PURE__ */ t("th", { scope: "col", children: "Select" }),
1765
+ E.map((r) => /* @__PURE__ */ t("th", { scope: "col", "aria-sort": _t(r), children: r.header }, r.id)),
1766
+ g && /* @__PURE__ */ t("th", { scope: "col", children: "Actions" })
1737
1767
  ] }) }),
1738
- /* @__PURE__ */ e(pa, { children: j.map((r) => {
1739
- const c = n(r), p = R.has(c);
1768
+ /* @__PURE__ */ t(pa, { children: j.map((r) => {
1769
+ const d = n(r), p = R.has(d);
1740
1770
  return /* @__PURE__ */ s(
1741
1771
  fa,
1742
1772
  {
@@ -1744,27 +1774,27 @@ function br({
1744
1774
  onClick: F ? () => F(r) : void 0,
1745
1775
  className: F ? "cursor-pointer" : void 0,
1746
1776
  children: [
1747
- w && /* @__PURE__ */ e(he, { className: "w-11 px-4", onClick: (x) => x.stopPropagation(), children: /* @__PURE__ */ e(
1777
+ w && /* @__PURE__ */ t(he, { className: "w-11 px-4", onClick: (v) => v.stopPropagation(), children: /* @__PURE__ */ t(
1748
1778
  ve,
1749
1779
  {
1750
1780
  "aria-label": "Select row",
1751
1781
  checked: p,
1752
- onCheckedChange: () => Mt(c)
1782
+ onCheckedChange: () => Mt(d)
1753
1783
  }
1754
1784
  ) }),
1755
- E.map((x) => /* @__PURE__ */ e(
1785
+ E.map((v) => /* @__PURE__ */ t(
1756
1786
  he,
1757
1787
  {
1758
- "data-numeric": x.numeric ? "" : void 0,
1759
- className: o(x.align === "right" && "text-right", x.className),
1760
- children: x.cell(r)
1788
+ "data-numeric": v.numeric ? "" : void 0,
1789
+ className: o(v.align === "right" && "text-right", v.className),
1790
+ children: v.cell(r)
1761
1791
  },
1762
- x.id
1792
+ v.id
1763
1793
  )),
1764
- y && /* @__PURE__ */ e(he, { className: "w-44 px-4 text-right", onClick: (x) => x.stopPropagation(), children: y(r) })
1794
+ g && /* @__PURE__ */ t(he, { className: "w-44 px-4 text-right", onClick: (v) => v.stopPropagation(), children: g(r) })
1765
1795
  ]
1766
1796
  },
1767
- c
1797
+ d
1768
1798
  );
1769
1799
  }) })
1770
1800
  ] })
@@ -1779,15 +1809,15 @@ function br({
1779
1809
  G.length
1780
1810
  ] }),
1781
1811
  /* @__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: [
1812
+ /* @__PURE__ */ s(Ga, { value: String(L), onValueChange: (r) => vt(Number(r)), children: [
1813
+ /* @__PURE__ */ t(ft, { "aria-label": "Rows per page", className: "w-27.5", children: /* @__PURE__ */ t(qa, {}) }),
1814
+ /* @__PURE__ */ t(bt, { children: _.map((r) => /* @__PURE__ */ s(De, { value: String(r), children: [
1785
1815
  r,
1786
1816
  " / page"
1787
1817
  ] }, r)) })
1788
1818
  ] }),
1789
- /* @__PURE__ */ e(
1790
- D,
1819
+ /* @__PURE__ */ t(
1820
+ T,
1791
1821
  {
1792
1822
  variant: "outline",
1793
1823
  size: "md",
@@ -1796,8 +1826,8 @@ function br({
1796
1826
  children: "Previous"
1797
1827
  }
1798
1828
  ),
1799
- /* @__PURE__ */ e(
1800
- D,
1829
+ /* @__PURE__ */ t(
1830
+ T,
1801
1831
  {
1802
1832
  variant: "outline",
1803
1833
  size: "md",
@@ -1810,61 +1840,61 @@ function br({
1810
1840
  ] })
1811
1841
  ] });
1812
1842
  }
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,
1843
+ function gr({ icon: e, title: a, description: n, action: l, className: i }) {
1844
+ 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: [
1845
+ 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
1846
  /* @__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
1847
+ /* @__PURE__ */ t("p", { className: "text-sm font-medium text-fg", children: a }),
1848
+ n ? /* @__PURE__ */ t("p", { className: "mx-auto max-w-sm text-sm text-muted", children: n }) : null
1819
1849
  ] }),
1820
1850
  l
1821
1851
  ] }) });
1822
1852
  }
1823
- function gr({ className: t, ...a }) {
1824
- return /* @__PURE__ */ e(
1853
+ function xr({ className: e, ...a }) {
1854
+ return /* @__PURE__ */ t(
1825
1855
  "kbd",
1826
1856
  {
1827
1857
  className: o(
1828
1858
  "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
1859
+ e
1830
1860
  ),
1831
1861
  ...a
1832
1862
  }
1833
1863
  );
1834
1864
  }
1835
- const Wa = b(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1865
+ const Oa = f(({ className: e, ...a }, n) => /* @__PURE__ */ t(
1836
1866
  ta.Root,
1837
1867
  {
1838
1868
  ref: n,
1839
1869
  className: o(
1840
1870
  "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
1871
+ e
1842
1872
  ),
1843
1873
  ...a
1844
1874
  }
1845
1875
  ));
1846
- Wa.displayName = "Label";
1847
- function xr({
1848
- value: t,
1876
+ Oa.displayName = "Label";
1877
+ function vr({
1878
+ value: e,
1849
1879
  onValueChange: a,
1850
1880
  options: n,
1851
1881
  size: l = "sm",
1852
1882
  className: i,
1853
- ...d
1883
+ ...u
1854
1884
  }) {
1855
- const u = de();
1856
- return /* @__PURE__ */ e(
1885
+ const m = de();
1886
+ return /* @__PURE__ */ t(
1857
1887
  "div",
1858
1888
  {
1859
1889
  role: "radiogroup",
1860
- "aria-label": d["aria-label"],
1890
+ "aria-label": u["aria-label"],
1861
1891
  className: o(
1862
1892
  "inline-flex w-fit items-center rounded-lg border border-line bg-canvas",
1863
1893
  l === "sm" ? "h-(--control-h-sm)" : "h-(--control-h-md)",
1864
1894
  i
1865
1895
  ),
1866
- children: n.map((m) => {
1867
- const h = m.value === t;
1896
+ children: n.map((c) => {
1897
+ const x = c.value === e;
1868
1898
  return /* @__PURE__ */ s(
1869
1899
  "label",
1870
1900
  {
@@ -1872,31 +1902,31 @@ function xr({
1872
1902
  "inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
1873
1903
  "has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
1874
1904
  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"
1905
+ x ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
1876
1906
  ),
1877
1907
  children: [
1878
- /* @__PURE__ */ e(
1908
+ /* @__PURE__ */ t(
1879
1909
  "input",
1880
1910
  {
1881
1911
  type: "radio",
1882
- name: u,
1883
- value: m.value,
1884
- checked: h,
1885
- onChange: () => a(m.value),
1912
+ name: m,
1913
+ value: c.value,
1914
+ checked: x,
1915
+ onChange: () => a(c.value),
1886
1916
  className: "sr-only"
1887
1917
  }
1888
1918
  ),
1889
- m.icon,
1890
- m.label
1919
+ c.icon,
1920
+ c.label
1891
1921
  ]
1892
1922
  },
1893
- m.value
1923
+ c.value
1894
1924
  );
1895
1925
  })
1896
1926
  }
1897
1927
  );
1898
1928
  }
1899
- const Oa = b(({ className: t, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ e(
1929
+ const Xa = f(({ className: e, orientation: a = "horizontal", decorative: n = !0, ...l }, i) => /* @__PURE__ */ t(
1900
1930
  aa.Root,
1901
1931
  {
1902
1932
  ref: i,
@@ -1905,22 +1935,22 @@ const Oa = b(({ className: t, orientation: a = "horizontal", decorative: n = !0,
1905
1935
  className: o(
1906
1936
  "shrink-0 bg-line",
1907
1937
  a === "horizontal" ? "h-px w-full" : "h-full w-px",
1908
- t
1938
+ e
1909
1939
  ),
1910
1940
  ...l
1911
1941
  }
1912
1942
  ));
1913
- Oa.displayName = "Separator";
1914
- function vr({ className: t, ...a }) {
1915
- return /* @__PURE__ */ e(
1943
+ Xa.displayName = "Separator";
1944
+ function Nr({ className: e, ...a }) {
1945
+ return /* @__PURE__ */ t(
1916
1946
  "div",
1917
1947
  {
1918
- className: o("animate-pulse rounded-md bg-elevated", t),
1948
+ className: o("animate-pulse rounded-md bg-elevated", e),
1919
1949
  ...a
1920
1950
  }
1921
1951
  );
1922
1952
  }
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(
1953
+ 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
1954
  O.Content,
1925
1955
  {
1926
1956
  ref: l,
@@ -1933,20 +1963,20 @@ const Nr = O.Provider, yr = O.Root, wr = O.Trigger, Xa = b(({ className: t, side
1933
1963
  "data-[side=bottom]:slide-in-from-top-1 data-[side=top]:slide-in-from-bottom-1",
1934
1964
  "data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1",
1935
1965
  "duration-150 ease-out",
1936
- t
1966
+ e
1937
1967
  ),
1938
1968
  ...n
1939
1969
  }
1940
1970
  ) }));
1941
- Xa.displayName = "TooltipContent";
1971
+ Ja.displayName = "TooltipContent";
1942
1972
  export {
1943
- ar as AgentPrompt,
1973
+ rr as AgentPrompt,
1944
1974
  Ye as Avatar,
1945
1975
  Ke as AvatarFallback,
1946
1976
  Ze as AvatarImage,
1947
1977
  da as Badge,
1948
- D as Button,
1949
- rr as Callout,
1978
+ T as Button,
1979
+ nr as Callout,
1950
1980
  va as Card,
1951
1981
  wa as CardContent,
1952
1982
  ya as CardDescription,
@@ -1954,65 +1984,65 @@ export {
1954
1984
  et as CardHeader,
1955
1985
  Na as CardTitle,
1956
1986
  ve as Checkbox,
1957
- sr as ChoiceDialog,
1958
- dr as CodeBlock,
1959
- br as DataTable,
1960
- fr as DataTableIdentity,
1987
+ dr as ChoiceDialog,
1988
+ cr as CodeBlock,
1989
+ hr as DataTable,
1990
+ br as DataTableIdentity,
1961
1991
  Ta as Dialog,
1962
- Pa as DialogBody,
1992
+ Ia as DialogBody,
1963
1993
  lt as DialogCancel,
1964
- or as DialogClose,
1994
+ sr as DialogClose,
1965
1995
  ot as DialogContent,
1966
- ja as DialogDescription,
1967
- Ea as DialogFooter,
1968
- Ia as DialogHeader,
1969
- Ma as DialogPanel,
1996
+ _a as DialogDescription,
1997
+ ja as DialogFooter,
1998
+ Ea as DialogHeader,
1999
+ Pa as DialogPanel,
1970
2000
  st as DialogTitle,
1971
2001
  nt as DialogTrigger,
1972
2002
  xe as DropdownMenu,
1973
2003
  W as DropdownMenuCheckboxItem,
1974
2004
  mt as DropdownMenuChevron,
1975
2005
  ne as DropdownMenuContent,
1976
- cr as DropdownMenuGroup,
2006
+ ur as DropdownMenuGroup,
1977
2007
  se as DropdownMenuItem,
1978
2008
  le as DropdownMenuLabel,
1979
- ur as DropdownMenuPortal,
2009
+ mr as DropdownMenuPortal,
1980
2010
  ye as DropdownMenuSeparator,
1981
- mr as DropdownMenuSub,
1982
- Fa as DropdownMenuSubContent,
2011
+ pr as DropdownMenuSub,
2012
+ $a as DropdownMenuSubContent,
1983
2013
  pt as DropdownMenuSubTrigger,
1984
2014
  re as DropdownMenuTrigger,
1985
- hr as EmptyState,
2015
+ gr as EmptyState,
1986
2016
  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,
2017
+ xr as Kbd,
2018
+ Oa as Label,
2019
+ Ra as RadioCard,
2020
+ La as RadioGroup,
2021
+ vr as Segmented,
2022
+ Ga as Select,
1993
2023
  bt as SelectContent,
1994
- pr as SelectGroup,
2024
+ fr as SelectGroup,
1995
2025
  De as SelectItem,
1996
- Ga as SelectLabel,
2026
+ Ha as SelectLabel,
1997
2027
  ft as SelectTrigger,
1998
- $a as SelectValue,
1999
- Oa as Separator,
2000
- vr as Skeleton,
2028
+ qa as SelectValue,
2029
+ Xa as Separator,
2030
+ Nr as Skeleton,
2001
2031
  na as Spinner,
2002
- nr as Table,
2032
+ lr as Table,
2003
2033
  pa as TableBody,
2004
2034
  he as TableCell,
2005
2035
  ua as TableContainer,
2006
- Ha as TableEmptyState,
2007
- ir as TableHead,
2008
- lr as TableHeader,
2036
+ Va as TableEmptyState,
2037
+ or as TableHead,
2038
+ ir as TableHeader,
2009
2039
  ma as TablePanel,
2010
2040
  fa as TableRow,
2011
2041
  ce as TableSurface,
2012
- yr as Tooltip,
2013
- Xa as TooltipContent,
2014
- Nr as TooltipProvider,
2015
- wr as TooltipTrigger,
2042
+ wr as Tooltip,
2043
+ Ja as TooltipContent,
2044
+ yr as TooltipProvider,
2045
+ Cr as TooltipTrigger,
2016
2046
  oa as badgeVariants,
2017
2047
  la as buttonVariants
2018
2048
  };