@jinaan/uikit 0.1.46 → 0.1.48

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,30 +1,30 @@
1
1
  import { jsx as e, jsxs as s, Fragment as Ie } from "react/jsx-runtime";
2
- import { CircleNotch as dr, Robot as cr, Terminal as ur, Check as ee, Copy as pt, XCircle as mr, Warning as pr, CheckCircle as fr, Info as br, Minus as hr, X as ue, CaretDown as me, CaretRight as ft, MagnifyingGlass as gr, Columns as xr, Lock as vr, DotsSixVertical as Nr, FunnelSimple as it, WarningCircle as yr, CaretUp as wr, CaretUpDown as Cr, CaretLeft as Sr } from "@phosphor-icons/react";
3
- import { forwardRef as f, useState as D, Children as bt, isValidElement as ht, useRef as _, useEffect as Q, useContext as W, useCallback as gt, createContext as te, useId as fe, useMemo as ot, useLayoutEffect as kr } from "react";
4
- import { Slot as zr } from "@radix-ui/react-slot";
2
+ import { CircleNotch as fa, Robot as ba, Terminal as ha, Check as ae, Copy as ft, XCircle as ga, Warning as xa, CheckCircle as va, Info as Na, Minus as ya, X as fe, CaretDown as Y, CaretRight as bt, MagnifyingGlass as wa, Columns as Ca, Lock as Sa, DotsSixVertical as za, FunnelSimple as it, WarningCircle as ka, CaretUp as Da, CaretUpDown as Ta, CaretLeft as Ma } from "@phosphor-icons/react";
3
+ import { forwardRef as f, useState as T, Children as ht, isValidElement as gt, useRef as E, useEffect as Z, useContext as O, useCallback as xt, createContext as re, useId as he, useMemo as ot, useLayoutEffect as Pa, Fragment as Ia } from "react";
4
+ import { Slot as Ra } from "@radix-ui/react-slot";
5
5
  import { cva as Re } from "class-variance-authority";
6
- import { clsx as Dr } from "clsx";
7
- import { twMerge as Tr } from "tailwind-merge";
6
+ import { clsx as ja } from "clsx";
7
+ import { twMerge as _a } from "tailwind-merge";
8
8
  import * as je from "@radix-ui/react-avatar";
9
9
  import * as st from "@radix-ui/react-checkbox";
10
- import * as R from "@radix-ui/react-dialog";
11
- import * as T from "@radix-ui/react-dropdown-menu";
12
- import * as P from "@radix-ui/react-select";
13
- import * as Mr from "@radix-ui/react-label";
14
- import * as Pr from "@radix-ui/react-separator";
15
- import * as Z from "@radix-ui/react-tooltip";
10
+ import * as _ from "@radix-ui/react-dialog";
11
+ import * as P from "@radix-ui/react-dropdown-menu";
12
+ import * as R from "@radix-ui/react-select";
13
+ import * as Ea from "@radix-ui/react-label";
14
+ import * as La from "@radix-ui/react-separator";
15
+ import * as te from "@radix-ui/react-tooltip";
16
16
  function i(...t) {
17
- return Tr(Dr(t));
17
+ return _a(ja(t));
18
18
  }
19
- function Ir(t, r, n) {
20
- if (r === n || r < 0 || n < 0 || r >= t.length || n >= t.length)
19
+ function Aa(t, a, n) {
20
+ if (a === n || a < 0 || n < 0 || a >= t.length || n >= t.length)
21
21
  return t;
22
- const l = [...t], [o] = l.splice(r, 1);
22
+ const l = [...t], [o] = l.splice(a, 1);
23
23
  return l.splice(n, 0, o), l;
24
24
  }
25
- function Rr({ className: t }) {
25
+ function Ba({ className: t }) {
26
26
  return /* @__PURE__ */ e(
27
- dr,
27
+ fa,
28
28
  {
29
29
  className: i("size-4 animate-spin text-muted", t),
30
30
  weight: "bold",
@@ -32,7 +32,7 @@ function Rr({ className: t }) {
32
32
  }
33
33
  );
34
34
  }
35
- const jr = Re(
35
+ const Fa = Re(
36
36
  "relative inline-flex select-none items-center justify-center gap-[var(--control-gap)] whitespace-nowrap rounded-[var(--control-radius)] border border-transparent font-medium transition-[color,background-color,border-color,box-shadow,transform] duration-[120ms] active:scale-[0.97] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong disabled:pointer-events-none disabled:opacity-50",
37
37
  {
38
38
  variants: {
@@ -58,7 +58,7 @@ const jr = Re(
58
58
  size: "md"
59
59
  }
60
60
  }
61
- ), Er = {
61
+ ), $a = {
62
62
  xs: "[&_svg]:size-[var(--control-icon-xs)]",
63
63
  sm: "[&_svg]:size-[var(--control-icon-sm)]",
64
64
  md: "[&_svg]:size-[var(--control-icon-md)]",
@@ -68,29 +68,29 @@ const jr = Re(
68
68
  }, M = f(
69
69
  ({
70
70
  className: t,
71
- variant: r,
71
+ variant: a,
72
72
  size: n = "md",
73
73
  asChild: l = !1,
74
74
  leadingIcon: o,
75
75
  trailingIcon: m,
76
76
  iconOnly: u = !1,
77
77
  loading: c = !1,
78
- fullWidth: v = !1,
78
+ fullWidth: x = !1,
79
79
  disabled: b,
80
80
  children: h,
81
81
  ...y
82
- }, C) => {
83
- const N = l ? zr : "button", k = Er[n ?? "md"];
82
+ }, k) => {
83
+ const v = l ? Ra : "button", D = $a[n ?? "md"];
84
84
  return /* @__PURE__ */ e(
85
- N,
85
+ v,
86
86
  {
87
- ref: C,
87
+ ref: k,
88
88
  "aria-busy": c || void 0,
89
89
  disabled: l ? void 0 : b || c,
90
90
  className: i(
91
- jr({ variant: r, size: n }),
91
+ Fa({ variant: a, size: n }),
92
92
  u && "aspect-square px-0",
93
- v && "w-full",
93
+ x && "w-full",
94
94
  c && "disabled:opacity-100",
95
95
  t
96
96
  ),
@@ -105,9 +105,9 @@ const jr = Re(
105
105
  ),
106
106
  "aria-hidden": c || void 0,
107
107
  children: [
108
- !c && o ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", k), "aria-hidden": !0, children: o }) : null,
108
+ !c && o ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", D), "aria-hidden": !0, children: o }) : null,
109
109
  h,
110
- !c && m ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", k), "aria-hidden": !0, children: m }) : null
110
+ !c && m ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0", D), "aria-hidden": !0, children: m }) : null
111
111
  ]
112
112
  }
113
113
  ),
@@ -120,7 +120,7 @@ const jr = Re(
120
120
  c ? "translate-y-0 opacity-100" : "-translate-y-2 opacity-0"
121
121
  ),
122
122
  "aria-hidden": !0,
123
- children: /* @__PURE__ */ e(Rr, { className: i("text-current", k) })
123
+ children: /* @__PURE__ */ e(Ba, { className: i("text-current", D) })
124
124
  }
125
125
  )
126
126
  ] })
@@ -129,13 +129,13 @@ const jr = Re(
129
129
  }
130
130
  );
131
131
  M.displayName = "Button";
132
- function Pa({
132
+ function Er({
133
133
  command: t,
134
- tag: r = "Build with agents",
134
+ tag: a = "Build with agents",
135
135
  icon: n,
136
136
  className: l
137
137
  }) {
138
- const [o, m] = D(!1), u = async () => {
138
+ const [o, m] = T(!1), u = async () => {
139
139
  try {
140
140
  await navigator.clipboard.writeText(t), m(!0), window.setTimeout(() => m(!1), 1500);
141
141
  } catch {
@@ -143,11 +143,11 @@ function Pa({
143
143
  };
144
144
  return /* @__PURE__ */ s("div", { className: i("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(cr, { className: "size-3.5", weight: "fill" }),
147
- r
146
+ n ?? /* @__PURE__ */ e(ba, { className: "size-3.5", weight: "fill" }),
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(ur, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
150
+ /* @__PURE__ */ e(ha, { className: "size-4 shrink-0 text-subtle", "aria-hidden": !0 }),
151
151
  /* @__PURE__ */ e("span", { className: "truncate font-mono text-sm text-fg", children: t }),
152
152
  /* @__PURE__ */ e(
153
153
  M,
@@ -158,13 +158,13 @@ function Pa({
158
158
  "aria-label": "Copy prompt",
159
159
  className: "ml-auto",
160
160
  onClick: u,
161
- children: o ? /* @__PURE__ */ e(ee, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(pt, {})
161
+ children: o ? /* @__PURE__ */ e(ae, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ft, {})
162
162
  }
163
163
  )
164
164
  ] })
165
165
  ] });
166
166
  }
167
- const xt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
167
+ const vt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
168
168
  je.Root,
169
169
  {
170
170
  ref: n,
@@ -172,20 +172,20 @@ const xt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
172
172
  "relative flex size-8 shrink-0 overflow-hidden rounded-full border border-line",
173
173
  t
174
174
  ),
175
- ...r
175
+ ...a
176
176
  }
177
177
  ));
178
- xt.displayName = "Avatar";
179
- const vt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
178
+ vt.displayName = "Avatar";
179
+ const Nt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
180
180
  je.Image,
181
181
  {
182
182
  ref: n,
183
183
  className: i("aspect-square size-full object-cover", t),
184
- ...r
184
+ ...a
185
185
  }
186
186
  ));
187
- vt.displayName = "AvatarImage";
188
- const Nt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
187
+ Nt.displayName = "AvatarImage";
188
+ const yt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
189
189
  je.Fallback,
190
190
  {
191
191
  ref: n,
@@ -193,11 +193,11 @@ const Nt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
193
193
  "flex size-full items-center justify-center bg-elevated text-xs font-medium text-muted",
194
194
  t
195
195
  ),
196
- ...r
196
+ ...a
197
197
  }
198
198
  ));
