@jinaan/uikit 0.1.29 → 0.1.30

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