@dinofront/design_system 1.8.0 → 1.9.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,5 +1,5 @@
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 A, Download as j, EyeOff as M, File as ee, GripVertical as N, Info as P, Loader2 as te, Menu as F, Minus as I, Moon as L, MoreHorizontal as R, MoreVertical as z, Paperclip as B, Pencil as V, Pin as H, PinOff as ne, Plus as re, RefreshCw as ie, Search as U, SearchX as W, Sparkles as G, Sun as ae, Trash2 as K, UploadCloud as oe, User as se, Users as ce, X as q, XCircle as le } from "lucide-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 A, Download as j, EyeOff as M, File as ee, GripVertical as N, Info as P, Loader2 as F, Menu as I, Minus as L, Moon as R, MoreHorizontal as z, MoreVertical as B, Paperclip as V, Pencil as H, Pin as U, PinOff as te, Plus as ne, RefreshCw as re, Search as W, SearchX as ie, Sparkles as G, Sun as ae, Trash2 as K, UploadCloud as oe, User as se, Users as ce, X as q, XCircle as le } from "lucide-react";
3
3
  import { clsx as ue } from "clsx";
4
4
  import { extendTailwindMerge as de } from "tailwind-merge";
5
5
  import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
@@ -190,7 +190,7 @@ var Xe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
190
190
  },
191
191
  className: Q("inline-flex items-center justify-center font-medium transition-colors outline-none", a ? $e[t] : Qe[t], et[e], s && tt[e], o && "w-full", l),
192
192
  ...p,
193
- children: i ? /* @__PURE__ */ Y(te, {
193
+ children: i ? /* @__PURE__ */ Y(F, {
194
194
  className: "h-4 w-4 animate-spin",
195
195
  "aria-hidden": !0
196
196
  }) : /* @__PURE__ */ X(J, { children: [
@@ -265,9 +265,9 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
265
265
  r.push(i), u.push(i), --f;
266
266
  }
267
267
  r.length && i?.(r), a.length && d?.(a);
268
- }, te = (e) => {
268
+ }, F = (e) => {
269
269
  e.preventDefault(), j.current = 0, A(!1), !a && P(Array.from(e.dataTransfer.files ?? []));
270
- }, F = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, I = /* @__PURE__ */ Y("input", {
270
+ }, I = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, L = /* @__PURE__ */ Y("input", {
271
271
  ref: O,
272
272
  type: "file",
273
273
  accept: e,
@@ -277,7 +277,7 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
277
277
  P(Array.from(e.target.files ?? [])), e.target.value = "";
278
278
  },
279
279
  className: "sr-only"
280
- }), L = (y || C) && /* @__PURE__ */ X("div", {
280
+ }), R = (y || C) && /* @__PURE__ */ X("div", {
281
281
  className: "flex items-center gap-1.5",
282
282
  children: [y && /* @__PURE__ */ X("span", {
283
283
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
@@ -290,11 +290,11 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
290
290
  className: "inline-flex items-center gap-1",
291
291
  children: C
292
292
  })]
293
- }), R = S ? /* @__PURE__ */ Y("p", {
293
+ }), z = S ? /* @__PURE__ */ Y("p", {
294
294
  id: `${ee}-error`,
295
295
  className: "text-p-sm text-red-700",
296
296
  children: S
297
- }) : null, z = f && l.length > 0 && /* @__PURE__ */ Y("div", {
297
+ }) : null, B = f && l.length > 0 && /* @__PURE__ */ Y("div", {
298
298
  className: "flex flex-col gap-2",
299
299
  children: l.map((e, t) => /* @__PURE__ */ Y(lt, {
300
300
  name: e.name,
@@ -309,9 +309,9 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
309
309
  className: Q("flex flex-col gap-1.5", w),
310
310
  ...E,
311
311
  children: [
312
- L,
313
- z,
314
- R
312
+ R,
313
+ B,
314
+ z
315
315
  ]
316
316
  });
317
317
  if (g !== "dropzone") {
@@ -322,24 +322,24 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
322
322
  className: Q("flex flex-col gap-1.5", w),
323
323
  ...E,
324
324
  children: [
325
- L,
325
+ R,
326
326
  /* @__PURE__ */ Y(nt, {
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__ */ Y(B, { className: "h-4 w-4" }),
332
+ leftIcon: e ? void 0 : v ?? /* @__PURE__ */ Y(V, { className: "h-4 w-4" }),
333
333
  "aria-label": e ? "Upload file" : void 0,
334
- children: e ? v ?? /* @__PURE__ */ Y(V, { className: "h-4 w-4" }) : _ ?? "Choose a file"
334
+ children: e ? v ?? /* @__PURE__ */ Y(H, { className: "h-4 w-4" }) : _ ?? "Choose a file"
335
335
  }),
336
- I,
337
- z,
338
- R
336
+ L,
337
+ B,
338
+ z
339
339
  ]
340
340
  });
341
341
  }
342
- let H = /* @__PURE__ */ X("div", {
342
+ let U = /* @__PURE__ */ X("div", {
343
343
  ref: D,
344
344
  onDragEnter: () => {
345
345
  j.current += 1, a || A(!0);
@@ -348,7 +348,7 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
348
348
  onDragLeave: () => {
349
349
  j.current = Math.max(0, j.current - 1), j.current === 0 && A(!1);
350
350
  },
351
- onDrop: te,
351
+ onDrop: F,
352
352
  onClick: () => !a && O.current?.click(),
353
353
  role: "button",
354
354
  tabIndex: 0,
@@ -376,19 +376,19 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
376
376
  }), " or drag & drop it here."]
377
377
  }), /* @__PURE__ */ Y("p", {
378
378
  className: "text-p-sm text-fg-tertiary",
379
- children: F
379
+ children: I
380
380
  })]
381
381
  }),
382
- I
382
+ L
383
383
  ]
384
384
  });
385
- return !L && !R && !z ? H : /* @__PURE__ */ X("div", {
385
+ return !R && !z && !B ? U : /* @__PURE__ */ X("div", {
386
386
  className: "flex flex-col gap-1.5",
387
387
  children: [
388
- L,
389
- H,
390
- z,
391
- R
388
+ R,
389
+ U,
390
+ B,
391
+ z
392
392
  ]
393
393
  });
394
394
  }), ct = {
@@ -573,7 +573,7 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
573
573
  },
574
574
  "aria-label": "Change avatar image",
575
575
  className: Q("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", mt[r]),
576
- children: /* @__PURE__ */ Y(V, { className: "h-1/2 w-1/2" })
576
+ children: /* @__PURE__ */ Y(H, { className: "h-1/2 w-1/2" })
577
577
  }), /* @__PURE__ */ Y("input", {
578
578
  ref: C,
579
579
  type: "file",
@@ -841,7 +841,7 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
841
841
  ...m
842
842
  }), /* @__PURE__ */ Y("span", {
843
843
  className: Q("flex items-center justify-center border transition-colors", Rt[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"),
844
- children: Y(a ? I : b, {
844
+ children: Y(a ? L : b, {
845
845
  className: Q(zt[e], "text-white"),
846
846
  strokeWidth: 3,
847
847
  "aria-hidden": !0
@@ -998,8 +998,8 @@ function Kt({ content: e, children: t, side: r = "top", align: i = "center", off
998
998
  },
999
999
  "aria-haspopup": "dialog",
1000
1000
  "aria-expanded": w
1001
- }), te = v ?? (typeof document < "u" ? document.body : null);
1002
- return /* @__PURE__ */ X(J, { children: [P, w && te && fe(/* @__PURE__ */ X("div", {
1001
+ }), F = v ?? (typeof document < "u" ? document.body : null);
1002
+ return /* @__PURE__ */ X(J, { children: [P, w && F && fe(/* @__PURE__ */ X("div", {
1003
1003
  ref: Vt(D),
1004
1004
  id: O,
1005
1005
  role: "dialog",
@@ -1014,7 +1014,7 @@ function Kt({ content: e, children: t, side: r = "top", align: i = "center", off
1014
1014
  style: j,
1015
1015
  className: Q("absolute size-2 rotate-45 bg-bg-default", Gt[M])
1016
1016
  })]
1017
- }), te)] });
1017
+ }), F)] });
1018
1018
  }
1019
1019
  //#endregion
1020
1020
  //#region src/components/Copy/Copy.tsx
@@ -1177,7 +1177,7 @@ var qt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1177
1177
  onClick: () => T(S - a),
1178
1178
  "aria-label": "Decrease",
1179
1179
  className: $t,
1180
- children: /* @__PURE__ */ Y(I, { className: "size-4" })
1180
+ children: /* @__PURE__ */ Y(L, { className: "size-4" })
1181
1181
  }),
1182
1182
  rightAddon: /* @__PURE__ */ Y("button", {
1183
1183
  type: "button",
@@ -1185,7 +1185,7 @@ var qt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1185
1185
  onClick: () => T(S + a),
1186
1186
  "aria-label": "Increase",
1187
1187
  className: $t,
1188
- children: /* @__PURE__ */ Y(re, { className: "size-4" })
1188
+ children: /* @__PURE__ */ Y(ne, { className: "size-4" })
1189
1189
  }),
1190
1190
  className: Q("text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none", p),
1191
1191
  ..._
@@ -1265,20 +1265,20 @@ function mn(e, t) {
1265
1265
  return i;
1266
1266
  }
1267
1267
  var hn = 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: A, wrapperClassName: j, dataTestId: M }, ee) {
1268
- let N = u(), P = k ?? N, [te, F] = m(!1), [I, L] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [R, z] = m(null), B = p(null), V = D || !!O, H = O ? `${P}-error` : g ? `${P}-help` : void 0;
1268
+ let N = u(), P = k ?? N, [F, I] = m(!1), [L, R] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [z, B] = m(null), V = p(null), H = D || !!O, U = O ? `${P}-error` : g ? `${P}-help` : void 0;
1269
1269
  l(() => {
1270
- b && F(!1);
1270
+ b && I(!1);
1271
1271
  }, [b]), l(() => {
1272
- if (!te) return;
1272
+ if (!F) return;
1273
1273
  let e = (e) => {
1274
- B.current && !B.current.contains(e.target) && F(!1);
1274
+ V.current && !V.current.contains(e.target) && I(!1);
1275
1275
  };
1276
1276
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1277
- }, [te]);
1278
- let ne = r ? i?.start ? `${pn(i.start, c)}${i.end ? ` – ${pn(i.end, c)}` : ""}` : "" : e ? pn(e, c) : "";
1279
- function re(e) {
1277
+ }, [F]);
1278
+ let te = r ? i?.start ? `${pn(i.start, c)}${i.end ? ` – ${pn(i.end, c)}` : ""}` : "" : e ? pn(e, c) : "";
1279
+ function ne(e) {
1280
1280
  if (!r) {
1281
- t?.(e), F(!1);
1281
+ t?.(e), I(!1);
1282
1282
  return;
1283
1283
  }
1284
1284
  let n = i ?? {
@@ -1302,27 +1302,27 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1302
1302
  a?.({
1303
1303
  start: n.start,
1304
1304
  end: e
1305
- }), F(!1);
1305
+ }), I(!1);
1306
1306
  }
1307
- function ie(e) {
1307
+ function re(e) {
1308
1308
  e.stopPropagation(), r ? (a?.({
1309
1309
  start: null,
1310
1310
  end: null
1311
- }), z(null)) : t?.(null);
1311
+ }), B(null)) : t?.(null);
1312
1312
  }
1313
- let { firstDayOfWeek: U, monthNames: W, weekdayNames: G } = f(() => {
1313
+ let { firstDayOfWeek: W, monthNames: ie, weekdayNames: G } = f(() => {
1314
1314
  let e = rn(s), t = an(e);
1315
1315
  return {
1316
1316
  firstDayOfWeek: t,
1317
1317
  monthNames: on(e),
1318
1318
  weekdayNames: cn(e, t)
1319
1319
  };
1320
- }, [s]), ae = mn(I, U), K = i ?? {
1320
+ }, [s]), ae = mn(L, W), K = i ?? {
1321
1321
  start: null,
1322
1322
  end: null
1323
- }, oe = K.end ?? R;
1323
+ }, oe = K.end ?? z;
1324
1324
  return /* @__PURE__ */ X("div", {
1325
- ref: B,
1325
+ ref: V,
1326
1326
  "data-test-id": M,
1327
1327
  className: Q("flex flex-col gap-1.5", v && "w-full", j),
1328
1328
  children: [
@@ -1342,26 +1342,26 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1342
1342
  id: P,
1343
1343
  type: "button",
1344
1344
  disabled: b,
1345
- "aria-invalid": V || void 0,
1345
+ "aria-invalid": H || void 0,
1346
1346
  "aria-required": h || void 0,
1347
- "aria-describedby": H,
1348
- onClick: () => F((e) => !e),
1349
- className: Q("inline-flex items-center gap-2 rounded-lg border bg-bg-default text-left transition-colors focus-visible:outline-none focus-visible:ring-2", V ? "border-red-600" : "border-border-default", !b && !V && "hover:border-border-strong", V ? "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]", tn[o], A),
1347
+ "aria-describedby": U,
1348
+ onClick: () => I((e) => !e),
1349
+ className: Q("inline-flex items-center gap-2 rounded-lg border bg-bg-default text-left transition-colors focus-visible:outline-none focus-visible:ring-2", H ? "border-red-600" : "border-border-default", !b && !H && "hover:border-border-strong", H ? "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]", tn[o], A),
1350
1350
  children: [/* @__PURE__ */ Y("span", {
1351
- className: Q("flex-1 text-left truncate", b ? "text-fg-disabled" : ne ? "text-fg-default" : "text-fg-tertiary"),
1352
- children: ne || _
1353
- }), n && ne && !b ? /* @__PURE__ */ Y("span", {
1351
+ className: Q("flex-1 text-left truncate", b ? "text-fg-disabled" : te ? "text-fg-default" : "text-fg-tertiary"),
1352
+ children: te || _
1353
+ }), n && te && !b ? /* @__PURE__ */ Y("span", {
1354
1354
  role: "button",
1355
1355
  tabIndex: 0,
1356
1356
  "aria-label": "Clear date",
1357
- onClick: ie,
1357
+ onClick: re,
1358
1358
  onKeyDown: (e) => {
1359
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ie(e));
1359
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), re(e));
1360
1360
  },
1361
1361
  className: "inline-flex items-center justify-center rounded-full p-0.5 hover:bg-bg-container",
1362
1362
  children: /* @__PURE__ */ Y(q, { className: "w-4 h-4 text-fg-secondary" })
1363
1363
  }) : /* @__PURE__ */ Y(y, { className: Q("w-4 h-4", b ? "text-fg-disabled" : "text-fg-secondary") })]