199
- Nt.displayName = "AvatarFallback";
200
- const _r = Re(
199
+ yt.displayName = "AvatarFallback";
200
+ const qa = Re(
201
201
  "inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium",
202
202
  {
203
203
  variants: {
@@ -213,7 +213,7 @@ const _r = Re(
213
213
  },
214
214
  defaultVariants: { variant: "neutral" }
215
215
  }
216
- ), Lr = Re("size-1.5 shrink-0 rounded-full", {
216
+ ), Ga = Re("size-1.5 shrink-0 rounded-full", {
217
217
  variants: {
218
218
  variant: {
219
219
  neutral: "bg-subtle",
@@ -227,42 +227,42 @@ const _r = Re(
227
227
  },
228
228
  defaultVariants: { variant: "neutral" }
229
229
  });
230
- function Ar({ className: t, variant: r, dot: n = !1, children: l, ...o }) {
231
- return /* @__PURE__ */ s("span", { className: i(_r({ variant: r }), t), ...o, children: [
232
- n ? /* @__PURE__ */ e("span", { className: i(Lr({ variant: r })), "aria-hidden": !0 }) : null,
230
+ function Ha({ className: t, variant: a, dot: n = !1, children: l, ...o }) {
231
+ return /* @__PURE__ */ s("span", { className: i(qa({ variant: a }), t), ...o, children: [
232
+ n ? /* @__PURE__ */ e("span", { className: i(Ga({ variant: a })), "aria-hidden": !0 }) : null,
233
233
  l
234
234
  ] });
235
235
  }
236
- const Br = {
236
+ const Va = {
237
237
  info: {
238
- Icon: br,
238
+ Icon: Na,
239
239
  className: "border-info/30 bg-info/10",
240
240
  iconClassName: "text-info"
241
241
  },
242
242
  success: {
243
- Icon: fr,
243
+ Icon: va,
244
244
  className: "border-success/30 bg-success/10",
245
245
  iconClassName: "text-success"
246
246
  },
247
247
  warning: {
248
- Icon: pr,
248
+ Icon: xa,
249
249
  className: "border-warning/30 bg-warning/10",
250
250
  iconClassName: "text-warning"
251
251
  },
252
252
  error: {
253
- Icon: mr,
253
+ Icon: ga,
254
254
  className: "border-error/30 bg-error/10",
255
255
  iconClassName: "text-error"
256
256
  }
257
257
  };
258
- function Ia({
258
+ function Lr({
259
259
  variant: t = "info",
260
- title: r,
260
+ title: a,
261
261
  children: n,
262
262
  icon: l,
263
263
  className: o
264
264
  }) {
265
- const { Icon: m, className: u, iconClassName: c } = Br[t];
265
+ const { Icon: m, className: u, iconClassName: c } = Va[t];
266
266
  return /* @__PURE__ */ s(
267
267
  "div",
268
268
  {
@@ -276,16 +276,16 @@ function Ia({
276
276
  children: [
277
277
  /* @__PURE__ */ e("span", { className: i("mt-0.5 shrink-0 [&_svg]:size-4", c), children: l ?? /* @__PURE__ */ e(m, { weight: "fill" }) }),
278
278
  /* @__PURE__ */ s("div", { className: "min-w-0 space-y-0.5", children: [
279
- r ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: r }) : null,
279
+ a ? /* @__PURE__ */ e("p", { className: "font-medium text-fg", children: a }) : null,
280
280
  n ? /* @__PURE__ */ e("div", { className: "text-muted", children: n }) : null
281
281
  ] })
282
282
  ]
283
283
  }
284
284
  );
285
285
  }
286
- function Fr({
286
+ function Wa({
287
287
  className: t,
288
- ...r
288
+ ...a
289
289
  }) {
290
290
  return /* @__PURE__ */ e(
291
291
  "div",
@@ -294,13 +294,13 @@ function Fr({
294
294
  "w-full overflow-hidden rounded-(--table-radius-outer) bg-table-container p-(--table-inset)",
295
295
  t
296
296
  ),
297
- ...r
297
+ ...a
298
298
  }
299
299
  );
300
300
  }
301
- function $r({
301
+ function Oa({
302
302
  className: t,
303
- ...r
303
+ ...a
304
304
  }) {
305
305
  return /* @__PURE__ */ e(
306
306
  "div",
@@ -309,26 +309,26 @@ function $r({
309
309
  "overflow-hidden rounded-(--table-radius-panel) border border-table-panel-border bg-table-panel",
310
310
  t
311
311
  ),
312
- ...r
312
+ ...a
313
313
  }
314
314
  );
315
315
  }
316
- function Ra({ className: t, ...r }) {
316
+ function Ar({ className: t, ...a }) {
317
317
  return /* @__PURE__ */ e(
318
318
  "table",
319
319
  {
320
320
  className: i("w-full table-fixed border-collapse caption-bottom text-sm", t),
321
- ...r
321
+ ...a
322
322
  }
323
323
  );
324
324
  }
325
- function ja({ className: t, ...r }) {
326
- return /* @__PURE__ */ e("thead", { className: t, ...r });
325
+ function Br({ className: t, ...a }) {
326
+ return /* @__PURE__ */ e("thead", { className: t, ...a });
327
327
  }
328
- function qr({ className: t, ...r }) {
329
- return /* @__PURE__ */ e("tbody", { className: i("[&_tr:last-child]:border-0", t), ...r });
328
+ function Ua({ className: t, ...a }) {
329
+ return /* @__PURE__ */ e("tbody", { className: i("[&_tr:last-child]:border-0", t), ...a });
330
330
  }
331
- function Gr({ className: t, ...r }) {
331
+ function dt({ className: t, ...a }) {
332
332
  return /* @__PURE__ */ e(
333
333
  "tr",
334
334
  {
@@ -336,11 +336,11 @@ function Gr({ className: t, ...r }) {
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
337
  t
338
338
  ),
339
- ...r
339
+ ...a
340
340
  }
341
341
  );
342
342
  }
343
- function Ea({ className: t, ...r }) {
343
+ function Fr({ className: t, ...a }) {
344
344
  return /* @__PURE__ */ e(
345
345
  "th",
346
346
  {
@@ -348,11 +348,11 @@ function Ea({ className: t, ...r }) {
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
349
  t
350
350
  ),
351
- ...r
351
+ ...a
352
352
  }
353
353
  );
354
354
  }
355
- function ke({ className: t, ...r }) {
355
+ function Q({ className: t, ...a }) {
356
356
  return /* @__PURE__ */ e(
357
357
  "td",
358
358
  {
@@ -360,39 +360,39 @@ function ke({ className: t, ...r }) {
360
360
  "whitespace-nowrap px-(--table-pad-x) py-3 align-middle text-sm text-table-row data-numeric:font-numeric data-numeric:tabular-nums",
361
361
  t
362
362
  ),
363
- ...r
363
+ ...a
364
364
  }
365
365
  );
366
366
  }
367
- const Hr = {
367
+ const Xa = {
368
368
  default: "bg-table-container",
369
369
  muted: "bg-surface border border-line",
370
370
  transparent: "bg-transparent"
371
- }, Vr = {
371
+ }, Ja = {
372
372
  default: "bg-table-panel border-table-panel-border",
373
373
  muted: "bg-elevated border-line",
374
374
  transparent: "bg-transparent border-line"
375
375
  };
376
- function Wr(t) {
376
+ function Ka(t) {
377
377
  return typeof t == "object" && t !== null && "label" in t && typeof t.label == "string";
378
378
  }
379
- function be({
379
+ function ge({
380
380
  title: t,
381
- description: r,
381
+ description: a,
382
382
  header: n,
383
383
  children: l,
384
384
  action: o,
385
385
  tone: m = "default",
386
386
  className: u,
387
387
  headerClassName: c,
388
- panelClassName: v,
388
+ panelClassName: x,
389
389
  footer: b,
390
390
  footerClassName: h,
391
391
  minHeight: y,
392
- scrollMode: C = "surface",
393
- headerContentRef: N
392
+ scrollMode: k = "surface",
393
+ headerContentRef: v
394
394
  }) {
395
- const k = !!(t || r), S = C === "panel", g = Wr(o) ? /* @__PURE__ */ e(
395
+ const D = !!(t || a), S = k === "panel", g = Ka(o) ? /* @__PURE__ */ e(
396
396
  M,
397
397
  {
398
398
  variant: o.variant ?? "primary",
@@ -406,7 +406,7 @@ function be({
406
406
  o.label
407
407
  ] }) : o.label
408
408
  }
409
- ) : o, I = n || k ? (
409
+ ) : o, j = n || D ? (
410
410
  // Header rows must not inherit the body row hover surface. Panel mode
411
411
  // clips the band instead of scrolling it; the caller translates the
412
412
  // inner wrapper so titles track the row content. px-px mirrors the
@@ -421,7 +421,7 @@ function be({
421
421
  c
422
422
  ),
423
423
  children: [
424
- k ? /* @__PURE__ */ s(
424
+ D ? /* @__PURE__ */ s(
425
425
  "div",
426
426
  {
427
427
  className: i(
@@ -430,29 +430,29 @@ function be({
430
430
  ),
431
431
  children: [
432
432
  t ? /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-fg", children: t }) : null,
433
- r ? /* @__PURE__ */ e("div", { className: "mt-0.5 text-sm text-muted", children: r }) : null
433
+ a ? /* @__PURE__ */ e("div", { className: "mt-0.5 text-sm text-muted", children: a }) : null
434
434
  ]
435
435
  }
436
436
  ) : null,
437
- S ? /* @__PURE__ */ e("div", { ref: N, children: n }) : n
437
+ S ? /* @__PURE__ */ e("div", { ref: v, children: n }) : n
438
438
  ]
439
439
  }
440
440
  )
441
- ) : null, j = /* @__PURE__ */ e(
442
- $r,
441
+ ) : null, I = /* @__PURE__ */ e(
442
+ Oa,
443
443
  {
444
- className: i(Vr[m], v),
444
+ className: i(Ja[m], x),
445
445
  style: y ? { minHeight: y } : void 0,
446
446
  children: l
447
447
  }
448
448
  );
449
- return /* @__PURE__ */ s(Fr, { className: i("relative", Hr[m], u), children: [
449
+ return /* @__PURE__ */ s(Wa, { className: i("relative", Xa[m], u), children: [
450
450
  S ? /* @__PURE__ */ s(Ie, { children: [
451
- I,
452
- j
451
+ j,
452
+ I
453
453
  ] }) : /* @__PURE__ */ s("div", { className: "overflow-x-auto", children: [
454
- I,
455
- j
454
+ j,
455
+ I
456
456
  ] }),
457
457
  b ? /* @__PURE__ */ e(
458
458
  "div",
@@ -467,23 +467,23 @@ function be({
467
467
  g ? /* @__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: g }) }) : null
468
468
  ] });
469
469
  }
470
- function Or(t) {
471
- const r = bt.toArray(t), n = r.filter(
472
- (l) => ht(l) && l.type === yt
470
+ function Qa(t) {
471
+ const a = ht.toArray(t), n = a.filter(
472
+ (l) => gt(l) && l.type === wt
473
473
  );
474
474
  return {
475
475
  header: n.length > 0 ? /* @__PURE__ */ e(Ie, { children: n }) : void 0,
476
- body: r.filter((l) => !n.includes(l))
476
+ body: a.filter((l) => !n.includes(l))
477
477
  };
478
478
  }
479
- const Ur = f(
480
- ({ className: t, children: r, ...n }, l) => {
481
- const { header: o, body: m } = Or(r);
482
- return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(be, { className: i("shadow-xs", t), header: o, children: m }) });
479
+ const Ya = f(
480
+ ({ className: t, children: a, ...n }, l) => {
481
+ const { header: o, body: m } = Qa(a);
482
+ return /* @__PURE__ */ e("div", { ref: l, ...n, children: /* @__PURE__ */ e(ge, { className: i("shadow-xs", t), header: o, children: m }) });
483
483
  }
484
484
  );
485
- Ur.displayName = "Card";
486
- const yt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
485
+ Ya.displayName = "Card";
486
+ const wt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
487
487
  "div",
488
488
  {
489
489
  ref: n,
@@ -491,20 +491,20 @@ const yt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
491
491
  "flex flex-col gap-1 px-5 py-4",
492
492
  t
493
493
  ),
494
- ...r
494
+ ...a
495
495
  }
496
496
  ));
497
- yt.displayName = "CardHeader";
498
- const Xr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
497
+ wt.displayName = "CardHeader";
498
+ const Za = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
499
499
  "h2",
500
500
  {
501
501
  ref: n,
502
502
  className: i("text-sm font-semibold text-fg", t),
503
- ...r
503
+ ...a
504
504
  }
505
505
  ));
506
- Xr.displayName = "CardTitle";
507
- const Jr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
506
+ Za.displayName = "CardTitle";
507
+ const er = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
508
508
  "p",
509
509
  {
510
510
  ref: n,
@@ -513,13 +513,13 @@ const Jr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
513
513
  "first:mt-0 first:border-t-0 first:pt-0",
514
514
  t
515
515
  ),
516
- ...r
516
+ ...a
517
517
  }
518
518
  ));
519
- Jr.displayName = "CardDescription";
520
- const Kr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e("div", { ref: n, className: i("px-5 py-4", t), ...r }));
521
- Kr.displayName = "CardContent";
522
- const Qr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
519
+ er.displayName = "CardDescription";
520
+ const tr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e("div", { ref: n, className: i("px-5 py-4", t), ...a }));
521
+ tr.displayName = "CardContent";
522
+ const ar = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
523
523
  "div",
524
524
  {
525
525
  ref: n,
@@ -527,11 +527,11 @@ const Qr = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
527
527
  "flex items-center gap-3 border-t border-line px-5 py-3",
528
528
  t
529
529
  ),
530
- ...r
530
+ ...a
531
531
  }
532
532
  ));
533
- Qr.displayName = "CardFooter";
534
- const Te = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
533
+ ar.displayName = "CardFooter";
534
+ const Te = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
535
535
  st.Root,
536
536
  {
537
537
  ref: n,
@@ -543,45 +543,45 @@ const Te = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
543
543
  "data-[state=indeterminate]:border-primary",
544
544
  t
545
545
  ),
546
- ...r,
547
- children: /* @__PURE__ */ e(st.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: r.checked === "indeterminate" ? /* @__PURE__ */ e(hr, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(ee, { className: "size-3", weight: "bold" }) })
546
+ ...a,
547
+ children: /* @__PURE__ */ e(st.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(ya, { className: "size-3", weight: "bold" }) : /* @__PURE__ */ e(ae, { className: "size-3", weight: "bold" }) })
548
548
  }
549
549
  ));
550
550
  Te.displayName = "Checkbox";
551
- function dt(t) {
551
+ function ct(t) {
552
552
  return t.width > 0 && t.height > 0;
553
553
  }
554
- function ct(t) {
554
+ function ut(t) {
555
555
  return Math.min(1, Math.max(0.1, t));
556
556
  }
557
- function Yr(t, r) {
558
- return !dt(t) || !dt(r) ? null : {
559
- dx: t.left + t.width / 2 - (r.left + r.width / 2),
560
- dy: t.top + t.height / 2 - (r.top + r.height / 2),
561
- sx: ct(t.width / r.width),
562
- sy: ct(t.height / r.height)
557
+ function rr(t, a) {
558
+ return !ct(t) || !ct(a) ? null : {
559
+ dx: t.left + t.width / 2 - (a.left + a.width / 2),
560
+ dy: t.top + t.height / 2 - (a.top + a.height / 2),
561
+ sx: ut(t.width / a.width),
562
+ sy: ut(t.height / a.height)
563
563
  };
564
564
  }
565
- const wt = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
566
- let V = null, ut = !1;
567
- function Ee(t) {
568
- const r = t.getBoundingClientRect();
569
- return r.width <= 0 || r.height <= 0 ? null : {
570
- left: r.left,
571
- top: r.top,
572
- width: r.width,
573
- height: r.height
565
+ const Ct = 'button, a, [role="button"], [role="menuitem"], [data-dialog-origin]';
566
+ let W = null, mt = !1;
567
+ function _e(t) {
568
+ const a = t.getBoundingClientRect();
569
+ return a.width <= 0 || a.height <= 0 ? null : {
570
+ left: a.left,
571
+ top: a.top,
572
+ width: a.width,
573
+ height: a.height
574
574
  };
575
575
  }
576
576
  function Me(t) {
577
577
  if (!(t instanceof Element)) return;
578
- const r = t.closest(wt);
579
- if (!r) return;
580
- const n = Ee(r);
581
- n && (V = { rect: n, at: Date.now() });
578
+ const a = t.closest(Ct);
579
+ if (!a) return;
580
+ const n = _e(a);
581
+ n && (W = { rect: n, at: Date.now() });
582
582
  }
583
- function Zr() {
584
- ut || typeof document > "u" || (ut = !0, document.addEventListener(
583
+ function nr() {
584
+ mt || typeof document > "u" || (mt = !0, document.addEventListener(
585
585
  "pointerdown",
586
586
  (t) => Me(t.target),
587
587
  !0
@@ -593,88 +593,88 @@ function Zr() {
593
593
  !0
594
594
  ));
595
595
  }
596
- function ea(t) {
597
- if (V && Date.now() - V.at < 2e3) {
598
- const n = V.rect;
599
- return V = null, n;
596
+ function lr(t) {
597
+ if (W && Date.now() - W.at < 2e3) {
598
+ const n = W.rect;
599
+ return W = null, n;
600
600
  }
601
- V = null;
602
- const r = document.activeElement;
603
- return r instanceof Element && r !== t && !t.contains(r) && r.matches(wt) ? Ee(r) : null;
601
+ W = null;
602
+ const a = document.activeElement;
603
+ return a instanceof Element && a !== t && !t.contains(a) && a.matches(Ct) ? _e(a) : null;
604
604
  }
605
- const ta = 250, Ct = te(!1), St = te(() => {
606
- }), _e = te(!1);
607
- function ra({
605
+ const ir = 250, St = re(!1), zt = re(() => {
606
+ }), Ee = re(!1);
607
+ function or({
608
608
  open: t,
609
- defaultOpen: r,
609
+ defaultOpen: a,
610
610
  onOpenChange: n,
611
611
  children: l,
612
612
  ...o
613
613
  }) {
614
- const [m, u] = D(
615
- r ?? !1
616
- ), [c, v] = D(!1), b = _(!1), h = _(null), y = t ?? m, C = _(y);
617
- C.current = y;
618
- const N = t !== void 0;
619
- Q(() => Zr(), []), Q(() => {
620
- t && (h.current && clearTimeout(h.current), b.current = !1, v(!1));
621
- }, [t]), Q(
614
+ const [m, u] = T(
615
+ a ?? !1
616
+ ), [c, x] = T(!1), b = E(!1), h = E(null), y = t ?? m, k = E(y);
617
+ k.current = y;
618
+ const v = t !== void 0;
619
+ Z(() => nr(), []), Z(() => {
620
+ t && (h.current && clearTimeout(h.current), b.current = !1, x(!1));
621
+ }, [t]), Z(
622
622
  () => () => {
623
623
  h.current && clearTimeout(h.current);
624
624
  },
625
625
  []
626
626
  );
627
- const k = (S) => {
627
+ const D = (S) => {
628
628
  if (S) {
629
- h.current && clearTimeout(h.current), b.current = !1, v(!1), N || u(!0), n == null || n(!0);
629
+ h.current && clearTimeout(h.current), b.current = !1, x(!1), v || u(!0), n == null || n(!0);
630
630
  return;
631
631
  }
632
632
  if (!y || b.current) return;
633
633
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
634
- N || u(!1), n == null || n(!1);
634
+ v || u(!1), n == null || n(!1);
635
635
  return;
636
636
  }
637
- b.current = !0, v(!0), h.current = setTimeout(() => {
638
- N || u(!1), n == null || n(!1), requestAnimationFrame(() => {
639
- C.current && (b.current = !1, v(!1));
637
+ b.current = !0, x(!0), h.current = setTimeout(() => {
638
+ v || u(!1), n == null || n(!1), requestAnimationFrame(() => {
639
+ k.current && (b.current = !1, x(!1));
640
640
  });
641
- }, ta);
641
+ }, ir);
642
642
  };
643
- return /* @__PURE__ */ e(St.Provider, { value: () => k(!1), children: /* @__PURE__ */ e(Ct.Provider, { value: c, children: /* @__PURE__ */ e(_e.Provider, { value: !0, children: /* @__PURE__ */ e(
644
- R.Root,
643
+ return /* @__PURE__ */ e(zt.Provider, { value: () => D(!1), children: /* @__PURE__ */ e(St.Provider, { value: c, children: /* @__PURE__ */ e(Ee.Provider, { value: !0, children: /* @__PURE__ */ e(
644
+ _.Root,
645
645
  {
646
646
  open: y,
647
- onOpenChange: k,
647
+ onOpenChange: D,
648
648
  ...o,
649
649
  children: l
650
650
  }
651
651
  ) }) }) });
652
652
  }
653
- const kt = f(({ onClick: t, ...r }, n) => /* @__PURE__ */ e(
654
- R.Trigger,
653
+ const kt = f(({ onClick: t, ...a }, n) => /* @__PURE__ */ e(
654
+ _.Trigger,
655
655
  {
656
656
  ref: n,
657
657
  onClick: (l) => {
658
658
  Me(l.currentTarget), t == null || t(l);
659
659
  },
660
- ...r
660
+ ...a
661
661
  }
662
662
  ));
663
663
  kt.displayName = "DialogTrigger";
664
- const _a = R.Close, zt = f(
665
- ({ variant: t = "secondary", children: r = "Cancel", ...n }, l) => /* @__PURE__ */ e(R.Close, { asChild: !0, children: /* @__PURE__ */ e(M, { ref: l, type: "button", variant: t, ...n, children: r }) })
664
+ const $r = _.Close, Dt = f(
665
+ ({ variant: t = "secondary", children: a = "Cancel", ...n }, l) => /* @__PURE__ */ e(_.Close, { asChild: !0, children: /* @__PURE__ */ e(M, { ref: l, type: "button", variant: t, ...n, children: a }) })
666
666
  );
667
- zt.displayName = "DialogCancel";
668
- function Dt(t, r = !0) {
667
+ Dt.displayName = "DialogCancel";
668
+ function Tt(t, a = !0) {
669
669
  if (t.dataset.dialogMotionStarted === "true" || typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
670
670
  return;
671
- const n = Ee(t);
671
+ const n = _e(t);
672
672
  if (!n) {
673
- r && window.requestAnimationFrame(() => Dt(t, !1));
673
+ a && window.requestAnimationFrame(() => Tt(t, !1));
674
674
  return;
675
675
  }
676
676
  t.dataset.dialogMotionStarted = "true";
677
- const l = ea(t), o = l ? Yr(l, n) : null;
677
+ const l = lr(t), o = l ? rr(l, n) : null;
678
678
  o ? (t.style.setProperty("--dialog-dx", `${o.dx}px`), t.style.setProperty("--dialog-dy", `${o.dy}px`), t.style.setProperty("--dialog-sx", String(o.sx)), t.style.setProperty("--dialog-sy", String(o.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"));
679
679
  const m = () => {
680
680
  t.classList.remove("dialog-fly-in", "dialog-pop-in");
@@ -683,27 +683,27 @@ function Dt(t, r = !0) {
683
683
  };
684
684
  t.addEventListener("animationend", u);
685
685
  }
686
- function aa(t) {
686
+ function sr(t) {
687
687
  return t.replace(/dvh\b/g, "vh");
688
688
  }
689
- const Tt = f(
689
+ const Mt = f(
690
690
  ({
691
691
  className: t,
692
- children: r,
692
+ children: a,
693
693
  placement: n = "center",
694
694
  topOffset: l = "11dvh",
695
695
  motion: o = "auto",
696
696
  style: m,
697
697
  onEscapeKeyDown: u,
698
698
  onPointerDownOutside: c,
699
- ...v
699
+ ...x
700
700
  }, b) => {
701
- const h = W(Ct), y = n === "top", C = y ? {
701
+ const h = O(St), y = n === "top", k = y ? {
702
702
  "--dialog-top-offset": l,
703
- "--dialog-top-offset-fallback": aa(l)
704
- } : void 0, N = W(St), k = _(null), S = gt(
703
+ "--dialog-top-offset-fallback": sr(l)
704
+ } : void 0, v = O(zt), D = E(null), S = xt(
705
705
  (g) => {
706
- if (k.current = g, g && o === "auto" && Dt(g), typeof b == "function") {
706
+ if (D.current = g, g && o === "auto" && Tt(g), typeof b == "function") {
707
707
  b(g);
708
708
  return;
709
709
  }
@@ -711,9 +711,9 @@ const Tt = f(
711
711
  },
712
712
  [o, b]
713
713
  );
714
- return /* @__PURE__ */ s(R.Portal, { children: [
714
+ return /* @__PURE__ */ s(_.Portal, { children: [
715
715
  /* @__PURE__ */ e(
716
- R.Overlay,
716
+ _.Overlay,
717
717
  {
718
718
  className: i(
719
719
  "fixed inset-0 z-50 overflow-hidden bg-overlay backdrop-blur-[3px] data-[state=open]:animate-in data-[state=open]:fade-in-0",
@@ -737,10 +737,10 @@ const Tt = f(
737
737
  y ? "items-start" : "items-center"
738
738
  ),
739
739
  children: /* @__PURE__ */ s(
740
- R.Content,
740
+ _.Content,
741
741
  {
742
742
  ref: S,
743
- style: C ? { ...C, ...m } : m,
743
+ style: k ? { ...k, ...m } : m,
744
744
  className: i(
745
745
  "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]",
746
746
  "rounded-2xl border border-(--dialog-shell-border) bg-(--dialog-shell-bg) pb-3 shadow-(--dialog-shell-shadow) sm:pb-4",
@@ -751,16 +751,16 @@ const Tt = f(
751
751
  t
752
752
  ),
753
753
  onEscapeKeyDown: (g) => {
754
- u == null || u(g), !g.defaultPrevented && (g.preventDefault(), N());
754
+ u == null || u(g), !g.defaultPrevented && (g.preventDefault(), v());
755
755
  },
756
756
  onPointerDownOutside: (g) => {
757
- c == null || c(g), !g.defaultPrevented && (g.preventDefault(), N());
757
+ c == null || c(g), !g.defaultPrevented && (g.preventDefault(), v());
758
758
  },
759
- ...v,
759
+ ...x,
760
760
  children: [
761
- r,
762
- /* @__PURE__ */ s(R.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: [
763
- /* @__PURE__ */ e(ue, { className: "size-4" }),
761
+ a,
762
+ /* @__PURE__ */ s(_.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: [
763
+ /* @__PURE__ */ e(fe, { className: "size-4" }),
764
764
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
765
765
  ] })
766
766
  ]
@@ -771,10 +771,10 @@ const Tt = f(
771
771
  ] });
772
772
  }
773
773
  );
774
- Tt.displayName = "DialogContent";
775
- function na({
774
+ Mt.displayName = "DialogContent";
775
+ function dr({
776
776
  className: t,
777
- ...r
777
+ ...a
778
778
  }) {
779
779
  return /* @__PURE__ */ e(
780
780
  "div",
@@ -784,26 +784,26 @@ function na({
784
784
  "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)",
785
785
  t
786
786
  ),
787
- ...r
787
+ ...a
788
788
  }
789
789
  );
790
790
  }
791
- function la({
791
+ function cr({
792
792
  className: t,
793
- ...r
793
+ ...a
794
794
  }) {
795
795
  return /* @__PURE__ */ e(
796
796
  "div",
797
797
  {
798
798
  "data-slot": "body",
799
799
  className: i("min-h-0 flex-1 overflow-y-auto px-5 py-4", t),
800
- ...r
800
+ ...a
801
801
  }
802
802
  );
803
803
  }
804
- function ia({
804
+ function ur({
805
805
  className: t,
806
- ...r
806
+ ...a
807
807
  }) {
808
808
  return /* @__PURE__ */ e(
809
809
  "div",
@@ -813,13 +813,13 @@ function ia({
813
813
  "flex shrink-0 flex-col gap-1.5 border-b border-(--dialog-panel-border) px-5 py-4",
814
814
  t
815
815
  ),
816
- ...r
816
+ ...a
817
817
  }
818
818
  );
819
819
  }
820
- function oa({
820
+ function mr({
821
821
  className: t,
822
- ...r
822
+ ...a
823
823
  }) {
824
824
  return /* @__PURE__ */ e(
825
825
  "div",
@@ -829,38 +829,38 @@ function oa({
829
829
  "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",
830
830
  t
831
831
  ),
832
- ...r
832
+ ...a
833
833
  }
834
834
  );
835
835
  }
836
- const Mt = f(({ className: t, ...r }, n) => {
837
- const l = W(_e) ? R.Title : "h2";
836
+ const Pt = f(({ className: t, ...a }, n) => {
837
+ const l = O(Ee) ? _.Title : "h2";
838
838
  return /* @__PURE__ */ e(
839
839
  l,
840
840
  {
841
841
  ref: n,
842
842
  className: i("text-base font-semibold text-fg", t),
843
- ...r
843
+ ...a
844
844
  }
845
845
  );
846
846
  });
847
- Mt.displayName = "DialogTitle";
848
- const sa = f(({ className: t, ...r }, n) => {
849
- const l = W(_e) ? R.Description : "p";
847
+ Pt.displayName = "DialogTitle";
848
+ const pr = f(({ className: t, ...a }, n) => {
849
+ const l = O(Ee) ? _.Description : "p";
850
850
  return /* @__PURE__ */ e(
851
851
  l,
852
852
  {
853
853
  ref: n,
854
854
  className: i("text-sm text-muted", t),
855
- ...r
855
+ ...a
856
856
  }
857
857
  );
858
858
  });
859
- sa.displayName = "DialogDescription";
860
- const Pt = te(null);
861
- function da({
859
+ pr.displayName = "DialogDescription";
860
+ const It = re(null);
861
+ function fr({
862
862
  label: t,
863
- value: r,
863
+ value: a,
864
864
  onChange: n,
865
865
  disabled: l = !1,
866
866
  name: o,
@@ -868,30 +868,30 @@ function da({
868
868
  children: u,
869
869
  ...c
870
870
  }) {
871
- const v = fe(), b = o ?? v;
872
- return /* @__PURE__ */ e(Pt.Provider, { value: { name: b, value: r, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: i("flex flex-col gap-6", m), ...c, children: [
871
+ const x = he(), b = o ?? x;
872
+ return /* @__PURE__ */ e(It.Provider, { value: { name: b, value: a, onChange: n, disabled: l }, children: /* @__PURE__ */ s("fieldset", { className: i("flex flex-col gap-6", m), ...c, children: [
873
873
  /* @__PURE__ */ e("legend", { className: "sr-only", children: t }),
874
874
  u
875
875
  ] }) });
876
876
  }
877
- function ca({
877
+ function br({
878
878
  value: t,
879
- title: r,
879
+ title: a,
880
880
  description: n,
881
881
  badge: l,
882
882
  disabled: o = !1,
883
883
  className: m
884
884
  }) {
885
- const u = W(Pt), c = fe();
885
+ const u = O(It), c = he();
886
886
  if (!u)
887
887
  throw new Error("RadioCard must be rendered inside a RadioGroup");
888
- const v = o || u.disabled, b = u.value === t;
888
+ const x = o || u.disabled, b = u.value === t;
889
889
  return /* @__PURE__ */ s(
890
890
  "label",
891
891
  {
892
892
  className: i(
893
893
  "group relative flex items-start gap-3",
894
- v ? "cursor-not-allowed opacity-50" : "cursor-pointer",
894
+ x ? "cursor-not-allowed opacity-50" : "cursor-pointer",
895
895
  m
896
896
  ),
897
897
  children: [
@@ -902,7 +902,7 @@ function ca({
902
902
  name: u.name,
903
903
  value: t,
904
904
  checked: b,
905
- disabled: v,
905
+ disabled: x,
906
906
  onChange: () => {
907
907
  var h;
908
908
  return (h = u.onChange) == null ? void 0 : h.call(u, t);
@@ -924,8 +924,8 @@ function ca({
924
924
  ),
925
925
  /* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
926
926
  /* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-2", children: [
927
- /* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: r }),
928
- l ? /* @__PURE__ */ e(Ar, { variant: "primary", children: l }) : null
927
+ /* @__PURE__ */ e("span", { className: "text-base font-semibold text-fg", children: a }),
928
+ l ? /* @__PURE__ */ e(Ha, { variant: "primary", children: l }) : null
929
929
  ] }),
930
930
  n ? /* @__PURE__ */ e("span", { id: c, className: "mt-1 block text-sm text-muted", children: n }) : null
931
931
  ] })
@@ -933,35 +933,35 @@ function ca({
933
933
  }
934
934
  );
935
935
  }
936
- function La({
936
+ function qr({
937
937
  open: t,
938
- onOpenChange: r,
938
+ onOpenChange: a,
939
939
  trigger: n,
940
940
  title: l,
941
941
  options: o,
942
942
  defaultValue: m,
943
943
  value: u,
944
944
  onValueChange: c,
945
- cancelLabel: v = "Cancel",
945
+ cancelLabel: x = "Cancel",
946
946
  confirmLabel: b = "Continue",
947
947
  onConfirm: h
948
948
  }) {
949
949
  var S;
950
- const [y, C] = D(m ?? ((S = o[0]) == null ? void 0 : S.value) ?? ""), N = u ?? y;
951
- return /* @__PURE__ */ s(ra, { open: t, onOpenChange: r, children: [
950
+ const [y, k] = T(m ?? ((S = o[0]) == null ? void 0 : S.value) ?? ""), v = u ?? y;
951
+ return /* @__PURE__ */ s(or, { open: t, onOpenChange: a, children: [
952
952
  n ? /* @__PURE__ */ e(kt, { asChild: !0, children: n }) : null,
953
953
  /* @__PURE__ */ s(
954
- Tt,
954
+ Mt,
955
955
  {
956
956
  "aria-describedby": void 0,
957
957
  className: "max-w-[29.4rem] [&>button]:hidden",
958
958
  children: [
959
- /* @__PURE__ */ s(na, { children: [
960
- /* @__PURE__ */ e(ia, { children: /* @__PURE__ */ e(Mt, { className: "text-xl", children: l }) }),
961
- /* @__PURE__ */ e(la, { children: /* @__PURE__ */ e(da, { label: l, value: N, onChange: (g) => {
962
- u === void 0 && C(g), c == null || c(g);
959
+ /* @__PURE__ */ s(dr, { children: [
960
+ /* @__PURE__ */ e(ur, { children: /* @__PURE__ */ e(Pt, { className: "text-xl", children: l }) }),
961
+ /* @__PURE__ */ e(cr, { children: /* @__PURE__ */ e(fr, { label: l, value: v, onChange: (g) => {
962
+ u === void 0 && k(g), c == null || c(g);
963
963
  }, children: o.map((g) => /* @__PURE__ */ e(
964
- ca,
964
+ br,
965
965
  {
966
966
  value: g.value,
967
967
  title: g.title,
@@ -971,25 +971,25 @@ function La({
971
971
  g.value
972
972
  )) }) })
973
973
  ] }),
974
- /* @__PURE__ */ s(oa, { className: "gap-3 pt-2.5", children: [
975
- /* @__PURE__ */ e(zt, { className: "flex-1", children: v }),
976
- /* @__PURE__ */ e(M, { className: "flex-1", onClick: () => h == null ? void 0 : h(N), children: b })
974
+ /* @__PURE__ */ s(mr, { className: "gap-3 pt-2.5", children: [
975
+ /* @__PURE__ */ e(Dt, { className: "flex-1", children: x }),
976
+ /* @__PURE__ */ e(M, { className: "flex-1", onClick: () => h == null ? void 0 : h(v), children: b })
977
977
  ] })
978
978
  ]
979
979
  }
980
980
  )
981
981
  ] });
982
982
  }
983
- function Aa({ code: t, label: r, className: n }) {
984
- const [l, o] = D(!1);
983
+ function Gr({ code: t, label: a, className: n }) {
984
+ const [l, o] = T(!1);
985
985
  return /* @__PURE__ */ e(
986
- be,
986
+ ge,
987
987
  {
988
988
  className: n,
989
- 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: r }) }),
989
+ 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 }) }),
990
990
  action: {
991
991
  label: l ? "Copied" : "Copy",
992
- icon: l ? /* @__PURE__ */ e(ee, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(pt, {}),
992
+ icon: l ? /* @__PURE__ */ e(ae, { className: "text-success", weight: "bold" }) : /* @__PURE__ */ e(ft, {}),
993
993
  variant: "ghost",
994
994
  onClick: async () => {
995
995
  try {
@@ -1003,27 +1003,27 @@ function Aa({ code: t, label: r, className: n }) {
1003
1003
  }
1004
1004
  );
1005
1005
  }
1006
- const ua = {
1006
+ const hr = {
1007
1007
  sm: "h-[var(--control-h-sm)] text-sm",
1008
1008
  md: "h-[var(--control-h-md)] text-sm",
1009
1009
  lg: "h-[var(--control-h-lg)] text-sm",
1010
1010
  xl: "h-[var(--control-h-xl)] rounded-lg text-base"
1011
- }, ma = {
1011
+ }, gr = {
1012
1012
  sm: "px-[var(--control-pad-x-sm)]",
1013
1013
  md: "px-[var(--control-pad-x-md)]",
1014
1014
  lg: "px-[var(--control-pad-x-lg)]",
1015
1015
  xl: "px-[var(--control-pad-x-xl)]"
1016
- }, pa = {
1016
+ }, xr = {
1017
1017
  sm: "left-[var(--control-pad-x-sm)]",
1018
1018
  md: "left-[var(--control-pad-x-md)]",
1019
1019
  lg: "left-[var(--control-pad-x-lg)]",
1020
1020
  xl: "left-[var(--control-pad-x-xl)]"
1021
- }, mt = {
1021
+ }, pt = {
1022
1022
  sm: "right-[var(--control-pad-x-sm)]",
1023
1023
  md: "right-[var(--control-pad-x-md)]",
1024
1024
  lg: "right-[var(--control-pad-x-lg)]",
1025
1025
  xl: "right-[var(--control-pad-x-xl)]"
1026
- }, ze = {
1026
+ }, ke = {
1027
1027
  sm: "size-[var(--control-icon-sm)]",
1028
1028
  md: "size-[var(--control-icon-md)]",
1029
1029
  lg: "size-[var(--control-icon-lg)]",
@@ -1031,70 +1031,70 @@ const ua = {
1031
1031
  }, Le = f(
1032
1032
  ({
1033
1033
  className: t,
1034
- containerClassName: r,
1034
+ containerClassName: a,
1035
1035
  type: n = "text",
1036
1036
  size: l = "md",
1037
1037
  leadingIcon: o,
1038
1038
  trailingIcon: m,
1039
1039
  onClear: u,
1040
1040
  value: c,
1041
- defaultValue: v,
1041
+ defaultValue: x,
1042
1042
  error: b = !1,
1043
1043
  helperText: h,
1044
1044
  id: y,
1045
- "aria-describedby": C,
1046
- disabled: N,
1047
- readOnly: k,
1045
+ "aria-describedby": k,
1046
+ disabled: v,
1047
+ readOnly: D,
1048
1048
  ...S
1049
1049
  }, g) => {
1050
- const I = fe(), j = y ?? I, O = !!h, F = !!(u && (c !== void 0 ? String(c).length > 0 : v !== void 0 && String(v).length > 0)), $ = O ? `${j}-description` : void 0, ge = [C, $].filter(Boolean).join(" ") || void 0, re = /* @__PURE__ */ e(
1050
+ const j = he(), I = y ?? j, A = !!h, $ = !!(u && (c !== void 0 ? String(c).length > 0 : x !== void 0 && String(x).length > 0)), ne = A ? `${I}-description` : void 0, U = [k, ne].filter(Boolean).join(" ") || void 0, le = /* @__PURE__ */ e(
1051
1051
  "input",
1052
1052
  {
1053
1053
  ref: g,
1054
- id: j,
1054
+ id: I,
1055
1055
  type: n,
1056
- disabled: N,
1057
- readOnly: k,
1056
+ disabled: v,
1057
+ readOnly: D,
1058
1058
  "aria-invalid": b || void 0,
1059
- "aria-describedby": ge,
1060
- style: o || m || F ? {
1059
+ "aria-describedby": U,
1060
+ style: o || m || $ ? {
1061
1061
  paddingInlineStart: o ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0,
1062
- paddingInlineEnd: m || F ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
1062
+ paddingInlineEnd: m || $ ? `calc(var(--control-pad-x-${l}) + var(--control-icon-${l}) + var(--control-gap))` : void 0
1063
1063
  } : void 0,
1064
1064
  className: i(
1065
1065
  "flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
1066
- ua[l],
1067
- ma[l],
1066
+ hr[l],
1067
+ gr[l],
1068
1068
  "placeholder:text-(--input-placeholder)",
1069
1069
  "hover:border-(--input-border-hover)",
1070
1070
  "focus-visible:outline-none focus-visible:border-(--input-border-focus) focus-visible:ring-2 focus-visible:ring-focus/30",
1071
1071
  b && "border-error hover:border-error focus-visible:border-error focus-visible:ring-error/30",
1072
1072
  !b && "border-(--input-border)",
1073
1073
  n === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-ms-clear]:hidden",
1074
- N && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1075
- k && "cursor-default focus-visible:ring-0",
1074
+ v && "cursor-not-allowed bg-(--input-bg-disabled) opacity-60 hover:border-(--input-border)",
1075
+ D && "cursor-default focus-visible:ring-0",
1076
1076
  t
1077
1077
  ),
1078
1078
  value: c,
1079
- defaultValue: v,
1079
+ defaultValue: x,
1080
1080
  ...S
1081
1081
  }
1082
1082
  );
1083
- return !o && !m && !F && !O ? re : /* @__PURE__ */ s("div", { className: i("w-full", r), children: [
1083
+ return !o && !m && !$ && !A ? le : /* @__PURE__ */ s("div", { className: i("w-full", a), children: [
1084
1084
  /* @__PURE__ */ s("div", { className: "relative", children: [
1085
1085
  o ? /* @__PURE__ */ e(
1086
1086
  "span",
1087
1087
  {
1088
1088
  className: i(
1089
1089
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1090
- pa[l]
1090
+ xr[l]
1091
1091
  ),
1092
1092
  "aria-hidden": !0,
1093
- children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ze[l]), children: o })
1093
+ children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ke[l]), children: o })
1094
1094
  }
1095
1095
  ) : null,
1096
- re,
1097
- F ? /* @__PURE__ */ e(
1096
+ le,
1097
+ $ ? /* @__PURE__ */ e(
1098
1098
  "button",
1099
1099
  {
1100
1100
  type: "button",
@@ -1102,26 +1102,26 @@ const ua = {
1102
1102
  onClick: u,
1103
1103
  className: i(
1104
1104
  "absolute inset-y-0 flex items-center text-(--input-placeholder) transition-colors hover:text-(--input-fg)",
1105
- mt[l]
1105
+ pt[l]
1106
1106
  ),
1107
- children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ze[l]), children: /* @__PURE__ */ e(ue, {}) })
1107
+ children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ke[l]), children: /* @__PURE__ */ e(fe, {}) })
1108
1108
  }
1109
1109
  ) : m ? /* @__PURE__ */ e(
1110
1110
  "span",
1111
1111
  {
1112
1112
  className: i(
1113
1113
  "pointer-events-none absolute inset-y-0 flex items-center text-(--input-placeholder)",
1114
- mt[l]
1114
+ pt[l]
1115
1115
  ),
1116
1116
  "aria-hidden": !0,
1117
- children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ze[l]), children: m })
1117
+ children: /* @__PURE__ */ e("span", { className: i("inline-flex items-center justify-center", ke[l]), children: m })
1118
1118
  }
1119
1119
  ) : null
1120
1120
  ] }),
1121
- O ? /* @__PURE__ */ e(
1121
+ A ? /* @__PURE__ */ e(
1122
1122
  "p",
1123
1123
  {
1124
- id: $,
1124
+ id: ne,
1125
1125
  className: i("mt-1.5 text-xs", b ? "text-error" : "text-muted"),
1126
1126
  children: h
1127
1127
  }
@@ -1130,45 +1130,45 @@ const ua = {
1130
1130
  }
1131
1131
  );
1132
1132
  Le.displayName = "Input";
1133
- function Ae(t, r) {
1133
+ function Ae(t, a) {
1134
1134
  let n = 0;
1135
- return bt.forEach(t, (l) => {
1136
- if (!ht(l)) return;
1137
- if (r.some((m) => m === l.type)) {
1135
+ return ht.forEach(t, (l) => {
1136
+ if (!gt(l)) return;
1137
+ if (a.some((m) => m === l.type)) {
1138
1138
  n += 1;
1139
1139
  return;
1140
1140
  }
1141
1141
  const o = l.props.children;
1142
- o && (n += Ae(o, r));
1142
+ o && (n += Ae(o, a));
1143
1143
  }), n;
1144
1144
  }
1145
- const It = te(!1);
1145
+ const Rt = re(!1);
1146
1146
  function De({
1147
1147
  children: t,
1148
- ...r
1148
+ ...a
1149
1149
  }) {
1150
1150
  const n = Ae(t, [
1151
- pe,
1152
- Y,
1153
- jt
1151
+ be,
1152
+ ee,
1153
+ _t
1154
1154
  ]) === 0;
1155
- return /* @__PURE__ */ e(It.Provider, { value: n, children: /* @__PURE__ */ e(T.Root, { ...r, children: t }) });
1155
+ return /* @__PURE__ */ e(Rt.Provider, { value: n, children: /* @__PURE__ */ e(P.Root, { ...a, children: t }) });
1156
1156
  }
1157
- const se = f(({ className: t, disabled: r, ...n }, l) => {
1158
- const o = W(It);
1157
+ const ue = f(({ className: t, disabled: a, ...n }, l) => {
1158
+ const o = O(Rt);
1159
1159
  return /* @__PURE__ */ e(
1160
- T.Trigger,
1160
+ P.Trigger,
1161
1161
  {
1162
1162
  ref: l,
1163
1163
  className: i("group", t),
1164
- disabled: r || o,
1164
+ disabled: a || o,
1165
1165
  ...n
1166
1166
  }
1167
1167
  );
1168
1168
  });
1169
- se.displayName = "DropdownMenuTrigger";
1170
- const Rt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1171
- me,
1169
+ ue.displayName = "DropdownMenuTrigger";
1170
+ const jt = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1171
+ Y,
1172
1172
  {
1173
1173
  ref: n,
1174
1174
  "aria-hidden": !0,
@@ -1176,15 +1176,15 @@ const Rt = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1176
1176
  "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",
1177
1177
  t
1178
1178
  ),
1179
- ...r
1179
+ ...a
1180
1180
  }
1181
1181
  ));
1182
- Rt.displayName = "DropdownMenuChevron";
1183
- const Ba = T.Group, Fa = T.Portal, de = f(({ className: t, sideOffset: r = 8, ...n }, l) => /* @__PURE__ */ e(T.Portal, { children: /* @__PURE__ */ e(
1184
- T.Content,
1182
+ jt.displayName = "DropdownMenuChevron";
1183
+ const Hr = P.Group, Vr = P.Portal, me = f(({ className: t, sideOffset: a = 8, ...n }, l) => /* @__PURE__ */ e(P.Portal, { children: /* @__PURE__ */ e(
1184
+ P.Content,
1185
1185
  {
1186
1186
  ref: l,
1187
- sideOffset: r,
1187
+ sideOffset: a,
1188
1188
  className: i(
1189
1189
  "menu-surface btn-inner-border z-50 min-w-48 overflow-hidden rounded-lg border border-line bg-(--button-secondary-bg) p-1",
1190
1190
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
@@ -1198,24 +1198,24 @@ const Ba = T.Group, Fa = T.Portal, de = f(({ className: t, sideOffset: r = 8, ..
1198
1198
  ...n
1199
1199
  }
1200
1200
  ) }));
1201
- de.displayName = "DropdownMenuContent";
1202
- const pe = f(({ className: t, inset: r, ...n }, l) => /* @__PURE__ */ e(
1203
- T.Item,
1201
+ me.displayName = "DropdownMenuContent";
1202
+ const be = f(({ className: t, inset: a, ...n }, l) => /* @__PURE__ */ e(
1203
+ P.Item,
1204
1204
  {
1205
1205
  ref: l,
1206
1206
  className: i(
1207
1207
  "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-fg outline-none transition-colors",
1208
1208
  "focus:bg-(--menu-highlight) data-disabled:pointer-events-none data-disabled:opacity-50",
1209
1209
  "[&_svg]:size-4 [&_svg]:text-muted",
1210
- r && "pl-8",
1210
+ a && "pl-8",
1211
1211
  t
1212
1212
  ),
1213
1213
  ...n
1214
1214
  }
1215
1215
  ));
1216
- pe.displayName = "DropdownMenuItem";
1217
- const Y = f(({ className: t, children: r, checked: n, ...l }, o) => /* @__PURE__ */ s(
1218
- T.CheckboxItem,
1216
+ be.displayName = "DropdownMenuItem";
1217
+ const ee = f(({ className: t, children: a, checked: n, ...l }, o) => /* @__PURE__ */ s(
1218
+ P.CheckboxItem,
1219
1219
  {
1220
1220
  ref: o,
1221
1221
  className: i(
@@ -1225,42 +1225,42 @@ const Y = f(({ className: t, children: r, checked: n, ...l }, o) => /* @__PURE__
1225
1225
  checked: n,
1226
1226
  ...l,
1227
1227
  children: [
1228
- /* @__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(T.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(ee, { className: "size-3", weight: "bold" }) }) }),
1229
- r
1228
+ /* @__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(P.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(ae, { className: "size-3", weight: "bold" }) }) }),
1229
+ a
1230
1230
  ]
1231
1231
  }
1232
1232
  ));
1233
- Y.displayName = "DropdownMenuCheckboxItem";
1234
- const ce = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1235
- T.Label,
1233
+ ee.displayName = "DropdownMenuCheckboxItem";
1234
+ const pe = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1235
+ P.Label,
1236
1236
  {
1237
1237
  ref: n,
1238
1238
  className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
1239
- ...r
1239
+ ...a
1240
1240
  }
1241
1241
  ));
1242
- ce.displayName = "DropdownMenuLabel";
1243
- const $a = T.Sub, jt = f(({ className: t, inset: r, children: n, ...l }, o) => /* @__PURE__ */ s(
1244
- T.SubTrigger,
1242
+ pe.displayName = "DropdownMenuLabel";
1243
+ const Wr = P.Sub, _t = f(({ className: t, inset: a, children: n, ...l }, o) => /* @__PURE__ */ s(
1244
+ P.SubTrigger,
1245
1245
  {
1246
1246
  ref: o,
1247
1247
  className: i(
1248
1248
  "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm text-fg outline-none transition-colors",
1249
1249
  "focus:bg-(--menu-highlight) data-[state=open]:bg-(--menu-highlight)",
1250
1250
  "[&_svg]:size-4 [&_svg]:text-muted",
1251
- r && "pl-8",
1251
+ a && "pl-8",
1252
1252
  t
1253
1253
  ),
1254
1254
  ...l,
1255
1255
  children: [
1256
1256
  n,
1257
- /* @__PURE__ */ e(ft, { className: "ml-auto shrink-0" })
1257
+ /* @__PURE__ */ e(bt, { className: "ml-auto shrink-0" })
1258
1258
  ]
1259
1259
  }
1260
1260
  ));
1261
- jt.displayName = "DropdownMenuSubTrigger";
1262
- const fa = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1263
- T.SubContent,
1261
+ _t.displayName = "DropdownMenuSubTrigger";
1262
+ const vr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1263
+ P.SubContent,
1264
1264
  {
1265
1265
  ref: n,
1266
1266
  sideOffset: 8,
@@ -1274,30 +1274,30 @@ const fa = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1274
1274
  "duration-150 ease-out",
1275
1275
  t
1276
1276
  ),
1277
- ...r
1277
+ ...a
1278
1278
  }
1279
1279
  ));
1280
- fa.displayName = "DropdownMenuSubContent";
1281
- const Pe = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1282
- T.Separator,
1280
+ vr.displayName = "DropdownMenuSubContent";
1281
+ const Pe = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1282
+ P.Separator,
1283
1283
  {
1284
1284
  ref: n,
1285
1285
  className: i("-mx-1 my-1 h-px bg-line-strong", t),
1286
- ...r
1286
+ ...a
1287
1287
  }
1288
1288
  ));
1289
1289
  Pe.displayName = "DropdownMenuSeparator";
1290
- const qa = P.Group, Et = P.Value;
1291
- function _t({
1290
+ const Or = R.Group, Et = R.Value;
1291
+ function Lt({
1292
1292
  children: t,
1293
- disabled: r,
1293
+ disabled: a,
1294
1294
  ...n
1295
1295
  }) {
1296
- const l = Ae(t, [he]) === 0;
1297
- return /* @__PURE__ */ e(P.Root, { disabled: r || l, ...n, children: t });
1296
+ const l = Ae(t, [xe]) === 0;
1297
+ return /* @__PURE__ */ e(R.Root, { disabled: a || l, ...n, children: t });
1298
1298
  }
1299
- const Be = f(({ className: t, children: r, variant: n = "field", ...l }, o) => /* @__PURE__ */ s(
1300
- P.Trigger,
1299
+ const Be = f(({ className: t, children: a, variant: n = "field", ...l }, o) => /* @__PURE__ */ s(
1300
+ R.Trigger,
1301
1301
  {
1302
1302
  ref: o,
1303
1303
  className: i(
@@ -1311,15 +1311,15 @@ const Be = f(({ className: t, children: r, variant: n = "field", ...l }, o) => /
1311
1311
  ),
1312
1312
  ...l,
1313
1313
  children: [
1314
- /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: r }),
1315
- /* @__PURE__ */ e(P.Icon, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex size-4 shrink-0 items-center justify-center", children: /* @__PURE__ */ e(me, { className: "size-3.5 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) }) })
1314
+ /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate text-left", children: a }),
1315
+ /* @__PURE__ */ e(R.Icon, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "flex size-4 shrink-0 items-center justify-center", children: /* @__PURE__ */ e(Y, { className: "size-3.5 text-muted transition-transform duration-200 ease-out group-data-[state=open]:rotate-180 motion-reduce:transition-none" }) }) })
1316
1316
  ]
1317
1317
  }
1318
1318
  ));
1319
1319
  Be.displayName = "SelectTrigger";
1320
1320
  const Fe = f(
1321
- ({ className: t, children: r, position: n = "popper", sideOffset: l = 8, ...o }, m) => /* @__PURE__ */ e(P.Portal, { children: /* @__PURE__ */ e(
1322
- P.Content,
1321
+ ({ className: t, children: a, position: n = "popper", sideOffset: l = 8, ...o }, m) => /* @__PURE__ */ e(R.Portal, { children: /* @__PURE__ */ e(
1322
+ R.Content,
1323
1323
  {
1324
1324
  ref: m,
1325
1325
  position: n,
@@ -1335,13 +1335,13 @@ const Fe = f(
1335
1335
  t
1336
1336
  ),
1337
1337
  ...o,
1338
- children: /* @__PURE__ */ e(P.Viewport, { className: "p-0", children: r })
1338
+ children: /* @__PURE__ */ e(R.Viewport, { className: "p-0", children: a })
1339
1339
  }
1340
1340
  ) })
1341
1341
  );
1342
1342
  Fe.displayName = "SelectContent";
1343
- const he = f(({ className: t, children: r, ...n }, l) => /* @__PURE__ */ s(
1344
- P.Item,
1343
+ const xe = f(({ className: t, children: a, ...n }, l) => /* @__PURE__ */ s(
1344
+ R.Item,
1345
1345
  {
1346
1346
  ref: l,
1347
1347
  className: i(
@@ -1350,24 +1350,24 @@ const he = f(({ className: t, children: r, ...n }, l) => /* @__PURE__ */ s(
1350
1350
  ),
1351
1351
  ...n,
1352
1352
  children: [
1353
- /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(P.ItemIndicator, { children: /* @__PURE__ */ e(ee, { className: "size-3.5" }) }) }),
1354
- /* @__PURE__ */ e(P.ItemText, { children: r })
1353
+ /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(R.ItemIndicator, { children: /* @__PURE__ */ e(ae, { className: "size-3.5" }) }) }),
1354
+ /* @__PURE__ */ e(R.ItemText, { children: a })
1355
1355
  ]
1356
1356
  }
1357
1357
  ));
1358
- he.displayName = "SelectItem";
1359
- const ba = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
1360
- P.Label,
1358
+ xe.displayName = "SelectItem";
1359
+ const Nr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
1360
+ R.Label,
1361
1361
  {
1362
1362
  ref: n,
1363
1363
  className: i("px-2 py-1.5 text-xs font-medium text-subtle", t),
1364
- ...r
1364
+ ...a
1365
1365
  }
1366
1366
  ));
1367
- ba.displayName = "SelectLabel";
1368
- function ha({
1367
+ Nr.displayName = "SelectLabel";
1368
+ function yr({
1369
1369
  icon: t,
1370
- title: r,
1370
+ title: a,
1371
1371
  description: n,
1372
1372
  action: l,
1373
1373
  className: o
@@ -1382,7 +1382,7 @@ function ha({
1382
1382
  children: [
1383
1383
  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,
1384
1384
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1385
- /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children: r }),
1385
+ /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold leading-tight text-table-header-active", children: a }),
1386
1386
  n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: n }) : null
1387
1387
  ] }),
1388
1388
  l ? /* @__PURE__ */ e("div", { className: "text-sm font-medium text-table-accent", children: l }) : null
@@ -1390,174 +1390,180 @@ function ha({
1390
1390
  }
1391
1391
  );
1392
1392
  }
1393
- const ga = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1394
- function xa(t) {
1395
- return t.split(/\s+/).slice(0, 2).map((r) => {
1393
+ const wr = "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
1394
+ function Cr(t) {
1395
+ return t.split(/\s+/).slice(0, 2).map((a) => {
1396
1396
  var n;
1397
- return ((n = r[0]) == null ? void 0 : n.toUpperCase()) ?? "";
1397
+ return ((n = a[0]) == null ? void 0 : n.toUpperCase()) ?? "";
1398
1398
  }).join("");
1399
1399
  }
1400
- function Ga({
1400
+ function Ur({
1401
1401
  name: t,
1402
- secondary: r,
1402
+ secondary: a,
1403
1403
  image: n
1404
1404
  }) {
1405
1405
  return /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
1406
- /* @__PURE__ */ s(xt, { className: "size-8", children: [
1407
- n ? /* @__PURE__ */ e(vt, { src: n, alt: "" }) : null,
1408
- /* @__PURE__ */ e(Nt, { children: xa(t) })
1406
+ /* @__PURE__ */ s(vt, { className: "size-8", children: [
1407
+ n ? /* @__PURE__ */ e(Nt, { src: n, alt: "" }) : null,
1408
+ /* @__PURE__ */ e(yt, { children: Cr(t) })
1409
1409
  ] }),
1410
1410
  /* @__PURE__ */ s("div", { className: "min-w-0", children: [
1411
1411
  /* @__PURE__ */ e("div", { className: "truncate font-medium text-table-header-active", children: t }),
1412
- r ? /* @__PURE__ */ e("div", { className: "truncate text-xs text-table-muted", children: r }) : null
1412
+ a ? /* @__PURE__ */ e("div", { className: "truncate text-xs text-table-muted", children: a }) : null
1413
1413
  ] })
1414
1414
  ] });
1415
1415
  }
1416
- function Ha({
1416
+ function Xr({
1417
1417
  rows: t,
1418
- columns: r,
1418
+ columns: a,
1419
1419
  getRowId: n,
1420
1420
  loading: l = !1,
1421
1421
  error: o,
1422
1422
  empty: m,
1423
1423
  search: u,
1424
1424
  filters: c,
1425
- toolbarStart: v,
1425
+ toolbarStart: x,
1426
1426
  toolbarEnd: b,
1427
1427
  columnPicker: h = !0,
1428
1428
  tabs: y,
1429
- activeTab: C,
1430
- onTabChange: N,
1431
- infoBanner: k,
1429
+ activeTab: k,
1430
+ onTabChange: v,
1431
+ infoBanner: D,
1432
1432
  selectable: S = !1,
1433
1433
  bulkActions: g,
1434
- rowActions: I,
1435
- onRowClick: j,
1436
- defaultSort: O,
1437
- sort: F,
1438
- onSortChange: $,
1439
- pageSize: ge = 25,
1440
- pageSizeOptions: re = [10, 25, 50, 100],
1441
- pagination: Lt = "auto",
1442
- tone: At,
1443
- title: Bt,
1444
- description: Ft,
1445
- headerAction: $t,
1446
- headerClassName: qt,
1447
- panelClassName: Gt,
1448
- className: Ht
1434
+ rowActions: j,
1435
+ renderExpanded: I,
1436
+ onRowClick: A,
1437
+ defaultSort: $,
1438
+ sort: ne,
1439
+ onSortChange: U,
1440
+ pageSize: le = 25,
1441
+ pageSizeOptions: At = [10, 25, 50, 100],
1442
+ pagination: Bt = "auto",
1443
+ tone: Ft,
1444
+ title: $t,
1445
+ description: qt,
1446
+ headerAction: Gt,
1447
+ headerClassName: Ht,
1448
+ panelClassName: Vt,
1449
+ className: Wt
1449
1450
  }) {
1450
- const [$e, qe] = D(
1451
+ const [$e, qe] = T(
1451
1452
  () => Object.fromEntries(
1452
- r.filter((a) => a.defaultHidden && !a.required).map((a) => [a.id, !0])
1453
+ a.filter((r) => r.defaultHidden && !r.required).map((r) => [r.id, !0])
1453
1454
  )
1454
- ), [Ge, He] = D(null), [xe, Ve] = D(null), [Vt, Wt] = D(
1455
- O ?? null
1456
- ), w = $ ? F ?? null : Vt, Ot = (a) => {
1457
- $ ? $(a) : Wt(a);
1458
- }, [U, ae] = D(0), [A, Ut] = D(ge), [q, ve] = D(/* @__PURE__ */ new Set()), [Xt, Ne] = D([]), We = r.map((a) => a.id), Oe = new Map(r.map((a) => [a.id, a])), Ue = Ge ? Ge.map((a) => Oe.get(a)).filter((a) => !!a) : r, X = Ue.filter((a) => !$e[a.id]), Xe = Ue.filter((a) => $e[a.id] && !a.required), Je = (a) => !!a.required, Jt = (a) => Oe.get(a), Kt = (a, d) => {
1459
- const p = d ? Jt(d) : void 0;
1460
- !p || Je(p) || a === d || He((x) => {
1461
- const z = x ?? We;
1462
- return Ir(z, z.indexOf(a), z.indexOf(d));
1455
+ ), [Ge, He] = T(null), [ve, Ve] = T(null), [Ot, Ut] = T(
1456
+ $ ?? null
1457
+ ), w = U ? ne ?? null : Ot, Xt = (r) => {
1458
+ U ? U(r) : Ut(r);
1459
+ }, [X, ie] = T(0), [B, Jt] = T(le), [q, Ne] = T(/* @__PURE__ */ new Set()), [Kt, Qt] = T(/* @__PURE__ */ new Set()), Yt = (r) => {
1460
+ Qt((d) => {
1461
+ const p = new Set(d);
1462
+ return p.has(r) ? p.delete(r) : p.add(r), p;
1463
+ });
1464
+ }, [Zt, ye] = T([]), We = a.map((r) => r.id), Oe = new Map(a.map((r) => [r.id, r])), Ue = Ge ? Ge.map((r) => Oe.get(r)).filter((r) => !!r) : a, G = Ue.filter((r) => !$e[r.id]), Xe = Ue.filter((r) => $e[r.id] && !r.required), Je = (r) => !!r.required, ea = (r) => Oe.get(r), ta = (r, d) => {
1465
+ const p = d ? ea(d) : void 0;
1466
+ !p || Je(p) || r === d || He((N) => {
1467
+ const z = N ?? We;
1468
+ return Aa(z, z.indexOf(r), z.indexOf(d));
1463
1469
  });
1464
- }, Qt = (a) => {
1465
- qe((d) => ({ ...d, [a]: !1 })), He((d) => d && d.includes(a) ? d : [...d ?? We, a]);
1466
- }, ye = (c ?? []).filter((a) => Xt.includes(a.id)), Yt = (c ?? []).map((a) => `${a.id}:${a.value.join(",")}`).join("|"), ne = ot(() => {
1467
- let a = t;
1470
+ }, aa = (r) => {
1471
+ qe((d) => ({ ...d, [r]: !1 })), He((d) => d && d.includes(r) ? d : [...d ?? We, r]);
1472
+ }, we = (c ?? []).filter((r) => Zt.includes(r.id)), ra = (c ?? []).map((r) => `${r.id}:${r.value.join(",")}`).join("|"), oe = ot(() => {
1473
+ let r = t;
1468
1474
  for (const p of c ?? [])
1469
- p.value.length > 0 && (a = a.filter((x) => p.match(x, p.value)));
1470
- if (!u || !u.value.trim()) return a;
1475
+ p.value.length > 0 && (r = r.filter((N) => p.match(N, p.value)));
1476
+ if (!u || !u.value.trim()) return r;
1471
1477
  const d = u.value.trim().toLowerCase();
1472
- return a.filter((p) => u.keys(p).toLowerCase().includes(d));
1473
- }, [t, u, c]), G = ot(() => {
1474
- if (!w) return ne;
1475
- const a = r.find((p) => p.id === w.id);
1476
- if (!(a != null && a.sortValue)) return ne;
1478
+ return r.filter((p) => u.keys(p).toLowerCase().includes(d));
1479
+ }, [t, u, c]), H = ot(() => {
1480
+ if (!w) return oe;
1481
+ const r = a.find((p) => p.id === w.id);
1482
+ if (!(r != null && r.sortValue)) return oe;
1477
1483
  const d = w.dir === "asc" ? 1 : -1;
1478
- return [...ne].sort((p, x) => {
1479
- const z = a.sortValue(p), E = a.sortValue(x);
1480
- return z == null && E == null ? 0 : z == null ? 1 : E == null ? -1 : typeof z == "number" && typeof E == "number" ? (z - E) * d : String(z).localeCompare(String(E)) * d;
1484
+ return [...oe].sort((p, N) => {
1485
+ const z = r.sortValue(p), C = r.sortValue(N);
1486
+ return z == null && C == null ? 0 : z == null ? 1 : C == null ? -1 : typeof z == "number" && typeof C == "number" ? (z - C) * d : String(z).localeCompare(String(C)) * d;
1481
1487
  });
1482
- }, [ne, w, r]), J = Math.max(1, Math.ceil(G.length / A)), Zt = !l && !o && G.length > 0 && (Lt === "always" || G.length > A);
1483
- Q(() => {
1484
- ae(0);
1485
- }, [u == null ? void 0 : u.value, A, w == null ? void 0 : w.id, w == null ? void 0 : w.dir, C, Yt]), Q(() => {
1486
- U > J - 1 && ae(J - 1);
1487
- }, [U, J]);
1488
- const le = U * A, B = G.slice(le, le + A), er = (a) => {
1489
- if (!a.sortable) return;
1488
+ }, [oe, w, a]), J = Math.max(1, Math.ceil(H.length / B)), na = !l && !o && H.length > 0 && (Bt === "always" || H.length > B);
1489
+ Z(() => {
1490
+ ie(0);
1491
+ }, [u == null ? void 0 : u.value, B, w == null ? void 0 : w.id, w == null ? void 0 : w.dir, k, ra]), Z(() => {
1492
+ X > J - 1 && ie(J - 1);
1493
+ }, [X, J]);
1494
+ const se = X * B, F = H.slice(se, se + B), la = (r) => {
1495
+ if (!r.sortable) return;
1490
1496
  const d = w;
1491
- Ot(
1492
- (d == null ? void 0 : d.id) === a.id ? d.dir === "asc" ? { id: a.id, dir: "desc" } : null : { id: a.id, dir: "asc" }
1497
+ Xt(
1498
+ (d == null ? void 0 : d.id) === r.id ? d.dir === "asc" ? { id: r.id, dir: "desc" } : null : { id: r.id, dir: "asc" }
1493
1499
  );
1494
- }, Ke = B.length > 0 && B.every((a) => q.has(n(a))), tr = B.some((a) => q.has(n(a))), rr = t.filter((a) => q.has(n(a))), ar = () => {
1495
- ve((a) => {
1496
- const d = new Set(a);
1497
- return Ke ? B.forEach((p) => d.delete(n(p))) : B.forEach((p) => d.add(n(p))), d;
1500
+ }, Ke = F.length > 0 && F.every((r) => q.has(n(r))), ia = F.some((r) => q.has(n(r))), oa = t.filter((r) => q.has(n(r))), sa = () => {
1501
+ Ne((r) => {
1502
+ const d = new Set(r);
1503
+ return Ke ? F.forEach((p) => d.delete(n(p))) : F.forEach((p) => d.add(n(p))), d;
1498
1504
  });
1499
- }, nr = (a) => {
1500
- ve((d) => {
1505
+ }, da = (r) => {
1506
+ Ne((d) => {
1501
1507
  const p = new Set(d);
1502
- return p.has(a) ? p.delete(a) : p.add(a), p;
1508
+ return p.has(r) ? p.delete(r) : p.add(r), p;
1503
1509
  });
1504
- }, lr = !!(u || c != null && c.length || v || b), ir = (a) => (w == null ? void 0 : w.id) === a.id ? w.dir === "asc" ? "ascending" : "descending" : void 0, Qe = _(null), Ye = _(null), Ze = _(null), et = _(null), [H, we] = D([]), or = X.map((a) => a.id).join("\0"), ie = `${S ? "s" : "-"}|${I ? "a" : "-"}|${or}`, tt = _(ie), sr = H.length > 0, Ce = gt(() => {
1505
- const a = Ze.current, d = et.current;
1506
- a && d && (a.style.transform = `translateX(${-d.scrollLeft}px)`);
1510
+ }, ca = !!(u || c != null && c.length || x || b), ua = (r) => (w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? "ascending" : "descending" : void 0, Qe = E(null), Ye = E(null), Ze = E(null), et = E(null), [V, Ce] = T([]), ma = G.map((r) => r.id).join("\0"), de = `${S ? "s" : "-"}|${j ? "a" : "-"}|${I ? "e" : "-"}|${ma}`, tt = E(de), pa = V.length > 0, Se = xt(() => {
1511
+ const r = Ze.current, d = et.current;
1512
+ r && d && (r.style.transform = `translateX(${-d.scrollLeft}px)`);
1507
1513
  }, []);
1508
- kr(() => {
1509
- const a = Qe.current;
1510
- if (!a) return;
1511
- if (tt.current !== ie) {
1512
- tt.current = ie, we((x) => x.length === 0 ? x : []);
1514
+ Pa(() => {
1515
+ const r = Qe.current;
1516
+ if (!r) return;
1517
+ if (tt.current !== de) {
1518
+ tt.current = de, Ce((N) => N.length === 0 ? N : []);
1513
1519
  return;
1514
1520
  }
1515
1521
  const d = () => {
1516
- var rt, at, nt;
1517
- const x = (at = (rt = a.tBodies[0]) == null ? void 0 : rt.rows.item(0)) == null ? void 0 : at.cells;
1518
- if (!x || x.length === 0) {
1519
- we((L) => L.length === 0 ? L : []);
1522
+ var at, rt, nt;
1523
+ const N = (rt = (at = r.tBodies[0]) == null ? void 0 : at.rows.item(0)) == null ? void 0 : rt.cells;
1524
+ if (!N || N.length === 0) {
1525
+ Ce((L) => L.length === 0 ? L : []);
1520
1526
  return;
1521
1527
  }
1522
- const z = (nt = Ye.current) == null ? void 0 : nt.querySelectorAll("thead th"), E = Array.from(
1523
- x,
1524
- (L, Se) => {
1525
- var oe, lt;
1528
+ const z = (nt = Ye.current) == null ? void 0 : nt.querySelectorAll("thead th"), C = Array.from(
1529
+ N,
1530
+ (L, ze) => {
1531
+ var ce, lt;
1526
1532
  return Math.max(
1527
1533
  L.getBoundingClientRect().width,
1528
- ((lt = (oe = z == null ? void 0 : z.item(Se)) == null ? void 0 : oe.querySelector("[data-col-sizer]")) == null ? void 0 : lt.getBoundingClientRect().width) ?? 0
1534
+ ((lt = (ce = z == null ? void 0 : z.item(ze)) == null ? void 0 : ce.querySelector("[data-col-sizer]")) == null ? void 0 : lt.getBoundingClientRect().width) ?? 0
1529
1535
  );
1530
1536
  }
1531
1537
  );
1532
- we(
1533
- (L) => L.length === E.length && L.every((Se, oe) => Se === E[oe]) ? L : E
1538
+ Ce(
1539
+ (L) => L.length === C.length && L.every((ze, ce) => ze === C[ce]) ? L : C
1534
1540
  );
1535
1541
  };
1536
- if (d(), Ce(), typeof ResizeObserver > "u") return;
1542
+ if (d(), Se(), typeof ResizeObserver > "u") return;
1537
1543
  const p = new ResizeObserver(d);
1538
- return p.observe(a), () => p.disconnect();
1539
- }, [ie, sr, l, o, Ce]);
1540
- const K = H.reduce((a, d) => a + d, 0);
1541
- return /* @__PURE__ */ s("div", { className: i("space-y-4", Ht), children: [
1542
- y && y.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: y.map((a) => {
1543
- const d = a.id === C;
1544
+ return p.observe(r), () => p.disconnect();
1545
+ }, [de, pa, l, o, Se]);
1546
+ const K = V.reduce((r, d) => r + d, 0);
1547
+ return /* @__PURE__ */ s("div", { className: i("space-y-4", Wt), children: [
1548
+ y && y.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-1 border-b border-line", role: "tablist", children: y.map((r) => {
1549
+ const d = r.id === k;
1544
1550
  return /* @__PURE__ */ e(
1545
1551
  "button",
1546
1552
  {
1547
1553
  type: "button",
1548
1554
  role: "tab",
1549
1555
  "aria-selected": d,
1550
- onClick: () => N == null ? void 0 : N(a.id),
1556
+ onClick: () => v == null ? void 0 : v(r.id),
1551
1557
  className: i(
1552
1558
  "-mb-px border-b-2 px-3 py-2 text-sm transition-colors",
1553
1559
  d ? "border-fg font-medium text-fg" : "border-transparent text-muted hover:text-fg"
1554
1560
  ),
1555
- children: a.label
1561
+ children: r.label
1556
1562
  },
1557
- a.id
1563
+ r.id
1558
1564
  );
1559
1565
  }) }),
1560
- lr && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1566
+ ca && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1561
1567
  u && /* @__PURE__ */ e(
1562
1568
  Le,
1563
1569
  {
@@ -1565,31 +1571,31 @@ function Ha({
1565
1571
  "aria-label": u.placeholder ?? "Search",
1566
1572
  placeholder: u.placeholder ?? "Search...",
1567
1573
  value: u.value,
1568
- onChange: (a) => u.onChange(a.target.value),
1574
+ onChange: (r) => u.onChange(r.target.value),
1569
1575
  onClear: () => u.onChange(""),
1570
- leadingIcon: /* @__PURE__ */ e(gr, {}),
1576
+ leadingIcon: /* @__PURE__ */ e(wa, {}),
1571
1577
  containerClassName: "w-full sm:w-[280px]",
1572
1578
  className: "rounded-[6px] border-0 bg-surface shadow-xs ring-1 ring-line"
1573
1579
  }
1574
1580
  ),
1575
- v,
1581
+ x,
1576
1582
  h && /* @__PURE__ */ s(De, { children: [
1577
- /* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(
1583
+ /* @__PURE__ */ e(ue, { asChild: !0, children: /* @__PURE__ */ e(
1578
1584
  M,
1579
1585
  {
1580
1586
  variant: "secondary",
1581
1587
  size: "md",
1582
- leadingIcon: /* @__PURE__ */ e(xr, {}),
1583
- trailingIcon: /* @__PURE__ */ e(Rt, {}),
1588
+ leadingIcon: /* @__PURE__ */ e(Ca, {}),
1589
+ trailingIcon: /* @__PURE__ */ e(jt, {}),
1584
1590
  children: "Columns"
1585
1591
  }
1586
1592
  ) }),
1587
- /* @__PURE__ */ s(de, { align: "end", className: "w-54", children: [
1588
- /* @__PURE__ */ e(ce, { className: "text-[13px]", children: "Active columns" }),
1589
- X.map((a) => {
1590
- const d = Je(a);
1593
+ /* @__PURE__ */ s(me, { align: "end", className: "w-54", children: [
1594
+ /* @__PURE__ */ e(pe, { className: "text-[13px]", children: "Active columns" }),
1595
+ G.map((r) => {
1596
+ const d = Je(r);
1591
1597
  return /* @__PURE__ */ s(
1592
- Y,
1598
+ ee,
1593
1599
  {
1594
1600
  checked: !0,
1595
1601
  draggable: !d,
@@ -1598,53 +1604,53 @@ function Ha({
1598
1604
  p.preventDefault();
1599
1605
  return;
1600
1606
  }
1601
- p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", a.id), Ve(a.id);
1607
+ p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", r.id), Ve(r.id);
1602
1608
  },
1603
1609
  onDragOver: (p) => {
1604
- xe && (p.preventDefault(), Kt(xe, a.id));
1610
+ ve && (p.preventDefault(), ta(ve, r.id));
1605
1611
  },
1606
1612
  onDrop: (p) => p.preventDefault(),
1607
1613
  onDragEnd: () => Ve(null),
1608
1614
  onCheckedChange: (p) => {
1609
- !p && !d && qe((x) => ({ ...x, [a.id]: !0 }));
1615
+ !p && !d && qe((N) => ({ ...N, [r.id]: !0 }));
1610
1616
  },
1611
1617
  onSelect: (p) => p.preventDefault(),
1612
1618
  className: "justify-between",
1613
1619
  children: [
1614
- /* @__PURE__ */ e("span", { className: "truncate", children: a.header }),
1615
- d ? /* @__PURE__ */ e(vr, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
1616
- Nr,
1620
+ /* @__PURE__ */ e("span", { className: "truncate", children: r.header }),
1621
+ d ? /* @__PURE__ */ e(Sa, { className: "size-3.5 shrink-0 text-subtle", "aria-hidden": !0 }) : /* @__PURE__ */ e(
1622
+ za,
1617
1623
  {
1618
1624
  "aria-hidden": !0,
1619
1625
  className: i(
1620
1626
  "size-3.5 shrink-0",
1621
- xe === a.id ? "text-primary" : "text-subtle"
1627
+ ve === r.id ? "text-primary" : "text-subtle"
1622
1628
  )
1623
1629
  }
1624
1630
  )
1625
1631
  ]
1626
1632
  },
1627
- a.id
1633
+ r.id
1628
1634
  );
1629
1635
  }),
1630
1636
  Xe.length > 0 ? /* @__PURE__ */ s(Ie, { children: [
1631
1637
  /* @__PURE__ */ e(Pe, {}),
1632
- /* @__PURE__ */ e(ce, { className: "text-[13px]", children: "Available columns" }),
1633
- Xe.map((a) => /* @__PURE__ */ e(
1634
- Y,
1638
+ /* @__PURE__ */ e(pe, { className: "text-[13px]", children: "Available columns" }),
1639
+ Xe.map((r) => /* @__PURE__ */ e(
1640
+ ee,
1635
1641
  {
1636
1642
  checked: !1,
1637
- onCheckedChange: () => Qt(a.id),
1643
+ onCheckedChange: () => aa(r.id),
1638
1644
  onSelect: (d) => d.preventDefault(),
1639
- children: a.header
1645
+ children: r.header
1640
1646
  },
1641
- a.id
1647
+ r.id
1642
1648
  ))
1643
1649
  ] }) : null
1644
1650
  ] })
1645
1651
  ] }),
1646
1652
  c && c.length > 0 ? /* @__PURE__ */ s(De, { children: [
1647
- /* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(
1653
+ /* @__PURE__ */ e(ue, { asChild: !0, children: /* @__PURE__ */ e(
1648
1654
  M,
1649
1655
  {
1650
1656
  variant: "secondary",
@@ -1654,23 +1660,23 @@ function Ha({
1654
1660
  children: /* @__PURE__ */ e(it, {})
1655
1661
  }
1656
1662
  ) }),
1657
- /* @__PURE__ */ e(de, { align: "start", className: "w-54", children: c.map((a) => /* @__PURE__ */ e(
1658
- pe,
1663
+ /* @__PURE__ */ e(me, { align: "start", className: "w-54", children: c.map((r) => /* @__PURE__ */ e(
1664
+ be,
1659
1665
  {
1660
- onSelect: () => Ne(
1661
- (d) => d.includes(a.id) ? d : [...d, a.id]
1666
+ onSelect: () => ye(
1667
+ (d) => d.includes(r.id) ? d : [...d, r.id]
1662
1668
  ),
1663
- children: a.label
1669
+ children: r.label
1664
1670
  },
1665
- a.id
1671
+ r.id
1666
1672
  )) })
1667
1673
  ] }) : null,
1668
1674
  b ? /* @__PURE__ */ e("div", { className: "flex-0 sm:ml-auto", children: b }) : null
1669
1675
  ] }),
1670
- ye.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1671
- ye.map((a) => {
1676
+ we.length > 0 ? /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
1677
+ we.map((r) => {
1672
1678
  const d = () => {
1673
- a.onChange([]), Ne((p) => p.filter((x) => x !== a.id));
1679
+ r.onChange([]), ye((p) => p.filter((N) => N !== r.id));
1674
1680
  };
1675
1681
  return /* @__PURE__ */ s("div", { className: "inline-flex items-center", children: [
1676
1682
  /* @__PURE__ */ e(
@@ -1679,33 +1685,33 @@ function Ha({
1679
1685
  variant: "secondary",
1680
1686
  size: "md",
1681
1687
  iconOnly: !0,
1682
- "aria-label": `Remove ${a.label} filter`,
1688
+ "aria-label": `Remove ${r.label} filter`,
1683
1689
  className: "rounded-r-none",
1684
1690
  onClick: d,
1685
- children: /* @__PURE__ */ e(ue, {})
1691
+ children: /* @__PURE__ */ e(fe, {})
1686
1692
  }
1687
1693
  ),
1688
1694
  /* @__PURE__ */ s(De, { children: [
1689
- /* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ s(M, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1695
+ /* @__PURE__ */ e(ue, { asChild: !0, children: /* @__PURE__ */ s(M, { variant: "secondary", size: "md", className: "rounded-l-none pl-2", children: [
1690
1696
  /* @__PURE__ */ e(it, {}),
1691
- /* @__PURE__ */ e("span", { className: "font-medium", children: a.label }),
1697
+ /* @__PURE__ */ e("span", { className: "font-medium", children: r.label }),
1692
1698
  /* @__PURE__ */ e("span", { className: "h-4 w-px bg-line", "aria-hidden": !0 }),
1693
- /* @__PURE__ */ e("span", { className: "text-muted", children: a.value.length > 0 ? `${a.value.length} selected` : "Enter value" }),
1694
- /* @__PURE__ */ e(me, { className: "text-muted" })
1699
+ /* @__PURE__ */ e("span", { className: "text-muted", children: r.value.length > 0 ? `${r.value.length} selected` : "Enter value" }),
1700
+ /* @__PURE__ */ e(Y, { className: "text-muted" })
1695
1701
  ] }) }),
1696
- /* @__PURE__ */ s(de, { align: "start", className: "w-56", children: [
1697
- /* @__PURE__ */ s(ce, { className: "text-[13px]", children: [
1702
+ /* @__PURE__ */ s(me, { align: "start", className: "w-56", children: [
1703
+ /* @__PURE__ */ s(pe, { className: "text-[13px]", children: [
1698
1704
  "Filter by ",
1699
- a.label
1705
+ r.label
1700
1706
  ] }),
1701
- a.options.map((p) => {
1702
- const x = a.value.includes(p.value);
1707
+ r.options.map((p) => {
1708
+ const N = r.value.includes(p.value);
1703
1709
  return /* @__PURE__ */ e(
1704
- Y,
1710
+ ee,
1705
1711
  {
1706
- checked: x,
1707
- onCheckedChange: () => a.onChange(
1708
- x ? a.value.filter((z) => z !== p.value) : [...a.value, p.value]
1712
+ checked: N,
1713
+ onCheckedChange: () => r.onChange(
1714
+ N ? r.value.filter((z) => z !== p.value) : [...r.value, p.value]
1709
1715
  ),
1710
1716
  onSelect: (z) => z.preventDefault(),
1711
1717
  children: p.label
@@ -1714,68 +1720,68 @@ function Ha({
1714
1720
  );
1715
1721
  }),
1716
1722
  /* @__PURE__ */ e(Pe, {}),
1717
- /* @__PURE__ */ e(pe, { onSelect: d, children: "Clear filter" })
1723
+ /* @__PURE__ */ e(be, { onSelect: d, children: "Clear filter" })
1718
1724
  ] })
1719
1725
  ] })
1720
- ] }, a.id);
1726
+ ] }, r.id);
1721
1727
  }),
1722
1728
  /* @__PURE__ */ e(
1723
1729
  "button",
1724
1730
  {
1725
1731
  type: "button",
1726
1732
  onClick: () => {
1727
- for (const a of ye) a.onChange([]);
1728
- Ne([]);
1733
+ for (const r of we) r.onChange([]);
1734
+ ye([]);
1729
1735
  },
1730
1736
  className: "text-sm text-muted transition-colors hover:text-fg",
1731
1737
  children: "Clear filters"
1732
1738
  }
1733
1739
  )
1734
1740
  ] }) : null,
1735
- k,
1741
+ D,
1736
1742
  S && q.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: [
1737
1743
  /* @__PURE__ */ s("span", { className: "font-medium text-fg", children: [
1738
1744
  q.size,
1739
1745
  " selected"
1740
1746
  ] }),
1741
- /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (g ?? []).map((a) => /* @__PURE__ */ s(
1747
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: (g ?? []).map((r) => /* @__PURE__ */ s(
1742
1748
  M,
1743
1749
  {
1744
1750
  size: "md",
1745
- variant: a.variant ?? "outline",
1746
- disabled: a.disabled,
1747
- onClick: () => void a.onRun(rr),
1751
+ variant: r.variant ?? "outline",
1752
+ disabled: r.disabled,
1753
+ onClick: () => void r.onRun(oa),
1748
1754
  children: [
1749
- a.icon,
1750
- a.label
1755
+ r.icon,
1756
+ r.label
1751
1757
  ]
1752
1758
  },
1753
- a.label
1759
+ r.label
1754
1760
  )) }),
1755
1761
  /* @__PURE__ */ s(
1756
1762
  "button",
1757
1763
  {
1758
1764
  type: "button",
1759
- onClick: () => ve(/* @__PURE__ */ new Set()),
1765
+ onClick: () => Ne(/* @__PURE__ */ new Set()),
1760
1766
  className: "ml-auto inline-flex items-center gap-1 text-xs text-muted hover:text-fg",
1761
1767
  children: [
1762
- /* @__PURE__ */ e(ue, { className: "size-3.5" }),
1768
+ /* @__PURE__ */ e(fe, { className: "size-3.5" }),
1763
1769
  "Clear"
1764
1770
  ]
1765
1771
  }
1766
1772
  )
1767
1773
  ] }),
1768
1774
  /* @__PURE__ */ e(
1769
- be,
1775
+ ge,
1770
1776
  {
1771
1777
  scrollMode: "panel",
1772
1778
  headerContentRef: Ze,
1773
- action: $t,
1774
- tone: At,
1775
- title: Bt,
1776
- description: Ft,
1777
- headerClassName: qt,
1778
- panelClassName: Gt,
1779
+ action: Gt,
1780
+ tone: Ft,
1781
+ title: $t,
1782
+ description: qt,
1783
+ headerClassName: Ht,
1784
+ panelClassName: Vt,
1779
1785
  header: (
1780
1786
  // Visible header band. Presentational (aria-sort lives on the body's
1781
1787
  // sr-only thead); widths are pinned to the measured body columns and
@@ -1793,65 +1799,66 @@ function Ha({
1793
1799
  visibility: K > 0 ? void 0 : "hidden"
1794
1800
  },
1795
1801
  children: [
1796
- /* @__PURE__ */ e("colgroup", { children: H.map((a, d) => /* @__PURE__ */ e("col", { style: { width: a } }, d)) }),
1802
+ /* @__PURE__ */ e("colgroup", { children: V.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
1797
1803
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ s("tr", { children: [
1798
1804
  S && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-11 px-(--table-pad-x) text-left align-middle", children: /* @__PURE__ */ e(
1799
1805
  Te,
1800
1806
  {
1801
1807
  "aria-label": "Select all rows",
1802
- checked: Ke ? !0 : tr ? "indeterminate" : !1,
1803
- onCheckedChange: ar
1808
+ checked: Ke ? !0 : ia ? "indeterminate" : !1,
1809
+ onCheckedChange: sa
1804
1810
  }
1805
1811
  ) }),
1806
- X.map((a) => /* @__PURE__ */ e(
1812
+ I && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-9 px-1.5" }),
1813
+ G.map((r) => /* @__PURE__ */ e(
1807
1814
  "th",
1808
1815
  {
1809
- className: i(ga, a.align === "right" && "text-right", a.className),
1816
+ className: i(wr, r.align === "right" && "text-right", r.className),
1810
1817
  children: /* @__PURE__ */ e(
1811
1818
  "span",
1812
1819
  {
1813
1820
  "data-col-sizer": !0,
1814
1821
  className: "inline-block whitespace-nowrap px-(--table-pad-x) -mx-(--table-pad-x)",
1815
- children: a.sortable ? /* @__PURE__ */ s(
1822
+ children: r.sortable ? /* @__PURE__ */ s(
1816
1823
  M,
1817
1824
  {
1818
1825
  type: "button",
1819
1826
  variant: "ghost",
1820
1827
  size: "xs",
1821
- "aria-label": `Sort by ${a.header}`,
1822
- onClick: () => er(a),
1828
+ "aria-label": `Sort by ${r.header}`,
1829
+ onClick: () => la(r),
1823
1830
  className: i(
1824
1831
  "h-auto gap-1.5 rounded-none px-0 py-0 text-[0.8125rem] text-table-header transition-colors [&_svg]:size-3.5",
1825
1832
  "hover:bg-transparent hover:text-table-header-active hover:shadow-none",
1826
1833
  "active:scale-100 active:bg-transparent active:shadow-none",
1827
- (w == null ? void 0 : w.id) === a.id && "text-table-header-active"
1834
+ (w == null ? void 0 : w.id) === r.id && "text-table-header-active"
1828
1835
  ),
1829
1836
  children: [
1830
- a.header,
1831
- (w == null ? void 0 : w.id) === a.id ? w.dir === "asc" ? /* @__PURE__ */ e(wr, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(me, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Cr, { className: "size-3.5 opacity-50" })
1837
+ r.header,
1838
+ (w == null ? void 0 : w.id) === r.id ? w.dir === "asc" ? /* @__PURE__ */ e(Da, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Y, { className: "size-3.5", weight: "bold" }) : /* @__PURE__ */ e(Ta, { className: "size-3.5 opacity-50" })
1832
1839
  ]
1833
1840
  }
1834
- ) : a.header
1841
+ ) : r.header
1835
1842
  }
1836
1843
  )
1837
1844
  },
1838
- a.id
1845
+ r.id
1839
1846
  )),
1840
- I && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1847
+ j && /* @__PURE__ */ e("th", { className: "h-(--table-header-h) w-44 px-4 align-middle", children: /* @__PURE__ */ e("span", { className: "sr-only", children: "Actions" }) })
1841
1848
  ] }) })
1842
1849
  ]
1843
1850
  }
1844
1851
  )
1845
1852
  ),
1846
- children: /* @__PURE__ */ e("div", { ref: et, className: "overflow-x-auto", onScroll: Ce, children: l ? /* @__PURE__ */ e("div", { className: "space-y-2 p-4", children: [0, 1, 2].map((a) => /* @__PURE__ */ e("div", { className: "h-11 w-full animate-pulse rounded-lg bg-table-row-hover" }, a)) }) : o ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1847
- /* @__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(yr, { weight: "duotone" }) }),
1853
+ children: /* @__PURE__ */ e("div", { ref: et, className: "overflow-x-auto", onScroll: Se, 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)) }) : o ? /* @__PURE__ */ s("div", { className: "flex min-h-88 flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1854
+ /* @__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(ka, { weight: "duotone" }) }),
1848
1855
  /* @__PURE__ */ s("div", { className: "space-y-2", children: [
1849
1856
  /* @__PURE__ */ e("p", { className: "text-[1.75rem] font-semibold text-table-header-active", children: o.title }),
1850
1857
  o.description ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-md text-base leading-relaxed text-table-muted", children: o.description }) : null
1851
1858
  ] }),
1852
1859
  o.action
1853
- ] }) : B.length === 0 ? /* @__PURE__ */ e(
1854
- ha,
1860
+ ] }) : F.length === 0 ? /* @__PURE__ */ e(
1861
+ yr,
1855
1862
  {
1856
1863
  icon: m == null ? void 0 : m.icon,
1857
1864
  title: (m == null ? void 0 : m.title) ?? "No results",
@@ -1869,74 +1876,106 @@ function Ha({
1869
1876
  // Measured: fill the container, pinned to the band's colgroup
1870
1877
  // pixel widths; minWidth forces the shared scroller open only
1871
1878
  // when the columns need more room than the container has.
1872
- H.length > 0 ? "w-full table-fixed" : "table-auto"
1879
+ V.length > 0 ? "w-full table-fixed" : "table-auto"
1873
1880
  ),
1874
1881
  style: { minWidth: K > 0 ? K : void 0 },
1875
1882
  children: [
1876
- H.length > 0 && /* @__PURE__ */ e("colgroup", { children: H.map((a, d) => /* @__PURE__ */ e("col", { style: { width: a } }, d)) }),
1883
+ V.length > 0 && /* @__PURE__ */ e("colgroup", { children: V.map((r, d) => /* @__PURE__ */ e("col", { style: { width: r } }, d)) }),
1877
1884
  /* @__PURE__ */ e("thead", { className: "sr-only", children: /* @__PURE__ */ s("tr", { children: [
1878
1885
  S && /* @__PURE__ */ e("th", { scope: "col", children: "Select" }),
1879
- X.map((a) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": ir(a), children: a.header }, a.id)),
1880
- I && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1886
+ I && /* @__PURE__ */ e("th", { scope: "col", children: "Details" }),
1887
+ G.map((r) => /* @__PURE__ */ e("th", { scope: "col", "aria-sort": ua(r), children: r.header }, r.id)),
1888
+ j && /* @__PURE__ */ e("th", { scope: "col", children: "Actions" })
1881
1889
  ] }) }),
1882
- /* @__PURE__ */ e(qr, { children: B.map((a) => {
1883
- const d = n(a), p = q.has(d);
1884
- return /* @__PURE__ */ s(
1885
- Gr,
1886
- {
1887
- "data-state": p ? "selected" : void 0,
1888
- onClick: j ? () => j(a) : void 0,
1889
- className: j ? "cursor-pointer" : void 0,
1890
- children: [
1891
- S && /* @__PURE__ */ e(ke, { className: "w-11", onClick: (x) => x.stopPropagation(), children: /* @__PURE__ */ e(
1892
- Te,
1893
- {
1894
- "aria-label": "Select row",
1895
- checked: p,
1896
- onCheckedChange: () => nr(d)
1897
- }
1898
- ) }),
1899
- X.map((x) => /* @__PURE__ */ e(
1900
- ke,
1901
- {
1902
- "data-numeric": x.numeric ? "" : void 0,
1903
- className: i(x.align === "right" && "text-right", x.className),
1904
- children: x.cell(a)
1905
- },
1906
- x.id
1907
- )),
1908
- I && /* @__PURE__ */ e(
1909
- ke,
1910
- {
1911
- className: "w-44 px-4 text-right",
1912
- onClick: (x) => {
1913
- x.target.closest("button, a, input, [role='menuitem']") && x.stopPropagation();
1890
+ /* @__PURE__ */ e(Ua, { children: F.map((r) => {
1891
+ const d = n(r), p = q.has(d), N = Kt.has(d), z = G.length + (S ? 1 : 0) + (I ? 1 : 0) + (j ? 1 : 0);
1892
+ return /* @__PURE__ */ s(Ia, { children: [
1893
+ /* @__PURE__ */ s(
1894
+ dt,
1895
+ {
1896
+ "data-state": p ? "selected" : void 0,
1897
+ onClick: A ? () => A(r) : void 0,
1898
+ className: A ? "cursor-pointer" : void 0,
1899
+ children: [
1900
+ S && /* @__PURE__ */ e(Q, { className: "w-11", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
1901
+ Te,
1902
+ {
1903
+ "aria-label": "Select row",
1904
+ checked: p,
1905
+ onCheckedChange: () => da(d)
1906
+ }
1907
+ ) }),
1908
+ I && /* @__PURE__ */ e(Q, { className: "w-9 px-1.5", onClick: (C) => C.stopPropagation(), children: /* @__PURE__ */ e(
1909
+ M,
1910
+ {
1911
+ type: "button",
1912
+ variant: "ghost",
1913
+ size: "icon",
1914
+ className: "size-7",
1915
+ "aria-label": N ? "Collapse row" : "Expand row",
1916
+ "aria-expanded": N,
1917
+ onClick: () => Yt(d),
1918
+ children: /* @__PURE__ */ e(
1919
+ Y,
1920
+ {
1921
+ className: i(
1922
+ "size-3.5 text-muted transition-transform motion-safe:duration-200",
1923
+ N ? "" : "-rotate-90"
1924
+ ),
1925
+ weight: "bold"
1926
+ }
1927
+ )
1928
+ }
1929
+ ) }),
1930
+ G.map((C) => /* @__PURE__ */ e(
1931
+ Q,
1932
+ {
1933
+ "data-numeric": C.numeric ? "" : void 0,
1934
+ className: i(C.align === "right" && "text-right", C.className),
1935
+ children: C.cell(r)
1914
1936
  },
1915
- children: I(a)
1916
- }
1917
- )
1918
- ]
1919
- },
1920
- d
1921
- );
1937
+ C.id
1938
+ )),
1939
+ j && /* @__PURE__ */ e(
1940
+ Q,
1941
+ {
1942
+ className: "w-44 px-4 text-right",
1943
+ onClick: (C) => {
1944
+ C.target.closest("button, a, input, [role='menuitem']") && C.stopPropagation();
1945
+ },
1946
+ children: j(r)
1947
+ }
1948
+ )
1949
+ ]
1950
+ }
1951
+ ),
1952
+ I && N ? /* @__PURE__ */ e(dt, { className: "hover:bg-inherit", "data-expanded": "", children: /* @__PURE__ */ e(
1953
+ Q,
1954
+ {
1955
+ colSpan: z,
1956
+ className: "border-t border-line bg-elevated/60 px-(--table-pad-x) py-3 align-top text-[13px] text-muted",
1957
+ children: I(r)
1958
+ }
1959
+ ) }) : null
1960
+ ] }, d);
1922
1961
  }) })
1923
1962
  ]
1924
1963
  }
1925
1964
  ) })
1926
1965
  }
1927
1966
  ),
1928
- Zt && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1967
+ na && /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3 text-sm", children: [
1929
1968
  /* @__PURE__ */ s("span", { className: "text-muted", children: [
1930
- le + 1,
1969
+ se + 1,
1931
1970
  "–",
1932
- Math.min(le + A, G.length),
1971
+ Math.min(se + B, H.length),
1933
1972
  " of ",
1934
- G.length
1973
+ H.length
1935
1974
  ] }),
1936
1975
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
1937
- /* @__PURE__ */ s(_t, { value: String(A), onValueChange: (a) => Ut(Number(a)), children: [
1976
+ /* @__PURE__ */ s(Lt, { value: String(B), onValueChange: (r) => Jt(Number(r)), children: [
1938
1977
  /* @__PURE__ */ e(Be, { "aria-label": "Rows per page", className: "w-27.5", variant: "inline", children: /* @__PURE__ */ e(Et, {}) }),
1939
- /* @__PURE__ */ e(Fe, { children: re.map((a) => /* @__PURE__ */ e(he, { value: String(a), children: a }, a)) })
1978
+ /* @__PURE__ */ e(Fe, { children: At.map((r) => /* @__PURE__ */ e(xe, { value: String(r), children: r }, r)) })
1940
1979
  ] }),
1941
1980
  /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
1942
1981
  /* @__PURE__ */ e(
@@ -1945,9 +1984,9 @@ function Ha({
1945
1984
  variant: "secondary",
1946
1985
  size: "icon",
1947
1986
  "aria-label": "Previous page",
1948
- disabled: U <= 0,
1949
- onClick: () => ae((a) => Math.max(0, a - 1)),
1950
- children: /* @__PURE__ */ e(Sr, {})
1987
+ disabled: X <= 0,
1988
+ onClick: () => ie((r) => Math.max(0, r - 1)),
1989
+ children: /* @__PURE__ */ e(Ma, {})
1951
1990
  }
1952
1991
  ),
1953
1992
  /* @__PURE__ */ e(
@@ -1956,9 +1995,9 @@ function Ha({
1956
1995
  variant: "secondary",
1957
1996
  size: "icon",
1958
1997
  "aria-label": "Next page",
1959
- disabled: U >= J - 1,
1960
- onClick: () => ae((a) => Math.min(J - 1, a + 1)),
1961
- children: /* @__PURE__ */ e(ft, {})
1998
+ disabled: X >= J - 1,
1999
+ onClick: () => ie((r) => Math.min(J - 1, r + 1)),
2000
+ children: /* @__PURE__ */ e(bt, {})
1962
2001
  }
1963
2002
  )
1964
2003
  ] })
@@ -1966,47 +2005,47 @@ function Ha({
1966
2005
  ] })
1967
2006
  ] });
1968
2007
  }
1969
- function Va({ icon: t, title: r, description: n, action: l, className: o }) {
1970
- return /* @__PURE__ */ e(be, { className: o, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
2008
+ function Jr({ icon: t, title: a, description: n, action: l, className: o }) {
2009
+ return /* @__PURE__ */ e(ge, { className: o, children: /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center gap-4 px-6 py-16 text-center", children: [
1971
2010
  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,
1972
2011
  /* @__PURE__ */ s("div", { className: "space-y-1", children: [
1973
- /* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: r }),
2012
+ /* @__PURE__ */ e("p", { className: "text-sm font-medium text-fg", children: a }),
1974
2013
  n ? /* @__PURE__ */ e("p", { className: "mx-auto max-w-sm text-sm text-muted", children: n }) : null
1975
2014
  ] }),
1976
2015
  l
1977
2016
  ] }) });
1978
2017
  }
1979
- const va = f(
2018
+ const Sr = f(
1980
2019
  ({
1981
2020
  className: t,
1982
- inputClassName: r,
2021
+ inputClassName: a,
1983
2022
  selectClassName: n,
1984
2023
  selectValue: l,
1985
2024
  onSelectChange: o,
1986
2025
  selectOptions: m,
1987
2026
  selectAriaLabel: u,
1988
2027
  selectPlaceholder: c,
1989
- id: v,
2028
+ id: x,
1990
2029
  size: b,
1991
2030
  disabled: h,
1992
2031
  ...y
1993
- }, C) => /* @__PURE__ */ s("div", { className: i("flex w-full items-stretch", t), children: [
2032
+ }, k) => /* @__PURE__ */ s("div", { className: i("flex w-full items-stretch", t), children: [
1994
2033
  /* @__PURE__ */ e(
1995
2034
  Le,
1996
2035
  {
1997
2036
  ...y,
1998
- ref: C,
1999
- id: v,
2037
+ ref: k,
2038
+ id: x,
2000
2039
  size: b,
2001
2040
  disabled: h,
2002
2041
  className: i(
2003
2042
  "min-w-0 rounded-l-(--control-radius) rounded-r-none",
2004
- r
2043
+ a
2005
2044
  )
2006
2045
  }
2007
2046
  ),
2008
2047
  /* @__PURE__ */ s(
2009
- _t,
2048
+ Lt,
2010
2049
  {
2011
2050
  value: l,
2012
2051
  onValueChange: o,
@@ -2024,14 +2063,14 @@ const va = f(
2024
2063
  children: /* @__PURE__ */ e(Et, { placeholder: c })
2025
2064
  }
2026
2065
  ),
2027
- /* @__PURE__ */ e(Fe, { children: m.map((N) => /* @__PURE__ */ e(he, { value: N.value, children: N.label }, N.value)) })
2066
+ /* @__PURE__ */ e(Fe, { children: m.map((v) => /* @__PURE__ */ e(xe, { value: v.value, children: v.label }, v.value)) })
2028
2067
  ]
2029
2068
  }
2030
2069
  )
2031
2070
  ] })
2032
2071
  );
2033
- va.displayName = "InputSelect";
2034
- function Wa({ className: t, ...r }) {
2072
+ Sr.displayName = "InputSelect";
2073
+ function Kr({ className: t, ...a }) {
2035
2074
  return /* @__PURE__ */ e(
2036
2075
  "kbd",
2037
2076
  {
@@ -2039,31 +2078,31 @@ function Wa({ className: t, ...r }) {
2039
2078
  "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",
2040
2079
  t
2041
2080
  ),
2042
- ...r
2081
+ ...a
2043
2082
  }
2044
2083
  );
2045
2084
  }
2046
- const Na = f(({ className: t, ...r }, n) => /* @__PURE__ */ e(
2047
- Mr.Root,
2085
+ const zr = f(({ className: t, ...a }, n) => /* @__PURE__ */ e(
2086
+ Ea.Root,
2048
2087
  {
2049
2088
  ref: n,
2050
2089
  className: i(
2051
2090
  "mb-2.5 block text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
2052
2091
  t
2053
2092
  ),
2054
- ...r
2093
+ ...a
2055
2094
  }
2056
2095
  ));
2057
- Na.displayName = "Label";
2058
- function Oa({
2096
+ zr.displayName = "Label";
2097
+ function Qr({
2059
2098
  value: t,
2060
- onValueChange: r,
2099
+ onValueChange: a,
2061
2100
  options: n,
2062
2101
  size: l = "sm",
2063
2102
  className: o,
2064
2103
  ...m
2065
2104
  }) {
2066
- const u = fe();
2105
+ const u = he();
2067
2106
  return /* @__PURE__ */ e(
2068
2107
  "div",
2069
2108
  {
@@ -2075,7 +2114,7 @@ function Oa({
2075
2114
  o
2076
2115
  ),
2077
2116
  children: n.map((c) => {
2078
- const v = c.value === t;
2117
+ const x = c.value === t;
2079
2118
  return /* @__PURE__ */ s(
2080
2119
  "label",
2081
2120
  {
@@ -2083,7 +2122,7 @@ function Oa({
2083
2122
  "inline-flex h-full cursor-pointer items-center justify-center gap-1.5 rounded-md text-sm font-medium transition-colors",
2084
2123
  "has-focus-visible:ring-2 has-focus-visible:ring-focus/40",
2085
2124
  l === "sm" ? "px-(--control-pad-x-sm) [&_svg]:size-(--control-icon-sm)" : "px-(--control-pad-x-md) [&_svg]:size-(--control-icon-md)",
2086
- v ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
2125
+ x ? "btn-fill bg-(--button-secondary-bg) text-fg" : "text-muted hover:text-fg"
2087
2126
  ),
2088
2127
  children: [
2089
2128
  /* @__PURE__ */ e(
@@ -2092,8 +2131,8 @@ function Oa({
2092
2131
  type: "radio",
2093
2132
  name: u,
2094
2133
  value: c.value,
2095
- checked: v,
2096
- onChange: () => r(c.value),
2134
+ checked: x,
2135
+ onChange: () => a(c.value),
2097
2136
  className: "sr-only"
2098
2137
  }
2099
2138
  ),
@@ -2107,35 +2146,35 @@ function Oa({
2107
2146
  }
2108
2147
  );
2109
2148
  }
2110
- const ya = f(({ className: t, orientation: r = "horizontal", decorative: n = !0, ...l }, o) => /* @__PURE__ */ e(
2111
- Pr.Root,
2149
+ const kr = f(({ className: t, orientation: a = "horizontal", decorative: n = !0, ...l }, o) => /* @__PURE__ */ e(
2150
+ La.Root,
2112
2151
  {
2113
2152
  ref: o,
2114
2153
  decorative: n,
2115
- orientation: r,
2154
+ orientation: a,
2116
2155
  className: i(
2117
2156
  "shrink-0 bg-line",
2118
- r === "horizontal" ? "h-px w-full" : "h-full w-px",
2157
+ a === "horizontal" ? "h-px w-full" : "h-full w-px",
2119
2158
  t
2120
2159
  ),
2121
2160
  ...l
2122
2161
  }
2123
2162
  ));
2124
- ya.displayName = "Separator";
2125
- function Ua({ className: t, ...r }) {
2163
+ kr.displayName = "Separator";
2164
+ function Yr({ className: t, ...a }) {
2126
2165
  return /* @__PURE__ */ e(
2127
2166
  "div",
2128
2167
  {
2129
2168
  className: i("animate-pulse rounded-md bg-elevated", t),
2130
- ...r
2169
+ ...a
2131
2170
  }
2132
2171
  );
2133
2172
  }
2134
- const Xa = Z.Provider, Ja = Z.Root, Ka = Z.Trigger, wa = f(({ className: t, sideOffset: r = 6, ...n }, l) => /* @__PURE__ */ e(Z.Portal, { children: /* @__PURE__ */ e(
2135
- Z.Content,
2173
+ const Zr = te.Provider, en = te.Root, tn = te.Trigger, Dr = f(({ className: t, sideOffset: a = 6, ...n }, l) => /* @__PURE__ */ e(te.Portal, { children: /* @__PURE__ */ e(
2174
+ te.Content,
2136
2175
  {
2137
2176
  ref: l,
2138
- sideOffset: r,
2177
+ sideOffset: a,
2139
2178
  className: i(
2140
2179
  "z-50 overflow-hidden rounded-md border border-line bg-elevated px-2 py-1 text-xs text-fg shadow-md",
2141
2180
  "data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
@@ -2149,83 +2188,83 @@ const Xa = Z.Provider, Ja = Z.Root, Ka = Z.Trigger, wa = f(({ className: t, side
2149
2188
  ...n
2150
2189
  }
2151
2190
  ) }));
2152
- wa.displayName = "TooltipContent";
2191
+ Dr.displayName = "TooltipContent";
2153
2192
  export {
2154
- Pa as AgentPrompt,
2155
- xt as Avatar,
2156
- Nt as AvatarFallback,
2157
- vt as AvatarImage,
2158
- Ar as Badge,
2193
+ Er as AgentPrompt,
2194
+ vt as Avatar,
2195
+ yt as AvatarFallback,
2196
+ Nt as AvatarImage,
2197
+ Ha as Badge,
2159
2198
  M as Button,
2160
- Ia as Callout,
2161
- Ur as Card,
2162
- Kr as CardContent,
2163
- Jr as CardDescription,
2164
- Qr as CardFooter,
2165
- yt as CardHeader,
2166
- Xr as CardTitle,
2199
+ Lr as Callout,
2200
+ Ya as Card,
2201
+ tr as CardContent,
2202
+ er as CardDescription,
2203
+ ar as CardFooter,
2204
+ wt as CardHeader,
2205
+ Za as CardTitle,
2167
2206
  Te as Checkbox,
2168
- La as ChoiceDialog,
2169
- Aa as CodeBlock,
2170
- Ha as DataTable,
2171
- Ga as DataTableIdentity,
2172
- ra as Dialog,
2173
- la as DialogBody,
2174
- zt as DialogCancel,
2175
- _a as DialogClose,
2176
- Tt as DialogContent,
2177
- sa as DialogDescription,
2178
- oa as DialogFooter,
2179
- ia as DialogHeader,
2180
- na as DialogPanel,
2181
- Mt as DialogTitle,
2207
+ qr as ChoiceDialog,
2208
+ Gr as CodeBlock,
2209
+ Xr as DataTable,
2210
+ Ur as DataTableIdentity,
2211
+ or as Dialog,
2212
+ cr as DialogBody,
2213
+ Dt as DialogCancel,
2214
+ $r as DialogClose,
2215
+ Mt as DialogContent,
2216
+ pr as DialogDescription,
2217
+ mr as DialogFooter,
2218
+ ur as DialogHeader,
2219
+ dr as DialogPanel,
2220
+ Pt as DialogTitle,
2182
2221
  kt as DialogTrigger,
2183
2222
  De as DropdownMenu,
2184
- Y as DropdownMenuCheckboxItem,
2185
- Rt as DropdownMenuChevron,
2186
- de as DropdownMenuContent,
2187
- Ba as DropdownMenuGroup,
2188
- pe as DropdownMenuItem,
2189
- ce as DropdownMenuLabel,
2190
- Fa as DropdownMenuPortal,
2223
+ ee as DropdownMenuCheckboxItem,
2224
+ jt as DropdownMenuChevron,
2225
+ me as DropdownMenuContent,
2226
+ Hr as DropdownMenuGroup,
2227
+ be as DropdownMenuItem,
2228
+ pe as DropdownMenuLabel,
2229
+ Vr as DropdownMenuPortal,
2191
2230
  Pe as DropdownMenuSeparator,
2192
- $a as DropdownMenuSub,
2193
- fa as DropdownMenuSubContent,
2194
- jt as DropdownMenuSubTrigger,
2195
- se as DropdownMenuTrigger,
2196
- Va as EmptyState,
2231
+ Wr as DropdownMenuSub,
2232
+ vr as DropdownMenuSubContent,
2233
+ _t as DropdownMenuSubTrigger,
2234
+ ue as DropdownMenuTrigger,
2235
+ Jr as EmptyState,
2197
2236
  Le as Input,
2198
- va as InputSelect,
2199
- Wa as Kbd,
2200
- Na as Label,
2201
- ca as RadioCard,
2202
- da as RadioGroup,
2203
- Oa as Segmented,
2204
- _t as Select,
2237
+ Sr as InputSelect,
2238
+ Kr as Kbd,
2239
+ zr as Label,
2240
+ br as RadioCard,
2241
+ fr as RadioGroup,
2242
+ Qr as Segmented,
2243
+ Lt as Select,
2205
2244
  Fe as SelectContent,
2206
- qa as SelectGroup,
2207
- he as SelectItem,
2208
- ba as SelectLabel,
2245
+ Or as SelectGroup,
2246
+ xe as SelectItem,
2247
+ Nr as SelectLabel,
2209
2248
  Be as SelectTrigger,
2210
2249
  Et as SelectValue,
2211
- ya as Separator,
2212
- Ua as Skeleton,
2213
- Rr as Spinner,
2214
- Ra as Table,
2215
- qr as TableBody,
2216
- ke as TableCell,
2217
- Fr as TableContainer,
2218
- ha as TableEmptyState,
2219
- Ea as TableHead,
2220
- ja as TableHeader,
2221
- $r as TablePanel,
2222
- Gr as TableRow,
2223
- be as TableSurface,
2224
- Ja as Tooltip,
2225
- wa as TooltipContent,
2226
- Xa as TooltipProvider,
2227
- Ka as TooltipTrigger,
2228
- _r as badgeVariants,
2229
- jr as buttonVariants
2250
+ kr as Separator,
2251
+ Yr as Skeleton,
2252
+ Ba as Spinner,
2253
+ Ar as Table,
2254
+ Ua as TableBody,
2255
+ Q as TableCell,
2256
+ Wa as TableContainer,
2257
+ yr as TableEmptyState,
2258
+ Fr as TableHead,
2259
+ Br as TableHeader,
2260
+ Oa as TablePanel,
2261
+ dt as TableRow,
2262
+ ge as TableSurface,
2263
+ en as Tooltip,
2264
+ Dr as TooltipContent,
2265
+ Zr as TooltipProvider,
2266
+ tn as TooltipTrigger,
2267
+ qa as badgeVariants,
2268
+ Fa as buttonVariants
2230
2269
  };
2231
2270
  //# sourceMappingURL=index.js.map