@dinofront/design_system 1.15.5 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { Children as e, Fragment as t, cloneElement as n, createContext as r, createElement as i, forwardRef as a, isValidElement as o, useCallback as s, useContext as c, useEffect as l, useId as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
2
- import { AlertCircle as h, AlertTriangle as g, ArrowDown as _, ArrowUp as v, Calendar as y, Check as b, CheckCircle2 as x, ChevronDown as S, ChevronLeft as C, ChevronRight as w, ChevronsUpDown as T, CircleCheck as E, CircleX as D, Columns3 as O, Construction as k, Copy as ee, Download as A, EyeOff as j, File as te, GripVertical as ne, Info as M, Loader2 as N, Menu as P, Minus as F, Monitor as I, Moon as L, MoreHorizontal as R, MoreVertical as re, Paperclip as ie, Pencil as ae, Pin as oe, PinOff as se, Plus as ce, RefreshCw as z, Search as le, SearchX as ue, Smartphone as de, Sparkles as B, Sun as fe, Tablet as pe, TabletSmartphone as me, Trash2 as he, UploadCloud as V, User as ge, X as H, XCircle as _e } from "lucide-react";
3
- import { clsx as U } from "clsx";
4
- import { extendTailwindMerge as ve } from "tailwind-merge";
5
- import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
6
- import { createPortal as ye } from "react-dom";
7
- import { Controller as be, useFieldArray as xe, useForm as Se } from "react-hook-form";
8
- import { yupResolver as Ce } from "@hookform/resolvers/yup";
9
- import we, { components as Te } from "react-select";
2
+ import { AlertCircle as h, AlertTriangle as g, ArrowDown as _, ArrowUp as v, Calendar as y, Check as b, CheckCircle2 as x, ChevronDown as S, ChevronLeft as C, ChevronRight as w, ChevronsUpDown as T, CircleCheck as E, CircleX as D, Columns3 as O, Construction as k, Copy as ee, Download as A, EyeOff as j, File as te, GripVertical as ne, Info as M, Loader2 as N, Menu as P, Minus as F, Monitor as I, Moon as re, MoreHorizontal as L, MoreVertical as ie, Paperclip as ae, Pencil as oe, Pin as se, PinOff as ce, Plus as le, RefreshCw as R, Search as ue, SearchX as de, Smartphone as fe, Sparkles as z, Sun as pe, Tablet as me, TabletSmartphone as he, Trash2 as ge, UploadCloud as B, User as _e, X as V, XCircle as ve } from "lucide-react";
3
+ import { clsx as H } from "clsx";
4
+ import { extendTailwindMerge as ye } from "tailwind-merge";
5
+ import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
6
+ import { createPortal as be } from "react-dom";
7
+ import { Controller as xe, useFieldArray as Se, useForm as Ce } from "react-hook-form";
8
+ import { yupResolver as we } from "@hookform/resolvers/yup";
9
+ import Te, { components as K } from "react-select";
10
10
  import Ee from "react-select/async";
11
11
  import De from "react-select/creatable";
12
12
  import Oe from "react-select/async-creatable";
@@ -16,7 +16,7 @@ import { DndContext as Ie, KeyboardSensor as q, PointerSensor as Le, closestCent
16
16
  import { SortableContext as Ve, arrayMove as He, horizontalListSortingStrategy as J, sortableKeyboardCoordinates as Y, useSortable as X } from "@dnd-kit/sortable";
17
17
  import { CSS as Ue } from "@dnd-kit/utilities";
18
18
  //#region src/lib/cn.ts
19
- var We = ve({ extend: { theme: { text: [
19
+ var We = ye({ extend: { theme: { text: [
20
20
  "h-xl",
21
21
  "h-lg",
22
22
  "h-md",
@@ -36,7 +36,7 @@ var We = ve({ extend: { theme: { text: [
36
36
  "label-xxs"
37
37
  ] } } });
38
38
  function Z(...e) {
39
- return We(U(e));
39
+ return We(H(e));
40
40
  }
41
41
  //#endregion
42
42
  //#region src/components/Divider/Divider.tsx
@@ -52,7 +52,7 @@ var Ge = {
52
52
  strong: "border-border-strong",
53
53
  brand: "border-border-brand"
54
54
  }, Je = a(function({ orientation: e = "horizontal", variant: t = "solid", color: n = "default", className: r, dataTestId: i, ...a }, o) {
55
- return /* @__PURE__ */ G("div", {
55
+ return /* @__PURE__ */ W("div", {
56
56
  ref: o,
57
57
  role: "separator",
58
58
  "aria-orientation": e,
@@ -71,7 +71,7 @@ function $e(e) {
71
71
  }
72
72
  var Q = a(function({ type: e = "single", defaultValue: t, value: n, onValueChange: r, animated: i = !0, showDivider: a = !1, className: o, children: s, dataTestId: c, ...l }, u) {
73
73
  let [d, f] = m(() => $e(t)), p = n !== void 0, h = p ? $e(n) : d;
74
- return /* @__PURE__ */ G(Ze.Provider, {
74
+ return /* @__PURE__ */ W(Ze.Provider, {
75
75
  value: {
76
76
  openValues: h,
77
77
  toggle: (t) => {
@@ -81,7 +81,7 @@ var Q = a(function({ type: e = "single", defaultValue: t, value: n, onValueChang
81
81
  animated: i,
82
82
  showDivider: a
83
83
  },
84
- children: /* @__PURE__ */ G("div", {
84
+ children: /* @__PURE__ */ W("div", {
85
85
  ref: u,
86
86
  "data-test-id": c,
87
87
  className: Z("flex flex-col divide-y divide-border-default border border-border-default rounded-lg overflow-hidden bg-bg-default", o),
@@ -90,14 +90,14 @@ var Q = a(function({ type: e = "single", defaultValue: t, value: n, onValueChang
90
90
  })
91
91
  });
92
92
  }), et = a(function({ value: e, title: t, icon: n, disabled: r, className: i, children: a, dataTestId: o, ...s }, c) {
93
- let { openValues: l, toggle: d, animated: f, showDivider: p } = Qe(), m = Xe(l, e), h = u(), g = u(), _ = /* @__PURE__ */ K(W, { children: [p && /* @__PURE__ */ G(Je, { className: "mb-4" }), a] });
94
- return /* @__PURE__ */ K("div", {
93
+ let { openValues: l, toggle: d, animated: f, showDivider: p } = Qe(), m = Xe(l, e), h = u(), g = u(), _ = /* @__PURE__ */ G(U, { children: [p && /* @__PURE__ */ W(Je, { className: "mb-4" }), a] });
94
+ return /* @__PURE__ */ G("div", {
95
95
  ref: c,
96
96
  "data-test-id": o,
97
97
  "data-state": m ? "open" : "closed",
98
98
  className: Z("group", i),
99
99
  ...s,
100
- children: [/* @__PURE__ */ G("h3", { children: /* @__PURE__ */ K("button", {
100
+ children: [/* @__PURE__ */ W("h3", { children: /* @__PURE__ */ G("button", {
101
101
  id: g,
102
102
  type: "button",
103
103
  onClick: () => d(e),
@@ -105,21 +105,21 @@ var Q = a(function({ type: e = "single", defaultValue: t, value: n, onValueChang
105
105
  "aria-expanded": m,
106
106
  "aria-controls": h,
107
107
  className: Z("flex w-full items-center justify-between gap-3 px-5 py-4 text-left", "text-p-md font-medium text-fg-default", "hover:bg-bg-container transition-colors", "focus-visible:outline-none focus-visible:bg-bg-container", "disabled:opacity-50 disabled:cursor-not-allowed"),
108
- children: [/* @__PURE__ */ K("span", {
108
+ children: [/* @__PURE__ */ G("span", {
109
109
  className: "inline-flex items-center gap-3",
110
- children: [n && /* @__PURE__ */ G("span", {
110
+ children: [n && /* @__PURE__ */ W("span", {
111
111
  className: "inline-flex text-fg-secondary",
112
112
  children: n
113
113
  }), t]
114
- }), /* @__PURE__ */ G(S, {
114
+ }), /* @__PURE__ */ W(S, {
115
115
  className: Z("h-5 w-5 shrink-0 text-fg-secondary transition-transform duration-200", m && "rotate-180"),
116
116
  "aria-hidden": !0
117
117
  })]
118
- }) }), f ? /* @__PURE__ */ G("div", {
118
+ }) }), f ? /* @__PURE__ */ W("div", {
119
119
  className: Z("grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none", m ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
120
- children: /* @__PURE__ */ G("div", {
120
+ children: /* @__PURE__ */ W("div", {
121
121
  className: "overflow-hidden min-h-0",
122
- children: /* @__PURE__ */ G("div", {
122
+ children: /* @__PURE__ */ W("div", {
123
123
  id: h,
124
124
  role: "region",
125
125
  "aria-labelledby": g,
@@ -128,7 +128,7 @@ var Q = a(function({ type: e = "single", defaultValue: t, value: n, onValueChang
128
128
  children: _
129
129
  })
130
130
  })
131
- }) : /* @__PURE__ */ G("div", {
131
+ }) : /* @__PURE__ */ W("div", {
132
132
  id: h,
133
133
  role: "region",
134
134
  "aria-labelledby": g,
@@ -176,7 +176,7 @@ var Q = a(function({ type: e = "single", defaultValue: t, value: n, onValueChang
176
176
  tertiary: "bg-bg-subtle",
177
177
  danger: "bg-red-900"
178
178
  }, at = a(function({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: i = !1, iconOnly: a = !1, fullWidth: o = !1, pressed: s = !1, disabled: c, className: l, children: u, onClick: d, dataTestId: f, ...p }, m) {
179
- return /* @__PURE__ */ G("button", {
179
+ return /* @__PURE__ */ W("button", {
180
180
  ref: m,
181
181
  disabled: c || i,
182
182
  "aria-pressed": s,
@@ -188,18 +188,18 @@ var Q = a(function({ type: e = "single", defaultValue: t, value: n, onValueChang
188
188
  }
189
189
  d?.(e);
190
190
  },
191
- className: Z("inline-flex items-center justify-center font-medium transition-colors outline-none cursor-pointer", a ? nt[t] : tt[t], rt[e], s && it[e], o && "w-full", l),
191
+ className: Z("inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors outline-none cursor-pointer", a ? nt[t] : tt[t], rt[e], s && it[e], o && "w-full", l),
192
192
  ...p,
193
- children: i ? /* @__PURE__ */ G(N, {
193
+ children: i ? /* @__PURE__ */ W(N, {
194
194
  className: "h-4 w-4 animate-spin",
195
195
  "aria-hidden": !0
196
- }) : /* @__PURE__ */ K(W, { children: [
197
- n && /* @__PURE__ */ G("span", {
196
+ }) : /* @__PURE__ */ G(U, { children: [
197
+ n && /* @__PURE__ */ W("span", {
198
198
  className: "inline-flex shrink-0",
199
199
  children: n
200
200
  }),
201
201
  u,
202
- r && /* @__PURE__ */ G("span", {
202
+ r && /* @__PURE__ */ W("span", {
203
203
  className: "inline-flex shrink-0",
204
204
  children: r
205
205
  })
@@ -267,7 +267,7 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
267
267
  r.length && i?.(r), a.length && d?.(a);
268
268
  }, N = (e) => {
269
269
  e.preventDefault(), A.current = 0, ee(!1), !a && M(Array.from(e.dataTransfer.files ?? []));
270
- }, P = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, F = /* @__PURE__ */ G("input", {
270
+ }, P = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, F = /* @__PURE__ */ W("input", {
271
271
  ref: O,
272
272
  type: "file",
273
273
  accept: e,
@@ -277,69 +277,69 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
277
277
  M(Array.from(e.target.files ?? [])), e.target.value = "";
278
278
  },
279
279
  className: "sr-only"
280
- }), I = (y || C) && /* @__PURE__ */ K("div", {
280
+ }), I = (y || C) && /* @__PURE__ */ G("div", {
281
281
  className: "flex items-center gap-1.5",
282
- children: [y && /* @__PURE__ */ K("span", {
282
+ children: [y && /* @__PURE__ */ G("span", {
283
283
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
284
- children: [y, b && /* @__PURE__ */ G("span", {
284
+ children: [y, b && /* @__PURE__ */ W("span", {
285
285
  className: "text-red-600",
286
286
  "aria-hidden": !0,
287
287
  children: "*"
288
288
  })]
289
- }), C && /* @__PURE__ */ G("span", {
289
+ }), C && /* @__PURE__ */ W("span", {
290
290
  className: "inline-flex items-center gap-1",
291
291
  children: C
292
292
  })]
293
- }), L = S ? /* @__PURE__ */ G("p", {
293
+ }), re = S ? /* @__PURE__ */ W("p", {
294
294
  id: `${te}-error`,
295
295
  className: "text-p-sm text-red-700",
296
296
  children: S
297
- }) : null, R = f && l.length > 0 && /* @__PURE__ */ G("div", {
297
+ }) : null, L = f && l.length > 0 && /* @__PURE__ */ W("div", {
298
298
  className: "flex flex-col gap-2",
299
- children: l.map((e, t) => /* @__PURE__ */ G(ft, {
299
+ children: l.map((e, t) => /* @__PURE__ */ W(ft, {
300
300
  name: e.name,
301
301
  meta: ct(e.size),
302
302
  status: "completed",
303
303
  onRemove: g !== "view" && h ? () => h(e, t) : void 0
304
304
  }, `${t}-${e.name}-${e.size}`))
305
305
  });
306
- if (g === "view") return /* @__PURE__ */ K("div", {
306
+ if (g === "view") return /* @__PURE__ */ G("div", {
307
307
  ref: D,
308
308
  "data-test-id": T,
309
309
  className: Z("flex flex-col gap-1.5", w),
310
310
  ...E,
311
311
  children: [
312
312
  I,
313
- R,
314
- L
313
+ L,
314
+ re
315
315
  ]
316
316
  });
317
317
  if (g !== "dropzone") {
318
318
  let e = g === "icon";
319
- return /* @__PURE__ */ K("div", {
319
+ return /* @__PURE__ */ G("div", {
320
320
  ref: D,
321
321
  "data-test-id": T,
322
322
  className: Z("flex flex-col gap-1.5", w),
323
323
  ...E,
324
324
  children: [
325
325
  I,
326
- /* @__PURE__ */ G(at, {
326
+ /* @__PURE__ */ W(at, {
327
327
  type: "button",
328
328
  variant: "secondary",
329
329
  iconOnly: e,
330
330
  disabled: a,
331
331
  onClick: () => O.current?.click(),
332
- leftIcon: e ? void 0 : v ?? /* @__PURE__ */ G(ie, { className: "h-4 w-4" }),
332
+ leftIcon: e ? void 0 : v ?? /* @__PURE__ */ W(ae, { className: "h-4 w-4" }),
333
333
  "aria-label": e ? "Upload file" : void 0,
334
- children: e ? v ?? /* @__PURE__ */ G(ae, { className: "h-4 w-4" }) : _ ?? "Choose a file"
334
+ children: e ? v ?? /* @__PURE__ */ W(oe, { className: "h-4 w-4" }) : _ ?? "Choose a file"
335
335
  }),
336
336
  F,
337
- R,
338
- L
337
+ L,
338
+ re
339
339
  ]
340
340
  });
341
341
  }
342
- let re = /* @__PURE__ */ K("div", {
342
+ let ie = /* @__PURE__ */ G("div", {
343
343
  ref: D,
344
344
  onDragEnter: () => {
345
345
  A.current += 1, a || ee(!0);
@@ -362,19 +362,19 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
362
362
  className: Z("flex flex-col items-center justify-center text-center gap-2 px-6 py-8 rounded-lg border-2 border-dashed cursor-pointer transition-colors outline-none", j ? "border-red-300 bg-bg-danger-lighter" : k ? "border-brand-500 bg-brand-20" : "border-border-default bg-bg-container hover:bg-bg-subtle", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", a && "opacity-50 cursor-not-allowed", w),
363
363
  ...E,
364
364
  children: [
365
- /* @__PURE__ */ G("div", {
365
+ /* @__PURE__ */ W("div", {
366
366
  className: "h-10 w-10 rounded-full bg-bg-default flex items-center justify-center text-fg-secondary shadow-z1",
367
- children: /* @__PURE__ */ G(V, { className: "h-5 w-5" })
367
+ children: /* @__PURE__ */ W(B, { className: "h-5 w-5" })
368
368
  }),
369
- /* @__PURE__ */ K("div", {
369
+ /* @__PURE__ */ G("div", {
370
370
  className: "flex flex-col gap-0.5",
371
- children: [/* @__PURE__ */ K("p", {
371
+ children: [/* @__PURE__ */ G("p", {
372
372
  className: "text-p-std text-fg-default",
373
- children: [/* @__PURE__ */ G("span", {
373
+ children: [/* @__PURE__ */ W("span", {
374
374
  className: "font-semibold text-brand-700",
375
375
  children: "Choose a file"
376
376
  }), " or drag & drop it here."]
377
- }), /* @__PURE__ */ G("p", {
377
+ }), /* @__PURE__ */ W("p", {
378
378
  className: "text-p-sm text-fg-tertiary",
379
379
  children: P
380
380
  })]
@@ -382,13 +382,13 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
382
382
  F
383
383
  ]
384
384
  });
385
- return !I && !L && !R ? re : /* @__PURE__ */ K("div", {
385
+ return !I && !re && !L ? ie : /* @__PURE__ */ G("div", {
386
386
  className: "flex flex-col gap-1.5",
387
387
  children: [
388
388
  I,
389
- re,
390
- R,
391
- L
389
+ ie,
390
+ L,
391
+ re
392
392
  ]
393
393
  });
394
394
  }), dt = {
@@ -397,59 +397,59 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
397
397
  error: "border-red-300 bg-bg-danger-lighter"
398
398
  }, ft = a(function({ name: e, meta: t, status: n = "processing", progress: r = 0, errorText: i, onRetry: a, onRemove: o, onOpen: s, previewSrc: c, className: l, dataTestId: u, ...d }, f) {
399
399
  let [p, g] = m(!1), _ = !!c && !p;
400
- return /* @__PURE__ */ K("div", {
400
+ return /* @__PURE__ */ G("div", {
401
401
  ref: f,
402
402
  "data-test-id": u,
403
403
  className: Z("flex items-start gap-3 px-3 py-2.5 rounded-lg border", dt[n], l),
404
404
  ...d,
405
405
  children: [
406
- /* @__PURE__ */ G("div", {
406
+ /* @__PURE__ */ W("div", {
407
407
  className: Z("shrink-0 flex items-center justify-center h-9 w-9 rounded-md overflow-hidden", !_ && (n === "error" ? "bg-red-100 dark:bg-red-900/30 text-red-700" : "bg-bg-subtle text-fg-secondary")),
408
- children: _ ? /* @__PURE__ */ G("img", {
408
+ children: _ ? /* @__PURE__ */ W("img", {
409
409
  src: c,
410
410
  alt: "",
411
411
  className: "h-full w-full object-cover",
412
412
  onError: () => g(!0)
413
- }) : /* @__PURE__ */ G(te, { className: "h-4 w-4" })
413
+ }) : /* @__PURE__ */ W(te, { className: "h-4 w-4" })
414
414
  }),
415
- /* @__PURE__ */ K("div", {
415
+ /* @__PURE__ */ G("div", {
416
416
  className: "flex-1 min-w-0",
417
417
  children: [
418
- /* @__PURE__ */ K("div", {
418
+ /* @__PURE__ */ G("div", {
419
419
  className: "flex items-baseline justify-between gap-2",
420
- children: [s ? /* @__PURE__ */ G("button", {
420
+ children: [s ? /* @__PURE__ */ W("button", {
421
421
  type: "button",
422
422
  onClick: s,
423
423
  className: "truncate text-p-std font-medium text-fg-default text-left rounded-sm hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 min-w-0",
424
424
  children: e
425
- }) : /* @__PURE__ */ G("p", {
425
+ }) : /* @__PURE__ */ W("p", {
426
426
  className: "truncate text-p-std font-medium text-fg-default",
427
427
  children: e
428
- }), /* @__PURE__ */ K("div", {
428
+ }), /* @__PURE__ */ G("div", {
429
429
  className: "flex items-center gap-1 shrink-0",
430
- children: [n === "completed" && /* @__PURE__ */ G(x, {
430
+ children: [n === "completed" && /* @__PURE__ */ W(x, {
431
431
  className: "h-4 w-4 text-green-600",
432
432
  "aria-label": "Completed"
433
- }), n === "error" && /* @__PURE__ */ G(h, {
433
+ }), n === "error" && /* @__PURE__ */ W(h, {
434
434
  className: "h-4 w-4 text-red-600",
435
435
  "aria-label": "Failed"
436
436
  })]
437
437
  })]
438
438
  }),
439
- t && /* @__PURE__ */ G("p", {
439
+ t && /* @__PURE__ */ W("p", {
440
440
  className: "text-p-sm text-fg-tertiary mt-0.5",
441
441
  children: t
442
442
  }),
443
- n === "processing" && /* @__PURE__ */ G("div", {
443
+ n === "processing" && /* @__PURE__ */ W("div", {
444
444
  className: "mt-2 h-1 w-full rounded-full bg-bg-subtle overflow-hidden",
445
- children: /* @__PURE__ */ G("div", {
445
+ children: /* @__PURE__ */ W("div", {
446
446
  className: "h-full bg-brand-500 transition-[width] duration-200",
447
447
  style: { width: `${Math.min(100, Math.max(0, r))}%` }
448
448
  })
449
449
  }),
450
- n === "error" && i && /* @__PURE__ */ K("p", {
450
+ n === "error" && i && /* @__PURE__ */ G("p", {
451
451
  className: "text-p-sm text-red-700 mt-1",
452
- children: [i, a && /* @__PURE__ */ G("button", {
452
+ children: [i, a && /* @__PURE__ */ W("button", {
453
453
  type: "button",
454
454
  onClick: a,
455
455
  className: "ml-2 underline font-medium hover:no-underline",
@@ -458,12 +458,12 @@ var ut = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
458
458
  })
459
459
  ]
460
460
  }),
461
- o && /* @__PURE__ */ G("button", {
461
+ o && /* @__PURE__ */ W("button", {
462
462
  type: "button",
463
463
  onClick: o,
464
464
  "aria-label": "Remove",
465
465
  className: "shrink-0 p-1 rounded-md text-fg-tertiary hover:text-fg-default hover:bg-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
466
- children: G(n === "completed" ? he : H, { className: "h-4 w-4" })
466
+ children: W(n === "completed" ? ge : V, { className: "h-4 w-4" })
467
467
  })
468
468
  ]
469
469
  });
@@ -547,34 +547,34 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
547
547
  let r = URL.createObjectURL(t);
548
548
  T.current = r, S(r), b(!1), c?.(t);
549
549
  }, D = x ?? e, O = !!D && !y, k = n ? vt(n) : "", ee = n ? yt(n) : "bg-gray-300 dark:bg-gray-600";
550
- return /* @__PURE__ */ K("span", {
550
+ return /* @__PURE__ */ G("span", {
551
551
  ref: v,
552
552
  "data-test-id": g,
553
553
  className: Z("relative inline-flex shrink-0", h),
554
554
  ..._,
555
555
  children: [
556
- /* @__PURE__ */ G("span", {
556
+ /* @__PURE__ */ W("span", {
557
557
  className: Z("inline-flex items-center justify-center overflow-hidden font-semibold text-white select-none", pt[r], a === "circle" ? "rounded-full" : "rounded-md", !O && ee),
558
- children: O ? /* @__PURE__ */ G("img", {
558
+ children: O ? /* @__PURE__ */ W("img", {
559
559
  src: D,
560
560
  alt: t ?? n ?? "",
561
561
  onError: () => b(!0),
562
562
  className: "h-full w-full object-cover"
563
- }) : n ? k : o ?? /* @__PURE__ */ G(ge, { className: "h-1/2 w-1/2 text-white/90" })
563
+ }) : n ? k : o ?? /* @__PURE__ */ W(_e, { className: "h-1/2 w-1/2 text-white/90" })
564
564
  }),
565
- i && /* @__PURE__ */ G("span", {
565
+ i && /* @__PURE__ */ W("span", {
566
566
  "aria-label": i,
567
567
  className: Z("absolute bottom-0 rounded-full ring-2 ring-white", s ? "left-0" : "right-0", mt[r], ht[i])
568
568
  }),
569
- s && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("button", {
569
+ s && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("button", {
570
570
  type: "button",
571
571
  onClick: (e) => {
572
572
  e.stopPropagation(), C.current?.click();
573
573
  },
574
574
  "aria-label": "Change avatar image",
575
575
  className: Z("absolute right-0 bottom-0 inline-flex items-center justify-center rounded-full ring-2 ring-white bg-brand-500 text-white hover:bg-brand-600 transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", _t[r]),
576
- children: /* @__PURE__ */ G(ae, { className: "h-1/2 w-1/2" })
577
- }), /* @__PURE__ */ G("input", {
576
+ children: /* @__PURE__ */ W(oe, { className: "h-1/2 w-1/2" })
577
+ }), /* @__PURE__ */ W("input", {
578
578
  ref: C,
579
579
  type: "file",
580
580
  accept: u,
@@ -588,18 +588,18 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
588
588
  });
589
589
  }), xt = a(function({ size: e = "md", max: t, children: n, className: r, dataTestId: i, ...a }, o) {
590
590
  let s = Array.isArray(n) ? n : [n], c = t === void 0 ? s : s.slice(0, t), l = t === void 0 ? 0 : s.length - t;
591
- return /* @__PURE__ */ K("div", {
591
+ return /* @__PURE__ */ G("div", {
592
592
  ref: o,
593
593
  "data-test-id": i,
594
594
  className: Z("inline-flex items-center", r),
595
595
  ...a,
596
- children: [c.map((t, n) => /* @__PURE__ */ G("div", {
596
+ children: [c.map((t, n) => /* @__PURE__ */ W("div", {
597
597
  className: Z("rounded-full ring-2 ring-white", n > 0 && gt[e]),
598
598
  style: { zIndex: c.length - n },
599
599
  children: t
600
- }, n)), l > 0 && /* @__PURE__ */ G("div", {
600
+ }, n)), l > 0 && /* @__PURE__ */ W("div", {
601
601
  className: Z("rounded-full ring-2 ring-white", gt[e]),
602
- children: /* @__PURE__ */ G(bt, {
602
+ children: /* @__PURE__ */ W(bt, {
603
603
  size: e,
604
604
  name: `+${l}`
605
605
  })
@@ -655,7 +655,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
655
655
  accent: "hover:brightness-90 active:brightness-80"
656
656
  }, At = a(function({ variant: e = "neutral", appearance: t = "filled", size: n = "md", shape: r = "rounded", leftIcon: i, rightIcon: a, onDismiss: o, dot: s = !1, withDot: c = !1, disabled: l = !1, interactive: u = !1, className: d, children: f, dataTestId: p, onClick: m, onKeyDown: h, ...g }, _) {
657
657
  let v = t === "filled" ? Et[e] : t === "outline" ? Dt[e] : Ot[e];
658
- if (s) return /* @__PURE__ */ G("span", {
658
+ if (s) return /* @__PURE__ */ W("span", {
659
659
  ref: _,
660
660
  "data-test-id": p,
661
661
  "aria-hidden": !g["aria-label"] || void 0,
@@ -664,7 +664,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
664
664
  ...g
665
665
  });
666
666
  let y = f == null && !c && !!(i || a), b = r === "pill" ? "rounded-full" : Ct[n];
667
- return /* @__PURE__ */ K("span", {
667
+ return /* @__PURE__ */ G("span", {
668
668
  ref: _,
669
669
  "data-test-id": p,
670
670
  role: u ? "button" : void 0,
@@ -677,25 +677,25 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
677
677
  className: Z("inline-flex items-center font-medium whitespace-nowrap select-none", St[n], b, v, y && Tt[n], u && !l && Z("cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", kt[t]), l && "opacity-50 cursor-not-allowed pointer-events-none", d),
678
678
  ...g,
679
679
  children: [
680
- c ? /* @__PURE__ */ G("span", {
680
+ c ? /* @__PURE__ */ W("span", {
681
681
  className: Z("inline-block shrink-0 rounded-full", wt[n], Ot[e]),
682
682
  "aria-hidden": !0
683
- }) : i && /* @__PURE__ */ G("span", {
683
+ }) : i && /* @__PURE__ */ W("span", {
684
684
  className: "inline-flex shrink-0",
685
685
  children: i
686
686
  }),
687
687
  f,
688
- a && !o && /* @__PURE__ */ G("span", {
688
+ a && !o && /* @__PURE__ */ W("span", {
689
689
  className: "inline-flex shrink-0",
690
690
  children: a
691
691
  }),
692
- o && /* @__PURE__ */ G("button", {
692
+ o && /* @__PURE__ */ W("button", {
693
693
  type: "button",
694
694
  onClick: o,
695
695
  disabled: l,
696
696
  "aria-label": "Dismiss",
697
697
  className: "inline-flex shrink-0 -mr-0.5 rounded-full p-0.5 hover:bg-black/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
698
- children: /* @__PURE__ */ G(H, { className: "h-3 w-3" })
698
+ children: /* @__PURE__ */ W(V, { className: "h-3 w-3" })
699
699
  })
700
700
  ]
701
701
  });
@@ -704,35 +704,35 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
704
704
  sm: "text-p-xs"
705
705
  }, Mt = "rounded-sm text-fg-tertiary transition-colors hover:text-fg-secondary outline-none focus-visible:ring-2 focus-visible:ring-brand-300", Nt = a(function({ items: e, currentValue: n, onSelect: r, separator: i = "/", size: a = "md", className: o, dataTestId: s, ...c }, l) {
706
706
  let u = n ?? e[e.length - 1]?.value;
707
- return /* @__PURE__ */ G("nav", {
707
+ return /* @__PURE__ */ W("nav", {
708
708
  ref: l,
709
709
  "aria-label": "Breadcrumb",
710
710
  "data-test-id": s,
711
711
  className: Z(jt[a], o),
712
712
  ...c,
713
- children: /* @__PURE__ */ G("ol", {
713
+ children: /* @__PURE__ */ W("ol", {
714
714
  className: "flex items-center",
715
715
  children: e.map((e, n) => {
716
716
  let a = e.value === u;
717
- return /* @__PURE__ */ K(t, { children: [n > 0 && /* @__PURE__ */ G("li", {
717
+ return /* @__PURE__ */ G(t, { children: [n > 0 && /* @__PURE__ */ W("li", {
718
718
  "aria-hidden": "true",
719
719
  className: "px-1.5 text-fg-tertiary",
720
720
  children: i
721
- }), /* @__PURE__ */ G("li", {
721
+ }), /* @__PURE__ */ W("li", {
722
722
  className: "flex items-center",
723
- children: a ? /* @__PURE__ */ G("span", {
723
+ children: a ? /* @__PURE__ */ W("span", {
724
724
  "aria-current": "page",
725
725
  className: "font-medium text-fg-default",
726
726
  children: e.label
727
- }) : e.disabled ? /* @__PURE__ */ G("span", {
727
+ }) : e.disabled ? /* @__PURE__ */ W("span", {
728
728
  className: "cursor-not-allowed text-fg-disabled",
729
729
  children: e.label
730
- }) : e.href ? /* @__PURE__ */ G("a", {
730
+ }) : e.href ? /* @__PURE__ */ W("a", {
731
731
  href: e.href,
732
732
  onClick: () => r?.(e.value),
733
733
  className: Mt,
734
734
  children: e.label
735
- }) : /* @__PURE__ */ G("button", {
735
+ }) : /* @__PURE__ */ W("button", {
736
736
  type: "button",
737
737
  onClick: () => r?.(e.value),
738
738
  className: Mt,
@@ -746,7 +746,7 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
746
746
  horizontal: "flex-row [&>*]:rounded-none [&>*:first-child]:rounded-l-lg [&>*:last-child]:rounded-r-lg [&>*:not(:first-child)]:-ml-px",
747
747
  vertical: "flex-col [&>*]:rounded-none [&>*:first-child]:rounded-t-lg [&>*:last-child]:rounded-b-lg [&>*:not(:first-child)]:-mt-px"
748
748
  }, Ft = a(function({ orientation: e = "horizontal", className: t, children: n, dataTestId: r, ...i }, a) {
749
- return /* @__PURE__ */ G("div", {
749
+ return /* @__PURE__ */ W("div", {
750
750
  ref: a,
751
751
  role: "group",
752
752
  "data-test-id": r,
@@ -765,21 +765,21 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
765
765
  lg: "p-6"
766
766
  }, Rt = a(function({ variant: e = "outlined", padding: t = "md", header: n, footer: r, interactive: i = !1, className: a, children: o, dataTestId: s, ...c }, l) {
767
767
  let u = n || r;
768
- return /* @__PURE__ */ K("div", {
768
+ return /* @__PURE__ */ G("div", {
769
769
  ref: l,
770
770
  "data-test-id": s,
771
771
  className: Z("rounded-xl overflow-hidden", It[e], i && "transition-all hover:border-brand-500 hover:shadow-z2", !u && Lt[t], a),
772
772
  ...c,
773
773
  children: [
774
- n && /* @__PURE__ */ G("div", {
774
+ n && /* @__PURE__ */ W("div", {
775
775
  className: Z("border-b border-border-subtle", Lt[t]),
776
776
  children: n
777
777
  }),
778
- u ? /* @__PURE__ */ G("div", {
778
+ u ? /* @__PURE__ */ W("div", {
779
779
  className: Lt[t],
780
780
  children: o
781
781
  }) : o,
782
- r && /* @__PURE__ */ G("div", {
782
+ r && /* @__PURE__ */ W("div", {
783
783
  className: Z("border-t border-border-subtle", Lt[t]),
784
784
  children: r
785
785
  })
@@ -793,20 +793,20 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
793
793
  yellow: "bg-bg-warning-lighter text-yellow-900",
794
794
  gray: "bg-bg-subtle text-fg-secondary"
795
795
  }, Bt = a(function({ title: e, header: t, children: n, noDivider: r = !1, className: i, dataTestId: a, ...o }, s) {
796
- let c = e?.placement ?? "left", l = !!e && c !== "top", u = e && /* @__PURE__ */ G("div", {
796
+ let c = e?.placement ?? "left", l = !!e && c !== "top", u = e && /* @__PURE__ */ W("div", {
797
797
  className: Z("flex shrink-0 items-center justify-center text-center text-label-md font-bold", l ? Z("px-2 [writing-mode:vertical-rl]", c === "left" && "rotate-180") : "px-4 py-2", zt[e.color ?? "gray"]),
798
798
  children: e.text
799
799
  });
800
- return /* @__PURE__ */ G(Rt, {
800
+ return /* @__PURE__ */ W(Rt, {
801
801
  ref: s,
802
802
  dataTestId: a,
803
803
  variant: "outlined",
804
804
  padding: "none",
805
805
  className: i,
806
806
  ...o,
807
- children: /* @__PURE__ */ K("div", {
807
+ children: /* @__PURE__ */ G("div", {
808
808
  className: Z("flex", l ? c === "right" ? "flex-row-reverse" : "flex-row" : "flex-col"),
809
- children: [u, /* @__PURE__ */ K("div", {
809
+ children: [u, /* @__PURE__ */ G("div", {
810
810
  className: Z("min-w-0 flex-1", !r && "[&>*:not(:last-child)]:border-b [&>*:not(:last-child)]:border-border-default"),
811
811
  children: [t, n]
812
812
  })]
@@ -820,13 +820,13 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
820
820
  sm: "h-3 w-3"
821
821
  }, Wt = a(function({ size: e = "md", label: t, description: n, errorText: r, required: i, indeterminate: a = !1, error: o = !1, id: s, disabled: c, checked: l, defaultChecked: d, className: f, dataTestId: p, ...m }, h) {
822
822
  let g = u(), _ = s ?? g, v = o || !!r, y = r ? `${_}-error` : void 0, x = Vt(p);
823
- return /* @__PURE__ */ K("label", {
823
+ return /* @__PURE__ */ G("label", {
824
824
  htmlFor: _,
825
825
  "data-test-id": p,
826
826
  className: Z("inline-flex items-center gap-2.5 group/checkbox", c ? "cursor-not-allowed opacity-60" : "cursor-pointer", f),
827
- children: [/* @__PURE__ */ K("span", {
827
+ children: [/* @__PURE__ */ G("span", {
828
828
  className: "relative inline-flex shrink-0 items-center justify-center mt-0.5",
829
- children: [/* @__PURE__ */ G("input", {
829
+ children: [/* @__PURE__ */ W("input", {
830
830
  ref: h,
831
831
  id: _,
832
832
  type: "checkbox",
@@ -841,28 +841,28 @@ var bt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
841
841
  "aria-checked": a ? "mixed" : void 0,
842
842
  "data-test-id": x("input"),
843
843
  ...m
844
- }), /* @__PURE__ */ G("span", {
844
+ }), /* @__PURE__ */ W("span", {
845
845
  className: Z("flex items-center justify-center border transition-colors", Ht[e], !a && "bg-bg-default", v ? "border-red-600" : a ? "border-brand-500" : "border-border-strong", !c && !a && (v ? "peer-hover:border-red-700" : "peer-hover:border-fg-tertiary"), "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-1", !a && "peer-checked:bg-brand-500 peer-checked:border-brand-500", a && "bg-brand-500", c && !a && "peer-checked:bg-bg-subtle peer-checked:border-border-strong", !a && "[&_svg]:opacity-0 peer-checked:[&_svg]:opacity-100 [&_svg]:transition-opacity"),
846
- children: G(a ? F : b, {
846
+ children: W(a ? F : b, {
847
847
  className: Z(Ut[e], "text-white"),
848
848
  strokeWidth: 3,
849
849
  "aria-hidden": !0
850
850
  })
851
851
  })]
852
- }), (t || n || r) && /* @__PURE__ */ K("span", {
852
+ }), (t || n || r) && /* @__PURE__ */ G("span", {
853
853
  className: "flex flex-col gap-0.5",
854
- children: [t && /* @__PURE__ */ K("span", {
854
+ children: [t && /* @__PURE__ */ G("span", {
855
855
  className: "text-p-std font-medium text-fg-default leading-tight inline-flex items-center gap-1",
856
- children: [t, i && /* @__PURE__ */ G("span", {
856
+ children: [t, i && /* @__PURE__ */ W("span", {
857
857
  className: "text-red-600",
858
858
  "aria-hidden": !0,
859
859
  children: "*"
860
860
  })]
861
- }), r ? /* @__PURE__ */ G("span", {
861
+ }), r ? /* @__PURE__ */ W("span", {
862
862
  id: `${_}-error`,
863
863
  className: "text-p-sm text-red-700 leading-snug",
864
864
  children: r
865
- }) : n && /* @__PURE__ */ G("span", {
865
+ }) : n && /* @__PURE__ */ W("span", {
866
866
  className: "text-p-sm text-fg-secondary leading-snug",
867
867
  children: n
868
868
  })]
@@ -1001,7 +1001,7 @@ function Xt({ content: e, children: t, side: r = "top", align: i = "center", off
1001
1001
  "aria-haspopup": "dialog",
1002
1002
  "aria-expanded": w
1003
1003
  }), N = v ?? (typeof document < "u" ? document.body : null);
1004
- return /* @__PURE__ */ K(W, { children: [M, w && N && ye(/* @__PURE__ */ K("div", {
1004
+ return /* @__PURE__ */ G(U, { children: [M, w && N && be(/* @__PURE__ */ G("div", {
1005
1005
  ref: Gt(D),
1006
1006
  id: O,
1007
1007
  role: "dialog",
@@ -1011,7 +1011,7 @@ function Xt({ content: e, children: t, side: r = "top", align: i = "center", off
1011
1011
  "data-test-id": b,
1012
1012
  style: ee,
1013
1013
  className: Z("fixed z-50 max-w-60 max-h-54 overflow-auto rounded-lg border border-border-default bg-bg-default p-3 text-fg-default shadow-z4", y),
1014
- children: [e, h && /* @__PURE__ */ G("span", {
1014
+ children: [e, h && /* @__PURE__ */ W("span", {
1015
1015
  "aria-hidden": !0,
1016
1016
  style: A,
1017
1017
  className: Z("absolute size-2 rotate-45 bg-bg-default", Yt[j])
@@ -1024,12 +1024,12 @@ var Zt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1024
1024
  let [f, h] = m(!1), g = p(null), _ = typeof navigator < "u" && typeof navigator.clipboard?.writeText == "function";
1025
1025
  return l(() => () => {
1026
1026
  g.current && clearTimeout(g.current);
1027
- }, []), /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(Xt, {
1027
+ }, []), /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Xt, {
1028
1028
  open: f,
1029
1029
  content: t,
1030
1030
  side: "top",
1031
1031
  align: "center",
1032
- children: /* @__PURE__ */ G(at, {
1032
+ children: /* @__PURE__ */ W(at, {
1033
1033
  ref: d,
1034
1034
  type: "button",
1035
1035
  variant: "tertiary",
@@ -1044,9 +1044,9 @@ var Zt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1044
1044
  "aria-label": n,
1045
1045
  dataTestId: c,
1046
1046
  ...u,
1047
- children: f ? /* @__PURE__ */ G(b, { className: "size-4" }) : i ?? /* @__PURE__ */ G(ee, { className: "size-4" })
1047
+ children: f ? /* @__PURE__ */ W(b, { className: "size-4" }) : i ?? /* @__PURE__ */ W(ee, { className: "size-4" })
1048
1048
  })
1049
- }), /* @__PURE__ */ G("span", {
1049
+ }), /* @__PURE__ */ W("span", {
1050
1050
  role: "status",
1051
1051
  "aria-live": "polite",
1052
1052
  className: "sr-only",
@@ -1070,41 +1070,41 @@ var Zt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1070
1070
  sm: "w-8"
1071
1071
  }, nn = a(function({ label: e, labelAddons: t, helperText: n, errorText: r, size: i = "md", leftIcon: a, rightIcon: o, leftAddon: s, rightAddon: c, error: l = !1, id: d, disabled: f, className: p, wrapperClassName: m, required: g, dataTestId: _, ...v }, y) {
1072
1072
  let b = u(), x = d ?? b, S = r ? `${x}-error` : n ? `${x}-help` : void 0, C = l || !!r;
1073
- return /* @__PURE__ */ K("div", {
1073
+ return /* @__PURE__ */ G("div", {
1074
1074
  className: Z("flex flex-col gap-1.5 w-full", m),
1075
1075
  "data-test-id": _,
1076
1076
  children: [
1077
- (e || t) && /* @__PURE__ */ K("div", {
1077
+ (e || t) && /* @__PURE__ */ G("div", {
1078
1078
  className: "flex items-center gap-1.5",
1079
- children: [e && /* @__PURE__ */ K("label", {
1079
+ children: [e && /* @__PURE__ */ G("label", {
1080
1080
  htmlFor: x,
1081
1081
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
1082
- children: [e, g && /* @__PURE__ */ G("span", {
1082
+ children: [e, g && /* @__PURE__ */ W("span", {
1083
1083
  className: "text-red-600",
1084
1084
  "aria-hidden": !0,
1085
1085
  children: "*"
1086
1086
  })]
1087
- }), t && /* @__PURE__ */ G("span", {
1087
+ }), t && /* @__PURE__ */ W("span", {
1088
1088
  className: "inline-flex items-center gap-1",
1089
1089
  children: t
1090
1090
  })]
1091
1091
  }),
1092
- /* @__PURE__ */ K("div", {
1092
+ /* @__PURE__ */ G("div", {
1093
1093
  className: Z("flex items-stretch w-full rounded-lg bg-bg-default transition-colors", "border", C ? "border-red-600" : "border-border-default", !f && !C && "hover:border-border-strong", "focus-within:ring-2 focus-within:ring-offset-0", C ? "focus-within:ring-red-300 focus-within:border-red-600" : "focus-within:ring-brand-300 focus-within:border-brand-500", f && "bg-bg-container border-border-default cursor-not-allowed", Qt[i]),
1094
1094
  children: [
1095
- s && /* @__PURE__ */ G("span", {
1095
+ s && /* @__PURE__ */ W("span", {
1096
1096
  className: "inline-flex items-center px-3 text-fg-secondary bg-bg-container border-r border-border-default rounded-l-lg whitespace-nowrap",
1097
1097
  children: s
1098
1098
  }),
1099
- /* @__PURE__ */ K("div", {
1099
+ /* @__PURE__ */ G("div", {
1100
1100
  className: "relative flex-1 min-w-0",
1101
1101
  children: [
1102
- a && /* @__PURE__ */ G("span", {
1102
+ a && /* @__PURE__ */ W("span", {
1103
1103
  "aria-hidden": !0,
1104
1104
  className: Z("absolute inset-y-0 left-0 flex items-center justify-center text-fg-secondary pointer-events-none", tn[i]),
1105
1105
  children: a
1106
1106
  }),
1107
- /* @__PURE__ */ G("input", {
1107
+ /* @__PURE__ */ W("input", {
1108
1108
  ref: y,
1109
1109
  id: x,
1110
1110
  disabled: f,
@@ -1114,24 +1114,24 @@ var Zt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1114
1114
  className: Z("w-full h-full bg-transparent outline-none", "placeholder:text-fg-tertiary text-fg-default", "disabled:cursor-not-allowed disabled:text-fg-disabled", a ? $t[i] : "pl-3", o || C ? en[i] : "pr-3", p),
1115
1115
  ...v
1116
1116
  }),
1117
- (o || C) && /* @__PURE__ */ G("span", {
1117
+ (o || C) && /* @__PURE__ */ W("span", {
1118
1118
  "aria-hidden": !0,
1119
1119
  className: Z("absolute inset-y-0 right-0 flex items-center justify-center pointer-events-none", tn[i], C ? "text-red-600" : "text-fg-secondary"),
1120
- children: C ? /* @__PURE__ */ G(h, { className: "h-4 w-4" }) : o
1120
+ children: C ? /* @__PURE__ */ W(h, { className: "h-4 w-4" }) : o
1121
1121
  })
1122
1122
  ]
1123
1123
  }),
1124
- c && /* @__PURE__ */ G("span", {
1124
+ c && /* @__PURE__ */ W("span", {
1125
1125
  className: "inline-flex items-center px-3 text-fg-secondary bg-bg-container border-l border-border-default rounded-r-lg whitespace-nowrap",
1126
1126
  children: c
1127
1127
  })
1128
1128
  ]
1129
1129
  }),
1130
- r ? /* @__PURE__ */ G("p", {
1130
+ r ? /* @__PURE__ */ W("p", {
1131
1131
  id: `${x}-error`,
1132
1132
  className: "text-p-sm text-red-700",
1133
1133
  children: r
1134
- }) : n ? /* @__PURE__ */ G("p", {
1134
+ }) : n ? /* @__PURE__ */ W("p", {
1135
1135
  id: `${x}-help`,
1136
1136
  className: "text-p-sm text-fg-secondary",
1137
1137
  children: n
@@ -1147,7 +1147,7 @@ var Zt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1147
1147
  let t = Math.min(i, Math.max(r, e));
1148
1148
  return y || x(t), n?.(t), t;
1149
1149
  };
1150
- return /* @__PURE__ */ G(nn, {
1150
+ return /* @__PURE__ */ W(nn, {
1151
1151
  ref: v,
1152
1152
  type: "number",
1153
1153
  min: r,
@@ -1173,21 +1173,21 @@ var Zt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1173
1173
  }
1174
1174
  w(String(T(e)));
1175
1175
  },
1176
- leftAddon: /* @__PURE__ */ G("button", {
1176
+ leftAddon: /* @__PURE__ */ W("button", {
1177
1177
  type: "button",
1178
1178
  disabled: f || S <= r,
1179
1179
  onClick: () => T(S - a),
1180
1180
  "aria-label": "Decrease",
1181
1181
  className: rn,
1182
- children: /* @__PURE__ */ G(F, { className: "size-4" })
1182
+ children: /* @__PURE__ */ W(F, { className: "size-4" })
1183
1183
  }),
1184
- rightAddon: /* @__PURE__ */ G("button", {
1184
+ rightAddon: /* @__PURE__ */ W("button", {
1185
1185
  type: "button",
1186
1186
  disabled: f || S >= i,
1187
1187
  onClick: () => T(S + a),
1188
1188
  "aria-label": "Increase",
1189
1189
  className: rn,
1190
- children: /* @__PURE__ */ G(ce, { className: "size-4" })
1190
+ children: /* @__PURE__ */ W(le, { className: "size-4" })
1191
1191
  }),
1192
1192
  className: Z("text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none", p),
1193
1193
  ..._
@@ -1267,18 +1267,18 @@ function vn(e, t) {
1267
1267
  return i;
1268
1268
  }
1269
1269
  var yn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, rangeValue: i, onChangeRange: a, size: o = "md", locale: s = "en", format: c = "dd.MM.yyyy", label: d, required: h = !1, helperText: g, placeholder: _ = "Select date", fullWidth: v = !1, disabled: b = !1, minDate: x, maxDate: S, excludeDates: T, filterDate: E, error: D = !1, errorText: O, id: k, className: ee, wrapperClassName: A, dataTestId: j }, te) {
1270
- let ne = u(), M = k ?? ne, [N, P] = m(!1), [F, I] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [L, R] = m(null), re = p(null), ie = D || !!O, ae = O ? `${M}-error` : g ? `${M}-help` : void 0;
1270
+ let ne = u(), M = k ?? ne, [N, P] = m(!1), [F, I] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [re, L] = m(null), ie = p(null), ae = D || !!O, oe = O ? `${M}-error` : g ? `${M}-help` : void 0;
1271
1271
  l(() => {
1272
1272
  b && P(!1);
1273
1273
  }, [b]), l(() => {
1274
1274
  if (!N) return;
1275
1275
  let e = (e) => {
1276
- re.current && !re.current.contains(e.target) && P(!1);
1276
+ ie.current && !ie.current.contains(e.target) && P(!1);
1277
1277
  };
1278
1278
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1279
1279
  }, [N]);
1280
- let oe = r ? i?.start ? `${_n(i.start, c)}${i.end ? ` – ${_n(i.end, c)}` : ""}` : "" : e ? _n(e, c) : "";
1281
- function se(e) {
1280
+ let se = r ? i?.start ? `${_n(i.start, c)}${i.end ? ` – ${_n(i.end, c)}` : ""}` : "" : e ? _n(e, c) : "";
1281
+ function ce(e) {
1282
1282
  if (!r) {
1283
1283
  t?.(e), P(!1);
1284
1284
  return;
@@ -1306,105 +1306,105 @@ var yn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1306
1306
  end: e
1307
1307
  }), P(!1);
1308
1308
  }
1309
- function ce(e) {
1309
+ function le(e) {
1310
1310
  e.stopPropagation(), r ? (a?.({
1311
1311
  start: null,
1312
1312
  end: null
1313
- }), R(null)) : t?.(null);
1313
+ }), L(null)) : t?.(null);
1314
1314
  }
1315
- let { firstDayOfWeek: z, monthNames: le, weekdayNames: ue } = f(() => {
1315
+ let { firstDayOfWeek: R, monthNames: ue, weekdayNames: de } = f(() => {
1316
1316
  let e = cn(s), t = ln(e);
1317
1317
  return {
1318
1318
  firstDayOfWeek: t,
1319
1319
  monthNames: un(e),
1320
1320
  weekdayNames: fn(e, t)
1321
1321
  };
1322
- }, [s]), de = vn(F, z), B = i ?? {
1322
+ }, [s]), fe = vn(F, R), z = i ?? {
1323
1323
  start: null,
1324
1324
  end: null
1325
- }, fe = B.end ?? L;
1326
- return /* @__PURE__ */ K("div", {
1327
- ref: re,
1325
+ }, pe = z.end ?? re;
1326
+ return /* @__PURE__ */ G("div", {
1327
+ ref: ie,
1328
1328
  "data-test-id": j,
1329
1329
  className: Z("flex flex-col gap-1.5", v && "w-full", A),
1330
1330
  children: [
1331
- d && /* @__PURE__ */ K("label", {
1331
+ d && /* @__PURE__ */ G("label", {
1332
1332
  htmlFor: M,
1333
1333
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
1334
- children: [d, h && /* @__PURE__ */ G("span", {
1334
+ children: [d, h && /* @__PURE__ */ W("span", {
1335
1335
  className: "text-red-600",
1336
1336
  "aria-hidden": !0,
1337
1337
  children: "*"
1338
1338
  })]
1339
1339
  }),
1340
- /* @__PURE__ */ K("div", {
1340
+ /* @__PURE__ */ G("div", {
1341
1341
  className: "relative",
1342
- children: [/* @__PURE__ */ K("button", {
1342
+ children: [/* @__PURE__ */ G("button", {
1343
1343
  ref: te,
1344
1344
  id: M,
1345
1345
  type: "button",
1346
1346
  disabled: b,
1347
- "aria-invalid": ie || void 0,
1347
+ "aria-invalid": ae || void 0,
1348
1348
  "aria-required": h || void 0,
1349
- "aria-describedby": ae,
1349
+ "aria-describedby": oe,
1350
1350
  onClick: () => P((e) => !e),
1351
- className: Z("inline-flex items-center gap-2 rounded-lg border bg-bg-default text-left transition-colors focus-visible:outline-none focus-visible:ring-2", ie ? "border-red-600" : "border-border-default", !b && !ie && "hover:border-border-strong", ie ? "focus-visible:ring-red-300 focus-visible:border-red-600" : "focus-visible:ring-brand-300 focus-visible:border-brand-500", b && "bg-bg-container border-border-default cursor-not-allowed text-fg-disabled", v ? "w-full min-w-0" : "min-w-[260px]", on[o], ee),
1352
- children: [/* @__PURE__ */ G("span", {
1353
- className: Z("flex-1 text-left truncate", b ? "text-fg-disabled" : oe ? "text-fg-default" : "text-fg-tertiary"),
1354
- children: oe || _
1355
- }), n && oe && !b ? /* @__PURE__ */ G("span", {
1351
+ className: Z("inline-flex items-center gap-2 rounded-lg border bg-bg-default text-left transition-colors focus-visible:outline-none focus-visible:ring-2", ae ? "border-red-600" : "border-border-default", !b && !ae && "hover:border-border-strong", ae ? "focus-visible:ring-red-300 focus-visible:border-red-600" : "focus-visible:ring-brand-300 focus-visible:border-brand-500", b && "bg-bg-container border-border-default cursor-not-allowed text-fg-disabled", v ? "w-full min-w-0" : "min-w-[260px]", on[o], ee),
1352
+ children: [/* @__PURE__ */ W("span", {
1353
+ className: Z("flex-1 text-left truncate", b ? "text-fg-disabled" : se ? "text-fg-default" : "text-fg-tertiary"),
1354
+ children: se || _
1355
+ }), n && se && !b ? /* @__PURE__ */ W("span", {
1356
1356
  role: "button",
1357
1357
  tabIndex: 0,
1358
1358
  "aria-label": "Clear date",
1359
- onClick: ce,
1359
+ onClick: le,
1360
1360
  onKeyDown: (e) => {
1361
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ce(e));
1361
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), le(e));
1362
1362
  },
1363
1363
  className: "inline-flex items-center justify-center rounded-full p-0.5 hover:bg-bg-container",
1364
- children: /* @__PURE__ */ G(H, { className: "w-4 h-4 text-fg-secondary" })
1365
- }) : /* @__PURE__ */ G(y, { className: Z("w-4 h-4", b ? "text-fg-disabled" : "text-fg-secondary") })]
1366
- }), N && /* @__PURE__ */ K("div", {
1364
+ children: /* @__PURE__ */ W(V, { className: "w-4 h-4 text-fg-secondary" })
1365
+ }) : /* @__PURE__ */ W(y, { className: Z("w-4 h-4", b ? "text-fg-disabled" : "text-fg-secondary") })]
1366
+ }), N && /* @__PURE__ */ G("div", {
1367
1367
  className: "absolute z-50 mt-1 left-0 rounded-xl border border-border-default bg-bg-default shadow-z3 p-3 w-[300px]",
1368
- children: [/* @__PURE__ */ K("div", {
1368
+ children: [/* @__PURE__ */ G("div", {
1369
1369
  className: "flex items-center justify-between mb-2",
1370
1370
  children: [
1371
- /* @__PURE__ */ G("button", {
1371
+ /* @__PURE__ */ W("button", {
1372
1372
  type: "button",
1373
1373
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1374
1374
  onClick: () => I(new Date(F.getFullYear(), F.getMonth() - 1, 1)),
1375
1375
  "aria-label": "Previous month",
1376
- children: /* @__PURE__ */ G(C, { className: "w-4 h-4" })
1376
+ children: /* @__PURE__ */ W(C, { className: "w-4 h-4" })
1377
1377
  }),
1378
- /* @__PURE__ */ K("div", {
1378
+ /* @__PURE__ */ G("div", {
1379
1379
  className: "text-p-md font-semibold text-fg-default",
1380
1380
  children: [
1381
- le[F.getMonth()],
1381
+ ue[F.getMonth()],
1382
1382
  " ",
1383
1383
  F.getFullYear()
1384
1384
  ]
1385
1385
  }),
1386
- /* @__PURE__ */ G("button", {
1386
+ /* @__PURE__ */ W("button", {
1387
1387
  type: "button",
1388
1388
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1389
1389
  onClick: () => I(new Date(F.getFullYear(), F.getMonth() + 1, 1)),
1390
1390
  "aria-label": "Next month",
1391
- children: /* @__PURE__ */ G(w, { className: "w-4 h-4" })
1391
+ children: /* @__PURE__ */ W(w, { className: "w-4 h-4" })
1392
1392
  })
1393
1393
  ]
1394
- }), /* @__PURE__ */ K("div", {
1394
+ }), /* @__PURE__ */ G("div", {
1395
1395
  className: "grid grid-cols-7 gap-1 text-center",
1396
- children: [ue.map((e, t) => /* @__PURE__ */ G("div", {
1396
+ children: [de.map((e, t) => /* @__PURE__ */ W("div", {
1397
1397
  className: "text-p-xs text-fg-tertiary py-1",
1398
1398
  children: e
1399
- }, t)), de.map((t, n) => {
1400
- if (!t) return /* @__PURE__ */ G("div", {}, n);
1401
- let i = gn(t, x, S, T, E), a = !r && mn(t, e ?? null), o = r && mn(t, B.start), s = r && mn(t, fe), c = r && !!B.start && !!fe && t > B.start && t < fe;
1402
- return /* @__PURE__ */ G("button", {
1399
+ }, t)), fe.map((t, n) => {
1400
+ if (!t) return /* @__PURE__ */ W("div", {}, n);
1401
+ let i = gn(t, x, S, T, E), a = !r && mn(t, e ?? null), o = r && mn(t, z.start), s = r && mn(t, pe), c = r && !!z.start && !!pe && t > z.start && t < pe;
1402
+ return /* @__PURE__ */ W("button", {
1403
1403
  type: "button",
1404
1404
  disabled: i,
1405
1405
  "aria-disabled": i || void 0,
1406
- onMouseEnter: () => !i && r && B.start && !B.end && R(t),
1407
- onClick: () => !i && se(t),
1406
+ onMouseEnter: () => !i && r && z.start && !z.end && L(t),
1407
+ onClick: () => !i && ce(t),
1408
1408
  className: Z("h-8 rounded-md text-p-sm font-medium", i ? "text-fg-disabled cursor-not-allowed" : a || o || s ? "bg-brand-500 text-white" : c ? "bg-bg-brand-lighter text-brand-700" : "text-fg-default hover:bg-bg-container"),
1409
1409
  children: t.getDate()
1410
1410
  }, n);
@@ -1412,11 +1412,11 @@ var yn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1412
1412
  })]
1413
1413
  })]
1414
1414
  }),
1415
- O ? /* @__PURE__ */ G("p", {
1415
+ O ? /* @__PURE__ */ W("p", {
1416
1416
  id: `${M}-error`,
1417
1417
  className: "text-p-sm text-red-700",
1418
1418
  children: O
1419
- }) : g ? /* @__PURE__ */ G("p", {
1419
+ }) : g ? /* @__PURE__ */ W("p", {
1420
1420
  id: `${M}-help`,
1421
1421
  className: "text-p-sm text-fg-secondary",
1422
1422
  children: g
@@ -1483,13 +1483,13 @@ var yn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1483
1483
  }
1484
1484
  }, Sn = a(function({ icon: e, tone: t = "gray", size: n = "md", shape: r = "rounded", className: i, dataTestId: a, ...o }, s) {
1485
1485
  let c = bn[t], l = xn[n];
1486
- return /* @__PURE__ */ G("div", {
1486
+ return /* @__PURE__ */ W("div", {
1487
1487
  ref: s,
1488
1488
  "data-test-id": a,
1489
1489
  "aria-hidden": !o["aria-label"] || void 0,
1490
1490
  className: Z("inline-flex items-center justify-center shrink-0", l.box, r === "circle" ? "rounded-full" : l.radius, c.bg, i),
1491
1491
  ...o,
1492
- children: /* @__PURE__ */ G(e, { className: Z(l.icon, c.icon) })
1492
+ children: /* @__PURE__ */ W(e, { className: Z(l.icon, c.icon) })
1493
1493
  });
1494
1494
  }), Cn = {
1495
1495
  "h-xl": "text-h-xl",
@@ -1610,33 +1610,33 @@ var yn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1610
1610
  }
1611
1611
  }
1612
1612
  }, kn = {
1613
- mobile: de,
1614
- tablet: pe,
1613
+ mobile: fe,
1614
+ tablet: me,
1615
1615
  desktop: I,
1616
- "mobile-tablet": me
1616
+ "mobile-tablet": he
1617
1617
  }, An = a(function({ type: e = "desktop", locale: t = "en-US", title: n, description: r, icon: i, fillHeight: a = !1, className: o, dataTestId: s, ...c }, l) {
1618
1618
  let u = On[t][e];
1619
- return /* @__PURE__ */ K("div", {
1619
+ return /* @__PURE__ */ G("div", {
1620
1620
  ref: l,
1621
1621
  "data-test-id": s,
1622
1622
  className: Z("flex flex-col items-center justify-center text-center px-6 py-16", a && "h-full", o),
1623
1623
  ...c,
1624
1624
  children: [
1625
- i ?? /* @__PURE__ */ G(Sn, {
1625
+ i ?? /* @__PURE__ */ W(Sn, {
1626
1626
  icon: kn[e],
1627
1627
  tone: "gray",
1628
1628
  shape: "rounded",
1629
1629
  size: "xl",
1630
1630
  className: "rounded-2xl"
1631
1631
  }),
1632
- /* @__PURE__ */ G(Dn, {
1632
+ /* @__PURE__ */ W(Dn, {
1633
1633
  as: "h3",
1634
1634
  variant: "h-xs",
1635
1635
  weight: "semibold",
1636
1636
  className: "mt-6",
1637
1637
  children: n ?? u.title
1638
1638
  }),
1639
- /* @__PURE__ */ G(Dn, {
1639
+ /* @__PURE__ */ W(Dn, {
1640
1640
  variant: "p-md",
1641
1641
  color: "secondary",
1642
1642
  className: "mt-2 max-w-105",
@@ -1657,28 +1657,28 @@ var yn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1657
1657
  lg: "h-2"
1658
1658
  }, Nn = (e) => new Intl.NumberFormat().format(e), Pn = a(function({ segments: e, hideLegend: t = !1, formatValue: n = Nn, size: r = "lg", className: i, dataTestId: a, ...o }, s) {
1659
1659
  let c = e.reduce((e, t) => e + t.value, 0);
1660
- return /* @__PURE__ */ K("div", {
1660
+ return /* @__PURE__ */ G("div", {
1661
1661
  ref: s,
1662
1662
  "data-test-id": a,
1663
1663
  className: Z("flex flex-col gap-3", i),
1664
1664
  ...o,
1665
- children: [/* @__PURE__ */ G("div", {
1665
+ children: [/* @__PURE__ */ W("div", {
1666
1666
  className: Z("flex w-full overflow-hidden rounded-full bg-bg-subtle", Mn[r]),
1667
- children: e.map((e, t) => /* @__PURE__ */ G("div", {
1667
+ children: e.map((e, t) => /* @__PURE__ */ W("div", {
1668
1668
  style: { flexBasis: `${c > 0 ? e.value / c * 100 : 0}%` },
1669
1669
  className: Z("transition-[flex-basis] duration-700 ease-out", jn[e.color])
1670
1670
  }, t))
1671
- }), !t && /* @__PURE__ */ G("ul", {
1671
+ }), !t && /* @__PURE__ */ W("ul", {
1672
1672
  className: "flex flex-col [&>li:not(:last-child)]:border-b [&>li:not(:last-child)]:border-border-default",
1673
- children: e.filter((e) => !e.hideFromLegend).map((e, t) => /* @__PURE__ */ K("li", {
1673
+ children: e.filter((e) => !e.hideFromLegend).map((e, t) => /* @__PURE__ */ G("li", {
1674
1674
  className: "flex items-center justify-between gap-3 py-1.5",
1675
- children: [/* @__PURE__ */ K("span", {
1675
+ children: [/* @__PURE__ */ G("span", {
1676
1676
  className: "flex min-w-0 items-center gap-2",
1677
- children: [/* @__PURE__ */ G("span", { className: Z("size-2 shrink-0 rounded-full", jn[e.color]) }), /* @__PURE__ */ G("span", {
1677
+ children: [/* @__PURE__ */ W("span", { className: Z("size-2 shrink-0 rounded-full", jn[e.color]) }), /* @__PURE__ */ W("span", {
1678
1678
  className: "truncate text-p-sm text-fg-tertiary",
1679
1679
  children: e.label
1680
1680
  })]
1681
- }), /* @__PURE__ */ K("span", {
1681
+ }), /* @__PURE__ */ G("span", {
1682
1682
  className: "shrink-0 text-p-sm text-fg-default tabular-nums",
1683
1683
  children: [n(e.value), e.unit ? ` ${e.unit}` : ""]
1684
1684
  })]
@@ -1754,7 +1754,7 @@ var Rn = {
1754
1754
  return _.current?.focus(), () => t?.focus?.();
1755
1755
  }, [e]), !v) return null;
1756
1756
  let x = n === "left" || n === "right", S = x ? Rn[r] : zn[r];
1757
- return ye(/* @__PURE__ */ K("div", {
1757
+ return be(/* @__PURE__ */ G("div", {
1758
1758
  role: "dialog",
1759
1759
  "aria-modal": "true",
1760
1760
  "aria-hidden": y === "exiting" || void 0,
@@ -1762,45 +1762,45 @@ var Rn = {
1762
1762
  "aria-describedby": a ? "drawer-desc" : void 0,
1763
1763
  className: "fixed inset-0 z-50",
1764
1764
  "data-test-id": h,
1765
- children: [/* @__PURE__ */ G("div", {
1765
+ children: [/* @__PURE__ */ W("div", {
1766
1766
  className: Z("absolute inset-0 bg-black/50", d && "transition-opacity duration-200 motion-reduce:transition-none", b ? "opacity-100" : "opacity-0"),
1767
1767
  onClick: () => c && t(),
1768
1768
  "aria-hidden": !0
1769
- }), /* @__PURE__ */ K("div", {
1769
+ }), /* @__PURE__ */ G("div", {
1770
1770
  ref: Gt(g, _),
1771
1771
  tabIndex: -1,
1772
1772
  className: Z("absolute bg-bg-default shadow-z5 outline-none flex flex-col", Bn[n], x ? `${S} h-full max-w-full` : `${S} w-full max-h-full`, "border-border-default", d && "transition-transform duration-300 ease-out motion-reduce:transition-none will-change-transform", b ? "translate-x-0 translate-y-0" : Vn[n], m),
1773
1773
  children: [
1774
- (i || u || f) && /* @__PURE__ */ K("div", {
1774
+ (i || u || f) && /* @__PURE__ */ G("div", {
1775
1775
  className: "flex items-start justify-between gap-4 px-6 pt-6 pb-4 border-b border-border-default",
1776
- children: [/* @__PURE__ */ K("div", {
1776
+ children: [/* @__PURE__ */ G("div", {
1777
1777
  className: "flex-1 min-w-0",
1778
- children: [i && /* @__PURE__ */ G("h2", {
1778
+ children: [i && /* @__PURE__ */ W("h2", {
1779
1779
  "data-test-id": h ? `${h}-drawer-title` : void 0,
1780
1780
  className: "text-h-xs font-semibold text-fg-default",
1781
1781
  children: i
1782
- }), a && /* @__PURE__ */ G("p", {
1782
+ }), a && /* @__PURE__ */ W("p", {
1783
1783
  "data-test-id": h ? `${h}-drawer-subtitle` : void 0,
1784
1784
  className: "mt-1 text-p-std text-fg-secondary",
1785
1785
  children: a
1786
1786
  })]
1787
- }), /* @__PURE__ */ K("div", {
1787
+ }), /* @__PURE__ */ G("div", {
1788
1788
  className: "flex items-center gap-1 shrink-0 -mr-2 -mt-2",
1789
- children: [f, u && /* @__PURE__ */ G("button", {
1789
+ children: [f, u && /* @__PURE__ */ W("button", {
1790
1790
  type: "button",
1791
1791
  onClick: t,
1792
1792
  "aria-label": "Close",
1793
1793
  "data-test-id": h ? `${h}-drawer-close-button` : void 0,
1794
1794
  className: "p-2 rounded-md text-fg-secondary hover:text-fg-default hover:bg-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
1795
- children: /* @__PURE__ */ G(H, { className: "h-5 w-5" })
1795
+ children: /* @__PURE__ */ W(V, { className: "h-5 w-5" })
1796
1796
  })]
1797
1797
  })]
1798
1798
  }),
1799
- o && /* @__PURE__ */ G("div", {
1799
+ o && /* @__PURE__ */ W("div", {
1800
1800
  className: "flex-1 overflow-y-auto px-6 py-4",
1801
1801
  children: o
1802
1802
  }),
1803
- s && /* @__PURE__ */ G("div", {
1803
+ s && /* @__PURE__ */ W("div", {
1804
1804
  className: "flex items-center justify-end gap-2 px-6 py-4 border-t border-border-default bg-bg-container",
1805
1805
  children: s
1806
1806
  })
@@ -1878,14 +1878,14 @@ var Jn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r
1878
1878
  e.key === "Escape" && _(!1);
1879
1879
  };
1880
1880
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1881
- }, [h]), /* @__PURE__ */ G(Kn.Provider, {
1881
+ }, [h]), /* @__PURE__ */ W(Kn.Provider, {
1882
1882
  value: {
1883
1883
  open: h,
1884
1884
  setOpen: _,
1885
1885
  triggerRef: g,
1886
1886
  anchorRef: i
1887
1887
  },
1888
- children: /* @__PURE__ */ G("div", {
1888
+ children: /* @__PURE__ */ W("div", {
1889
1889
  ref: c,
1890
1890
  "data-test-id": o,
1891
1891
  className: Z("relative inline-block", a),
@@ -1952,7 +1952,7 @@ var Xn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1952
1952
  });
1953
1953
  return () => cancelAnimationFrame(e);
1954
1954
  }, [_]), !_) return null;
1955
- let E = /* @__PURE__ */ G("div", {
1955
+ let E = /* @__PURE__ */ W("div", {
1956
1956
  ref: Gt(g, x, n === "fixed" ? C : void 0),
1957
1957
  role: "menu",
1958
1958
  "data-test-id": d,
@@ -1969,10 +1969,10 @@ var Xn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1969
1969
  ...h,
1970
1970
  children: e
1971
1971
  });
1972
- return n === "fixed" ? ye(E, document.body) : E;
1972
+ return n === "fixed" ? be(E, document.body) : E;
1973
1973
  }), Qn = a(function({ children: e, onSelect: t, disabled: n, icon: r, shortcut: i, destructive: a, checked: o, meta: s, className: c, dataTestId: l, onClick: u, ...d }, f) {
1974
1974
  let { setOpen: p } = qn();
1975
- return /* @__PURE__ */ K("button", {
1975
+ return /* @__PURE__ */ G("button", {
1976
1976
  ref: f,
1977
1977
  type: "button",
1978
1978
  role: "menuitem",
@@ -1984,32 +1984,32 @@ var Xn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1984
1984
  className: Z("flex w-full gap-2 px-3 py-2 text-left text-p-std text-fg-default", s ? "items-start" : "items-center", "hover:bg-bg-subtle focus-visible:outline-none focus-visible:bg-bg-subtle", n && "opacity-50 cursor-not-allowed hover:bg-transparent", a && "text-red-700 hover:bg-red-50", c),
1985
1985
  ...d,
1986
1986
  children: [
1987
- o !== void 0 && /* @__PURE__ */ G("span", {
1987
+ o !== void 0 && /* @__PURE__ */ W("span", {
1988
1988
  className: "w-4 shrink-0",
1989
- children: o && /* @__PURE__ */ G(b, { className: "h-4 w-4 text-brand-500" })
1989
+ children: o && /* @__PURE__ */ W(b, { className: "h-4 w-4 text-brand-500" })
1990
1990
  }),
1991
- r && /* @__PURE__ */ G("span", {
1991
+ r && /* @__PURE__ */ W("span", {
1992
1992
  className: "inline-flex shrink-0 text-fg-secondary",
1993
1993
  children: r
1994
1994
  }),
1995
- /* @__PURE__ */ K("span", {
1995
+ /* @__PURE__ */ G("span", {
1996
1996
  className: "flex-1 min-w-0 text-left",
1997
- children: [/* @__PURE__ */ G("span", {
1997
+ children: [/* @__PURE__ */ W("span", {
1998
1998
  className: "block truncate",
1999
1999
  children: e
2000
- }), s && /* @__PURE__ */ G("span", {
2000
+ }), s && /* @__PURE__ */ W("span", {
2001
2001
  className: "block truncate text-p-sm text-fg-tertiary",
2002
2002
  children: s
2003
2003
  })]
2004
2004
  }),
2005
- i && /* @__PURE__ */ G("span", {
2005
+ i && /* @__PURE__ */ W("span", {
2006
2006
  className: "text-p-sm text-fg-tertiary shrink-0 tabular-nums",
2007
2007
  children: i
2008
2008
  })
2009
2009
  ]
2010
2010
  });
2011
2011
  }), $n = a(function({ className: e, dataTestId: t, ...n }, r) {
2012
- return /* @__PURE__ */ G("div", {
2012
+ return /* @__PURE__ */ W("div", {
2013
2013
  ref: r,
2014
2014
  role: "separator",
2015
2015
  "data-test-id": t,
@@ -2017,7 +2017,7 @@ var Xn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2017
2017
  ...n
2018
2018
  });
2019
2019
  }), er = a(function({ children: e, className: t, dataTestId: n, ...r }, i) {
2020
- return /* @__PURE__ */ G("div", {
2020
+ return /* @__PURE__ */ W("div", {
2021
2021
  ref: i,
2022
2022
  "data-test-id": n,
2023
2023
  className: Z("px-3 py-1.5 text-p-xs font-semibold uppercase tracking-wider text-fg-tertiary", t),
@@ -2031,32 +2031,32 @@ var Xn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
2031
2031
  lg: "xl",
2032
2032
  sm: "lg"
2033
2033
  }, rr = a(function({ size: e = "lg", title: t, description: n, illustration: r, action: i, className: a, dataTestId: o, ...s }, c) {
2034
- return /* @__PURE__ */ K("div", {
2034
+ return /* @__PURE__ */ G("div", {
2035
2035
  ref: c,
2036
2036
  "data-test-id": o,
2037
2037
  className: Z("flex flex-col items-center justify-center text-center", tr[e], a),
2038
2038
  ...s,
2039
2039
  children: [
2040
- r ?? /* @__PURE__ */ G(Sn, {
2041
- icon: ue,
2040
+ r ?? /* @__PURE__ */ W(Sn, {
2041
+ icon: de,
2042
2042
  tone: "gray",
2043
2043
  shape: "circle",
2044
2044
  size: nr[e]
2045
2045
  }),
2046
- t && /* @__PURE__ */ G(Dn, {
2046
+ t && /* @__PURE__ */ W(Dn, {
2047
2047
  as: "h3",
2048
2048
  variant: e === "lg" ? "h-sm" : "h-xs",
2049
2049
  weight: "semibold",
2050
2050
  className: "mt-2",
2051
2051
  children: t
2052
2052
  }),
2053
- n && /* @__PURE__ */ G(Dn, {
2053
+ n && /* @__PURE__ */ W(Dn, {
2054
2054
  variant: e === "lg" ? "p-sm" : "p-xs",
2055
2055
  color: "secondary",
2056
2056
  className: "max-w-sm",
2057
2057
  children: n
2058
2058
  }),
2059
- i && /* @__PURE__ */ G("div", {
2059
+ i && /* @__PURE__ */ W("div", {
2060
2060
  className: "mt-4",
2061
2061
  children: i
2062
2062
  })
@@ -2082,12 +2082,12 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2082
2082
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2083
2083
  }, [f]);
2084
2084
  let _ = n || t !== void 0;
2085
- return /* @__PURE__ */ K("div", {
2085
+ return /* @__PURE__ */ G("div", {
2086
2086
  ref: ar(d, g),
2087
2087
  "data-test-id": c,
2088
2088
  className: Z("relative inline-flex", s),
2089
2089
  ...u,
2090
- children: [/* @__PURE__ */ K("button", {
2090
+ children: [/* @__PURE__ */ G("button", {
2091
2091
  type: "button",
2092
2092
  disabled: i,
2093
2093
  onClick: () => h((e) => !e),
@@ -2095,19 +2095,19 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2095
2095
  "aria-expanded": f,
2096
2096
  className: Z("inline-flex items-center rounded-full border transition-colors outline-none", ir[r], _ ? "bg-brand-20 text-brand-800 border-brand-500" : "bg-bg-default text-fg-default border-border-default", !i && "hover:border-border-strong", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", i && "bg-bg-container text-fg-disabled cursor-not-allowed"),
2097
2097
  children: [
2098
- /* @__PURE__ */ G("span", {
2098
+ /* @__PURE__ */ W("span", {
2099
2099
  className: "font-medium",
2100
2100
  children: e
2101
2101
  }),
2102
- t !== void 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("span", {
2102
+ t !== void 0 && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("span", {
2103
2103
  className: "mx-0.5 text-fg-tertiary",
2104
2104
  "aria-hidden": !0,
2105
2105
  children: "•"
2106
- }), /* @__PURE__ */ G("span", {
2106
+ }), /* @__PURE__ */ W("span", {
2107
2107
  className: "font-semibold truncate max-w-[140px]",
2108
2108
  children: t
2109
2109
  })] }),
2110
- _ && a ? /* @__PURE__ */ G("span", {
2110
+ _ && a ? /* @__PURE__ */ W("span", {
2111
2111
  role: "button",
2112
2112
  tabIndex: 0,
2113
2113
  "aria-label": "Clear filter",
@@ -2118,21 +2118,21 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2118
2118
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), a());
2119
2119
  },
2120
2120
  className: "inline-flex items-center justify-center rounded-full p-0.5 hover:bg-black/10",
2121
- children: /* @__PURE__ */ G(H, { className: "h-3 w-3" })
2122
- }) : /* @__PURE__ */ G(S, {
2121
+ children: /* @__PURE__ */ W(V, { className: "h-3 w-3" })
2122
+ }) : /* @__PURE__ */ W(S, {
2123
2123
  className: Z("h-4 w-4 text-fg-secondary transition-transform", f && "rotate-180"),
2124
2124
  "aria-hidden": !0
2125
2125
  })
2126
2126
  ]
2127
- }), f && o && /* @__PURE__ */ G("div", {
2127
+ }), f && o && /* @__PURE__ */ W("div", {
2128
2128
  className: "absolute left-0 top-full mt-1 min-w-[220px] rounded-lg border border-border-default bg-bg-default shadow-z4 z-50 p-3",
2129
2129
  children: o
2130
2130
  })]
2131
2131
  });
2132
2132
  }), sr = r(null), cr = a(function({ children: e, className: t, validationSchema: n, defaultValues: r, buttons: i, mode: a = "onBlur", shouldUnregister: o, shouldFocusError: s = !0, formId: c, onSubmit: u, revalidateKey: d, dataTestId: f, ...p }, m) {
2133
- let { handleSubmit: h, register: g, setValue: _, control: v, formState: y, getValues: b, watch: x, reset: S, clearErrors: C, setError: w, trigger: T, getFieldState: E, unregister: D } = Se({
2133
+ let { handleSubmit: h, register: g, setValue: _, control: v, formState: y, getValues: b, watch: x, reset: S, clearErrors: C, setError: w, trigger: T, getFieldState: E, unregister: D } = Ce({
2134
2134
  mode: a,
2135
- resolver: Ce(n),
2135
+ resolver: we(n),
2136
2136
  defaultValues: r,
2137
2137
  shouldFocusError: s,
2138
2138
  shouldUnregister: o
@@ -2163,31 +2163,31 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2163
2163
  dirtyFields: j,
2164
2164
  submit: ne
2165
2165
  };
2166
- return /* @__PURE__ */ G("form", {
2166
+ return /* @__PURE__ */ W("form", {
2167
2167
  ref: m,
2168
2168
  id: c,
2169
2169
  onSubmit: ne,
2170
2170
  "data-test-id": f,
2171
2171
  className: Z("flex flex-col gap-4", t),
2172
2172
  ...p,
2173
- children: /* @__PURE__ */ K(sr.Provider, {
2173
+ children: /* @__PURE__ */ G(sr.Provider, {
2174
2174
  value: M,
2175
- children: [e, i && i.length > 0 && /* @__PURE__ */ G("div", {
2175
+ children: [e, i && i.length > 0 && /* @__PURE__ */ W("div", {
2176
2176
  className: "flex items-center gap-3",
2177
2177
  "data-test-id": f ? `${f}-buttons` : void 0,
2178
- children: i.map((e, t) => /* @__PURE__ */ G(at, { ...e }, t))
2178
+ children: i.map((e, t) => /* @__PURE__ */ W(at, { ...e }, t))
2179
2179
  })]
2180
2180
  })
2181
2181
  });
2182
2182
  }), lr = a(function({ name: e, defaultValue: t, render: n, className: r, dataTestId: i, ...a }, o) {
2183
2183
  let s = c(sr);
2184
2184
  if (!s) throw Error("FormField must be rendered inside a FormContainer.");
2185
- return /* @__PURE__ */ G("div", {
2185
+ return /* @__PURE__ */ W("div", {
2186
2186
  ref: o,
2187
2187
  className: Z(r),
2188
2188
  "data-test-id": i,
2189
2189
  ...a,
2190
- children: /* @__PURE__ */ G(be, {
2190
+ children: /* @__PURE__ */ W(xe, {
2191
2191
  control: s.control,
2192
2192
  name: e,
2193
2193
  defaultValue: t,
@@ -2207,28 +2207,28 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2207
2207
  })
2208
2208
  });
2209
2209
  }), ur = a(function({ icon: e, iconTone: t = "brand", label: n, value: r, action: i, className: a, dataTestId: o, ...s }, c) {
2210
- return /* @__PURE__ */ K("div", {
2210
+ return /* @__PURE__ */ G("div", {
2211
2211
  ref: c,
2212
2212
  "data-test-id": o,
2213
2213
  className: Z("flex items-start gap-3", a),
2214
2214
  ...s,
2215
2215
  children: [
2216
- /* @__PURE__ */ G(Sn, {
2216
+ /* @__PURE__ */ W(Sn, {
2217
2217
  icon: e,
2218
2218
  tone: t,
2219
2219
  size: "md"
2220
2220
  }),
2221
- /* @__PURE__ */ K("div", {
2221
+ /* @__PURE__ */ G("div", {
2222
2222
  className: "min-w-0 flex-1",
2223
- children: [/* @__PURE__ */ G("div", {
2223
+ children: [/* @__PURE__ */ W("div", {
2224
2224
  className: "text-p-xs font-medium uppercase tracking-widest text-fg-tertiary",
2225
2225
  children: n
2226
- }), /* @__PURE__ */ G("div", {
2226
+ }), /* @__PURE__ */ W("div", {
2227
2227
  className: "text-p-std font-semibold text-fg-default mt-1 break-words",
2228
2228
  children: r
2229
2229
  })]
2230
2230
  }),
2231
- i && /* @__PURE__ */ G("div", {
2231
+ i && /* @__PURE__ */ W("div", {
2232
2232
  className: "shrink-0 flex items-center",
2233
2233
  children: i
2234
2234
  })
@@ -2248,7 +2248,7 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2248
2248
  danger: {
2249
2249
  container: "bg-red-50 border-red-200",
2250
2250
  iconColor: "text-red-700",
2251
- DefaultIcon: _e
2251
+ DefaultIcon: ve
2252
2252
  },
2253
2253
  info: {
2254
2254
  container: "bg-blue-50 border-blue-200",
@@ -2258,47 +2258,47 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2258
2258
  discovery: {
2259
2259
  container: "bg-purple-50 border-purple-200",
2260
2260
  iconColor: "text-purple-700",
2261
- DefaultIcon: B
2261
+ DefaultIcon: z
2262
2262
  }
2263
2263
  }, fr = a(function({ variant: e = "info", title: t, description: n, onDismiss: r, actions: i, icon: a, className: o, dataTestId: s, ...c }, l) {
2264
2264
  let { container: u, iconColor: d, DefaultIcon: f } = dr[e];
2265
- return /* @__PURE__ */ K("div", {
2265
+ return /* @__PURE__ */ G("div", {
2266
2266
  ref: l,
2267
2267
  role: "alert",
2268
2268
  "data-test-id": s,
2269
2269
  className: Z("flex gap-3 p-4 border rounded-lg", u, o),
2270
2270
  ...c,
2271
2271
  children: [
2272
- /* @__PURE__ */ G("div", {
2272
+ /* @__PURE__ */ W("div", {
2273
2273
  className: Z("flex-shrink-0 mt-0.5", d),
2274
- children: a ?? /* @__PURE__ */ G(f, {
2274
+ children: a ?? /* @__PURE__ */ W(f, {
2275
2275
  className: "h-5 w-5",
2276
2276
  "aria-hidden": !0
2277
2277
  })
2278
2278
  }),
2279
- /* @__PURE__ */ K("div", {
2279
+ /* @__PURE__ */ G("div", {
2280
2280
  className: "flex-1 min-w-0",
2281
2281
  children: [
2282
- t && /* @__PURE__ */ G("div", {
2282
+ t && /* @__PURE__ */ W("div", {
2283
2283
  className: "text-p-std font-semibold text-fg-default mb-0.5",
2284
2284
  children: t
2285
2285
  }),
2286
- n && /* @__PURE__ */ G("div", {
2286
+ n && /* @__PURE__ */ W("div", {
2287
2287
  className: "text-p-std text-fg-secondary",
2288
2288
  children: n
2289
2289
  }),
2290
- i && /* @__PURE__ */ G("div", {
2290
+ i && /* @__PURE__ */ W("div", {
2291
2291
  className: "mt-3 flex flex-wrap items-center gap-2",
2292
2292
  children: i
2293
2293
  })
2294
2294
  ]
2295
2295
  }),
2296
- r && /* @__PURE__ */ G("button", {
2296
+ r && /* @__PURE__ */ W("button", {
2297
2297
  type: "button",
2298
2298
  onClick: r,
2299
2299
  "aria-label": "Dismiss",
2300
2300
  className: "flex-shrink-0 -mr-1 -mt-1 p-1 rounded-md text-fg-secondary hover:text-fg-default hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
2301
- children: /* @__PURE__ */ G(H, { className: "h-4 w-4" })
2301
+ children: /* @__PURE__ */ W(V, { className: "h-4 w-4" })
2302
2302
  })
2303
2303
  ]
2304
2304
  });
@@ -2308,7 +2308,7 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2308
2308
  target: u,
2309
2309
  rel: d ?? (u === "_blank" ? "noopener noreferrer" : void 0)
2310
2310
  };
2311
- return /* @__PURE__ */ K(Dn, {
2311
+ return /* @__PURE__ */ G(Dn, {
2312
2312
  as: "a",
2313
2313
  ref: p,
2314
2314
  variant: e,
@@ -2319,12 +2319,12 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2319
2319
  className: Z("inline-flex items-center gap-1 rounded-sm outline-none transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", r === "always" && "underline", r === "hover" && "hover:underline", s),
2320
2320
  ...m,
2321
2321
  children: [
2322
- i && /* @__PURE__ */ G("span", {
2322
+ i && /* @__PURE__ */ W("span", {
2323
2323
  className: "inline-flex shrink-0",
2324
2324
  children: i
2325
2325
  }),
2326
2326
  c,
2327
- a && /* @__PURE__ */ G("span", {
2327
+ a && /* @__PURE__ */ W("span", {
2328
2328
  className: "inline-flex shrink-0",
2329
2329
  children: a
2330
2330
  })
@@ -2352,49 +2352,49 @@ var or = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2352
2352
  if (!e) return;
2353
2353
  let t = document.activeElement;
2354
2354
  return m.current?.focus(), () => t?.focus?.();
2355
- }, [e]), e ? ye(/* @__PURE__ */ K("div", {
2355
+ }, [e]), e ? be(/* @__PURE__ */ G("div", {
2356
2356
  role: "dialog",
2357
2357
  "aria-modal": "true",
2358
2358
  "aria-labelledby": n ? "modal-title" : void 0,
2359
2359
  "aria-describedby": r ? "modal-desc" : void 0,
2360
2360
  className: "fixed inset-0 z-50 flex items-center justify-center p-4",
2361
- children: [/* @__PURE__ */ G("div", {
2361
+ children: [/* @__PURE__ */ W("div", {
2362
2362
  className: "absolute inset-0 bg-black/50",
2363
2363
  onClick: () => s && t(),
2364
2364
  "aria-hidden": !0
2365
- }), /* @__PURE__ */ K("div", {
2365
+ }), /* @__PURE__ */ G("div", {
2366
2366
  ref: Gt(m, f),
2367
2367
  tabIndex: -1,
2368
2368
  "data-test-id": d,
2369
2369
  className: Z("relative w-full bg-bg-default rounded-xl shadow-z5 outline-none flex flex-col max-h-[90vh]", mr[o], u),
2370
2370
  children: [
2371
- (n || c) && /* @__PURE__ */ K("div", {
2371
+ (n || c) && /* @__PURE__ */ G("div", {
2372
2372
  className: "flex items-start justify-between gap-4 px-6 pt-6 pb-4",
2373
- children: [/* @__PURE__ */ K("div", {
2373
+ children: [/* @__PURE__ */ G("div", {
2374
2374
  className: "flex-1 min-w-0",
2375
- children: [n && /* @__PURE__ */ G("h2", {
2375
+ children: [n && /* @__PURE__ */ W("h2", {
2376
2376
  "data-test-id": d ? `${d}-modal-title` : void 0,
2377
2377
  className: "text-h-xs font-semibold text-fg-default",
2378
2378
  children: n
2379
- }), r && /* @__PURE__ */ G("p", {
2379
+ }), r && /* @__PURE__ */ W("p", {
2380
2380
  "data-test-id": d ? `${d}-modal-subtitle` : void 0,
2381
2381
  className: "mt-1 text-p-std text-fg-secondary",
2382
2382
  children: r
2383
2383
  })]
2384
- }), c && /* @__PURE__ */ G("button", {
2384
+ }), c && /* @__PURE__ */ W("button", {
2385
2385
  type: "button",
2386
2386
  onClick: t,
2387
2387
  "aria-label": "Close",
2388
2388
  "data-test-id": d ? `${d}-modal-close-button` : void 0,
2389
2389
  className: "-mr-2 -mt-2 p-2 rounded-md text-fg-secondary hover:text-fg-default hover:bg-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
2390
- children: /* @__PURE__ */ G(H, { className: "h-5 w-5" })
2390
+ children: /* @__PURE__ */ W(V, { className: "h-5 w-5" })
2391
2391
  })]
2392
2392
  }),
2393
- i && /* @__PURE__ */ G("div", {
2393
+ i && /* @__PURE__ */ W("div", {
2394
2394
  className: "px-6 pb-6 overflow-y-auto",
2395
2395
  children: i
2396
2396
  }),
2397
- a && /* @__PURE__ */ G("div", {
2397
+ a && /* @__PURE__ */ W("div", {
2398
2398
  className: "flex items-center justify-end gap-2 px-6 py-4 border-t border-border-default bg-bg-container rounded-b-xl",
2399
2399
  children: a
2400
2400
  })
@@ -2418,14 +2418,14 @@ function yr(e, t) {
2418
2418
  return e > t ? `${t}+` : e >= 1e3 ? `${(e / 1e3).toFixed(0)}K` : String(e);
2419
2419
  }
2420
2420
  var br = a(function({ count: e = 0, max: t = 99, kind: n = "count", size: r = "lg", variant: i = "danger", children: a, showZero: o = !1, className: s, dataTestId: c, ...l }, u) {
2421
- let d = n === "dot" || e > 0 || o, f = a != null && a !== !1, p = d ? /* @__PURE__ */ G("span", {
2421
+ let d = n === "dot" || e > 0 || o, f = a != null && a !== !1, p = d ? /* @__PURE__ */ W("span", {
2422
2422
  ref: u,
2423
2423
  "data-test-id": c,
2424
2424
  className: Z("inline-flex items-center justify-center rounded-full font-semibold ring-2 ring-white", gr[i], n === "count" ? _r[r] : vr[r], f ? "absolute -top-1 -right-1" : "static", s),
2425
2425
  ...l,
2426
2426
  children: n === "count" && yr(e, t)
2427
2427
  }) : null;
2428
- return f ? /* @__PURE__ */ K("span", {
2428
+ return f ? /* @__PURE__ */ G("span", {
2429
2429
  className: "relative inline-flex",
2430
2430
  children: [a, p]
2431
2431
  }) : p;
@@ -2448,44 +2448,47 @@ function xr(e, t, n, r) {
2448
2448
  ];
2449
2449
  }
2450
2450
  var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", Cr = "text-fg-default hover:bg-bg-subtle disabled:text-fg-disabled disabled:hover:bg-transparent disabled:cursor-not-allowed", wr = a(function({ page: e, pageCount: t, onPageChange: n, siblingCount: r = 1, boundaryCount: i = 1, className: a, dataTestId: o, "aria-label": s, ...c }, l) {
2451
- let u = xr(e, t, r, i), d = e <= 1, f = e >= t;
2452
- return /* @__PURE__ */ K("nav", {
2451
+ let u = xr(e, t, r, i), d = e <= 1, f = e >= t, p = Vt(o);
2452
+ return /* @__PURE__ */ G("nav", {
2453
2453
  ref: l,
2454
2454
  "aria-label": s ?? "Pagination",
2455
2455
  "data-test-id": o,
2456
2456
  className: Z("inline-flex items-center gap-1", a),
2457
2457
  ...c,
2458
2458
  children: [
2459
- /* @__PURE__ */ G("button", {
2459
+ /* @__PURE__ */ W("button", {
2460
2460
  type: "button",
2461
2461
  onClick: () => !d && n(e - 1),
2462
- disabled: d,
2462
+ "data-test-id": p("prev-page"),
2463
2463
  "aria-label": "Previous page",
2464
2464
  className: Z(Sr, Cr),
2465
- children: /* @__PURE__ */ G(C, { className: "h-4 w-4" })
2465
+ children: /* @__PURE__ */ W(C, { className: "h-4 w-4" })
2466
2466
  }),
2467
2467
  u.map((t, r) => {
2468
- if (t === "ellipsis-left" || t === "ellipsis-right") return /* @__PURE__ */ G("span", {
2468
+ if (t === "ellipsis-left" || t === "ellipsis-right") return /* @__PURE__ */ W("span", {
2469
2469
  "aria-hidden": !0,
2470
2470
  className: "inline-flex items-center justify-center w-9 h-9 text-fg-tertiary",
2471
- children: /* @__PURE__ */ G(R, { className: "h-4 w-4" })
2471
+ children: /* @__PURE__ */ W(L, { className: "h-4 w-4" })
2472
2472
  }, `${t}-${r}`);
2473
2473
  let i = t === e;
2474
- return /* @__PURE__ */ G("button", {
2474
+ return /* @__PURE__ */ W("button", {
2475
2475
  type: "button",
2476
2476
  onClick: () => n(t),
2477
2477
  "aria-current": i ? "page" : void 0,
2478
+ "data-test-id": p("page-link"),
2479
+ "data-page": t,
2478
2480
  className: Z(Sr, i ? "bg-brand-500 text-white font-semibold hover:bg-brand-600" : "text-fg-default hover:bg-bg-subtle"),
2479
2481
  children: t
2480
2482
  }, t);
2481
2483
  }),
2482
- /* @__PURE__ */ G("button", {
2484
+ /* @__PURE__ */ W("button", {
2483
2485
  type: "button",
2484
2486
  onClick: () => !f && n(e + 1),
2485
2487
  disabled: f,
2486
2488
  "aria-label": "Next page",
2489
+ "data-test-id": p("next-page"),
2487
2490
  className: Z(Sr, Cr),
2488
- children: /* @__PURE__ */ G(w, { className: "h-4 w-4" })
2491
+ children: /* @__PURE__ */ W(w, { className: "h-4 w-4" })
2489
2492
  })
2490
2493
  ]
2491
2494
  });
@@ -2505,28 +2508,28 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2505
2508
  highlight: "border-brand-500 bg-brand-200/15 dark:bg-brand-500/10 ring-1 ring-brand-500/40",
2506
2509
  warning: "border-yellow-500 bg-yellow-50 dark:bg-yellow-900/20"
2507
2510
  }, Dr = a(function({ name: e, role: t, avatar: n, variant: r = "default", size: i = "md", badge: a, onClick: o, className: s, dataTestId: c, ...l }, u) {
2508
- let d = Tr[i], f = Er[r], p = /* @__PURE__ */ K(W, { children: [
2509
- /* @__PURE__ */ G(bt, {
2511
+ let d = Tr[i], f = Er[r], p = /* @__PURE__ */ G(U, { children: [
2512
+ /* @__PURE__ */ W(bt, {
2510
2513
  src: n,
2511
2514
  name: e,
2512
2515
  size: d.avatar
2513
2516
  }),
2514
- /* @__PURE__ */ K("div", {
2517
+ /* @__PURE__ */ G("div", {
2515
2518
  className: "min-w-0 flex-1",
2516
- children: [/* @__PURE__ */ G("div", {
2519
+ children: [/* @__PURE__ */ W("div", {
2517
2520
  className: "text-p-std font-semibold text-fg-default truncate leading-tight",
2518
2521
  children: e
2519
- }), t && /* @__PURE__ */ G("div", {
2522
+ }), t && /* @__PURE__ */ W("div", {
2520
2523
  className: "text-p-sm text-fg-secondary truncate mt-0.5 leading-tight",
2521
2524
  children: t
2522
2525
  })]
2523
2526
  }),
2524
- a && /* @__PURE__ */ G("span", {
2527
+ a && /* @__PURE__ */ W("span", {
2525
2528
  className: "shrink-0 self-center",
2526
2529
  children: a
2527
2530
  })
2528
2531
  ] }), m = Z("relative inline-flex items-center rounded-xl border transition", d.padding, d.gap, f, o && "cursor-pointer hover:shadow-z1", s);
2529
- return o ? /* @__PURE__ */ G("button", {
2532
+ return o ? /* @__PURE__ */ W("button", {
2530
2533
  ref: u,
2531
2534
  type: "button",
2532
2535
  onClick: o,
@@ -2534,7 +2537,7 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2534
2537
  className: Z(m, "text-left"),
2535
2538
  ...l,
2536
2539
  children: p
2537
- }) : /* @__PURE__ */ G("div", {
2540
+ }) : /* @__PURE__ */ W("div", {
2538
2541
  ref: u,
2539
2542
  "data-test-id": c,
2540
2543
  className: m,
@@ -2557,7 +2560,7 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2557
2560
  let f = r && i ? i / r * 100 : n, p = Math.min(100, Math.max(0, f)), m = r ? `${i}/${r}` : `${Math.round(p)}%`;
2558
2561
  if (e === "circular") {
2559
2562
  let e = o ?? Or[t], n = e - 5, r = 2 * n * Math.PI, i = kr[t];
2560
- return /* @__PURE__ */ K("div", {
2563
+ return /* @__PURE__ */ G("div", {
2561
2564
  ref: d,
2562
2565
  role: "progressbar",
2563
2566
  "aria-valuemin": 0,
@@ -2571,18 +2574,18 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2571
2574
  height: e * 2
2572
2575
  },
2573
2576
  ...u,
2574
- children: [/* @__PURE__ */ K("svg", {
2577
+ children: [/* @__PURE__ */ G("svg", {
2575
2578
  width: e * 2,
2576
2579
  height: e * 2,
2577
2580
  viewBox: `0 0 ${e * 2} ${e * 2}`,
2578
2581
  className: Z("-rotate-90", s && "animate-spin"),
2579
- children: [/* @__PURE__ */ G("circle", {
2582
+ children: [/* @__PURE__ */ W("circle", {
2580
2583
  cx: e,
2581
2584
  cy: e,
2582
2585
  r: n,
2583
2586
  strokeWidth: i,
2584
2587
  className: "fill-none stroke-bg-subtle"
2585
- }), /* @__PURE__ */ G("circle", {
2588
+ }), /* @__PURE__ */ W("circle", {
2586
2589
  cx: e,
2587
2590
  cy: e,
2588
2591
  r: n,
@@ -2594,14 +2597,14 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2594
2597
  strokeDashoffset: s ? `${r * .75}px` : `${r - r * p / 100}px`
2595
2598
  }
2596
2599
  })]
2597
- }), !a && !s && /* @__PURE__ */ G("span", {
2600
+ }), !a && !s && /* @__PURE__ */ W("span", {
2598
2601
  className: Z("absolute text-fg-secondary", jr[t]),
2599
2602
  "data-test-id": l ? `${l}-text` : void 0,
2600
2603
  children: m
2601
2604
  })]
2602
2605
  });
2603
2606
  }
2604
- return /* @__PURE__ */ K("div", {
2607
+ return /* @__PURE__ */ G("div", {
2605
2608
  ref: d,
2606
2609
  role: "progressbar",
2607
2610
  "aria-valuemin": 0,
@@ -2611,20 +2614,20 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2611
2614
  "data-test-id": l,
2612
2615
  className: Z("flex w-full items-center gap-2", c),
2613
2616
  ...u,
2614
- children: [/* @__PURE__ */ G("div", {
2617
+ children: [/* @__PURE__ */ W("div", {
2615
2618
  className: Z("w-full overflow-hidden rounded-full bg-bg-subtle", Ar[t]),
2616
- children: /* @__PURE__ */ G("div", {
2619
+ children: /* @__PURE__ */ W("div", {
2617
2620
  className: "h-full rounded-full bg-brand-500 transition-all duration-300 ease-linear",
2618
2621
  style: { width: `${p}%` }
2619
2622
  })
2620
- }), !a && /* @__PURE__ */ G("span", {
2623
+ }), !a && /* @__PURE__ */ W("span", {
2621
2624
  className: Z("shrink-0 text-fg-secondary", jr[t]),
2622
2625
  "data-test-id": l ? `${l}-text` : void 0,
2623
2626
  children: m
2624
2627
  })]
2625
2628
  });
2626
2629
  }), Nr = r(null), Pr = a(function({ name: e, label: t, value: n, defaultValue: r, onChange: i, disabled: a, required: o, error: s, errorText: c, helperText: l, size: d = "md", orientation: f = "vertical", children: p, className: m, wrapperClassName: h, dataTestId: g }, _) {
2627
- let v = u(), y = e ?? v, b = `${v}-label`, x = s || !!c, S = c ? `${v}-error` : l ? `${v}-help` : void 0, C = /* @__PURE__ */ G("div", {
2630
+ let v = u(), y = e ?? v, b = `${v}-label`, x = s || !!c, S = c ? `${v}-error` : l ? `${v}-help` : void 0, C = /* @__PURE__ */ W("div", {
2628
2631
  ref: _,
2629
2632
  role: "radiogroup",
2630
2633
  "aria-labelledby": t ? b : void 0,
@@ -2635,7 +2638,7 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2635
2638
  className: Z("flex gap-3", f === "vertical" ? "flex-col" : "flex-row flex-wrap items-center gap-4", m),
2636
2639
  children: p
2637
2640
  });
2638
- return /* @__PURE__ */ G(Nr.Provider, {
2641
+ return /* @__PURE__ */ W(Nr.Provider, {
2639
2642
  value: {
2640
2643
  name: y,
2641
2644
  value: n,
@@ -2645,24 +2648,24 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2645
2648
  size: d,
2646
2649
  error: x
2647
2650
  },
2648
- children: t || c || l ? /* @__PURE__ */ K("div", {
2651
+ children: t || c || l ? /* @__PURE__ */ G("div", {
2649
2652
  className: Z("flex flex-col gap-1.5", h),
2650
2653
  children: [
2651
- t && /* @__PURE__ */ K("span", {
2654
+ t && /* @__PURE__ */ G("span", {
2652
2655
  id: b,
2653
2656
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
2654
- children: [t, o && /* @__PURE__ */ G("span", {
2657
+ children: [t, o && /* @__PURE__ */ W("span", {
2655
2658
  className: "text-red-600",
2656
2659
  "aria-hidden": !0,
2657
2660
  children: "*"
2658
2661
  })]
2659
2662
  }),
2660
2663
  C,
2661
- c ? /* @__PURE__ */ G("p", {
2664
+ c ? /* @__PURE__ */ W("p", {
2662
2665
  id: `${v}-error`,
2663
2666
  className: "text-p-sm text-red-700",
2664
2667
  children: c
2665
- }) : l ? /* @__PURE__ */ G("p", {
2668
+ }) : l ? /* @__PURE__ */ W("p", {
2666
2669
  id: `${v}-help`,
2667
2670
  className: "text-p-sm text-fg-secondary",
2668
2671
  children: l
@@ -2678,13 +2681,13 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2678
2681
  sm: "h-1.5 w-1.5"
2679
2682
  }, Lr = a(function({ value: e, size: t, label: n, description: r, error: i = !1, id: a, disabled: o, checked: s, defaultChecked: l, onChange: d, className: f, dataTestId: p, ...m }, h) {
2680
2683
  let g = c(Nr), _ = u(), v = a ?? _, y = t ?? g?.size ?? "md", b = o ?? g?.disabled, x = i || !!g?.error, S = g !== null, C = S && g.value !== void 0 ? Ye(g.value, e) : void 0, w = S && g.defaultValue !== void 0 ? Ye(g.defaultValue, e) : void 0, T = S ? C : s, E = S ? w : l;
2681
- return /* @__PURE__ */ K("label", {
2684
+ return /* @__PURE__ */ G("label", {
2682
2685
  htmlFor: v,
2683
2686
  "data-test-id": p,
2684
2687
  className: Z("inline-flex items-center gap-2.5", b ? "cursor-not-allowed opacity-60" : "cursor-pointer", f),
2685
- children: [/* @__PURE__ */ K("span", {
2688
+ children: [/* @__PURE__ */ G("span", {
2686
2689
  className: "relative inline-flex shrink-0 items-center justify-center mt-0.5",
2687
- children: [/* @__PURE__ */ G("input", {
2690
+ children: [/* @__PURE__ */ W("input", {
2688
2691
  ref: h,
2689
2692
  id: v,
2690
2693
  type: "radio",
@@ -2699,16 +2702,16 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2699
2702
  className: "peer sr-only",
2700
2703
  "aria-invalid": x || void 0,
2701
2704
  ...m
2702
- }), /* @__PURE__ */ G("span", {
2705
+ }), /* @__PURE__ */ W("span", {
2703
2706
  className: Z("flex items-center justify-center rounded-full border bg-bg-default transition-colors", Fr[y], x ? "border-red-600" : "border-border-strong", !b && !x && "peer-hover:border-fg-tertiary", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-1", "peer-checked:border-brand-500", b && "!bg-bg-subtle !border-border-default", "[&>span]:opacity-0 peer-checked:[&>span]:opacity-100"),
2704
- children: /* @__PURE__ */ G("span", { className: Z("rounded-full bg-brand-500 transition-opacity", Ir[y], b && "!bg-fg-disabled") })
2707
+ children: /* @__PURE__ */ W("span", { className: Z("rounded-full bg-brand-500 transition-opacity", Ir[y], b && "!bg-fg-disabled") })
2705
2708
  })]
2706
- }), (n || r) && /* @__PURE__ */ K("span", {
2709
+ }), (n || r) && /* @__PURE__ */ G("span", {
2707
2710
  className: "flex flex-col gap-0.5",
2708
- children: [n && /* @__PURE__ */ G("span", {
2711
+ children: [n && /* @__PURE__ */ W("span", {
2709
2712
  className: "text-p-std font-medium text-fg-default leading-tight",
2710
2713
  children: n
2711
- }), r && /* @__PURE__ */ G("span", {
2714
+ }), r && /* @__PURE__ */ W("span", {
2712
2715
  className: "text-p-sm text-fg-secondary leading-snug",
2713
2716
  children: r
2714
2717
  })]
@@ -2719,17 +2722,17 @@ var Sr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2719
2722
  let e = !v;
2720
2723
  _ || g(e), s?.(e);
2721
2724
  };
2722
- return /* @__PURE__ */ K("div", {
2725
+ return /* @__PURE__ */ G("div", {
2723
2726
  ref: p,
2724
2727
  "data-test-id": d,
2725
2728
  className: Z("flex flex-col gap-1", l),
2726
2729
  ...f,
2727
- children: [/* @__PURE__ */ G(Dn, {
2730
+ children: [/* @__PURE__ */ W(Dn, {
2728
2731
  id: y,
2729
2732
  clamp: v ? void 0 : t,
2730
2733
  ...c,
2731
2734
  children: v ? e : n ?? e
2732
- }), /* @__PURE__ */ G("button", {
2735
+ }), /* @__PURE__ */ W("button", {
2733
2736
  type: "button",
2734
2737
  onClick: (e) => {
2735
2738
  e.stopPropagation(), b();
@@ -2884,67 +2887,94 @@ function $r(e, t, n) {
2884
2887
  //#endregion
2885
2888
  //#region src/components/SelectV2/SelectV2.tsx
2886
2889
  var ei = 36;
2887
- function ti(e) {
2888
- return /* @__PURE__ */ G(Te.DropdownIndicator, {
2890
+ function ti(e, t) {
2891
+ let { dataTestId: n } = e;
2892
+ return Vt(n)(t);
2893
+ }
2894
+ function ni(e, t) {
2895
+ return {
2889
2896
  ...e,
2890
- children: /* @__PURE__ */ G(S, {
2897
+ "data-test-id": t
2898
+ };
2899
+ }
2900
+ function ri(e) {
2901
+ return /* @__PURE__ */ W(K.Control, {
2902
+ ...e,
2903
+ innerProps: ni(e.innerProps, ti(e.selectProps, "trigger"))
2904
+ });
2905
+ }
2906
+ function ii(e) {
2907
+ let t = { "data-test-id": ti(e.selectProps, "search") };
2908
+ return /* @__PURE__ */ W(K.Input, {
2909
+ ...e,
2910
+ ...t
2911
+ });
2912
+ }
2913
+ function ai(e) {
2914
+ return /* @__PURE__ */ W(K.DropdownIndicator, {
2915
+ ...e,
2916
+ children: /* @__PURE__ */ W(S, {
2891
2917
  className: Z("h-4 w-4 transition-transform", e.selectProps.menuIsOpen && "rotate-180"),
2892
2918
  "aria-hidden": !0
2893
2919
  })
2894
2920
  });
2895
2921
  }
2896
- function ni(e) {
2897
- return /* @__PURE__ */ G(Te.ClearIndicator, {
2922
+ function oi(e) {
2923
+ return /* @__PURE__ */ W(K.ClearIndicator, {
2898
2924
  ...e,
2899
- children: /* @__PURE__ */ G(H, {
2925
+ innerProps: ni(e.innerProps, ti(e.selectProps, "clear")),
2926
+ children: /* @__PURE__ */ W(V, {
2900
2927
  className: "h-3.5 w-3.5",
2901
2928
  "aria-hidden": !0
2902
2929
  })
2903
2930
  });
2904
2931
  }
2905
- function ri(e) {
2906
- return /* @__PURE__ */ G(Te.MultiValueRemove, {
2932
+ function si(e) {
2933
+ return /* @__PURE__ */ W(K.MultiValueRemove, {
2907
2934
  ...e,
2908
- children: /* @__PURE__ */ G(H, {
2935
+ children: /* @__PURE__ */ W(V, {
2909
2936
  className: "h-3 w-3",
2910
2937
  "aria-hidden": !0
2911
2938
  })
2912
2939
  });
2913
2940
  }
2914
- function ii(e) {
2941
+ function ci(e) {
2915
2942
  let { visibleTagCount: t } = e.selectProps;
2916
- return t === void 0 || e.index < t ? /* @__PURE__ */ G(Te.MultiValue, { ...e }) : e.index === t ? /* @__PURE__ */ K("span", {
2943
+ return t === void 0 || e.index < t ? /* @__PURE__ */ W(K.MultiValue, { ...e }) : e.index === t ? /* @__PURE__ */ G("span", {
2917
2944
  className: Kr,
2918
2945
  children: ["+", (Array.isArray(e.selectProps.value) ? e.selectProps.value.length : 0) - t]
2919
2946
  }) : null;
2920
2947
  }
2921
- function ai(e) {
2922
- return /* @__PURE__ */ K(Te.Option, {
2948
+ function li(e) {
2949
+ return /* @__PURE__ */ G(K.Option, {
2923
2950
  ...e,
2924
- children: [e.children, e.isSelected && /* @__PURE__ */ G(b, {
2951
+ innerProps: ni(e.innerProps, ti(e.selectProps, `option-${String(e.data.value)}`)),
2952
+ children: [e.children, e.isSelected && /* @__PURE__ */ W(b, {
2925
2953
  className: "h-4 w-4 text-fg-brand shrink-0",
2926
2954
  "aria-hidden": !0
2927
2955
  })]
2928
2956
  });
2929
2957
  }
2930
- function oi() {
2931
- return /* @__PURE__ */ G(N, {
2958
+ function ui() {
2959
+ return /* @__PURE__ */ W(N, {
2932
2960
  className: "h-4 w-4 animate-spin text-fg-secondary",
2933
2961
  "aria-hidden": !0
2934
2962
  });
2935
2963
  }
2936
- function si(e) {
2964
+ function di(e) {
2937
2965
  let { selectAllState: t, onSelectAllToggle: n, saveSelectionState: r, onSaveSelectionToggle: i } = e.selectProps;
2938
- return /* @__PURE__ */ K(Te.Menu, {
2966
+ return /* @__PURE__ */ G(K.Menu, {
2939
2967
  ...e,
2968
+ innerProps: ni(e.innerProps, ti(e.selectProps, "content")),
2940
2969
  children: [
2941
- t && /* @__PURE__ */ G("div", {
2970
+ t && /* @__PURE__ */ W("div", {
2971
+ "data-test-id": ti(e.selectProps, "select-all"),
2942
2972
  className: "border-b border-border-default px-3 py-2",
2943
2973
  onMouseDown: (e) => e.preventDefault(),
2944
2974
  onClick: (e) => {
2945
2975
  e.preventDefault(), n?.();
2946
2976
  },
2947
- children: /* @__PURE__ */ G(Wt, {
2977
+ children: /* @__PURE__ */ W(Wt, {
2948
2978
  size: "sm",
2949
2979
  checked: t.checked,
2950
2980
  indeterminate: t.indeterminate,
@@ -2953,13 +2983,13 @@ function si(e) {
2953
2983
  })
2954
2984
  }),
2955
2985
  e.children,
2956
- r && /* @__PURE__ */ G("div", {
2986
+ r && /* @__PURE__ */ W("div", {
2957
2987
  className: "border-t border-border-default px-3 py-2",
2958
2988
  onMouseDown: (e) => e.preventDefault(),
2959
2989
  onClick: (e) => {
2960
2990
  e.preventDefault(), i?.();
2961
2991
  },
2962
- children: /* @__PURE__ */ G(Wt, {
2992
+ children: /* @__PURE__ */ W(Wt, {
2963
2993
  size: "sm",
2964
2994
  checked: r.checked,
2965
2995
  label: r.label,
@@ -2969,25 +2999,25 @@ function si(e) {
2969
2999
  ]
2970
3000
  });
2971
3001
  }
2972
- function ci(t) {
3002
+ function fi(t) {
2973
3003
  let { children: n, innerRef: r, innerProps: i, maxHeight: a } = t, o = e.toArray(n), s = p(null), c = ke({
2974
3004
  count: o.length,
2975
3005
  getScrollElement: () => s.current,
2976
3006
  estimateSize: () => ei,
2977
3007
  overscan: 8
2978
3008
  });
2979
- return /* @__PURE__ */ G("div", {
3009
+ return /* @__PURE__ */ W("div", {
2980
3010
  ...i,
2981
3011
  ref: Gt(r, s),
2982
3012
  className: "overflow-y-auto py-1",
2983
3013
  style: { maxHeight: a },
2984
- children: /* @__PURE__ */ G("div", {
3014
+ children: /* @__PURE__ */ W("div", {
2985
3015
  style: {
2986
3016
  height: c.getTotalSize(),
2987
3017
  position: "relative",
2988
3018
  width: "100%"
2989
3019
  },
2990
- children: c.getVirtualItems().map((e) => /* @__PURE__ */ G("div", {
3020
+ children: c.getVirtualItems().map((e) => /* @__PURE__ */ W("div", {
2991
3021
  style: {
2992
3022
  position: "absolute",
2993
3023
  top: 0,
@@ -3000,29 +3030,29 @@ function ci(t) {
3000
3030
  })
3001
3031
  });
3002
3032
  }
3003
- var li = a(function(e, t) {
3004
- let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: d, value: h, defaultValue: g, onChange: _, placeholder: v, label: y, labelAddons: b, helperText: x, errorText: S, error: C = !1, required: w = !0, loading: T = !1, clearable: E = !1, searchable: D, virtualized: O = !1, emptyText: k, locale: ee = "en-US", storageKey: A, saveSelectionLabel: j, size: te = "md", disabled: ne = !1, id: M, className: N, wrapperClassName: P, dataTestId: F, ...I } = e, L = e.isMulti ? !!e.singleLine : !1, R = Br[ee], re = v ?? R.placeholder, ie = k ?? R.noResults, ae = c ?? ((e) => R.createLabel(e)), oe = u(), se = M ?? oe, ce = C || !!S, z = h !== void 0, [le, ue] = m(() => {
3033
+ var pi = a(function(e, t) {
3034
+ let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: d, value: h, defaultValue: g, onChange: _, placeholder: v, label: y, labelAddons: b, helperText: x, errorText: S, error: C = !1, required: w = !0, loading: T = !1, clearable: E = !1, searchable: D, virtualized: O = !1, emptyText: k, locale: ee = "en-US", storageKey: A, saveSelectionLabel: j, size: te = "md", disabled: ne = !1, id: M, className: N, wrapperClassName: P, dataTestId: F, ...I } = e, re = e.isMulti ? !!e.singleLine : !1, L = Br[ee], ie = v ?? L.placeholder, ae = k ?? L.noResults, oe = c ?? ((e) => L.createLabel(e)), se = u(), ce = M ?? se, le = C || !!S, R = h !== void 0, [ue, de] = m(() => {
3005
3035
  if (!d) {
3006
- if (A && !z) {
3036
+ if (A && !R) {
3007
3037
  let e = Yr(A);
3008
3038
  if (e !== void 0) return e;
3009
3039
  }
3010
3040
  return g;
3011
3041
  }
3012
- }), [de, B] = m(() => {
3042
+ }), [fe, z] = m(() => {
3013
3043
  if (!d) return [];
3014
- if (A && !z) {
3044
+ if (A && !R) {
3015
3045
  let e = Yr(A);
3016
3046
  if (Array.isArray(e)) return e;
3017
3047
  }
3018
3048
  return g ?? [];
3019
- }), [fe, pe] = m(() => !!A && Xr(A)), [me, he] = m(() => {
3049
+ }), [pe, me] = m(() => !!A && Xr(A)), [he, ge] = m(() => {
3020
3050
  let e = /* @__PURE__ */ new Map();
3021
3051
  for (let t of n) e.set(String(t.value), t);
3022
3052
  if (Array.isArray(i)) for (let t of i) e.set(String(t.value), t);
3023
3053
  return e;
3024
- }), V = s((e) => {
3025
- e.length !== 0 && he((t) => {
3054
+ }), B = s((e) => {
3055
+ e.length !== 0 && ge((t) => {
3026
3056
  let n = !1, r = new Map(t);
3027
3057
  for (let t of e) {
3028
3058
  let e = String(t.value);
@@ -3032,55 +3062,55 @@ var li = a(function(e, t) {
3032
3062
  });
3033
3063
  }, []);
3034
3064
  f(() => {
3035
- V(n);
3036
- }, [n, V]);
3037
- let ge = s((e) => me.get(String(e)) ?? {
3065
+ B(n);
3066
+ }, [n, B]);
3067
+ let _e = s((e) => he.get(String(e)) ?? {
3038
3068
  value: e,
3039
3069
  label: String(e)
3040
- }, [me]), _e = z ? h : le, U = f(() => (z ? h : de) ?? [], [
3041
- z,
3070
+ }, [he]), ve = R ? h : ue, H = f(() => (R ? h : fe) ?? [], [
3071
+ R,
3042
3072
  h,
3043
- de
3044
- ]), ve = !d && _e !== void 0 ? ge(_e) : null, W = d ? U.map(ge) : [], ye = f(() => {
3045
- if (r) return (e) => Promise.resolve(r(e)).then((e) => (V(e), e));
3046
- }, [r, V]), be = s((e) => {
3073
+ fe
3074
+ ]), ye = !d && ve !== void 0 ? _e(ve) : null, U = d ? H.map(_e) : [], be = f(() => {
3075
+ if (r) return (e) => Promise.resolve(r(e)).then((e) => (B(e), e));
3076
+ }, [r, B]), xe = s((e) => {
3047
3077
  if (d) {
3048
3078
  let t = [...e ?? []];
3049
- V(t);
3079
+ B(t);
3050
3080
  let n = t.map((e) => e.value);
3051
- B(n), _?.(n);
3081
+ z(n), _?.(n);
3052
3082
  } else {
3053
3083
  let t = e;
3054
- t && V([t]), ue(t?.value), _?.(t?.value ?? void 0);
3084
+ t && B([t]), de(t?.value), _?.(t?.value ?? void 0);
3055
3085
  }
3056
3086
  }, [
3057
3087
  d,
3058
- V,
3088
+ B,
3059
3089
  _
3060
- ]), xe = s((e) => {
3090
+ ]), Se = s((e) => {
3061
3091
  let t = {
3062
3092
  value: e,
3063
3093
  label: e
3064
3094
  };
3065
- if (V([t]), o?.(e), d) {
3066
- let e = [...U, t.value];
3067
- B(e), _?.(e);
3068
- } else ue(t.value), _?.(t.value);
3095
+ if (B([t]), o?.(e), d) {
3096
+ let e = [...H, t.value];
3097
+ z(e), _?.(e);
3098
+ } else de(t.value), _?.(t.value);
3069
3099
  }, [
3070
3100
  d,
3071
- U,
3072
- V,
3101
+ H,
3102
+ B,
3073
3103
  _,
3074
3104
  o
3075
- ]), Se = !!r, Ce = D ?? (Se || a ? !0 : n.length >= 10), Te = Se ? a ? Oe : Ee : a ? De : we, ke = f(() => $r(te, ce, L), [
3105
+ ]), Ce = !!r, we = D ?? (Ce || a ? !0 : n.length >= 10), K = Ce ? a ? Oe : Ee : a ? De : Te, ke = f(() => $r(te, le, re), [
3076
3106
  te,
3077
- ce,
3078
- L
3079
- ]), Ae = p(null), je = p(null), Me = p(null), Ne = !!d && L, Pe = zr({
3107
+ le,
3108
+ re
3109
+ ]), Ae = p(null), je = p(null), Me = p(null), Ne = !!d && re, Pe = zr({
3080
3110
  wrapperRef: Ae,
3081
3111
  measureRef: je,
3082
- total: W.length,
3083
- labelsKey: W.map(qr).join("\0"),
3112
+ total: U.length,
3113
+ labelsKey: U.map(qr).join("\0"),
3084
3114
  enabled: Ne
3085
3115
  }), Fe = f(() => n.some((e) => !!e.description), [n]), Ie = f(() => {
3086
3116
  if (!n.some((e) => e.group)) return n;
@@ -3097,98 +3127,99 @@ var li = a(function(e, t) {
3097
3127
  })), n.push(r);
3098
3128
  }
3099
3129
  return t;
3100
- }, [n]), q = !!d && !Se, Le = d ? U : _e;
3130
+ }, [n]), q = !!d && !Ce, Le = d ? H : ve;
3101
3131
  l(() => {
3102
- !A || !fe || Zr(A, Le);
3132
+ !A || !pe || Zr(A, Le);
3103
3133
  }, [
3104
3134
  A,
3105
- fe,
3135
+ pe,
3106
3136
  Le
3107
3137
  ]);
3108
3138
  let Re = s(() => {
3109
- A && pe((e) => {
3139
+ A && me((e) => {
3110
3140
  let t = !e;
3111
3141
  return t ? Zr(A, Le) : Qr(A), t;
3112
3142
  });
3113
3143
  }, [A, Le]), ze = f(() => A ? {
3114
- checked: fe,
3115
- label: j ?? R.saveSelectionLabel
3144
+ checked: pe,
3145
+ label: j ?? L.saveSelectionLabel
3116
3146
  } : null, [
3117
3147
  A,
3118
- fe,
3148
+ pe,
3119
3149
  j,
3120
- R
3121
- ]), [Be, Ve] = m(""), He = s((e, t) => {
3122
- t.action === "input-change" && Ve(e);
3150
+ L
3151
+ ]), [Be, Ve] = m(""), He = s((e) => {
3152
+ Ve(e);
3123
3153
  }, []), J = f(() => q ? n.filter((e) => !e.disabled && Jr(e, Be)) : [], [
3124
3154
  q,
3125
3155
  n,
3126
3156
  Be
3127
3157
  ]), Y = f(() => {
3128
3158
  if (!q || J.length === 0) return null;
3129
- let e = new Set(U.map(String)), t = J.filter((t) => e.has(String(t.value))).length, n = t === J.length;
3159
+ let e = new Set(H.map(String)), t = J.filter((t) => e.has(String(t.value))).length, n = t === J.length;
3130
3160
  return {
3131
3161
  count: J.length,
3132
3162
  checked: n,
3133
3163
  indeterminate: t > 0 && t < J.length,
3134
- label: n ? R.clearAllLabel(J.length) : R.selectAllLabel(J.length)
3164
+ label: n ? L.clearAllLabel(J.length) : L.selectAllLabel(J.length)
3135
3165
  };
3136
3166
  }, [
3137
3167
  q,
3138
3168
  J,
3139
- U,
3140
- R
3169
+ H,
3170
+ L
3141
3171
  ]), X = s(() => {
3142
3172
  if (!Y) return;
3143
3173
  let e = new Set(J.map((e) => String(e.value))), t;
3144
- if (Y.checked) t = U.filter((t) => !e.has(String(t)));
3174
+ if (Y.checked) t = H.filter((t) => !e.has(String(t)));
3145
3175
  else {
3146
- V(J);
3147
- let e = new Set(U.map(String));
3148
- t = [...U, ...J.filter((t) => !e.has(String(t.value))).map((e) => e.value)];
3176
+ B(J);
3177
+ let e = new Set(H.map(String));
3178
+ t = [...H, ...J.filter((t) => !e.has(String(t.value))).map((e) => e.value)];
3149
3179
  }
3150
- B(t), _?.(t), Me.current?.onMenuClose();
3180
+ z(t), _?.(t), Me.current?.onMenuClose();
3151
3181
  }, [
3152
3182
  Y,
3153
3183
  J,
3154
- U,
3155
- V,
3184
+ H,
3185
+ B,
3156
3186
  _
3157
3187
  ]), Ue = {
3158
3188
  ...I,
3159
- inputId: se,
3189
+ dataTestId: F,
3190
+ inputId: ce,
3160
3191
  unstyled: !0,
3161
3192
  classNames: ke,
3162
3193
  className: N,
3163
3194
  isMulti: d,
3164
3195
  options: Ie,
3165
- loadOptions: ye,
3196
+ loadOptions: be,
3166
3197
  defaultOptions: i,
3167
- value: d ? W : ve,
3168
- onChange: be,
3169
- onCreateOption: a ? xe : void 0,
3170
- formatCreateLabel: a ? ae : void 0,
3198
+ value: d ? U : ye,
3199
+ onChange: xe,
3200
+ onCreateOption: a ? Se : void 0,
3201
+ formatCreateLabel: a ? oe : void 0,
3171
3202
  getOptionValue: (e) => String(e.value),
3172
3203
  getOptionLabel: qr,
3173
- formatOptionLabel: (e, t) => t.context === "value" ? e.label : Fe && e.description ? /* @__PURE__ */ K("span", {
3204
+ formatOptionLabel: (e, t) => t.context === "value" ? e.label : Fe && e.description ? /* @__PURE__ */ G("span", {
3174
3205
  className: "flex flex-col min-w-0",
3175
- children: [/* @__PURE__ */ G("span", {
3206
+ children: [/* @__PURE__ */ W("span", {
3176
3207
  className: "truncate",
3177
3208
  children: e.label
3178
- }), /* @__PURE__ */ G("span", {
3209
+ }), /* @__PURE__ */ W("span", {
3179
3210
  className: "truncate text-p-sm text-fg-secondary",
3180
3211
  children: e.description
3181
3212
  })]
3182
3213
  }) : e.label,
3183
3214
  isOptionDisabled: (e) => !!e.disabled,
3184
- placeholder: re,
3215
+ placeholder: ie,
3185
3216
  isDisabled: ne || T,
3186
3217
  isClearable: E,
3187
- isSearchable: Ce,
3218
+ isSearchable: we,
3188
3219
  isLoading: T || void 0,
3189
- noOptionsMessage: () => ie,
3190
- loadingMessage: () => R.loadingMessage,
3191
- "aria-invalid": ce || void 0,
3220
+ noOptionsMessage: () => ae,
3221
+ loadingMessage: () => L.loadingMessage,
3222
+ "aria-invalid": le || void 0,
3192
3223
  "aria-required": w || void 0,
3193
3224
  ...q ? {
3194
3225
  inputValue: Be,
@@ -3207,42 +3238,44 @@ var li = a(function(e, t) {
3207
3238
  } : {},
3208
3239
  menuPlacement: I.menuPlacement ?? "auto",
3209
3240
  components: {
3210
- DropdownIndicator: ti,
3211
- ClearIndicator: ni,
3212
- MultiValueRemove: ri,
3213
- LoadingIndicator: oi,
3241
+ Control: ri,
3242
+ Menu: di,
3243
+ ...we ? { Input: ii } : {},
3244
+ DropdownIndicator: ai,
3245
+ ClearIndicator: oi,
3246
+ MultiValueRemove: si,
3247
+ LoadingIndicator: ui,
3214
3248
  IndicatorSeparator: () => null,
3215
- ...O ? { MenuList: ci } : {},
3216
- ...q || ze ? { Menu: si } : {},
3217
- ...Ne ? { MultiValue: ii } : {},
3218
- Option: ai
3249
+ ...O ? { MenuList: fi } : {},
3250
+ ...Ne ? { MultiValue: ci } : {},
3251
+ Option: li
3219
3252
  }
3220
3253
  };
3221
- return /* @__PURE__ */ K("div", {
3254
+ return /* @__PURE__ */ G("div", {
3222
3255
  ref: Ae,
3223
3256
  "data-test-id": F,
3224
3257
  className: Z("flex flex-col gap-1.5 w-full", P),
3225
3258
  children: [
3226
- (y || b) && /* @__PURE__ */ K("div", {
3259
+ (y || b) && /* @__PURE__ */ G("div", {
3227
3260
  className: "flex items-center gap-1.5",
3228
- children: [y && /* @__PURE__ */ K("label", {
3229
- htmlFor: se,
3261
+ children: [y && /* @__PURE__ */ G("label", {
3262
+ htmlFor: ce,
3230
3263
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
3231
- children: [y, w && /* @__PURE__ */ G("span", {
3264
+ children: [y, w && /* @__PURE__ */ W("span", {
3232
3265
  className: "text-fg-danger",
3233
3266
  "aria-hidden": !0,
3234
3267
  children: "*"
3235
3268
  })]
3236
- }), b && /* @__PURE__ */ G("span", {
3269
+ }), b && /* @__PURE__ */ W("span", {
3237
3270
  className: "inline-flex items-center gap-1",
3238
3271
  children: b
3239
3272
  })]
3240
3273
  }),
3241
- /* @__PURE__ */ G(Te, {
3274
+ /* @__PURE__ */ W(K, {
3242
3275
  ref: Gt(t, Me),
3243
3276
  ...Ue
3244
3277
  }),
3245
- Ne && /* @__PURE__ */ K("div", {
3278
+ Ne && /* @__PURE__ */ G("div", {
3246
3279
  ref: je,
3247
3280
  "aria-hidden": !0,
3248
3281
  className: "flex items-center gap-1 whitespace-nowrap",
@@ -3252,109 +3285,109 @@ var li = a(function(e, t) {
3252
3285
  left: -9999,
3253
3286
  visibility: "hidden"
3254
3287
  },
3255
- children: [W.map((e) => /* @__PURE__ */ K("span", {
3288
+ children: [U.map((e) => /* @__PURE__ */ G("span", {
3256
3289
  "data-measure-chip": !0,
3257
3290
  className: "flex items-center gap-1 rounded-md bg-bg-subtle pl-2 pr-1 py-0.5 max-w-full",
3258
- children: [/* @__PURE__ */ G("span", {
3291
+ children: [/* @__PURE__ */ W("span", {
3259
3292
  className: "truncate text-p-sm text-fg-default",
3260
3293
  children: qr(e)
3261
- }), /* @__PURE__ */ G("span", {
3294
+ }), /* @__PURE__ */ W("span", {
3262
3295
  className: "rounded-sm text-fg-secondary hover:bg-bg-container hover:text-fg-default cursor-pointer",
3263
- children: /* @__PURE__ */ G(H, {
3296
+ children: /* @__PURE__ */ W(V, {
3264
3297
  className: "h-3 w-3",
3265
3298
  "aria-hidden": !0
3266
3299
  })
3267
3300
  })]
3268
- }, String(e.value))), /* @__PURE__ */ G("span", {
3301
+ }, String(e.value))), /* @__PURE__ */ W("span", {
3269
3302
  "data-measure-badge": !0,
3270
3303
  className: "flex items-center rounded-md bg-bg-info-lighter px-2 py-0.5 text-p-sm text-blue-800 dark:text-blue-300 shrink-0"
3271
3304
  })]
3272
3305
  }),
3273
- S ? /* @__PURE__ */ G("p", {
3274
- id: `${se}-error`,
3306
+ S ? /* @__PURE__ */ W("p", {
3307
+ id: `${ce}-error`,
3275
3308
  className: "text-p-sm text-fg-danger",
3276
3309
  children: S
3277
- }) : x ? /* @__PURE__ */ G("p", {
3278
- id: `${se}-help`,
3310
+ }) : x ? /* @__PURE__ */ W("p", {
3311
+ id: `${ce}-help`,
3279
3312
  className: "text-p-sm text-fg-secondary",
3280
3313
  children: x
3281
3314
  }) : null
3282
3315
  ]
3283
3316
  });
3284
- }), ui = r(null);
3285
- function di() {
3286
- return c(ui) ?? {
3317
+ }), mi = r(null);
3318
+ function hi() {
3319
+ return c(mi) ?? {
3287
3320
  collapsed: !1,
3288
3321
  toggle: () => {}
3289
3322
  };
3290
3323
  }
3291
- var fi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, children: r, className: i, logo: a, title: o, subtitle: s, dataTestId: c, ...l }, u) {
3324
+ var gi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, children: r, className: i, logo: a, title: o, subtitle: s, dataTestId: c, ...l }, u) {
3292
3325
  let [d, f] = m(e), p = t !== void 0, h = p ? t : d, g = () => {
3293
3326
  let e = !h;
3294
3327
  p || f(e), n?.(e);
3295
3328
  };
3296
- return /* @__PURE__ */ G(ui.Provider, {
3329
+ return /* @__PURE__ */ W(mi.Provider, {
3297
3330
  value: {
3298
3331
  collapsed: h,
3299
3332
  toggle: g
3300
3333
  },
3301
- children: /* @__PURE__ */ K("aside", {
3334
+ children: /* @__PURE__ */ G("aside", {
3302
3335
  ref: u,
3303
3336
  "data-test-id": c,
3304
3337
  className: Z("flex flex-col bg-bg-default border-r border-border-default transition-all duration-200", h ? "w-16" : "w-64", i),
3305
3338
  ...l,
3306
- children: [/* @__PURE__ */ K("div", {
3339
+ children: [/* @__PURE__ */ G("div", {
3307
3340
  className: Z("flex items-center gap-3 px-4 py-4 border-b border-border-default", h && "justify-center px-2"),
3308
3341
  children: [
3309
- a && /* @__PURE__ */ G("div", {
3342
+ a && /* @__PURE__ */ W("div", {
3310
3343
  className: "shrink-0",
3311
3344
  children: a
3312
3345
  }),
3313
- !h && /* @__PURE__ */ K("div", {
3346
+ !h && /* @__PURE__ */ G("div", {
3314
3347
  className: "flex flex-col min-w-0",
3315
- children: [o && /* @__PURE__ */ G("div", {
3348
+ children: [o && /* @__PURE__ */ W("div", {
3316
3349
  className: "text-p-md font-semibold text-fg-default truncate",
3317
3350
  children: o
3318
- }), s && /* @__PURE__ */ G("div", {
3351
+ }), s && /* @__PURE__ */ W("div", {
3319
3352
  className: "text-p-sm text-fg-secondary truncate",
3320
3353
  children: s
3321
3354
  })]
3322
3355
  }),
3323
- /* @__PURE__ */ G("button", {
3356
+ /* @__PURE__ */ W("button", {
3324
3357
  type: "button",
3325
3358
  onClick: g,
3326
3359
  "aria-label": h ? "Expand sidebar" : "Collapse sidebar",
3327
3360
  className: Z("ml-auto inline-flex items-center justify-center h-8 w-8 rounded-md text-fg-secondary hover:bg-bg-subtle hover:text-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", h && "ml-0"),
3328
- children: /* @__PURE__ */ G(P, { className: "h-4 w-4" })
3361
+ children: /* @__PURE__ */ W(P, { className: "h-4 w-4" })
3329
3362
  })
3330
3363
  ]
3331
- }), /* @__PURE__ */ G("nav", {
3364
+ }), /* @__PURE__ */ W("nav", {
3332
3365
  className: "flex-1 overflow-y-auto p-2 flex flex-col gap-0.5",
3333
3366
  children: r
3334
3367
  })]
3335
3368
  })
3336
3369
  });
3337
- }), pi = a(function({ icon: e, label: t, active: n, badge: r, children: i, onClick: a, href: o, className: s, dataTestId: c, ...l }, u) {
3338
- let { collapsed: d } = di(), [f, p] = m(n ?? !1), h = !!i, g = /* @__PURE__ */ K(W, { children: [e && /* @__PURE__ */ G("span", {
3370
+ }), _i = a(function({ icon: e, label: t, active: n, badge: r, children: i, onClick: a, href: o, className: s, dataTestId: c, ...l }, u) {
3371
+ let { collapsed: d } = hi(), [f, p] = m(n ?? !1), h = !!i, g = /* @__PURE__ */ G(U, { children: [e && /* @__PURE__ */ W("span", {
3339
3372
  className: "inline-flex shrink-0",
3340
3373
  children: e
3341
- }), !d && /* @__PURE__ */ K(W, { children: [
3342
- /* @__PURE__ */ G("span", {
3374
+ }), !d && /* @__PURE__ */ G(U, { children: [
3375
+ /* @__PURE__ */ W("span", {
3343
3376
  className: "flex-1 truncate text-left",
3344
3377
  children: t
3345
3378
  }),
3346
- r && /* @__PURE__ */ G("span", {
3379
+ r && /* @__PURE__ */ W("span", {
3347
3380
  className: "shrink-0",
3348
3381
  children: r
3349
3382
  }),
3350
- h && /* @__PURE__ */ G(w, {
3383
+ h && /* @__PURE__ */ W(w, {
3351
3384
  className: Z("h-4 w-4 shrink-0 text-fg-tertiary transition-transform", f && "rotate-90"),
3352
3385
  "aria-hidden": !0
3353
3386
  })
3354
3387
  ] })] }), _ = () => {
3355
3388
  h && p((e) => !e), a?.();
3356
3389
  }, v = Z("group relative flex items-center gap-3 rounded-md px-3 py-2 text-p-std font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", d && "px-2 justify-center", n ? "bg-brand-20 text-brand-800 before:absolute before:left-0 before:top-1/2 before:-translate-y-1/2 before:h-5 before:w-0.5 before:rounded-r before:bg-brand-500" : "text-fg-default hover:bg-bg-container", s);
3357
- return /* @__PURE__ */ K(W, { children: [o ? /* @__PURE__ */ G("a", {
3390
+ return /* @__PURE__ */ G(U, { children: [o ? /* @__PURE__ */ W("a", {
3358
3391
  ref: u,
3359
3392
  href: o,
3360
3393
  onClick: _,
@@ -3362,7 +3395,7 @@ var fi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3362
3395
  className: v,
3363
3396
  ...l,
3364
3397
  children: g
3365
- }) : /* @__PURE__ */ G("button", {
3398
+ }) : /* @__PURE__ */ W("button", {
3366
3399
  ref: u,
3367
3400
  type: "button",
3368
3401
  onClick: _,
@@ -3370,16 +3403,16 @@ var fi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3370
3403
  className: Z(v, "w-full"),
3371
3404
  ...l,
3372
3405
  children: g
3373
- }), h && f && !d && /* @__PURE__ */ G("div", {
3406
+ }), h && f && !d && /* @__PURE__ */ W("div", {
3374
3407
  className: "flex flex-col gap-0.5 pl-8",
3375
3408
  children: i
3376
3409
  })] });
3377
- }), mi = {
3410
+ }), vi = {
3378
3411
  text: "h-[1em] mb-[0.4em] origin-[0%_55%] scale-y-[0.6] rounded-sm",
3379
3412
  circular: "size-10 rounded-full",
3380
3413
  rectangular: "h-4 w-full",
3381
3414
  rounded: "h-4 w-full rounded-md"
3382
- }, hi = {
3415
+ }, yi = {
3383
3416
  pulse: "animate-pulse",
3384
3417
  wave: [
3385
3418
  "relative overflow-hidden",
@@ -3389,27 +3422,27 @@ var fi = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3389
3422
  ].join(" "),
3390
3423
  none: ""
3391
3424
  };
3392
- function gi(e) {
3425
+ function bi(e) {
3393
3426
  if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
3394
3427
  }
3395
- var _i = a(function({ variant: e = "text", animation: t = "pulse", width: n, height: r, count: i = 1, children: a, style: o, className: s, dataTestId: c, ...l }, u) {
3428
+ var xi = a(function({ variant: e = "text", animation: t = "pulse", width: n, height: r, count: i = 1, children: a, style: o, className: s, dataTestId: c, ...l }, u) {
3396
3429
  let d = a != null, f = Math.max(1, i), p = {
3397
- ...n === void 0 ? null : { width: gi(n) },
3398
- ...r === void 0 ? null : { height: gi(r) },
3430
+ ...n === void 0 ? null : { width: bi(n) },
3431
+ ...r === void 0 ? null : { height: bi(r) },
3399
3432
  ...o
3400
- }, m = Z("block bg-bg-subtle leading-none", mi[e], hi[t]);
3401
- return d ? /* @__PURE__ */ G("span", {
3433
+ }, m = Z("block bg-bg-subtle leading-none", vi[e], yi[t]);
3434
+ return d ? /* @__PURE__ */ W("span", {
3402
3435
  ref: u,
3403
3436
  "data-test-id": c,
3404
3437
  className: Z(m, "inline-block h-auto w-auto scale-100", s),
3405
3438
  style: p,
3406
3439
  ...l,
3407
- children: /* @__PURE__ */ G("span", {
3440
+ children: /* @__PURE__ */ W("span", {
3408
3441
  className: "invisible inline-block",
3409
3442
  "aria-hidden": !0,
3410
3443
  children: a
3411
3444
  })
3412
- }) : f === 1 ? /* @__PURE__ */ G("span", {
3445
+ }) : f === 1 ? /* @__PURE__ */ W("span", {
3413
3446
  ref: u,
3414
3447
  "data-test-id": c,
3415
3448
  className: Z(m, s),
@@ -3417,12 +3450,12 @@ var _i = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3417
3450
  role: "status",
3418
3451
  "aria-label": "Loading",
3419
3452
  ...l
3420
- }) : /* @__PURE__ */ G("span", {
3453
+ }) : /* @__PURE__ */ W("span", {
3421
3454
  ref: u,
3422
3455
  "data-test-id": c,
3423
3456
  className: Z("block", s),
3424
3457
  ...l,
3425
- children: Array.from({ length: f }, (e, t) => /* @__PURE__ */ G("span", {
3458
+ children: Array.from({ length: f }, (e, t) => /* @__PURE__ */ W("span", {
3426
3459
  className: m,
3427
3460
  style: p,
3428
3461
  "aria-hidden": t !== 0 || void 0,
@@ -3430,7 +3463,7 @@ var _i = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3430
3463
  "aria-label": t === 0 ? "Loading" : void 0
3431
3464
  }, t))
3432
3465
  });
3433
- }), vi = {
3466
+ }), Si = {
3434
3467
  success: {
3435
3468
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3436
3469
  icon: x
@@ -3441,7 +3474,7 @@ var _i = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3441
3474
  },
3442
3475
  danger: {
3443
3476
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3444
- icon: _e
3477
+ icon: ve
3445
3478
  },
3446
3479
  info: {
3447
3480
  container: "bg-gray-900 dark:bg-gray-700 text-white",
@@ -3451,26 +3484,26 @@ var _i = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3451
3484
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3452
3485
  icon: M
3453
3486
  }
3454
- }, yi = {
3487
+ }, Ci = {
3455
3488
  success: "text-green-400",
3456
3489
  warning: "text-yellow-300",
3457
3490
  danger: "text-red-400",
3458
3491
  info: "text-blue-400",
3459
3492
  neutral: "text-white/70"
3460
- }, bi = {
3493
+ }, wi = {
3461
3494
  "top-left": "top-6 left-4",
3462
3495
  "top-center": "top-6 left-1/2 -translate-x-1/2",
3463
3496
  "top-right": "top-6 right-4",
3464
3497
  "bottom-left": "bottom-6 left-4",
3465
3498
  "bottom-center": "bottom-6 left-1/2 -translate-x-1/2",
3466
3499
  "bottom-right": "bottom-6 right-4"
3467
- }, xi = r(null);
3468
- function Si() {
3469
- let e = c(xi);
3500
+ }, Ti = r(null);
3501
+ function Ei() {
3502
+ let e = c(Ti);
3470
3503
  if (!e) throw Error("useSnackbar must be used inside <SnackbarProvider>");
3471
3504
  return e;
3472
3505
  }
3473
- function Ci({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3506
+ function Di({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3474
3507
  let [r, i] = m([]), a = p(/* @__PURE__ */ new Map()), o = s((e) => {
3475
3508
  i((t) => t.filter((t) => t.id !== e));
3476
3509
  let t = a.current.get(e);
@@ -3493,32 +3526,32 @@ function Ci({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3493
3526
  return () => {
3494
3527
  e.forEach(clearTimeout), e.clear();
3495
3528
  };
3496
- }, []), /* @__PURE__ */ K(xi.Provider, {
3529
+ }, []), /* @__PURE__ */ G(Ti.Provider, {
3497
3530
  value: {
3498
3531
  show: c,
3499
3532
  dismiss: o
3500
3533
  },
3501
- children: [e, ye(/* @__PURE__ */ G(W, { children: Object.keys(bi).map((e) => {
3534
+ children: [e, be(/* @__PURE__ */ W(U, { children: Object.keys(wi).map((e) => {
3502
3535
  let i = r.filter((t) => (t.position ?? n) === e);
3503
- return i.length === 0 ? null : /* @__PURE__ */ G("div", {
3536
+ return i.length === 0 ? null : /* @__PURE__ */ W("div", {
3504
3537
  "data-test-id": t,
3505
- className: Z("fixed z-100 flex flex-col gap-2 w-[min(400px,calc(100vw-2rem))] pointer-events-none", bi[e]),
3538
+ className: Z("fixed z-100 flex flex-col gap-2 w-[min(400px,calc(100vw-2rem))] pointer-events-none", wi[e]),
3506
3539
  children: i.map((e) => {
3507
- let { container: t, icon: n } = vi[e.variant ?? "neutral"];
3508
- return /* @__PURE__ */ K("div", {
3540
+ let { container: t, icon: n } = Si[e.variant ?? "neutral"];
3541
+ return /* @__PURE__ */ G("div", {
3509
3542
  role: "status",
3510
3543
  "data-test-id": e.dataTestId,
3511
3544
  className: Z("pointer-events-auto flex items-center gap-3 px-4 py-3 rounded-lg shadow-z4", t),
3512
3545
  children: [
3513
- /* @__PURE__ */ G(n, {
3514
- className: Z("h-5 w-5 shrink-0", yi[e.variant ?? "neutral"]),
3546
+ /* @__PURE__ */ W(n, {
3547
+ className: Z("h-5 w-5 shrink-0", Ci[e.variant ?? "neutral"]),
3515
3548
  "aria-hidden": !0
3516
3549
  }),
3517
- /* @__PURE__ */ G("p", {
3550
+ /* @__PURE__ */ W("p", {
3518
3551
  className: "flex-1 text-p-std",
3519
3552
  children: e.message
3520
3553
  }),
3521
- e.action && /* @__PURE__ */ G("button", {
3554
+ e.action && /* @__PURE__ */ W("button", {
3522
3555
  type: "button",
3523
3556
  onClick: () => {
3524
3557
  e.action?.onClick(), o(e.id);
@@ -3526,12 +3559,12 @@ function Ci({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3526
3559
  className: "text-p-std font-semibold text-brand-400 hover:text-brand-300 px-1",
3527
3560
  children: e.action.label
3528
3561
  }),
3529
- /* @__PURE__ */ G("button", {
3562
+ /* @__PURE__ */ W("button", {
3530
3563
  type: "button",
3531
3564
  onClick: () => o(e.id),
3532
3565
  "aria-label": "Close",
3533
3566
  className: "shrink-0 p-1 rounded-md text-white/70 hover:text-white hover:bg-white/10",
3534
- children: /* @__PURE__ */ G(H, { className: "h-4 w-4" })
3567
+ children: /* @__PURE__ */ W(V, { className: "h-4 w-4" })
3535
3568
  })
3536
3569
  ]
3537
3570
  }, e.id);
@@ -3542,15 +3575,15 @@ function Ci({ children: e, dataTestId: t, position: n = "bottom-center" }) {
3542
3575
  }
3543
3576
  //#endregion
3544
3577
  //#region src/components/Status/Status.tsx
3545
- var wi = {
3578
+ var Oi = {
3546
3579
  lg: "h-7 px-2.5 text-p-std gap-1.5",
3547
3580
  md: "h-6 px-2 text-p-sm gap-1.5",
3548
3581
  sm: "h-5 px-1.5 text-p-sm gap-1"
3549
- }, Ti = {
3582
+ }, ki = {
3550
3583
  lg: "h-2 w-2",
3551
3584
  md: "h-1.5 w-1.5",
3552
3585
  sm: "h-1.5 w-1.5"
3553
- }, Ei = {
3586
+ }, Ai = {
3554
3587
  general: {
3555
3588
  container: "bg-bg-subtle text-fg-default dark:text-fg-default",
3556
3589
  dot: "bg-gray-600 dark:bg-gray-400"
@@ -3583,102 +3616,102 @@ var wi = {
3583
3616
  container: "bg-bg-subtle text-fg-disabled",
3584
3617
  dot: "bg-border-strong"
3585
3618
  }
3586
- }, Di = a(function({ variant: e = "general", size: t = "md", leftIcon: n, rightIcon: r, dot: i = !0, className: a, children: o, dataTestId: s, ...c }, l) {
3587
- let { container: u, dot: d } = Ei[e];
3588
- return /* @__PURE__ */ K("span", {
3619
+ }, ji = a(function({ variant: e = "general", size: t = "md", leftIcon: n, rightIcon: r, dot: i = !0, className: a, children: o, dataTestId: s, ...c }, l) {
3620
+ let { container: u, dot: d } = Ai[e];
3621
+ return /* @__PURE__ */ G("span", {
3589
3622
  ref: l,
3590
3623
  "data-test-id": s,
3591
- className: Z("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", wi[t], u, a),
3624
+ className: Z("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", Oi[t], u, a),
3592
3625
  ...c,
3593
3626
  children: [
3594
- n ? /* @__PURE__ */ G("span", {
3627
+ n ? /* @__PURE__ */ W("span", {
3595
3628
  className: "inline-flex shrink-0",
3596
3629
  children: n
3597
- }) : i ? /* @__PURE__ */ G("span", {
3598
- className: Z("inline-block shrink-0 rounded-full", Ti[t], d),
3630
+ }) : i ? /* @__PURE__ */ W("span", {
3631
+ className: Z("inline-block shrink-0 rounded-full", ki[t], d),
3599
3632
  "aria-hidden": !0
3600
3633
  }) : null,
3601
3634
  o,
3602
- r && /* @__PURE__ */ G("span", {
3635
+ r && /* @__PURE__ */ W("span", {
3603
3636
  className: "inline-flex shrink-0",
3604
3637
  children: r
3605
3638
  })
3606
3639
  ]
3607
3640
  });
3608
- }), Oi = {
3641
+ }), Mi = {
3609
3642
  lg: "size-9",
3610
3643
  sm: "size-6"
3611
- }, ki = {
3644
+ }, Ni = {
3612
3645
  lg: "h-9",
3613
3646
  sm: "h-6"
3614
- }, Ai = {
3647
+ }, Pi = {
3615
3648
  lg: "border-2",
3616
3649
  sm: "border"
3617
- }, ji = {
3650
+ }, Fi = {
3618
3651
  lg: "text-p-std",
3619
3652
  sm: "text-p-xs"
3620
- }, Mi = {
3653
+ }, Ii = {
3621
3654
  lg: "size-5",
3622
3655
  sm: "size-3.5"
3623
- }, Ni = {
3656
+ }, Li = {
3624
3657
  lg: "size-3",
3625
3658
  sm: "size-2"
3626
- }, Pi = {
3659
+ }, Ri = {
3627
3660
  lg: "text-p-std",
3628
3661
  sm: "text-p-sm"
3629
- }, Fi = {
3662
+ }, zi = {
3630
3663
  lg: "text-p-sm",
3631
3664
  sm: "text-p-xs"
3632
- }, Ii = {
3665
+ }, Bi = {
3633
3666
  upcoming: "bg-bg-default border-border-strong text-fg-tertiary",
3634
3667
  active: "bg-bg-default border-brand-500 text-brand-700",
3635
3668
  completed: "bg-brand-500 border-brand-500 text-fg-inverse",
3636
3669
  rejected: "bg-red-700 border-red-800 text-fg-inverse"
3637
- }, Li = {
3670
+ }, Vi = {
3638
3671
  upcoming: "ring-4 ring-gray-100/80",
3639
3672
  active: "ring-4 ring-brand-40/80",
3640
3673
  completed: "ring-4 ring-brand-40/80",
3641
3674
  rejected: "ring-4 ring-red-100/80"
3642
3675
  };
3643
- function Ri(e, t, n, r) {
3644
- return t === "completed" ? /* @__PURE__ */ G(E, { className: Mi[r] }) : t === "rejected" ? /* @__PURE__ */ G(D, { className: Mi[r] }) : e === "number" ? n + 1 : e === "dot" ? /* @__PURE__ */ G("span", { className: Z("rounded-full", Ni[r], t === "active" ? "bg-brand-500" : "bg-transparent") }) : null;
3676
+ function Hi(e, t, n, r) {
3677
+ return t === "completed" ? /* @__PURE__ */ W(E, { className: Ii[r] }) : t === "rejected" ? /* @__PURE__ */ W(D, { className: Ii[r] }) : e === "number" ? n + 1 : e === "dot" ? /* @__PURE__ */ W("span", { className: Z("rounded-full", Li[r], t === "active" ? "bg-brand-500" : "bg-transparent") }) : null;
3645
3678
  }
3646
- var zi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "number", orientation: i = "horizontal", size: a = "lg", className: o, dataTestId: s, ...c }, l) {
3679
+ var Ui = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "number", orientation: i = "horizontal", size: a = "lg", className: o, dataTestId: s, ...c }, l) {
3647
3680
  let u = i === "vertical", d = (e) => (e?.status ?? "upcoming") === "completed";
3648
- return /* @__PURE__ */ G("ol", {
3681
+ return /* @__PURE__ */ W("ol", {
3649
3682
  ref: l,
3650
3683
  "data-test-id": s,
3651
3684
  className: Z("flex", u ? "flex-col" : "w-full items-start", o),
3652
3685
  ...c,
3653
3686
  children: e.map((i, o) => {
3654
- let s = i.status ?? "upcoming", c = o === 0, l = o === e.length - 1, f = !c && d(e[o - 1]), p = !l && d(i), m = /* @__PURE__ */ G("span", {
3655
- className: Z("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full font-semibold transition-colors", Oi[a], Ai[a], ji[a], Ii[s], i.highlighted && Li[s]),
3656
- children: Ri(r, s, o, a)
3657
- }), h = /* @__PURE__ */ K("div", {
3687
+ let s = i.status ?? "upcoming", c = o === 0, l = o === e.length - 1, f = !c && d(e[o - 1]), p = !l && d(i), m = /* @__PURE__ */ W("span", {
3688
+ className: Z("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full font-semibold transition-colors", Mi[a], Pi[a], Fi[a], Bi[s], i.highlighted && Vi[s]),
3689
+ children: Hi(r, s, o, a)
3690
+ }), h = /* @__PURE__ */ G("div", {
3658
3691
  className: Z("flex flex-col", u ? "gap-0.5 pb-6" : "mt-2 items-center gap-0.5 text-center"),
3659
- children: [/* @__PURE__ */ G("span", {
3660
- className: Z("font-medium text-fg-default", Pi[a]),
3692
+ children: [/* @__PURE__ */ W("span", {
3693
+ className: Z("font-medium text-fg-default", Ri[a]),
3661
3694
  children: i.label
3662
- }), i.description && /* @__PURE__ */ G("span", {
3663
- className: Z("text-fg-secondary", Fi[a]),
3695
+ }), i.description && /* @__PURE__ */ W("span", {
3696
+ className: Z("text-fg-secondary", zi[a]),
3664
3697
  children: i.description
3665
3698
  })]
3666
3699
  });
3667
- return /* @__PURE__ */ K("li", {
3700
+ return /* @__PURE__ */ G("li", {
3668
3701
  "aria-current": Ye(i.value, t) ? "step" : void 0,
3669
3702
  className: Z("relative flex", u ? "flex-row gap-3" : "flex-1 basis-0 min-w-0 flex-col"),
3670
- children: [/* @__PURE__ */ K("div", {
3671
- className: Z("relative flex shrink-0", u ? "w-9 flex-col items-center justify-center" : Z("w-full items-center justify-center", ki[a])),
3703
+ children: [/* @__PURE__ */ G("div", {
3704
+ className: Z("relative flex shrink-0", u ? "w-9 flex-col items-center justify-center" : Z("w-full items-center justify-center", Ni[a])),
3672
3705
  children: [
3673
- !c && /* @__PURE__ */ G("span", {
3706
+ !c && /* @__PURE__ */ W("span", {
3674
3707
  "aria-hidden": !0,
3675
3708
  className: Z("absolute", u ? "left-1/2 top-0 bottom-1/2 w-0.5 -translate-x-1/2" : "left-0 right-1/2 top-1/2 h-0.5 -translate-y-1/2", f ? "bg-brand-500" : "bg-border-default")
3676
3709
  }),
3677
- !l && /* @__PURE__ */ G("span", {
3710
+ !l && /* @__PURE__ */ W("span", {
3678
3711
  "aria-hidden": !0,
3679
3712
  className: Z("absolute", u ? "left-1/2 top-1/2 bottom-0 w-0.5 -translate-x-1/2" : "left-1/2 right-0 top-1/2 h-0.5 -translate-y-1/2", p ? "bg-brand-500" : "bg-border-default")
3680
3713
  }),
3681
- n ? /* @__PURE__ */ G("button", {
3714
+ n ? /* @__PURE__ */ W("button", {
3682
3715
  type: "button",
3683
3716
  onClick: () => n(i.value),
3684
3717
  "aria-label": typeof i.label == "string" ? i.label : void 0,
@@ -3690,17 +3723,17 @@ var zi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3690
3723
  }, String(i.value));
3691
3724
  })
3692
3725
  });
3693
- }), Bi = {
3726
+ }), Wi = {
3694
3727
  md: "h-6 w-11",
3695
3728
  sm: "h-5 w-9"
3696
- }, Vi = {
3729
+ }, Gi = {
3697
3730
  md: "h-5 w-5 peer-checked:translate-x-5",
3698
3731
  sm: "h-4 w-4 peer-checked:translate-x-4"
3699
- }, Hi = a(function({ size: e = "md", label: t, description: n, labelPosition: r = "right", id: i, disabled: a, checked: o, defaultChecked: s, className: c, dataTestId: l, ...d }, f) {
3700
- let p = u(), m = i ?? p, h = /* @__PURE__ */ K("span", {
3732
+ }, Ki = a(function({ size: e = "md", label: t, description: n, labelPosition: r = "right", id: i, disabled: a, checked: o, defaultChecked: s, className: c, dataTestId: l, ...d }, f) {
3733
+ let p = u(), m = i ?? p, h = /* @__PURE__ */ G("span", {
3701
3734
  className: "relative inline-flex shrink-0",
3702
3735
  children: [
3703
- /* @__PURE__ */ G("input", {
3736
+ /* @__PURE__ */ W("input", {
3704
3737
  ref: f,
3705
3738
  id: m,
3706
3739
  type: "checkbox",
@@ -3711,25 +3744,25 @@ var zi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3711
3744
  className: "peer sr-only",
3712
3745
  ...d
3713
3746
  }),
3714
- /* @__PURE__ */ G("span", { className: Z("rounded-full bg-gray-300 dark:bg-gray-700 transition-colors", Bi[e], "peer-checked:bg-brand-500 dark:peer-checked:bg-brand-500", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-2", a && "!bg-bg-subtle") }),
3715
- /* @__PURE__ */ G("span", { className: Z("absolute top-0.5 left-0.5 rounded-full bg-white dark:bg-white shadow-z1 transition-transform", Vi[e]) })
3747
+ /* @__PURE__ */ W("span", { className: Z("rounded-full bg-gray-300 dark:bg-gray-700 transition-colors", Wi[e], "peer-checked:bg-brand-500 dark:peer-checked:bg-brand-500", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-2", a && "!bg-bg-subtle") }),
3748
+ /* @__PURE__ */ W("span", { className: Z("absolute top-0.5 left-0.5 rounded-full bg-white dark:bg-white shadow-z1 transition-transform", Gi[e]) })
3716
3749
  ]
3717
3750
  });
3718
- return !t && !n ? /* @__PURE__ */ G("label", {
3751
+ return !t && !n ? /* @__PURE__ */ W("label", {
3719
3752
  htmlFor: m,
3720
3753
  "data-test-id": l,
3721
3754
  className: Z("inline-flex", a ? "cursor-not-allowed opacity-60" : "cursor-pointer", c),
3722
3755
  children: h
3723
- }) : /* @__PURE__ */ K("label", {
3756
+ }) : /* @__PURE__ */ G("label", {
3724
3757
  htmlFor: m,
3725
3758
  "data-test-id": l,
3726
3759
  className: Z("inline-flex items-center gap-3", r === "left" && "flex-row-reverse justify-end", a ? "cursor-not-allowed opacity-60" : "cursor-pointer", c),
3727
- children: [h, /* @__PURE__ */ K("span", {
3760
+ children: [h, /* @__PURE__ */ G("span", {
3728
3761
  className: "flex flex-col gap-0.5",
3729
- children: [t && /* @__PURE__ */ G("span", {
3762
+ children: [t && /* @__PURE__ */ W("span", {
3730
3763
  className: "text-p-std font-medium text-fg-default leading-tight",
3731
3764
  children: t
3732
- }), n && /* @__PURE__ */ G("span", {
3765
+ }), n && /* @__PURE__ */ W("span", {
3733
3766
  className: "text-p-sm text-fg-secondary leading-snug",
3734
3767
  children: n
3735
3768
  })]
@@ -3738,11 +3771,11 @@ var zi = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3738
3771
  });
3739
3772
  //#endregion
3740
3773
  //#region src/components/TableV2/TableV2Filter.tsx
3741
- function Ui({ column: e }) {
3774
+ function qi({ column: e }) {
3742
3775
  let t = e.columnDef.meta?.filterVariant;
3743
3776
  if (!t) return null;
3744
3777
  let n = e.getFilterValue();
3745
- return t === "custom" ? /* @__PURE__ */ G(W, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ G(li, {
3778
+ return t === "custom" ? /* @__PURE__ */ W(U, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ W(pi, {
3746
3779
  size: "sm",
3747
3780
  searchable: !1,
3748
3781
  required: !1,
@@ -3750,7 +3783,7 @@ function Ui({ column: e }) {
3750
3783
  placeholder: "All",
3751
3784
  value: typeof n == "string" ? n : void 0,
3752
3785
  onChange: (t) => e.setFilterValue(t || void 0)
3753
- }) : /* @__PURE__ */ G(nn, {
3786
+ }) : /* @__PURE__ */ W(nn, {
3754
3787
  size: "sm",
3755
3788
  type: t === "date" ? "date" : "text",
3756
3789
  "aria-label": `Filter by ${e.id}`,
@@ -3761,7 +3794,7 @@ function Ui({ column: e }) {
3761
3794
  }
3762
3795
  //#endregion
3763
3796
  //#region src/components/TableV2/TableV2Pagination.i18n.ts
3764
- var Wi = {
3797
+ var Ji = {
3765
3798
  "en-US": {
3766
3799
  rowsPerPage: "Rows per page",
3767
3800
  noResults: "No results",
@@ -3780,27 +3813,28 @@ var Wi = {
3780
3813
  };
3781
3814
  //#endregion
3782
3815
  //#region src/components/TableV2/TableV2Pagination.tsx
3783
- function Gi({ table: e, pageSizeOptions: t = [
3816
+ function Yi({ table: e, pageSizeOptions: t = [
3784
3817
  10,
3785
3818
  20,
3786
3819
  30
3787
- ], locale: n = "en-US" }) {
3788
- let { pageIndex: r, pageSize: i } = e.getState().pagination, a = e.options.rowCount ?? e.getPrePaginationRowModel().rows.length, o = Math.max(1, e.getPageCount()), s = a === 0 ? 0 : r * i + 1, c = Math.min(a, (r + 1) * i), l = Wi[n];
3789
- return /* @__PURE__ */ K("div", {
3820
+ ], locale: n = "en-US", dataTestId: r }) {
3821
+ let { pageIndex: i, pageSize: a } = e.getState().pagination, o = e.options.rowCount ?? e.getPrePaginationRowModel().rows.length, s = Math.max(1, e.getPageCount()), c = o === 0 ? 0 : i * a + 1, l = Math.min(o, (i + 1) * a), u = Ji[n], d = Vt(r);
3822
+ return /* @__PURE__ */ G("div", {
3790
3823
  className: "flex flex-wrap items-center justify-between gap-3 p-3 border-t border-border-default",
3791
3824
  children: [
3792
- /* @__PURE__ */ K("div", {
3825
+ /* @__PURE__ */ G("div", {
3793
3826
  className: "flex items-center gap-2",
3794
- children: [/* @__PURE__ */ G("span", {
3827
+ children: [/* @__PURE__ */ W("span", {
3795
3828
  className: "text-p-sm text-fg-secondary whitespace-nowrap",
3796
- children: l.rowsPerPage
3797
- }), /* @__PURE__ */ G(li, {
3829
+ children: u.rowsPerPage
3830
+ }), /* @__PURE__ */ W(pi, {
3798
3831
  size: "sm",
3799
3832
  menuPlacement: "top",
3800
3833
  searchable: !1,
3801
3834
  required: !1,
3802
3835
  locale: n,
3803
- value: i,
3836
+ dataTestId: d("page_size_select"),
3837
+ value: a,
3804
3838
  onChange: (t) => t !== void 0 && e.setPageSize(Number(t)),
3805
3839
  options: t.map((e) => ({
3806
3840
  value: e,
@@ -3808,53 +3842,57 @@ function Gi({ table: e, pageSizeOptions: t = [
3808
3842
  }))
3809
3843
  })]
3810
3844
  }),
3811
- /* @__PURE__ */ G("span", {
3845
+ /* @__PURE__ */ W("span", {
3846
+ "data-test-id": d("total_count"),
3847
+ "data-total": o,
3812
3848
  className: "text-p-sm text-fg-secondary whitespace-nowrap",
3813
- children: a === 0 ? l.noResults : l.rangeSummary(s, c, a)
3849
+ children: o === 0 ? u.noResults : u.rangeSummary(c, l, o)
3814
3850
  }),
3815
- /* @__PURE__ */ G(wr, {
3816
- page: r + 1,
3817
- pageCount: o,
3818
- onPageChange: (t) => e.setPageIndex(t - 1)
3851
+ /* @__PURE__ */ W(wr, {
3852
+ page: i + 1,
3853
+ pageCount: s,
3854
+ onPageChange: (t) => e.setPageIndex(t - 1),
3855
+ dataTestId: r
3819
3856
  })
3820
3857
  ]
3821
3858
  });
3822
3859
  }
3823
3860
  //#endregion
3824
3861
  //#region src/components/TableV2/TableV2Skeleton.tsx
3825
- function Ki({ columnCount: e, rowCount: t = 8, testIdPrefix: n }) {
3826
- return /* @__PURE__ */ G(W, { children: Array.from({ length: t }, (t, r) => /* @__PURE__ */ G("tr", {
3827
- "data-test-id": n ? `${n}-skeleton-row-${r}` : void 0,
3828
- "aria-hidden": r > 0 || void 0,
3829
- children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ G("td", {
3862
+ function Xi({ columnCount: e, rowCount: t = 8, testIdPrefix: n }) {
3863
+ let r = Vt(n);
3864
+ return /* @__PURE__ */ W(U, { children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ W("tr", {
3865
+ "data-test-id": r(`skeleton-row-${n}`),
3866
+ "aria-hidden": n > 0 || void 0,
3867
+ children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ W("td", {
3830
3868
  className: "px-4 py-3",
3831
- children: /* @__PURE__ */ G(_i, {
3869
+ children: /* @__PURE__ */ W(xi, {
3832
3870
  variant: "text",
3833
3871
  width: t === 0 ? "70%" : "90%"
3834
3872
  })
3835
3873
  }, t))
3836
- }, r)) });
3874
+ }, n)) });
3837
3875
  }
3838
3876
  //#endregion
3839
3877
  //#region src/components/TableV2/TableV2ColumnVisibility.tsx
3840
- function qi(e) {
3878
+ function Zi(e) {
3841
3879
  let { header: t } = e.columnDef;
3842
3880
  return typeof t == "string" ? t : e.id;
3843
3881
  }
3844
- function Ji({ table: e }) {
3882
+ function Qi({ table: e }) {
3845
3883
  let t = e.getAllLeafColumns().filter((e) => e.getCanHide());
3846
- return /* @__PURE__ */ K(Jn, { children: [/* @__PURE__ */ G(Yn, { children: /* @__PURE__ */ G(at, {
3884
+ return /* @__PURE__ */ G(Jn, { children: [/* @__PURE__ */ W(Yn, { children: /* @__PURE__ */ W(at, {
3847
3885
  variant: "secondary",
3848
3886
  size: "sm",
3849
- leftIcon: /* @__PURE__ */ G(O, { className: "h-4 w-4" }),
3887
+ leftIcon: /* @__PURE__ */ W(O, { className: "h-4 w-4" }),
3850
3888
  children: "Columns"
3851
- }) }), /* @__PURE__ */ G(Zn, {
3889
+ }) }), /* @__PURE__ */ W(Zn, {
3852
3890
  align: "end",
3853
- children: t.map((e) => /* @__PURE__ */ G("div", {
3891
+ children: t.map((e) => /* @__PURE__ */ W("div", {
3854
3892
  className: "px-3 py-1.5 hover:bg-bg-subtle",
3855
- children: /* @__PURE__ */ G(Wt, {
3893
+ children: /* @__PURE__ */ W(Wt, {
3856
3894
  size: "sm",
3857
- label: qi(e),
3895
+ label: Zi(e),
3858
3896
  checked: e.getIsVisible(),
3859
3897
  onChange: () => e.toggleVisibility()
3860
3898
  })
@@ -3863,36 +3901,36 @@ function Ji({ table: e }) {
3863
3901
  }
3864
3902
  //#endregion
3865
3903
  //#region src/components/TableV2/TableV2Toolbar.tsx
3866
- function Yi({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
3867
- return /* @__PURE__ */ K("div", {
3904
+ function $i({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
3905
+ return /* @__PURE__ */ G("div", {
3868
3906
  className: "flex flex-wrap items-center gap-2 p-3 border-b border-border-default",
3869
- children: [t && /* @__PURE__ */ G(nn, {
3907
+ children: [t && /* @__PURE__ */ W(nn, {
3870
3908
  size: "sm",
3871
- leftIcon: /* @__PURE__ */ G(le, { className: "h-4 w-4" }),
3909
+ leftIcon: /* @__PURE__ */ W(ue, { className: "h-4 w-4" }),
3872
3910
  placeholder: r ?? "Search...",
3873
3911
  "aria-label": "Search",
3874
3912
  value: String(e.getState().globalFilter ?? ""),
3875
3913
  onChange: (t) => e.setGlobalFilter(t.target.value),
3876
3914
  wrapperClassName: "max-w-xs w-full"
3877
- }), /* @__PURE__ */ K("div", {
3915
+ }), /* @__PURE__ */ G("div", {
3878
3916
  className: "ml-auto flex items-center gap-2",
3879
3917
  children: [
3880
- i && /* @__PURE__ */ G(at, {
3918
+ i && /* @__PURE__ */ W(at, {
3881
3919
  variant: "secondary",
3882
3920
  size: "sm",
3883
3921
  iconOnly: !0,
3884
3922
  "aria-label": "Refresh",
3885
- leftIcon: /* @__PURE__ */ G(z, { className: "h-4 w-4" }),
3923
+ leftIcon: /* @__PURE__ */ W(R, { className: "h-4 w-4" }),
3886
3924
  onClick: i
3887
3925
  }),
3888
- a && /* @__PURE__ */ G(at, {
3926
+ a && /* @__PURE__ */ W(at, {
3889
3927
  variant: "secondary",
3890
3928
  size: "sm",
3891
- leftIcon: /* @__PURE__ */ G(A, { className: "h-4 w-4" }),
3929
+ leftIcon: /* @__PURE__ */ W(A, { className: "h-4 w-4" }),
3892
3930
  onClick: a,
3893
3931
  children: "Export"
3894
3932
  }),
3895
- n && /* @__PURE__ */ G(Ji, { table: e }),
3933
+ n && /* @__PURE__ */ W(Qi, { table: e }),
3896
3934
  o
3897
3935
  ]
3898
3936
  })]
@@ -3900,15 +3938,15 @@ function Yi({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
3900
3938
  }
3901
3939
  //#endregion
3902
3940
  //#region src/components/TableV2/useTableV2ColumnDnd.ts
3903
- var Xi = ({ transform: e }) => ({
3941
+ var ea = ({ transform: e }) => ({
3904
3942
  ...e,
3905
3943
  y: 0
3906
3944
  });
3907
- function Zi({ columnOrder: e, onColumnOrderChange: t }) {
3945
+ function ta({ columnOrder: e, onColumnOrderChange: t }) {
3908
3946
  return {
3909
3947
  sensors: Be(ze(Le, { activationConstraint: { distance: 4 } }), ze(q, { coordinateGetter: Y })),
3910
3948
  collisionDetection: Re,
3911
- modifiers: [Xi],
3949
+ modifiers: [ea],
3912
3950
  handleDragEnd: (n) => {
3913
3951
  let { active: r, over: i } = n;
3914
3952
  if (!i || r.id === i.id) return;
@@ -3917,7 +3955,7 @@ function Zi({ columnOrder: e, onColumnOrderChange: t }) {
3917
3955
  }
3918
3956
  };
3919
3957
  }
3920
- function Qi(e) {
3958
+ function na(e) {
3921
3959
  let { attributes: t, listeners: n, setNodeRef: r, transform: i, transition: a, isDragging: o } = X({ id: e });
3922
3960
  return {
3923
3961
  setNodeRef: r,
@@ -3935,16 +3973,16 @@ function Qi(e) {
3935
3973
  }
3936
3974
  //#endregion
3937
3975
  //#region src/components/TableV2/TableV2RowActions.tsx
3938
- function $i({ row: e, actions: t }) {
3939
- return t.length === 0 ? null : /* @__PURE__ */ K(Jn, { children: [/* @__PURE__ */ G(Yn, { children: /* @__PURE__ */ G(at, {
3976
+ function ra({ row: e, actions: t }) {
3977
+ return t.length === 0 ? null : /* @__PURE__ */ G(Jn, { children: [/* @__PURE__ */ W(Yn, { children: /* @__PURE__ */ W(at, {
3940
3978
  variant: "tertiary",
3941
3979
  size: "sm",
3942
3980
  iconOnly: !0,
3943
3981
  "aria-label": "Row actions",
3944
- leftIcon: /* @__PURE__ */ G(re, { className: "h-4 w-4" })
3945
- }) }), /* @__PURE__ */ G(Zn, {
3982
+ leftIcon: /* @__PURE__ */ W(ie, { className: "h-4 w-4" })
3983
+ }) }), /* @__PURE__ */ W(Zn, {
3946
3984
  align: "end",
3947
- children: t.map((t, n) => /* @__PURE__ */ G(Qn, {
3985
+ children: t.map((t, n) => /* @__PURE__ */ W(Qn, {
3948
3986
  icon: t.icon,
3949
3987
  destructive: t.destructive,
3950
3988
  disabled: t.disabled?.(e),
@@ -3955,15 +3993,15 @@ function $i({ row: e, actions: t }) {
3955
3993
  }
3956
3994
  //#endregion
3957
3995
  //#region src/components/TableV2/TableV2.utils.tsx
3958
- var ea = {
3996
+ var ia = {
3959
3997
  comfortable: "py-3",
3960
3998
  compact: "py-2"
3961
- }, ta = {
3999
+ }, aa = {
3962
4000
  left: "text-left",
3963
4001
  center: "text-center",
3964
4002
  right: "text-right"
3965
4003
  };
3966
- function na() {
4004
+ function oa() {
3967
4005
  return {
3968
4006
  id: "select",
3969
4007
  size: 40,
@@ -3973,13 +4011,13 @@ function na() {
3973
4011
  enableHiding: !1,
3974
4012
  enableResizing: !1,
3975
4013
  enableColumnFilter: !1,
3976
- header: ({ table: e }) => /* @__PURE__ */ G(Wt, {
4014
+ header: ({ table: e }) => /* @__PURE__ */ W(Wt, {
3977
4015
  "aria-label": "Select all rows",
3978
4016
  checked: e.getIsAllRowsSelected(),
3979
4017
  indeterminate: e.getIsSomeRowsSelected() && !e.getIsAllRowsSelected(),
3980
4018
  onChange: e.getToggleAllRowsSelectedHandler()
3981
4019
  }),
3982
- cell: ({ row: e }) => /* @__PURE__ */ G(Wt, {
4020
+ cell: ({ row: e }) => /* @__PURE__ */ W(Wt, {
3983
4021
  "aria-label": "Select row",
3984
4022
  checked: e.getIsSelected(),
3985
4023
  disabled: !e.getCanSelect(),
@@ -3988,7 +4026,7 @@ function na() {
3988
4026
  })
3989
4027
  };
3990
4028
  }
3991
- function ra(e, t) {
4029
+ function sa(e, t) {
3992
4030
  return {
3993
4031
  id: "actions",
3994
4032
  header: t?.header ?? "",
@@ -3996,13 +4034,13 @@ function ra(e, t) {
3996
4034
  enableSorting: !1,
3997
4035
  enableColumnFilter: !1,
3998
4036
  enableResizing: !1,
3999
- cell: ({ row: t }) => /* @__PURE__ */ G($i, {
4037
+ cell: ({ row: t }) => /* @__PURE__ */ W(ra, {
4000
4038
  row: t.original,
4001
4039
  actions: e(t.original)
4002
4040
  })
4003
4041
  };
4004
4042
  }
4005
- function ia(e) {
4043
+ function ca(e) {
4006
4044
  let t = e.getIsPinned();
4007
4045
  return t ? {
4008
4046
  position: "sticky",
@@ -4013,81 +4051,81 @@ function ia(e) {
4013
4051
  }
4014
4052
  //#endregion
4015
4053
  //#region src/components/TableV2/TableV2.tsx
4016
- function aa(e, t, n) {
4054
+ function la(e, t, n) {
4017
4055
  let [r, i] = m(n);
4018
4056
  return [e === void 0 ? r : e, (e) => {
4019
4057
  i((t) => typeof e == "function" ? e(t) : e), t?.(e);
4020
4058
  }];
4021
4059
  }
4022
- var oa = /* @__PURE__ */ new Set(["select", "actions"]);
4023
- function sa({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
4024
- let c = e.column, l = oa.has(c.id), u = i && !l, d = Qi(c.id), f = c.columnDef.meta?.align ?? "left", p = c.getIsSorted(), m = !l && (o && c.getCanPin() || s && c.getCanHide()), h = Ae(c.columnDef.header, e.getContext());
4025
- return /* @__PURE__ */ K("th", {
4060
+ var ua = /* @__PURE__ */ new Set(["select", "actions"]);
4061
+ function da({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
4062
+ let c = e.column, l = ua.has(c.id), u = i && !l, d = na(c.id), f = c.columnDef.meta?.align ?? "left", p = c.getIsSorted(), m = !l && (o && c.getCanPin() || s && c.getCanHide()), h = Ae(c.columnDef.header, e.getContext());
4063
+ return /* @__PURE__ */ G("th", {
4026
4064
  ref: u ? d.setNodeRef : void 0,
4027
4065
  colSpan: e.colSpan,
4028
4066
  scope: "col",
4029
4067
  style: {
4030
4068
  width: a ? e.getSize() : void 0,
4031
- ...ia(c),
4069
+ ...ca(c),
4032
4070
  ...u ? d.style : null
4033
4071
  },
4034
4072
  "aria-sort": p === "asc" ? "ascending" : p === "desc" ? "descending" : void 0,
4035
- className: Z("relative px-4 whitespace-nowrap bg-bg-container", ea[t], ta[f]),
4073
+ className: Z("relative px-4 whitespace-nowrap bg-bg-container", ia[t], aa[f]),
4036
4074
  children: [
4037
- /* @__PURE__ */ K("div", {
4075
+ /* @__PURE__ */ G("div", {
4038
4076
  className: "flex items-center gap-1",
4039
4077
  children: [
4040
- u && /* @__PURE__ */ G("button", {
4078
+ u && /* @__PURE__ */ W("button", {
4041
4079
  type: "button",
4042
4080
  className: "shrink-0 cursor-grab touch-none text-fg-tertiary hover:text-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 rounded-sm",
4043
4081
  "aria-label": `Reorder ${typeof h == "string" ? h : c.id} column`,
4044
4082
  ...d.attributes,
4045
4083
  ...d.listeners,
4046
- children: /* @__PURE__ */ G(ne, { className: "h-3.5 w-3.5" })
4084
+ children: /* @__PURE__ */ W(ne, { className: "h-3.5 w-3.5" })
4047
4085
  }),
4048
- n && c.getCanSort() ? /* @__PURE__ */ K("button", {
4086
+ n && c.getCanSort() ? /* @__PURE__ */ G("button", {
4049
4087
  type: "button",
4050
4088
  onClick: c.getToggleSortingHandler(),
4051
4089
  className: "inline-flex items-center gap-1 hover:text-fg-default focus-visible:outline-none min-w-0",
4052
- children: [/* @__PURE__ */ G("span", {
4090
+ children: [/* @__PURE__ */ W("span", {
4053
4091
  className: "truncate",
4054
4092
  children: h
4055
- }), /* @__PURE__ */ G("span", {
4093
+ }), /* @__PURE__ */ W("span", {
4056
4094
  className: "inline-flex shrink-0 text-fg-tertiary",
4057
- children: G(p === "asc" ? v : p === "desc" ? _ : T, { className: "h-3.5 w-3.5" })
4095
+ children: W(p === "asc" ? v : p === "desc" ? _ : T, { className: "h-3.5 w-3.5" })
4058
4096
  })]
4059
- }) : /* @__PURE__ */ G("span", {
4097
+ }) : /* @__PURE__ */ W("span", {
4060
4098
  className: "truncate",
4061
4099
  children: h
4062
4100
  }),
4063
- m && /* @__PURE__ */ K(Jn, { children: [/* @__PURE__ */ G(Yn, { children: /* @__PURE__ */ G("button", {
4101
+ m && /* @__PURE__ */ G(Jn, { children: [/* @__PURE__ */ W(Yn, { children: /* @__PURE__ */ W("button", {
4064
4102
  type: "button",
4065
4103
  "aria-label": `${typeof h == "string" ? h : c.id} column options`,
4066
4104
  className: "ml-auto shrink-0 text-fg-tertiary hover:text-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 rounded-sm",
4067
- children: /* @__PURE__ */ G(R, { className: "h-3.5 w-3.5" })
4068
- }) }), /* @__PURE__ */ K(Zn, {
4105
+ children: /* @__PURE__ */ W(L, { className: "h-3.5 w-3.5" })
4106
+ }) }), /* @__PURE__ */ G(Zn, {
4069
4107
  align: "start",
4070
4108
  children: [
4071
- o && c.getCanPin() && /* @__PURE__ */ K(W, { children: [
4072
- c.getIsPinned() !== "left" && /* @__PURE__ */ G(Qn, {
4073
- icon: /* @__PURE__ */ G(oe, { className: "h-4 w-4" }),
4109
+ o && c.getCanPin() && /* @__PURE__ */ G(U, { children: [
4110
+ c.getIsPinned() !== "left" && /* @__PURE__ */ W(Qn, {
4111
+ icon: /* @__PURE__ */ W(se, { className: "h-4 w-4" }),
4074
4112
  onSelect: () => c.pin("left"),
4075
4113
  children: "Pin left"
4076
4114
  }),
4077
- c.getIsPinned() !== "right" && /* @__PURE__ */ G(Qn, {
4078
- icon: /* @__PURE__ */ G(oe, { className: "h-4 w-4" }),
4115
+ c.getIsPinned() !== "right" && /* @__PURE__ */ W(Qn, {
4116
+ icon: /* @__PURE__ */ W(se, { className: "h-4 w-4" }),
4079
4117
  onSelect: () => c.pin("right"),
4080
4118
  children: "Pin right"
4081
4119
  }),
4082
- c.getIsPinned() && /* @__PURE__ */ G(Qn, {
4083
- icon: /* @__PURE__ */ G(se, { className: "h-4 w-4" }),
4120
+ c.getIsPinned() && /* @__PURE__ */ W(Qn, {
4121
+ icon: /* @__PURE__ */ W(ce, { className: "h-4 w-4" }),
4084
4122
  onSelect: () => c.pin(!1),
4085
4123
  children: "Unpin"
4086
4124
  })
4087
4125
  ] }),
4088
- o && c.getCanPin() && s && c.getCanHide() && /* @__PURE__ */ G($n, {}),
4089
- s && c.getCanHide() && /* @__PURE__ */ G(Qn, {
4090
- icon: /* @__PURE__ */ G(j, { className: "h-4 w-4" }),
4126
+ o && c.getCanPin() && s && c.getCanHide() && /* @__PURE__ */ W($n, {}),
4127
+ s && c.getCanHide() && /* @__PURE__ */ W(Qn, {
4128
+ icon: /* @__PURE__ */ W(j, { className: "h-4 w-4" }),
4091
4129
  onSelect: () => c.toggleVisibility(!1),
4092
4130
  children: "Hide column"
4093
4131
  })
@@ -4095,12 +4133,12 @@ function sa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4095
4133
  })] })
4096
4134
  ]
4097
4135
  }),
4098
- r && c.getCanFilter() && /* @__PURE__ */ G("div", {
4136
+ r && c.getCanFilter() && /* @__PURE__ */ W("div", {
4099
4137
  className: "mt-2 normal-case",
4100
4138
  onClick: (e) => e.stopPropagation(),
4101
- children: /* @__PURE__ */ G(Ui, { column: c })
4139
+ children: /* @__PURE__ */ W(qi, { column: c })
4102
4140
  }),
4103
- a && c.getCanResize() && /* @__PURE__ */ G("div", {
4141
+ a && c.getCanResize() && /* @__PURE__ */ W("div", {
4104
4142
  onMouseDown: e.getResizeHandler(),
4105
4143
  onTouchStart: e.getResizeHandler(),
4106
4144
  "data-resizing": c.getIsResizing() || void 0,
@@ -4109,34 +4147,34 @@ function sa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4109
4147
  ]
4110
4148
  });
4111
4149
  }
4112
- function ca({ row: e, onRowClick: t }) {
4113
- let n = e.getVisibleCells(), r = n.find((e) => !oa.has(e.column.id)), i = n.find((e) => e.column.id === "select"), a = n.find((e) => e.column.id === "actions"), o = n.filter((e) => e !== r && !oa.has(e.column.id));
4114
- return /* @__PURE__ */ K("div", {
4150
+ function fa({ row: e, onRowClick: t }) {
4151
+ let n = e.getVisibleCells(), r = n.find((e) => !ua.has(e.column.id)), i = n.find((e) => e.column.id === "select"), a = n.find((e) => e.column.id === "actions"), o = n.filter((e) => e !== r && !ua.has(e.column.id));
4152
+ return /* @__PURE__ */ G("div", {
4115
4153
  "data-selected": e.getIsSelected() || void 0,
4116
4154
  onClick: t ? () => t(e.original) : void 0,
4117
4155
  role: t ? "button" : void 0,
4118
4156
  tabIndex: t ? 0 : void 0,
4119
4157
  className: Z("flex flex-col gap-2 border-b border-border-default p-4", t && "cursor-pointer hover:bg-bg-container", e.getIsSelected() && "bg-brand-50"),
4120
- children: [/* @__PURE__ */ K("div", {
4158
+ children: [/* @__PURE__ */ G("div", {
4121
4159
  className: "flex items-center gap-2",
4122
4160
  children: [
4123
4161
  i && Ae(i.column.columnDef.cell, i.getContext()),
4124
- /* @__PURE__ */ G("div", {
4162
+ /* @__PURE__ */ W("div", {
4125
4163
  className: "flex-1 min-w-0 text-p-std font-medium text-fg-default truncate",
4126
4164
  children: r && Ae(r.column.columnDef.cell, r.getContext())
4127
4165
  }),
4128
4166
  a && Ae(a.column.columnDef.cell, a.getContext())
4129
4167
  ]
4130
- }), o.length > 0 && /* @__PURE__ */ G("dl", {
4168
+ }), o.length > 0 && /* @__PURE__ */ W("dl", {
4131
4169
  className: "grid grid-cols-2 gap-2",
4132
4170
  children: o.map((e) => {
4133
4171
  let t = e.column.columnDef.header;
4134
- return /* @__PURE__ */ K("div", {
4172
+ return /* @__PURE__ */ G("div", {
4135
4173
  className: "min-w-0",
4136
- children: [/* @__PURE__ */ G("dt", {
4174
+ children: [/* @__PURE__ */ W("dt", {
4137
4175
  className: "text-p-xs text-fg-tertiary uppercase tracking-wide",
4138
4176
  children: typeof t == "string" ? t : e.column.id
4139
- }), /* @__PURE__ */ G("dd", {
4177
+ }), /* @__PURE__ */ W("dd", {
4140
4178
  className: "text-p-sm text-fg-default truncate",
4141
4179
  children: Ae(e.column.columnDef.cell, e.getContext())
4142
4180
  })]
@@ -4145,40 +4183,40 @@ function ca({ row: e, onRowClick: t }) {
4145
4183
  })]
4146
4184
  });
4147
4185
  }
4148
- function la({ rowCount: e }) {
4149
- return /* @__PURE__ */ G("div", { children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ K("div", {
4186
+ function pa({ rowCount: e }) {
4187
+ return /* @__PURE__ */ W("div", { children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ G("div", {
4150
4188
  "aria-hidden": t > 0 || void 0,
4151
4189
  className: "flex flex-col gap-2 border-b border-border-default p-4",
4152
- children: [/* @__PURE__ */ G(_i, {
4190
+ children: [/* @__PURE__ */ W(xi, {
4153
4191
  variant: "text",
4154
4192
  width: "60%"
4155
- }), /* @__PURE__ */ G(_i, {
4193
+ }), /* @__PURE__ */ W(xi, {
4156
4194
  variant: "text",
4157
4195
  width: "90%"
4158
4196
  })]
4159
4197
  }, t)) });
4160
4198
  }
4161
- function ua(e, t) {
4162
- let { data: n, columns: r, loading: i = !1, error: a, emptyMessage: o = "No results", getRowId: s, enableSorting: c = !1, enableMultiSort: l = !1, sorting: u, onSortingChange: h, manualSorting: g = !1, enableFiltering: _ = !1, columnFilters: v, onColumnFiltersChange: y, manualFiltering: b = !1, enableGlobalFilter: x = !1, globalFilter: S, onGlobalFilterChange: C, enableRowSelection: w = !1, enableMultiRowSelection: T = !0, rowSelection: E, onRowSelectionChange: D, enableColumnVisibility: O = !1, columnVisibility: k, onColumnVisibilityChange: ee, enableColumnOrdering: A = !1, columnOrder: j, onColumnOrderChange: te, enablePinning: ne = !1, columnPinning: M, onColumnPinningChange: N, enableColumnResizing: P = !1, columnResizeMode: F = "onChange", enablePagination: I = !1, pageSize: L = 10, pageSizeOptions: R, pagination: re, onPaginationChange: ie, locale: ae = "en-US", manualPagination: oe = !1, pageCount: se, rowCount: ce, enableVirtualization: z = !1, estimatedRowHeight: le = 44, maxBodyHeight: ue = 480, onRowClick: de, toolbar: B = !1, toolbarActions: fe, searchPlaceholder: pe, onRefresh: me, onExport: he, density: V = "comfortable", stickyHeader: ge = !1, fillHeight: H = !1, wrapperClassName: _e, className: U, dataTestId: ve } = e, [ye, be] = aa(u, h, []), [xe, Se] = aa(v, y, []), [Ce, we] = aa(S, C, ""), [Te, Ee] = aa(E, D, {}), [De, Oe] = aa(k, ee, {}), [q, Le] = aa(j, te, []), [Re, ze] = aa(M, N, {}), [Be, He] = aa(re, ie, {
4199
+ function ma(e, t) {
4200
+ let { data: n, columns: r, loading: i = !1, error: a, emptyMessage: o = "No results", getRowId: s, enableSorting: c = !1, enableMultiSort: l = !1, sorting: u, onSortingChange: h, manualSorting: g = !1, enableFiltering: _ = !1, columnFilters: v, onColumnFiltersChange: y, manualFiltering: b = !1, enableGlobalFilter: x = !1, globalFilter: S, onGlobalFilterChange: C, enableRowSelection: w = !1, enableMultiRowSelection: T = !0, rowSelection: E, onRowSelectionChange: D, enableColumnVisibility: O = !1, columnVisibility: k, onColumnVisibilityChange: ee, enableColumnOrdering: A = !1, columnOrder: j, onColumnOrderChange: te, enablePinning: ne = !1, columnPinning: M, onColumnPinningChange: N, enableColumnResizing: P = !1, columnResizeMode: F = "onChange", enablePagination: I = !1, pageSize: re = 10, pageSizeOptions: L, pagination: ie, onPaginationChange: ae, locale: oe = "en-US", manualPagination: se = !1, pageCount: ce, rowCount: le, enableVirtualization: R = !1, estimatedRowHeight: ue = 44, maxBodyHeight: de = 480, onRowClick: fe, toolbar: z = !1, toolbarActions: pe, searchPlaceholder: me, onRefresh: he, onExport: ge, density: B = "comfortable", stickyHeader: _e = !1, fillHeight: V = !1, wrapperClassName: ve, className: H, dataTestId: ye } = e, [be, xe] = la(u, h, []), [Se, Ce] = la(v, y, []), [we, Te] = la(S, C, ""), [K, Ee] = la(E, D, {}), [De, Oe] = la(k, ee, {}), [q, Le] = la(j, te, []), [Re, ze] = la(M, N, {}), [Be, He] = la(ie, ae, {
4163
4201
  pageIndex: 0,
4164
- pageSize: L
4202
+ pageSize: re
4165
4203
  }), Y = Fe({
4166
4204
  data: n,
4167
- columns: f(() => !w || r.some((e) => e.id === "select") ? r : [na(), ...r], [r, w]),
4205
+ columns: f(() => !w || r.some((e) => e.id === "select") ? r : [oa(), ...r], [r, w]),
4168
4206
  getRowId: s,
4169
4207
  state: {
4170
- sorting: ye,
4171
- columnFilters: xe,
4172
- globalFilter: Ce,
4173
- rowSelection: Te,
4208
+ sorting: be,
4209
+ columnFilters: Se,
4210
+ globalFilter: we,
4211
+ rowSelection: K,
4174
4212
  columnVisibility: De,
4175
4213
  columnOrder: q,
4176
4214
  columnPinning: Re,
4177
4215
  pagination: Be
4178
4216
  },
4179
- onSortingChange: be,
4180
- onColumnFiltersChange: Se,
4181
- onGlobalFilterChange: we,
4217
+ onSortingChange: xe,
4218
+ onColumnFiltersChange: Ce,
4219
+ onGlobalFilterChange: Te,
4182
4220
  onRowSelectionChange: Ee,
4183
4221
  onColumnVisibilityChange: Oe,
4184
4222
  onColumnOrderChange: Le,
@@ -4194,50 +4232,55 @@ function ua(e, t) {
4194
4232
  enableMultiRowSelection: T,
4195
4233
  enableColumnResizing: P,
4196
4234
  columnResizeMode: F,
4197
- manualPagination: oe,
4198
- pageCount: se,
4199
- rowCount: ce,
4235
+ manualPagination: se,
4236
+ pageCount: ce,
4237
+ rowCount: le,
4200
4238
  getCoreRowModel: je(),
4201
4239
  getSortedRowModel: c ? Pe() : void 0,
4202
4240
  getFilteredRowModel: _ || x ? Me() : void 0,
4203
4241
  getPaginationRowModel: I ? Ne() : void 0
4204
4242
  }), X = Y.getRowModel().rows, Ue = Y.getVisibleLeafColumns().length, We = p(null), [Ge, Ke] = m(null);
4205
4243
  d(() => {
4206
- if (!I || z) return;
4244
+ if (!I || R) return;
4207
4245
  let e = We.current?.getBoundingClientRect().height;
4208
4246
  e && e !== Ge && Ke(e);
4209
4247
  }, [
4210
4248
  I,
4211
- z,
4212
- V,
4249
+ R,
4250
+ B,
4213
4251
  X,
4214
4252
  Ge
4215
4253
  ]);
4216
- let qe = Ge ?? le, Je = I && !z ? Math.max(0, Be.pageSize - X.length) * qe : 0, Ye = f(() => q.length > 0 ? q : Y.getAllLeafColumns().map((e) => e.id), [q, Y]), Xe = Zi({
4254
+ let qe = Ge ?? ue, Je = I && !R ? Math.max(0, Be.pageSize - X.length) * qe : 0, Ye = f(() => q.length > 0 ? q : Y.getAllLeafColumns().map((e) => e.id), [q, Y]), Xe = ta({
4217
4255
  columnOrder: Ye,
4218
4256
  onColumnOrderChange: Le
4219
4257
  }), Ze = (e) => Xe.handleDragEnd(e), Qe = p(null), $e = ke({
4220
4258
  count: X.length,
4221
4259
  getScrollElement: () => Qe.current,
4222
- estimateSize: () => le,
4260
+ estimateSize: () => ue,
4223
4261
  overscan: 10,
4224
- enabled: z
4225
- }), Q = z ? $e.getVirtualItems() : null, et = Q && Q.length > 0 ? Q[0]?.start ?? 0 : 0, tt = Q && Q.length > 0 ? $e.getTotalSize() - (Q[Q.length - 1]?.end ?? 0) : 0, nt = Vt(ve), rt = (e, t) => /* @__PURE__ */ G("tr", {
4262
+ enabled: R
4263
+ }), Q = R ? $e.getVirtualItems() : null, et = Q && Q.length > 0 ? Q[0]?.start ?? 0 : 0, tt = Q && Q.length > 0 ? $e.getTotalSize() - (Q[Q.length - 1]?.end ?? 0) : 0, nt = Vt(ye), rt = (e) => {
4264
+ let t = e.original?.id;
4265
+ return typeof t == "string" || typeof t == "number" ? String(t) : e.id;
4266
+ }, it = (e, t) => /* @__PURE__ */ W("tr", {
4226
4267
  ref: t,
4227
- "data-test-id": nt(`row-${e.id}`),
4268
+ "data-test-id": nt(`row-${rt(e)}`),
4269
+ "data-row-id": rt(e),
4228
4270
  "data-selected": e.getIsSelected() || void 0,
4229
- onClick: de ? () => de(e.original) : void 0,
4230
- className: Z("group border-t border-border-default", de && "cursor-pointer"),
4231
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ G("td", {
4232
- style: ia(e.column),
4233
- className: Z("bg-bg-default px-4 group-hover:bg-bg-container group-data-[selected]:bg-brand-50", ea[V], ta[e.column.columnDef.meta?.align ?? "left"]),
4271
+ onClick: fe ? () => fe(e.original) : void 0,
4272
+ className: Z("group border-t border-border-default", fe && "cursor-pointer"),
4273
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ W("td", {
4274
+ "data-test-id": nt(`cell-${e.column.id}`),
4275
+ style: ca(e.column),
4276
+ className: Z("bg-bg-default px-4 group-hover:bg-bg-container group-data-[selected]:bg-brand-50", ia[B], aa[e.column.columnDef.meta?.align ?? "left"]),
4234
4277
  children: Ae(e.column.columnDef.cell, e.getContext())
4235
4278
  }, e.id))
4236
- }, e.id), it = (e, t) => /* @__PURE__ */ G("tr", {
4279
+ }, e.id), at = (e, t) => /* @__PURE__ */ W("tr", {
4237
4280
  "data-test-id": nt(`header-row-${e}`),
4238
- children: t.map((e) => /* @__PURE__ */ G(sa, {
4281
+ children: t.map((e) => /* @__PURE__ */ W(da, {
4239
4282
  header: e,
4240
- density: V,
4283
+ density: B,
4241
4284
  enableSorting: c,
4242
4285
  enableFiltering: _,
4243
4286
  enableColumnOrdering: A,
@@ -4245,125 +4288,126 @@ function ua(e, t) {
4245
4288
  enablePinning: ne,
4246
4289
  enableColumnVisibility: O
4247
4290
  }, e.id))
4248
- }, e), at = /* @__PURE__ */ K("table", {
4291
+ }, e), ot = /* @__PURE__ */ G("table", {
4249
4292
  className: "w-full border-collapse text-p-std text-fg-default",
4250
4293
  style: { width: P ? Y.getTotalSize() : "100%" },
4251
- children: [/* @__PURE__ */ G("thead", {
4252
- className: Z("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", (ge || H) && "sticky top-0 z-10"),
4253
- children: Y.getHeaderGroups().map((e) => it(e.id, e.headers))
4254
- }), /* @__PURE__ */ G("tbody", { children: i ? /* @__PURE__ */ G(Ki, {
4294
+ children: [/* @__PURE__ */ W("thead", {
4295
+ className: Z("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", (_e || V) && "sticky top-0 z-10"),
4296
+ children: Y.getHeaderGroups().map((e) => at(e.id, e.headers))
4297
+ }), /* @__PURE__ */ W("tbody", { children: i ? /* @__PURE__ */ W(Xi, {
4255
4298
  columnCount: Ue,
4256
4299
  rowCount: Be.pageSize,
4257
- testIdPrefix: ve
4258
- }) : X.length === 0 ? /* @__PURE__ */ G("tr", {
4300
+ testIdPrefix: ye
4301
+ }) : X.length === 0 ? /* @__PURE__ */ W("tr", {
4259
4302
  "data-test-id": nt("empty-row"),
4260
- children: /* @__PURE__ */ G("td", {
4303
+ children: /* @__PURE__ */ W("td", {
4261
4304
  colSpan: Ue,
4262
4305
  className: "p-0",
4263
- children: /* @__PURE__ */ G(rr, {
4306
+ children: /* @__PURE__ */ W(rr, {
4264
4307
  size: "sm",
4265
4308
  title: o
4266
4309
  })
4267
4310
  })
4268
- }) : z && Q ? /* @__PURE__ */ K(W, { children: [
4269
- et > 0 && /* @__PURE__ */ G("tr", {
4311
+ }) : R && Q ? /* @__PURE__ */ G(U, { children: [
4312
+ et > 0 && /* @__PURE__ */ W("tr", {
4270
4313
  "aria-hidden": !0,
4271
4314
  "data-test-id": nt("padding-top-row"),
4272
- children: /* @__PURE__ */ G("td", {
4315
+ children: /* @__PURE__ */ W("td", {
4273
4316
  style: { height: et },
4274
4317
  colSpan: Ue
4275
4318
  })
4276
4319
  }),
4277
4320
  Q.map((e) => {
4278
4321
  let t = X[e.index];
4279
- return t ? rt(t) : null;
4322
+ return t ? it(t) : null;
4280
4323
  }),
4281
- tt > 0 && /* @__PURE__ */ G("tr", {
4324
+ tt > 0 && /* @__PURE__ */ W("tr", {
4282
4325
  "aria-hidden": !0,
4283
4326
  "data-test-id": nt("padding-bottom-row"),
4284
- children: /* @__PURE__ */ G("td", {
4327
+ children: /* @__PURE__ */ W("td", {
4285
4328
  style: { height: tt },
4286
4329
  colSpan: Ue
4287
4330
  })
4288
4331
  })
4289
- ] }) : /* @__PURE__ */ K(W, { children: [X.map((e, t) => rt(e, t === 0 ? We : void 0)), Je > 0 && /* @__PURE__ */ G("tr", {
4332
+ ] }) : /* @__PURE__ */ G(U, { children: [X.map((e, t) => it(e, t === 0 ? We : void 0)), Je > 0 && /* @__PURE__ */ W("tr", {
4290
4333
  "aria-hidden": !0,
4291
4334
  "data-test-id": nt("filler-row"),
4292
- children: /* @__PURE__ */ G("td", {
4335
+ children: /* @__PURE__ */ W("td", {
4293
4336
  style: { height: Je },
4294
4337
  colSpan: Ue,
4295
4338
  className: "p-0"
4296
4339
  })
4297
4340
  })] }) })]
4298
4341
  });
4299
- return /* @__PURE__ */ K("div", {
4342
+ return /* @__PURE__ */ G("div", {
4300
4343
  ref: t,
4301
- "data-test-id": ve,
4302
- className: Z("w-full rounded-lg border border-border-default bg-bg-default", H && "h-full flex flex-col", _e, U),
4344
+ "data-test-id": ye,
4345
+ className: Z("w-full rounded-lg border border-border-default bg-bg-default", V && "h-full flex flex-col", ve, H),
4303
4346
  children: [
4304
- B === !1 ? null : B ?? /* @__PURE__ */ G(Yi, {
4347
+ z === !1 ? null : z ?? /* @__PURE__ */ W($i, {
4305
4348
  table: Y,
4306
4349
  enableGlobalFilter: x,
4307
4350
  enableColumnVisibility: O,
4308
- searchPlaceholder: pe,
4309
- onRefresh: me,
4310
- onExport: he,
4311
- actions: fe
4351
+ searchPlaceholder: me,
4352
+ onRefresh: he,
4353
+ onExport: ge,
4354
+ actions: pe
4312
4355
  }),
4313
- a ? /* @__PURE__ */ G("div", {
4356
+ a ? /* @__PURE__ */ W("div", {
4314
4357
  className: "p-4",
4315
- children: /* @__PURE__ */ G(fr, {
4358
+ children: /* @__PURE__ */ W(fr, {
4316
4359
  variant: "danger",
4317
4360
  title: "Couldn't load data",
4318
4361
  description: a
4319
4362
  })
4320
- }) : /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
4321
- className: Z("hidden", H ? "md:flex md:flex-col md:flex-1 md:min-h-0" : "md:block"),
4322
- children: /* @__PURE__ */ G("div", {
4363
+ }) : /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
4364
+ className: Z("hidden", V ? "md:flex md:flex-col md:flex-1 md:min-h-0" : "md:block"),
4365
+ children: /* @__PURE__ */ W("div", {
4323
4366
  ref: Qe,
4324
- className: Z("w-full overflow-auto", B === !1 ? "rounded-lg" : "rounded-b-lg", H && "flex-1 min-h-0"),
4325
- style: H ? void 0 : z || ge ? { maxHeight: ue } : void 0,
4326
- children: A ? /* @__PURE__ */ G(Ie, {
4367
+ className: Z("w-full overflow-auto", z === !1 ? "rounded-lg" : "rounded-b-lg", V && "flex-1 min-h-0"),
4368
+ style: V ? void 0 : R || _e ? { maxHeight: de } : void 0,
4369
+ children: A ? /* @__PURE__ */ W(Ie, {
4327
4370
  sensors: Xe.sensors,
4328
4371
  collisionDetection: Xe.collisionDetection,
4329
4372
  modifiers: Xe.modifiers,
4330
4373
  onDragEnd: Ze,
4331
- children: /* @__PURE__ */ G(Ve, {
4374
+ children: /* @__PURE__ */ W(Ve, {
4332
4375
  items: Ye,
4333
4376
  strategy: J,
4334
- children: at
4377
+ children: ot
4335
4378
  })
4336
- }) : at
4379
+ }) : ot
4337
4380
  })
4338
- }), /* @__PURE__ */ G("div", {
4381
+ }), /* @__PURE__ */ W("div", {
4339
4382
  className: "md:hidden",
4340
- children: i ? /* @__PURE__ */ G(la, { rowCount: Be.pageSize }) : X.length === 0 ? /* @__PURE__ */ G(rr, {
4383
+ children: i ? /* @__PURE__ */ W(pa, { rowCount: Be.pageSize }) : X.length === 0 ? /* @__PURE__ */ W(rr, {
4341
4384
  size: "sm",
4342
4385
  title: o
4343
- }) : X.map((e) => /* @__PURE__ */ G(ca, {
4386
+ }) : X.map((e) => /* @__PURE__ */ W(fa, {
4344
4387
  row: e,
4345
- onRowClick: de
4388
+ onRowClick: fe
4346
4389
  }, e.id))
4347
4390
  })] }),
4348
- I && !a && /* @__PURE__ */ G(Gi, {
4391
+ I && !a && /* @__PURE__ */ W(Yi, {
4349
4392
  table: Y,
4350
- pageSizeOptions: R,
4351
- locale: ae
4393
+ pageSizeOptions: L,
4394
+ locale: oe,
4395
+ dataTestId: ye
4352
4396
  })
4353
4397
  ]
4354
4398
  });
4355
4399
  }
4356
- var da = a(ua);
4357
- da.displayName = "TableV2";
4400
+ var ha = a(ma);
4401
+ ha.displayName = "TableV2";
4358
4402
  //#endregion
4359
4403
  //#region src/components/Tabs/Tabs.tsx
4360
- var fa = r(null);
4361
- function pa() {
4362
- let e = c(fa);
4404
+ var ga = r(null);
4405
+ function _a() {
4406
+ let e = c(ga);
4363
4407
  if (!e) throw Error("Tab components must be used inside <Tabs>");
4364
4408
  return e;
4365
4409
  }
4366
- function ma(t) {
4410
+ function va(t) {
4367
4411
  let n = [];
4368
4412
  e.forEach(t, (e) => {
4369
4413
  o(e) && n.push(e);
@@ -4377,9 +4421,9 @@ function ma(t) {
4377
4421
  }
4378
4422
  return "";
4379
4423
  }
4380
- var ha = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r = "underline", size: i = "md", disabled: a = !1, className: o, children: s, dataTestId: c, ...l }, d) {
4381
- let [f, p] = m(() => e ?? ma(s)), h = t !== void 0, g = h ? t : f, _ = u();
4382
- return /* @__PURE__ */ G(fa.Provider, {
4424
+ var ya = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r = "underline", size: i = "md", disabled: a = !1, className: o, children: s, dataTestId: c, ...l }, d) {
4425
+ let [f, p] = m(() => e ?? va(s)), h = t !== void 0, g = h ? t : f, _ = u();
4426
+ return /* @__PURE__ */ W(ga.Provider, {
4383
4427
  value: {
4384
4428
  value: g,
4385
4429
  setValue: (e) => {
@@ -4390,7 +4434,7 @@ var ha = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4390
4434
  tabsId: _,
4391
4435
  disabled: a
4392
4436
  },
4393
- children: /* @__PURE__ */ G("div", {
4437
+ children: /* @__PURE__ */ W("div", {
4394
4438
  ref: d,
4395
4439
  "data-test-id": c,
4396
4440
  className: Z("flex flex-col gap-4", o),
@@ -4398,9 +4442,9 @@ var ha = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4398
4442
  children: s
4399
4443
  })
4400
4444
  });
4401
- }), ga = a(function({ children: e, scrollable: t = !1, className: n, dataTestId: r, onKeyDown: i, ...a }, o) {
4402
- let { variant: s } = pa(), c = p(null);
4403
- return /* @__PURE__ */ G("div", {
4445
+ }), ba = a(function({ children: e, scrollable: t = !1, className: n, dataTestId: r, onKeyDown: i, ...a }, o) {
4446
+ let { variant: s } = _a(), c = p(null);
4447
+ return /* @__PURE__ */ W("div", {
4404
4448
  ref: Gt(o, c),
4405
4449
  role: "tablist",
4406
4450
  onKeyDown: (e) => {
@@ -4421,12 +4465,12 @@ var ha = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4421
4465
  children: e
4422
4466
  });
4423
4467
  });
4424
- ga.displayName = "TabList";
4425
- var _a = {
4468
+ ba.displayName = "TabList";
4469
+ var xa = {
4426
4470
  lg: "h-11 px-4 text-p-md",
4427
4471
  md: "h-10 px-3 text-p-std",
4428
4472
  sm: "h-8 px-2.5 text-p-sm"
4429
- }, va = {
4473
+ }, Sa = {
4430
4474
  underline: {
4431
4475
  on: "bg-brand-500 text-white",
4432
4476
  off: "bg-bg-subtle text-fg-secondary"
@@ -4439,8 +4483,8 @@ var _a = {
4439
4483
  on: "bg-brand-500 text-white",
4440
4484
  off: "bg-bg-subtle text-fg-secondary"
4441
4485
  }
4442
- }, ya = a(function({ value: e, children: t, disabled: n, icon: r, badge: i, badgeProps: a, rightIcon: o, onRightIconClick: s, rightIconLabel: c, className: l, dataTestId: u, onClick: d, id: f, ...p }, m) {
4443
- let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = pa(), x = Ye(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Z("group relative inline-flex items-center justify-center gap-2 font-medium outline-none transition-colors", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1 focus-visible:rounded-md", _a[v], S && "opacity-50 cursor-not-allowed"), D = _ === "underline" ? Z("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Z("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Z("border-r border-border-default last:border-r-0", x ? "bg-bg-default text-fg-default" : "bg-transparent text-fg-secondary hover:bg-bg-subtle"), O = /* @__PURE__ */ K("button", {
4486
+ }, Ca = a(function({ value: e, children: t, disabled: n, icon: r, badge: i, badgeProps: a, rightIcon: o, onRightIconClick: s, rightIconLabel: c, className: l, dataTestId: u, onClick: d, id: f, ...p }, m) {
4487
+ let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = _a(), x = Ye(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Z("group relative inline-flex items-center justify-center gap-2 font-medium outline-none transition-colors", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1 focus-visible:rounded-md", xa[v], S && "opacity-50 cursor-not-allowed"), D = _ === "underline" ? Z("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Z("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Z("border-r border-border-default last:border-r-0", x ? "bg-bg-default text-fg-default" : "bg-transparent text-fg-secondary hover:bg-bg-subtle"), O = /* @__PURE__ */ G("button", {
4444
4488
  ref: m,
4445
4489
  id: w,
4446
4490
  type: "button",
@@ -4456,31 +4500,31 @@ var _a = {
4456
4500
  className: Z(E, D, o && "pr-9", l),
4457
4501
  ...p,
4458
4502
  children: [
4459
- r && /* @__PURE__ */ G("span", {
4503
+ r && /* @__PURE__ */ W("span", {
4460
4504
  className: "inline-flex shrink-0",
4461
4505
  children: r
4462
4506
  }),
4463
- /* @__PURE__ */ G("span", {
4507
+ /* @__PURE__ */ W("span", {
4464
4508
  className: "truncate",
4465
4509
  children: t
4466
4510
  }),
4467
- C && (a ? /* @__PURE__ */ G(At, {
4511
+ C && (a ? /* @__PURE__ */ W(At, {
4468
4512
  size: "xs",
4469
4513
  ...a,
4470
4514
  children: i
4471
- }) : /* @__PURE__ */ G("span", {
4472
- className: Z("inline-flex items-center justify-center shrink-0 rounded-full px-1.5 h-5 min-w-[1.25rem]", "text-label-xs font-semibold tabular-nums leading-none transition-colors", x ? va[_].on : va[_].off),
4515
+ }) : /* @__PURE__ */ W("span", {
4516
+ className: Z("inline-flex items-center justify-center shrink-0 rounded-full px-1.5 h-5 min-w-[1.25rem]", "text-label-xs font-semibold tabular-nums leading-none transition-colors", x ? Sa[_].on : Sa[_].off),
4473
4517
  children: i
4474
4518
  })),
4475
- _ === "underline" && /* @__PURE__ */ G("span", {
4519
+ _ === "underline" && /* @__PURE__ */ W("span", {
4476
4520
  "aria-hidden": !0,
4477
4521
  className: Z("pointer-events-none absolute inset-x-0 -bottom-px h-[2px] rounded-full bg-brand-500 transition-opacity duration-150", x ? "opacity-100" : "opacity-0")
4478
4522
  })
4479
4523
  ]
4480
4524
  });
4481
- return o ? /* @__PURE__ */ K("span", {
4525
+ return o ? /* @__PURE__ */ G("span", {
4482
4526
  className: "relative inline-flex",
4483
- children: [O, /* @__PURE__ */ G("button", {
4527
+ children: [O, /* @__PURE__ */ W("button", {
4484
4528
  type: "button",
4485
4529
  "aria-label": c,
4486
4530
  disabled: S,
@@ -4491,9 +4535,9 @@ var _a = {
4491
4535
  children: o
4492
4536
  })]
4493
4537
  }) : O;
4494
- }), ba = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4495
- let { value: c, tabsId: l } = pa(), u = Ye(c, e);
4496
- return !u && !a ? null : /* @__PURE__ */ G("div", {
4538
+ }), wa = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4539
+ let { value: c, tabsId: l } = _a(), u = Ye(c, e);
4540
+ return !u && !a ? null : /* @__PURE__ */ W("div", {
4497
4541
  ref: s,
4498
4542
  id: i ?? `${l}-panel-${e}`,
4499
4543
  role: "tabpanel",
@@ -4504,28 +4548,28 @@ var _a = {
4504
4548
  ...o,
4505
4549
  children: t
4506
4550
  });
4507
- }), xa = a(function({ label: e, labelAddons: t, helperText: n, errorText: r, error: i = !1, id: a, disabled: o, required: s, maxLength: c, showCount: l = !1, className: d, wrapperClassName: f, value: p, defaultValue: h, rows: g = 4, dataTestId: _, onChange: v, ...y }, b) {
4551
+ }), Ta = a(function({ label: e, labelAddons: t, helperText: n, errorText: r, error: i = !1, id: a, disabled: o, required: s, maxLength: c, showCount: l = !1, className: d, wrapperClassName: f, value: p, defaultValue: h, rows: g = 4, dataTestId: _, onChange: v, ...y }, b) {
4508
4552
  let x = u(), S = a ?? x, C = i || !!r, w = r ? `${S}-error` : n ? `${S}-help` : void 0, T = p !== void 0, E = l && !!c, [D, O] = m(() => String(h ?? "").length), k = T ? String(p).length : D;
4509
- return /* @__PURE__ */ K("div", {
4553
+ return /* @__PURE__ */ G("div", {
4510
4554
  className: Z("flex flex-col gap-1.5 w-full", f),
4511
4555
  "data-test-id": _,
4512
4556
  children: [
4513
- (e || t) && /* @__PURE__ */ K("div", {
4557
+ (e || t) && /* @__PURE__ */ G("div", {
4514
4558
  className: "flex items-center gap-1.5",
4515
- children: [e && /* @__PURE__ */ K("label", {
4559
+ children: [e && /* @__PURE__ */ G("label", {
4516
4560
  htmlFor: S,
4517
4561
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
4518
- children: [e, s && /* @__PURE__ */ G("span", {
4562
+ children: [e, s && /* @__PURE__ */ W("span", {
4519
4563
  className: "text-red-600",
4520
4564
  "aria-hidden": !0,
4521
4565
  children: "*"
4522
4566
  })]
4523
- }), t && /* @__PURE__ */ G("span", {
4567
+ }), t && /* @__PURE__ */ W("span", {
4524
4568
  className: "inline-flex items-center gap-1",
4525
4569
  children: t
4526
4570
  })]
4527
4571
  }),
4528
- /* @__PURE__ */ G("textarea", {
4572
+ /* @__PURE__ */ W("textarea", {
4529
4573
  ref: b,
4530
4574
  id: S,
4531
4575
  disabled: o,
@@ -4542,20 +4586,20 @@ var _a = {
4542
4586
  className: Z("w-full px-3 py-2.5 rounded-lg border bg-bg-default text-p-std text-fg-default placeholder:text-fg-tertiary outline-none transition-colors resize-y", C ? "border-red-600" : "border-border-default", !o && !C && "hover:border-border-strong", "focus:ring-2", C ? "focus:ring-red-300 focus:border-red-600" : "focus:ring-brand-300 focus:border-brand-500", o && "bg-bg-container border-border-default cursor-not-allowed", d),
4543
4587
  ...y
4544
4588
  }),
4545
- /* @__PURE__ */ K("div", {
4589
+ /* @__PURE__ */ G("div", {
4546
4590
  className: "flex items-start justify-between gap-2",
4547
- children: [/* @__PURE__ */ G("div", {
4591
+ children: [/* @__PURE__ */ W("div", {
4548
4592
  className: "flex-1 min-w-0",
4549
- children: r ? /* @__PURE__ */ G("p", {
4593
+ children: r ? /* @__PURE__ */ W("p", {
4550
4594
  id: `${S}-error`,
4551
4595
  className: "text-p-sm text-red-700",
4552
4596
  children: r
4553
- }) : n ? /* @__PURE__ */ G("p", {
4597
+ }) : n ? /* @__PURE__ */ W("p", {
4554
4598
  id: `${S}-help`,
4555
4599
  className: "text-p-sm text-fg-secondary",
4556
4600
  children: n
4557
4601
  }) : null
4558
- }), E && /* @__PURE__ */ K("p", {
4602
+ }), E && /* @__PURE__ */ G("p", {
4559
4603
  className: "text-p-sm text-fg-tertiary tabular-nums shrink-0",
4560
4604
  children: [
4561
4605
  k,
@@ -4566,16 +4610,16 @@ var _a = {
4566
4610
  })
4567
4611
  ]
4568
4612
  });
4569
- }), Sa = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4613
+ }), Ea = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4570
4614
  let c = u(), l = n ?? c;
4571
- return /* @__PURE__ */ K("label", {
4615
+ return /* @__PURE__ */ G("label", {
4572
4616
  htmlFor: l,
4573
4617
  "data-test-id": a,
4574
4618
  className: Z("inline-flex items-center gap-3", r ? "cursor-not-allowed opacity-60" : "cursor-pointer", i),
4575
- children: [/* @__PURE__ */ K("span", {
4619
+ children: [/* @__PURE__ */ G("span", {
4576
4620
  className: "relative inline-flex shrink-0",
4577
4621
  children: [
4578
- /* @__PURE__ */ G("input", {
4622
+ /* @__PURE__ */ W("input", {
4579
4623
  ref: s,
4580
4624
  id: l,
4581
4625
  type: "checkbox",
@@ -4586,40 +4630,40 @@ var _a = {
4586
4630
  className: "peer sr-only",
4587
4631
  ...o
4588
4632
  }),
4589
- /* @__PURE__ */ K("span", {
4633
+ /* @__PURE__ */ G("span", {
4590
4634
  className: Z("inline-flex h-8 w-16 items-center justify-between rounded-full border px-2 transition-colors", "peer-checked:bg-gray-700 dark:bg-gray-700 dark:peer-checked:bg-gray-900", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-2"),
4591
- children: [/* @__PURE__ */ G(fe, {
4635
+ children: [/* @__PURE__ */ W(pe, {
4592
4636
  className: "size-4 text-yellow-500 z-1",
4593
4637
  "aria-hidden": !0
4594
- }), /* @__PURE__ */ G(L, {
4638
+ }), /* @__PURE__ */ W(re, {
4595
4639
  className: "size-4 text-gray-400 z-1",
4596
4640
  "aria-hidden": !0
4597
4641
  })]
4598
4642
  }),
4599
- /* @__PURE__ */ G("span", {
4643
+ /* @__PURE__ */ W("span", {
4600
4644
  "aria-hidden": !0,
4601
4645
  className: "absolute left-1 top-1 size-6 rounded-full bg-white shadow-[0_1px_3px_#00000040] transition-transform peer-checked:translate-x-8 peer-checked:bg-gray-600"
4602
4646
  })
4603
4647
  ]
4604
- }), t && /* @__PURE__ */ G("span", {
4648
+ }), t && /* @__PURE__ */ W("span", {
4605
4649
  className: "text-p-std font-medium text-fg-default",
4606
4650
  children: t
4607
4651
  })]
4608
4652
  });
4609
- }), Ca = {
4653
+ }), Da = {
4610
4654
  lg: "px-3 py-2 text-p-std",
4611
4655
  sm: "px-2 py-1 text-p-sm"
4612
- }, wa = {
4656
+ }, Oa = {
4613
4657
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
4614
4658
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
4615
4659
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
4616
4660
  right: "left-full top-1/2 -translate-y-1/2 ml-2"
4617
- }, Ta = {
4661
+ }, ka = {
4618
4662
  top: "top-full left-1/2 -translate-x-1/2 border-t-fg-default border-x-transparent border-b-transparent",
4619
4663
  bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-fg-default border-x-transparent border-t-transparent",
4620
4664
  left: "left-full top-1/2 -translate-y-1/2 border-l-fg-default border-y-transparent border-r-transparent",
4621
4665
  right: "right-full top-1/2 -translate-y-1/2 border-r-fg-default border-y-transparent border-l-transparent"
4622
- }, Ea = a(function({ content: e, children: t, side: r = "top", size: i = "sm", delay: a = 150, className: s, dataTestId: c }, l) {
4666
+ }, Aa = a(function({ content: e, children: t, side: r = "top", size: i = "sm", delay: a = 150, className: s, dataTestId: c }, l) {
4623
4667
  let [d, f] = m(!1), h = p(null), g = u(), _ = () => {
4624
4668
  h.current && clearTimeout(h.current), h.current = setTimeout(() => f(!0), a);
4625
4669
  }, v = () => {
@@ -4627,7 +4671,7 @@ var _a = {
4627
4671
  };
4628
4672
  if (!o(t)) return t;
4629
4673
  let y = t.props ?? {};
4630
- return /* @__PURE__ */ K("span", {
4674
+ return /* @__PURE__ */ G("span", {
4631
4675
  ref: l,
4632
4676
  "data-test-id": c,
4633
4677
  className: "relative inline-flex",
@@ -4637,42 +4681,42 @@ var _a = {
4637
4681
  onFocus: _,
4638
4682
  onBlur: v,
4639
4683
  "aria-describedby": d ? g : y["aria-describedby"]
4640
- }), d && /* @__PURE__ */ K("span", {
4684
+ }), d && /* @__PURE__ */ G("span", {
4641
4685
  role: "tooltip",
4642
4686
  id: g,
4643
- className: Z("absolute z-50 whitespace-pre-wrap w-max rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", Ca[i], wa[r], s),
4644
- children: [e, /* @__PURE__ */ G("span", {
4687
+ className: Z("absolute z-50 whitespace-pre-wrap w-max rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", Da[i], Oa[r], s),
4688
+ children: [e, /* @__PURE__ */ W("span", {
4645
4689
  "aria-hidden": !0,
4646
- className: Z("absolute h-0 w-0 border-4", Ta[r])
4690
+ className: Z("absolute h-0 w-0 border-4", ka[r])
4647
4691
  })]
4648
4692
  })]
4649
4693
  });
4650
- }), Da = "We'll be back soon", Oa = "We're currently performing scheduled maintenance to make your experience even better. Please check back shortly.", ka = {
4694
+ }), ja = "We'll be back soon", Ma = "We're currently performing scheduled maintenance to make your experience even better. Please check back shortly.", Na = {
4651
4695
  lg: "xl",
4652
4696
  sm: "lg"
4653
- }, Aa = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4654
- return /* @__PURE__ */ G(rr, {
4697
+ }, Pa = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4698
+ return /* @__PURE__ */ W(rr, {
4655
4699
  ref: a,
4656
4700
  size: e,
4657
- title: t ?? Da,
4658
- description: n ?? Oa,
4659
- illustration: r ?? /* @__PURE__ */ G(Sn, {
4701
+ title: t ?? ja,
4702
+ description: n ?? Ma,
4703
+ illustration: r ?? /* @__PURE__ */ W(Sn, {
4660
4704
  icon: k,
4661
4705
  tone: "brand",
4662
4706
  shape: "circle",
4663
- size: ka[e]
4707
+ size: Na[e]
4664
4708
  }),
4665
4709
  ...i
4666
4710
  });
4667
4711
  });
4668
4712
  //#endregion
4669
4713
  //#region src/hooks/useStepper.ts
4670
- function ja(e, t) {
4714
+ function Fa(e, t) {
4671
4715
  return t <= 0 ? 0 : Math.min(Math.max(e, 0), t - 1);
4672
4716
  }
4673
- function Ma({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i = !1 }) {
4674
- let [a, o] = m(() => ja(t, e)), s = n !== void 0, c = s ? ja(n, e) : a, l = (t) => {
4675
- let n = ja(t, e);
4717
+ function Ia({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i = !1 }) {
4718
+ let [a, o] = m(() => Fa(t, e)), s = n !== void 0, c = s ? Fa(n, e) : a, l = (t) => {
4719
+ let n = Fa(t, e);
4676
4720
  s || o(n), r?.(n);
4677
4721
  };
4678
4722
  return {
@@ -4700,37 +4744,37 @@ function Ma({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i =
4700
4744
  }
4701
4745
  //#endregion
4702
4746
  //#region src/hooks/useOnOutsideClick.ts
4703
- var Na = [];
4704
- function Pa(e) {
4705
- let t = Na[Na.length - 1];
4747
+ var La = [];
4748
+ function Ra(e) {
4749
+ let t = La[La.length - 1];
4706
4750
  if (!t) return;
4707
4751
  let { ref: n, callback: r, shouldRemoveCallback: i } = t;
4708
- n && !n.contains(e.target) && (i && Na.splice(Na.length - 1, 1), r(e));
4752
+ n && !n.contains(e.target) && (i && La.splice(La.length - 1, 1), r(e));
4709
4753
  }
4710
- var Fa = (e, t, n, r, i = !0) => {
4754
+ var za = (e, t, n, r, i = !0) => {
4711
4755
  l(() => {
4712
- if (e && n && r) return Na.push({
4756
+ if (e && n && r) return La.push({
4713
4757
  ref: e,
4714
4758
  callback: t,
4715
4759
  uid: r,
4716
4760
  shouldRemoveCallback: i
4717
- }), Na.length === 1 && document.addEventListener("mousedown", Pa), () => {
4718
- Na.length === 0 && document.removeEventListener("mousedown", Pa);
4761
+ }), La.length === 1 && document.addEventListener("mousedown", Ra), () => {
4762
+ La.length === 0 && document.removeEventListener("mousedown", Ra);
4719
4763
  };
4720
4764
  }, [
4721
4765
  e,
4722
4766
  n,
4723
4767
  r
4724
4768
  ]), l(() => {
4725
- if (!n && Na.length > 0) {
4726
- let e = Na.findIndex((e) => e.uid === r);
4727
- e >= 0 && Na.splice(e, 1);
4769
+ if (!n && La.length > 0) {
4770
+ let e = La.findIndex((e) => e.uid === r);
4771
+ e >= 0 && La.splice(e, 1);
4728
4772
  }
4729
4773
  }, [n]);
4730
4774
  };
4731
4775
  //#endregion
4732
4776
  //#region src/hooks/useEscapeKey.ts
4733
- function Ia(e, t = !0) {
4777
+ function Ba(e, t = !0) {
4734
4778
  l(() => {
4735
4779
  if (!t) return;
4736
4780
  let n = (t) => {
@@ -4741,18 +4785,18 @@ function Ia(e, t = !0) {
4741
4785
  }
4742
4786
  //#endregion
4743
4787
  //#region src/hooks/useHideBodyScroll.ts
4744
- var La = 0, Ra = "";
4745
- function za(e) {
4788
+ var Va = 0, Ha = "";
4789
+ function Ua(e) {
4746
4790
  l(() => {
4747
- if (e) return La === 0 && (Ra = document.body.style.overflow, document.body.style.overflow = "hidden"), La += 1, () => {
4748
- --La, La === 0 && (document.body.style.overflow = Ra);
4791
+ if (e) return Va === 0 && (Ha = document.body.style.overflow, document.body.style.overflow = "hidden"), Va += 1, () => {
4792
+ --Va, Va === 0 && (document.body.style.overflow = Ha);
4749
4793
  };
4750
4794
  }, [e]);
4751
4795
  }
4752
4796
  //#endregion
4753
4797
  //#region src/hooks/useIsMobile.ts
4754
- var Ba = 768;
4755
- function Va(e = Ba) {
4798
+ var Wa = 768;
4799
+ function Ga(e = Wa) {
4756
4800
  let [t, n] = m(!1);
4757
4801
  return l(() => {
4758
4802
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
@@ -4762,33 +4806,33 @@ function Va(e = Ba) {
4762
4806
  }
4763
4807
  //#endregion
4764
4808
  //#region src/hooks/useFormContext.ts
4765
- function Ha() {
4809
+ function Ka() {
4766
4810
  let e = c(sr);
4767
4811
  if (!e) throw Error("useFormContext must be used inside a FormContainer.");
4768
4812
  return e;
4769
4813
  }
4770
4814
  //#endregion
4771
4815
  //#region src/hooks/useFormProps.ts
4772
- var Ua = () => void 0, Wa = {
4816
+ var qa = () => void 0, Ja = {
4773
4817
  errors: {},
4774
- setValue: Ua,
4775
- reset: Ua,
4776
- clearErrors: Ua,
4777
- setError: Ua,
4778
- unregister: Ua,
4818
+ setValue: qa,
4819
+ reset: qa,
4820
+ clearErrors: qa,
4821
+ setError: qa,
4822
+ unregister: qa,
4779
4823
  isDirty: !1,
4780
4824
  isSubmitted: !1,
4781
4825
  isSubmitting: !1,
4782
4826
  isValid: !1,
4783
4827
  dirtyFields: {},
4784
- submit: Ua
4828
+ submit: qa
4785
4829
  };
4786
- function Ga() {
4787
- return c(sr) ?? Wa;
4830
+ function Ya() {
4831
+ return c(sr) ?? Ja;
4788
4832
  }
4789
4833
  //#endregion
4790
4834
  //#region src/tokens/colors.ts
4791
- var Ka = {
4835
+ var Xa = {
4792
4836
  900: "#31531C",
4793
4837
  800: "#416E26",
4794
4838
  700: "#518A2F",
@@ -4814,7 +4858,7 @@ var Ka = {
4814
4858
  100: "#f2f5f8",
4815
4859
  50: "#f5f7fa",
4816
4860
  20: "#f7f9fc"
4817
- }, qa = "#FEFEFE", Ja = {
4861
+ }, Za = "#FEFEFE", Qa = {
4818
4862
  900: "#0b4627",
4819
4863
  800: "#0f5c33",
4820
4864
  700: "#3D8B46",
@@ -4825,7 +4869,7 @@ var Ka = {
4825
4869
  200: "#aeeacb",
4826
4870
  100: "#d0f5e1",
4827
4871
  50: "#e0faec"
4828
- }, Ya = {
4872
+ }, $a = {
4829
4873
  900: "#2443B8",
4830
4874
  800: "#2E63D6",
4831
4875
  700: "#3475E8",
@@ -4836,7 +4880,7 @@ var Ka = {
4836
4880
  200: "#9ACAFA",
4837
4881
  100: "#C1DEFC",
4838
4882
  50: "#E6F2FE"
4839
- }, Xa = {
4883
+ }, eo = {
4840
4884
  900: "#081FA6",
4841
4885
  800: "#0E2AB2",
4842
4886
  700: "#2431B9",
@@ -4848,7 +4892,7 @@ var Ka = {
4848
4892
  100: "#CBC4ED",
4849
4893
  50: "#EAE7F7",
4850
4894
  20: "#F5F3FB"
4851
- }, Za = {
4895
+ }, to = {
4852
4896
  900: "#4A0A20",
4853
4897
  800: "#79012F",
4854
4898
  700: "#A2023F",
@@ -4859,7 +4903,7 @@ var Ka = {
4859
4903
  200: "#FE7DAF",
4860
4904
  100: "#FEA8C9",
4861
4905
  50: "#FFD4E4"
4862
- }, Qa = {
4906
+ }, no = {
4863
4907
  900: "#8b1822",
4864
4908
  800: "#ad1f2b",
4865
4909
  700: "#d02533",
@@ -4871,7 +4915,7 @@ var Ka = {
4871
4915
  100: "#ffd5d8",
4872
4916
  50: "#ffebec",
4873
4917
  20: "#fff4f4"
4874
- }, $a = {
4918
+ }, ro = {
4875
4919
  900: "#EB7520",
4876
4920
  800: "#ED912A",
4877
4921
  700: "#EEA02F",
@@ -4882,47 +4926,47 @@ var Ka = {
4882
4926
  200: "#F7DE8E",
4883
4927
  100: "#FAEBB9",
4884
4928
  50: "#FDF7E4"
4885
- }, eo = {
4886
- brand: Ka,
4929
+ }, io = {
4930
+ brand: Xa,
4887
4931
  gray: $,
4888
- green: Ja,
4889
- blue: Ya,
4890
- purple: Xa,
4891
- pink: Za,
4892
- red: Qa,
4893
- yellow: $a
4894
- }, to = {
4895
- bgDefault: qa,
4932
+ green: Qa,
4933
+ blue: $a,
4934
+ purple: eo,
4935
+ pink: to,
4936
+ red: no,
4937
+ yellow: ro
4938
+ }, ao = {
4939
+ bgDefault: Za,
4896
4940
  bgContainer: $[50],
4897
4941
  bgSubtle: $[100],
4898
- bgBrandLighter: Ka[20],
4899
- bgInfoLighter: Ya[50],
4900
- bgSuccessLighter: Ja[50],
4901
- bgWarningLighter: $a[50],
4902
- bgDangerLighter: Qa[50],
4942
+ bgBrandLighter: Xa[20],
4943
+ bgInfoLighter: $a[50],
4944
+ bgSuccessLighter: Qa[50],
4945
+ bgWarningLighter: ro[50],
4946
+ bgDangerLighter: no[50],
4903
4947
  fgDefault: $[900],
4904
4948
  fgSecondary: $[600],
4905
4949
  fgTertiary: $[500],
4906
4950
  fgDisabled: $[400],
4907
- fgInverse: qa,
4908
- fgBrand: Ka[500],
4909
- fgInfo: Ya[600],
4910
- fgSuccess: Ja[600],
4911
- fgWarning: $a[800],
4912
- fgDanger: Qa[800],
4951
+ fgInverse: Za,
4952
+ fgBrand: Xa[500],
4953
+ fgInfo: $a[600],
4954
+ fgSuccess: Qa[600],
4955
+ fgWarning: ro[800],
4956
+ fgDanger: no[800],
4913
4957
  borderDefault: $[200],
4914
4958
  borderSubtle: $[100],
4915
4959
  borderStrong: $[300],
4916
- borderBrand: Ka[500],
4960
+ borderBrand: Xa[500],
4917
4961
  iconPrimary: $[900],
4918
4962
  iconSecondary: $[600],
4919
- iconInverse: qa,
4920
- iconBrand: Ka[500],
4921
- iconInfo: Ya[600],
4922
- iconDanger: Qa[800],
4923
- iconWarning: $a[800]
4924
- }, no = {
4925
- ...to,
4963
+ iconInverse: Za,
4964
+ iconBrand: Xa[500],
4965
+ iconInfo: $a[600],
4966
+ iconDanger: no[800],
4967
+ iconWarning: ro[800]
4968
+ }, oo = {
4969
+ ...ao,
4926
4970
  bgDefault: "#0B1120",
4927
4971
  bgContainer: "#0F172A",
4928
4972
  bgSubtle: "#121C30",
@@ -4931,16 +4975,16 @@ var Ka = {
4931
4975
  bgSuccessLighter: "rgba(31, 193, 107, 0.15)",
4932
4976
  bgWarningLighter: "rgba(237, 145, 42, 0.15)",
4933
4977
  bgDangerLighter: "rgba(230, 27, 0, 0.15)",
4934
- fgDefault: qa,
4978
+ fgDefault: Za,
4935
4979
  fgSecondary: $[400],
4936
4980
  fgTertiary: $[500],
4937
4981
  fgDisabled: $[600],
4938
4982
  borderDefault: "rgba(255, 255, 255, 0.05)",
4939
4983
  borderSubtle: "rgba(255, 255, 255, 0.03)",
4940
4984
  borderStrong: "rgba(255, 255, 255, 0.10)",
4941
- iconPrimary: qa,
4985
+ iconPrimary: Za,
4942
4986
  iconSecondary: $[400]
4943
- }, ro = {
4987
+ }, so = {
4944
4988
  ps: [
4945
4989
  "Noto Sans Armenian",
4946
4990
  "Noto Sans",
@@ -4955,7 +4999,7 @@ var Ka = {
4955
4999
  "system-ui",
4956
5000
  "sans-serif"
4957
5001
  ]
4958
- }, io = {
5002
+ }, co = {
4959
5003
  xl: {
4960
5004
  fontSize: "64px",
4961
5005
  lineHeight: "72px"
@@ -4980,7 +5024,7 @@ var Ka = {
4980
5024
  fontSize: "24px",
4981
5025
  lineHeight: "32px"
4982
5026
  }
4983
- }, ao = {
5027
+ }, lo = {
4984
5028
  lg: {
4985
5029
  fontSize: "20px",
4986
5030
  lineHeight: "28px"
@@ -5001,7 +5045,7 @@ var Ka = {
5001
5045
  fontSize: "10px",
5002
5046
  lineHeight: "14px"
5003
5047
  }
5004
- }, oo = {
5048
+ }, uo = {
5005
5049
  lg: {
5006
5050
  fontSize: "20px",
5007
5051
  lineHeight: "28px"
@@ -5026,19 +5070,19 @@ var Ka = {
5026
5070
  fontSize: "6px",
5027
5071
  lineHeight: "6px"
5028
5072
  }
5029
- }, so = {
5030
- headline: io,
5031
- paragraph: ao,
5032
- label: oo
5033
- }, co = {
5073
+ }, fo = {
5074
+ headline: co,
5075
+ paragraph: lo,
5076
+ label: uo
5077
+ }, po = {
5034
5078
  sm: "2rem",
5035
5079
  md: "2.5rem",
5036
5080
  lg: "3rem"
5037
- }, lo = {
5081
+ }, mo = {
5038
5082
  sm: "0.875rem",
5039
5083
  md: "1rem",
5040
5084
  lg: "1.25rem"
5041
- }, uo = {
5085
+ }, ho = {
5042
5086
  xs: "2px",
5043
5087
  sm: "4px",
5044
5088
  md: "8px",
@@ -5047,7 +5091,7 @@ var Ka = {
5047
5091
  "2xl": "20px",
5048
5092
  "3xl": "24px",
5049
5093
  full: "9999px"
5050
- }, fo = {
5094
+ }, go = {
5051
5095
  z1: "0 1px 2px 0 rgba(0, 0, 0, 0.06)",
5052
5096
  z2: "0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04)",
5053
5097
  z3: "0 4px 8px 0 rgba(0, 0, 0, 0.08), 0 2px 4px 0 rgba(0, 0, 0, 0.04)",
@@ -5055,6 +5099,6 @@ var Ka = {
5055
5099
  z5: "0 8px 16px 0 rgba(0, 0, 0, 0.12), 0 24px 32px 0 rgba(0, 0, 0, 0.12)"
5056
5100
  };
5057
5101
  //#endregion
5058
- export { Q as Accordion, et as AccordionItem, bt as Avatar, xt as AvatarGroup, At as Badge, Nt as Breadcrumb, at as Button, Ft as ButtonGroup, Rt as Card, Bt as CardGroup, Wt as Checkbox, Zt as Copy, an as Counter, yn as DatePicker, An as DeviceRestriction, Pn as DistributionBar, Je as Divider, Hn as Drawer, Zn as DropdownContent, Qn as DropdownItem, er as DropdownLabel, Jn as DropdownMenu, $n as DropdownSeparator, Yn as DropdownTrigger, rr as Empty, or as Filter, cr as FormContainer, lr as FormField, Sn as IconTile, ur as InfoField, fr as InlineAlert, nn as Input, pr as Link, hr as Modal, br as NotificationBadge, wr as Pagination, Dr as PersonCard, Xt as Popover, Mr as Progress, Lr as Radio, Pr as RadioGroup, Rr as ReadMore, li as SelectV2, fi as Sidebar, pi as SidebarItem, _i as Skeleton, Ci as SnackbarProvider, Di as Status, zi as StepIndicator, Hi as Switch, ya as Tab, ga as TabList, ba as TabPanel, da as TableV2, Ui as TableV2ColumnFilter, Ji as TableV2ColumnVisibilityMenu, Gi as TableV2Pagination, $i as TableV2RowActionsMenu, Ki as TableV2Skeleton, Yi as TableV2Toolbar, ha as Tabs, Dn as Text, xa as TextArea, Sa as ThemeSwitch, Ea as Tooltip, Aa as UnderConstruction, ut as Upload, ft as UploadItem, Ya as blue, Ka as brand, Z as cn, eo as colorPrimitives, co as controlHeight, ra as createRowActionsColumn, na as createSelectionColumn, no as darkTheme, ro as fontFamily, ia as getPinnedStyles, $ as gray, Ja as green, io as headline, lo as iconSize, oo as label, to as lightTheme, ao as paragraph, Za as pink, Xa as purple, uo as radius, Qa as red, fo as shadows, so as typography, Ia as useEscapeKey, xe as useFieldArray, Ha as useFormContext, Ga as useFormProps, za as useHideBodyScroll, Va as useIsMobile, Fa as useOnOutsideClick, Si as useSnackbar, Ma as useStepper, lt as validateSingleFile, qa as white, $a as yellow };
5102
+ export { Q as Accordion, et as AccordionItem, bt as Avatar, xt as AvatarGroup, At as Badge, Nt as Breadcrumb, at as Button, Ft as ButtonGroup, Rt as Card, Bt as CardGroup, Wt as Checkbox, Zt as Copy, an as Counter, yn as DatePicker, An as DeviceRestriction, Pn as DistributionBar, Je as Divider, Hn as Drawer, Zn as DropdownContent, Qn as DropdownItem, er as DropdownLabel, Jn as DropdownMenu, $n as DropdownSeparator, Yn as DropdownTrigger, rr as Empty, or as Filter, cr as FormContainer, lr as FormField, Sn as IconTile, ur as InfoField, fr as InlineAlert, nn as Input, pr as Link, hr as Modal, br as NotificationBadge, wr as Pagination, Dr as PersonCard, Xt as Popover, Mr as Progress, Lr as Radio, Pr as RadioGroup, Rr as ReadMore, pi as SelectV2, gi as Sidebar, _i as SidebarItem, xi as Skeleton, Di as SnackbarProvider, ji as Status, Ui as StepIndicator, Ki as Switch, Ca as Tab, ba as TabList, wa as TabPanel, ha as TableV2, qi as TableV2ColumnFilter, Qi as TableV2ColumnVisibilityMenu, Yi as TableV2Pagination, ra as TableV2RowActionsMenu, Xi as TableV2Skeleton, $i as TableV2Toolbar, ya as Tabs, Dn as Text, Ta as TextArea, Ea as ThemeSwitch, Aa as Tooltip, Pa as UnderConstruction, ut as Upload, ft as UploadItem, $a as blue, Xa as brand, Z as cn, io as colorPrimitives, po as controlHeight, sa as createRowActionsColumn, oa as createSelectionColumn, oo as darkTheme, so as fontFamily, ca as getPinnedStyles, $ as gray, Qa as green, co as headline, mo as iconSize, uo as label, ao as lightTheme, lo as paragraph, to as pink, eo as purple, ho as radius, no as red, go as shadows, fo as typography, Ba as useEscapeKey, Se as useFieldArray, Ka as useFormContext, Ya as useFormProps, Ua as useHideBodyScroll, Ga as useIsMobile, za as useOnOutsideClick, Ei as useSnackbar, Ia as useStepper, lt as validateSingleFile, Za as white, ro as yellow };
5059
5103
 
5060
5104
  //# sourceMappingURL=index.js.map