1364
- }), te && /* @__PURE__ */ X("div", {
1364
+ }), F && /* @__PURE__ */ X("div", {
1365
1365
  className: "absolute z-50 mt-1 left-0 rounded-xl border border-border-default bg-bg-default shadow-z3 p-3 w-[300px]",
1366
1366
  children: [/* @__PURE__ */ X("div", {
1367
1367
  className: "flex items-center justify-between mb-2",
@@ -1369,22 +1369,22 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1369
1369
  /* @__PURE__ */ Y("button", {
1370
1370
  type: "button",
1371
1371
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1372
- onClick: () => L(new Date(I.getFullYear(), I.getMonth() - 1, 1)),
1372
+ onClick: () => R(new Date(L.getFullYear(), L.getMonth() - 1, 1)),
1373
1373
  "aria-label": "Previous month",
1374
1374
  children: /* @__PURE__ */ Y(C, { className: "w-4 h-4" })
1375
1375
  }),
1376
1376
  /* @__PURE__ */ X("div", {
1377
1377
  className: "text-p-md font-semibold text-fg-default",
1378
1378
  children: [
1379
- W[I.getMonth()],
1379
+ ie[L.getMonth()],
1380
1380
  " ",
1381
- I.getFullYear()
1381
+ L.getFullYear()
1382
1382
  ]
1383
1383
  }),
1384
1384
  /* @__PURE__ */ Y("button", {
1385
1385
  type: "button",
1386
1386
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1387
- onClick: () => L(new Date(I.getFullYear(), I.getMonth() + 1, 1)),
1387
+ onClick: () => R(new Date(L.getFullYear(), L.getMonth() + 1, 1)),
1388
1388
  "aria-label": "Next month",
1389
1389
  children: /* @__PURE__ */ Y(w, { className: "w-4 h-4" })
1390
1390
  })
@@ -1401,8 +1401,8 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1401
1401
  type: "button",
1402
1402
  disabled: i,
1403
1403
  "aria-disabled": i || void 0,
1404
- onMouseEnter: () => !i && r && K.start && !K.end && z(t),
1405
- onClick: () => !i && re(t),
1404
+ onMouseEnter: () => !i && r && K.start && !K.end && B(t),
1405
+ onClick: () => !i && ne(t),
1406
1406
  className: Q("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"),
1407
1407
  children: t.getDate()
1408
1408
  }, n);
@@ -1945,7 +1945,7 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1945
1945
  ...s,
1946
1946
  children: [
1947
1947
  r ?? /* @__PURE__ */ Y(Hn, {
1948
- icon: W,
1948
+ icon: ie,
1949
1949
  tone: "gray",
1950
1950
  shape: "circle",
1951
1951
  size: Yn[e]
@@ -2336,10 +2336,10 @@ var ur = {
2336
2336
  avatar: "sm"
2337
2337
  }
2338
2338
  }, dr = a(function({ options: e, value: n, onChange: r, onAdd: i, onRemove: a, size: o = "md", placeholder: s = "Select…", addMorePlaceholder: c = "Add another…", disabled: d = !1, loading: h = !1, error: g = !1, label: _, labelAddons: v, helperText: y, errorText: b, required: x = !1, lockedValues: S = [], max: C, searchable: w = !0, suggestionsLabel: T = "Suggestions", emptyText: E = "No matches. Try a different search.", showAvatars: D = !1, id: O, className: k, wrapperClassName: A, dataTestId: j }, M) {
2339
- let ee = u(), N = O ?? ee, P = `${N}-listbox`, F = g || !!b, [I, L] = m(""), [R, z] = m(!1), [B, V] = m(0), H = p(null), ne = p(null), re = (e) => {
2340
- ne.current = e, typeof M == "function" ? M(e) : M && (M.current = e);
2341
- }, ie = f(() => new Map(e.map((e) => [String(e.value), e])), [e]), W = f(() => n.map((e) => ie.get(String(e))).filter((e) => !!e), [n, ie]), G = f(() => {
2342
- let t = I.trim().toLowerCase();
2339
+ let ee = u(), N = O ?? ee, P = `${N}-listbox`, I = g || !!b, [L, R] = m(""), [z, B] = m(!1), [V, H] = m(0), U = p(null), te = p(null), ne = (e) => {
2340
+ te.current = e, typeof M == "function" ? M(e) : M && (M.current = e);
2341
+ }, re = f(() => new Map(e.map((e) => [String(e.value), e])), [e]), ie = f(() => n.map((e) => re.get(String(e))).filter((e) => !!e), [n, re]), G = f(() => {
2342
+ let t = L.trim().toLowerCase();
2343
2343
  return e.filter((e) => {
2344
2344
  if (Ke(n, e.value)) return !1;
2345
2345
  if (t === "") return !0;
@@ -2349,36 +2349,36 @@ var ur = {
2349
2349
  }, [
2350
2350
  e,
2351
2351
  n,
2352
- I
2352
+ L
2353
2353
  ]), ae = C !== void 0 && n.length >= C;
2354
2354
  l(() => {
2355
- if (!R) return;
2355
+ if (!z) return;
2356
2356
  let e = (e) => {
2357
- H.current && !H.current.contains(e.target) && z(!1);
2357
+ U.current && !U.current.contains(e.target) && B(!1);
2358
2358
  };
2359
2359
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2360
- }, [R]), l(() => {
2361
- V((e) => Math.min(e, Math.max(0, G.length - 1)));
2360
+ }, [z]), l(() => {
2361
+ H((e) => Math.min(e, Math.max(0, G.length - 1)));
2362
2362
  }, [G.length]), l(() => {
2363
- h && z(!1);
2363
+ h && B(!1);
2364
2364
  }, [h]);
2365
2365
  let K = (e) => {
2366
- let t = ie.get(String(e));
2367
- d || ae || !t || t.disabled || (r([...n, e]), i?.(t), L(""), V(0), ne.current?.focus());
2366
+ let t = re.get(String(e));
2367
+ d || ae || !t || t.disabled || (r([...n, e]), i?.(t), R(""), H(0), te.current?.focus());
2368
2368
  }, oe = (e) => {
2369
2369
  d || Ke(S, e) || (r(n.filter((t) => !Ge(t, e))), a?.(e));
2370
2370
  }, se = (e) => {
2371
2371
  if (!G.length) return;
2372
- let t = B;
2372
+ let t = V;
2373
2373
  for (let n = 0; n < G.length && (t = (t + e + G.length) % G.length, G[t]?.disabled); n++);
2374
- V(t);
2374
+ H(t);
2375
2375
  }, le = (e) => {
2376
- if (e.key === "ArrowDown") e.preventDefault(), R ? se(1) : h || z(!0);
2376
+ if (e.key === "ArrowDown") e.preventDefault(), z ? se(1) : h || B(!0);
2377
2377
  else if (e.key === "ArrowUp") e.preventDefault(), se(-1);
2378
- else if (e.key === "Enter") R && G[B] && !G[B].disabled && (e.preventDefault(), K(G[B].value));
2379
- else if (e.key === "Escape") z(!1);
2380
- else if (e.key === "Backspace" && I === "" && W.length > 0) {
2381
- let e = [...W].reverse().find((e) => !Ke(S, e.value));
2378
+ else if (e.key === "Enter") z && G[V] && !G[V].disabled && (e.preventDefault(), K(G[V].value));
2379
+ else if (e.key === "Escape") B(!1);
2380
+ else if (e.key === "Backspace" && L === "" && ie.length > 0) {
2381
+ let e = [...ie].reverse().find((e) => !Ke(S, e.value));
2382
2382
  e && oe(e.value);
2383
2383
  }
2384
2384
  }, ue = b ? `${N}-error` : y ? `${N}-help` : void 0;
@@ -2402,13 +2402,13 @@ var ur = {
2402
2402
  })]
2403
2403
  }),
2404
2404
  /* @__PURE__ */ X("div", {
2405
- ref: H,
2405
+ ref: U,
2406
2406
  className: "relative",
2407
2407
  children: [/* @__PURE__ */ X("div", {
2408
- className: Q("flex flex-wrap items-center rounded-lg border bg-bg-default transition-colors", ur[o].box, d ? "opacity-60 cursor-not-allowed border-border-default" : F ? "border-red-500 focus-within:ring-2 focus-within:ring-red-300 focus-within:ring-offset-1 cursor-text" : "border-border-default hover:border-border-strong focus-within:border-fg-tertiary focus-within:ring-2 focus-within:ring-brand-300 focus-within:ring-offset-1 cursor-text", h && "cursor-wait", k),
2409
- onClick: () => !d && !h && ne.current?.focus(),
2408
+ className: Q("flex flex-wrap items-center rounded-lg border bg-bg-default transition-colors", ur[o].box, d ? "opacity-60 cursor-not-allowed border-border-default" : I ? "border-red-500 focus-within:ring-2 focus-within:ring-red-300 focus-within:ring-offset-1 cursor-text" : "border-border-default hover:border-border-strong focus-within:border-fg-tertiary focus-within:ring-2 focus-within:ring-brand-300 focus-within:ring-offset-1 cursor-text", h && "cursor-wait", k),
2409
+ onClick: () => !d && !h && te.current?.focus(),
2410
2410
  children: [
2411
- W.map((e) => {
2411
+ ie.map((e) => {
2412
2412
  let t = Ke(S, e.value);
2413
2413
  return /* @__PURE__ */ X("span", {
2414
2414
  className: Q("inline-flex items-center gap-1.5 rounded-full text-fg-default bg-bg-subtle", ur[o].chip, ur[o].chipText),
@@ -2440,40 +2440,40 @@ var ur = {
2440
2440
  }, String(e.value));
2441
2441
  }),
2442
2442
  /* @__PURE__ */ Y("input", {
2443
- ref: re,
2443
+ ref: ne,
2444
2444
  id: N,
2445
2445
  type: "text",
2446
2446
  role: "combobox",
2447
- "aria-expanded": R,
2447
+ "aria-expanded": z,
2448
2448
  "aria-controls": P,
2449
2449
  "aria-autocomplete": "list",
2450
- "aria-activedescendant": R && G[B] ? `${P}-opt-${B}` : void 0,
2451
- "aria-invalid": F || void 0,
2450
+ "aria-activedescendant": z && G[V] ? `${P}-opt-${V}` : void 0,
2451
+ "aria-invalid": I || void 0,
2452
2452
  "aria-describedby": ue,
2453
2453
  "aria-busy": h || void 0,
2454
- value: I,
2454
+ value: L,
2455
2455
  readOnly: !w,
2456
2456
  disabled: d || ae,
2457
2457
  onChange: (e) => {
2458
- L(e.target.value), h || z(!0);
2458
+ R(e.target.value), h || B(!0);
2459
2459
  },
2460
- onFocus: () => !h && z(!0),
2460
+ onFocus: () => !h && B(!0),
2461
2461
  onKeyDown: le,
2462
- placeholder: W.length === 0 ? s : ae ? `Limit ${C} reached` : c,
2462
+ placeholder: ie.length === 0 ? s : ae ? `Limit ${C} reached` : c,
2463
2463
  className: Q("flex-1 bg-transparent outline-none text-fg-default placeholder:text-fg-tertiary disabled:cursor-not-allowed", !w && "cursor-pointer", ur[o].input)
2464
2464
  }),
2465
- h && /* @__PURE__ */ Y(te, {
2465
+ h && /* @__PURE__ */ Y(F, {
2466
2466
  className: "h-4 w-4 shrink-0 text-fg-secondary animate-spin",
2467
2467
  "aria-hidden": !0
2468
2468
  })
2469
2469
  ]
2470
- }), R && !d && !h && !ae && /* @__PURE__ */ X("div", {
2470
+ }), z && !d && !h && !ae && /* @__PURE__ */ X("div", {
2471
2471
  className: "absolute top-full left-0 right-0 mt-1 z-20 max-h-80 overflow-y-auto rounded-lg border border-border-default bg-bg-default shadow-z4",
2472
2472
  children: [/* @__PURE__ */ X("div", {
2473
2473
  className: "px-3 py-2 border-b border-border-subtle flex items-center gap-2 text-p-sm text-fg-tertiary",
2474
- children: [/* @__PURE__ */ Y(U, { className: "w-3.5 h-3.5 shrink-0" }), /* @__PURE__ */ Y("span", {
2474
+ children: [/* @__PURE__ */ Y(W, { className: "w-3.5 h-3.5 shrink-0" }), /* @__PURE__ */ Y("span", {
2475
2475
  className: "truncate",
2476
- children: I ? `Matches for "${I}"` : T
2476
+ children: L ? `Matches for "${L}"` : T
2477
2477
  })]
2478
2478
  }), G.length === 0 ? /* @__PURE__ */ X("div", {
2479
2479
  className: "px-3 py-6 text-center",
@@ -2492,16 +2492,16 @@ var ur = {
2492
2492
  }), /* @__PURE__ */ Y("li", {
2493
2493
  role: "option",
2494
2494
  id: `${P}-opt-${n}`,
2495
- "aria-selected": n === B,
2495
+ "aria-selected": n === V,
2496
2496
  "aria-disabled": e.disabled || void 0,
2497
2497
  children: /* @__PURE__ */ X("button", {
2498
2498
  type: "button",
2499
2499
  disabled: e.disabled,
2500
- onMouseEnter: () => V(n),
2500
+ onMouseEnter: () => H(n),
2501
2501
  onMouseDown: (t) => {
2502
2502
  t.preventDefault(), K(e.value);
2503
2503
  },
2504
- className: Q("w-full px-3 py-2 flex items-center gap-3 text-left transition", e.disabled ? "opacity-50 cursor-not-allowed" : n === B ? "bg-bg-subtle" : "hover:bg-bg-subtle"),
2504
+ className: Q("w-full px-3 py-2 flex items-center gap-3 text-left transition", e.disabled ? "opacity-50 cursor-not-allowed" : n === V ? "bg-bg-subtle" : "hover:bg-bg-subtle"),
2505
2505
  children: [(D || e.avatarSrc) && /* @__PURE__ */ Y(_t, {
2506
2506
  src: e.avatarSrc,
2507
2507
  name: lr(e),
@@ -2599,7 +2599,7 @@ var vr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2599
2599
  if (t === "ellipsis-left" || t === "ellipsis-right") return /* @__PURE__ */ Y("span", {
2600
2600
  "aria-hidden": !0,
2601
2601
  className: "inline-flex items-center justify-center w-9 h-9 text-fg-tertiary",
2602
- children: /* @__PURE__ */ Y(R, { className: "h-4 w-4" })
2602
+ children: /* @__PURE__ */ Y(z, { className: "h-4 w-4" })
2603
2603
  }, `${t}-${r}`);
2604
2604
  let i = t === e;
2605
2605
  return /* @__PURE__ */ Y("button", {
@@ -2979,7 +2979,7 @@ function Kr(e, t, n) {
2979
2979
  menuPortal: () => "z-50!",
2980
2980
  group: () => "py-1",
2981
2981
  groupHeading: () => "px-3 pt-2 pb-1 text-label-sm font-medium uppercase tracking-wide text-fg-tertiary select-none",
2982
- option: ({ isFocused: e, isSelected: t, isDisabled: n }) => Q("flex items-center justify-between gap-2 px-3 py-2 cursor-pointer select-none", n && "opacity-50 cursor-not-allowed", e && !n && "bg-bg-subtle", t && "font-medium"),
2982
+ option: ({ isFocused: e, isSelected: t, isDisabled: n }) => Q("flex! items-center justify-between gap-2 px-3 py-2 cursor-pointer select-none", n && "opacity-50 cursor-not-allowed", e && !n && "bg-bg-subtle", t && "font-medium"),
2983
2983
  noOptionsMessage: () => "px-3 py-6 text-center text-p-sm text-fg-secondary",
2984
2984
  loadingMessage: () => "px-3 py-6 text-center text-p-sm text-fg-secondary"
2985
2985
  };
@@ -3018,13 +3018,22 @@ function Xr(e) {
3018
3018
  children: ["+", (Array.isArray(e.selectProps.value) ? e.selectProps.value.length : 0) - t]
3019
3019
  }) : null;
3020
3020
  }
3021
- function Zr() {
3022
- return /* @__PURE__ */ Y(te, {
3021
+ function Zr(e) {
3022
+ return /* @__PURE__ */ X(ve.Option, {
3023
+ ...e,
3024
+ children: [e.children, e.isSelected && /* @__PURE__ */ Y(b, {
3025
+ className: "h-4 w-4 text-fg-brand shrink-0",
3026
+ "aria-hidden": !0
3027
+ })]
3028
+ });
3029
+ }
3030
+ function Qr() {
3031
+ return /* @__PURE__ */ Y(F, {
3023
3032
  className: "h-4 w-4 animate-spin text-fg-secondary",
3024
3033
  "aria-hidden": !0
3025
3034
  });
3026
3035
  }
3027
- function Qr(e) {
3036
+ function $r(e) {
3028
3037
  let { selectAllState: t, onSelectAllToggle: n } = e.selectProps;
3029
3038
  return /* @__PURE__ */ X(ve.Menu, {
3030
3039
  ...e,
@@ -3044,7 +3053,7 @@ function Qr(e) {
3044
3053
  }), e.children]
3045
3054
  });
3046
3055
  }
3047
- function $r(t) {
3056
+ function ei(t) {
3048
3057
  let { children: n, innerRef: r, innerProps: i, maxHeight: a } = t, o = e.toArray(n), s = p(null), c = Se({
3049
3058
  count: o.length,
3050
3059
  getScrollElement: () => s.current,
@@ -3075,8 +3084,8 @@ function $r(t) {
3075
3084
  })
3076
3085
  });
3077
3086
  }
3078
- var ei = a(function(e, t) {
3079
- let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: l, value: d, defaultValue: h, onChange: g, placeholder: _, label: v, labelAddons: y, helperText: b, errorText: x, error: S = !1, required: C = !0, loading: w = !1, clearable: T = !1, searchable: E = !0, virtualized: D = !1, emptyText: O, locale: k = "en-US", size: A = "md", disabled: j = !1, id: M, className: ee, wrapperClassName: N, dataTestId: P, ...te } = e, F = e.isMulti ? !!e.singleLine : !1, I = Ir[k], L = _ ?? I.placeholder, R = O ?? I.noResults, z = c ?? ((e) => I.createLabel(e)), B = u(), V = M ?? B, H = S || !!x, ne = d !== void 0, [re, ie] = m(l ? void 0 : h), [U, W] = m(l ? h ?? [] : []), [G, ae] = m(() => {
3087
+ var ti = a(function(e, t) {
3088
+ let { options: n, loadOptions: r, defaultOptions: i, creatable: a = !1, onCreateOption: o, formatCreateLabel: c, isMulti: l, value: d, defaultValue: h, onChange: g, placeholder: _, label: v, labelAddons: y, helperText: b, errorText: x, error: S = !1, required: C = !0, loading: w = !1, clearable: T = !1, searchable: E = !0, virtualized: D = !1, emptyText: O, locale: k = "en-US", size: A = "md", disabled: j = !1, id: M, className: ee, wrapperClassName: N, dataTestId: P, ...F } = e, I = e.isMulti ? !!e.singleLine : !1, L = Ir[k], R = _ ?? L.placeholder, z = O ?? L.noResults, B = c ?? ((e) => L.createLabel(e)), V = u(), H = M ?? V, U = S || !!x, te = d !== void 0, [ne, re] = m(l ? void 0 : h), [W, ie] = m(l ? h ?? [] : []), [G, ae] = m(() => {
3080
3089
  let e = /* @__PURE__ */ new Map();
3081
3090
  for (let t of n) e.set(String(t.value), t);
3082
3091
  if (Array.isArray(i)) for (let t of i) e.set(String(t.value), t);
@@ -3097,10 +3106,10 @@ var ei = a(function(e, t) {
3097
3106
  let oe = s((e) => G.get(String(e)) ?? {
3098
3107
  value: e,
3099
3108
  label: String(e)
3100
- }, [G]), se = ne ? d : re, ce = f(() => (ne ? d : U) ?? [], [
3101
- ne,
3109
+ }, [G]), se = te ? d : ne, ce = f(() => (te ? d : W) ?? [], [
3110
+ te,
3102
3111
  d,
3103
- U
3112
+ W
3104
3113
  ]), le = !l && se !== void 0 ? oe(se) : null, ue = l ? ce.map(oe) : [], de = f(() => {
3105
3114
  if (r) return (e) => Promise.resolve(r(e)).then((e) => (K(e), e));
3106
3115
  }, [r, K]), J = s((e) => {
@@ -3108,10 +3117,10 @@ var ei = a(function(e, t) {
3108
3117
  let t = [...e ?? []];
3109
3118
  K(t);
3110
3119
  let n = t.map((e) => e.value);
3111
- W(n), g?.(n);
3120
+ ie(n), g?.(n);
3112
3121
  } else {
3113
3122
  let t = e;
3114
- t && K([t]), ie(t?.value), g?.(t?.value ?? void 0);
3123
+ t && K([t]), re(t?.value), g?.(t?.value ?? void 0);
3115
3124
  }
3116
3125
  }, [
3117
3126
  l,
@@ -3124,19 +3133,19 @@ var ei = a(function(e, t) {
3124
3133
  };
3125
3134
  if (K([t]), o?.(e), l) {
3126
3135
  let e = [...ce, t.value];
3127
- W(e), g?.(e);
3128
- } else ie(t.value), g?.(t.value);
3136
+ ie(e), g?.(e);
3137
+ } else re(t.value), g?.(t.value);
3129
3138
  }, [
3130
3139
  l,
3131
3140
  ce,
3132
3141
  K,
3133
3142
  g,
3134
3143
  o
3135
- ]), pe = !!r, me = pe ? a ? xe : ye : a ? be : _e, he = f(() => Kr(A, H, F), [
3144
+ ]), pe = !!r, me = pe ? a ? xe : ye : a ? be : _e, he = f(() => Kr(A, U, I), [
3136
3145
  A,
3137
- H,
3138
- F
3139
- ]), ge = p(null), ve = p(null), Se = !!l && F, Ce = Fr({
3146
+ U,
3147
+ I
3148
+ ]), ge = p(null), ve = p(null), Se = !!l && I, Ce = Fr({
3140
3149
  wrapperRef: ge,
3141
3150
  measureRef: ve,
3142
3151
  total: ue.length,
@@ -3170,13 +3179,13 @@ var ei = a(function(e, t) {
3170
3179
  count: Z.length,
3171
3180
  checked: n,
3172
3181
  indeterminate: t > 0 && t < Z.length,
3173
- label: n ? I.deselectAllLabel(Z.length) : I.selectAllLabel(Z.length)
3182
+ label: n ? L.deselectAllLabel(Z.length) : L.selectAllLabel(Z.length)
3174
3183
  };
3175
3184
  }, [
3176
3185
  Ee,
3177
3186
  Z,
3178
3187
  ce,
3179
- I
3188
+ L
3180
3189
  ]), je = s(() => {
3181
3190
  if (!Ae) return;
3182
3191
  let e = new Set(Z.map((e) => String(e.value))), t;
@@ -3186,7 +3195,7 @@ var ei = a(function(e, t) {
3186
3195
  let e = new Set(ce.map(String));
3187
3196
  t = [...ce, ...Z.filter((t) => !e.has(String(t.value))).map((e) => e.value)];
3188
3197
  }
3189
- W(t), g?.(t);
3198
+ ie(t), g?.(t);
3190
3199
  }, [
3191
3200
  Ae,
3192
3201
  Z,
@@ -3194,8 +3203,8 @@ var ei = a(function(e, t) {
3194
3203
  K,
3195
3204
  g
3196
3205
  ]), Me = {
3197
- ...te,
3198
- inputId: V,
3206
+ ...F,
3207
+ inputId: H,
3199
3208
  unstyled: !0,
3200
3209
  classNames: he,
3201
3210
  className: ee,
@@ -3206,7 +3215,7 @@ var ei = a(function(e, t) {
3206
3215
  value: l ? ue : le,
3207
3216
  onChange: J,
3208
3217
  onCreateOption: a ? fe : void 0,
3209
- formatCreateLabel: a ? z : void 0,
3218
+ formatCreateLabel: a ? B : void 0,
3210
3219
  getOptionValue: (e) => String(e.value),
3211
3220
  getOptionLabel: Wr,
3212
3221
  formatOptionLabel: (e, t) => t.context === "value" ? e.label : we && e.description ? /* @__PURE__ */ X("span", {
@@ -3220,14 +3229,14 @@ var ei = a(function(e, t) {
3220
3229
  })]
3221
3230
  }) : e.label,
3222
3231
  isOptionDisabled: (e) => !!e.disabled,
3223
- placeholder: L,
3232
+ placeholder: R,
3224
3233
  isDisabled: j || w,
3225
3234
  isClearable: T,
3226
3235
  isSearchable: E,
3227
3236
  isLoading: w || void 0,
3228
- noOptionsMessage: () => R,
3229
- loadingMessage: () => I.loadingMessage,
3230
- "aria-invalid": H || void 0,
3237
+ noOptionsMessage: () => z,
3238
+ loadingMessage: () => L.loadingMessage,
3239
+ "aria-invalid": U || void 0,
3231
3240
  "aria-required": C || void 0,
3232
3241
  ...Ee ? {
3233
3242
  inputValue: De,
@@ -3236,15 +3245,21 @@ var ei = a(function(e, t) {
3236
3245
  onSelectAllToggle: je
3237
3246
  } : {},
3238
3247
  ...Se ? { visibleTagCount: Ce } : {},
3248
+ ...l ? {
3249
+ closeMenuOnSelect: F.closeMenuOnSelect ?? !1,
3250
+ hideSelectedOptions: F.hideSelectedOptions ?? !1
3251
+ } : {},
3252
+ menuPlacement: F.menuPlacement ?? "auto",
3239
3253
  components: {
3240
3254
  DropdownIndicator: qr,
3241
3255
  ClearIndicator: Jr,
3242
3256
  MultiValueRemove: Yr,
3243
- LoadingIndicator: Zr,
3257
+ LoadingIndicator: Qr,
3244
3258
  IndicatorSeparator: () => null,
3245
- ...D ? { MenuList: $r } : {},
3246
- ...Ee ? { Menu: Qr } : {},
3247
- ...Se ? { MultiValue: Xr } : {}
3259
+ ...D ? { MenuList: ei } : {},
3260
+ ...Ee ? { Menu: $r } : {},
3261
+ ...Se ? { MultiValue: Xr } : {},
3262
+ ...l ? { Option: Zr } : {}
3248
3263
  }
3249
3264
  };
3250
3265
  return /* @__PURE__ */ X("div", {
@@ -3255,7 +3270,7 @@ var ei = a(function(e, t) {
3255
3270
  (v || y) && /* @__PURE__ */ X("div", {
3256
3271
  className: "flex items-center gap-1.5",
3257
3272
  children: [v && /* @__PURE__ */ X("label", {
3258
- htmlFor: V,
3273
+ htmlFor: H,
3259
3274
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
3260
3275
  children: [v, C && /* @__PURE__ */ Y("span", {
3261
3276
  className: "text-fg-danger",
@@ -3300,29 +3315,29 @@ var ei = a(function(e, t) {
3300
3315
  })]
3301
3316
  }),
3302
3317
  x ? /* @__PURE__ */ Y("p", {
3303
- id: `${V}-error`,
3318
+ id: `${H}-error`,
3304
3319
  className: "text-p-sm text-fg-danger",
3305
3320
  children: x
3306
3321
  }) : b ? /* @__PURE__ */ Y("p", {
3307
- id: `${V}-help`,
3322
+ id: `${H}-help`,
3308
3323
  className: "text-p-sm text-fg-secondary",
3309
3324
  children: b
3310
3325
  }) : null
3311
3326
  ]
3312
3327
  });
3313
- }), ti = r(null);
3314
- function ni() {
3315
- return c(ti) ?? {
3328
+ }), ni = r(null);
3329
+ function ri() {
3330
+ return c(ni) ?? {
3316
3331
  collapsed: !1,
3317
3332
  toggle: () => {}
3318
3333
  };
3319
3334
  }
3320
- var ri = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, children: r, className: i, logo: a, title: o, subtitle: s, dataTestId: c, ...l }, u) {
3335
+ var ii = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, children: r, className: i, logo: a, title: o, subtitle: s, dataTestId: c, ...l }, u) {
3321
3336
  let [d, f] = m(e), p = t !== void 0, h = p ? t : d, g = () => {
3322
3337
  let e = !h;
3323
3338
  p || f(e), n?.(e);
3324
3339
  };
3325
- return /* @__PURE__ */ Y(ti.Provider, {
3340
+ return /* @__PURE__ */ Y(ni.Provider, {
3326
3341
  value: {
3327
3342
  collapsed: h,
3328
3343
  toggle: g
@@ -3354,7 +3369,7 @@ var ri = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3354
3369
  onClick: g,
3355
3370
  "aria-label": h ? "Expand sidebar" : "Collapse sidebar",
3356
3371
  className: Q("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"),
3357
- children: /* @__PURE__ */ Y(F, { className: "h-4 w-4" })
3372
+ children: /* @__PURE__ */ Y(I, { className: "h-4 w-4" })
3358
3373
  })
3359
3374
  ]
3360
3375
  }), /* @__PURE__ */ Y("nav", {
@@ -3363,8 +3378,8 @@ var ri = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3363
3378
  })]
3364
3379
  })
3365
3380
  });
3366
- }), ii = a(function({ icon: e, label: t, active: n, badge: r, children: i, onClick: a, href: o, className: s, dataTestId: c, ...l }, u) {
3367
- let { collapsed: d } = ni(), [f, p] = m(n ?? !1), h = !!i, g = /* @__PURE__ */ X(J, { children: [e && /* @__PURE__ */ Y("span", {
3381
+ }), ai = a(function({ icon: e, label: t, active: n, badge: r, children: i, onClick: a, href: o, className: s, dataTestId: c, ...l }, u) {
3382
+ let { collapsed: d } = ri(), [f, p] = m(n ?? !1), h = !!i, g = /* @__PURE__ */ X(J, { children: [e && /* @__PURE__ */ Y("span", {
3368
3383
  className: "inline-flex shrink-0",
3369
3384
  children: e
3370
3385
  }), !d && /* @__PURE__ */ X(J, { children: [
@@ -3403,12 +3418,12 @@ var ri = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3403
3418
  className: "flex flex-col gap-0.5 pl-8",
3404
3419
  children: i
3405
3420
  })] });
3406
- }), ai = {
3421
+ }), oi = {
3407
3422
  text: "h-[1em] mb-[0.4em] origin-[0%_55%] scale-y-[0.6] rounded-sm",
3408
3423
  circular: "size-10 rounded-full",
3409
3424
  rectangular: "h-4 w-full",
3410
3425
  rounded: "h-4 w-full rounded-md"
3411
- }, oi = {
3426
+ }, si = {
3412
3427
  pulse: "animate-pulse",
3413
3428
  wave: [
3414
3429
  "relative overflow-hidden",
@@ -3418,15 +3433,15 @@ var ri = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3418
3433
  ].join(" "),
3419
3434
  none: ""
3420
3435
  };
3421
- function si(e) {
3436
+ function ci(e) {
3422
3437
  if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
3423
3438
  }
3424
- var ci = 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) {
3439
+ var li = 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) {
3425
3440
  let d = a != null, f = Math.max(1, i), p = {
3426
- ...n === void 0 ? null : { width: si(n) },
3427
- ...r === void 0 ? null : { height: si(r) },
3441
+ ...n === void 0 ? null : { width: ci(n) },
3442
+ ...r === void 0 ? null : { height: ci(r) },
3428
3443
  ...o
3429
- }, m = Q("block bg-bg-subtle leading-none", ai[e], oi[t]);
3444
+ }, m = Q("block bg-bg-subtle leading-none", oi[e], si[t]);
3430
3445
  return d ? /* @__PURE__ */ Y("span", {
3431
3446
  ref: u,
3432
3447
  "data-test-id": c,
@@ -3459,7 +3474,7 @@ var ci = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3459
3474
  "aria-label": t === 0 ? "Loading" : void 0
3460
3475
  }, t))
3461
3476
  });
3462
- }), li = {
3477
+ }), ui = {
3463
3478
  success: {
3464
3479
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3465
3480
  icon: x
@@ -3480,19 +3495,19 @@ var ci = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3480
3495
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3481
3496
  icon: P
3482
3497
  }
3483
- }, ui = {
3498
+ }, di = {
3484
3499
  success: "text-green-400",
3485
3500
  warning: "text-yellow-300",
3486
3501
  danger: "text-red-400",
3487
3502
  info: "text-blue-400",
3488
3503
  neutral: "text-white/70"
3489
- }, di = r(null);
3490
- function fi() {
3491
- let e = c(di);
3504
+ }, fi = r(null);
3505
+ function pi() {
3506
+ let e = c(fi);
3492
3507
  if (!e) throw Error("useSnackbar must be used inside <SnackbarProvider>");
3493
3508
  return e;
3494
3509
  }
3495
- function pi({ children: e, dataTestId: t }) {
3510
+ function mi({ children: e, dataTestId: t }) {
3496
3511
  let [n, r] = m([]), i = p(/* @__PURE__ */ new Map()), a = s((e) => {
3497
3512
  r((t) => t.filter((t) => t.id !== e));
3498
3513
  let t = i.current.get(e);
@@ -3515,7 +3530,7 @@ function pi({ children: e, dataTestId: t }) {
3515
3530
  return () => {
3516
3531
  e.forEach(clearTimeout), e.clear();
3517
3532
  };
3518
- }, []), /* @__PURE__ */ X(di.Provider, {
3533
+ }, []), /* @__PURE__ */ X(fi.Provider, {
3519
3534
  value: {
3520
3535
  show: o,
3521
3536
  dismiss: a
@@ -3524,14 +3539,14 @@ function pi({ children: e, dataTestId: t }) {
3524
3539
  "data-test-id": t,
3525
3540
  className: "fixed left-1/2 -translate-x-1/2 bottom-6 z-[100] flex flex-col gap-2 w-[min(400px,calc(100vw-2rem))] pointer-events-none",
3526
3541
  children: n.map((e) => {
3527
- let { container: t, icon: n } = li[e.variant ?? "neutral"];
3542
+ let { container: t, icon: n } = ui[e.variant ?? "neutral"];
3528
3543
  return /* @__PURE__ */ X("div", {
3529
3544
  role: "status",
3530
3545
  "data-test-id": e.dataTestId,
3531
3546
  className: Q("pointer-events-auto flex items-center gap-3 px-4 py-3 rounded-lg shadow-z4", t),
3532
3547
  children: [
3533
3548
  /* @__PURE__ */ Y(n, {
3534
- className: Q("h-5 w-5 shrink-0", ui[e.variant ?? "neutral"]),
3549
+ className: Q("h-5 w-5 shrink-0", di[e.variant ?? "neutral"]),
3535
3550
  "aria-hidden": !0
3536
3551
  }),
3537
3552
  /* @__PURE__ */ Y("p", {
@@ -3561,15 +3576,15 @@ function pi({ children: e, dataTestId: t }) {
3561
3576
  }
3562
3577
  //#endregion
3563
3578
  //#region src/components/Status/Status.tsx
3564
- var mi = {
3579
+ var hi = {
3565
3580
  lg: "h-7 px-2.5 text-p-std gap-1.5",
3566
3581
  md: "h-6 px-2 text-p-sm gap-1.5",
3567
3582
  sm: "h-5 px-1.5 text-p-sm gap-1"
3568
- }, hi = {
3583
+ }, gi = {
3569
3584
  lg: "h-2 w-2",
3570
3585
  md: "h-1.5 w-1.5",
3571
3586
  sm: "h-1.5 w-1.5"
3572
- }, gi = {
3587
+ }, _i = {
3573
3588
  general: {
3574
3589
  container: "bg-bg-subtle text-fg-default dark:text-fg-default",
3575
3590
  dot: "bg-gray-600 dark:bg-gray-400"
@@ -3602,19 +3617,19 @@ var mi = {
3602
3617
  container: "bg-bg-subtle text-fg-disabled",
3603
3618
  dot: "bg-border-strong"
3604
3619
  }
3605
- }, _i = a(function({ variant: e = "general", size: t = "md", leftIcon: n, rightIcon: r, dot: i = !0, className: a, children: o, dataTestId: s, ...c }, l) {
3606
- let { container: u, dot: d } = gi[e];
3620
+ }, vi = a(function({ variant: e = "general", size: t = "md", leftIcon: n, rightIcon: r, dot: i = !0, className: a, children: o, dataTestId: s, ...c }, l) {
3621
+ let { container: u, dot: d } = _i[e];
3607
3622
  return /* @__PURE__ */ X("span", {
3608
3623
  ref: l,
3609
3624
  "data-test-id": s,
3610
- className: Q("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", mi[t], u, a),
3625
+ className: Q("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", hi[t], u, a),
3611
3626
  ...c,
3612
3627
  children: [
3613
3628
  n ? /* @__PURE__ */ Y("span", {
3614
3629
  className: "inline-flex shrink-0",
3615
3630
  children: n
3616
3631
  }) : i ? /* @__PURE__ */ Y("span", {
3617
- className: Q("inline-block shrink-0 rounded-full", hi[t], d),
3632
+ className: Q("inline-block shrink-0 rounded-full", gi[t], d),
3618
3633
  "aria-hidden": !0
3619
3634
  }) : null,
3620
3635
  o,
@@ -3624,45 +3639,45 @@ var mi = {
3624
3639
  })
3625
3640
  ]
3626
3641
  });
3627
- }), vi = {
3642
+ }), yi = {
3628
3643
  lg: "size-9",
3629
3644
  sm: "size-6"
3630
- }, yi = {
3645
+ }, bi = {
3631
3646
  lg: "h-9",
3632
3647
  sm: "h-6"
3633
- }, bi = {
3648
+ }, xi = {
3634
3649
  lg: "border-2",
3635
3650
  sm: "border"
3636
- }, xi = {
3651
+ }, Si = {
3637
3652
  lg: "text-p-std",
3638
3653
  sm: "text-p-xs"
3639
- }, Si = {
3654
+ }, Ci = {
3640
3655
  lg: "size-5",
3641
3656
  sm: "size-3.5"
3642
- }, Ci = {
3657
+ }, wi = {
3643
3658
  lg: "size-3",
3644
3659
  sm: "size-2"
3645
- }, wi = {
3660
+ }, Ti = {
3646
3661
  lg: "text-p-std",
3647
3662
  sm: "text-p-sm"
3648
- }, Ti = {
3663
+ }, Ei = {
3649
3664
  lg: "text-p-sm",
3650
3665
  sm: "text-p-xs"
3651
- }, Ei = {
3666
+ }, Di = {
3652
3667
  upcoming: "bg-bg-default border-border-strong text-fg-tertiary",
3653
3668
  active: "bg-bg-default border-brand-500 text-brand-700",
3654
3669
  completed: "bg-brand-500 border-brand-500 text-fg-inverse",
3655
3670
  rejected: "bg-red-700 border-red-800 text-fg-inverse"
3656
- }, Di = {
3671
+ }, Oi = {
3657
3672
  upcoming: "ring-4 ring-gray-100/80",
3658
3673
  active: "ring-4 ring-brand-40/80",
3659
3674
  completed: "ring-4 ring-brand-40/80",
3660
3675
  rejected: "ring-4 ring-red-100/80"
3661
3676
  };
3662
- function Oi(e, t, n, r) {
3663
- return t === "completed" ? /* @__PURE__ */ Y(E, { className: Si[r] }) : t === "rejected" ? /* @__PURE__ */ Y(D, { className: Si[r] }) : e === "number" ? n + 1 : e === "dot" ? /* @__PURE__ */ Y("span", { className: Q("rounded-full", Ci[r], t === "active" ? "bg-brand-500" : "bg-transparent") }) : null;
3677
+ function ki(e, t, n, r) {
3678
+ return t === "completed" ? /* @__PURE__ */ Y(E, { className: Ci[r] }) : t === "rejected" ? /* @__PURE__ */ Y(D, { className: Ci[r] }) : e === "number" ? n + 1 : e === "dot" ? /* @__PURE__ */ Y("span", { className: Q("rounded-full", wi[r], t === "active" ? "bg-brand-500" : "bg-transparent") }) : null;
3664
3679
  }
3665
- var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "number", orientation: i = "horizontal", size: a = "lg", className: o, dataTestId: s, ...c }, l) {
3680
+ var Ai = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "number", orientation: i = "horizontal", size: a = "lg", className: o, dataTestId: s, ...c }, l) {
3666
3681
  let u = i === "vertical", d = (e) => (e?.status ?? "upcoming") === "completed";
3667
3682
  return /* @__PURE__ */ Y("ol", {
3668
3683
  ref: l,
@@ -3671,15 +3686,15 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3671
3686
  ...c,
3672
3687
  children: e.map((i, o) => {
3673
3688
  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__ */ Y("span", {
3674
- className: Q("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full font-semibold transition-colors", vi[a], bi[a], xi[a], Ei[s], i.highlighted && Di[s]),
3675
- children: Oi(r, s, o, a)
3689
+ className: Q("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full font-semibold transition-colors", yi[a], xi[a], Si[a], Di[s], i.highlighted && Oi[s]),
3690
+ children: ki(r, s, o, a)
3676
3691
  }), h = /* @__PURE__ */ X("div", {
3677
3692
  className: Q("flex flex-col", u ? "gap-0.5 pb-6" : "mt-2 items-center gap-0.5 text-center"),
3678
3693
  children: [/* @__PURE__ */ Y("span", {
3679
- className: Q("font-medium text-fg-default", wi[a]),
3694
+ className: Q("font-medium text-fg-default", Ti[a]),
3680
3695
  children: i.label
3681
3696
  }), i.description && /* @__PURE__ */ Y("span", {
3682
- className: Q("text-fg-secondary", Ti[a]),
3697
+ className: Q("text-fg-secondary", Ei[a]),
3683
3698
  children: i.description
3684
3699
  })]
3685
3700
  });
@@ -3687,7 +3702,7 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3687
3702
  "aria-current": Ge(i.value, t) ? "step" : void 0,
3688
3703
  className: Q("relative flex", u ? "flex-row gap-3" : "flex-1 basis-0 min-w-0 flex-col"),
3689
3704
  children: [/* @__PURE__ */ X("div", {
3690
- className: Q("relative flex shrink-0", u ? "w-9 flex-col items-center justify-center" : Q("w-full items-center justify-center", yi[a])),
3705
+ className: Q("relative flex shrink-0", u ? "w-9 flex-col items-center justify-center" : Q("w-full items-center justify-center", bi[a])),
3691
3706
  children: [
3692
3707
  !c && /* @__PURE__ */ Y("span", {
3693
3708
  "aria-hidden": !0,
@@ -3709,13 +3724,13 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3709
3724
  }, String(i.value));
3710
3725
  })
3711
3726
  });
3712
- }), Ai = {
3727
+ }), ji = {
3713
3728
  md: "h-6 w-11",
3714
3729
  sm: "h-5 w-9"
3715
- }, ji = {
3730
+ }, Mi = {
3716
3731
  md: "h-5 w-5 peer-checked:translate-x-5",
3717
3732
  sm: "h-4 w-4 peer-checked:translate-x-4"
3718
- }, Mi = 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
+ }, Ni = 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) {
3719
3734
  let p = u(), m = i ?? p, h = /* @__PURE__ */ X("span", {
3720
3735
  className: "relative inline-flex shrink-0",
3721
3736
  children: [
@@ -3730,8 +3745,8 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3730
3745
  className: "peer sr-only",
3731
3746
  ...d
3732
3747
  }),
3733
- /* @__PURE__ */ Y("span", { className: Q("rounded-full bg-gray-300 dark:bg-gray-700 transition-colors", Ai[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") }),
3734
- /* @__PURE__ */ Y("span", { className: Q("absolute top-0.5 left-0.5 rounded-full bg-white dark:bg-white shadow-z1 transition-transform", ji[e]) })
3748
+ /* @__PURE__ */ Y("span", { className: Q("rounded-full bg-gray-300 dark:bg-gray-700 transition-colors", ji[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") }),
3749
+ /* @__PURE__ */ Y("span", { className: Q("absolute top-0.5 left-0.5 rounded-full bg-white dark:bg-white shadow-z1 transition-transform", Mi[e]) })
3735
3750
  ]
3736
3751
  });
3737
3752
  return !t && !n ? /* @__PURE__ */ Y("label", {
@@ -3754,20 +3769,20 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3754
3769
  })]
3755
3770
  })]
3756
3771
  });
3757
- }), Ni = {
3772
+ }), Pi = {
3758
3773
  comfortable: "[&_td]:py-3 [&_th]:py-3",
3759
3774
  compact: "[&_td]:py-2 [&_th]:py-2"
3760
- }, Pi = {
3775
+ }, Fi = {
3761
3776
  left: "text-left",
3762
3777
  center: "text-center",
3763
3778
  right: "text-right"
3764
- }, Fi = a(function({ density: e = "comfortable", striped: t = !1, hoverable: n = !0, stickyHeader: r = !1, wrapperClassName: i, className: a, children: o, dataTestId: s, ...c }, l) {
3779
+ }, Ii = a(function({ density: e = "comfortable", striped: t = !1, hoverable: n = !0, stickyHeader: r = !1, wrapperClassName: i, className: a, children: o, dataTestId: s, ...c }, l) {
3765
3780
  return /* @__PURE__ */ Y("div", {
3766
3781
  "data-test-id": s,
3767
3782
  className: Q("w-full overflow-x-auto rounded-lg border border-border-default bg-bg-default", i),
3768
3783
  children: /* @__PURE__ */ Y("table", {
3769
3784
  ref: l,
3770
- className: Q("w-full border-collapse text-p-std text-fg-default", Ni[e], a),
3785
+ className: Q("w-full border-collapse text-p-std text-fg-default", Pi[e], a),
3771
3786
  "data-striped": t || void 0,
3772
3787
  "data-hoverable": n || void 0,
3773
3788
  "data-sticky": r || void 0,
@@ -3775,7 +3790,7 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3775
3790
  children: o
3776
3791
  })
3777
3792
  });
3778
- }), Ii = a(function({ className: e, children: t, dataTestId: n, ...r }, i) {
3793
+ }), Li = a(function({ className: e, children: t, dataTestId: n, ...r }, i) {
3779
3794
  return /* @__PURE__ */ Y("thead", {
3780
3795
  ref: i,
3781
3796
  "data-test-id": n,
@@ -3783,7 +3798,7 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3783
3798
  ...r,
3784
3799
  children: t
3785
3800
  });
3786
- }), Li = a(function({ className: e, children: t, dataTestId: n, ...r }, i) {
3801
+ }), Ri = a(function({ className: e, children: t, dataTestId: n, ...r }, i) {
3787
3802
  return /* @__PURE__ */ Y("tbody", {
3788
3803
  ref: i,
3789
3804
  "data-test-id": n,
@@ -3791,7 +3806,7 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3791
3806
  ...r,
3792
3807
  children: t
3793
3808
  });
3794
- }), Ri = a(function({ className: e, children: t, dataTestId: n, ...r }, i) {
3809
+ }), zi = a(function({ className: e, children: t, dataTestId: n, ...r }, i) {
3795
3810
  return /* @__PURE__ */ Y("tr", {
3796
3811
  ref: i,
3797
3812
  "data-test-id": n,
@@ -3799,7 +3814,7 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3799
3814
  ...r,
3800
3815
  children: t
3801
3816
  });
3802
- }), zi = a(function({ sortable: e = !1, sortDir: t = null, onSortChange: n, align: r = "left", className: i, children: a, dataTestId: o, ...s }, c) {
3817
+ }), Bi = a(function({ sortable: e = !1, sortDir: t = null, onSortChange: n, align: r = "left", className: i, children: a, dataTestId: o, ...s }, c) {
3803
3818
  let l = /* @__PURE__ */ X(J, { children: [a, e && /* @__PURE__ */ Y("span", {
3804
3819
  className: "inline-flex ml-1 align-middle text-fg-tertiary",
3805
3820
  children: Y(t === "asc" ? v : t === "desc" ? _ : T, { className: "h-3.5 w-3.5" })
@@ -3808,7 +3823,7 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3808
3823
  ref: c,
3809
3824
  scope: "col",
3810
3825
  "data-test-id": o,
3811
- className: Q("px-4 whitespace-nowrap", Pi[r], i),
3826
+ className: Q("px-4 whitespace-nowrap", Fi[r], i),
3812
3827
  "aria-sort": t === "asc" ? "ascending" : t === "desc" ? "descending" : void 0,
3813
3828
  ...s,
3814
3829
  children: e ? /* @__PURE__ */ Y("button", {
@@ -3820,37 +3835,37 @@ var ki = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3820
3835
  children: l
3821
3836
  }) : l
3822
3837
  });
3823
- }), Bi = a(function({ align: e = "left", className: t, children: n, dataTestId: r, ...i }, a) {
3838
+ }), Vi = a(function({ align: e = "left", className: t, children: n, dataTestId: r, ...i }, a) {
3824
3839
  return /* @__PURE__ */ Y("td", {
3825
3840
  ref: a,
3826
3841
  "data-test-id": r,
3827
- className: Q("px-4", Pi[e], t),
3842
+ className: Q("px-4", Fi[e], t),
3828
3843
  ...i,
3829
3844
  children: n
3830
3845
  });
3831
3846
  });
3832
- function Vi({ columns: e, rows: t, rowKey: n, empty: r = "No results", density: i, striped: a, hoverable: o, sortKey: s, sortDir: c = null, onSortChange: l, onRowClick: u, className: d, dataTestId: f }) {
3833
- return /* @__PURE__ */ X(Fi, {
3847
+ function Hi({ columns: e, rows: t, rowKey: n, empty: r = "No results", density: i, striped: a, hoverable: o, sortKey: s, sortDir: c = null, onSortChange: l, onRowClick: u, className: d, dataTestId: f }) {
3848
+ return /* @__PURE__ */ X(Ii, {
3834
3849
  density: i,
3835
3850
  striped: a,
3836
3851
  hoverable: o,
3837
3852
  className: d,
3838
3853
  dataTestId: f,
3839
- children: [/* @__PURE__ */ Y(Ii, { children: /* @__PURE__ */ Y(Ri, { children: e.map((e) => /* @__PURE__ */ Y(zi, {
3854
+ children: [/* @__PURE__ */ Y(Li, { children: /* @__PURE__ */ Y(zi, { children: e.map((e) => /* @__PURE__ */ Y(Bi, {
3840
3855
  align: e.align,
3841
3856
  sortable: e.sortable,
3842
3857
  sortDir: s === e.key ? c : null,
3843
3858
  onSortChange: (t) => l?.(e.key, t),
3844
3859
  children: e.header
3845
- }, e.key)) }) }), /* @__PURE__ */ Y(Li, { children: t.length === 0 ? /* @__PURE__ */ Y(Ri, { children: /* @__PURE__ */ Y(Bi, {
3860
+ }, e.key)) }) }), /* @__PURE__ */ Y(Ri, { children: t.length === 0 ? /* @__PURE__ */ Y(zi, { children: /* @__PURE__ */ Y(Vi, {
3846
3861
  colSpan: e.length,
3847
3862
  className: "text-center text-fg-tertiary py-10",
3848
3863
  align: "center",
3849
3864
  children: r
3850
- }) }) : t.map((t, r) => /* @__PURE__ */ Y(Ri, {
3865
+ }) }) : t.map((t, r) => /* @__PURE__ */ Y(zi, {
3851
3866
  onClick: u ? () => u(t) : void 0,
3852
3867
  className: u ? "cursor-pointer" : void 0,
3853
- children: e.map((e) => /* @__PURE__ */ Y(Bi, {
3868
+ children: e.map((e) => /* @__PURE__ */ Y(Vi, {
3854
3869
  align: e.align,
3855
3870
  children: e.render ? e.render(t) : e.accessor ? e.accessor(t) : null
3856
3871
  }, e.key))
@@ -3859,11 +3874,11 @@ function Vi({ columns: e, rows: t, rowKey: n, empty: r = "No results", density:
3859
3874
  }
3860
3875
  //#endregion
3861
3876
  //#region src/components/TableV2/TableV2Filter.tsx
3862
- function Hi({ column: e }) {
3877
+ function Ui({ column: e }) {
3863
3878
  let t = e.columnDef.meta?.filterVariant;
3864
3879
  if (!t) return null;
3865
3880
  let n = e.getFilterValue();
3866
- return t === "custom" ? /* @__PURE__ */ Y(J, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ Y(ei, {
3881
+ return t === "custom" ? /* @__PURE__ */ Y(J, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ Y(ti, {
3867
3882
  size: "sm",
3868
3883
  searchable: !1,
3869
3884
  required: !1,
@@ -3882,7 +3897,7 @@ function Hi({ column: e }) {
3882
3897
  }
3883
3898
  //#endregion
3884
3899
  //#region src/components/TableV2/TableV2Pagination.i18n.ts
3885
- var Ui = {
3900
+ var Wi = {
3886
3901
  "en-US": {
3887
3902
  rowsPerPage: "Rows per page",
3888
3903
  noResults: "No results",
@@ -3901,13 +3916,13 @@ var Ui = {
3901
3916
  };
3902
3917
  //#endregion
3903
3918
  //#region src/components/TableV2/TableV2Pagination.tsx
3904
- function Wi({ table: e, pageSizeOptions: t = [
3919
+ function Gi({ table: e, pageSizeOptions: t = [
3905
3920
  10,
3906
3921
  25,
3907
3922
  50,
3908
3923
  100
3909
3924
  ], locale: n = "en-US" }) {
3910
- 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 = Ui[n];
3925
+ 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];
3911
3926
  return /* @__PURE__ */ X("div", {
3912
3927
  className: "flex flex-wrap items-center justify-between gap-3 p-3 border-t border-border-default",
3913
3928
  children: [
@@ -3916,7 +3931,7 @@ function Wi({ table: e, pageSizeOptions: t = [
3916
3931
  children: [/* @__PURE__ */ Y("span", {
3917
3932
  className: "text-p-sm text-fg-secondary whitespace-nowrap",
3918
3933
  children: l.rowsPerPage
3919
- }), /* @__PURE__ */ Y(ei, {
3934
+ }), /* @__PURE__ */ Y(ti, {
3920
3935
  size: "sm",
3921
3936
  menuPlacement: "top",
3922
3937
  searchable: !1,
@@ -3944,12 +3959,12 @@ function Wi({ table: e, pageSizeOptions: t = [
3944
3959
  }
3945
3960
  //#endregion
3946
3961
  //#region src/components/TableV2/TableV2Skeleton.tsx
3947
- function Gi({ columnCount: e, rowCount: t = 8 }) {
3962
+ function Ki({ columnCount: e, rowCount: t = 8 }) {
3948
3963
  return /* @__PURE__ */ Y(J, { children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ Y("tr", {
3949
3964
  "aria-hidden": n > 0 || void 0,
3950
3965
  children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ Y("td", {
3951
3966
  className: "px-4 py-3",
3952
- children: /* @__PURE__ */ Y(ci, {
3967
+ children: /* @__PURE__ */ Y(li, {
3953
3968
  variant: "text",
3954
3969
  width: t === 0 ? "70%" : "90%"
3955
3970
  })
@@ -3958,11 +3973,11 @@ function Gi({ columnCount: e, rowCount: t = 8 }) {
3958
3973
  }
3959
3974
  //#endregion
3960
3975
  //#region src/components/TableV2/TableV2ColumnVisibility.tsx
3961
- function Ki(e) {
3976
+ function qi(e) {
3962
3977
  let { header: t } = e.columnDef;
3963
3978
  return typeof t == "string" ? t : e.id;
3964
3979
  }
3965
- function qi({ table: e }) {
3980
+ function Ji({ table: e }) {
3966
3981
  let t = e.getAllLeafColumns().filter((e) => e.getCanHide());
3967
3982
  return /* @__PURE__ */ X(Nn, { children: [/* @__PURE__ */ Y(Pn, { children: /* @__PURE__ */ Y(nt, {
3968
3983
  variant: "secondary",
@@ -3975,7 +3990,7 @@ function qi({ table: e }) {
3975
3990
  className: "px-3 py-1.5 hover:bg-bg-subtle",
3976
3991
  children: /* @__PURE__ */ Y(Bt, {
3977
3992
  size: "sm",
3978
- label: Ki(e),
3993
+ label: qi(e),
3979
3994
  checked: e.getIsVisible(),
3980
3995
  onChange: () => e.toggleVisibility()
3981
3996
  })
@@ -3984,12 +3999,12 @@ function qi({ table: e }) {
3984
3999
  }
3985
4000
  //#endregion
3986
4001
  //#region src/components/TableV2/TableV2Toolbar.tsx
3987
- function Ji({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
4002
+ function Yi({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
3988
4003
  return /* @__PURE__ */ X("div", {
3989
4004
  className: "flex flex-wrap items-center gap-2 p-3 border-b border-border-default",
3990
4005
  children: [t && /* @__PURE__ */ Y(Qt, {
3991
4006
  size: "sm",
3992
- leftIcon: /* @__PURE__ */ Y(U, { className: "h-4 w-4" }),
4007
+ leftIcon: /* @__PURE__ */ Y(W, { className: "h-4 w-4" }),
3993
4008
  placeholder: r ?? "Search...",
3994
4009
  "aria-label": "Search",
3995
4010
  value: String(e.getState().globalFilter ?? ""),
@@ -4003,7 +4018,7 @@ function Ji({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
4003
4018
  size: "sm",
4004
4019
  iconOnly: !0,
4005
4020
  "aria-label": "Refresh",
4006
- leftIcon: /* @__PURE__ */ Y(ie, { className: "h-4 w-4" }),
4021
+ leftIcon: /* @__PURE__ */ Y(re, { className: "h-4 w-4" }),
4007
4022
  onClick: i
4008
4023
  }),
4009
4024
  a && /* @__PURE__ */ Y(nt, {
@@ -4013,7 +4028,7 @@ function Ji({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
4013
4028
  onClick: a,
4014
4029
  children: "Export"
4015
4030
  }),
4016
- n && /* @__PURE__ */ Y(qi, { table: e }),
4031
+ n && /* @__PURE__ */ Y(Ji, { table: e }),
4017
4032
  o
4018
4033
  ]
4019
4034
  })]
@@ -4021,15 +4036,15 @@ function Ji({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
4021
4036
  }
4022
4037
  //#endregion
4023
4038
  //#region src/components/TableV2/useTableV2ColumnDnd.ts
4024
- var Yi = ({ transform: e }) => ({
4039
+ var Xi = ({ transform: e }) => ({
4025
4040
  ...e,
4026
4041
  y: 0
4027
4042
  });
4028
- function Xi({ columnOrder: e, onColumnOrderChange: t }) {
4043
+ function Zi({ columnOrder: e, onColumnOrderChange: t }) {
4029
4044
  return {
4030
4045
  sensors: Ne(Me(Ae, { activationConstraint: { distance: 4 } }), Me(Z, { coordinateGetter: Le })),
4031
4046
  collisionDetection: je,
4032
- modifiers: [Yi],
4047
+ modifiers: [Xi],
4033
4048
  handleDragEnd: (n) => {
4034
4049
  let { active: r, over: i } = n;
4035
4050
  if (!i || r.id === i.id) return;
@@ -4038,7 +4053,7 @@ function Xi({ columnOrder: e, onColumnOrderChange: t }) {
4038
4053
  }
4039
4054
  };
4040
4055
  }
4041
- function Zi(e) {
4056
+ function Qi(e) {
4042
4057
  let { attributes: t, listeners: n, setNodeRef: r, transform: i, transition: a, isDragging: o } = Re({ id: e });
4043
4058
  return {
4044
4059
  setNodeRef: r,
@@ -4056,13 +4071,13 @@ function Zi(e) {
4056
4071
  }
4057
4072
  //#endregion
4058
4073
  //#region src/components/TableV2/TableV2RowActions.tsx
4059
- function Qi({ row: e, actions: t }) {
4074
+ function $i({ row: e, actions: t }) {
4060
4075
  return t.length === 0 ? null : /* @__PURE__ */ X(Nn, { children: [/* @__PURE__ */ Y(Pn, { children: /* @__PURE__ */ Y(nt, {
4061
4076
  variant: "tertiary",
4062
4077
  size: "sm",
4063
4078
  iconOnly: !0,
4064
4079
  "aria-label": "Row actions",
4065
- leftIcon: /* @__PURE__ */ Y(z, { className: "h-4 w-4" })
4080
+ leftIcon: /* @__PURE__ */ Y(B, { className: "h-4 w-4" })
4066
4081
  }) }), /* @__PURE__ */ Y(In, {
4067
4082
  align: "end",
4068
4083
  children: t.map((t, n) => /* @__PURE__ */ Y(Ln, {
@@ -4076,15 +4091,15 @@ function Qi({ row: e, actions: t }) {
4076
4091
  }
4077
4092
  //#endregion
4078
4093
  //#region src/components/TableV2/TableV2.utils.tsx
4079
- var $i = {
4094
+ var ea = {
4080
4095
  comfortable: "py-3",
4081
4096
  compact: "py-2"
4082
- }, ea = {
4097
+ }, ta = {
4083
4098
  left: "text-left",
4084
4099
  center: "text-center",
4085
4100
  right: "text-right"
4086
4101
  };
4087
- function ta() {
4102
+ function na() {
4088
4103
  return {
4089
4104
  id: "select",
4090
4105
  size: 40,
@@ -4109,7 +4124,7 @@ function ta() {
4109
4124
  })
4110
4125
  };
4111
4126
  }
4112
- function na(e, t) {
4127
+ function ra(e, t) {
4113
4128
  return {
4114
4129
  id: "actions",
4115
4130
  header: t?.header ?? "",
@@ -4117,13 +4132,13 @@ function na(e, t) {
4117
4132
  enableSorting: !1,
4118
4133
  enableColumnFilter: !1,
4119
4134
  enableResizing: !1,
4120
- cell: ({ row: t }) => /* @__PURE__ */ Y(Qi, {
4135
+ cell: ({ row: t }) => /* @__PURE__ */ Y($i, {
4121
4136
  row: t.original,
4122
4137
  actions: e(t.original)
4123
4138
  })
4124
4139
  };
4125
4140
  }
4126
- function ra(e) {
4141
+ function ia(e) {
4127
4142
  let t = e.getIsPinned();
4128
4143
  return t ? {
4129
4144
  position: "sticky",
@@ -4134,26 +4149,26 @@ function ra(e) {
4134
4149
  }
4135
4150
  //#endregion
4136
4151
  //#region src/components/TableV2/TableV2.tsx
4137
- function ia(e, t, n) {
4152
+ function aa(e, t, n) {
4138
4153
  let [r, i] = m(n);
4139
4154
  return [e === void 0 ? r : e, (e) => {
4140
4155
  i((t) => typeof e == "function" ? e(t) : e), t?.(e);
4141
4156
  }];
4142
4157
  }
4143
- var aa = /* @__PURE__ */ new Set(["select", "actions"]);
4144
- function oa({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
4145
- let c = e.column, l = aa.has(c.id), u = i && !l, d = Zi(c.id), f = c.columnDef.meta?.align ?? "left", p = c.getIsSorted(), m = !l && (o && c.getCanPin() || s && c.getCanHide()), h = Ce(c.columnDef.header, e.getContext());
4158
+ var oa = /* @__PURE__ */ new Set(["select", "actions"]);
4159
+ function sa({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
4160
+ 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 = Ce(c.columnDef.header, e.getContext());
4146
4161
  return /* @__PURE__ */ X("th", {
4147
4162
  ref: u ? d.setNodeRef : void 0,
4148
4163
  colSpan: e.colSpan,
4149
4164
  scope: "col",
4150
4165
  style: {
4151
4166
  width: a ? e.getSize() : void 0,
4152
- ...ra(c),
4167
+ ...ia(c),
4153
4168
  ...u ? d.style : null
4154
4169
  },
4155
4170
  "aria-sort": p === "asc" ? "ascending" : p === "desc" ? "descending" : void 0,
4156
- className: Q("relative px-4 whitespace-nowrap bg-bg-container", $i[t], ea[f]),
4171
+ className: Q("relative px-4 whitespace-nowrap bg-bg-container", ea[t], ta[f]),
4157
4172
  children: [
4158
4173
  /* @__PURE__ */ X("div", {
4159
4174
  className: "flex items-center gap-1",
@@ -4185,23 +4200,23 @@ function oa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4185
4200
  type: "button",
4186
4201
  "aria-label": `${typeof h == "string" ? h : c.id} column options`,
4187
4202
  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",
4188
- children: /* @__PURE__ */ Y(R, { className: "h-3.5 w-3.5" })
4203
+ children: /* @__PURE__ */ Y(z, { className: "h-3.5 w-3.5" })
4189
4204
  }) }), /* @__PURE__ */ X(In, {
4190
4205
  align: "start",
4191
4206
  children: [
4192
4207
  o && c.getCanPin() && /* @__PURE__ */ X(J, { children: [
4193
4208
  c.getIsPinned() !== "left" && /* @__PURE__ */ Y(Ln, {
4194
- icon: /* @__PURE__ */ Y(H, { className: "h-4 w-4" }),
4209
+ icon: /* @__PURE__ */ Y(U, { className: "h-4 w-4" }),
4195
4210
  onSelect: () => c.pin("left"),
4196
4211
  children: "Pin left"
4197
4212
  }),
4198
4213
  c.getIsPinned() !== "right" && /* @__PURE__ */ Y(Ln, {
4199
- icon: /* @__PURE__ */ Y(H, { className: "h-4 w-4" }),
4214
+ icon: /* @__PURE__ */ Y(U, { className: "h-4 w-4" }),
4200
4215
  onSelect: () => c.pin("right"),
4201
4216
  children: "Pin right"
4202
4217
  }),
4203
4218
  c.getIsPinned() && /* @__PURE__ */ Y(Ln, {
4204
- icon: /* @__PURE__ */ Y(ne, { className: "h-4 w-4" }),
4219
+ icon: /* @__PURE__ */ Y(te, { className: "h-4 w-4" }),
4205
4220
  onSelect: () => c.pin(!1),
4206
4221
  children: "Unpin"
4207
4222
  })
@@ -4219,7 +4234,7 @@ function oa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4219
4234
  r && c.getCanFilter() && /* @__PURE__ */ Y("div", {
4220
4235
  className: "mt-2 normal-case",
4221
4236
  onClick: (e) => e.stopPropagation(),
4222
- children: /* @__PURE__ */ Y(Hi, { column: c })
4237
+ children: /* @__PURE__ */ Y(Ui, { column: c })
4223
4238
  }),
4224
4239
  a && c.getCanResize() && /* @__PURE__ */ Y("div", {
4225
4240
  onMouseDown: e.getResizeHandler(),
@@ -4230,8 +4245,8 @@ function oa({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
4230
4245
  ]
4231
4246
  });
4232
4247
  }
4233
- function sa({ row: e, onRowClick: t }) {
4234
- let n = e.getVisibleCells(), r = n.find((e) => !aa.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 && !aa.has(e.column.id));
4248
+ function ca({ row: e, onRowClick: t }) {
4249
+ 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));
4235
4250
  return /* @__PURE__ */ X("div", {
4236
4251
  "data-selected": e.getIsSelected() || void 0,
4237
4252
  onClick: t ? () => t(e.original) : void 0,
@@ -4266,26 +4281,26 @@ function sa({ row: e, onRowClick: t }) {
4266
4281
  })]
4267
4282
  });
4268
4283
  }
4269
- function ca({ rowCount: e }) {
4284
+ function la({ rowCount: e }) {
4270
4285
  return /* @__PURE__ */ Y("div", { children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ X("div", {
4271
4286
  "aria-hidden": t > 0 || void 0,
4272
4287
  className: "flex flex-col gap-2 border-b border-border-default p-4",
4273
- children: [/* @__PURE__ */ Y(ci, {
4288
+ children: [/* @__PURE__ */ Y(li, {
4274
4289
  variant: "text",
4275
4290
  width: "60%"
4276
- }), /* @__PURE__ */ Y(ci, {
4291
+ }), /* @__PURE__ */ Y(li, {
4277
4292
  variant: "text",
4278
4293
  width: "90%"
4279
4294
  })]
4280
4295
  }, t)) });
4281
4296
  }
4282
- function la(e, t) {
4283
- 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: A, enableColumnOrdering: j = !1, columnOrder: M, onColumnOrderChange: ee, enablePinning: N = !1, columnPinning: P, onColumnPinningChange: te, enableColumnResizing: F = !1, columnResizeMode: I = "onChange", enablePagination: L = !1, pageSize: R = 10, pageSizeOptions: z, pagination: B, onPaginationChange: V, locale: H = "en-US", manualPagination: ne = !1, pageCount: re, rowCount: ie, enableVirtualization: U = !1, estimatedRowHeight: W = 44, maxBodyHeight: G = 480, onRowClick: ae, toolbar: K = !1, toolbarActions: oe, searchPlaceholder: se, onRefresh: ce, onExport: q, density: le = "comfortable", stickyHeader: ue = !1, wrapperClassName: de, className: fe, dataTestId: pe } = e, [me, he] = ia(u, h, []), [ge, _e] = ia(v, y, []), [ve, ye] = ia(S, C, ""), [be, xe] = ia(E, D, {}), [Z, Ae] = ia(k, A, {}), [je, Me] = ia(M, ee, []), [Ne, Fe] = ia(P, te, {}), [Le, Re] = ia(B, V, {
4297
+ function ua(e, t) {
4298
+ 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: A, enableColumnOrdering: j = !1, columnOrder: M, onColumnOrderChange: ee, enablePinning: N = !1, columnPinning: P, onColumnPinningChange: F, enableColumnResizing: I = !1, columnResizeMode: L = "onChange", enablePagination: R = !1, pageSize: z = 10, pageSizeOptions: B, pagination: V, onPaginationChange: H, locale: U = "en-US", manualPagination: te = !1, pageCount: ne, rowCount: re, enableVirtualization: W = !1, estimatedRowHeight: ie = 44, maxBodyHeight: G = 480, onRowClick: ae, toolbar: K = !1, toolbarActions: oe, searchPlaceholder: se, onRefresh: ce, onExport: q, density: le = "comfortable", stickyHeader: ue = !1, wrapperClassName: de, className: fe, dataTestId: pe } = e, [me, he] = aa(u, h, []), [ge, _e] = aa(v, y, []), [ve, ye] = aa(S, C, ""), [be, xe] = aa(E, D, {}), [Z, Ae] = aa(k, A, {}), [je, Me] = aa(M, ee, []), [Ne, Fe] = aa(P, F, {}), [Le, Re] = aa(V, H, {
4284
4299
  pageIndex: 0,
4285
- pageSize: R
4300
+ pageSize: z
4286
4301
  }), ze = Oe({
4287
4302
  data: n,
4288
- columns: f(() => !w || r.some((e) => e.id === "select") ? r : [ta(), ...r], [r, w]),
4303
+ columns: f(() => !w || r.some((e) => e.id === "select") ? r : [na(), ...r], [r, w]),
4289
4304
  getRowId: s,
4290
4305
  state: {
4291
4306
  sorting: me,
@@ -4313,62 +4328,62 @@ function la(e, t) {
4313
4328
  manualFiltering: b,
4314
4329
  enableRowSelection: w,
4315
4330
  enableMultiRowSelection: T,
4316
- enableColumnResizing: F,
4317
- columnResizeMode: I,
4318
- manualPagination: ne,
4319
- pageCount: re,
4320
- rowCount: ie,
4331
+ enableColumnResizing: I,
4332
+ columnResizeMode: L,
4333
+ manualPagination: te,
4334
+ pageCount: ne,
4335
+ rowCount: re,
4321
4336
  getCoreRowModel: we(),
4322
4337
  getSortedRowModel: c ? De() : void 0,
4323
4338
  getFilteredRowModel: _ || x ? Te() : void 0,
4324
- getPaginationRowModel: L ? Ee() : void 0
4339
+ getPaginationRowModel: R ? Ee() : void 0
4325
4340
  }), Be = ze.getRowModel().rows, Ve = ze.getVisibleLeafColumns().length, He = p(null), [Ue, We] = m(null);
4326
4341
  d(() => {
4327
- if (!L || U) return;
4342
+ if (!R || W) return;
4328
4343
  let e = He.current?.getBoundingClientRect().height;
4329
4344
  e && e !== Ue && We(e);
4330
4345
  }, [
4331
- L,
4332
- U,
4346
+ R,
4347
+ W,
4333
4348
  le,
4334
4349
  Be,
4335
4350
  Ue
4336
4351
  ]);
4337
- let Ge = Ue ?? W, Ke = L && !U ? Math.max(0, Le.pageSize - Be.length) * Ge : 0, qe = f(() => je.length > 0 ? je : ze.getAllLeafColumns().map((e) => e.id), [je, ze]), Je = Xi({
4352
+ let Ge = Ue ?? ie, Ke = R && !W ? Math.max(0, Le.pageSize - Be.length) * Ge : 0, qe = f(() => je.length > 0 ? je : ze.getAllLeafColumns().map((e) => e.id), [je, ze]), Je = Zi({
4338
4353
  columnOrder: qe,
4339
4354
  onColumnOrderChange: Me
4340
4355
  }), Ye = (e) => Je.handleDragEnd(e), Xe = p(null), Ze = Se({
4341
4356
  count: Be.length,
4342
4357
  getScrollElement: () => Xe.current,
4343
- estimateSize: () => W,
4358
+ estimateSize: () => ie,
4344
4359
  overscan: 10,
4345
- enabled: U
4346
- }), Qe = U ? Ze.getVirtualItems() : null, $e = Qe && Qe.length > 0 ? Qe[0]?.start ?? 0 : 0, et = Qe && Qe.length > 0 ? Ze.getTotalSize() - (Qe[Qe.length - 1]?.end ?? 0) : 0, tt = (e, t) => /* @__PURE__ */ Y("tr", {
4360
+ enabled: W
4361
+ }), Qe = W ? Ze.getVirtualItems() : null, $e = Qe && Qe.length > 0 ? Qe[0]?.start ?? 0 : 0, et = Qe && Qe.length > 0 ? Ze.getTotalSize() - (Qe[Qe.length - 1]?.end ?? 0) : 0, tt = (e, t) => /* @__PURE__ */ Y("tr", {
4347
4362
  ref: t,
4348
4363
  "data-selected": e.getIsSelected() || void 0,
4349
4364
  onClick: ae ? () => ae(e.original) : void 0,
4350
4365
  className: Q("group border-t border-border-default", ae && "cursor-pointer"),
4351
4366
  children: e.getVisibleCells().map((e) => /* @__PURE__ */ Y("td", {
4352
- style: ra(e.column),
4353
- className: Q("bg-bg-default px-4 group-hover:bg-bg-container group-data-[selected]:bg-brand-50", $i[le], ea[e.column.columnDef.meta?.align ?? "left"]),
4367
+ style: ia(e.column),
4368
+ className: Q("bg-bg-default px-4 group-hover:bg-bg-container group-data-[selected]:bg-brand-50", ea[le], ta[e.column.columnDef.meta?.align ?? "left"]),
4354
4369
  children: Ce(e.column.columnDef.cell, e.getContext())
4355
4370
  }, e.id))
4356
- }, e.id), nt = (e, t) => /* @__PURE__ */ Y("tr", { children: t.map((e) => /* @__PURE__ */ Y(oa, {
4371
+ }, e.id), nt = (e, t) => /* @__PURE__ */ Y("tr", { children: t.map((e) => /* @__PURE__ */ Y(sa, {
4357
4372
  header: e,
4358
4373
  density: le,
4359
4374
  enableSorting: c,
4360
4375
  enableFiltering: _,
4361
4376
  enableColumnOrdering: j,
4362
- enableColumnResizing: F,
4377
+ enableColumnResizing: I,
4363
4378
  enablePinning: N,
4364
4379
  enableColumnVisibility: O
4365
4380
  }, e.id)) }, e), rt = /* @__PURE__ */ X("table", {
4366
4381
  className: "w-full border-collapse text-p-std text-fg-default",
4367
- style: { width: F ? ze.getTotalSize() : "100%" },
4382
+ style: { width: I ? ze.getTotalSize() : "100%" },
4368
4383
  children: [/* @__PURE__ */ Y("thead", {
4369
4384
  className: Q("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", ue && "sticky top-0 z-10"),
4370
4385
  children: ze.getHeaderGroups().map((e) => nt(e.id, e.headers))
4371
- }), /* @__PURE__ */ Y("tbody", { children: i ? /* @__PURE__ */ Y(Gi, {
4386
+ }), /* @__PURE__ */ Y("tbody", { children: i ? /* @__PURE__ */ Y(Ki, {
4372
4387
  columnCount: Ve,
4373
4388
  rowCount: Le.pageSize
4374
4389
  }) : Be.length === 0 ? /* @__PURE__ */ Y("tr", { children: /* @__PURE__ */ Y("td", {
@@ -4378,7 +4393,7 @@ function la(e, t) {
4378
4393
  size: "sm",
4379
4394
  title: o
4380
4395
  })
4381
- }) }) : U && Qe ? /* @__PURE__ */ X(J, { children: [
4396
+ }) }) : W && Qe ? /* @__PURE__ */ X(J, { children: [
4382
4397
  $e > 0 && /* @__PURE__ */ Y("tr", {
4383
4398
  "aria-hidden": !0,
4384
4399
  children: /* @__PURE__ */ Y("td", {
@@ -4411,7 +4426,7 @@ function la(e, t) {
4411
4426
  "data-test-id": pe,
4412
4427
  className: Q("w-full rounded-lg border border-border-default bg-bg-default", de, fe),
4413
4428
  children: [
4414
- K === !1 ? null : K ?? /* @__PURE__ */ Y(Ji, {
4429
+ K === !1 ? null : K ?? /* @__PURE__ */ Y(Yi, {
4415
4430
  table: ze,
4416
4431
  enableGlobalFilter: x,
4417
4432
  enableColumnVisibility: O,
@@ -4432,7 +4447,7 @@ function la(e, t) {
4432
4447
  children: /* @__PURE__ */ Y("div", {
4433
4448
  ref: Xe,
4434
4449
  className: Q("w-full overflow-auto", K === !1 ? "rounded-lg" : "rounded-b-lg"),
4435
- style: U || ue ? { maxHeight: G } : void 0,
4450
+ style: W || ue ? { maxHeight: G } : void 0,
4436
4451
  children: j ? /* @__PURE__ */ Y(ke, {
4437
4452
  sensors: Je.sensors,
4438
4453
  collisionDetection: Je.collisionDetection,
@@ -4447,33 +4462,33 @@ function la(e, t) {
4447
4462
  })
4448
4463
  }), /* @__PURE__ */ Y("div", {
4449
4464
  className: "md:hidden",
4450
- children: i ? /* @__PURE__ */ Y(ca, { rowCount: Le.pageSize }) : Be.length === 0 ? /* @__PURE__ */ Y(Xn, {
4465
+ children: i ? /* @__PURE__ */ Y(la, { rowCount: Le.pageSize }) : Be.length === 0 ? /* @__PURE__ */ Y(Xn, {
4451
4466
  size: "sm",
4452
4467
  title: o
4453
- }) : Be.map((e) => /* @__PURE__ */ Y(sa, {
4468
+ }) : Be.map((e) => /* @__PURE__ */ Y(ca, {
4454
4469
  row: e,
4455
4470
  onRowClick: ae
4456
4471
  }, e.id))
4457
4472
  })] }),
4458
- L && !a && /* @__PURE__ */ Y(Wi, {
4473
+ R && !a && /* @__PURE__ */ Y(Gi, {
4459
4474
  table: ze,
4460
- pageSizeOptions: z,
4461
- locale: H
4475
+ pageSizeOptions: B,
4476
+ locale: U
4462
4477
  })
4463
4478
  ]
4464
4479
  });
4465
4480
  }
4466
- var ua = a(la);
4467
- ua.displayName = "TableV2";
4481
+ var da = a(ua);
4482
+ da.displayName = "TableV2";
4468
4483
  //#endregion
4469
4484
  //#region src/components/Tabs/Tabs.tsx
4470
- var da = r(null);
4471
- function fa() {
4472
- let e = c(da);
4485
+ var fa = r(null);
4486
+ function pa() {
4487
+ let e = c(fa);
4473
4488
  if (!e) throw Error("Tab components must be used inside <Tabs>");
4474
4489
  return e;
4475
4490
  }
4476
- function pa(t) {
4491
+ function ma(t) {
4477
4492
  let n = [];
4478
4493
  e.forEach(t, (e) => {
4479
4494
  o(e) && n.push(e);
@@ -4487,9 +4502,9 @@ function pa(t) {
4487
4502
  }
4488
4503
  return "";
4489
4504
  }
4490
- var ma = 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) {
4491
- let [f, p] = m(() => e ?? pa(s)), h = t !== void 0, g = h ? t : f, _ = u();
4492
- return /* @__PURE__ */ Y(da.Provider, {
4505
+ 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) {
4506
+ let [f, p] = m(() => e ?? ma(s)), h = t !== void 0, g = h ? t : f, _ = u();
4507
+ return /* @__PURE__ */ Y(fa.Provider, {
4493
4508
  value: {
4494
4509
  value: g,
4495
4510
  setValue: (e) => {
@@ -4508,8 +4523,8 @@ var ma = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4508
4523
  children: s
4509
4524
  })
4510
4525
  });
4511
- }), ha = a(function({ children: e, scrollable: t = !1, className: n, dataTestId: r, onKeyDown: i, ...a }, o) {
4512
- let { variant: s } = fa(), c = p(null);
4526
+ }), ga = a(function({ children: e, scrollable: t = !1, className: n, dataTestId: r, onKeyDown: i, ...a }, o) {
4527
+ let { variant: s } = pa(), c = p(null);
4513
4528
  return /* @__PURE__ */ Y("div", {
4514
4529
  ref: Vt(o, c),
4515
4530
  role: "tablist",
@@ -4531,12 +4546,12 @@ var ma = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4531
4546
  children: e
4532
4547
  });
4533
4548
  });
4534
- ha.displayName = "TabList";
4535
- var ga = {
4549
+ ga.displayName = "TabList";
4550
+ var _a = {
4536
4551
  lg: "h-11 px-4 text-p-md",
4537
4552
  md: "h-10 px-3 text-p-std",
4538
4553
  sm: "h-8 px-2.5 text-p-sm"
4539
- }, _a = {
4554
+ }, va = {
4540
4555
  underline: {
4541
4556
  on: "bg-brand-500 text-white",
4542
4557
  off: "bg-bg-subtle text-fg-secondary"
@@ -4549,8 +4564,8 @@ var ga = {
4549
4564
  on: "bg-brand-500 text-white",
4550
4565
  off: "bg-bg-subtle text-fg-secondary"
4551
4566
  }
4552
- }, va = 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) {
4553
- let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = fa(), x = Ge(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Q("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", ga[v], S && "opacity-50 cursor-not-allowed"), D = _ === "underline" ? Q("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Q("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Q("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__ */ X("button", {
4567
+ }, 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) {
4568
+ let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = pa(), x = Ge(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Q("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" ? Q("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Q("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Q("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__ */ X("button", {
4554
4569
  ref: m,
4555
4570
  id: w,
4556
4571
  type: "button",
@@ -4579,7 +4594,7 @@ var ga = {
4579
4594
  ...a,
4580
4595
  children: i
4581
4596
  }) : /* @__PURE__ */ Y("span", {
4582
- className: Q("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 ? _a[_].on : _a[_].off),
4597
+ className: Q("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),
4583
4598
  children: i
4584
4599
  })),
4585
4600
  _ === "underline" && /* @__PURE__ */ Y("span", {
@@ -4601,8 +4616,8 @@ var ga = {
4601
4616
  children: o
4602
4617
  })]
4603
4618
  }) : O;
4604
- }), ya = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4605
- let { value: c, tabsId: l } = fa(), u = Ge(c, e);
4619
+ }), ba = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4620
+ let { value: c, tabsId: l } = pa(), u = Ge(c, e);
4606
4621
  return !u && !a ? null : /* @__PURE__ */ Y("div", {
4607
4622
  ref: s,
4608
4623
  id: i ?? `${l}-panel-${e}`,
@@ -4614,7 +4629,7 @@ var ga = {
4614
4629
  ...o,
4615
4630
  children: t
4616
4631
  });
4617
- }), ba = 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) {
4632
+ }), 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) {
4618
4633
  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;
4619
4634
  return /* @__PURE__ */ X("div", {
4620
4635
  className: Q("flex flex-col gap-1.5 w-full", f),
@@ -4676,7 +4691,7 @@ var ga = {
4676
4691
  })
4677
4692
  ]
4678
4693
  });
4679
- }), xa = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4694
+ }), Sa = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4680
4695
  let c = u(), l = n ?? c;
4681
4696
  return /* @__PURE__ */ X("label", {
4682
4697
  htmlFor: l,
@@ -4701,7 +4716,7 @@ var ga = {
4701
4716
  children: [/* @__PURE__ */ Y(ae, {
4702
4717
  className: "size-4 text-yellow-500 z-1",
4703
4718
  "aria-hidden": !0
4704
- }), /* @__PURE__ */ Y(L, {
4719
+ }), /* @__PURE__ */ Y(R, {
4705
4720
  className: "size-4 text-gray-400 z-1",
4706
4721
  "aria-hidden": !0
4707
4722
  })]
@@ -4716,20 +4731,20 @@ var ga = {
4716
4731
  children: t
4717
4732
  })]
4718
4733
  });
4719
- }), Sa = {
4734
+ }), Ca = {
4720
4735
  lg: "px-3 py-2 text-p-std",
4721
4736
  sm: "px-2 py-1 text-p-sm"
4722
- }, Ca = {
4737
+ }, wa = {
4723
4738
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
4724
4739
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
4725
4740
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
4726
4741
  right: "left-full top-1/2 -translate-y-1/2 ml-2"
4727
- }, wa = {
4742
+ }, Ta = {
4728
4743
  top: "top-full left-1/2 -translate-x-1/2 border-t-fg-default border-x-transparent border-b-transparent",
4729
4744
  bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-fg-default border-x-transparent border-t-transparent",
4730
4745
  left: "left-full top-1/2 -translate-y-1/2 border-l-fg-default border-y-transparent border-r-transparent",
4731
4746
  right: "right-full top-1/2 -translate-y-1/2 border-r-fg-default border-y-transparent border-l-transparent"
4732
- }, Ta = a(function({ content: e, children: t, side: r = "top", size: i = "sm", delay: a = 150, className: s, dataTestId: c }, l) {
4747
+ }, Ea = a(function({ content: e, children: t, side: r = "top", size: i = "sm", delay: a = 150, className: s, dataTestId: c }, l) {
4733
4748
  let [d, f] = m(!1), h = p(null), g = u(), _ = () => {
4734
4749
  h.current && clearTimeout(h.current), h.current = setTimeout(() => f(!0), a);
4735
4750
  }, v = () => {
@@ -4750,39 +4765,39 @@ var ga = {
4750
4765
  }), d && /* @__PURE__ */ X("span", {
4751
4766
  role: "tooltip",
4752
4767
  id: g,
4753
- className: Q("absolute z-50 whitespace-nowrap rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", Sa[i], Ca[r], s),
4768
+ className: Q("absolute z-50 whitespace-nowrap rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", Ca[i], wa[r], s),
4754
4769
  children: [e, /* @__PURE__ */ Y("span", {
4755
4770
  "aria-hidden": !0,
4756
- className: Q("absolute h-0 w-0 border-4", wa[r])
4771
+ className: Q("absolute h-0 w-0 border-4", Ta[r])
4757
4772
  })]
4758
4773
  })]
4759
4774
  });
4760
- }), Ea = "We'll be back soon", Da = "We're currently performing scheduled maintenance to make your experience even better. Please check back shortly.", Oa = {
4775
+ }), Da = "We'll be back soon", Oa = "We're currently performing scheduled maintenance to make your experience even better. Please check back shortly.", ka = {
4761
4776
  lg: "xl",
4762
4777
  sm: "lg"
4763
- }, ka = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4778
+ }, Aa = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4764
4779
  return /* @__PURE__ */ Y(Xn, {
4765
4780
  ref: a,
4766
4781
  size: e,
4767
- title: t ?? Ea,
4768
- description: n ?? Da,
4782
+ title: t ?? Da,
4783
+ description: n ?? Oa,
4769
4784
  illustration: r ?? /* @__PURE__ */ Y(Hn, {
4770
4785
  icon: k,
4771
4786
  tone: "brand",
4772
4787
  shape: "circle",
4773
- size: Oa[e]
4788
+ size: ka[e]
4774
4789
  }),
4775
4790
  ...i
4776
4791
  });
4777
4792
  });
4778
4793
  //#endregion
4779
4794
  //#region src/hooks/useStepper.ts
4780
- function Aa(e, t) {
4795
+ function ja(e, t) {
4781
4796
  return t <= 0 ? 0 : Math.min(Math.max(e, 0), t - 1);
4782
4797
  }
4783
- function ja({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i = !1 }) {
4784
- let [a, o] = m(() => Aa(t, e)), s = n !== void 0, c = s ? Aa(n, e) : a, l = (t) => {
4785
- let n = Aa(t, e);
4798
+ function Ma({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i = !1 }) {
4799
+ let [a, o] = m(() => ja(t, e)), s = n !== void 0, c = s ? ja(n, e) : a, l = (t) => {
4800
+ let n = ja(t, e);
4786
4801
  s || o(n), r?.(n);
4787
4802
  };
4788
4803
  return {
@@ -4810,37 +4825,37 @@ function ja({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i =
4810
4825
  }
4811
4826
  //#endregion
4812
4827
  //#region src/hooks/useOnOutsideClick.ts
4813
- var Ma = [];
4814
- function Na(e) {
4815
- let t = Ma[Ma.length - 1];
4828
+ var Na = [];
4829
+ function Pa(e) {
4830
+ let t = Na[Na.length - 1];
4816
4831
  if (!t) return;
4817
4832
  let { ref: n, callback: r, shouldRemoveCallback: i } = t;
4818
- n && !n.contains(e.target) && (i && Ma.splice(Ma.length - 1, 1), r(e));
4833
+ n && !n.contains(e.target) && (i && Na.splice(Na.length - 1, 1), r(e));
4819
4834
  }
4820
- var Pa = (e, t, n, r, i = !0) => {
4835
+ var Fa = (e, t, n, r, i = !0) => {
4821
4836
  l(() => {
4822
- if (e && n && r) return Ma.push({
4837
+ if (e && n && r) return Na.push({
4823
4838
  ref: e,
4824
4839
  callback: t,
4825
4840
  uid: r,
4826
4841
  shouldRemoveCallback: i
4827
- }), Ma.length === 1 && document.addEventListener("mousedown", Na), () => {
4828
- Ma.length === 0 && document.removeEventListener("mousedown", Na);
4842
+ }), Na.length === 1 && document.addEventListener("mousedown", Pa), () => {
4843
+ Na.length === 0 && document.removeEventListener("mousedown", Pa);
4829
4844
  };
4830
4845
  }, [
4831
4846
  e,
4832
4847
  n,
4833
4848
  r
4834
4849
  ]), l(() => {
4835
- if (!n && Ma.length > 0) {
4836
- let e = Ma.findIndex((e) => e.uid === r);
4837
- e >= 0 && Ma.splice(e, 1);
4850
+ if (!n && Na.length > 0) {
4851
+ let e = Na.findIndex((e) => e.uid === r);
4852
+ e >= 0 && Na.splice(e, 1);
4838
4853
  }
4839
4854
  }, [n]);
4840
4855
  };
4841
4856
  //#endregion
4842
4857
  //#region src/hooks/useEscapeKey.ts
4843
- function Fa(e, t = !0) {
4858
+ function Ia(e, t = !0) {
4844
4859
  l(() => {
4845
4860
  if (!t) return;
4846
4861
  let n = (t) => {
@@ -4851,18 +4866,18 @@ function Fa(e, t = !0) {
4851
4866
  }
4852
4867
  //#endregion
4853
4868
  //#region src/hooks/useHideBodyScroll.ts
4854
- var Ia = 0, La = "";
4855
- function Ra(e) {
4869
+ var La = 0, Ra = "";
4870
+ function za(e) {
4856
4871
  l(() => {
4857
- if (e) return Ia === 0 && (La = document.body.style.overflow, document.body.style.overflow = "hidden"), Ia += 1, () => {
4858
- --Ia, Ia === 0 && (document.body.style.overflow = La);
4872
+ if (e) return La === 0 && (Ra = document.body.style.overflow, document.body.style.overflow = "hidden"), La += 1, () => {
4873
+ --La, La === 0 && (document.body.style.overflow = Ra);
4859
4874
  };
4860
4875
  }, [e]);
4861
4876
  }
4862
4877
  //#endregion
4863
4878
  //#region src/hooks/useIsMobile.ts
4864
- var za = 768;
4865
- function Ba(e = za) {
4879
+ var Ba = 768;
4880
+ function Va(e = Ba) {
4866
4881
  let [t, n] = m(!1);
4867
4882
  return l(() => {
4868
4883
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
@@ -4872,33 +4887,33 @@ function Ba(e = za) {
4872
4887
  }
4873
4888
  //#endregion
4874
4889
  //#region src/hooks/useFormContext.ts
4875
- function Va() {
4890
+ function Ha() {
4876
4891
  let e = c(er);
4877
4892
  if (!e) throw Error("useFormContext must be used inside a FormContainer.");
4878
4893
  return e;
4879
4894
  }
4880
4895
  //#endregion
4881
4896
  //#region src/hooks/useFormProps.ts
4882
- var Ha = () => void 0, Ua = {
4897
+ var Ua = () => void 0, Wa = {
4883
4898
  errors: {},
4884
- setValue: Ha,
4885
- reset: Ha,
4886
- clearErrors: Ha,
4887
- setError: Ha,
4888
- unregister: Ha,
4899
+ setValue: Ua,
4900
+ reset: Ua,
4901
+ clearErrors: Ua,
4902
+ setError: Ua,
4903
+ unregister: Ua,
4889
4904
  isDirty: !1,
4890
4905
  isSubmitted: !1,
4891
4906
  isSubmitting: !1,
4892
4907
  isValid: !1,
4893
4908
  dirtyFields: {},
4894
- submit: Ha
4909
+ submit: Ua
4895
4910
  };
4896
- function Wa() {
4897
- return c(er) ?? Ua;
4911
+ function Ga() {
4912
+ return c(er) ?? Wa;
4898
4913
  }
4899
4914
  //#endregion
4900
4915
  //#region src/tokens/colors.ts
4901
- var Ga = {
4916
+ var Ka = {
4902
4917
  900: "#31531C",
4903
4918
  800: "#416E26",
4904
4919
  700: "#518A2F",
@@ -4924,7 +4939,7 @@ var Ga = {
4924
4939
  100: "#f2f5f8",
4925
4940
  50: "#f5f7fa",
4926
4941
  20: "#f7f9fc"
4927
- }, Ka = "#FEFEFE", qa = {
4942
+ }, qa = "#FEFEFE", Ja = {
4928
4943
  900: "#0b4627",
4929
4944
  800: "#0f5c33",
4930
4945
  700: "#3D8B46",
@@ -4935,7 +4950,7 @@ var Ga = {
4935
4950
  200: "#aeeacb",
4936
4951
  100: "#d0f5e1",
4937
4952
  50: "#e0faec"
4938
- }, Ja = {
4953
+ }, Ya = {
4939
4954
  900: "#2443B8",
4940
4955
  800: "#2E63D6",
4941
4956
  700: "#3475E8",
@@ -4946,7 +4961,7 @@ var Ga = {
4946
4961
  200: "#9ACAFA",
4947
4962
  100: "#C1DEFC",
4948
4963
  50: "#E6F2FE"
4949
- }, Ya = {
4964
+ }, Xa = {
4950
4965
  900: "#081FA6",
4951
4966
  800: "#0E2AB2",
4952
4967
  700: "#2431B9",
@@ -4958,7 +4973,7 @@ var Ga = {
4958
4973
  100: "#CBC4ED",
4959
4974
  50: "#EAE7F7",
4960
4975
  20: "#F5F3FB"
4961
- }, Xa = {
4976
+ }, Za = {
4962
4977
  900: "#4A0A20",
4963
4978
  800: "#79012F",
4964
4979
  700: "#A2023F",
@@ -4969,7 +4984,7 @@ var Ga = {
4969
4984
  200: "#FE7DAF",
4970
4985
  100: "#FEA8C9",
4971
4986
  50: "#FFD4E4"
4972
- }, Za = {
4987
+ }, Qa = {
4973
4988
  900: "#8b1822",
4974
4989
  800: "#ad1f2b",
4975
4990
  700: "#d02533",
@@ -4981,7 +4996,7 @@ var Ga = {
4981
4996
  100: "#ffd5d8",
4982
4997
  50: "#ffebec",
4983
4998
  20: "#fff4f4"
4984
- }, Qa = {
4999
+ }, $a = {
4985
5000
  900: "#EB7520",
4986
5001
  800: "#ED912A",
4987
5002
  700: "#EEA02F",
@@ -4992,47 +5007,47 @@ var Ga = {
4992
5007
  200: "#F7DE8E",
4993
5008
  100: "#FAEBB9",
4994
5009
  50: "#FDF7E4"
4995
- }, $a = {
4996
- brand: Ga,
4997
- gray: $,
4998
- green: qa,
4999
- blue: Ja,
5000
- purple: Ya,
5001
- pink: Xa,
5002
- red: Za,
5003
- yellow: Qa
5004
5010
  }, eo = {
5005
- bgDefault: Ka,
5011
+ brand: Ka,
5012
+ gray: $,
5013
+ green: Ja,
5014
+ blue: Ya,
5015
+ purple: Xa,
5016
+ pink: Za,
5017
+ red: Qa,
5018
+ yellow: $a
5019
+ }, to = {
5020
+ bgDefault: qa,
5006
5021
  bgContainer: $[50],
5007
5022
  bgSubtle: $[100],
5008
- bgBrandLighter: Ga[20],
5009
- bgInfoLighter: Ja[50],
5010
- bgSuccessLighter: qa[50],
5011
- bgWarningLighter: Qa[50],
5012
- bgDangerLighter: Za[50],
5023
+ bgBrandLighter: Ka[20],
5024
+ bgInfoLighter: Ya[50],
5025
+ bgSuccessLighter: Ja[50],
5026
+ bgWarningLighter: $a[50],
5027
+ bgDangerLighter: Qa[50],
5013
5028
  fgDefault: $[900],
5014
5029
  fgSecondary: $[600],
5015
5030
  fgTertiary: $[500],
5016
5031
  fgDisabled: $[400],
5017
- fgInverse: Ka,
5018
- fgBrand: Ga[500],
5019
- fgInfo: Ja[600],
5020
- fgSuccess: qa[600],
5021
- fgWarning: Qa[800],
5022
- fgDanger: Za[800],
5032
+ fgInverse: qa,
5033
+ fgBrand: Ka[500],
5034
+ fgInfo: Ya[600],
5035
+ fgSuccess: Ja[600],
5036
+ fgWarning: $a[800],
5037
+ fgDanger: Qa[800],
5023
5038
  borderDefault: $[200],
5024
5039
  borderSubtle: $[100],
5025
5040
  borderStrong: $[300],
5026
- borderBrand: Ga[500],
5041
+ borderBrand: Ka[500],
5027
5042
  iconPrimary: $[900],
5028
5043
  iconSecondary: $[600],
5029
- iconInverse: Ka,
5030
- iconBrand: Ga[500],
5031
- iconInfo: Ja[600],
5032
- iconDanger: Za[800],
5033
- iconWarning: Qa[800]
5034
- }, to = {
5035
- ...eo,
5044
+ iconInverse: qa,
5045
+ iconBrand: Ka[500],
5046
+ iconInfo: Ya[600],
5047
+ iconDanger: Qa[800],
5048
+ iconWarning: $a[800]
5049
+ }, no = {
5050
+ ...to,
5036
5051
  bgDefault: "#0B1120",
5037
5052
  bgContainer: "#0F172A",
5038
5053
  bgSubtle: "#121C30",
@@ -5041,16 +5056,16 @@ var Ga = {
5041
5056
  bgSuccessLighter: "rgba(31, 193, 107, 0.15)",
5042
5057
  bgWarningLighter: "rgba(237, 145, 42, 0.15)",
5043
5058
  bgDangerLighter: "rgba(230, 27, 0, 0.15)",
5044
- fgDefault: Ka,
5059
+ fgDefault: qa,
5045
5060
  fgSecondary: $[400],
5046
5061
  fgTertiary: $[500],
5047
5062
  fgDisabled: $[600],
5048
5063
  borderDefault: "rgba(255, 255, 255, 0.05)",
5049
5064
  borderSubtle: "rgba(255, 255, 255, 0.03)",
5050
5065
  borderStrong: "rgba(255, 255, 255, 0.10)",
5051
- iconPrimary: Ka,
5066
+ iconPrimary: qa,
5052
5067
  iconSecondary: $[400]
5053
- }, no = {
5068
+ }, ro = {
5054
5069
  ps: [
5055
5070
  "Noto Sans Armenian",
5056
5071
  "Noto Sans",
@@ -5065,7 +5080,7 @@ var Ga = {
5065
5080
  "system-ui",
5066
5081
  "sans-serif"
5067
5082
  ]
5068
- }, ro = {
5083
+ }, io = {
5069
5084
  xl: {
5070
5085
  fontSize: "64px",
5071
5086
  lineHeight: "72px"
@@ -5090,7 +5105,7 @@ var Ga = {
5090
5105
  fontSize: "24px",
5091
5106
  lineHeight: "32px"
5092
5107
  }
5093
- }, io = {
5108
+ }, ao = {
5094
5109
  lg: {
5095
5110
  fontSize: "20px",
5096
5111
  lineHeight: "28px"
@@ -5111,7 +5126,7 @@ var Ga = {
5111
5126
  fontSize: "10px",
5112
5127
  lineHeight: "14px"
5113
5128
  }
5114
- }, ao = {
5129
+ }, oo = {
5115
5130
  lg: {
5116
5131
  fontSize: "20px",
5117
5132
  lineHeight: "28px"
@@ -5136,19 +5151,19 @@ var Ga = {
5136
5151
  fontSize: "6px",
5137
5152
  lineHeight: "6px"
5138
5153
  }
5139
- }, oo = {
5140
- headline: ro,
5141
- paragraph: io,
5142
- label: ao
5143
5154
  }, so = {
5155
+ headline: io,
5156
+ paragraph: ao,
5157
+ label: oo
5158
+ }, co = {
5144
5159
  sm: "2rem",
5145
5160
  md: "2.5rem",
5146
5161
  lg: "3rem"
5147
- }, co = {
5162
+ }, lo = {
5148
5163
  sm: "0.875rem",
5149
5164
  md: "1rem",
5150
5165
  lg: "1.25rem"
5151
- }, lo = {
5166
+ }, uo = {
5152
5167
  xs: "2px",
5153
5168
  sm: "4px",
5154
5169
  md: "8px",
@@ -5157,7 +5172,7 @@ var Ga = {
5157
5172
  "2xl": "20px",
5158
5173
  "3xl": "24px",
5159
5174
  full: "9999px"
5160
- }, uo = {
5175
+ }, fo = {
5161
5176
  z1: "0 1px 2px 0 rgba(0, 0, 0, 0.06)",
5162
5177
  z2: "0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04)",
5163
5178
  z3: "0 4px 8px 0 rgba(0, 0, 0, 0.08), 0 2px 4px 0 rgba(0, 0, 0, 0.04)",
@@ -5165,6 +5180,6 @@ var Ga = {
5165
5180
  z5: "0 8px 16px 0 rgba(0, 0, 0, 0.12), 0 24px 32px 0 rgba(0, 0, 0, 0.12)"
5166
5181
  };
5167
5182
  //#endregion
5168
- export { Xe as Accordion, Ze as AccordionItem, _t as Avatar, vt as AvatarGroup, Dt as Badge, At as Breadcrumb, nt as Button, Mt as ButtonGroup, Ft as Card, Lt as CardGroup, Bt as Checkbox, qt as Copy, en as Counter, Vi as DataTable, hn as DatePicker, yn as DistributionBar, We as Divider, Dn as Drawer, In as DropdownContent, Ln as DropdownItem, zn as DropdownLabel, Nn as DropdownMenu, Rn as DropdownSeparator, Pn as DropdownTrigger, Xn as Empty, $n as Filter, tr as FormContainer, nr as FormField, Hn as IconTile, rr as InfoField, ar as InlineAlert, Qt as Input, or as Link, cr as Modal, dr as MultiSelect, gr as NotificationBadge, br as Pagination, Cr as PersonCard, Kt as Popover, Or as Progress, Nr as Radio, Ar as RadioGroup, Pr as ReadMore, ei as SelectV2, ri as Sidebar, ii as SidebarItem, ci as Skeleton, pi as SnackbarProvider, _i as Status, ki as StepIndicator, Mi as Switch, Li as TBody, Bi as TD, zi as TH, Ii as THead, Ri as TR, va as Tab, ha as TabList, ya as TabPanel, Fi as Table, ua as TableV2, Hi as TableV2ColumnFilter, qi as TableV2ColumnVisibilityMenu, Wi as TableV2Pagination, Qi as TableV2RowActionsMenu, Gi as TableV2Skeleton, Ji as TableV2Toolbar, ma as Tabs, qn as Text, ba as TextArea, xa as ThemeSwitch, Ta as Tooltip, ka as UnderConstruction, st as Upload, lt as UploadItem, Ja as blue, Ga as brand, Q as cn, $a as colorPrimitives, so as controlHeight, na as createRowActionsColumn, ta as createSelectionColumn, to as darkTheme, no as fontFamily, ra as getPinnedStyles, $ as gray, qa as green, ro as headline, co as iconSize, ao as label, eo as lightTheme, io as paragraph, Xa as pink, Ya as purple, lo as radius, Za as red, uo as shadows, oo as typography, Fa as useEscapeKey, me as useFieldArray, Va as useFormContext, Wa as useFormProps, Ra as useHideBodyScroll, Ba as useIsMobile, Pa as useOnOutsideClick, fi as useSnackbar, ja as useStepper, ot as validateSingleFile, Ka as white, Qa as yellow };
5183
+ export { Xe as Accordion, Ze as AccordionItem, _t as Avatar, vt as AvatarGroup, Dt as Badge, At as Breadcrumb, nt as Button, Mt as ButtonGroup, Ft as Card, Lt as CardGroup, Bt as Checkbox, qt as Copy, en as Counter, Hi as DataTable, hn as DatePicker, yn as DistributionBar, We as Divider, Dn as Drawer, In as DropdownContent, Ln as DropdownItem, zn as DropdownLabel, Nn as DropdownMenu, Rn as DropdownSeparator, Pn as DropdownTrigger, Xn as Empty, $n as Filter, tr as FormContainer, nr as FormField, Hn as IconTile, rr as InfoField, ar as InlineAlert, Qt as Input, or as Link, cr as Modal, dr as MultiSelect, gr as NotificationBadge, br as Pagination, Cr as PersonCard, Kt as Popover, Or as Progress, Nr as Radio, Ar as RadioGroup, Pr as ReadMore, ti as SelectV2, ii as Sidebar, ai as SidebarItem, li as Skeleton, mi as SnackbarProvider, vi as Status, Ai as StepIndicator, Ni as Switch, Ri as TBody, Vi as TD, Bi as TH, Li as THead, zi as TR, ya as Tab, ga as TabList, ba as TabPanel, Ii as Table, da as TableV2, Ui as TableV2ColumnFilter, Ji as TableV2ColumnVisibilityMenu, Gi as TableV2Pagination, $i as TableV2RowActionsMenu, Ki as TableV2Skeleton, Yi as TableV2Toolbar, ha as Tabs, qn as Text, xa as TextArea, Sa as ThemeSwitch, Ea as Tooltip, Aa as UnderConstruction, st as Upload, lt as UploadItem, Ya as blue, Ka as brand, Q 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, me as useFieldArray, Ha as useFormContext, Ga as useFormProps, za as useHideBodyScroll, Va as useIsMobile, Fa as useOnOutsideClick, pi as useSnackbar, Ma as useStepper, ot as validateSingleFile, qa as white, $a as yellow };
5169
5184
 
5170
5185
  //# sourceMappingURL=index.js.map