@dinofront/design_system 1.10.0 → 1.11.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,9 +1,9 @@
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 te, Info as N, Loader2 as P, Menu as F, Minus as I, Moon as L, MoreHorizontal as ne, MoreVertical as R, Paperclip as re, Pencil as z, Pin as ie, PinOff as ae, Plus as oe, RefreshCw as se, Search as B, SearchX as ce, Sparkles as le, Sun as ue, Trash2 as V, UploadCloud as de, User as fe, X as H, XCircle as U } from "lucide-react";
3
- import { clsx as pe } from "clsx";
4
- import { extendTailwindMerge as me } from "tailwind-merge";
5
- import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
6
- import { createPortal as he } from "react-dom";
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 te, Info as N, Loader2 as P, Menu as F, Minus as I, Moon as L, MoreHorizontal as ne, MoreVertical as re, Paperclip as ie, Pencil as R, Pin as ae, PinOff as oe, Plus as se, RefreshCw as ce, Search as z, SearchX as le, Sparkles as ue, Sun as de, Trash2 as B, UploadCloud as fe, User as pe, X as V, XCircle as H } from "lucide-react";
3
+ import { clsx as me } from "clsx";
4
+ import { extendTailwindMerge as he } from "tailwind-merge";
5
+ import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
6
+ import { createPortal as K } from "react-dom";
7
7
  import { Controller as ge, useFieldArray as _e, useForm as ve } from "react-hook-form";
8
8
  import { yupResolver as ye } from "@hookform/resolvers/yup";
9
9
  import be, { components as xe } from "react-select";
@@ -16,7 +16,7 @@ import { DndContext as je, KeyboardSensor as Me, PointerSensor as J, closestCent
16
16
  import { SortableContext as Ie, arrayMove as Le, horizontalListSortingStrategy as Re, sortableKeyboardCoordinates as ze, useSortable as Be } from "@dnd-kit/sortable";
17
17
  import { CSS as Ve } from "@dnd-kit/utilities";
18
18
  //#region src/lib/cn.ts
19
- var He = me({ extend: { theme: { text: [
19
+ var He = he({ extend: { theme: { text: [
20
20
  "h-xl",
21
21
  "h-lg",
22
22
  "h-md",
@@ -36,7 +36,7 @@ var He = me({ extend: { theme: { text: [
36
36
  "label-xxs"
37
37
  ] } } });
38
38
  function Y(...e) {
39
- return He(pe(e));
39
+ return He(me(e));
40
40
  }
41
41
  //#endregion
42
42
  //#region src/components/Divider/Divider.tsx
@@ -52,7 +52,7 @@ var Ue = {
52
52
  strong: "border-border-strong",
53
53
  brand: "border-border-brand"
54
54
  }, Ke = a(function({ orientation: e = "horizontal", variant: t = "solid", color: n = "default", className: r, dataTestId: i, ...a }, o) {
55
- return /* @__PURE__ */ G("div", {
55
+ return /* @__PURE__ */ W("div", {
56
56
  ref: o,
57
57
  role: "separator",
58
58
  "aria-orientation": e,
@@ -60,28 +60,28 @@ var Ue = {
60
60
  className: Y("shrink-0", Ue[e], We[t], Ge[n], r),
61
61
  ...a
62
62
  });
63
- }), qe = (e, t) => e !== void 0 && t !== void 0 && String(e) === String(t), Je = (e, t) => e.some((e) => qe(e, t)), Ye = r(null);
64
- function Xe() {
65
- let e = c(Ye);
63
+ }), X = (e, t) => e !== void 0 && t !== void 0 && String(e) === String(t), qe = (e, t) => e.some((e) => X(e, t)), Je = r(null);
64
+ function Ye() {
65
+ let e = c(Je);
66
66
  if (!e) throw Error("AccordionItem must be used inside <Accordion>");
67
67
  return e;
68
68
  }
69
- function Ze(e) {
69
+ function Xe(e) {
70
70
  return e === void 0 ? [] : Array.isArray(e) ? e : [e];
71
71
  }
72
- var Qe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChange: r, animated: i = !0, showDivider: a = !1, className: o, children: s, dataTestId: c, ...l }, u) {
73
- let [d, f] = m(() => Ze(t)), p = n !== void 0, h = p ? Ze(n) : d;
74
- return /* @__PURE__ */ G(Ye.Provider, {
72
+ var Ze = a(function({ type: e = "single", defaultValue: t, value: n, onValueChange: r, animated: i = !0, showDivider: a = !1, className: o, children: s, dataTestId: c, ...l }, u) {
73
+ let [d, f] = m(() => Xe(t)), p = n !== void 0, h = p ? Xe(n) : d;
74
+ return /* @__PURE__ */ W(Je.Provider, {
75
75
  value: {
76
76
  openValues: h,
77
77
  toggle: (t) => {
78
- let n = Je(h, t), i;
79
- i = e === "single" ? n ? [] : [t] : n ? h.filter((e) => !qe(e, t)) : [...h, t], p || f(i), r?.(e === "single" ? i[0] : i);
78
+ let n = qe(h, t), i;
79
+ i = e === "single" ? n ? [] : [t] : n ? h.filter((e) => !X(e, t)) : [...h, t], p || f(i), r?.(e === "single" ? i[0] : i);
80
80
  },
81
81
  animated: i,
82
82
  showDivider: a
83
83
  },
84
- children: /* @__PURE__ */ G("div", {
84
+ children: /* @__PURE__ */ W("div", {
85
85
  ref: u,
86
86
  "data-test-id": c,
87
87
  className: Y("flex flex-col divide-y divide-border-default border border-border-default rounded-lg overflow-hidden bg-bg-default", o),
@@ -89,15 +89,15 @@ var Qe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
89
89
  children: s
90
90
  })
91
91
  });
92
- }), $e = a(function({ value: e, title: t, icon: n, disabled: r, className: i, children: a, dataTestId: o, ...s }, c) {
93
- let { openValues: l, toggle: d, animated: f, showDivider: p } = Xe(), m = Je(l, e), h = u(), g = u(), _ = /* @__PURE__ */ K(W, { children: [p && /* @__PURE__ */ G(Ke, { className: "mb-4" }), a] });
94
- return /* @__PURE__ */ K("div", {
92
+ }), Qe = a(function({ value: e, title: t, icon: n, disabled: r, className: i, children: a, dataTestId: o, ...s }, c) {
93
+ let { openValues: l, toggle: d, animated: f, showDivider: p } = Ye(), m = qe(l, e), h = u(), g = u(), _ = /* @__PURE__ */ G(U, { children: [p && /* @__PURE__ */ W(Ke, { className: "mb-4" }), a] });
94
+ return /* @__PURE__ */ G("div", {
95
95
  ref: c,
96
96
  "data-test-id": o,
97
97
  "data-state": m ? "open" : "closed",
98
98
  className: Y("group", i),
99
99
  ...s,
100
- children: [/* @__PURE__ */ G("h3", { children: /* @__PURE__ */ K("button", {
100
+ children: [/* @__PURE__ */ W("h3", { children: /* @__PURE__ */ G("button", {
101
101
  id: g,
102
102
  type: "button",
103
103
  onClick: () => d(e),
@@ -105,21 +105,21 @@ var Qe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
105
105
  "aria-expanded": m,
106
106
  "aria-controls": h,
107
107
  className: Y("flex w-full items-center justify-between gap-3 px-5 py-4 text-left", "text-p-md font-medium text-fg-default", "hover:bg-bg-container transition-colors", "focus-visible:outline-none focus-visible:bg-bg-container", "disabled:opacity-50 disabled:cursor-not-allowed"),
108
- children: [/* @__PURE__ */ K("span", {
108
+ children: [/* @__PURE__ */ G("span", {
109
109
  className: "inline-flex items-center gap-3",
110
- children: [n && /* @__PURE__ */ G("span", {
110
+ children: [n && /* @__PURE__ */ W("span", {
111
111
  className: "inline-flex text-fg-secondary",
112
112
  children: n
113
113
  }), t]
114
- }), /* @__PURE__ */ G(S, {
114
+ }), /* @__PURE__ */ W(S, {
115
115
  className: Y("h-5 w-5 shrink-0 text-fg-secondary transition-transform duration-200", m && "rotate-180"),
116
116
  "aria-hidden": !0
117
117
  })]
118
- }) }), f ? /* @__PURE__ */ G("div", {
118
+ }) }), f ? /* @__PURE__ */ W("div", {
119
119
  className: Y("grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none", m ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
120
- children: /* @__PURE__ */ G("div", {
120
+ children: /* @__PURE__ */ W("div", {
121
121
  className: "overflow-hidden min-h-0",
122
- children: /* @__PURE__ */ G("div", {
122
+ children: /* @__PURE__ */ W("div", {
123
123
  id: h,
124
124
  role: "region",
125
125
  "aria-labelledby": g,
@@ -128,7 +128,7 @@ var Qe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
128
128
  children: _
129
129
  })
130
130
  })
131
- }) : /* @__PURE__ */ G("div", {
131
+ }) : /* @__PURE__ */ W("div", {
132
132
  id: h,
133
133
  role: "region",
134
134
  "aria-labelledby": g,
@@ -137,15 +137,15 @@ var Qe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
137
137
  children: _
138
138
  })]
139
139
  });
140
- }), et = {
140
+ }), $e = {
141
141
  lg: "h-12 px-5 text-p-md gap-2 rounded-lg",
142
142
  md: "h-10 px-4 text-p-std gap-2 rounded-lg",
143
143
  sm: "h-8 px-3 text-p-sm gap-1.5 rounded-md"
144
- }, X = {
144
+ }, et = {
145
145
  lg: "h-12 w-12 rounded-lg",
146
146
  md: "h-10 w-10 rounded-lg",
147
147
  sm: "h-8 w-8 rounded-md"
148
- }, tt = {
148
+ }, Z = {
149
149
  primary: [
150
150
  "bg-brand-500 text-white border border-transparent",
151
151
  "hover:bg-brand-600 active:bg-brand-700",
@@ -170,13 +170,13 @@ var Qe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
170
170
  "disabled:bg-bg-subtle disabled:text-fg-disabled disabled:cursor-not-allowed",
171
171
  "focus-visible:ring-2 focus-visible:ring-red-300 focus-visible:ring-offset-2"
172
172
  ].join(" ")
173
- }, nt = {
173
+ }, tt = {
174
174
  primary: "bg-brand-700",
175
175
  secondary: "bg-bg-subtle",
176
176
  tertiary: "bg-bg-subtle",
177
177
  danger: "bg-red-900"
178
- }, Z = a(function({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: i = !1, iconOnly: a = !1, fullWidth: o = !1, pressed: s = !1, disabled: c, className: l, children: u, onClick: d, dataTestId: f, ...p }, m) {
179
- return /* @__PURE__ */ G("button", {
178
+ }, Q = a(function({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: i = !1, iconOnly: a = !1, fullWidth: o = !1, pressed: s = !1, disabled: c, className: l, children: u, onClick: d, dataTestId: f, ...p }, m) {
179
+ return /* @__PURE__ */ W("button", {
180
180
  ref: m,
181
181
  disabled: c || i,
182
182
  "aria-pressed": s,
@@ -188,18 +188,18 @@ var Qe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
188
188
  }
189
189
  d?.(e);
190
190
  },
191
- className: Y("inline-flex items-center justify-center font-medium transition-colors outline-none cursor-pointer", a ? X[t] : et[t], tt[e], s && nt[e], o && "w-full", l),
191
+ className: Y("inline-flex items-center justify-center font-medium transition-colors outline-none cursor-pointer", a ? et[t] : $e[t], Z[e], s && tt[e], o && "w-full", l),
192
192
  ...p,
193
- children: i ? /* @__PURE__ */ G(P, {
193
+ children: i ? /* @__PURE__ */ W(P, {
194
194
  className: "h-4 w-4 animate-spin",
195
195
  "aria-hidden": !0
196
- }) : /* @__PURE__ */ K(W, { children: [
197
- n && /* @__PURE__ */ G("span", {
196
+ }) : /* @__PURE__ */ G(U, { children: [
197
+ n && /* @__PURE__ */ W("span", {
198
198
  className: "inline-flex shrink-0",
199
199
  children: n
200
200
  }),
201
201
  u,
202
- r && /* @__PURE__ */ G("span", {
202
+ r && /* @__PURE__ */ W("span", {
203
203
  className: "inline-flex shrink-0",
204
204
  children: r
205
205
  })
@@ -208,27 +208,27 @@ var Qe = a(function({ type: e = "single", defaultValue: t, value: n, onValueChan
208
208
  });
209
209
  //#endregion
210
210
  //#region src/components/Upload/Upload.tsx
211
- function rt(e, t) {
211
+ function nt(e, t) {
212
212
  let n = t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
213
213
  if (!n.length) return !0;
214
214
  let r = e.name.toLowerCase(), i = e.type.toLowerCase();
215
215
  return n.some((e) => e.endsWith("/*") ? i.startsWith(e.slice(0, -1)) : e.startsWith(".") ? r.endsWith(e) : i === e);
216
216
  }
217
- var it = [
217
+ var rt = [
218
218
  "KB",
219
219
  "MB",
220
220
  "GB"
221
221
  ];
222
- function at(e) {
222
+ function it(e) {
223
223
  if (e < 1024) return `${e} B`;
224
224
  let t = e / 1024, n = 0;
225
- for (; t >= 1024 && n < it.length - 1;) t /= 1024, n += 1;
226
- return `${t.toFixed(1)} ${it[n]}`;
225
+ for (; t >= 1024 && n < rt.length - 1;) t /= 1024, n += 1;
226
+ return `${t.toFixed(1)} ${rt[n]}`;
227
227
  }
228
- function ot(e, { accept: t, maxSizeMB: n }) {
229
- return t && !rt(e, t) ? "type" : n !== void 0 && e.size > n * 1024 * 1024 ? "size" : null;
228
+ function at(e, { accept: t, maxSizeMB: n }) {
229
+ return t && !nt(e, t) ? "type" : n !== void 0 && e.size > n * 1024 * 1024 ? "size" : null;
230
230
  }
231
- var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFiles: i, disabled: a, validateFiles: o = !1, maxFiles: s, dedupe: c = o, currentFiles: l = [], onReject: d, showFileList: f = !1, onRemoveFile: h, mode: g = "dropzone", triggerLabel: _, triggerIcon: v, label: y, required: b, error: x = !1, errorText: S, labelAddons: C, className: w, dataTestId: T, ...E }, D) {
231
+ var ot = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFiles: i, disabled: a, validateFiles: o = !1, maxFiles: s, dedupe: c = o, currentFiles: l = [], onReject: d, showFileList: f = !1, onRemoveFile: h, mode: g = "dropzone", triggerLabel: _, triggerIcon: v, label: y, required: b, error: x = !1, errorText: S, labelAddons: C, className: w, dataTestId: T, ...E }, D) {
232
232
  let O = p(null), [k, A] = m(!1), j = p(0), M = x || !!S, ee = u(), te = S ? `${ee}-error` : void 0, N = (t) => {
233
233
  if (!t.length) return;
234
234
  if (!o) {
@@ -244,7 +244,7 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
244
244
  });
245
245
  continue;
246
246
  }
247
- let t = ot(i, {
247
+ let t = at(i, {
248
248
  accept: e,
249
249
  maxSizeMB: n
250
250
  });
@@ -267,7 +267,7 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
267
267
  r.length && i?.(r), a.length && d?.(a);
268
268
  }, P = (e) => {
269
269
  e.preventDefault(), j.current = 0, A(!1), !a && N(Array.from(e.dataTransfer.files ?? []));
270
- }, F = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, I = /* @__PURE__ */ G("input", {
270
+ }, F = r ?? `${e ? e.toUpperCase().replace(/\./g, "") : "Any file"}${n ? `, up to ${n} MB` : ""}`, I = /* @__PURE__ */ W("input", {
271
271
  ref: O,
272
272
  type: "file",
273
273
  accept: e,
@@ -277,69 +277,69 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
277
277
  N(Array.from(e.target.files ?? [])), e.target.value = "";
278
278
  },
279
279
  className: "sr-only"
280
- }), L = (y || C) && /* @__PURE__ */ K("div", {
280
+ }), L = (y || C) && /* @__PURE__ */ G("div", {
281
281
  className: "flex items-center gap-1.5",
282
- children: [y && /* @__PURE__ */ K("span", {
282
+ children: [y && /* @__PURE__ */ G("span", {
283
283
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
284
- children: [y, b && /* @__PURE__ */ G("span", {
284
+ children: [y, b && /* @__PURE__ */ W("span", {
285
285
  className: "text-red-600",
286
286
  "aria-hidden": !0,
287
287
  children: "*"
288
288
  })]
289
- }), C && /* @__PURE__ */ G("span", {
289
+ }), C && /* @__PURE__ */ W("span", {
290
290
  className: "inline-flex items-center gap-1",
291
291
  children: C
292
292
  })]
293
- }), ne = S ? /* @__PURE__ */ G("p", {
293
+ }), ne = S ? /* @__PURE__ */ W("p", {
294
294
  id: `${ee}-error`,
295
295
  className: "text-p-sm text-red-700",
296
296
  children: S
297
- }) : null, R = f && l.length > 0 && /* @__PURE__ */ G("div", {
297
+ }) : null, re = f && l.length > 0 && /* @__PURE__ */ W("div", {
298
298
  className: "flex flex-col gap-2",
299
- children: l.map((e, t) => /* @__PURE__ */ G(lt, {
299
+ children: l.map((e, t) => /* @__PURE__ */ W(ct, {
300
300
  name: e.name,
301
- meta: at(e.size),
301
+ meta: it(e.size),
302
302
  status: "completed",
303
303
  onRemove: g !== "view" && h ? () => h(e, t) : void 0
304
304
  }, `${t}-${e.name}-${e.size}`))
305
305
  });
306
- if (g === "view") return /* @__PURE__ */ K("div", {
306
+ if (g === "view") return /* @__PURE__ */ G("div", {
307
307
  ref: D,
308
308
  "data-test-id": T,
309
309
  className: Y("flex flex-col gap-1.5", w),
310
310
  ...E,
311
311
  children: [
312
312
  L,
313
- R,
313
+ re,
314
314
  ne
315
315
  ]
316
316
  });
317
317
  if (g !== "dropzone") {
318
318
  let e = g === "icon";
319
- return /* @__PURE__ */ K("div", {
319
+ return /* @__PURE__ */ G("div", {
320
320
  ref: D,
321
321
  "data-test-id": T,
322
322
  className: Y("flex flex-col gap-1.5", w),
323
323
  ...E,
324
324
  children: [
325
325
  L,
326
- /* @__PURE__ */ G(Z, {
326
+ /* @__PURE__ */ W(Q, {
327
327
  type: "button",
328
328
  variant: "secondary",
329
329
  iconOnly: e,
330
330
  disabled: a,
331
331
  onClick: () => O.current?.click(),
332
- leftIcon: e ? void 0 : v ?? /* @__PURE__ */ G(re, { className: "h-4 w-4" }),
332
+ leftIcon: e ? void 0 : v ?? /* @__PURE__ */ W(ie, { className: "h-4 w-4" }),
333
333
  "aria-label": e ? "Upload file" : void 0,
334
- children: e ? v ?? /* @__PURE__ */ G(z, { className: "h-4 w-4" }) : _ ?? "Choose a file"
334
+ children: e ? v ?? /* @__PURE__ */ W(R, { className: "h-4 w-4" }) : _ ?? "Choose a file"
335
335
  }),
336
336
  I,
337
- R,
337
+ re,
338
338
  ne
339
339
  ]
340
340
  });
341
341
  }
342
- let ie = /* @__PURE__ */ K("div", {
342
+ let ae = /* @__PURE__ */ G("div", {
343
343
  ref: D,
344
344
  onDragEnter: () => {
345
345
  j.current += 1, a || A(!0);
@@ -362,19 +362,19 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
362
362
  className: Y("flex flex-col items-center justify-center text-center gap-2 px-6 py-8 rounded-lg border-2 border-dashed cursor-pointer transition-colors outline-none", M ? "border-red-300 bg-bg-danger-lighter" : k ? "border-brand-500 bg-brand-20" : "border-border-default bg-bg-container hover:bg-bg-subtle", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", a && "opacity-50 cursor-not-allowed", w),
363
363
  ...E,
364
364
  children: [
365
- /* @__PURE__ */ G("div", {
365
+ /* @__PURE__ */ W("div", {
366
366
  className: "h-10 w-10 rounded-full bg-bg-default flex items-center justify-center text-fg-secondary shadow-z1",
367
- children: /* @__PURE__ */ G(de, { className: "h-5 w-5" })
367
+ children: /* @__PURE__ */ W(fe, { className: "h-5 w-5" })
368
368
  }),
369
- /* @__PURE__ */ K("div", {
369
+ /* @__PURE__ */ G("div", {
370
370
  className: "flex flex-col gap-0.5",
371
- children: [/* @__PURE__ */ K("p", {
371
+ children: [/* @__PURE__ */ G("p", {
372
372
  className: "text-p-std text-fg-default",
373
- children: [/* @__PURE__ */ G("span", {
373
+ children: [/* @__PURE__ */ W("span", {
374
374
  className: "font-semibold text-brand-700",
375
375
  children: "Choose a file"
376
376
  }), " or drag & drop it here."]
377
- }), /* @__PURE__ */ G("p", {
377
+ }), /* @__PURE__ */ W("p", {
378
378
  className: "text-p-sm text-fg-tertiary",
379
379
  children: F
380
380
  })]
@@ -382,74 +382,74 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
382
382
  I
383
383
  ]
384
384
  });
385
- return !L && !ne && !R ? ie : /* @__PURE__ */ K("div", {
385
+ return !L && !ne && !re ? ae : /* @__PURE__ */ G("div", {
386
386
  className: "flex flex-col gap-1.5",
387
387
  children: [
388
388
  L,
389
- ie,
390
- R,
389
+ ae,
390
+ re,
391
391
  ne
392
392
  ]
393
393
  });
394
- }), ct = {
394
+ }), st = {
395
395
  processing: "border-border-default bg-bg-default",
396
396
  completed: "border-border-default bg-bg-default",
397
397
  error: "border-red-300 bg-bg-danger-lighter"
398
- }, lt = a(function({ name: e, meta: t, status: n = "processing", progress: r = 0, errorText: i, onRetry: a, onRemove: o, onOpen: s, previewSrc: c, className: l, dataTestId: u, ...d }, f) {
398
+ }, ct = a(function({ name: e, meta: t, status: n = "processing", progress: r = 0, errorText: i, onRetry: a, onRemove: o, onOpen: s, previewSrc: c, className: l, dataTestId: u, ...d }, f) {
399
399
  let [p, g] = m(!1), _ = !!c && !p;
400
- return /* @__PURE__ */ K("div", {
400
+ return /* @__PURE__ */ G("div", {
401
401
  ref: f,
402
402
  "data-test-id": u,
403
- className: Y("flex items-start gap-3 px-3 py-2.5 rounded-lg border", ct[n], l),
403
+ className: Y("flex items-start gap-3 px-3 py-2.5 rounded-lg border", st[n], l),
404
404
  ...d,
405
405
  children: [
406
- /* @__PURE__ */ G("div", {
406
+ /* @__PURE__ */ W("div", {
407
407
  className: Y("shrink-0 flex items-center justify-center h-9 w-9 rounded-md overflow-hidden", !_ && (n === "error" ? "bg-red-100 dark:bg-red-900/30 text-red-700" : "bg-bg-subtle text-fg-secondary")),
408
- children: _ ? /* @__PURE__ */ G("img", {
408
+ children: _ ? /* @__PURE__ */ W("img", {
409
409
  src: c,
410
410
  alt: "",
411
411
  className: "h-full w-full object-cover",
412
412
  onError: () => g(!0)
413
- }) : /* @__PURE__ */ G(ee, { className: "h-4 w-4" })
413
+ }) : /* @__PURE__ */ W(ee, { className: "h-4 w-4" })
414
414
  }),
415
- /* @__PURE__ */ K("div", {
415
+ /* @__PURE__ */ G("div", {
416
416
  className: "flex-1 min-w-0",
417
417
  children: [
418
- /* @__PURE__ */ K("div", {
418
+ /* @__PURE__ */ G("div", {
419
419
  className: "flex items-baseline justify-between gap-2",
420
- children: [s ? /* @__PURE__ */ G("button", {
420
+ children: [s ? /* @__PURE__ */ W("button", {
421
421
  type: "button",
422
422
  onClick: s,
423
423
  className: "truncate text-p-std font-medium text-fg-default text-left rounded-sm hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 min-w-0",
424
424
  children: e
425
- }) : /* @__PURE__ */ G("p", {
425
+ }) : /* @__PURE__ */ W("p", {
426
426
  className: "truncate text-p-std font-medium text-fg-default",
427
427
  children: e
428
- }), /* @__PURE__ */ K("div", {
428
+ }), /* @__PURE__ */ G("div", {
429
429
  className: "flex items-center gap-1 shrink-0",
430
- children: [n === "completed" && /* @__PURE__ */ G(x, {
430
+ children: [n === "completed" && /* @__PURE__ */ W(x, {
431
431
  className: "h-4 w-4 text-green-600",
432
432
  "aria-label": "Completed"
433
- }), n === "error" && /* @__PURE__ */ G(h, {
433
+ }), n === "error" && /* @__PURE__ */ W(h, {
434
434
  className: "h-4 w-4 text-red-600",
435
435
  "aria-label": "Failed"
436
436
  })]
437
437
  })]
438
438
  }),
439
- t && /* @__PURE__ */ G("p", {
439
+ t && /* @__PURE__ */ W("p", {
440
440
  className: "text-p-sm text-fg-tertiary mt-0.5",
441
441
  children: t
442
442
  }),
443
- n === "processing" && /* @__PURE__ */ G("div", {
443
+ n === "processing" && /* @__PURE__ */ W("div", {
444
444
  className: "mt-2 h-1 w-full rounded-full bg-bg-subtle overflow-hidden",
445
- children: /* @__PURE__ */ G("div", {
445
+ children: /* @__PURE__ */ W("div", {
446
446
  className: "h-full bg-brand-500 transition-[width] duration-200",
447
447
  style: { width: `${Math.min(100, Math.max(0, r))}%` }
448
448
  })
449
449
  }),
450
- n === "error" && i && /* @__PURE__ */ K("p", {
450
+ n === "error" && i && /* @__PURE__ */ G("p", {
451
451
  className: "text-p-sm text-red-700 mt-1",
452
- children: [i, a && /* @__PURE__ */ G("button", {
452
+ children: [i, a && /* @__PURE__ */ W("button", {
453
453
  type: "button",
454
454
  onClick: a,
455
455
  className: "ml-2 underline font-medium hover:no-underline",
@@ -458,16 +458,16 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
458
458
  })
459
459
  ]
460
460
  }),
461
- o && /* @__PURE__ */ G("button", {
461
+ o && /* @__PURE__ */ W("button", {
462
462
  type: "button",
463
463
  onClick: o,
464
464
  "aria-label": "Remove",
465
465
  className: "shrink-0 p-1 rounded-md text-fg-tertiary hover:text-fg-default hover:bg-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
466
- children: G(n === "completed" ? V : H, { className: "h-4 w-4" })
466
+ children: W(n === "completed" ? B : V, { className: "h-4 w-4" })
467
467
  })
468
468
  ]
469
469
  });
470
- }), ut = {
470
+ }), lt = {
471
471
  "2xs": "h-5 w-5 text-p-xs",
472
472
  xs: "h-6 w-6 text-p-xs",
473
473
  sm: "h-8 w-8 text-p-sm",
@@ -475,7 +475,7 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
475
475
  lg: "h-12 w-12 text-p-md",
476
476
  xl: "h-16 w-16 text-h-xs",
477
477
  "2xl": "h-20 w-20 text-h-xs"
478
- }, dt = {
478
+ }, ut = {
479
479
  "2xs": "h-1 w-1",
480
480
  xs: "h-1.5 w-1.5",
481
481
  sm: "h-2 w-2",
@@ -483,12 +483,12 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
483
483
  lg: "h-3 w-3",
484
484
  xl: "h-3.5 w-3.5",
485
485
  "2xl": "h-4 w-4"
486
- }, ft = {
486
+ }, dt = {
487
487
  online: "bg-green-500",
488
488
  offline: "bg-gray-400 dark:bg-gray-500",
489
489
  away: "bg-yellow-600",
490
490
  busy: "bg-red-600"
491
- }, pt = {
491
+ }, ft = {
492
492
  "2xs": "-ml-1",
493
493
  xs: "-ml-1.5",
494
494
  sm: "-ml-2",
@@ -496,7 +496,7 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
496
496
  lg: "-ml-3",
497
497
  xl: "-ml-4",
498
498
  "2xl": "-ml-5"
499
- }, mt = {
499
+ }, pt = {
500
500
  "2xs": "h-2 w-2",
501
501
  xs: "h-3 w-3",
502
502
  sm: "h-4 w-4",
@@ -505,11 +505,11 @@ var st = a(function({ accept: e, multiple: t = !1, maxSizeMB: n, hint: r, onFile
505
505
  xl: "h-7 w-7",
506
506
  "2xl": "h-8 w-8"
507
507
  };
508
- function ht(e) {
508
+ function mt(e) {
509
509
  let t = e.trim().split(/\s+/);
510
510
  return t.length === 0 ? "" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
511
511
  }
512
- function gt(e) {
512
+ function ht(e) {
513
513
  let t = [
514
514
  "bg-brand-500",
515
515
  "bg-blue-600",
@@ -521,7 +521,7 @@ function gt(e) {
521
521
  for (let t = 0; t < e.length; t++) n = (n << 5) - n + e.charCodeAt(t), n |= 0;
522
522
  return t[Math.abs(n) % t.length];
523
523
  }
524
- var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape: a = "circle", fallback: o, editable: s, onImageChange: c, accept: u, maxSizeMB: d, onReject: f, className: h, dataTestId: g, ..._ }, v) {
524
+ var gt = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape: a = "circle", fallback: o, editable: s, onImageChange: c, accept: u, maxSizeMB: d, onReject: f, className: h, dataTestId: g, ..._ }, v) {
525
525
  let [y, b] = m(!1), [x, S] = m(null), C = p(null), w = p(e), T = p(null);
526
526
  l(() => {
527
527
  if (T.current = x, x) return () => URL.revokeObjectURL(x);
@@ -533,7 +533,7 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
533
533
  let E = (e) => {
534
534
  let t = e?.[0];
535
535
  if (!t) return;
536
- let n = ot(t, {
536
+ let n = at(t, {
537
537
  accept: u,
538
538
  maxSizeMB: d
539
539
  });
@@ -546,35 +546,35 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
546
546
  }
547
547
  let r = URL.createObjectURL(t);
548
548
  T.current = r, S(r), b(!1), c?.(t);
549
- }, D = x ?? e, O = !!D && !y, k = n ? ht(n) : "", A = n ? gt(n) : "bg-gray-300 dark:bg-gray-600";
550
- return /* @__PURE__ */ K("span", {
549
+ }, D = x ?? e, O = !!D && !y, k = n ? mt(n) : "", A = n ? ht(n) : "bg-gray-300 dark:bg-gray-600";
550
+ return /* @__PURE__ */ G("span", {
551
551
  ref: v,
552
552
  "data-test-id": g,
553
553
  className: Y("relative inline-flex shrink-0", h),
554
554
  ..._,
555
555
  children: [
556
- /* @__PURE__ */ G("span", {
557
- className: Y("inline-flex items-center justify-center overflow-hidden font-semibold text-white select-none", ut[r], a === "circle" ? "rounded-full" : "rounded-md", !O && A),
558
- children: O ? /* @__PURE__ */ G("img", {
556
+ /* @__PURE__ */ W("span", {
557
+ className: Y("inline-flex items-center justify-center overflow-hidden font-semibold text-white select-none", lt[r], a === "circle" ? "rounded-full" : "rounded-md", !O && A),
558
+ children: O ? /* @__PURE__ */ W("img", {
559
559
  src: D,
560
560
  alt: t ?? n ?? "",
561
561
  onError: () => b(!0),
562
562
  className: "h-full w-full object-cover"
563
- }) : n ? k : o ?? /* @__PURE__ */ G(fe, { className: "h-1/2 w-1/2 text-white/90" })
563
+ }) : n ? k : o ?? /* @__PURE__ */ W(pe, { className: "h-1/2 w-1/2 text-white/90" })
564
564
  }),
565
- i && /* @__PURE__ */ G("span", {
565
+ i && /* @__PURE__ */ W("span", {
566
566
  "aria-label": i,
567
- className: Y("absolute bottom-0 rounded-full ring-2 ring-white", s ? "left-0" : "right-0", dt[r], ft[i])
567
+ className: Y("absolute bottom-0 rounded-full ring-2 ring-white", s ? "left-0" : "right-0", ut[r], dt[i])
568
568
  }),
569
- s && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("button", {
569
+ s && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("button", {
570
570
  type: "button",
571
571
  onClick: (e) => {
572
572
  e.stopPropagation(), C.current?.click();
573
573
  },
574
574
  "aria-label": "Change avatar image",
575
- className: Y("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__ */ G(z, { className: "h-1/2 w-1/2" })
577
- }), /* @__PURE__ */ G("input", {
575
+ className: Y("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", pt[r]),
576
+ children: /* @__PURE__ */ W(R, { className: "h-1/2 w-1/2" })
577
+ }), /* @__PURE__ */ W("input", {
578
578
  ref: C,
579
579
  type: "file",
580
580
  accept: u,
@@ -586,46 +586,46 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
586
586
  })] })
587
587
  ]
588
588
  });
589
- }), vt = a(function({ size: e = "md", max: t, children: n, className: r, dataTestId: i, ...a }, o) {
589
+ }), _t = a(function({ size: e = "md", max: t, children: n, className: r, dataTestId: i, ...a }, o) {
590
590
  let s = Array.isArray(n) ? n : [n], c = t === void 0 ? s : s.slice(0, t), l = t === void 0 ? 0 : s.length - t;
591
- return /* @__PURE__ */ K("div", {
591
+ return /* @__PURE__ */ G("div", {
592
592
  ref: o,
593
593
  "data-test-id": i,
594
594
  className: Y("inline-flex items-center", r),
595
595
  ...a,
596
- children: [c.map((t, n) => /* @__PURE__ */ G("div", {
597
- className: Y("rounded-full ring-2 ring-white", n > 0 && pt[e]),
596
+ children: [c.map((t, n) => /* @__PURE__ */ W("div", {
597
+ className: Y("rounded-full ring-2 ring-white", n > 0 && ft[e]),
598
598
  style: { zIndex: c.length - n },
599
599
  children: t
600
- }, n)), l > 0 && /* @__PURE__ */ G("div", {
601
- className: Y("rounded-full ring-2 ring-white", pt[e]),
602
- children: /* @__PURE__ */ G(_t, {
600
+ }, n)), l > 0 && /* @__PURE__ */ W("div", {
601
+ className: Y("rounded-full ring-2 ring-white", ft[e]),
602
+ children: /* @__PURE__ */ W(gt, {
603
603
  size: e,
604
604
  name: `+${l}`
605
605
  })
606
606
  })]
607
607
  });
608
- }), yt = {
608
+ }), vt = {
609
609
  lg: "h-7 px-2.5 text-p-std gap-1.5",
610
610
  md: "h-6 px-2 text-p-sm gap-1",
611
611
  sm: "h-5 px-1.5 text-p-sm gap-1",
612
612
  xs: "h-4 px-1 text-p-xs gap-0.5"
613
- }, bt = {
613
+ }, yt = {
614
614
  lg: "rounded-md",
615
615
  md: "rounded-md",
616
616
  sm: "rounded",
617
617
  xs: "rounded"
618
- }, xt = {
618
+ }, bt = {
619
619
  lg: "size-2.5",
620
620
  md: "size-2",
621
621
  sm: "size-1.5",
622
622
  xs: "size-1"
623
- }, St = {
623
+ }, xt = {
624
624
  lg: "min-w-7 px-0 justify-center",
625
625
  md: "min-w-6 px-0 justify-center",
626
626
  sm: "min-w-5 px-0 justify-center",
627
627
  xs: "min-w-4 px-0 justify-center"
628
- }, Ct = {
628
+ }, St = {
629
629
  neutral: "bg-bg-subtle text-fg-default border border-border-default",
630
630
  brand: "bg-brand-20 text-brand-800 border border-brand-100",
631
631
  success: "bg-green-50 text-green-800 border border-green-100",
@@ -633,7 +633,7 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
633
633
  danger: "bg-red-50 text-red-800 border border-red-100",
634
634
  info: "bg-blue-50 text-blue-800 border border-blue-100",
635
635
  privacy: "bg-purple-50 text-purple-800 border border-purple-100"
636
- }, wt = {
636
+ }, Ct = {
637
637
  neutral: "bg-transparent text-fg-default border border-border-strong",
638
638
  brand: "bg-transparent text-brand-700 border border-brand-500",
639
639
  success: "bg-transparent text-green-700 border border-green-500",
@@ -641,7 +641,7 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
641
641
  danger: "bg-transparent text-red-700 border border-red-500",
642
642
  info: "bg-transparent text-blue-700 border border-blue-500",
643
643
  privacy: "bg-transparent text-purple-700 border border-purple-500"
644
- }, Tt = {
644
+ }, wt = {
645
645
  neutral: "bg-fg-default text-bg-default",
646
646
  brand: "bg-brand-500 text-white",
647
647
  success: "bg-green-600 text-white",
@@ -649,22 +649,22 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
649
649
  danger: "bg-red-700 text-white",
650
650
  info: "bg-blue-600 text-white",
651
651
  privacy: "bg-purple-500 text-white"
652
- }, Et = {
652
+ }, Tt = {
653
653
  filled: "hover:brightness-95 active:brightness-90",
654
654
  outline: "hover:bg-bg-subtle active:bg-bg-container",
655
655
  accent: "hover:brightness-90 active:brightness-80"
656
- }, Dt = a(function({ variant: e = "neutral", appearance: t = "filled", size: n = "md", shape: r = "rounded", leftIcon: i, rightIcon: a, onDismiss: o, dot: s = !1, withDot: c = !1, disabled: l = !1, interactive: u = !1, className: d, children: f, dataTestId: p, onClick: m, onKeyDown: h, ...g }, _) {
657
- let v = t === "filled" ? Ct[e] : t === "outline" ? wt[e] : Tt[e];
658
- if (s) return /* @__PURE__ */ G("span", {
656
+ }, Et = a(function({ variant: e = "neutral", appearance: t = "filled", size: n = "md", shape: r = "rounded", leftIcon: i, rightIcon: a, onDismiss: o, dot: s = !1, withDot: c = !1, disabled: l = !1, interactive: u = !1, className: d, children: f, dataTestId: p, onClick: m, onKeyDown: h, ...g }, _) {
657
+ let v = t === "filled" ? St[e] : t === "outline" ? Ct[e] : wt[e];
658
+ if (s) return /* @__PURE__ */ W("span", {
659
659
  ref: _,
660
660
  "data-test-id": p,
661
661
  "aria-hidden": !g["aria-label"] || void 0,
662
662
  onClick: l ? void 0 : m,
663
- className: Y("inline-block shrink-0 rounded-full", xt[n], Tt[e], l && "opacity-50", d),
663
+ className: Y("inline-block shrink-0 rounded-full", bt[n], wt[e], l && "opacity-50", d),
664
664
  ...g
665
665
  });
666
- let y = f == null && !c && !!(i || a), b = r === "pill" ? "rounded-full" : bt[n];
667
- return /* @__PURE__ */ K("span", {
666
+ let y = f == null && !c && !!(i || a), b = r === "pill" ? "rounded-full" : yt[n];
667
+ return /* @__PURE__ */ G("span", {
668
668
  ref: _,
669
669
  "data-test-id": p,
670
670
  role: u ? "button" : void 0,
@@ -674,159 +674,159 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
674
674
  onKeyDown: u ? (e) => {
675
675
  h?.(e), !(l || !m) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), m(e));
676
676
  } : h,
677
- className: Y("inline-flex items-center font-medium whitespace-nowrap select-none", yt[n], b, v, y && St[n], u && !l && Y("cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", Et[t]), l && "opacity-50 cursor-not-allowed pointer-events-none", d),
677
+ className: Y("inline-flex items-center font-medium whitespace-nowrap select-none", vt[n], b, v, y && xt[n], u && !l && Y("cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", Tt[t]), l && "opacity-50 cursor-not-allowed pointer-events-none", d),
678
678
  ...g,
679
679
  children: [
680
- c ? /* @__PURE__ */ G("span", {
681
- className: Y("inline-block shrink-0 rounded-full", xt[n], Tt[e]),
680
+ c ? /* @__PURE__ */ W("span", {
681
+ className: Y("inline-block shrink-0 rounded-full", bt[n], wt[e]),
682
682
  "aria-hidden": !0
683
- }) : i && /* @__PURE__ */ G("span", {
683
+ }) : i && /* @__PURE__ */ W("span", {
684
684
  className: "inline-flex shrink-0",
685
685
  children: i
686
686
  }),
687
687
  f,
688
- a && !o && /* @__PURE__ */ G("span", {
688
+ a && !o && /* @__PURE__ */ W("span", {
689
689
  className: "inline-flex shrink-0",
690
690
  children: a
691
691
  }),
692
- o && /* @__PURE__ */ G("button", {
692
+ o && /* @__PURE__ */ W("button", {
693
693
  type: "button",
694
694
  onClick: o,
695
695
  disabled: l,
696
696
  "aria-label": "Dismiss",
697
697
  className: "inline-flex shrink-0 -mr-0.5 rounded-full p-0.5 hover:bg-black/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
698
- children: /* @__PURE__ */ G(H, { className: "h-3 w-3" })
698
+ children: /* @__PURE__ */ W(V, { className: "h-3 w-3" })
699
699
  })
700
700
  ]
701
701
  });
702
- }), Ot = {
702
+ }), Dt = {
703
703
  md: "text-p-sm",
704
704
  sm: "text-p-xs"
705
- }, kt = "rounded-sm text-fg-tertiary transition-colors hover:text-fg-secondary outline-none focus-visible:ring-2 focus-visible:ring-brand-300", At = a(function({ items: e, currentValue: n, onSelect: r, separator: i = "/", size: a = "md", className: o, dataTestId: s, ...c }, l) {
705
+ }, Ot = "rounded-sm text-fg-tertiary transition-colors hover:text-fg-secondary outline-none focus-visible:ring-2 focus-visible:ring-brand-300", kt = a(function({ items: e, currentValue: n, onSelect: r, separator: i = "/", size: a = "md", className: o, dataTestId: s, ...c }, l) {
706
706
  let u = n ?? e[e.length - 1]?.value;
707
- return /* @__PURE__ */ G("nav", {
707
+ return /* @__PURE__ */ W("nav", {
708
708
  ref: l,
709
709
  "aria-label": "Breadcrumb",
710
710
  "data-test-id": s,
711
- className: Y(Ot[a], o),
711
+ className: Y(Dt[a], o),
712
712
  ...c,
713
- children: /* @__PURE__ */ G("ol", {
713
+ children: /* @__PURE__ */ W("ol", {
714
714
  className: "flex items-center",
715
715
  children: e.map((e, n) => {
716
716
  let a = e.value === u;
717
- return /* @__PURE__ */ K(t, { children: [n > 0 && /* @__PURE__ */ G("li", {
717
+ return /* @__PURE__ */ G(t, { children: [n > 0 && /* @__PURE__ */ W("li", {
718
718
  "aria-hidden": "true",
719
719
  className: "px-1.5 text-fg-tertiary",
720
720
  children: i
721
- }), /* @__PURE__ */ G("li", {
721
+ }), /* @__PURE__ */ W("li", {
722
722
  className: "flex items-center",
723
- children: a ? /* @__PURE__ */ G("span", {
723
+ children: a ? /* @__PURE__ */ W("span", {
724
724
  "aria-current": "page",
725
725
  className: "font-medium text-fg-default",
726
726
  children: e.label
727
- }) : e.disabled ? /* @__PURE__ */ G("span", {
727
+ }) : e.disabled ? /* @__PURE__ */ W("span", {
728
728
  className: "cursor-not-allowed text-fg-disabled",
729
729
  children: e.label
730
- }) : e.href ? /* @__PURE__ */ G("a", {
730
+ }) : e.href ? /* @__PURE__ */ W("a", {
731
731
  href: e.href,
732
732
  onClick: () => r?.(e.value),
733
- className: kt,
733
+ className: Ot,
734
734
  children: e.label
735
- }) : /* @__PURE__ */ G("button", {
735
+ }) : /* @__PURE__ */ W("button", {
736
736
  type: "button",
737
737
  onClick: () => r?.(e.value),
738
- className: kt,
738
+ className: Ot,
739
739
  children: e.label
740
740
  })
741
741
  })] }, e.value);
742
742
  })
743
743
  })
744
744
  });
745
- }), jt = {
745
+ }), At = {
746
746
  horizontal: "flex-row [&>*]:rounded-none [&>*:first-child]:rounded-l-lg [&>*:last-child]:rounded-r-lg [&>*:not(:first-child)]:-ml-px",
747
747
  vertical: "flex-col [&>*]:rounded-none [&>*:first-child]:rounded-t-lg [&>*:last-child]:rounded-b-lg [&>*:not(:first-child)]:-mt-px"
748
- }, Mt = a(function({ orientation: e = "horizontal", className: t, children: n, dataTestId: r, ...i }, a) {
749
- return /* @__PURE__ */ G("div", {
748
+ }, jt = a(function({ orientation: e = "horizontal", className: t, children: n, dataTestId: r, ...i }, a) {
749
+ return /* @__PURE__ */ W("div", {
750
750
  ref: a,
751
751
  role: "group",
752
752
  "data-test-id": r,
753
- className: Y("inline-flex isolate", jt[e], "[&>*]:relative [&>*:hover]:z-10 [&>*:focus-visible]:z-10", t),
753
+ className: Y("inline-flex isolate", At[e], "[&>*]:relative [&>*:hover]:z-10 [&>*:focus-visible]:z-10", t),
754
754
  ...i,
755
755
  children: n
756
756
  });
757
- }), Nt = {
757
+ }), Mt = {
758
758
  elevated: "bg-bg-default border border-border-default shadow-z1",
759
759
  outlined: "bg-bg-default border border-border-default",
760
760
  filled: "bg-bg-container border border-transparent"
761
- }, Pt = {
761
+ }, Nt = {
762
762
  none: "p-0",
763
763
  sm: "p-4",
764
764
  md: "p-5",
765
765
  lg: "p-6"
766
- }, Ft = a(function({ variant: e = "outlined", padding: t = "md", header: n, footer: r, interactive: i = !1, className: a, children: o, dataTestId: s, ...c }, l) {
766
+ }, Pt = a(function({ variant: e = "outlined", padding: t = "md", header: n, footer: r, interactive: i = !1, className: a, children: o, dataTestId: s, ...c }, l) {
767
767
  let u = n || r;
768
- return /* @__PURE__ */ K("div", {
768
+ return /* @__PURE__ */ G("div", {
769
769
  ref: l,
770
770
  "data-test-id": s,
771
- className: Y("rounded-xl overflow-hidden", Nt[e], i && "transition-all hover:border-brand-500 hover:shadow-z2", !u && Pt[t], a),
771
+ className: Y("rounded-xl overflow-hidden", Mt[e], i && "transition-all hover:border-brand-500 hover:shadow-z2", !u && Nt[t], a),
772
772
  ...c,
773
773
  children: [
774
- n && /* @__PURE__ */ G("div", {
775
- className: Y("border-b border-border-subtle", Pt[t]),
774
+ n && /* @__PURE__ */ W("div", {
775
+ className: Y("border-b border-border-subtle", Nt[t]),
776
776
  children: n
777
777
  }),
778
- u ? /* @__PURE__ */ G("div", {
779
- className: Pt[t],
778
+ u ? /* @__PURE__ */ W("div", {
779
+ className: Nt[t],
780
780
  children: o
781
781
  }) : o,
782
- r && /* @__PURE__ */ G("div", {
783
- className: Y("border-t border-border-subtle", Pt[t]),
782
+ r && /* @__PURE__ */ W("div", {
783
+ className: Y("border-t border-border-subtle", Nt[t]),
784
784
  children: r
785
785
  })
786
786
  ]
787
787
  });
788
- }), It = {
788
+ }), Ft = {
789
789
  brand: "bg-bg-brand-lighter text-brand-800",
790
790
  blue: "bg-bg-info-lighter text-blue-800",
791
791
  purple: "bg-purple-50 text-purple-800 dark:bg-purple-900/30 dark:text-purple-200",
792
792
  pink: "bg-pink-50 text-pink-800 dark:bg-pink-900/30 dark:text-pink-200",
793
793
  yellow: "bg-bg-warning-lighter text-yellow-900",
794
794
  gray: "bg-bg-subtle text-fg-secondary"
795
- }, Lt = a(function({ title: e, header: t, children: n, noDivider: r = !1, className: i, dataTestId: a, ...o }, s) {
796
- let c = e?.placement ?? "left", l = !!e && c !== "top", u = e && /* @__PURE__ */ G("div", {
797
- className: Y("flex shrink-0 items-center justify-center text-center text-label-md font-bold", l ? Y("px-2 [writing-mode:vertical-rl]", c === "left" && "rotate-180") : "px-4 py-2", It[e.color ?? "gray"]),
795
+ }, It = a(function({ title: e, header: t, children: n, noDivider: r = !1, className: i, dataTestId: a, ...o }, s) {
796
+ let c = e?.placement ?? "left", l = !!e && c !== "top", u = e && /* @__PURE__ */ W("div", {
797
+ className: Y("flex shrink-0 items-center justify-center text-center text-label-md font-bold", l ? Y("px-2 [writing-mode:vertical-rl]", c === "left" && "rotate-180") : "px-4 py-2", Ft[e.color ?? "gray"]),
798
798
  children: e.text
799
799
  });
800
- return /* @__PURE__ */ G(Ft, {
800
+ return /* @__PURE__ */ W(Pt, {
801
801
  ref: s,
802
802
  dataTestId: a,
803
803
  variant: "outlined",
804
804
  padding: "none",
805
805
  className: i,
806
806
  ...o,
807
- children: /* @__PURE__ */ K("div", {
807
+ children: /* @__PURE__ */ G("div", {
808
808
  className: Y("flex", l ? c === "right" ? "flex-row-reverse" : "flex-row" : "flex-col"),
809
- children: [u, /* @__PURE__ */ K("div", {
809
+ children: [u, /* @__PURE__ */ G("div", {
810
810
  className: Y("min-w-0 flex-1", !r && "[&>*:not(:last-child)]:border-b [&>*:not(:last-child)]:border-border-default"),
811
811
  children: [t, n]
812
812
  })]
813
813
  })
814
814
  });
815
- }), Rt = {
815
+ }), Lt = {
816
816
  md: "h-5 w-5 rounded-sm",
817
817
  sm: "h-4 w-4 rounded-sm"
818
- }, zt = {
818
+ }, Rt = {
819
819
  md: "h-3.5 w-3.5",
820
820
  sm: "h-3 w-3"
821
- }, Bt = a(function({ size: e = "md", label: t, description: n, errorText: r, required: i, indeterminate: a = !1, error: o = !1, id: s, disabled: c, checked: l, defaultChecked: d, className: f, dataTestId: p, ...m }, h) {
821
+ }, zt = a(function({ size: e = "md", label: t, description: n, errorText: r, required: i, indeterminate: a = !1, error: o = !1, id: s, disabled: c, checked: l, defaultChecked: d, className: f, dataTestId: p, ...m }, h) {
822
822
  let g = u(), _ = s ?? g, v = o || !!r, y = r ? `${_}-error` : void 0;
823
- return /* @__PURE__ */ K("label", {
823
+ return /* @__PURE__ */ G("label", {
824
824
  htmlFor: _,
825
825
  "data-test-id": p,
826
826
  className: Y("inline-flex items-center gap-2.5 group/checkbox", c ? "cursor-not-allowed opacity-60" : "cursor-pointer", f),
827
- children: [/* @__PURE__ */ K("span", {
827
+ children: [/* @__PURE__ */ G("span", {
828
828
  className: "relative inline-flex shrink-0 items-center justify-center mt-0.5",
829
- children: [/* @__PURE__ */ G("input", {
829
+ children: [/* @__PURE__ */ W("input", {
830
830
  ref: h,
831
831
  id: _,
832
832
  type: "checkbox",
@@ -840,28 +840,28 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
840
840
  "aria-describedby": y,
841
841
  "aria-checked": a ? "mixed" : void 0,
842
842
  ...m
843
- }), /* @__PURE__ */ G("span", {
844
- className: Y("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"),
845
- children: G(a ? I : b, {
846
- className: Y(zt[e], "text-white"),
843
+ }), /* @__PURE__ */ W("span", {
844
+ className: Y("flex items-center justify-center border transition-colors", Lt[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"),
845
+ children: W(a ? I : b, {
846
+ className: Y(Rt[e], "text-white"),
847
847
  strokeWidth: 3,
848
848
  "aria-hidden": !0
849
849
  })
850
850
  })]
851
- }), (t || n || r) && /* @__PURE__ */ K("span", {
851
+ }), (t || n || r) && /* @__PURE__ */ G("span", {
852
852
  className: "flex flex-col gap-0.5",
853
- children: [t && /* @__PURE__ */ K("span", {
853
+ children: [t && /* @__PURE__ */ G("span", {
854
854
  className: "text-p-std font-medium text-fg-default leading-tight inline-flex items-center gap-1",
855
- children: [t, i && /* @__PURE__ */ G("span", {
855
+ children: [t, i && /* @__PURE__ */ W("span", {
856
856
  className: "text-red-600",
857
857
  "aria-hidden": !0,
858
858
  children: "*"
859
859
  })]
860
- }), r ? /* @__PURE__ */ G("span", {
860
+ }), r ? /* @__PURE__ */ W("span", {
861
861
  id: `${_}-error`,
862
862
  className: "text-p-sm text-red-700 leading-snug",
863
863
  children: r
864
- }) : n && /* @__PURE__ */ G("span", {
864
+ }) : n && /* @__PURE__ */ W("span", {
865
865
  className: "text-p-sm text-fg-secondary leading-snug",
866
866
  children: n
867
867
  })]
@@ -870,15 +870,15 @@ var _t = a(function({ src: e, alt: t, name: n, size: r = "md", status: i, shape:
870
870
  });
871
871
  //#endregion
872
872
  //#region src/lib/mergeRefs.ts
873
- function Vt(...e) {
873
+ function Bt(...e) {
874
874
  return (t) => {
875
875
  for (let n of e) n && (typeof n == "function" ? n(t) : n.current = t);
876
876
  };
877
877
  }
878
878
  //#endregion
879
879
  //#region src/lib/useFloatingPosition.ts
880
- var Ht = 8, Ut = 10;
881
- function Wt({ anchor: e, panel: t, open: n, side: r = "top", align: i = "center", offset: a = 8, flip: o = !0, shift: s = !0 }) {
880
+ var Vt = 8, Ht = 10;
881
+ function Ut({ anchor: e, panel: t, open: n, side: r = "top", align: i = "center", offset: a = 8, flip: o = !0, shift: s = !0 }) {
882
882
  let [c, l] = m({
883
883
  style: {
884
884
  position: "fixed",
@@ -903,18 +903,18 @@ function Wt({ anchor: e, panel: t, open: n, side: r = "top", align: i = "center"
903
903
  r === "left" && e < u.width + a && t > e ? m = "right" : r === "right" && t < u.width + a && e > t && (m = "left");
904
904
  }
905
905
  let h = m === "top" || m === "bottom", g, _;
906
- h ? (g = m === "bottom" ? c.bottom + a : c.top - u.height - a, _ = i === "start" ? c.left : i === "end" ? c.right - u.width : c.left + c.width / 2 - u.width / 2) : (_ = m === "right" ? c.right + a : c.left - u.width - a, g = i === "start" ? c.top : i === "end" ? c.bottom - u.height : c.top + c.height / 2 - u.height / 2), s && (h ? _ = Math.min(Math.max(_, Ht), d - u.width - Ht) : g = Math.min(Math.max(g, Ht), f - u.height - Ht));
906
+ h ? (g = m === "bottom" ? c.bottom + a : c.top - u.height - a, _ = i === "start" ? c.left : i === "end" ? c.right - u.width : c.left + c.width / 2 - u.width / 2) : (_ = m === "right" ? c.right + a : c.left - u.width - a, g = i === "start" ? c.top : i === "end" ? c.bottom - u.height : c.top + c.height / 2 - u.height / 2), s && (h ? _ = Math.min(Math.max(_, Vt), d - u.width - Vt) : g = Math.min(Math.max(g, Vt), f - u.height - Vt));
907
907
  let v;
908
908
  if (h) {
909
909
  let e = c.left + c.width / 2;
910
910
  v = {
911
- left: Math.min(Math.max(e - _, Ut), u.width - Ut),
911
+ left: Math.min(Math.max(e - _, Ht), u.width - Ht),
912
912
  [m === "bottom" ? "top" : "bottom"]: -8 / 2
913
913
  };
914
914
  } else {
915
915
  let e = c.top + c.height / 2;
916
916
  v = {
917
- top: Math.min(Math.max(e - g, Ut), u.height - Ut),
917
+ top: Math.min(Math.max(e - g, Ht), u.height - Ht),
918
918
  [m === "right" ? "left" : "right"]: -8 / 2
919
919
  };
920
920
  }
@@ -947,16 +947,16 @@ function Wt({ anchor: e, panel: t, open: n, side: r = "top", align: i = "center"
947
947
  }
948
948
  //#endregion
949
949
  //#region src/components/Popover/Popover.tsx
950
- var Gt = {
950
+ var Wt = {
951
951
  bottom: "border-l border-t",
952
952
  top: "border-b border-r",
953
953
  left: "border-t border-r",
954
954
  right: "border-b border-l"
955
955
  };
956
- function Kt({ content: e, children: t, side: r = "top", align: i = "center", offset: a = 8, open: s, defaultOpen: c = !1, onOpenChange: d, flip: f = !0, showArrow: h = !0, closeOnScroll: g = !0, autoFocus: _ = !1, container: v, className: y, dataTestId: b }) {
956
+ function Gt({ content: e, children: t, side: r = "top", align: i = "center", offset: a = 8, open: s, defaultOpen: c = !1, onOpenChange: d, flip: f = !0, showArrow: h = !0, closeOnScroll: g = !0, autoFocus: _ = !1, container: v, className: y, dataTestId: b }) {
957
957
  let [x, S] = m(c), C = s !== void 0, w = C ? s : x, T = p(null), [E, D] = m(null), O = u(), k = (e) => {
958
958
  C || S(e), d?.(e);
959
- }, { style: A, arrowStyle: j, resolvedSide: M } = Wt({
959
+ }, { style: A, arrowStyle: j, resolvedSide: M } = Ut({
960
960
  anchor: T,
961
961
  panel: E,
962
962
  open: w,
@@ -993,15 +993,15 @@ function Kt({ content: e, children: t, side: r = "top", align: i = "center", off
993
993
  E
994
994
  ]), !o(t)) return t;
995
995
  let ee = t.props ?? {}, te = t.ref, N = n(t, {
996
- ref: Vt(T, te),
996
+ ref: Bt(T, te),
997
997
  onClick: (e) => {
998
998
  ee.onClick?.(e), e.defaultPrevented || k(!w);
999
999
  },
1000
1000
  "aria-haspopup": "dialog",
1001
1001
  "aria-expanded": w
1002
1002
  }), P = v ?? (typeof document < "u" ? document.body : null);
1003
- return /* @__PURE__ */ K(W, { children: [N, w && P && he(/* @__PURE__ */ K("div", {
1004
- ref: Vt(D),
1003
+ return /* @__PURE__ */ G(U, { children: [N, w && P && K(/* @__PURE__ */ G("div", {
1004
+ ref: Bt(D),
1005
1005
  id: O,
1006
1006
  role: "dialog",
1007
1007
  "aria-label": typeof e == "string" ? e : void 0,
@@ -1010,25 +1010,25 @@ function Kt({ content: e, children: t, side: r = "top", align: i = "center", off
1010
1010
  "data-test-id": b,
1011
1011
  style: A,
1012
1012
  className: Y("fixed z-50 max-w-60 max-h-54 overflow-auto rounded-lg border border-border-default bg-bg-default p-3 text-fg-default shadow-z4", y),
1013
- children: [e, h && /* @__PURE__ */ G("span", {
1013
+ children: [e, h && /* @__PURE__ */ W("span", {
1014
1014
  "aria-hidden": !0,
1015
1015
  style: j,
1016
- className: Y("absolute size-2 rotate-45 bg-bg-default", Gt[M])
1016
+ className: Y("absolute size-2 rotate-45 bg-bg-default", Wt[M])
1017
1017
  })]
1018
1018
  }), P)] });
1019
1019
  }
1020
1020
  //#endregion
1021
1021
  //#region src/components/Copy/Copy.tsx
1022
- var qt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to clipboard", timeout: r = 1500, icon: i, onCopy: a, onError: o, disabled: s, dataTestId: c, ...u }, d) {
1022
+ var Kt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to clipboard", timeout: r = 1500, icon: i, onCopy: a, onError: o, disabled: s, dataTestId: c, ...u }, d) {
1023
1023
  let [f, h] = m(!1), g = p(null), _ = typeof navigator < "u" && typeof navigator.clipboard?.writeText == "function";
1024
1024
  return l(() => () => {
1025
1025
  g.current && clearTimeout(g.current);
1026
- }, []), /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(Kt, {
1026
+ }, []), /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(Gt, {
1027
1027
  open: f,
1028
1028
  content: t,
1029
1029
  side: "top",
1030
1030
  align: "center",
1031
- children: /* @__PURE__ */ G(Z, {
1031
+ children: /* @__PURE__ */ W(Q, {
1032
1032
  ref: d,
1033
1033
  type: "button",
1034
1034
  variant: "tertiary",
@@ -1043,101 +1043,101 @@ var qt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1043
1043
  "aria-label": n,
1044
1044
  dataTestId: c,
1045
1045
  ...u,
1046
- children: f ? /* @__PURE__ */ G(b, { className: "size-4" }) : i ?? /* @__PURE__ */ G(A, { className: "size-4" })
1046
+ children: f ? /* @__PURE__ */ W(b, { className: "size-4" }) : i ?? /* @__PURE__ */ W(A, { className: "size-4" })
1047
1047
  })
1048
- }), /* @__PURE__ */ G("span", {
1048
+ }), /* @__PURE__ */ W("span", {
1049
1049
  role: "status",
1050
1050
  "aria-live": "polite",
1051
1051
  className: "sr-only",
1052
1052
  children: f ? t : ""
1053
1053
  })] });
1054
- }), Jt = {
1054
+ }), qt = {
1055
1055
  lg: "h-12 text-p-md",
1056
1056
  md: "h-10 text-p-std",
1057
1057
  sm: "h-8 text-p-sm"
1058
- }, Yt = {
1058
+ }, Jt = {
1059
1059
  lg: "pl-10",
1060
1060
  md: "pl-9",
1061
1061
  sm: "pl-8"
1062
- }, Xt = {
1062
+ }, Yt = {
1063
1063
  lg: "pr-10",
1064
1064
  md: "pr-9",
1065
1065
  sm: "pr-8"
1066
- }, Zt = {
1066
+ }, Xt = {
1067
1067
  lg: "w-10",
1068
1068
  md: "w-9",
1069
1069
  sm: "w-8"
1070
- }, Qt = a(function({ label: e, labelAddons: t, helperText: n, errorText: r, size: i = "md", leftIcon: a, rightIcon: o, leftAddon: s, rightAddon: c, error: l = !1, id: d, disabled: f, className: p, wrapperClassName: m, required: g, dataTestId: _, ...v }, y) {
1070
+ }, Zt = a(function({ label: e, labelAddons: t, helperText: n, errorText: r, size: i = "md", leftIcon: a, rightIcon: o, leftAddon: s, rightAddon: c, error: l = !1, id: d, disabled: f, className: p, wrapperClassName: m, required: g, dataTestId: _, ...v }, y) {
1071
1071
  let b = u(), x = d ?? b, S = r ? `${x}-error` : n ? `${x}-help` : void 0, C = l || !!r;
1072
- return /* @__PURE__ */ K("div", {
1072
+ return /* @__PURE__ */ G("div", {
1073
1073
  className: Y("flex flex-col gap-1.5 w-full", m),
1074
1074
  "data-test-id": _,
1075
1075
  children: [
1076
- (e || t) && /* @__PURE__ */ K("div", {
1076
+ (e || t) && /* @__PURE__ */ G("div", {
1077
1077
  className: "flex items-center gap-1.5",
1078
- children: [e && /* @__PURE__ */ K("label", {
1078
+ children: [e && /* @__PURE__ */ G("label", {
1079
1079
  htmlFor: x,
1080
1080
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
1081
- children: [e, g && /* @__PURE__ */ G("span", {
1081
+ children: [e, g && /* @__PURE__ */ W("span", {
1082
1082
  className: "text-red-600",
1083
1083
  "aria-hidden": !0,
1084
1084
  children: "*"
1085
1085
  })]
1086
- }), t && /* @__PURE__ */ G("span", {
1086
+ }), t && /* @__PURE__ */ W("span", {
1087
1087
  className: "inline-flex items-center gap-1",
1088
1088
  children: t
1089
1089
  })]
1090
1090
  }),
1091
- /* @__PURE__ */ K("div", {
1092
- className: Y("flex items-stretch w-full rounded-lg bg-bg-default transition-colors", "border", C ? "border-red-600" : "border-border-default", !f && !C && "hover:border-border-strong", "focus-within:ring-2 focus-within:ring-offset-0", C ? "focus-within:ring-red-300 focus-within:border-red-600" : "focus-within:ring-brand-300 focus-within:border-brand-500", f && "bg-bg-container border-border-default cursor-not-allowed", Jt[i]),
1091
+ /* @__PURE__ */ G("div", {
1092
+ className: Y("flex items-stretch w-full rounded-lg bg-bg-default transition-colors", "border", C ? "border-red-600" : "border-border-default", !f && !C && "hover:border-border-strong", "focus-within:ring-2 focus-within:ring-offset-0", C ? "focus-within:ring-red-300 focus-within:border-red-600" : "focus-within:ring-brand-300 focus-within:border-brand-500", f && "bg-bg-container border-border-default cursor-not-allowed", qt[i]),
1093
1093
  children: [
1094
- s && /* @__PURE__ */ G("span", {
1094
+ s && /* @__PURE__ */ W("span", {
1095
1095
  className: "inline-flex items-center px-3 text-fg-secondary bg-bg-container border-r border-border-default rounded-l-lg whitespace-nowrap",
1096
1096
  children: s
1097
1097
  }),
1098
- /* @__PURE__ */ K("div", {
1098
+ /* @__PURE__ */ G("div", {
1099
1099
  className: "relative flex-1 min-w-0",
1100
1100
  children: [
1101
- a && /* @__PURE__ */ G("span", {
1101
+ a && /* @__PURE__ */ W("span", {
1102
1102
  "aria-hidden": !0,
1103
- className: Y("absolute inset-y-0 left-0 flex items-center justify-center text-fg-secondary pointer-events-none", Zt[i]),
1103
+ className: Y("absolute inset-y-0 left-0 flex items-center justify-center text-fg-secondary pointer-events-none", Xt[i]),
1104
1104
  children: a
1105
1105
  }),
1106
- /* @__PURE__ */ G("input", {
1106
+ /* @__PURE__ */ W("input", {
1107
1107
  ref: y,
1108
1108
  id: x,
1109
1109
  disabled: f,
1110
1110
  required: g,
1111
1111
  "aria-invalid": C || void 0,
1112
1112
  "aria-describedby": S,
1113
- className: Y("w-full h-full bg-transparent outline-none", "placeholder:text-fg-tertiary text-fg-default", "disabled:cursor-not-allowed disabled:text-fg-disabled", a ? Yt[i] : "pl-3", o || C ? Xt[i] : "pr-3", p),
1113
+ className: Y("w-full h-full bg-transparent outline-none", "placeholder:text-fg-tertiary text-fg-default", "disabled:cursor-not-allowed disabled:text-fg-disabled", a ? Jt[i] : "pl-3", o || C ? Yt[i] : "pr-3", p),
1114
1114
  ...v
1115
1115
  }),
1116
- (o || C) && /* @__PURE__ */ G("span", {
1116
+ (o || C) && /* @__PURE__ */ W("span", {
1117
1117
  "aria-hidden": !0,
1118
- className: Y("absolute inset-y-0 right-0 flex items-center justify-center pointer-events-none", Zt[i], C ? "text-red-600" : "text-fg-secondary"),
1119
- children: C ? /* @__PURE__ */ G(h, { className: "h-4 w-4" }) : o
1118
+ className: Y("absolute inset-y-0 right-0 flex items-center justify-center pointer-events-none", Xt[i], C ? "text-red-600" : "text-fg-secondary"),
1119
+ children: C ? /* @__PURE__ */ W(h, { className: "h-4 w-4" }) : o
1120
1120
  })
1121
1121
  ]
1122
1122
  }),
1123
- c && /* @__PURE__ */ G("span", {
1123
+ c && /* @__PURE__ */ W("span", {
1124
1124
  className: "inline-flex items-center px-3 text-fg-secondary bg-bg-container border-l border-border-default rounded-r-lg whitespace-nowrap",
1125
1125
  children: c
1126
1126
  })
1127
1127
  ]
1128
1128
  }),
1129
- r ? /* @__PURE__ */ G("p", {
1129
+ r ? /* @__PURE__ */ W("p", {
1130
1130
  id: `${x}-error`,
1131
1131
  className: "text-p-sm text-red-700",
1132
1132
  children: r
1133
- }) : n ? /* @__PURE__ */ G("p", {
1133
+ }) : n ? /* @__PURE__ */ W("p", {
1134
1134
  id: `${x}-help`,
1135
1135
  className: "text-p-sm text-fg-secondary",
1136
1136
  children: n
1137
1137
  }) : null
1138
1138
  ]
1139
1139
  });
1140
- }), $t = "inline-flex items-center justify-center text-fg-secondary transition-colors hover:text-fg-default disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none", en = a(function({ value: e, defaultValue: t = 0, onValueChange: n, min: r = 0, max: i = 2 ** 53 - 1, step: a = 1, size: o = "md", label: s, helperText: c, errorText: u, error: d, disabled: f, className: p, wrapperClassName: h, dataTestId: g, ..._ }, v) {
1140
+ }), Qt = "inline-flex items-center justify-center text-fg-secondary transition-colors hover:text-fg-default disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none", $t = a(function({ value: e, defaultValue: t = 0, onValueChange: n, min: r = 0, max: i = 2 ** 53 - 1, step: a = 1, size: o = "md", label: s, helperText: c, errorText: u, error: d, disabled: f, className: p, wrapperClassName: h, dataTestId: g, ..._ }, v) {
1141
1141
  let y = e !== void 0, [b, x] = m(t), S = y ? e : b, [C, w] = m(String(S));
1142
1142
  l(() => {
1143
1143
  w(String(S));
@@ -1146,7 +1146,7 @@ var qt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1146
1146
  let t = Math.min(i, Math.max(r, e));
1147
1147
  return y || x(t), n?.(t), t;
1148
1148
  };
1149
- return /* @__PURE__ */ G(Qt, {
1149
+ return /* @__PURE__ */ W(Zt, {
1150
1150
  ref: v,
1151
1151
  type: "number",
1152
1152
  min: r,
@@ -1172,30 +1172,30 @@ var qt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1172
1172
  }
1173
1173
  w(String(T(e)));
1174
1174
  },
1175
- leftAddon: /* @__PURE__ */ G("button", {
1175
+ leftAddon: /* @__PURE__ */ W("button", {
1176
1176
  type: "button",
1177
1177
  disabled: f || S <= r,
1178
1178
  onClick: () => T(S - a),
1179
1179
  "aria-label": "Decrease",
1180
- className: $t,
1181
- children: /* @__PURE__ */ G(I, { className: "size-4" })
1180
+ className: Qt,
1181
+ children: /* @__PURE__ */ W(I, { className: "size-4" })
1182
1182
  }),
1183
- rightAddon: /* @__PURE__ */ G("button", {
1183
+ rightAddon: /* @__PURE__ */ W("button", {
1184
1184
  type: "button",
1185
1185
  disabled: f || S >= i,
1186
1186
  onClick: () => T(S + a),
1187
1187
  "aria-label": "Increase",
1188
- className: $t,
1189
- children: /* @__PURE__ */ G(oe, { className: "size-4" })
1188
+ className: Qt,
1189
+ children: /* @__PURE__ */ W(se, { className: "size-4" })
1190
1190
  }),
1191
1191
  className: Y("text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none", p),
1192
1192
  ..._
1193
1193
  });
1194
- }), tn = {
1194
+ }), en = {
1195
1195
  lg: "h-12 text-p-md px-3.5",
1196
1196
  md: "h-10 text-p-std px-3",
1197
1197
  sm: "h-8 text-p-sm px-2.5"
1198
- }, nn = /* @__PURE__ */ new Set([
1198
+ }, tn = /* @__PURE__ */ new Set([
1199
1199
  "US",
1200
1200
  "CA",
1201
1201
  "MX",
@@ -1206,26 +1206,26 @@ var qt = a(function({ text: e, copiedLabel: t = "Copied", label: n = "Copy to cl
1206
1206
  "KR",
1207
1207
  "TW"
1208
1208
  ]);
1209
- function rn(e) {
1209
+ function nn(e) {
1210
1210
  try {
1211
1211
  return new Intl.Locale(e), e;
1212
1212
  } catch {
1213
1213
  return "en";
1214
1214
  }
1215
1215
  }
1216
- function an(e) {
1216
+ function rn(e) {
1217
1217
  try {
1218
1218
  let t = new Intl.Locale(e), n = t.weekInfo ?? t.getWeekInfo?.();
1219
1219
  if (n?.firstDay) return n.firstDay % 7;
1220
1220
  } catch {}
1221
1221
  let t = e.split("-")[1]?.toUpperCase();
1222
- return !t && e.toLowerCase() === "en" || t && nn.has(t) ? 0 : 1;
1222
+ return !t && e.toLowerCase() === "en" || t && tn.has(t) ? 0 : 1;
1223
1223
  }
1224
- function on(e) {
1224
+ function an(e) {
1225
1225
  let t = new Intl.DateTimeFormat(e, { month: "short" });
1226
1226
  return Array.from({ length: 12 }, (e, n) => t.format(new Date(2e3, n, 1)));
1227
1227
  }
1228
- var sn = [
1228
+ var on = [
1229
1229
  "Su",
1230
1230
  "Mo",
1231
1231
  "Tu",
@@ -1234,50 +1234,50 @@ var sn = [
1234
1234
  "Fr",
1235
1235
  "Sa"
1236
1236
  ];
1237
- function cn(e, t) {
1238
- let n = e.toLowerCase() === "en" ? sn : (() => {
1237
+ function sn(e, t) {
1238
+ let n = e.toLowerCase() === "en" ? on : (() => {
1239
1239
  let t = new Intl.DateTimeFormat(e, { weekday: "short" });
1240
1240
  return Array.from({ length: 7 }, (e, n) => t.format(new Date(1970, 0, 4 + n)));
1241
1241
  })();
1242
1242
  return [...n.slice(t), ...n.slice(0, t)];
1243
1243
  }
1244
- function ln(e) {
1244
+ function cn(e) {
1245
1245
  return new Date(e.getFullYear(), e.getMonth(), 1);
1246
1246
  }
1247
- function un(e, t) {
1247
+ function ln(e, t) {
1248
1248
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1249
1249
  }
1250
- function dn(e) {
1250
+ function un(e) {
1251
1251
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
1252
1252
  }
1253
- function fn(e, t, n, r, i) {
1254
- let a = dn(e).getTime();
1255
- return t && a < dn(t).getTime() || n && a > dn(n).getTime() || r?.some((t) => un(t, e)) ? !0 : !!i && !i(e);
1253
+ function dn(e, t, n, r, i) {
1254
+ let a = un(e).getTime();
1255
+ return t && a < un(t).getTime() || n && a > un(n).getTime() || r?.some((t) => ln(t, e)) ? !0 : !!i && !i(e);
1256
1256
  }
1257
- function pn(e, t) {
1257
+ function fn(e, t) {
1258
1258
  let n = String(e.getDate()).padStart(2, "0"), r = String(e.getMonth() + 1).padStart(2, "0"), i = String(e.getFullYear());
1259
1259
  return t.replace(/dd/g, n).replace(/MM/g, r).replace(/yyyy/g, i);
1260
1260
  }
1261
- function mn(e, t) {
1262
- let n = (ln(e).getDay() - t + 7) % 7, r = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate(), i = [];
1261
+ function pn(e, t) {
1262
+ let n = (cn(e).getDay() - t + 7) % 7, r = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate(), i = [];
1263
1263
  for (let e = 0; e < n; e++) i.push(null);
1264
1264
  for (let t = 1; t <= r; t++) i.push(new Date(e.getFullYear(), e.getMonth(), t));
1265
1265
  for (; i.length % 7 != 0;) i.push(null);
1266
1266
  return i;
1267
1267
  }
1268
- 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) {
1269
- let te = u(), N = k ?? te, [P, F] = m(!1), [I, L] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [ne, R] = m(null), re = p(null), z = D || !!O, ie = O ? `${N}-error` : g ? `${N}-help` : void 0;
1268
+ var mn = 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) {
1269
+ let te = u(), N = k ?? te, [P, F] = m(!1), [I, L] = m(e ?? i?.start ?? /* @__PURE__ */ new Date()), [ne, re] = m(null), ie = p(null), R = D || !!O, ae = O ? `${N}-error` : g ? `${N}-help` : void 0;
1270
1270
  l(() => {
1271
1271
  b && F(!1);
1272
1272
  }, [b]), l(() => {
1273
1273
  if (!P) return;
1274
1274
  let e = (e) => {
1275
- re.current && !re.current.contains(e.target) && F(!1);
1275
+ ie.current && !ie.current.contains(e.target) && F(!1);
1276
1276
  };
1277
1277
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1278
1278
  }, [P]);
1279
- let ae = r ? i?.start ? `${pn(i.start, c)}${i.end ? ` – ${pn(i.end, c)}` : ""}` : "" : e ? pn(e, c) : "";
1280
- function oe(e) {
1279
+ let oe = r ? i?.start ? `${fn(i.start, c)}${i.end ? ` – ${fn(i.end, c)}` : ""}` : "" : e ? fn(e, c) : "";
1280
+ function se(e) {
1281
1281
  if (!r) {
1282
1282
  t?.(e), F(!1);
1283
1283
  return;
@@ -1305,105 +1305,105 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1305
1305
  end: e
1306
1306
  }), F(!1);
1307
1307
  }
1308
- function se(e) {
1308
+ function ce(e) {
1309
1309
  e.stopPropagation(), r ? (a?.({
1310
1310
  start: null,
1311
1311
  end: null
1312
- }), R(null)) : t?.(null);
1312
+ }), re(null)) : t?.(null);
1313
1313
  }
1314
- let { firstDayOfWeek: B, monthNames: ce, weekdayNames: le } = f(() => {
1315
- let e = rn(s), t = an(e);
1314
+ let { firstDayOfWeek: z, monthNames: le, weekdayNames: ue } = f(() => {
1315
+ let e = nn(s), t = rn(e);
1316
1316
  return {
1317
1317
  firstDayOfWeek: t,
1318
- monthNames: on(e),
1319
- weekdayNames: cn(e, t)
1318
+ monthNames: an(e),
1319
+ weekdayNames: sn(e, t)
1320
1320
  };
1321
- }, [s]), ue = mn(I, B), V = i ?? {
1321
+ }, [s]), de = pn(I, z), B = i ?? {
1322
1322
  start: null,
1323
1323
  end: null
1324
- }, de = V.end ?? ne;
1325
- return /* @__PURE__ */ K("div", {
1326
- ref: re,
1324
+ }, fe = B.end ?? ne;
1325
+ return /* @__PURE__ */ G("div", {
1326
+ ref: ie,
1327
1327
  "data-test-id": M,
1328
1328
  className: Y("flex flex-col gap-1.5", v && "w-full", j),
1329
1329
  children: [
1330
- d && /* @__PURE__ */ K("label", {
1330
+ d && /* @__PURE__ */ G("label", {
1331
1331
  htmlFor: N,
1332
1332
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
1333
- children: [d, h && /* @__PURE__ */ G("span", {
1333
+ children: [d, h && /* @__PURE__ */ W("span", {
1334
1334
  className: "text-red-600",
1335
1335
  "aria-hidden": !0,
1336
1336
  children: "*"
1337
1337
  })]
1338
1338
  }),
1339
- /* @__PURE__ */ K("div", {
1339
+ /* @__PURE__ */ G("div", {
1340
1340
  className: "relative",
1341
- children: [/* @__PURE__ */ K("button", {
1341
+ children: [/* @__PURE__ */ G("button", {
1342
1342
  ref: ee,
1343
1343
  id: N,
1344
1344
  type: "button",
1345
1345
  disabled: b,
1346
- "aria-invalid": z || void 0,
1346
+ "aria-invalid": R || void 0,
1347
1347
  "aria-required": h || void 0,
1348
- "aria-describedby": ie,
1348
+ "aria-describedby": ae,
1349
1349
  onClick: () => F((e) => !e),
1350
- className: Y("inline-flex items-center gap-2 rounded-lg border bg-bg-default text-left transition-colors focus-visible:outline-none focus-visible:ring-2", z ? "border-red-600" : "border-border-default", !b && !z && "hover:border-border-strong", z ? "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),
1351
- children: [/* @__PURE__ */ G("span", {
1352
- className: Y("flex-1 text-left truncate", b ? "text-fg-disabled" : ae ? "text-fg-default" : "text-fg-tertiary"),
1353
- children: ae || _
1354
- }), n && ae && !b ? /* @__PURE__ */ G("span", {
1350
+ className: Y("inline-flex items-center gap-2 rounded-lg border bg-bg-default text-left transition-colors focus-visible:outline-none focus-visible:ring-2", R ? "border-red-600" : "border-border-default", !b && !R && "hover:border-border-strong", R ? "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]", en[o], A),
1351
+ children: [/* @__PURE__ */ W("span", {
1352
+ className: Y("flex-1 text-left truncate", b ? "text-fg-disabled" : oe ? "text-fg-default" : "text-fg-tertiary"),
1353
+ children: oe || _
1354
+ }), n && oe && !b ? /* @__PURE__ */ W("span", {
1355
1355
  role: "button",
1356
1356
  tabIndex: 0,
1357
1357
  "aria-label": "Clear date",
1358
- onClick: se,
1358
+ onClick: ce,
1359
1359
  onKeyDown: (e) => {
1360
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), se(e));
1360
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ce(e));
1361
1361
  },
1362
1362
  className: "inline-flex items-center justify-center rounded-full p-0.5 hover:bg-bg-container",
1363
- children: /* @__PURE__ */ G(H, { className: "w-4 h-4 text-fg-secondary" })
1364
- }) : /* @__PURE__ */ G(y, { className: Y("w-4 h-4", b ? "text-fg-disabled" : "text-fg-secondary") })]
1365
- }), P && /* @__PURE__ */ K("div", {
1363
+ children: /* @__PURE__ */ W(V, { className: "w-4 h-4 text-fg-secondary" })
1364
+ }) : /* @__PURE__ */ W(y, { className: Y("w-4 h-4", b ? "text-fg-disabled" : "text-fg-secondary") })]
1365
+ }), P && /* @__PURE__ */ G("div", {
1366
1366
  className: "absolute z-50 mt-1 left-0 rounded-xl border border-border-default bg-bg-default shadow-z3 p-3 w-[300px]",
1367
- children: [/* @__PURE__ */ K("div", {
1367
+ children: [/* @__PURE__ */ G("div", {
1368
1368
  className: "flex items-center justify-between mb-2",
1369
1369
  children: [
1370
- /* @__PURE__ */ G("button", {
1370
+ /* @__PURE__ */ W("button", {
1371
1371
  type: "button",
1372
1372
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1373
1373
  onClick: () => L(new Date(I.getFullYear(), I.getMonth() - 1, 1)),
1374
1374
  "aria-label": "Previous month",
1375
- children: /* @__PURE__ */ G(C, { className: "w-4 h-4" })
1375
+ children: /* @__PURE__ */ W(C, { className: "w-4 h-4" })
1376
1376
  }),
1377
- /* @__PURE__ */ K("div", {
1377
+ /* @__PURE__ */ G("div", {
1378
1378
  className: "text-p-md font-semibold text-fg-default",
1379
1379
  children: [
1380
- ce[I.getMonth()],
1380
+ le[I.getMonth()],
1381
1381
  " ",
1382
1382
  I.getFullYear()
1383
1383
  ]
1384
1384
  }),
1385
- /* @__PURE__ */ G("button", {
1385
+ /* @__PURE__ */ W("button", {
1386
1386
  type: "button",
1387
1387
  className: "w-8 h-8 rounded-md hover:bg-bg-container flex items-center justify-center text-fg-secondary",
1388
1388
  onClick: () => L(new Date(I.getFullYear(), I.getMonth() + 1, 1)),
1389
1389
  "aria-label": "Next month",
1390
- children: /* @__PURE__ */ G(w, { className: "w-4 h-4" })
1390
+ children: /* @__PURE__ */ W(w, { className: "w-4 h-4" })
1391
1391
  })
1392
1392
  ]
1393
- }), /* @__PURE__ */ K("div", {
1393
+ }), /* @__PURE__ */ G("div", {
1394
1394
  className: "grid grid-cols-7 gap-1 text-center",
1395
- children: [le.map((e, t) => /* @__PURE__ */ G("div", {
1395
+ children: [ue.map((e, t) => /* @__PURE__ */ W("div", {
1396
1396
  className: "text-p-xs text-fg-tertiary py-1",
1397
1397
  children: e
1398
- }, t)), ue.map((t, n) => {
1399
- if (!t) return /* @__PURE__ */ G("div", {}, n);
1400
- let i = fn(t, x, S, T, E), a = !r && un(t, e ?? null), o = r && un(t, V.start), s = r && un(t, de), c = r && !!V.start && !!de && t > V.start && t < de;
1401
- return /* @__PURE__ */ G("button", {
1398
+ }, t)), de.map((t, n) => {
1399
+ if (!t) return /* @__PURE__ */ W("div", {}, n);
1400
+ let i = dn(t, x, S, T, E), a = !r && ln(t, e ?? null), o = r && ln(t, B.start), s = r && ln(t, fe), c = r && !!B.start && !!fe && t > B.start && t < fe;
1401
+ return /* @__PURE__ */ W("button", {
1402
1402
  type: "button",
1403
1403
  disabled: i,
1404
1404
  "aria-disabled": i || void 0,
1405
- onMouseEnter: () => !i && r && V.start && !V.end && R(t),
1406
- onClick: () => !i && oe(t),
1405
+ onMouseEnter: () => !i && r && B.start && !B.end && re(t),
1406
+ onClick: () => !i && se(t),
1407
1407
  className: Y("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"),
1408
1408
  children: t.getDate()
1409
1409
  }, n);
@@ -1411,18 +1411,18 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1411
1411
  })]
1412
1412
  })]
1413
1413
  }),
1414
- O ? /* @__PURE__ */ G("p", {
1414
+ O ? /* @__PURE__ */ W("p", {
1415
1415
  id: `${N}-error`,
1416
1416
  className: "text-p-sm text-red-700",
1417
1417
  children: O
1418
- }) : g ? /* @__PURE__ */ G("p", {
1418
+ }) : g ? /* @__PURE__ */ W("p", {
1419
1419
  id: `${N}-help`,
1420
1420
  className: "text-p-sm text-fg-secondary",
1421
1421
  children: g
1422
1422
  }) : null
1423
1423
  ]
1424
1424
  });
1425
- }), gn = {
1425
+ }), hn = {
1426
1426
  brand: "bg-brand-500",
1427
1427
  blue: "bg-blue-500",
1428
1428
  purple: "bg-purple-500",
@@ -1430,57 +1430,57 @@ var hn = a(function({ value: e, onChange: t, clearable: n = !1, range: r = !1, r
1430
1430
  yellow: "bg-yellow-500",
1431
1431
  red: "bg-red-500",
1432
1432
  gray: "bg-gray-400"
1433
- }, _n = {
1433
+ }, gn = {
1434
1434
  sm: "h-1",
1435
1435
  lg: "h-2"
1436
- }, vn = (e) => new Intl.NumberFormat().format(e), yn = a(function({ segments: e, hideLegend: t = !1, formatValue: n = vn, size: r = "lg", className: i, dataTestId: a, ...o }, s) {
1436
+ }, _n = (e) => new Intl.NumberFormat().format(e), vn = a(function({ segments: e, hideLegend: t = !1, formatValue: n = _n, size: r = "lg", className: i, dataTestId: a, ...o }, s) {
1437
1437
  let c = e.reduce((e, t) => e + t.value, 0);
1438
- return /* @__PURE__ */ K("div", {
1438
+ return /* @__PURE__ */ G("div", {
1439
1439
  ref: s,
1440
1440
  "data-test-id": a,
1441
1441
  className: Y("flex flex-col gap-3", i),
1442
1442
  ...o,
1443
- children: [/* @__PURE__ */ G("div", {
1444
- className: Y("flex w-full overflow-hidden rounded-full bg-bg-subtle", _n[r]),
1445
- children: e.map((e, t) => /* @__PURE__ */ G("div", {
1443
+ children: [/* @__PURE__ */ W("div", {
1444
+ className: Y("flex w-full overflow-hidden rounded-full bg-bg-subtle", gn[r]),
1445
+ children: e.map((e, t) => /* @__PURE__ */ W("div", {
1446
1446
  style: { flexBasis: `${c > 0 ? e.value / c * 100 : 0}%` },
1447
- className: Y("transition-[flex-basis] duration-700 ease-out", gn[e.color])
1447
+ className: Y("transition-[flex-basis] duration-700 ease-out", hn[e.color])
1448
1448
  }, t))
1449
- }), !t && /* @__PURE__ */ G("ul", {
1449
+ }), !t && /* @__PURE__ */ W("ul", {
1450
1450
  className: "flex flex-col [&>li:not(:last-child)]:border-b [&>li:not(:last-child)]:border-border-default",
1451
- children: e.filter((e) => !e.hideFromLegend).map((e, t) => /* @__PURE__ */ K("li", {
1451
+ children: e.filter((e) => !e.hideFromLegend).map((e, t) => /* @__PURE__ */ G("li", {
1452
1452
  className: "flex items-center justify-between gap-3 py-1.5",
1453
- children: [/* @__PURE__ */ K("span", {
1453
+ children: [/* @__PURE__ */ G("span", {
1454
1454
  className: "flex min-w-0 items-center gap-2",
1455
- children: [/* @__PURE__ */ G("span", { className: Y("size-2 shrink-0 rounded-full", gn[e.color]) }), /* @__PURE__ */ G("span", {
1455
+ children: [/* @__PURE__ */ W("span", { className: Y("size-2 shrink-0 rounded-full", hn[e.color]) }), /* @__PURE__ */ W("span", {
1456
1456
  className: "truncate text-p-sm text-fg-tertiary",
1457
1457
  children: e.label
1458
1458
  })]
1459
- }), /* @__PURE__ */ K("span", {
1459
+ }), /* @__PURE__ */ G("span", {
1460
1460
  className: "shrink-0 text-p-sm text-fg-default tabular-nums",
1461
1461
  children: [n(e.value), e.unit ? ` ${e.unit}` : ""]
1462
1462
  })]
1463
1463
  }, t))
1464
1464
  })]
1465
1465
  });
1466
- }), bn = {
1466
+ }), yn = {
1467
1467
  fast: 150,
1468
1468
  base: 200,
1469
1469
  slow: 300
1470
1470
  };
1471
- function xn() {
1471
+ function bn() {
1472
1472
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1473
1473
  }
1474
1474
  //#endregion
1475
1475
  //#region src/lib/useMountTransition.ts
1476
- function Sn(e, t) {
1476
+ function xn(e, t) {
1477
1477
  let [n, r] = m(e), [i, a] = m(e ? "entered" : "closed"), o = p(null), s = p(null);
1478
1478
  return l(() => {
1479
1479
  o.current && clearTimeout(o.current), s.current && cancelAnimationFrame(s.current), e ? (r(!0), a("entering"), s.current = requestAnimationFrame(() => {
1480
1480
  s.current = requestAnimationFrame(() => a("entered"));
1481
1481
  })) : (() => {
1482
1482
  a((e) => e === "closed" ? "closed" : "exiting");
1483
- let e = xn() ? 0 : t;
1483
+ let e = bn() ? 0 : t;
1484
1484
  e === 0 ? (r(!1), a("closed")) : o.current = setTimeout(() => {
1485
1485
  r(!1), a("closed");
1486
1486
  }, e);
@@ -1494,28 +1494,28 @@ function Sn(e, t) {
1494
1494
  }
1495
1495
  //#endregion
1496
1496
  //#region src/components/Drawer/Drawer.tsx
1497
- var Cn = {
1497
+ var Sn = {
1498
1498
  sm: "w-[320px]",
1499
1499
  md: "w-[420px]",
1500
1500
  lg: "w-[560px]",
1501
1501
  xl: "w-[720px]"
1502
- }, wn = {
1502
+ }, Cn = {
1503
1503
  sm: "h-[240px]",
1504
1504
  md: "h-[360px]",
1505
1505
  lg: "h-[480px]",
1506
1506
  xl: "h-[600px]"
1507
- }, Tn = {
1507
+ }, wn = {
1508
1508
  right: "inset-y-0 right-0 border-l",
1509
1509
  left: "inset-y-0 left-0 border-r",
1510
1510
  top: "inset-x-0 top-0 border-b",
1511
1511
  bottom: "inset-x-0 bottom-0 border-t"
1512
- }, En = {
1512
+ }, Tn = {
1513
1513
  right: "translate-x-full",
1514
1514
  left: "-translate-x-full",
1515
1515
  top: "-translate-y-full",
1516
1516
  bottom: "translate-y-full"
1517
- }, Dn = a(function({ open: e, onClose: t, side: n = "right", size: r = "md", title: i, description: a, children: o, footer: s, closeOnOverlayClick: c = !0, showClose: u = !0, animated: d = !0, headerActions: f, className: m, dataTestId: h }, g) {
1518
- let _ = p(null), { mounted: v, state: y } = Sn(e, d ? bn.slow : 0), b = y === "entered";
1517
+ }, En = a(function({ open: e, onClose: t, side: n = "right", size: r = "md", title: i, description: a, children: o, footer: s, closeOnOverlayClick: c = !0, showClose: u = !0, animated: d = !0, headerActions: f, className: m, dataTestId: h }, g) {
1518
+ let _ = p(null), { mounted: v, state: y } = xn(e, d ? yn.slow : 0), b = y === "entered";
1519
1519
  if (l(() => {
1520
1520
  if (!v) return;
1521
1521
  let e = (e) => {
@@ -1531,8 +1531,8 @@ var Cn = {
1531
1531
  let t = document.activeElement;
1532
1532
  return _.current?.focus(), () => t?.focus?.();
1533
1533
  }, [e]), !v) return null;
1534
- let x = n === "left" || n === "right", S = x ? Cn[r] : wn[r];
1535
- return he(/* @__PURE__ */ K("div", {
1534
+ let x = n === "left" || n === "right", S = x ? Sn[r] : Cn[r];
1535
+ return K(/* @__PURE__ */ G("div", {
1536
1536
  role: "dialog",
1537
1537
  "aria-modal": "true",
1538
1538
  "aria-hidden": y === "exiting" || void 0,
@@ -1540,52 +1540,52 @@ var Cn = {
1540
1540
  "aria-describedby": a ? "drawer-desc" : void 0,
1541
1541
  className: "fixed inset-0 z-50",
1542
1542
  "data-test-id": h,
1543
- children: [/* @__PURE__ */ G("div", {
1543
+ children: [/* @__PURE__ */ W("div", {
1544
1544
  className: Y("absolute inset-0 bg-black/50", d && "transition-opacity duration-200 motion-reduce:transition-none", b ? "opacity-100" : "opacity-0"),
1545
1545
  onClick: () => c && t(),
1546
1546
  "aria-hidden": !0
1547
- }), /* @__PURE__ */ K("div", {
1548
- ref: Vt(g, _),
1547
+ }), /* @__PURE__ */ G("div", {
1548
+ ref: Bt(g, _),
1549
1549
  tabIndex: -1,
1550
- className: Y("absolute bg-bg-default shadow-z5 outline-none flex flex-col", Tn[n], x ? `${S} h-full max-w-full` : `${S} w-full max-h-full`, "border-border-default", d && "transition-transform duration-300 ease-out motion-reduce:transition-none will-change-transform", b ? "translate-x-0 translate-y-0" : En[n], m),
1550
+ className: Y("absolute bg-bg-default shadow-z5 outline-none flex flex-col", wn[n], x ? `${S} h-full max-w-full` : `${S} w-full max-h-full`, "border-border-default", d && "transition-transform duration-300 ease-out motion-reduce:transition-none will-change-transform", b ? "translate-x-0 translate-y-0" : Tn[n], m),
1551
1551
  children: [
1552
- (i || u || f) && /* @__PURE__ */ K("div", {
1552
+ (i || u || f) && /* @__PURE__ */ G("div", {
1553
1553
  className: "flex items-start justify-between gap-4 px-6 pt-6 pb-4 border-b border-border-default",
1554
- children: [/* @__PURE__ */ K("div", {
1554
+ children: [/* @__PURE__ */ G("div", {
1555
1555
  className: "flex-1 min-w-0",
1556
- children: [i && /* @__PURE__ */ G("h2", {
1556
+ children: [i && /* @__PURE__ */ W("h2", {
1557
1557
  id: "drawer-title",
1558
1558
  className: "text-h-xs font-semibold text-fg-default",
1559
1559
  children: i
1560
- }), a && /* @__PURE__ */ G("p", {
1560
+ }), a && /* @__PURE__ */ W("p", {
1561
1561
  id: "drawer-desc",
1562
1562
  className: "mt-1 text-p-std text-fg-secondary",
1563
1563
  children: a
1564
1564
  })]
1565
- }), /* @__PURE__ */ K("div", {
1565
+ }), /* @__PURE__ */ G("div", {
1566
1566
  className: "flex items-center gap-1 shrink-0 -mr-2 -mt-2",
1567
- children: [f, u && /* @__PURE__ */ G("button", {
1567
+ children: [f, u && /* @__PURE__ */ W("button", {
1568
1568
  type: "button",
1569
1569
  onClick: t,
1570
1570
  "aria-label": "Close",
1571
1571
  className: "p-2 rounded-md text-fg-secondary hover:text-fg-default hover:bg-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
1572
- children: /* @__PURE__ */ G(H, { className: "h-5 w-5" })
1572
+ children: /* @__PURE__ */ W(V, { className: "h-5 w-5" })
1573
1573
  })]
1574
1574
  })]
1575
1575
  }),
1576
- o && /* @__PURE__ */ G("div", {
1576
+ o && /* @__PURE__ */ W("div", {
1577
1577
  className: "flex-1 overflow-y-auto px-6 py-4",
1578
1578
  children: o
1579
1579
  }),
1580
- s && /* @__PURE__ */ G("div", {
1580
+ s && /* @__PURE__ */ W("div", {
1581
1581
  className: "flex items-center justify-end gap-2 px-6 py-4 border-t border-border-default bg-bg-container",
1582
1582
  children: s
1583
1583
  })
1584
1584
  ]
1585
1585
  })]
1586
1586
  }), document.body);
1587
- }), On = 8;
1588
- function kn({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "start", offset: a = 4, flip: o = !0, shift: s = !0, matchAnchorWidth: c = !1 }) {
1587
+ }), Dn = 8;
1588
+ function On({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "start", offset: a = 4, flip: o = !0, shift: s = !0, matchAnchorWidth: c = !1 }) {
1589
1589
  let [l, u] = m({
1590
1590
  style: {
1591
1591
  position: "fixed",
@@ -1606,7 +1606,7 @@ function kn({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "star
1606
1606
  r === "bottom" && e < d.height + a && t > e ? m = "top" : r === "top" && t < d.height + a && e > t && (m = "bottom");
1607
1607
  }
1608
1608
  let h = m === "bottom" ? l.bottom + a : l.top - d.height - a, g = i === "end" ? l.right - d.width : l.left;
1609
- s && (g = Math.min(Math.max(g, On), p - d.width - On)), u({
1609
+ s && (g = Math.min(Math.max(g, Dn), p - d.width - Dn)), u({
1610
1610
  style: {
1611
1611
  position: "fixed",
1612
1612
  top: h,
@@ -1636,16 +1636,16 @@ function kn({ anchor: e, panel: t, open: n, side: r = "bottom", align: i = "star
1636
1636
  }
1637
1637
  //#endregion
1638
1638
  //#region src/components/DropdownMenu/DropdownMenu.tsx
1639
- function An(e) {
1639
+ function kn(e) {
1640
1640
  return e == null ? null : e instanceof HTMLElement ? e : e.current;
1641
1641
  }
1642
- var jn = r(null);
1643
- function Mn() {
1644
- let e = c(jn);
1642
+ var An = r(null);
1643
+ function jn() {
1644
+ let e = c(An);
1645
1645
  if (!e) throw Error("Dropdown parts must be used inside <DropdownMenu>");
1646
1646
  return e;
1647
1647
  }
1648
- var Nn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r, anchorRef: i, className: a, dataTestId: o, ...s }, c) {
1648
+ var Mn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r, anchorRef: i, className: a, dataTestId: o, ...s }, c) {
1649
1649
  let [u, d] = m(t), f = n !== void 0, h = f ? n : u, g = p(null), _ = (e) => {
1650
1650
  f || d(e), r?.(e);
1651
1651
  };
@@ -1655,14 +1655,14 @@ var Nn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r
1655
1655
  e.key === "Escape" && _(!1);
1656
1656
  };
1657
1657
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1658
- }, [h]), /* @__PURE__ */ G(jn.Provider, {
1658
+ }, [h]), /* @__PURE__ */ W(An.Provider, {
1659
1659
  value: {
1660
1660
  open: h,
1661
1661
  setOpen: _,
1662
1662
  triggerRef: g,
1663
1663
  anchorRef: i
1664
1664
  },
1665
- children: /* @__PURE__ */ G("div", {
1665
+ children: /* @__PURE__ */ W("div", {
1666
1666
  ref: c,
1667
1667
  "data-test-id": o,
1668
1668
  className: Y("relative inline-block", a),
@@ -1671,8 +1671,8 @@ var Nn = a(function({ children: e, defaultOpen: t = !1, open: n, onOpenChange: r
1671
1671
  })
1672
1672
  });
1673
1673
  });
1674
- function Pn({ children: e }) {
1675
- let { open: t, setOpen: r, triggerRef: i } = Mn();
1674
+ function Nn({ children: e }) {
1675
+ let { open: t, setOpen: r, triggerRef: i } = jn();
1676
1676
  if (!o(e)) return e;
1677
1677
  let a = e.props ?? {};
1678
1678
  return n(e, {
@@ -1685,10 +1685,10 @@ function Pn({ children: e }) {
1685
1685
  "aria-expanded": t
1686
1686
  });
1687
1687
  }
1688
- var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default shadow-z4 z-50 py-1", In = a(function({ children: e, align: t = "start", strategy: n = "fixed", side: r = "bottom", sideOffset: i = 4, flip: a = !0, shift: o = !0, matchTriggerWidth: s = !1, closeOnScroll: c = !1, className: u, dataTestId: d, ...h }, g) {
1689
- let { open: _, setOpen: v, triggerRef: y, anchorRef: b } = Mn(), x = p(null), [S, C] = m(null), { style: w, resolvedSide: T } = kn({
1688
+ var Pn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default shadow-z4 z-50 py-1", Fn = a(function({ children: e, align: t = "start", strategy: n = "fixed", side: r = "bottom", sideOffset: i = 4, flip: a = !0, shift: o = !0, matchTriggerWidth: s = !1, closeOnScroll: c = !1, className: u, dataTestId: d, ...h }, g) {
1689
+ let { open: _, setOpen: v, triggerRef: y, anchorRef: b } = jn(), x = p(null), [S, C] = m(null), { style: w, resolvedSide: T } = On({
1690
1690
  anchor: f(() => ({ get current() {
1691
- return An(b) ?? y.current;
1691
+ return kn(b) ?? y.current;
1692
1692
  } }), [b, y]),
1693
1693
  panel: S,
1694
1694
  open: _ && n === "fixed",
@@ -1703,7 +1703,7 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1703
1703
  if (!_) return;
1704
1704
  let e = (e) => {
1705
1705
  let t = e.target;
1706
- x.current?.contains(t) || y.current?.contains(t) || An(b)?.contains(t) || v(!1);
1706
+ x.current?.contains(t) || y.current?.contains(t) || kn(b)?.contains(t) || v(!1);
1707
1707
  };
1708
1708
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1709
1709
  }, [
@@ -1729,8 +1729,8 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1729
1729
  });
1730
1730
  return () => cancelAnimationFrame(e);
1731
1731
  }, [_]), !_) return null;
1732
- let E = /* @__PURE__ */ G("div", {
1733
- ref: Vt(g, x, n === "fixed" ? C : void 0),
1732
+ let E = /* @__PURE__ */ W("div", {
1733
+ ref: Bt(g, x, n === "fixed" ? C : void 0),
1734
1734
  role: "menu",
1735
1735
  "data-test-id": d,
1736
1736
  "data-side": n === "fixed" ? T : void 0,
@@ -1742,14 +1742,14 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1742
1742
  e.key === "ArrowDown" ? (e.preventDefault(), t[(n + 1 + t.length) % t.length]?.focus()) : e.key === "ArrowUp" ? (e.preventDefault(), t[(n - 1 + t.length) % t.length]?.focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" && (e.preventDefault(), t[t.length - 1]?.focus());
1743
1743
  },
1744
1744
  style: n === "fixed" ? w : void 0,
1745
- className: Y(Fn, n === "absolute" && Y("absolute top-full mt-1", t === "end" ? "right-0" : "left-0"), u),
1745
+ className: Y(Pn, n === "absolute" && Y("absolute top-full mt-1", t === "end" ? "right-0" : "left-0"), u),
1746
1746
  ...h,
1747
1747
  children: e
1748
1748
  });
1749
- return n === "fixed" ? he(E, document.body) : E;
1750
- }), Ln = a(function({ children: e, onSelect: t, disabled: n, icon: r, shortcut: i, destructive: a, checked: o, meta: s, className: c, dataTestId: l, onClick: u, ...d }, f) {
1751
- let { setOpen: p } = Mn();
1752
- return /* @__PURE__ */ K("button", {
1749
+ return n === "fixed" ? K(E, document.body) : E;
1750
+ }), In = a(function({ children: e, onSelect: t, disabled: n, icon: r, shortcut: i, destructive: a, checked: o, meta: s, className: c, dataTestId: l, onClick: u, ...d }, f) {
1751
+ let { setOpen: p } = jn();
1752
+ return /* @__PURE__ */ G("button", {
1753
1753
  ref: f,
1754
1754
  type: "button",
1755
1755
  role: "menuitem",
@@ -1761,47 +1761,47 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1761
1761
  className: Y("flex w-full gap-2 px-3 py-2 text-left text-p-std text-fg-default", s ? "items-start" : "items-center", "hover:bg-bg-subtle focus-visible:outline-none focus-visible:bg-bg-subtle", n && "opacity-50 cursor-not-allowed hover:bg-transparent", a && "text-red-700 hover:bg-red-50", c),
1762
1762
  ...d,
1763
1763
  children: [
1764
- o !== void 0 && /* @__PURE__ */ G("span", {
1764
+ o !== void 0 && /* @__PURE__ */ W("span", {
1765
1765
  className: "w-4 shrink-0",
1766
- children: o && /* @__PURE__ */ G(b, { className: "h-4 w-4 text-brand-500" })
1766
+ children: o && /* @__PURE__ */ W(b, { className: "h-4 w-4 text-brand-500" })
1767
1767
  }),
1768
- r && /* @__PURE__ */ G("span", {
1768
+ r && /* @__PURE__ */ W("span", {
1769
1769
  className: "inline-flex shrink-0 text-fg-secondary",
1770
1770
  children: r
1771
1771
  }),
1772
- /* @__PURE__ */ K("span", {
1772
+ /* @__PURE__ */ G("span", {
1773
1773
  className: "flex-1 min-w-0 text-left",
1774
- children: [/* @__PURE__ */ G("span", {
1774
+ children: [/* @__PURE__ */ W("span", {
1775
1775
  className: "block truncate",
1776
1776
  children: e
1777
- }), s && /* @__PURE__ */ G("span", {
1777
+ }), s && /* @__PURE__ */ W("span", {
1778
1778
  className: "block truncate text-p-sm text-fg-tertiary",
1779
1779
  children: s
1780
1780
  })]
1781
1781
  }),
1782
- i && /* @__PURE__ */ G("span", {
1782
+ i && /* @__PURE__ */ W("span", {
1783
1783
  className: "text-p-sm text-fg-tertiary shrink-0 tabular-nums",
1784
1784
  children: i
1785
1785
  })
1786
1786
  ]
1787
1787
  });
1788
- }), Rn = a(function({ className: e, dataTestId: t, ...n }, r) {
1789
- return /* @__PURE__ */ G("div", {
1788
+ }), Ln = a(function({ className: e, dataTestId: t, ...n }, r) {
1789
+ return /* @__PURE__ */ W("div", {
1790
1790
  ref: r,
1791
1791
  role: "separator",
1792
1792
  "data-test-id": t,
1793
1793
  className: Y("my-1 h-px bg-border-default", e),
1794
1794
  ...n
1795
1795
  });
1796
- }), zn = a(function({ children: e, className: t, dataTestId: n, ...r }, i) {
1797
- return /* @__PURE__ */ G("div", {
1796
+ }), Rn = a(function({ children: e, className: t, dataTestId: n, ...r }, i) {
1797
+ return /* @__PURE__ */ W("div", {
1798
1798
  ref: i,
1799
1799
  "data-test-id": n,
1800
1800
  className: Y("px-3 py-1.5 text-p-xs font-semibold uppercase tracking-wider text-fg-tertiary", t),
1801
1801
  ...r,
1802
1802
  children: e
1803
1803
  });
1804
- }), Bn = {
1804
+ }), zn = {
1805
1805
  brand: {
1806
1806
  bg: "bg-bg-brand-lighter",
1807
1807
  icon: "text-brand-700"
@@ -1838,7 +1838,7 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1838
1838
  bg: "bg-bg-danger-lighter",
1839
1839
  icon: "text-red-700"
1840
1840
  }
1841
- }, Vn = {
1841
+ }, Bn = {
1842
1842
  sm: {
1843
1843
  box: "h-8 w-8",
1844
1844
  icon: "h-4 w-4",
@@ -1859,17 +1859,17 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1859
1859
  icon: "h-7 w-7",
1860
1860
  radius: "rounded-xl"
1861
1861
  }
1862
- }, Hn = a(function({ icon: e, tone: t = "gray", size: n = "md", shape: r = "rounded", className: i, dataTestId: a, ...o }, s) {
1863
- let c = Bn[t], l = Vn[n];
1864
- return /* @__PURE__ */ G("div", {
1862
+ }, Vn = a(function({ icon: e, tone: t = "gray", size: n = "md", shape: r = "rounded", className: i, dataTestId: a, ...o }, s) {
1863
+ let c = zn[t], l = Bn[n];
1864
+ return /* @__PURE__ */ W("div", {
1865
1865
  ref: s,
1866
1866
  "data-test-id": a,
1867
1867
  "aria-hidden": !o["aria-label"] || void 0,
1868
1868
  className: Y("inline-flex items-center justify-center shrink-0", l.box, r === "circle" ? "rounded-full" : l.radius, c.bg, i),
1869
1869
  ...o,
1870
- children: /* @__PURE__ */ G(e, { className: Y(l.icon, c.icon) })
1870
+ children: /* @__PURE__ */ W(e, { className: Y(l.icon, c.icon) })
1871
1871
  });
1872
- }), Un = {
1872
+ }), Hn = {
1873
1873
  "h-xl": "text-h-xl",
1874
1874
  "h-lg": "text-h-lg",
1875
1875
  "h-md": "text-h-md",
@@ -1887,12 +1887,12 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1887
1887
  "label-sm": "text-label-sm",
1888
1888
  "label-xs": "text-label-xs",
1889
1889
  "label-xxs": "text-label-xxs"
1890
- }, Wn = {
1890
+ }, Un = {
1891
1891
  normal: "font-normal",
1892
1892
  medium: "font-medium",
1893
1893
  semibold: "font-semibold",
1894
1894
  bold: "font-bold"
1895
- }, Gn = {
1895
+ }, Wn = {
1896
1896
  default: "text-fg-default",
1897
1897
  secondary: "text-fg-secondary",
1898
1898
  tertiary: "text-fg-tertiary",
@@ -1903,7 +1903,7 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1903
1903
  success: "text-fg-success",
1904
1904
  warning: "text-fg-warning",
1905
1905
  danger: "text-fg-danger"
1906
- }, Kn = {
1906
+ }, Gn = {
1907
1907
  "h-xl": "h1",
1908
1908
  "h-lg": "h1",
1909
1909
  "h-md": "h2",
@@ -1921,66 +1921,66 @@ var Fn = "min-w-[200px] rounded-lg border border-border-default bg-bg-default sh
1921
1921
  "label-sm": "span",
1922
1922
  "label-xs": "span",
1923
1923
  "label-xxs": "span"
1924
- }, qn = a(function({ variant: e = "p-std", weight: t, color: n = "default", as: r, truncate: a, clamp: o, style: s, className: c, children: l, dataTestId: u, ...d }, f) {
1925
- return i(r ?? Kn[e], {
1924
+ }, Kn = a(function({ variant: e = "p-std", weight: t, color: n = "default", as: r, truncate: a, clamp: o, style: s, className: c, children: l, dataTestId: u, ...d }, f) {
1925
+ return i(r ?? Gn[e], {
1926
1926
  ref: f,
1927
1927
  "data-test-id": u,
1928
- className: Y(Un[e], t && Wn[t], Gn[n], a && "truncate", o && !a && "overflow-hidden [display:-webkit-box] [-webkit-box-orient:vertical]", c),
1928
+ className: Y(Hn[e], t && Un[t], Wn[n], a && "truncate", o && !a && "overflow-hidden [display:-webkit-box] [-webkit-box-orient:vertical]", c),
1929
1929
  style: o && !a ? {
1930
1930
  ...s,
1931
1931
  WebkitLineClamp: o
1932
1932
  } : s,
1933
1933
  ...d
1934
1934
  }, l);
1935
- }), Jn = {
1935
+ }), qn = {
1936
1936
  lg: "py-20 px-6 gap-2",
1937
1937
  sm: "py-10 px-4 gap-1"
1938
- }, Yn = {
1938
+ }, Jn = {
1939
1939
  lg: "xl",
1940
1940
  sm: "lg"
1941
- }, Xn = a(function({ size: e = "lg", title: t, description: n, illustration: r, action: i, className: a, dataTestId: o, ...s }, c) {
1942
- return /* @__PURE__ */ K("div", {
1941
+ }, Yn = a(function({ size: e = "lg", title: t, description: n, illustration: r, action: i, className: a, dataTestId: o, ...s }, c) {
1942
+ return /* @__PURE__ */ G("div", {
1943
1943
  ref: c,
1944
1944
  "data-test-id": o,
1945
- className: Y("flex flex-col items-center justify-center text-center", Jn[e], a),
1945
+ className: Y("flex flex-col items-center justify-center text-center", qn[e], a),
1946
1946
  ...s,
1947
1947
  children: [
1948
- r ?? /* @__PURE__ */ G(Hn, {
1949
- icon: ce,
1948
+ r ?? /* @__PURE__ */ W(Vn, {
1949
+ icon: le,
1950
1950
  tone: "gray",
1951
1951
  shape: "circle",
1952
- size: Yn[e]
1952
+ size: Jn[e]
1953
1953
  }),
1954
- t && /* @__PURE__ */ G(qn, {
1954
+ t && /* @__PURE__ */ W(Kn, {
1955
1955
  as: "h3",
1956
1956
  variant: e === "lg" ? "h-sm" : "h-xs",
1957
1957
  weight: "semibold",
1958
1958
  className: "mt-2",
1959
1959
  children: t
1960
1960
  }),
1961
- n && /* @__PURE__ */ G(qn, {
1961
+ n && /* @__PURE__ */ W(Kn, {
1962
1962
  variant: e === "lg" ? "p-sm" : "p-xs",
1963
1963
  color: "secondary",
1964
1964
  className: "max-w-sm",
1965
1965
  children: n
1966
1966
  }),
1967
- i && /* @__PURE__ */ G("div", {
1967
+ i && /* @__PURE__ */ W("div", {
1968
1968
  className: "mt-4",
1969
1969
  children: i
1970
1970
  })
1971
1971
  ]
1972
1972
  });
1973
- }), Zn = {
1973
+ }), Xn = {
1974
1974
  lg: "h-10 px-3 text-p-std gap-2",
1975
1975
  md: "h-9 px-2.5 text-p-std gap-1.5",
1976
1976
  sm: "h-8 px-2 text-p-sm gap-1.5"
1977
1977
  };
1978
- function Qn(...e) {
1978
+ function Zn(...e) {
1979
1979
  return (t) => {
1980
1980
  for (let n of e) n && (typeof n == "function" ? n(t) : n.current = t);
1981
1981
  };
1982
1982
  }
1983
- var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabled: i, onClear: a, children: o, className: s, dataTestId: c, ...u }, d) {
1983
+ var Qn = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabled: i, onClear: a, children: o, className: s, dataTestId: c, ...u }, d) {
1984
1984
  let [f, h] = m(!1), g = p(null);
1985
1985
  l(() => {
1986
1986
  if (!f) return;
@@ -1990,32 +1990,32 @@ var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
1990
1990
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1991
1991
  }, [f]);
1992
1992
  let _ = n || t !== void 0;
1993
- return /* @__PURE__ */ K("div", {
1994
- ref: Qn(d, g),
1993
+ return /* @__PURE__ */ G("div", {
1994
+ ref: Zn(d, g),
1995
1995
  "data-test-id": c,
1996
1996
  className: Y("relative inline-flex", s),
1997
1997
  ...u,
1998
- children: [/* @__PURE__ */ K("button", {
1998
+ children: [/* @__PURE__ */ G("button", {
1999
1999
  type: "button",
2000
2000
  disabled: i,
2001
2001
  onClick: () => h((e) => !e),
2002
2002
  "aria-haspopup": "dialog",
2003
2003
  "aria-expanded": f,
2004
- className: Y("inline-flex items-center rounded-full border transition-colors outline-none", Zn[r], _ ? "bg-brand-20 text-brand-800 border-brand-500" : "bg-bg-default text-fg-default border-border-default", !i && "hover:border-border-strong", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", i && "bg-bg-container text-fg-disabled cursor-not-allowed"),
2004
+ className: Y("inline-flex items-center rounded-full border transition-colors outline-none", Xn[r], _ ? "bg-brand-20 text-brand-800 border-brand-500" : "bg-bg-default text-fg-default border-border-default", !i && "hover:border-border-strong", "focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", i && "bg-bg-container text-fg-disabled cursor-not-allowed"),
2005
2005
  children: [
2006
- /* @__PURE__ */ G("span", {
2006
+ /* @__PURE__ */ W("span", {
2007
2007
  className: "font-medium",
2008
2008
  children: e
2009
2009
  }),
2010
- t !== void 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("span", {
2010
+ t !== void 0 && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("span", {
2011
2011
  className: "mx-0.5 text-fg-tertiary",
2012
2012
  "aria-hidden": !0,
2013
2013
  children: "•"
2014
- }), /* @__PURE__ */ G("span", {
2014
+ }), /* @__PURE__ */ W("span", {
2015
2015
  className: "font-semibold truncate max-w-[140px]",
2016
2016
  children: t
2017
2017
  })] }),
2018
- _ && a ? /* @__PURE__ */ G("span", {
2018
+ _ && a ? /* @__PURE__ */ W("span", {
2019
2019
  role: "button",
2020
2020
  tabIndex: 0,
2021
2021
  "aria-label": "Clear filter",
@@ -2026,18 +2026,18 @@ var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2026
2026
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), a());
2027
2027
  },
2028
2028
  className: "inline-flex items-center justify-center rounded-full p-0.5 hover:bg-black/10",
2029
- children: /* @__PURE__ */ G(H, { className: "h-3 w-3" })
2030
- }) : /* @__PURE__ */ G(S, {
2029
+ children: /* @__PURE__ */ W(V, { className: "h-3 w-3" })
2030
+ }) : /* @__PURE__ */ W(S, {
2031
2031
  className: Y("h-4 w-4 text-fg-secondary transition-transform", f && "rotate-180"),
2032
2032
  "aria-hidden": !0
2033
2033
  })
2034
2034
  ]
2035
- }), f && o && /* @__PURE__ */ G("div", {
2035
+ }), f && o && /* @__PURE__ */ W("div", {
2036
2036
  className: "absolute left-0 top-full mt-1 min-w-[220px] rounded-lg border border-border-default bg-bg-default shadow-z4 z-50 p-3",
2037
2037
  children: o
2038
2038
  })]
2039
2039
  });
2040
- }), er = r(null), tr = a(function({ children: e, className: t, validationSchema: n, defaultValues: r, buttons: i, mode: a = "onBlur", shouldUnregister: o, shouldFocusError: s = !0, formId: c, onSubmit: u, revalidateKey: d, dataTestId: f, ...p }, m) {
2040
+ }), $n = r(null), er = a(function({ children: e, className: t, validationSchema: n, defaultValues: r, buttons: i, mode: a = "onBlur", shouldUnregister: o, shouldFocusError: s = !0, formId: c, onSubmit: u, revalidateKey: d, dataTestId: f, ...p }, m) {
2041
2041
  let { handleSubmit: h, register: g, setValue: _, control: v, formState: y, getValues: b, watch: x, reset: S, clearErrors: C, setError: w, trigger: T, getFieldState: E, unregister: D } = ve({
2042
2042
  mode: a,
2043
2043
  resolver: ye(n),
@@ -2071,31 +2071,31 @@ var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2071
2071
  dirtyFields: M,
2072
2072
  submit: te
2073
2073
  };
2074
- return /* @__PURE__ */ G("form", {
2074
+ return /* @__PURE__ */ W("form", {
2075
2075
  ref: m,
2076
2076
  id: c,
2077
2077
  onSubmit: te,
2078
2078
  "data-test-id": f,
2079
2079
  className: Y("flex flex-col gap-4", t),
2080
2080
  ...p,
2081
- children: /* @__PURE__ */ K(er.Provider, {
2081
+ children: /* @__PURE__ */ G($n.Provider, {
2082
2082
  value: N,
2083
- children: [e, i && i.length > 0 && /* @__PURE__ */ G("div", {
2083
+ children: [e, i && i.length > 0 && /* @__PURE__ */ W("div", {
2084
2084
  className: "flex items-center gap-3",
2085
2085
  "data-test-id": f ? `${f}-buttons` : void 0,
2086
- children: i.map((e, t) => /* @__PURE__ */ G(Z, { ...e }, t))
2086
+ children: i.map((e, t) => /* @__PURE__ */ W(Q, { ...e }, t))
2087
2087
  })]
2088
2088
  })
2089
2089
  });
2090
- }), nr = a(function({ name: e, defaultValue: t, render: n, className: r, dataTestId: i, ...a }, o) {
2091
- let s = c(er);
2090
+ }), tr = a(function({ name: e, defaultValue: t, render: n, className: r, dataTestId: i, ...a }, o) {
2091
+ let s = c($n);
2092
2092
  if (!s) throw Error("FormField must be rendered inside a FormContainer.");
2093
- return /* @__PURE__ */ G("div", {
2093
+ return /* @__PURE__ */ W("div", {
2094
2094
  ref: o,
2095
2095
  className: Y(r),
2096
2096
  "data-test-id": i,
2097
2097
  ...a,
2098
- children: /* @__PURE__ */ G(ge, {
2098
+ children: /* @__PURE__ */ W(ge, {
2099
2099
  control: s.control,
2100
2100
  name: e,
2101
2101
  defaultValue: t,
@@ -2114,35 +2114,35 @@ var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2114
2114
  })
2115
2115
  })
2116
2116
  });
2117
- }), rr = a(function({ icon: e, iconTone: t = "brand", label: n, value: r, action: i, className: a, dataTestId: o, ...s }, c) {
2118
- return /* @__PURE__ */ K("div", {
2117
+ }), nr = a(function({ icon: e, iconTone: t = "brand", label: n, value: r, action: i, className: a, dataTestId: o, ...s }, c) {
2118
+ return /* @__PURE__ */ G("div", {
2119
2119
  ref: c,
2120
2120
  "data-test-id": o,
2121
2121
  className: Y("flex items-start gap-3", a),
2122
2122
  ...s,
2123
2123
  children: [
2124
- /* @__PURE__ */ G(Hn, {
2124
+ /* @__PURE__ */ W(Vn, {
2125
2125
  icon: e,
2126
2126
  tone: t,
2127
2127
  size: "md"
2128
2128
  }),
2129
- /* @__PURE__ */ K("div", {
2129
+ /* @__PURE__ */ G("div", {
2130
2130
  className: "min-w-0 flex-1",
2131
- children: [/* @__PURE__ */ G("div", {
2131
+ children: [/* @__PURE__ */ W("div", {
2132
2132
  className: "text-p-xs font-medium uppercase tracking-widest text-fg-tertiary",
2133
2133
  children: n
2134
- }), /* @__PURE__ */ G("div", {
2134
+ }), /* @__PURE__ */ W("div", {
2135
2135
  className: "text-p-std font-semibold text-fg-default mt-1 break-words",
2136
2136
  children: r
2137
2137
  })]
2138
2138
  }),
2139
- i && /* @__PURE__ */ G("div", {
2139
+ i && /* @__PURE__ */ W("div", {
2140
2140
  className: "shrink-0 flex items-center",
2141
2141
  children: i
2142
2142
  })
2143
2143
  ]
2144
2144
  });
2145
- }), ir = {
2145
+ }), rr = {
2146
2146
  success: {
2147
2147
  container: "bg-green-50 border-green-200",
2148
2148
  iconColor: "text-green-600",
@@ -2156,7 +2156,7 @@ var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2156
2156
  danger: {
2157
2157
  container: "bg-red-50 border-red-200",
2158
2158
  iconColor: "text-red-700",
2159
- DefaultIcon: U
2159
+ DefaultIcon: H
2160
2160
  },
2161
2161
  info: {
2162
2162
  container: "bg-blue-50 border-blue-200",
@@ -2166,57 +2166,57 @@ var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2166
2166
  discovery: {
2167
2167
  container: "bg-purple-50 border-purple-200",
2168
2168
  iconColor: "text-purple-700",
2169
- DefaultIcon: le
2169
+ DefaultIcon: ue
2170
2170
  }
2171
- }, ar = a(function({ variant: e = "info", title: t, description: n, onDismiss: r, actions: i, icon: a, className: o, dataTestId: s, ...c }, l) {
2172
- let { container: u, iconColor: d, DefaultIcon: f } = ir[e];
2173
- return /* @__PURE__ */ K("div", {
2171
+ }, ir = a(function({ variant: e = "info", title: t, description: n, onDismiss: r, actions: i, icon: a, className: o, dataTestId: s, ...c }, l) {
2172
+ let { container: u, iconColor: d, DefaultIcon: f } = rr[e];
2173
+ return /* @__PURE__ */ G("div", {
2174
2174
  ref: l,
2175
2175
  role: "alert",
2176
2176
  "data-test-id": s,
2177
2177
  className: Y("flex gap-3 p-4 border rounded-lg", u, o),
2178
2178
  ...c,
2179
2179
  children: [
2180
- /* @__PURE__ */ G("div", {
2180
+ /* @__PURE__ */ W("div", {
2181
2181
  className: Y("flex-shrink-0 mt-0.5", d),
2182
- children: a ?? /* @__PURE__ */ G(f, {
2182
+ children: a ?? /* @__PURE__ */ W(f, {
2183
2183
  className: "h-5 w-5",
2184
2184
  "aria-hidden": !0
2185
2185
  })
2186
2186
  }),
2187
- /* @__PURE__ */ K("div", {
2187
+ /* @__PURE__ */ G("div", {
2188
2188
  className: "flex-1 min-w-0",
2189
2189
  children: [
2190
- t && /* @__PURE__ */ G("div", {
2190
+ t && /* @__PURE__ */ W("div", {
2191
2191
  className: "text-p-std font-semibold text-fg-default mb-0.5",
2192
2192
  children: t
2193
2193
  }),
2194
- n && /* @__PURE__ */ G("div", {
2194
+ n && /* @__PURE__ */ W("div", {
2195
2195
  className: "text-p-std text-fg-secondary",
2196
2196
  children: n
2197
2197
  }),
2198
- i && /* @__PURE__ */ G("div", {
2198
+ i && /* @__PURE__ */ W("div", {
2199
2199
  className: "mt-3 flex flex-wrap items-center gap-2",
2200
2200
  children: i
2201
2201
  })
2202
2202
  ]
2203
2203
  }),
2204
- r && /* @__PURE__ */ G("button", {
2204
+ r && /* @__PURE__ */ W("button", {
2205
2205
  type: "button",
2206
2206
  onClick: r,
2207
2207
  "aria-label": "Dismiss",
2208
2208
  className: "flex-shrink-0 -mr-1 -mt-1 p-1 rounded-md text-fg-secondary hover:text-fg-default hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
2209
- children: /* @__PURE__ */ G(H, { className: "h-4 w-4" })
2209
+ children: /* @__PURE__ */ W(V, { className: "h-4 w-4" })
2210
2210
  })
2211
2211
  ]
2212
2212
  });
2213
- }), or = a(function({ variant: e = "p-std", weight: t, color: n = "brand", underline: r = "hover", leftIcon: i, rightIcon: a, truncate: o, className: s, children: c, dataTestId: l, target: u, rel: d, ...f }, p) {
2213
+ }), ar = a(function({ variant: e = "p-std", weight: t, color: n = "brand", underline: r = "hover", leftIcon: i, rightIcon: a, truncate: o, className: s, children: c, dataTestId: l, target: u, rel: d, ...f }, p) {
2214
2214
  let m = {
2215
2215
  ...f,
2216
2216
  target: u,
2217
2217
  rel: d ?? (u === "_blank" ? "noopener noreferrer" : void 0)
2218
2218
  };
2219
- return /* @__PURE__ */ K(qn, {
2219
+ return /* @__PURE__ */ G(Kn, {
2220
2220
  as: "a",
2221
2221
  ref: p,
2222
2222
  variant: e,
@@ -2227,24 +2227,24 @@ var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2227
2227
  className: Y("inline-flex items-center gap-1 rounded-sm outline-none transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 focus-visible:ring-offset-1", r === "always" && "underline", r === "hover" && "hover:underline", s),
2228
2228
  ...m,
2229
2229
  children: [
2230
- i && /* @__PURE__ */ G("span", {
2230
+ i && /* @__PURE__ */ W("span", {
2231
2231
  className: "inline-flex shrink-0",
2232
2232
  children: i
2233
2233
  }),
2234
2234
  c,
2235
- a && /* @__PURE__ */ G("span", {
2235
+ a && /* @__PURE__ */ W("span", {
2236
2236
  className: "inline-flex shrink-0",
2237
2237
  children: a
2238
2238
  })
2239
2239
  ]
2240
2240
  });
2241
- }), sr = {
2241
+ }), or = {
2242
2242
  sm: "max-w-sm",
2243
2243
  md: "max-w-md",
2244
2244
  lg: "max-w-lg",
2245
2245
  xl: "max-w-2xl",
2246
2246
  "2xl": "max-w-4xl"
2247
- }, cr = a(function({ open: e, onClose: t, title: n, description: r, children: i, footer: a, size: o = "md", closeOnOverlayClick: s = !0, showClose: c = !0, className: u, dataTestId: d }, f) {
2247
+ }, sr = a(function({ open: e, onClose: t, title: n, description: r, children: i, footer: a, size: o = "md", closeOnOverlayClick: s = !0, showClose: c = !0, className: u, dataTestId: d }, f) {
2248
2248
  let m = p(null);
2249
2249
  return l(() => {
2250
2250
  if (!e) return;
@@ -2260,86 +2260,86 @@ var $n = a(function({ label: e, value: t, active: n = !1, size: r = "md", disabl
2260
2260
  if (!e) return;
2261
2261
  let t = document.activeElement;
2262
2262
  return m.current?.focus(), () => t?.focus?.();
2263
- }, [e]), e ? he(/* @__PURE__ */ K("div", {
2263
+ }, [e]), e ? K(/* @__PURE__ */ G("div", {
2264
2264
  role: "dialog",
2265
2265
  "aria-modal": "true",
2266
2266
  "aria-labelledby": n ? "modal-title" : void 0,
2267
2267
  "aria-describedby": r ? "modal-desc" : void 0,
2268
2268
  className: "fixed inset-0 z-50 flex items-center justify-center p-4",
2269
- children: [/* @__PURE__ */ G("div", {
2269
+ children: [/* @__PURE__ */ W("div", {
2270
2270
  className: "absolute inset-0 bg-black/50",
2271
2271
  onClick: () => s && t(),
2272
2272
  "aria-hidden": !0
2273
- }), /* @__PURE__ */ K("div", {
2274
- ref: Vt(m, f),
2273
+ }), /* @__PURE__ */ G("div", {
2274
+ ref: Bt(m, f),
2275
2275
  tabIndex: -1,
2276
2276
  "data-test-id": d,
2277
- className: Y("relative w-full bg-bg-default rounded-xl shadow-z5 outline-none flex flex-col max-h-[90vh]", sr[o], u),
2277
+ className: Y("relative w-full bg-bg-default rounded-xl shadow-z5 outline-none flex flex-col max-h-[90vh]", or[o], u),
2278
2278
  children: [
2279
- (n || c) && /* @__PURE__ */ K("div", {
2279
+ (n || c) && /* @__PURE__ */ G("div", {
2280
2280
  className: "flex items-start justify-between gap-4 px-6 pt-6 pb-4",
2281
- children: [/* @__PURE__ */ K("div", {
2281
+ children: [/* @__PURE__ */ G("div", {
2282
2282
  className: "flex-1 min-w-0",
2283
- children: [n && /* @__PURE__ */ G("h2", {
2283
+ children: [n && /* @__PURE__ */ W("h2", {
2284
2284
  id: "modal-title",
2285
2285
  className: "text-h-xs font-semibold text-fg-default",
2286
2286
  children: n
2287
- }), r && /* @__PURE__ */ G("p", {
2287
+ }), r && /* @__PURE__ */ W("p", {
2288
2288
  id: "modal-desc",
2289
2289
  className: "mt-1 text-p-std text-fg-secondary",
2290
2290
  children: r
2291
2291
  })]
2292
- }), c && /* @__PURE__ */ G("button", {
2292
+ }), c && /* @__PURE__ */ W("button", {
2293
2293
  type: "button",
2294
2294
  onClick: t,
2295
2295
  "aria-label": "Close",
2296
2296
  className: "-mr-2 -mt-2 p-2 rounded-md text-fg-secondary hover:text-fg-default hover:bg-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300",
2297
- children: /* @__PURE__ */ G(H, { className: "h-5 w-5" })
2297
+ children: /* @__PURE__ */ W(V, { className: "h-5 w-5" })
2298
2298
  })]
2299
2299
  }),
2300
- i && /* @__PURE__ */ G("div", {
2300
+ i && /* @__PURE__ */ W("div", {
2301
2301
  className: "px-6 pb-6 overflow-y-auto",
2302
2302
  children: i
2303
2303
  }),
2304
- a && /* @__PURE__ */ G("div", {
2304
+ a && /* @__PURE__ */ W("div", {
2305
2305
  className: "flex items-center justify-end gap-2 px-6 py-4 border-t border-border-default bg-bg-container rounded-b-xl",
2306
2306
  children: a
2307
2307
  })
2308
2308
  ]
2309
2309
  })]
2310
2310
  }), document.body) : null;
2311
- }), lr = {
2311
+ }), cr = {
2312
2312
  brand: "bg-brand-500 text-white",
2313
2313
  danger: "bg-red-600 text-white",
2314
2314
  success: "bg-green-600 text-white",
2315
2315
  warning: "bg-yellow-600 text-gray-900 dark:text-gray-900",
2316
2316
  info: "bg-blue-600 text-white"
2317
- }, ur = {
2317
+ }, lr = {
2318
2318
  lg: "min-w-[18px] h-[18px] px-1 text-[11px]",
2319
2319
  sm: "min-w-[14px] h-[14px] px-0.5 text-[10px]"
2320
- }, dr = {
2320
+ }, ur = {
2321
2321
  lg: "h-2.5 w-2.5",
2322
2322
  sm: "h-1.5 w-1.5"
2323
2323
  };
2324
- function fr(e, t) {
2324
+ function dr(e, t) {
2325
2325
  return e > t ? `${t}+` : e >= 1e3 ? `${(e / 1e3).toFixed(0)}K` : String(e);
2326
2326
  }
2327
- var pr = a(function({ count: e = 0, max: t = 99, kind: n = "count", size: r = "lg", variant: i = "danger", children: a, showZero: o = !1, className: s, dataTestId: c, ...l }, u) {
2328
- let d = n === "dot" || e > 0 || o, f = a != null && a !== !1, p = d ? /* @__PURE__ */ G("span", {
2327
+ var fr = a(function({ count: e = 0, max: t = 99, kind: n = "count", size: r = "lg", variant: i = "danger", children: a, showZero: o = !1, className: s, dataTestId: c, ...l }, u) {
2328
+ let d = n === "dot" || e > 0 || o, f = a != null && a !== !1, p = d ? /* @__PURE__ */ W("span", {
2329
2329
  ref: u,
2330
2330
  "data-test-id": c,
2331
- className: Y("inline-flex items-center justify-center rounded-full font-semibold ring-2 ring-white", lr[i], n === "count" ? ur[r] : dr[r], f ? "absolute -top-1 -right-1" : "static", s),
2331
+ className: Y("inline-flex items-center justify-center rounded-full font-semibold ring-2 ring-white", cr[i], n === "count" ? lr[r] : ur[r], f ? "absolute -top-1 -right-1" : "static", s),
2332
2332
  ...l,
2333
- children: n === "count" && fr(e, t)
2333
+ children: n === "count" && dr(e, t)
2334
2334
  }) : null;
2335
- return f ? /* @__PURE__ */ K("span", {
2335
+ return f ? /* @__PURE__ */ G("span", {
2336
2336
  className: "relative inline-flex",
2337
2337
  children: [a, p]
2338
2338
  }) : p;
2339
2339
  });
2340
2340
  //#endregion
2341
2341
  //#region src/components/Pagination/Pagination.tsx
2342
- function mr(e, t, n, r) {
2342
+ function pr(e, t, n, r) {
2343
2343
  if (t <= n * 2 + 3 + r * 2) return Array.from({ length: t }, (e, t) => t + 1);
2344
2344
  let i = Math.max(e - n, r + 2), a = Math.min(e + n, t - r - 1), o = i > r + 2, s = a < t - r - 1, c = Array.from({ length: r }, (e, t) => t + 1), l = Array.from({ length: r }, (e, n) => t - r + 1 + n), u = [];
2345
2345
  if (o) {
@@ -2354,49 +2354,49 @@ function mr(e, t, n, r) {
2354
2354
  ...l
2355
2355
  ];
2356
2356
  }
2357
- var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", gr = "text-fg-default hover:bg-bg-subtle disabled:text-fg-disabled disabled:hover:bg-transparent disabled:cursor-not-allowed", _r = a(function({ page: e, pageCount: t, onPageChange: n, siblingCount: r = 1, boundaryCount: i = 1, className: a, dataTestId: o, "aria-label": s, ...c }, l) {
2358
- let u = mr(e, t, r, i), d = e <= 1, f = e >= t;
2359
- return /* @__PURE__ */ K("nav", {
2357
+ var mr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", hr = "text-fg-default hover:bg-bg-subtle disabled:text-fg-disabled disabled:hover:bg-transparent disabled:cursor-not-allowed", gr = a(function({ page: e, pageCount: t, onPageChange: n, siblingCount: r = 1, boundaryCount: i = 1, className: a, dataTestId: o, "aria-label": s, ...c }, l) {
2358
+ let u = pr(e, t, r, i), d = e <= 1, f = e >= t;
2359
+ return /* @__PURE__ */ G("nav", {
2360
2360
  ref: l,
2361
2361
  "aria-label": s ?? "Pagination",
2362
2362
  "data-test-id": o,
2363
2363
  className: Y("inline-flex items-center gap-1", a),
2364
2364
  ...c,
2365
2365
  children: [
2366
- /* @__PURE__ */ G("button", {
2366
+ /* @__PURE__ */ W("button", {
2367
2367
  type: "button",
2368
2368
  onClick: () => !d && n(e - 1),
2369
2369
  disabled: d,
2370
2370
  "aria-label": "Previous page",
2371
- className: Y(hr, gr),
2372
- children: /* @__PURE__ */ G(C, { className: "h-4 w-4" })
2371
+ className: Y(mr, hr),
2372
+ children: /* @__PURE__ */ W(C, { className: "h-4 w-4" })
2373
2373
  }),
2374
2374
  u.map((t, r) => {
2375
- if (t === "ellipsis-left" || t === "ellipsis-right") return /* @__PURE__ */ G("span", {
2375
+ if (t === "ellipsis-left" || t === "ellipsis-right") return /* @__PURE__ */ W("span", {
2376
2376
  "aria-hidden": !0,
2377
2377
  className: "inline-flex items-center justify-center w-9 h-9 text-fg-tertiary",
2378
- children: /* @__PURE__ */ G(ne, { className: "h-4 w-4" })
2378
+ children: /* @__PURE__ */ W(ne, { className: "h-4 w-4" })
2379
2379
  }, `${t}-${r}`);
2380
2380
  let i = t === e;
2381
- return /* @__PURE__ */ G("button", {
2381
+ return /* @__PURE__ */ W("button", {
2382
2382
  type: "button",
2383
2383
  onClick: () => n(t),
2384
2384
  "aria-current": i ? "page" : void 0,
2385
- className: Y(hr, i ? "bg-brand-500 text-white font-semibold hover:bg-brand-600" : "text-fg-default hover:bg-bg-subtle"),
2385
+ className: Y(mr, i ? "bg-brand-500 text-white font-semibold hover:bg-brand-600" : "text-fg-default hover:bg-bg-subtle"),
2386
2386
  children: t
2387
2387
  }, t);
2388
2388
  }),
2389
- /* @__PURE__ */ G("button", {
2389
+ /* @__PURE__ */ W("button", {
2390
2390
  type: "button",
2391
2391
  onClick: () => !f && n(e + 1),
2392
2392
  disabled: f,
2393
2393
  "aria-label": "Next page",
2394
- className: Y(hr, gr),
2395
- children: /* @__PURE__ */ G(w, { className: "h-4 w-4" })
2394
+ className: Y(mr, hr),
2395
+ children: /* @__PURE__ */ W(w, { className: "h-4 w-4" })
2396
2396
  })
2397
2397
  ]
2398
2398
  });
2399
- }), vr = {
2399
+ }), _r = {
2400
2400
  sm: {
2401
2401
  padding: "px-3 py-2",
2402
2402
  avatar: "sm",
@@ -2407,33 +2407,33 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2407
2407
  avatar: "md",
2408
2408
  gap: "gap-3"
2409
2409
  }
2410
- }, yr = {
2410
+ }, vr = {
2411
2411
  default: "border-border-default bg-bg-default hover:border-fg-tertiary/40",
2412
2412
  highlight: "border-brand-500 bg-brand-200/15 dark:bg-brand-500/10 ring-1 ring-brand-500/40",
2413
2413
  warning: "border-yellow-500 bg-yellow-50 dark:bg-yellow-900/20"
2414
- }, br = a(function({ name: e, role: t, avatar: n, variant: r = "default", size: i = "md", badge: a, onClick: o, className: s, dataTestId: c, ...l }, u) {
2415
- let d = vr[i], f = yr[r], p = /* @__PURE__ */ K(W, { children: [
2416
- /* @__PURE__ */ G(_t, {
2414
+ }, yr = a(function({ name: e, role: t, avatar: n, variant: r = "default", size: i = "md", badge: a, onClick: o, className: s, dataTestId: c, ...l }, u) {
2415
+ let d = _r[i], f = vr[r], p = /* @__PURE__ */ G(U, { children: [
2416
+ /* @__PURE__ */ W(gt, {
2417
2417
  src: n,
2418
2418
  name: e,
2419
2419
  size: d.avatar
2420
2420
  }),
2421
- /* @__PURE__ */ K("div", {
2421
+ /* @__PURE__ */ G("div", {
2422
2422
  className: "min-w-0 flex-1",
2423
- children: [/* @__PURE__ */ G("div", {
2423
+ children: [/* @__PURE__ */ W("div", {
2424
2424
  className: "text-p-std font-semibold text-fg-default truncate leading-tight",
2425
2425
  children: e
2426
- }), t && /* @__PURE__ */ G("div", {
2426
+ }), t && /* @__PURE__ */ W("div", {
2427
2427
  className: "text-p-sm text-fg-secondary truncate mt-0.5 leading-tight",
2428
2428
  children: t
2429
2429
  })]
2430
2430
  }),
2431
- a && /* @__PURE__ */ G("span", {
2431
+ a && /* @__PURE__ */ W("span", {
2432
2432
  className: "shrink-0 self-center",
2433
2433
  children: a
2434
2434
  })
2435
2435
  ] }), m = Y("relative inline-flex items-center rounded-xl border transition", d.padding, d.gap, f, o && "cursor-pointer hover:shadow-z1", s);
2436
- return o ? /* @__PURE__ */ G("button", {
2436
+ return o ? /* @__PURE__ */ W("button", {
2437
2437
  ref: u,
2438
2438
  type: "button",
2439
2439
  onClick: o,
@@ -2441,30 +2441,30 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2441
2441
  className: Y(m, "text-left"),
2442
2442
  ...l,
2443
2443
  children: p
2444
- }) : /* @__PURE__ */ G("div", {
2444
+ }) : /* @__PURE__ */ W("div", {
2445
2445
  ref: u,
2446
2446
  "data-test-id": c,
2447
2447
  className: m,
2448
2448
  ...l,
2449
2449
  children: p
2450
2450
  });
2451
- }), xr = {
2451
+ }), br = {
2452
2452
  sm: 29,
2453
2453
  lg: 45
2454
- }, Sr = {
2454
+ }, xr = {
2455
2455
  sm: 2,
2456
2456
  lg: 4
2457
- }, Cr = {
2457
+ }, Sr = {
2458
2458
  sm: "h-1",
2459
2459
  lg: "h-2"
2460
- }, wr = {
2460
+ }, Cr = {
2461
2461
  sm: "text-p-xs",
2462
2462
  lg: "text-p-sm"
2463
- }, Tr = a(function({ variant: e = "linear", size: t = "lg", percent: n = 0, stepCount: r, currentStep: i, hideLabel: a = !1, dimension: o, loop: s = !1, className: c, dataTestId: l, ...u }, d) {
2463
+ }, wr = a(function({ variant: e = "linear", size: t = "lg", percent: n = 0, stepCount: r, currentStep: i, hideLabel: a = !1, dimension: o, loop: s = !1, className: c, dataTestId: l, ...u }, d) {
2464
2464
  let f = r && i ? i / r * 100 : n, p = Math.min(100, Math.max(0, f)), m = r ? `${i}/${r}` : `${Math.round(p)}%`;
2465
2465
  if (e === "circular") {
2466
- let e = o ?? xr[t], n = e - 5, r = 2 * n * Math.PI, i = Sr[t];
2467
- return /* @__PURE__ */ K("div", {
2466
+ let e = o ?? br[t], n = e - 5, r = 2 * n * Math.PI, i = xr[t];
2467
+ return /* @__PURE__ */ G("div", {
2468
2468
  ref: d,
2469
2469
  role: "progressbar",
2470
2470
  "aria-valuemin": 0,
@@ -2478,18 +2478,18 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2478
2478
  height: e * 2
2479
2479
  },
2480
2480
  ...u,
2481
- children: [/* @__PURE__ */ K("svg", {
2481
+ children: [/* @__PURE__ */ G("svg", {
2482
2482
  width: e * 2,
2483
2483
  height: e * 2,
2484
2484
  viewBox: `0 0 ${e * 2} ${e * 2}`,
2485
2485
  className: Y("-rotate-90", s && "animate-spin"),
2486
- children: [/* @__PURE__ */ G("circle", {
2486
+ children: [/* @__PURE__ */ W("circle", {
2487
2487
  cx: e,
2488
2488
  cy: e,
2489
2489
  r: n,
2490
2490
  strokeWidth: i,
2491
2491
  className: "fill-none stroke-bg-subtle"
2492
- }), /* @__PURE__ */ G("circle", {
2492
+ }), /* @__PURE__ */ W("circle", {
2493
2493
  cx: e,
2494
2494
  cy: e,
2495
2495
  r: n,
@@ -2501,14 +2501,14 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2501
2501
  strokeDashoffset: s ? `${r * .75}px` : `${r - r * p / 100}px`
2502
2502
  }
2503
2503
  })]
2504
- }), !a && !s && /* @__PURE__ */ G("span", {
2505
- className: Y("absolute text-fg-secondary", wr[t]),
2504
+ }), !a && !s && /* @__PURE__ */ W("span", {
2505
+ className: Y("absolute text-fg-secondary", Cr[t]),
2506
2506
  "data-test-id": l ? `${l}-text` : void 0,
2507
2507
  children: m
2508
2508
  })]
2509
2509
  });
2510
2510
  }
2511
- return /* @__PURE__ */ K("div", {
2511
+ return /* @__PURE__ */ G("div", {
2512
2512
  ref: d,
2513
2513
  role: "progressbar",
2514
2514
  "aria-valuemin": 0,
@@ -2518,20 +2518,20 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2518
2518
  "data-test-id": l,
2519
2519
  className: Y("flex w-full items-center gap-2", c),
2520
2520
  ...u,
2521
- children: [/* @__PURE__ */ G("div", {
2522
- className: Y("w-full overflow-hidden rounded-full bg-bg-subtle", Cr[t]),
2523
- children: /* @__PURE__ */ G("div", {
2521
+ children: [/* @__PURE__ */ W("div", {
2522
+ className: Y("w-full overflow-hidden rounded-full bg-bg-subtle", Sr[t]),
2523
+ children: /* @__PURE__ */ W("div", {
2524
2524
  className: "h-full rounded-full bg-brand-500 transition-all duration-300 ease-linear",
2525
2525
  style: { width: `${p}%` }
2526
2526
  })
2527
- }), !a && /* @__PURE__ */ G("span", {
2528
- className: Y("shrink-0 text-fg-secondary", wr[t]),
2527
+ }), !a && /* @__PURE__ */ W("span", {
2528
+ className: Y("shrink-0 text-fg-secondary", Cr[t]),
2529
2529
  "data-test-id": l ? `${l}-text` : void 0,
2530
2530
  children: m
2531
2531
  })]
2532
2532
  });
2533
- }), Er = r(null), Dr = a(function({ name: e, label: t, value: n, defaultValue: r, onChange: i, disabled: a, required: o, error: s, errorText: c, helperText: l, size: d = "md", orientation: f = "vertical", children: p, className: m, wrapperClassName: h, dataTestId: g }, _) {
2534
- let v = u(), y = e ?? v, b = `${v}-label`, x = s || !!c, S = c ? `${v}-error` : l ? `${v}-help` : void 0, C = /* @__PURE__ */ G("div", {
2533
+ }), Tr = r(null), Er = a(function({ name: e, label: t, value: n, defaultValue: r, onChange: i, disabled: a, required: o, error: s, errorText: c, helperText: l, size: d = "md", orientation: f = "vertical", children: p, className: m, wrapperClassName: h, dataTestId: g }, _) {
2534
+ let v = u(), y = e ?? v, b = `${v}-label`, x = s || !!c, S = c ? `${v}-error` : l ? `${v}-help` : void 0, C = /* @__PURE__ */ W("div", {
2535
2535
  ref: _,
2536
2536
  role: "radiogroup",
2537
2537
  "aria-labelledby": t ? b : void 0,
@@ -2542,7 +2542,7 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2542
2542
  className: Y("flex gap-3", f === "vertical" ? "flex-col" : "flex-row flex-wrap items-center gap-4", m),
2543
2543
  children: p
2544
2544
  });
2545
- return /* @__PURE__ */ G(Er.Provider, {
2545
+ return /* @__PURE__ */ W(Tr.Provider, {
2546
2546
  value: {
2547
2547
  name: y,
2548
2548
  value: n,
@@ -2552,24 +2552,24 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2552
2552
  size: d,
2553
2553
  error: x
2554
2554
  },
2555
- children: t || c || l ? /* @__PURE__ */ K("div", {
2555
+ children: t || c || l ? /* @__PURE__ */ G("div", {
2556
2556
  className: Y("flex flex-col gap-1.5", h),
2557
2557
  children: [
2558
- t && /* @__PURE__ */ K("span", {
2558
+ t && /* @__PURE__ */ G("span", {
2559
2559
  id: b,
2560
2560
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
2561
- children: [t, o && /* @__PURE__ */ G("span", {
2561
+ children: [t, o && /* @__PURE__ */ W("span", {
2562
2562
  className: "text-red-600",
2563
2563
  "aria-hidden": !0,
2564
2564
  children: "*"
2565
2565
  })]
2566
2566
  }),
2567
2567
  C,
2568
- c ? /* @__PURE__ */ G("p", {
2568
+ c ? /* @__PURE__ */ W("p", {
2569
2569
  id: `${v}-error`,
2570
2570
  className: "text-p-sm text-red-700",
2571
2571
  children: c
2572
- }) : l ? /* @__PURE__ */ G("p", {
2572
+ }) : l ? /* @__PURE__ */ W("p", {
2573
2573
  id: `${v}-help`,
2574
2574
  className: "text-p-sm text-fg-secondary",
2575
2575
  children: l
@@ -2577,21 +2577,21 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2577
2577
  ]
2578
2578
  }) : C
2579
2579
  });
2580
- }), Or = {
2580
+ }), Dr = {
2581
2581
  md: "h-5 w-5",
2582
2582
  sm: "h-4 w-4"
2583
- }, kr = {
2583
+ }, Or = {
2584
2584
  md: "h-2 w-2",
2585
2585
  sm: "h-1.5 w-1.5"
2586
- }, Ar = a(function({ value: e, size: t, label: n, description: r, error: i = !1, id: a, disabled: o, checked: s, defaultChecked: l, onChange: d, className: f, dataTestId: p, ...m }, h) {
2587
- let g = c(Er), _ = u(), v = a ?? _, y = t ?? g?.size ?? "md", b = o ?? g?.disabled, x = i || !!g?.error, S = g !== null, C = S && g.value !== void 0 ? qe(g.value, e) : void 0, w = S && g.defaultValue !== void 0 ? qe(g.defaultValue, e) : void 0, T = S ? C : s, E = S ? w : l;
2588
- return /* @__PURE__ */ K("label", {
2586
+ }, kr = a(function({ value: e, size: t, label: n, description: r, error: i = !1, id: a, disabled: o, checked: s, defaultChecked: l, onChange: d, className: f, dataTestId: p, ...m }, h) {
2587
+ let g = c(Tr), _ = u(), v = a ?? _, y = t ?? g?.size ?? "md", b = o ?? g?.disabled, x = i || !!g?.error, S = g !== null, C = S && g.value !== void 0 ? X(g.value, e) : void 0, w = S && g.defaultValue !== void 0 ? X(g.defaultValue, e) : void 0, T = S ? C : s, E = S ? w : l;
2588
+ return /* @__PURE__ */ G("label", {
2589
2589
  htmlFor: v,
2590
2590
  "data-test-id": p,
2591
2591
  className: Y("inline-flex items-center gap-2.5", b ? "cursor-not-allowed opacity-60" : "cursor-pointer", f),
2592
- children: [/* @__PURE__ */ K("span", {
2592
+ children: [/* @__PURE__ */ G("span", {
2593
2593
  className: "relative inline-flex shrink-0 items-center justify-center mt-0.5",
2594
- children: [/* @__PURE__ */ G("input", {
2594
+ children: [/* @__PURE__ */ W("input", {
2595
2595
  ref: h,
2596
2596
  id: v,
2597
2597
  type: "radio",
@@ -2606,37 +2606,37 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2606
2606
  className: "peer sr-only",
2607
2607
  "aria-invalid": x || void 0,
2608
2608
  ...m
2609
- }), /* @__PURE__ */ G("span", {
2610
- className: Y("flex items-center justify-center rounded-full border bg-bg-default transition-colors", Or[y], x ? "border-red-600" : "border-border-strong", !b && !x && "peer-hover:border-fg-tertiary", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-1", "peer-checked:border-brand-500", b && "!bg-bg-subtle !border-border-default", "[&>span]:opacity-0 peer-checked:[&>span]:opacity-100"),
2611
- children: /* @__PURE__ */ G("span", { className: Y("rounded-full bg-brand-500 transition-opacity", kr[y], b && "!bg-fg-disabled") })
2609
+ }), /* @__PURE__ */ W("span", {
2610
+ className: Y("flex items-center justify-center rounded-full border bg-bg-default transition-colors", Dr[y], x ? "border-red-600" : "border-border-strong", !b && !x && "peer-hover:border-fg-tertiary", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-1", "peer-checked:border-brand-500", b && "!bg-bg-subtle !border-border-default", "[&>span]:opacity-0 peer-checked:[&>span]:opacity-100"),
2611
+ children: /* @__PURE__ */ W("span", { className: Y("rounded-full bg-brand-500 transition-opacity", Or[y], b && "!bg-fg-disabled") })
2612
2612
  })]
2613
- }), (n || r) && /* @__PURE__ */ K("span", {
2613
+ }), (n || r) && /* @__PURE__ */ G("span", {
2614
2614
  className: "flex flex-col gap-0.5",
2615
- children: [n && /* @__PURE__ */ G("span", {
2615
+ children: [n && /* @__PURE__ */ W("span", {
2616
2616
  className: "text-p-std font-medium text-fg-default leading-tight",
2617
2617
  children: n
2618
- }), r && /* @__PURE__ */ G("span", {
2618
+ }), r && /* @__PURE__ */ W("span", {
2619
2619
  className: "text-p-sm text-fg-secondary leading-snug",
2620
2620
  children: r
2621
2621
  })]
2622
2622
  })]
2623
2623
  });
2624
- }), jr = a(function({ children: e, clamp: t = 3, collapsedContent: n, expandLabel: r = "Show more", collapseLabel: i = "Show less", defaultExpanded: a = !1, expanded: o, onExpandedChange: s, textProps: c, className: l, dataTestId: d, ...f }, p) {
2624
+ }), Ar = a(function({ children: e, clamp: t = 3, collapsedContent: n, expandLabel: r = "Show more", collapseLabel: i = "Show less", defaultExpanded: a = !1, expanded: o, onExpandedChange: s, textProps: c, className: l, dataTestId: d, ...f }, p) {
2625
2625
  let [h, g] = m(a), _ = o !== void 0, v = _ ? o : h, y = u(), b = () => {
2626
2626
  let e = !v;
2627
2627
  _ || g(e), s?.(e);
2628
2628
  };
2629
- return /* @__PURE__ */ K("div", {
2629
+ return /* @__PURE__ */ G("div", {
2630
2630
  ref: p,
2631
2631
  "data-test-id": d,
2632
2632
  className: Y("flex flex-col gap-1", l),
2633
2633
  ...f,
2634
- children: [/* @__PURE__ */ G(qn, {
2634
+ children: [/* @__PURE__ */ W(Kn, {
2635
2635
  id: y,
2636
2636
  clamp: v ? void 0 : t,
2637
2637
  ...c,
2638
2638
  children: v ? e : n ?? e
2639
- }), /* @__PURE__ */ G("button", {
2639
+ }), /* @__PURE__ */ W("button", {
2640
2640
  type: "button",
2641
2641
  onClick: (e) => {
2642
2642
  e.stopPropagation(), b();
@@ -2650,7 +2650,7 @@ var hr = "inline-flex items-center justify-center min-w-9 h-9 px-2 text-p-std ro
2650
2650
  });
2651
2651
  //#endregion
2652
2652
  //#region src/components/SelectV2/useVisibleTagCount.ts
2653
- function Mr({ wrapperRef: e, measureRef: t, total: n, labelsKey: r, enabled: i }) {
2653
+ function jr({ wrapperRef: e, measureRef: t, total: n, labelsKey: r, enabled: i }) {
2654
2654
  let [a, o] = m(n);
2655
2655
  return d(() => {
2656
2656
  if (!i) return;
@@ -2694,7 +2694,7 @@ function Mr({ wrapperRef: e, measureRef: t, total: n, labelsKey: r, enabled: i }
2694
2694
  }
2695
2695
  //#endregion
2696
2696
  //#region src/components/SelectV2/SelectV2.i18n.ts
2697
- var Nr = {
2697
+ var Mr = {
2698
2698
  "en-US": {
2699
2699
  placeholder: "Select…",
2700
2700
  noResults: "No results",
@@ -2719,33 +2719,33 @@ var Nr = {
2719
2719
  deselectAllLabel: (e) => `Ապընտրել բոլորը (${e})`,
2720
2720
  createLabel: (e) => `Ստեղծել «${e}»`
2721
2721
  }
2722
- }, Pr = {
2722
+ }, Nr = {
2723
2723
  lg: "min-h-12 text-p-md",
2724
2724
  md: "min-h-10 text-p-std",
2725
2725
  sm: "min-h-8 text-p-sm"
2726
- }, Fr = {
2726
+ }, Pr = {
2727
2727
  lg: "px-3.5 py-1.5",
2728
2728
  md: "px-3 py-1",
2729
2729
  sm: "px-2.5 py-0.5"
2730
- }, Ir = "flex items-center gap-1 rounded-md bg-bg-subtle pl-2 pr-1 py-0.5 max-w-full", Lr = "truncate text-p-sm text-fg-default", Rr = "rounded-sm text-fg-secondary hover:bg-bg-container hover:text-fg-default cursor-pointer", zr = "flex items-center rounded-md bg-bg-info-lighter px-2 py-0.5 text-p-sm text-blue-800 dark:text-blue-300 shrink-0", Br = 36;
2731
- function Vr(e) {
2730
+ }, Fr = "flex items-center gap-1 rounded-md bg-bg-subtle pl-2 pr-1 py-0.5 max-w-full", Ir = "truncate text-p-sm text-fg-default", Lr = "rounded-sm text-fg-secondary hover:bg-bg-container hover:text-fg-default cursor-pointer", Rr = "flex items-center rounded-md bg-bg-info-lighter px-2 py-0.5 text-p-sm text-blue-800 dark:text-blue-300 shrink-0", zr = 36;
2731
+ function Br(e) {
2732
2732
  return e.searchText ?? (typeof e.label == "string" ? e.label : String(e.value));
2733
2733
  }
2734
- function Hr(e, t) {
2734
+ function Vr(e, t) {
2735
2735
  let n = t.trim().toLowerCase();
2736
- return !n || `${Vr(e)} ${String(e.value)}`.toLowerCase().includes(n);
2736
+ return !n || `${Br(e)} ${String(e.value)}`.toLowerCase().includes(n);
2737
2737
  }
2738
- function Ur(e, t, n) {
2738
+ function Hr(e, t, n) {
2739
2739
  return {
2740
2740
  container: () => "w-full",
2741
- control: ({ isFocused: n, isDisabled: r }) => Y("flex items-center rounded-lg border bg-bg-default transition-colors", r ? "cursor-not-allowed" : "cursor-text", Pr[e], t ? "border-red-600" : "border-border-default", !r && !t && "hover:border-border-strong", n && !t && "ring-2 ring-brand-300 border-brand-500", n && t && "ring-2 ring-red-300 border-red-600", r && "bg-bg-container border-border-default"),
2742
- valueContainer: () => Y("flex flex-1 items-center gap-1 min-w-0 sv2-value-container", n ? "flex-nowrap! overflow-hidden" : "flex-wrap", Fr[e]),
2741
+ control: ({ isFocused: n, isDisabled: r }) => Y("flex items-center rounded-lg border bg-bg-default transition-colors", r ? "cursor-not-allowed" : "cursor-text", Nr[e], t ? "border-red-600" : "border-border-default", !r && !t && "hover:border-border-strong", n && !t && "ring-2 ring-brand-300 border-brand-500", n && t && "ring-2 ring-red-300 border-red-600", r && "bg-bg-container border-border-default"),
2742
+ valueContainer: () => Y("flex flex-1 items-center gap-1 min-w-0 sv2-value-container", n ? "flex-nowrap! overflow-hidden" : "flex-wrap", Pr[e]),
2743
2743
  placeholder: () => "text-fg-tertiary truncate",
2744
2744
  singleValue: () => "text-fg-default truncate min-w-0",
2745
2745
  input: () => "text-fg-default",
2746
- multiValue: () => Ir,
2747
- multiValueLabel: () => Lr,
2748
- multiValueRemove: () => Rr,
2746
+ multiValue: () => Fr,
2747
+ multiValueLabel: () => Ir,
2748
+ multiValueRemove: () => Lr,
2749
2749
  indicatorsContainer: () => "flex items-center gap-1 pr-2 shrink-0",
2750
2750
  clearIndicator: () => "text-fg-secondary hover:text-fg-default cursor-pointer p-0.5",
2751
2751
  dropdownIndicator: () => "text-fg-secondary p-0.5",
@@ -2760,66 +2760,66 @@ function Ur(e, t, n) {
2760
2760
  loadingMessage: () => "px-3 py-6 text-center text-p-sm text-fg-secondary"
2761
2761
  };
2762
2762
  }
2763
- function Wr(e) {
2764
- return /* @__PURE__ */ G(xe.DropdownIndicator, {
2763
+ function Ur(e) {
2764
+ return /* @__PURE__ */ W(xe.DropdownIndicator, {
2765
2765
  ...e,
2766
- children: /* @__PURE__ */ G(S, {
2766
+ children: /* @__PURE__ */ W(S, {
2767
2767
  className: Y("h-4 w-4 transition-transform", e.selectProps.menuIsOpen && "rotate-180"),
2768
2768
  "aria-hidden": !0
2769
2769
  })
2770
2770
  });
2771
2771
  }
2772
- function Gr(e) {
2773
- return /* @__PURE__ */ G(xe.ClearIndicator, {
2772
+ function Wr(e) {
2773
+ return /* @__PURE__ */ W(xe.ClearIndicator, {
2774
2774
  ...e,
2775
- children: /* @__PURE__ */ G(H, {
2775
+ children: /* @__PURE__ */ W(V, {
2776
2776
  className: "h-3.5 w-3.5",
2777
2777
  "aria-hidden": !0
2778
2778
  })
2779
2779
  });
2780
2780
  }
2781
- function Kr(e) {
2782
- return /* @__PURE__ */ G(xe.MultiValueRemove, {
2781
+ function Gr(e) {
2782
+ return /* @__PURE__ */ W(xe.MultiValueRemove, {
2783
2783
  ...e,
2784
- children: /* @__PURE__ */ G(H, {
2784
+ children: /* @__PURE__ */ W(V, {
2785
2785
  className: "h-3 w-3",
2786
2786
  "aria-hidden": !0
2787
2787
  })
2788
2788
  });
2789
2789
  }
2790
- function qr(e) {
2790
+ function Kr(e) {
2791
2791
  let { visibleTagCount: t } = e.selectProps;
2792
- return t === void 0 || e.index < t ? /* @__PURE__ */ G(xe.MultiValue, { ...e }) : e.index === t ? /* @__PURE__ */ K("span", {
2793
- className: zr,
2792
+ return t === void 0 || e.index < t ? /* @__PURE__ */ W(xe.MultiValue, { ...e }) : e.index === t ? /* @__PURE__ */ G("span", {
2793
+ className: Rr,
2794
2794
  children: ["+", (Array.isArray(e.selectProps.value) ? e.selectProps.value.length : 0) - t]
2795
2795
  }) : null;
2796
2796
  }
2797
- function Jr(e) {
2798
- return /* @__PURE__ */ K(xe.Option, {
2797
+ function qr(e) {
2798
+ return /* @__PURE__ */ G(xe.Option, {
2799
2799
  ...e,
2800
- children: [e.children, e.isSelected && /* @__PURE__ */ G(b, {
2800
+ children: [e.children, e.isSelected && /* @__PURE__ */ W(b, {
2801
2801
  className: "h-4 w-4 text-fg-brand shrink-0",
2802
2802
  "aria-hidden": !0
2803
2803
  })]
2804
2804
  });
2805
2805
  }
2806
- function Yr() {
2807
- return /* @__PURE__ */ G(P, {
2806
+ function Jr() {
2807
+ return /* @__PURE__ */ W(P, {
2808
2808
  className: "h-4 w-4 animate-spin text-fg-secondary",
2809
2809
  "aria-hidden": !0
2810
2810
  });
2811
2811
  }
2812
- function Xr(e) {
2812
+ function Yr(e) {
2813
2813
  let { selectAllState: t, onSelectAllToggle: n } = e.selectProps;
2814
- return /* @__PURE__ */ K(xe.Menu, {
2814
+ return /* @__PURE__ */ G(xe.Menu, {
2815
2815
  ...e,
2816
- children: [t && /* @__PURE__ */ G("div", {
2816
+ children: [t && /* @__PURE__ */ W("div", {
2817
2817
  className: "border-b border-border-default px-3 py-2",
2818
2818
  onMouseDown: (e) => e.preventDefault(),
2819
2819
  onClick: (e) => {
2820
2820
  e.preventDefault(), n?.();
2821
2821
  },
2822
- children: /* @__PURE__ */ G(Bt, {
2822
+ children: /* @__PURE__ */ W(zt, {
2823
2823
  size: "sm",
2824
2824
  checked: t.checked,
2825
2825
  indeterminate: t.indeterminate,
@@ -2829,25 +2829,25 @@ function Xr(e) {
2829
2829
  }), e.children]
2830
2830
  });
2831
2831
  }
2832
- function Zr(t) {
2832
+ function Xr(t) {
2833
2833
  let { children: n, innerRef: r, innerProps: i, maxHeight: a } = t, o = e.toArray(n), s = p(null), c = Te({
2834
2834
  count: o.length,
2835
2835
  getScrollElement: () => s.current,
2836
- estimateSize: () => Br,
2836
+ estimateSize: () => zr,
2837
2837
  overscan: 8
2838
2838
  });
2839
- return /* @__PURE__ */ G("div", {
2839
+ return /* @__PURE__ */ W("div", {
2840
2840
  ...i,
2841
- ref: Vt(r, s),
2841
+ ref: Bt(r, s),
2842
2842
  className: "overflow-y-auto py-1",
2843
2843
  style: { maxHeight: a },
2844
- children: /* @__PURE__ */ G("div", {
2844
+ children: /* @__PURE__ */ W("div", {
2845
2845
  style: {
2846
2846
  height: c.getTotalSize(),
2847
2847
  position: "relative",
2848
2848
  width: "100%"
2849
2849
  },
2850
- children: c.getVirtualItems().map((e) => /* @__PURE__ */ G("div", {
2850
+ children: c.getVirtualItems().map((e) => /* @__PURE__ */ W("div", {
2851
2851
  style: {
2852
2852
  position: "absolute",
2853
2853
  top: 0,
@@ -2860,14 +2860,14 @@ function Zr(t) {
2860
2860
  })
2861
2861
  });
2862
2862
  }
2863
- var Qr = a(function(e, t) {
2864
- 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: te, dataTestId: N, ...P } = e, F = e.isMulti ? !!e.singleLine : !1, I = Nr[k], L = _ ?? I.placeholder, ne = O ?? I.noResults, R = c ?? ((e) => I.createLabel(e)), re = u(), z = M ?? re, ie = S || !!x, ae = d !== void 0, [oe, se] = m(l ? void 0 : h), [B, ce] = m(l ? h ?? [] : []), [le, ue] = m(() => {
2863
+ var Zr = a(function(e, t) {
2864
+ 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: te, dataTestId: N, ...P } = e, F = e.isMulti ? !!e.singleLine : !1, I = Mr[k], L = _ ?? I.placeholder, ne = O ?? I.noResults, re = c ?? ((e) => I.createLabel(e)), ie = u(), R = M ?? ie, ae = S || !!x, oe = d !== void 0, [se, ce] = m(l ? void 0 : h), [z, le] = m(l ? h ?? [] : []), [ue, de] = m(() => {
2865
2865
  let e = /* @__PURE__ */ new Map();
2866
2866
  for (let t of n) e.set(String(t.value), t);
2867
2867
  if (Array.isArray(i)) for (let t of i) e.set(String(t.value), t);
2868
2868
  return e;
2869
- }), V = s((e) => {
2870
- e.length !== 0 && ue((t) => {
2869
+ }), B = s((e) => {
2870
+ e.length !== 0 && de((t) => {
2871
2871
  let n = !1, r = new Map(t);
2872
2872
  for (let t of e) {
2873
2873
  let e = String(t.value);
@@ -2877,55 +2877,55 @@ var Qr = a(function(e, t) {
2877
2877
  });
2878
2878
  }, []);
2879
2879
  f(() => {
2880
- V(n);
2881
- }, [n, V]);
2882
- let de = s((e) => le.get(String(e)) ?? {
2880
+ B(n);
2881
+ }, [n, B]);
2882
+ let fe = s((e) => ue.get(String(e)) ?? {
2883
2883
  value: e,
2884
2884
  label: String(e)
2885
- }, [le]), fe = ae ? d : oe, U = f(() => (ae ? d : B) ?? [], [
2886
- ae,
2885
+ }, [ue]), pe = oe ? d : se, H = f(() => (oe ? d : z) ?? [], [
2886
+ oe,
2887
2887
  d,
2888
- B
2889
- ]), pe = !l && fe !== void 0 ? de(fe) : null, me = l ? U.map(de) : [], W = f(() => {
2890
- if (r) return (e) => Promise.resolve(r(e)).then((e) => (V(e), e));
2891
- }, [r, V]), he = s((e) => {
2888
+ z
2889
+ ]), me = !l && pe !== void 0 ? fe(pe) : null, he = l ? H.map(fe) : [], U = f(() => {
2890
+ if (r) return (e) => Promise.resolve(r(e)).then((e) => (B(e), e));
2891
+ }, [r, B]), K = s((e) => {
2892
2892
  if (l) {
2893
2893
  let t = [...e ?? []];
2894
- V(t);
2894
+ B(t);
2895
2895
  let n = t.map((e) => e.value);
2896
- ce(n), g?.(n);
2896
+ le(n), g?.(n);
2897
2897
  } else {
2898
2898
  let t = e;
2899
- t && V([t]), se(t?.value), g?.(t?.value ?? void 0);
2899
+ t && B([t]), ce(t?.value), g?.(t?.value ?? void 0);
2900
2900
  }
2901
2901
  }, [
2902
2902
  l,
2903
- V,
2903
+ B,
2904
2904
  g
2905
2905
  ]), ge = s((e) => {
2906
2906
  let t = {
2907
2907
  value: e,
2908
2908
  label: e
2909
2909
  };
2910
- if (V([t]), o?.(e), l) {
2911
- let e = [...U, t.value];
2912
- ce(e), g?.(e);
2913
- } else se(t.value), g?.(t.value);
2910
+ if (B([t]), o?.(e), l) {
2911
+ let e = [...H, t.value];
2912
+ le(e), g?.(e);
2913
+ } else ce(t.value), g?.(t.value);
2914
2914
  }, [
2915
2915
  l,
2916
- U,
2917
- V,
2916
+ H,
2917
+ B,
2918
2918
  g,
2919
2919
  o
2920
- ]), _e = !!r, ve = _e ? a ? we : Se : a ? Ce : be, ye = f(() => Ur(A, ie, F), [
2920
+ ]), _e = !!r, ve = _e ? a ? we : Se : a ? Ce : be, ye = f(() => Hr(A, ae, F), [
2921
2921
  A,
2922
- ie,
2922
+ ae,
2923
2923
  F
2924
- ]), xe = p(null), Te = p(null), q = !!l && F, Ee = Mr({
2924
+ ]), xe = p(null), Te = p(null), q = !!l && F, Ee = jr({
2925
2925
  wrapperRef: xe,
2926
2926
  measureRef: Te,
2927
- total: me.length,
2928
- labelsKey: me.map(Vr).join("\0"),
2927
+ total: he.length,
2928
+ labelsKey: he.map(Br).join("\0"),
2929
2929
  enabled: q
2930
2930
  }), De = f(() => n.some((e) => !!e.description), [n]), Oe = f(() => {
2931
2931
  if (!n.some((e) => e.group)) return n;
@@ -2944,13 +2944,13 @@ var Qr = a(function(e, t) {
2944
2944
  return t;
2945
2945
  }, [n]), ke = !!l && !_e, [Ae, je] = m(""), Me = s((e, t) => {
2946
2946
  t.action === "input-change" && je(e);
2947
- }, []), J = f(() => ke ? n.filter((e) => !e.disabled && Hr(e, Ae)) : [], [
2947
+ }, []), J = f(() => ke ? n.filter((e) => !e.disabled && Vr(e, Ae)) : [], [
2948
2948
  ke,
2949
2949
  n,
2950
2950
  Ae
2951
2951
  ]), Ne = f(() => {
2952
2952
  if (!ke || J.length === 0) return null;
2953
- let e = new Set(U.map(String)), t = J.filter((t) => e.has(String(t.value))).length, n = t === J.length;
2953
+ let e = new Set(H.map(String)), t = J.filter((t) => e.has(String(t.value))).length, n = t === J.length;
2954
2954
  return {
2955
2955
  count: J.length,
2956
2956
  checked: n,
@@ -2960,46 +2960,46 @@ var Qr = a(function(e, t) {
2960
2960
  }, [
2961
2961
  ke,
2962
2962
  J,
2963
- U,
2963
+ H,
2964
2964
  I
2965
2965
  ]), Pe = s(() => {
2966
2966
  if (!Ne) return;
2967
2967
  let e = new Set(J.map((e) => String(e.value))), t;
2968
- if (Ne.checked) t = U.filter((t) => !e.has(String(t)));
2968
+ if (Ne.checked) t = H.filter((t) => !e.has(String(t)));
2969
2969
  else {
2970
- V(J);
2971
- let e = new Set(U.map(String));
2972
- t = [...U, ...J.filter((t) => !e.has(String(t.value))).map((e) => e.value)];
2970
+ B(J);
2971
+ let e = new Set(H.map(String));
2972
+ t = [...H, ...J.filter((t) => !e.has(String(t.value))).map((e) => e.value)];
2973
2973
  }
2974
- ce(t), g?.(t);
2974
+ le(t), g?.(t);
2975
2975
  }, [
2976
2976
  Ne,
2977
2977
  J,
2978
- U,
2979
- V,
2978
+ H,
2979
+ B,
2980
2980
  g
2981
2981
  ]), Fe = {
2982
2982
  ...P,
2983
- inputId: z,
2983
+ inputId: R,
2984
2984
  unstyled: !0,
2985
2985
  classNames: ye,
2986
2986
  className: ee,
2987
2987
  isMulti: l,
2988
2988
  options: Oe,
2989
- loadOptions: W,
2989
+ loadOptions: U,
2990
2990
  defaultOptions: i,
2991
- value: l ? me : pe,
2992
- onChange: he,
2991
+ value: l ? he : me,
2992
+ onChange: K,
2993
2993
  onCreateOption: a ? ge : void 0,
2994
- formatCreateLabel: a ? R : void 0,
2994
+ formatCreateLabel: a ? re : void 0,
2995
2995
  getOptionValue: (e) => String(e.value),
2996
- getOptionLabel: Vr,
2997
- formatOptionLabel: (e, t) => t.context === "value" ? e.label : De && e.description ? /* @__PURE__ */ K("span", {
2996
+ getOptionLabel: Br,
2997
+ formatOptionLabel: (e, t) => t.context === "value" ? e.label : De && e.description ? /* @__PURE__ */ G("span", {
2998
2998
  className: "flex flex-col min-w-0",
2999
- children: [/* @__PURE__ */ G("span", {
2999
+ children: [/* @__PURE__ */ W("span", {
3000
3000
  className: "truncate",
3001
3001
  children: e.label
3002
- }), /* @__PURE__ */ G("span", {
3002
+ }), /* @__PURE__ */ W("span", {
3003
3003
  className: "truncate text-p-sm text-fg-secondary",
3004
3004
  children: e.description
3005
3005
  })]
@@ -3012,7 +3012,7 @@ var Qr = a(function(e, t) {
3012
3012
  isLoading: w || void 0,
3013
3013
  noOptionsMessage: () => ne,
3014
3014
  loadingMessage: () => I.loadingMessage,
3015
- "aria-invalid": ie || void 0,
3015
+ "aria-invalid": ae || void 0,
3016
3016
  "aria-required": C || void 0,
3017
3017
  ...ke ? {
3018
3018
  inputValue: Ae,
@@ -3027,42 +3027,42 @@ var Qr = a(function(e, t) {
3027
3027
  } : {},
3028
3028
  menuPlacement: P.menuPlacement ?? "auto",
3029
3029
  components: {
3030
- DropdownIndicator: Wr,
3031
- ClearIndicator: Gr,
3032
- MultiValueRemove: Kr,
3033
- LoadingIndicator: Yr,
3030
+ DropdownIndicator: Ur,
3031
+ ClearIndicator: Wr,
3032
+ MultiValueRemove: Gr,
3033
+ LoadingIndicator: Jr,
3034
3034
  IndicatorSeparator: () => null,
3035
- ...D ? { MenuList: Zr } : {},
3036
- ...ke ? { Menu: Xr } : {},
3037
- ...q ? { MultiValue: qr } : {},
3038
- ...l ? { Option: Jr } : {}
3035
+ ...D ? { MenuList: Xr } : {},
3036
+ ...ke ? { Menu: Yr } : {},
3037
+ ...q ? { MultiValue: Kr } : {},
3038
+ Option: qr
3039
3039
  }
3040
3040
  };
3041
- return /* @__PURE__ */ K("div", {
3041
+ return /* @__PURE__ */ G("div", {
3042
3042
  ref: xe,
3043
3043
  "data-test-id": N,
3044
3044
  className: Y("flex flex-col gap-1.5 w-full", te),
3045
3045
  children: [
3046
- (v || y) && /* @__PURE__ */ K("div", {
3046
+ (v || y) && /* @__PURE__ */ G("div", {
3047
3047
  className: "flex items-center gap-1.5",
3048
- children: [v && /* @__PURE__ */ K("label", {
3049
- htmlFor: z,
3048
+ children: [v && /* @__PURE__ */ G("label", {
3049
+ htmlFor: R,
3050
3050
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
3051
- children: [v, C && /* @__PURE__ */ G("span", {
3051
+ children: [v, C && /* @__PURE__ */ W("span", {
3052
3052
  className: "text-fg-danger",
3053
3053
  "aria-hidden": !0,
3054
3054
  children: "*"
3055
3055
  })]
3056
- }), y && /* @__PURE__ */ G("span", {
3056
+ }), y && /* @__PURE__ */ W("span", {
3057
3057
  className: "inline-flex items-center gap-1",
3058
3058
  children: y
3059
3059
  })]
3060
3060
  }),
3061
- /* @__PURE__ */ G(ve, {
3061
+ /* @__PURE__ */ W(ve, {
3062
3062
  ref: t,
3063
3063
  ...Fe
3064
3064
  }),
3065
- q && /* @__PURE__ */ K("div", {
3065
+ q && /* @__PURE__ */ G("div", {
3066
3066
  ref: Te,
3067
3067
  "aria-hidden": !0,
3068
3068
  className: "flex items-center gap-1 whitespace-nowrap",
@@ -3072,109 +3072,109 @@ var Qr = a(function(e, t) {
3072
3072
  left: -9999,
3073
3073
  visibility: "hidden"
3074
3074
  },
3075
- children: [me.map((e) => /* @__PURE__ */ K("span", {
3075
+ children: [he.map((e) => /* @__PURE__ */ G("span", {
3076
3076
  "data-measure-chip": !0,
3077
- className: Ir,
3078
- children: [/* @__PURE__ */ G("span", {
3077
+ className: Fr,
3078
+ children: [/* @__PURE__ */ W("span", {
3079
+ className: Ir,
3080
+ children: Br(e)
3081
+ }), /* @__PURE__ */ W("span", {
3079
3082
  className: Lr,
3080
- children: Vr(e)
3081
- }), /* @__PURE__ */ G("span", {
3082
- className: Rr,
3083
- children: /* @__PURE__ */ G(H, {
3083
+ children: /* @__PURE__ */ W(V, {
3084
3084
  className: "h-3 w-3",
3085
3085
  "aria-hidden": !0
3086
3086
  })
3087
3087
  })]
3088
- }, String(e.value))), /* @__PURE__ */ G("span", {
3088
+ }, String(e.value))), /* @__PURE__ */ W("span", {
3089
3089
  "data-measure-badge": !0,
3090
- className: zr
3090
+ className: Rr
3091
3091
  })]
3092
3092
  }),
3093
- x ? /* @__PURE__ */ G("p", {
3094
- id: `${z}-error`,
3093
+ x ? /* @__PURE__ */ W("p", {
3094
+ id: `${R}-error`,
3095
3095
  className: "text-p-sm text-fg-danger",
3096
3096
  children: x
3097
- }) : b ? /* @__PURE__ */ G("p", {
3098
- id: `${z}-help`,
3097
+ }) : b ? /* @__PURE__ */ W("p", {
3098
+ id: `${R}-help`,
3099
3099
  className: "text-p-sm text-fg-secondary",
3100
3100
  children: b
3101
3101
  }) : null
3102
3102
  ]
3103
3103
  });
3104
- }), $r = r(null);
3105
- function ei() {
3106
- return c($r) ?? {
3104
+ }), Qr = r(null);
3105
+ function $r() {
3106
+ return c(Qr) ?? {
3107
3107
  collapsed: !1,
3108
3108
  toggle: () => {}
3109
3109
  };
3110
3110
  }
3111
- var ti = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, children: r, className: i, logo: a, title: o, subtitle: s, dataTestId: c, ...l }, u) {
3111
+ var ei = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange: n, children: r, className: i, logo: a, title: o, subtitle: s, dataTestId: c, ...l }, u) {
3112
3112
  let [d, f] = m(e), p = t !== void 0, h = p ? t : d, g = () => {
3113
3113
  let e = !h;
3114
3114
  p || f(e), n?.(e);
3115
3115
  };
3116
- return /* @__PURE__ */ G($r.Provider, {
3116
+ return /* @__PURE__ */ W(Qr.Provider, {
3117
3117
  value: {
3118
3118
  collapsed: h,
3119
3119
  toggle: g
3120
3120
  },
3121
- children: /* @__PURE__ */ K("aside", {
3121
+ children: /* @__PURE__ */ G("aside", {
3122
3122
  ref: u,
3123
3123
  "data-test-id": c,
3124
3124
  className: Y("flex flex-col bg-bg-default border-r border-border-default transition-all duration-200", h ? "w-16" : "w-64", i),
3125
3125
  ...l,
3126
- children: [/* @__PURE__ */ K("div", {
3126
+ children: [/* @__PURE__ */ G("div", {
3127
3127
  className: Y("flex items-center gap-3 px-4 py-4 border-b border-border-default", h && "justify-center px-2"),
3128
3128
  children: [
3129
- a && /* @__PURE__ */ G("div", {
3129
+ a && /* @__PURE__ */ W("div", {
3130
3130
  className: "shrink-0",
3131
3131
  children: a
3132
3132
  }),
3133
- !h && /* @__PURE__ */ K("div", {
3133
+ !h && /* @__PURE__ */ G("div", {
3134
3134
  className: "flex flex-col min-w-0",
3135
- children: [o && /* @__PURE__ */ G("div", {
3135
+ children: [o && /* @__PURE__ */ W("div", {
3136
3136
  className: "text-p-md font-semibold text-fg-default truncate",
3137
3137
  children: o
3138
- }), s && /* @__PURE__ */ G("div", {
3138
+ }), s && /* @__PURE__ */ W("div", {
3139
3139
  className: "text-p-sm text-fg-secondary truncate",
3140
3140
  children: s
3141
3141
  })]
3142
3142
  }),
3143
- /* @__PURE__ */ G("button", {
3143
+ /* @__PURE__ */ W("button", {
3144
3144
  type: "button",
3145
3145
  onClick: g,
3146
3146
  "aria-label": h ? "Expand sidebar" : "Collapse sidebar",
3147
3147
  className: Y("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"),
3148
- children: /* @__PURE__ */ G(F, { className: "h-4 w-4" })
3148
+ children: /* @__PURE__ */ W(F, { className: "h-4 w-4" })
3149
3149
  })
3150
3150
  ]
3151
- }), /* @__PURE__ */ G("nav", {
3151
+ }), /* @__PURE__ */ W("nav", {
3152
3152
  className: "flex-1 overflow-y-auto p-2 flex flex-col gap-0.5",
3153
3153
  children: r
3154
3154
  })]
3155
3155
  })
3156
3156
  });
3157
- }), ni = a(function({ icon: e, label: t, active: n, badge: r, children: i, onClick: a, href: o, className: s, dataTestId: c, ...l }, u) {
3158
- let { collapsed: d } = ei(), [f, p] = m(n ?? !1), h = !!i, g = /* @__PURE__ */ K(W, { children: [e && /* @__PURE__ */ G("span", {
3157
+ }), ti = a(function({ icon: e, label: t, active: n, badge: r, children: i, onClick: a, href: o, className: s, dataTestId: c, ...l }, u) {
3158
+ let { collapsed: d } = $r(), [f, p] = m(n ?? !1), h = !!i, g = /* @__PURE__ */ G(U, { children: [e && /* @__PURE__ */ W("span", {
3159
3159
  className: "inline-flex shrink-0",
3160
3160
  children: e
3161
- }), !d && /* @__PURE__ */ K(W, { children: [
3162
- /* @__PURE__ */ G("span", {
3161
+ }), !d && /* @__PURE__ */ G(U, { children: [
3162
+ /* @__PURE__ */ W("span", {
3163
3163
  className: "flex-1 truncate text-left",
3164
3164
  children: t
3165
3165
  }),
3166
- r && /* @__PURE__ */ G("span", {
3166
+ r && /* @__PURE__ */ W("span", {
3167
3167
  className: "shrink-0",
3168
3168
  children: r
3169
3169
  }),
3170
- h && /* @__PURE__ */ G(w, {
3170
+ h && /* @__PURE__ */ W(w, {
3171
3171
  className: Y("h-4 w-4 shrink-0 text-fg-tertiary transition-transform", f && "rotate-90"),
3172
3172
  "aria-hidden": !0
3173
3173
  })
3174
3174
  ] })] }), _ = () => {
3175
3175
  h && p((e) => !e), a?.();
3176
3176
  }, v = Y("group relative flex items-center gap-3 rounded-md px-3 py-2 text-p-std font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300", d && "px-2 justify-center", n ? "bg-brand-20 text-brand-800 before:absolute before:left-0 before:top-1/2 before:-translate-y-1/2 before:h-5 before:w-0.5 before:rounded-r before:bg-brand-500" : "text-fg-default hover:bg-bg-container", s);
3177
- return /* @__PURE__ */ K(W, { children: [o ? /* @__PURE__ */ G("a", {
3177
+ return /* @__PURE__ */ G(U, { children: [o ? /* @__PURE__ */ W("a", {
3178
3178
  ref: u,
3179
3179
  href: o,
3180
3180
  onClick: _,
@@ -3182,7 +3182,7 @@ var ti = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3182
3182
  className: v,
3183
3183
  ...l,
3184
3184
  children: g
3185
- }) : /* @__PURE__ */ G("button", {
3185
+ }) : /* @__PURE__ */ W("button", {
3186
3186
  ref: u,
3187
3187
  type: "button",
3188
3188
  onClick: _,
@@ -3190,16 +3190,16 @@ var ti = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3190
3190
  className: Y(v, "w-full"),
3191
3191
  ...l,
3192
3192
  children: g
3193
- }), h && f && !d && /* @__PURE__ */ G("div", {
3193
+ }), h && f && !d && /* @__PURE__ */ W("div", {
3194
3194
  className: "flex flex-col gap-0.5 pl-8",
3195
3195
  children: i
3196
3196
  })] });
3197
- }), ri = {
3197
+ }), ni = {
3198
3198
  text: "h-[1em] mb-[0.4em] origin-[0%_55%] scale-y-[0.6] rounded-sm",
3199
3199
  circular: "size-10 rounded-full",
3200
3200
  rectangular: "h-4 w-full",
3201
3201
  rounded: "h-4 w-full rounded-md"
3202
- }, ii = {
3202
+ }, ri = {
3203
3203
  pulse: "animate-pulse",
3204
3204
  wave: [
3205
3205
  "relative overflow-hidden",
@@ -3209,27 +3209,27 @@ var ti = a(function({ defaultCollapsed: e = !1, collapsed: t, onCollapsedChange:
3209
3209
  ].join(" "),
3210
3210
  none: ""
3211
3211
  };
3212
- function ai(e) {
3212
+ function ii(e) {
3213
3213
  if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
3214
3214
  }
3215
- var oi = 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) {
3215
+ var ai = 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) {
3216
3216
  let d = a != null, f = Math.max(1, i), p = {
3217
- ...n === void 0 ? null : { width: ai(n) },
3218
- ...r === void 0 ? null : { height: ai(r) },
3217
+ ...n === void 0 ? null : { width: ii(n) },
3218
+ ...r === void 0 ? null : { height: ii(r) },
3219
3219
  ...o
3220
- }, m = Y("block bg-bg-subtle leading-none", ri[e], ii[t]);
3221
- return d ? /* @__PURE__ */ G("span", {
3220
+ }, m = Y("block bg-bg-subtle leading-none", ni[e], ri[t]);
3221
+ return d ? /* @__PURE__ */ W("span", {
3222
3222
  ref: u,
3223
3223
  "data-test-id": c,
3224
3224
  className: Y(m, "inline-block h-auto w-auto scale-100", s),
3225
3225
  style: p,
3226
3226
  ...l,
3227
- children: /* @__PURE__ */ G("span", {
3227
+ children: /* @__PURE__ */ W("span", {
3228
3228
  className: "invisible inline-block",
3229
3229
  "aria-hidden": !0,
3230
3230
  children: a
3231
3231
  })
3232
- }) : f === 1 ? /* @__PURE__ */ G("span", {
3232
+ }) : f === 1 ? /* @__PURE__ */ W("span", {
3233
3233
  ref: u,
3234
3234
  "data-test-id": c,
3235
3235
  className: Y(m, s),
@@ -3237,12 +3237,12 @@ var oi = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3237
3237
  role: "status",
3238
3238
  "aria-label": "Loading",
3239
3239
  ...l
3240
- }) : /* @__PURE__ */ G("span", {
3240
+ }) : /* @__PURE__ */ W("span", {
3241
3241
  ref: u,
3242
3242
  "data-test-id": c,
3243
3243
  className: Y("block", s),
3244
3244
  ...l,
3245
- children: Array.from({ length: f }, (e, t) => /* @__PURE__ */ G("span", {
3245
+ children: Array.from({ length: f }, (e, t) => /* @__PURE__ */ W("span", {
3246
3246
  className: m,
3247
3247
  style: p,
3248
3248
  "aria-hidden": t !== 0 || void 0,
@@ -3250,7 +3250,7 @@ var oi = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3250
3250
  "aria-label": t === 0 ? "Loading" : void 0
3251
3251
  }, t))
3252
3252
  });
3253
- }), si = {
3253
+ }), oi = {
3254
3254
  success: {
3255
3255
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3256
3256
  icon: x
@@ -3261,7 +3261,7 @@ var oi = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3261
3261
  },
3262
3262
  danger: {
3263
3263
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3264
- icon: U
3264
+ icon: H
3265
3265
  },
3266
3266
  info: {
3267
3267
  container: "bg-gray-900 dark:bg-gray-700 text-white",
@@ -3271,19 +3271,19 @@ var oi = a(function({ variant: e = "text", animation: t = "pulse", width: n, hei
3271
3271
  container: "bg-gray-900 dark:bg-gray-700 text-white",
3272
3272
  icon: N
3273
3273
  }
3274
- }, ci = {
3274
+ }, si = {
3275
3275
  success: "text-green-400",
3276
3276
  warning: "text-yellow-300",
3277
3277
  danger: "text-red-400",
3278
3278
  info: "text-blue-400",
3279
3279
  neutral: "text-white/70"
3280
- }, li = r(null);
3281
- function ui() {
3282
- let e = c(li);
3280
+ }, ci = r(null);
3281
+ function li() {
3282
+ let e = c(ci);
3283
3283
  if (!e) throw Error("useSnackbar must be used inside <SnackbarProvider>");
3284
3284
  return e;
3285
3285
  }
3286
- function di({ children: e, dataTestId: t }) {
3286
+ function ui({ children: e, dataTestId: t }) {
3287
3287
  let [n, r] = m([]), i = p(/* @__PURE__ */ new Map()), a = s((e) => {
3288
3288
  r((t) => t.filter((t) => t.id !== e));
3289
3289
  let t = i.current.get(e);
@@ -3306,30 +3306,30 @@ function di({ children: e, dataTestId: t }) {
3306
3306
  return () => {
3307
3307
  e.forEach(clearTimeout), e.clear();
3308
3308
  };
3309
- }, []), /* @__PURE__ */ K(li.Provider, {
3309
+ }, []), /* @__PURE__ */ G(ci.Provider, {
3310
3310
  value: {
3311
3311
  show: o,
3312
3312
  dismiss: a
3313
3313
  },
3314
- children: [e, he(/* @__PURE__ */ G("div", {
3314
+ children: [e, K(/* @__PURE__ */ W("div", {
3315
3315
  "data-test-id": t,
3316
3316
  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",
3317
3317
  children: n.map((e) => {
3318
- let { container: t, icon: n } = si[e.variant ?? "neutral"];
3319
- return /* @__PURE__ */ K("div", {
3318
+ let { container: t, icon: n } = oi[e.variant ?? "neutral"];
3319
+ return /* @__PURE__ */ G("div", {
3320
3320
  role: "status",
3321
3321
  "data-test-id": e.dataTestId,
3322
3322
  className: Y("pointer-events-auto flex items-center gap-3 px-4 py-3 rounded-lg shadow-z4", t),
3323
3323
  children: [
3324
- /* @__PURE__ */ G(n, {
3325
- className: Y("h-5 w-5 shrink-0", ci[e.variant ?? "neutral"]),
3324
+ /* @__PURE__ */ W(n, {
3325
+ className: Y("h-5 w-5 shrink-0", si[e.variant ?? "neutral"]),
3326
3326
  "aria-hidden": !0
3327
3327
  }),
3328
- /* @__PURE__ */ G("p", {
3328
+ /* @__PURE__ */ W("p", {
3329
3329
  className: "flex-1 text-p-std",
3330
3330
  children: e.message
3331
3331
  }),
3332
- e.action && /* @__PURE__ */ G("button", {
3332
+ e.action && /* @__PURE__ */ W("button", {
3333
3333
  type: "button",
3334
3334
  onClick: () => {
3335
3335
  e.action?.onClick(), a(e.id);
@@ -3337,12 +3337,12 @@ function di({ children: e, dataTestId: t }) {
3337
3337
  className: "text-p-std font-semibold text-brand-400 hover:text-brand-300 px-1",
3338
3338
  children: e.action.label
3339
3339
  }),
3340
- /* @__PURE__ */ G("button", {
3340
+ /* @__PURE__ */ W("button", {
3341
3341
  type: "button",
3342
3342
  onClick: () => a(e.id),
3343
3343
  "aria-label": "Close",
3344
3344
  className: "shrink-0 p-1 rounded-md text-white/70 hover:text-white hover:bg-white/10",
3345
- children: /* @__PURE__ */ G(H, { className: "h-4 w-4" })
3345
+ children: /* @__PURE__ */ W(V, { className: "h-4 w-4" })
3346
3346
  })
3347
3347
  ]
3348
3348
  }, e.id);
@@ -3352,15 +3352,15 @@ function di({ children: e, dataTestId: t }) {
3352
3352
  }
3353
3353
  //#endregion
3354
3354
  //#region src/components/Status/Status.tsx
3355
- var fi = {
3355
+ var di = {
3356
3356
  lg: "h-7 px-2.5 text-p-std gap-1.5",
3357
3357
  md: "h-6 px-2 text-p-sm gap-1.5",
3358
3358
  sm: "h-5 px-1.5 text-p-sm gap-1"
3359
- }, pi = {
3359
+ }, fi = {
3360
3360
  lg: "h-2 w-2",
3361
3361
  md: "h-1.5 w-1.5",
3362
3362
  sm: "h-1.5 w-1.5"
3363
- }, mi = {
3363
+ }, pi = {
3364
3364
  general: {
3365
3365
  container: "bg-bg-subtle text-fg-default dark:text-fg-default",
3366
3366
  dot: "bg-gray-600 dark:bg-gray-400"
@@ -3393,102 +3393,102 @@ var fi = {
3393
3393
  container: "bg-bg-subtle text-fg-disabled",
3394
3394
  dot: "bg-border-strong"
3395
3395
  }
3396
- }, hi = a(function({ variant: e = "general", size: t = "md", leftIcon: n, rightIcon: r, dot: i = !0, className: a, children: o, dataTestId: s, ...c }, l) {
3397
- let { container: u, dot: d } = mi[e];
3398
- return /* @__PURE__ */ K("span", {
3396
+ }, mi = a(function({ variant: e = "general", size: t = "md", leftIcon: n, rightIcon: r, dot: i = !0, className: a, children: o, dataTestId: s, ...c }, l) {
3397
+ let { container: u, dot: d } = pi[e];
3398
+ return /* @__PURE__ */ G("span", {
3399
3399
  ref: l,
3400
3400
  "data-test-id": s,
3401
- className: Y("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", fi[t], u, a),
3401
+ className: Y("inline-flex items-center rounded-full font-medium whitespace-nowrap select-none", di[t], u, a),
3402
3402
  ...c,
3403
3403
  children: [
3404
- n ? /* @__PURE__ */ G("span", {
3404
+ n ? /* @__PURE__ */ W("span", {
3405
3405
  className: "inline-flex shrink-0",
3406
3406
  children: n
3407
- }) : i ? /* @__PURE__ */ G("span", {
3408
- className: Y("inline-block shrink-0 rounded-full", pi[t], d),
3407
+ }) : i ? /* @__PURE__ */ W("span", {
3408
+ className: Y("inline-block shrink-0 rounded-full", fi[t], d),
3409
3409
  "aria-hidden": !0
3410
3410
  }) : null,
3411
3411
  o,
3412
- r && /* @__PURE__ */ G("span", {
3412
+ r && /* @__PURE__ */ W("span", {
3413
3413
  className: "inline-flex shrink-0",
3414
3414
  children: r
3415
3415
  })
3416
3416
  ]
3417
3417
  });
3418
- }), gi = {
3418
+ }), hi = {
3419
3419
  lg: "size-9",
3420
3420
  sm: "size-6"
3421
- }, _i = {
3421
+ }, gi = {
3422
3422
  lg: "h-9",
3423
3423
  sm: "h-6"
3424
- }, vi = {
3424
+ }, _i = {
3425
3425
  lg: "border-2",
3426
3426
  sm: "border"
3427
- }, yi = {
3427
+ }, vi = {
3428
3428
  lg: "text-p-std",
3429
3429
  sm: "text-p-xs"
3430
- }, bi = {
3430
+ }, yi = {
3431
3431
  lg: "size-5",
3432
3432
  sm: "size-3.5"
3433
- }, xi = {
3433
+ }, bi = {
3434
3434
  lg: "size-3",
3435
3435
  sm: "size-2"
3436
- }, Si = {
3436
+ }, xi = {
3437
3437
  lg: "text-p-std",
3438
3438
  sm: "text-p-sm"
3439
- }, Ci = {
3439
+ }, Si = {
3440
3440
  lg: "text-p-sm",
3441
3441
  sm: "text-p-xs"
3442
- }, wi = {
3442
+ }, Ci = {
3443
3443
  upcoming: "bg-bg-default border-border-strong text-fg-tertiary",
3444
3444
  active: "bg-bg-default border-brand-500 text-brand-700",
3445
3445
  completed: "bg-brand-500 border-brand-500 text-fg-inverse",
3446
3446
  rejected: "bg-red-700 border-red-800 text-fg-inverse"
3447
- }, Ti = {
3447
+ }, wi = {
3448
3448
  upcoming: "ring-4 ring-gray-100/80",
3449
3449
  active: "ring-4 ring-brand-40/80",
3450
3450
  completed: "ring-4 ring-brand-40/80",
3451
3451
  rejected: "ring-4 ring-red-100/80"
3452
3452
  };
3453
- function Ei(e, t, n, r) {
3454
- return t === "completed" ? /* @__PURE__ */ G(E, { className: bi[r] }) : t === "rejected" ? /* @__PURE__ */ G(D, { className: bi[r] }) : e === "number" ? n + 1 : e === "dot" ? /* @__PURE__ */ G("span", { className: Y("rounded-full", xi[r], t === "active" ? "bg-brand-500" : "bg-transparent") }) : null;
3453
+ function Ti(e, t, n, r) {
3454
+ return t === "completed" ? /* @__PURE__ */ W(E, { className: yi[r] }) : t === "rejected" ? /* @__PURE__ */ W(D, { className: yi[r] }) : e === "number" ? n + 1 : e === "dot" ? /* @__PURE__ */ W("span", { className: Y("rounded-full", bi[r], t === "active" ? "bg-brand-500" : "bg-transparent") }) : null;
3455
3455
  }
3456
- var Di = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "number", orientation: i = "horizontal", size: a = "lg", className: o, dataTestId: s, ...c }, l) {
3456
+ var Ei = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "number", orientation: i = "horizontal", size: a = "lg", className: o, dataTestId: s, ...c }, l) {
3457
3457
  let u = i === "vertical", d = (e) => (e?.status ?? "upcoming") === "completed";
3458
- return /* @__PURE__ */ G("ol", {
3458
+ return /* @__PURE__ */ W("ol", {
3459
3459
  ref: l,
3460
3460
  "data-test-id": s,
3461
3461
  className: Y("flex", u ? "flex-col" : "w-full items-start", o),
3462
3462
  ...c,
3463
3463
  children: e.map((i, o) => {
3464
- let s = i.status ?? "upcoming", c = o === 0, l = o === e.length - 1, f = !c && d(e[o - 1]), p = !l && d(i), m = /* @__PURE__ */ G("span", {
3465
- className: Y("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full font-semibold transition-colors", gi[a], vi[a], yi[a], wi[s], i.highlighted && Ti[s]),
3466
- children: Ei(r, s, o, a)
3467
- }), h = /* @__PURE__ */ K("div", {
3464
+ let s = i.status ?? "upcoming", c = o === 0, l = o === e.length - 1, f = !c && d(e[o - 1]), p = !l && d(i), m = /* @__PURE__ */ W("span", {
3465
+ className: Y("relative z-10 inline-flex shrink-0 items-center justify-center rounded-full font-semibold transition-colors", hi[a], _i[a], vi[a], Ci[s], i.highlighted && wi[s]),
3466
+ children: Ti(r, s, o, a)
3467
+ }), h = /* @__PURE__ */ G("div", {
3468
3468
  className: Y("flex flex-col", u ? "gap-0.5 pb-6" : "mt-2 items-center gap-0.5 text-center"),
3469
- children: [/* @__PURE__ */ G("span", {
3470
- className: Y("font-medium text-fg-default", Si[a]),
3469
+ children: [/* @__PURE__ */ W("span", {
3470
+ className: Y("font-medium text-fg-default", xi[a]),
3471
3471
  children: i.label
3472
- }), i.description && /* @__PURE__ */ G("span", {
3473
- className: Y("text-fg-secondary", Ci[a]),
3472
+ }), i.description && /* @__PURE__ */ W("span", {
3473
+ className: Y("text-fg-secondary", Si[a]),
3474
3474
  children: i.description
3475
3475
  })]
3476
3476
  });
3477
- return /* @__PURE__ */ K("li", {
3478
- "aria-current": qe(i.value, t) ? "step" : void 0,
3477
+ return /* @__PURE__ */ G("li", {
3478
+ "aria-current": X(i.value, t) ? "step" : void 0,
3479
3479
  className: Y("relative flex", u ? "flex-row gap-3" : "flex-1 basis-0 min-w-0 flex-col"),
3480
- children: [/* @__PURE__ */ K("div", {
3481
- className: Y("relative flex shrink-0", u ? "w-9 flex-col items-center justify-center" : Y("w-full items-center justify-center", _i[a])),
3480
+ children: [/* @__PURE__ */ G("div", {
3481
+ className: Y("relative flex shrink-0", u ? "w-9 flex-col items-center justify-center" : Y("w-full items-center justify-center", gi[a])),
3482
3482
  children: [
3483
- !c && /* @__PURE__ */ G("span", {
3483
+ !c && /* @__PURE__ */ W("span", {
3484
3484
  "aria-hidden": !0,
3485
3485
  className: Y("absolute", u ? "left-1/2 top-0 bottom-1/2 w-0.5 -translate-x-1/2" : "left-0 right-1/2 top-1/2 h-0.5 -translate-y-1/2", f ? "bg-brand-500" : "bg-border-default")
3486
3486
  }),
3487
- !l && /* @__PURE__ */ G("span", {
3487
+ !l && /* @__PURE__ */ W("span", {
3488
3488
  "aria-hidden": !0,
3489
3489
  className: Y("absolute", u ? "left-1/2 top-1/2 bottom-0 w-0.5 -translate-x-1/2" : "left-1/2 right-0 top-1/2 h-0.5 -translate-y-1/2", p ? "bg-brand-500" : "bg-border-default")
3490
3490
  }),
3491
- n ? /* @__PURE__ */ G("button", {
3491
+ n ? /* @__PURE__ */ W("button", {
3492
3492
  type: "button",
3493
3493
  onClick: () => n(i.value),
3494
3494
  "aria-label": typeof i.label == "string" ? i.label : void 0,
@@ -3500,17 +3500,17 @@ var Di = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3500
3500
  }, String(i.value));
3501
3501
  })
3502
3502
  });
3503
- }), Oi = {
3503
+ }), Di = {
3504
3504
  md: "h-6 w-11",
3505
3505
  sm: "h-5 w-9"
3506
- }, ki = {
3506
+ }, Oi = {
3507
3507
  md: "h-5 w-5 peer-checked:translate-x-5",
3508
3508
  sm: "h-4 w-4 peer-checked:translate-x-4"
3509
- }, Ai = 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) {
3510
- let p = u(), m = i ?? p, h = /* @__PURE__ */ K("span", {
3509
+ }, ki = a(function({ size: e = "md", label: t, description: n, labelPosition: r = "right", id: i, disabled: a, checked: o, defaultChecked: s, className: c, dataTestId: l, ...d }, f) {
3510
+ let p = u(), m = i ?? p, h = /* @__PURE__ */ G("span", {
3511
3511
  className: "relative inline-flex shrink-0",
3512
3512
  children: [
3513
- /* @__PURE__ */ G("input", {
3513
+ /* @__PURE__ */ W("input", {
3514
3514
  ref: f,
3515
3515
  id: m,
3516
3516
  type: "checkbox",
@@ -3521,25 +3521,25 @@ var Di = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3521
3521
  className: "peer sr-only",
3522
3522
  ...d
3523
3523
  }),
3524
- /* @__PURE__ */ G("span", { className: Y("rounded-full bg-gray-300 dark:bg-gray-700 transition-colors", Oi[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") }),
3525
- /* @__PURE__ */ G("span", { className: Y("absolute top-0.5 left-0.5 rounded-full bg-white dark:bg-white shadow-z1 transition-transform", ki[e]) })
3524
+ /* @__PURE__ */ W("span", { className: Y("rounded-full bg-gray-300 dark:bg-gray-700 transition-colors", Di[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") }),
3525
+ /* @__PURE__ */ W("span", { className: Y("absolute top-0.5 left-0.5 rounded-full bg-white dark:bg-white shadow-z1 transition-transform", Oi[e]) })
3526
3526
  ]
3527
3527
  });
3528
- return !t && !n ? /* @__PURE__ */ G("label", {
3528
+ return !t && !n ? /* @__PURE__ */ W("label", {
3529
3529
  htmlFor: m,
3530
3530
  "data-test-id": l,
3531
3531
  className: Y("inline-flex", a ? "cursor-not-allowed opacity-60" : "cursor-pointer", c),
3532
3532
  children: h
3533
- }) : /* @__PURE__ */ K("label", {
3533
+ }) : /* @__PURE__ */ G("label", {
3534
3534
  htmlFor: m,
3535
3535
  "data-test-id": l,
3536
3536
  className: Y("inline-flex items-center gap-3", r === "left" && "flex-row-reverse justify-end", a ? "cursor-not-allowed opacity-60" : "cursor-pointer", c),
3537
- children: [h, /* @__PURE__ */ K("span", {
3537
+ children: [h, /* @__PURE__ */ G("span", {
3538
3538
  className: "flex flex-col gap-0.5",
3539
- children: [t && /* @__PURE__ */ G("span", {
3539
+ children: [t && /* @__PURE__ */ W("span", {
3540
3540
  className: "text-p-std font-medium text-fg-default leading-tight",
3541
3541
  children: t
3542
- }), n && /* @__PURE__ */ G("span", {
3542
+ }), n && /* @__PURE__ */ W("span", {
3543
3543
  className: "text-p-sm text-fg-secondary leading-snug",
3544
3544
  children: n
3545
3545
  })]
@@ -3548,11 +3548,11 @@ var Di = a(function({ steps: e, activeValue: t, onStepSelect: n, marker: r = "nu
3548
3548
  });
3549
3549
  //#endregion
3550
3550
  //#region src/components/TableV2/TableV2Filter.tsx
3551
- function ji({ column: e }) {
3551
+ function Ai({ column: e }) {
3552
3552
  let t = e.columnDef.meta?.filterVariant;
3553
3553
  if (!t) return null;
3554
3554
  let n = e.getFilterValue();
3555
- return t === "custom" ? /* @__PURE__ */ G(W, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ G(Qr, {
3555
+ return t === "custom" ? /* @__PURE__ */ W(U, { children: e.columnDef.meta?.filterComponent?.(e) ?? null }) : t === "select" ? /* @__PURE__ */ W(Zr, {
3556
3556
  size: "sm",
3557
3557
  searchable: !1,
3558
3558
  required: !1,
@@ -3560,7 +3560,7 @@ function ji({ column: e }) {
3560
3560
  placeholder: "All",
3561
3561
  value: typeof n == "string" ? n : void 0,
3562
3562
  onChange: (t) => e.setFilterValue(t || void 0)
3563
- }) : /* @__PURE__ */ G(Qt, {
3563
+ }) : /* @__PURE__ */ W(Zt, {
3564
3564
  size: "sm",
3565
3565
  type: t === "date" ? "date" : "text",
3566
3566
  "aria-label": `Filter by ${e.id}`,
@@ -3571,7 +3571,7 @@ function ji({ column: e }) {
3571
3571
  }
3572
3572
  //#endregion
3573
3573
  //#region src/components/TableV2/TableV2Pagination.i18n.ts
3574
- var Mi = {
3574
+ var ji = {
3575
3575
  "en-US": {
3576
3576
  rowsPerPage: "Rows per page",
3577
3577
  noResults: "No results",
@@ -3590,22 +3590,21 @@ var Mi = {
3590
3590
  };
3591
3591
  //#endregion
3592
3592
  //#region src/components/TableV2/TableV2Pagination.tsx
3593
- function Ni({ table: e, pageSizeOptions: t = [
3593
+ function Mi({ table: e, pageSizeOptions: t = [
3594
3594
  10,
3595
- 25,
3596
- 50,
3597
- 100
3595
+ 20,
3596
+ 30
3598
3597
  ], locale: n = "en-US" }) {
3599
- 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 = Mi[n];
3600
- return /* @__PURE__ */ K("div", {
3598
+ 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 = ji[n];
3599
+ return /* @__PURE__ */ G("div", {
3601
3600
  className: "flex flex-wrap items-center justify-between gap-3 p-3 border-t border-border-default",
3602
3601
  children: [
3603
- /* @__PURE__ */ K("div", {
3602
+ /* @__PURE__ */ G("div", {
3604
3603
  className: "flex items-center gap-2",
3605
- children: [/* @__PURE__ */ G("span", {
3604
+ children: [/* @__PURE__ */ W("span", {
3606
3605
  className: "text-p-sm text-fg-secondary whitespace-nowrap",
3607
3606
  children: l.rowsPerPage
3608
- }), /* @__PURE__ */ G(Qr, {
3607
+ }), /* @__PURE__ */ W(Zr, {
3609
3608
  size: "sm",
3610
3609
  menuPlacement: "top",
3611
3610
  searchable: !1,
@@ -3619,11 +3618,11 @@ function Ni({ table: e, pageSizeOptions: t = [
3619
3618
  }))
3620
3619
  })]
3621
3620
  }),
3622
- /* @__PURE__ */ G("span", {
3621
+ /* @__PURE__ */ W("span", {
3623
3622
  className: "text-p-sm text-fg-secondary whitespace-nowrap",
3624
3623
  children: a === 0 ? l.noResults : l.rangeSummary(s, c, a)
3625
3624
  }),
3626
- /* @__PURE__ */ G(_r, {
3625
+ /* @__PURE__ */ W(gr, {
3627
3626
  page: r + 1,
3628
3627
  pageCount: o,
3629
3628
  onPageChange: (t) => e.setPageIndex(t - 1)
@@ -3633,12 +3632,12 @@ function Ni({ table: e, pageSizeOptions: t = [
3633
3632
  }
3634
3633
  //#endregion
3635
3634
  //#region src/components/TableV2/TableV2Skeleton.tsx
3636
- function Pi({ columnCount: e, rowCount: t = 8 }) {
3637
- return /* @__PURE__ */ G(W, { children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ G("tr", {
3635
+ function Ni({ columnCount: e, rowCount: t = 8 }) {
3636
+ return /* @__PURE__ */ W(U, { children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ W("tr", {
3638
3637
  "aria-hidden": n > 0 || void 0,
3639
- children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ G("td", {
3638
+ children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ W("td", {
3640
3639
  className: "px-4 py-3",
3641
- children: /* @__PURE__ */ G(oi, {
3640
+ children: /* @__PURE__ */ W(ai, {
3642
3641
  variant: "text",
3643
3642
  width: t === 0 ? "70%" : "90%"
3644
3643
  })
@@ -3647,24 +3646,24 @@ function Pi({ columnCount: e, rowCount: t = 8 }) {
3647
3646
  }
3648
3647
  //#endregion
3649
3648
  //#region src/components/TableV2/TableV2ColumnVisibility.tsx
3650
- function Fi(e) {
3649
+ function Pi(e) {
3651
3650
  let { header: t } = e.columnDef;
3652
3651
  return typeof t == "string" ? t : e.id;
3653
3652
  }
3654
- function Ii({ table: e }) {
3653
+ function Fi({ table: e }) {
3655
3654
  let t = e.getAllLeafColumns().filter((e) => e.getCanHide());
3656
- return /* @__PURE__ */ K(Nn, { children: [/* @__PURE__ */ G(Pn, { children: /* @__PURE__ */ G(Z, {
3655
+ return /* @__PURE__ */ G(Mn, { children: [/* @__PURE__ */ W(Nn, { children: /* @__PURE__ */ W(Q, {
3657
3656
  variant: "secondary",
3658
3657
  size: "sm",
3659
- leftIcon: /* @__PURE__ */ G(O, { className: "h-4 w-4" }),
3658
+ leftIcon: /* @__PURE__ */ W(O, { className: "h-4 w-4" }),
3660
3659
  children: "Columns"
3661
- }) }), /* @__PURE__ */ G(In, {
3660
+ }) }), /* @__PURE__ */ W(Fn, {
3662
3661
  align: "end",
3663
- children: t.map((e) => /* @__PURE__ */ G("div", {
3662
+ children: t.map((e) => /* @__PURE__ */ W("div", {
3664
3663
  className: "px-3 py-1.5 hover:bg-bg-subtle",
3665
- children: /* @__PURE__ */ G(Bt, {
3664
+ children: /* @__PURE__ */ W(zt, {
3666
3665
  size: "sm",
3667
- label: Fi(e),
3666
+ label: Pi(e),
3668
3667
  checked: e.getIsVisible(),
3669
3668
  onChange: () => e.toggleVisibility()
3670
3669
  })
@@ -3673,36 +3672,36 @@ function Ii({ table: e }) {
3673
3672
  }
3674
3673
  //#endregion
3675
3674
  //#region src/components/TableV2/TableV2Toolbar.tsx
3676
- function Li({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
3677
- return /* @__PURE__ */ K("div", {
3675
+ function Ii({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, searchPlaceholder: r, onRefresh: i, onExport: a, actions: o }) {
3676
+ return /* @__PURE__ */ G("div", {
3678
3677
  className: "flex flex-wrap items-center gap-2 p-3 border-b border-border-default",
3679
- children: [t && /* @__PURE__ */ G(Qt, {
3678
+ children: [t && /* @__PURE__ */ W(Zt, {
3680
3679
  size: "sm",
3681
- leftIcon: /* @__PURE__ */ G(B, { className: "h-4 w-4" }),
3680
+ leftIcon: /* @__PURE__ */ W(z, { className: "h-4 w-4" }),
3682
3681
  placeholder: r ?? "Search...",
3683
3682
  "aria-label": "Search",
3684
3683
  value: String(e.getState().globalFilter ?? ""),
3685
3684
  onChange: (t) => e.setGlobalFilter(t.target.value),
3686
3685
  wrapperClassName: "max-w-xs w-full"
3687
- }), /* @__PURE__ */ K("div", {
3686
+ }), /* @__PURE__ */ G("div", {
3688
3687
  className: "ml-auto flex items-center gap-2",
3689
3688
  children: [
3690
- i && /* @__PURE__ */ G(Z, {
3689
+ i && /* @__PURE__ */ W(Q, {
3691
3690
  variant: "secondary",
3692
3691
  size: "sm",
3693
3692
  iconOnly: !0,
3694
3693
  "aria-label": "Refresh",
3695
- leftIcon: /* @__PURE__ */ G(se, { className: "h-4 w-4" }),
3694
+ leftIcon: /* @__PURE__ */ W(ce, { className: "h-4 w-4" }),
3696
3695
  onClick: i
3697
3696
  }),
3698
- a && /* @__PURE__ */ G(Z, {
3697
+ a && /* @__PURE__ */ W(Q, {
3699
3698
  variant: "secondary",
3700
3699
  size: "sm",
3701
- leftIcon: /* @__PURE__ */ G(j, { className: "h-4 w-4" }),
3700
+ leftIcon: /* @__PURE__ */ W(j, { className: "h-4 w-4" }),
3702
3701
  onClick: a,
3703
3702
  children: "Export"
3704
3703
  }),
3705
- n && /* @__PURE__ */ G(Ii, { table: e }),
3704
+ n && /* @__PURE__ */ W(Fi, { table: e }),
3706
3705
  o
3707
3706
  ]
3708
3707
  })]
@@ -3710,15 +3709,15 @@ function Li({ table: e, enableGlobalFilter: t, enableColumnVisibility: n, search
3710
3709
  }
3711
3710
  //#endregion
3712
3711
  //#region src/components/TableV2/useTableV2ColumnDnd.ts
3713
- var Ri = ({ transform: e }) => ({
3712
+ var Li = ({ transform: e }) => ({
3714
3713
  ...e,
3715
3714
  y: 0
3716
3715
  });
3717
- function zi({ columnOrder: e, onColumnOrderChange: t }) {
3716
+ function Ri({ columnOrder: e, onColumnOrderChange: t }) {
3718
3717
  return {
3719
3718
  sensors: Fe(Pe(J, { activationConstraint: { distance: 4 } }), Pe(Me, { coordinateGetter: ze })),
3720
3719
  collisionDetection: Ne,
3721
- modifiers: [Ri],
3720
+ modifiers: [Li],
3722
3721
  handleDragEnd: (n) => {
3723
3722
  let { active: r, over: i } = n;
3724
3723
  if (!i || r.id === i.id) return;
@@ -3727,7 +3726,7 @@ function zi({ columnOrder: e, onColumnOrderChange: t }) {
3727
3726
  }
3728
3727
  };
3729
3728
  }
3730
- function Bi(e) {
3729
+ function zi(e) {
3731
3730
  let { attributes: t, listeners: n, setNodeRef: r, transform: i, transition: a, isDragging: o } = Be({ id: e });
3732
3731
  return {
3733
3732
  setNodeRef: r,
@@ -3745,16 +3744,16 @@ function Bi(e) {
3745
3744
  }
3746
3745
  //#endregion
3747
3746
  //#region src/components/TableV2/TableV2RowActions.tsx
3748
- function Vi({ row: e, actions: t }) {
3749
- return t.length === 0 ? null : /* @__PURE__ */ K(Nn, { children: [/* @__PURE__ */ G(Pn, { children: /* @__PURE__ */ G(Z, {
3747
+ function Bi({ row: e, actions: t }) {
3748
+ return t.length === 0 ? null : /* @__PURE__ */ G(Mn, { children: [/* @__PURE__ */ W(Nn, { children: /* @__PURE__ */ W(Q, {
3750
3749
  variant: "tertiary",
3751
3750
  size: "sm",
3752
3751
  iconOnly: !0,
3753
3752
  "aria-label": "Row actions",
3754
- leftIcon: /* @__PURE__ */ G(R, { className: "h-4 w-4" })
3755
- }) }), /* @__PURE__ */ G(In, {
3753
+ leftIcon: /* @__PURE__ */ W(re, { className: "h-4 w-4" })
3754
+ }) }), /* @__PURE__ */ W(Fn, {
3756
3755
  align: "end",
3757
- children: t.map((t, n) => /* @__PURE__ */ G(Ln, {
3756
+ children: t.map((t, n) => /* @__PURE__ */ W(In, {
3758
3757
  icon: t.icon,
3759
3758
  destructive: t.destructive,
3760
3759
  disabled: t.disabled?.(e),
@@ -3765,15 +3764,15 @@ function Vi({ row: e, actions: t }) {
3765
3764
  }
3766
3765
  //#endregion
3767
3766
  //#region src/components/TableV2/TableV2.utils.tsx
3768
- var Hi = {
3767
+ var Vi = {
3769
3768
  comfortable: "py-3",
3770
3769
  compact: "py-2"
3771
- }, Ui = {
3770
+ }, Hi = {
3772
3771
  left: "text-left",
3773
3772
  center: "text-center",
3774
3773
  right: "text-right"
3775
3774
  };
3776
- function Wi() {
3775
+ function Ui() {
3777
3776
  return {
3778
3777
  id: "select",
3779
3778
  size: 40,
@@ -3783,13 +3782,13 @@ function Wi() {
3783
3782
  enableHiding: !1,
3784
3783
  enableResizing: !1,
3785
3784
  enableColumnFilter: !1,
3786
- header: ({ table: e }) => /* @__PURE__ */ G(Bt, {
3785
+ header: ({ table: e }) => /* @__PURE__ */ W(zt, {
3787
3786
  "aria-label": "Select all rows",
3788
3787
  checked: e.getIsAllRowsSelected(),
3789
3788
  indeterminate: e.getIsSomeRowsSelected() && !e.getIsAllRowsSelected(),
3790
3789
  onChange: e.getToggleAllRowsSelectedHandler()
3791
3790
  }),
3792
- cell: ({ row: e }) => /* @__PURE__ */ G(Bt, {
3791
+ cell: ({ row: e }) => /* @__PURE__ */ W(zt, {
3793
3792
  "aria-label": "Select row",
3794
3793
  checked: e.getIsSelected(),
3795
3794
  disabled: !e.getCanSelect(),
@@ -3798,7 +3797,7 @@ function Wi() {
3798
3797
  })
3799
3798
  };
3800
3799
  }
3801
- function Gi(e, t) {
3800
+ function Wi(e, t) {
3802
3801
  return {
3803
3802
  id: "actions",
3804
3803
  header: t?.header ?? "",
@@ -3806,13 +3805,13 @@ function Gi(e, t) {
3806
3805
  enableSorting: !1,
3807
3806
  enableColumnFilter: !1,
3808
3807
  enableResizing: !1,
3809
- cell: ({ row: t }) => /* @__PURE__ */ G(Vi, {
3808
+ cell: ({ row: t }) => /* @__PURE__ */ W(Bi, {
3810
3809
  row: t.original,
3811
3810
  actions: e(t.original)
3812
3811
  })
3813
3812
  };
3814
3813
  }
3815
- function Ki(e) {
3814
+ function Gi(e) {
3816
3815
  let t = e.getIsPinned();
3817
3816
  return t ? {
3818
3817
  position: "sticky",
@@ -3823,81 +3822,81 @@ function Ki(e) {
3823
3822
  }
3824
3823
  //#endregion
3825
3824
  //#region src/components/TableV2/TableV2.tsx
3826
- function qi(e, t, n) {
3825
+ function Ki(e, t, n) {
3827
3826
  let [r, i] = m(n);
3828
3827
  return [e === void 0 ? r : e, (e) => {
3829
3828
  i((t) => typeof e == "function" ? e(t) : e), t?.(e);
3830
3829
  }];
3831
3830
  }
3832
- var Ji = /* @__PURE__ */ new Set(["select", "actions"]);
3833
- function Yi({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
3834
- let c = e.column, l = Ji.has(c.id), u = i && !l, d = Bi(c.id), f = c.columnDef.meta?.align ?? "left", p = c.getIsSorted(), m = !l && (o && c.getCanPin() || s && c.getCanHide()), h = q(c.columnDef.header, e.getContext());
3835
- return /* @__PURE__ */ K("th", {
3831
+ var qi = /* @__PURE__ */ new Set(["select", "actions"]);
3832
+ function Ji({ header: e, density: t, enableSorting: n, enableFiltering: r, enableColumnOrdering: i, enableColumnResizing: a, enablePinning: o, enableColumnVisibility: s }) {
3833
+ let c = e.column, l = qi.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 = q(c.columnDef.header, e.getContext());
3834
+ return /* @__PURE__ */ G("th", {
3836
3835
  ref: u ? d.setNodeRef : void 0,
3837
3836
  colSpan: e.colSpan,
3838
3837
  scope: "col",
3839
3838
  style: {
3840
3839
  width: a ? e.getSize() : void 0,
3841
- ...Ki(c),
3840
+ ...Gi(c),
3842
3841
  ...u ? d.style : null
3843
3842
  },
3844
3843
  "aria-sort": p === "asc" ? "ascending" : p === "desc" ? "descending" : void 0,
3845
- className: Y("relative px-4 whitespace-nowrap bg-bg-container", Hi[t], Ui[f]),
3844
+ className: Y("relative px-4 whitespace-nowrap bg-bg-container", Vi[t], Hi[f]),
3846
3845
  children: [
3847
- /* @__PURE__ */ K("div", {
3846
+ /* @__PURE__ */ G("div", {
3848
3847
  className: "flex items-center gap-1",
3849
3848
  children: [
3850
- u && /* @__PURE__ */ G("button", {
3849
+ u && /* @__PURE__ */ W("button", {
3851
3850
  type: "button",
3852
3851
  className: "shrink-0 cursor-grab touch-none text-fg-tertiary hover:text-fg-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-300 rounded-sm",
3853
3852
  "aria-label": `Reorder ${typeof h == "string" ? h : c.id} column`,
3854
3853
  ...d.attributes,
3855
3854
  ...d.listeners,
3856
- children: /* @__PURE__ */ G(te, { className: "h-3.5 w-3.5" })
3855
+ children: /* @__PURE__ */ W(te, { className: "h-3.5 w-3.5" })
3857
3856
  }),
3858
- n && c.getCanSort() ? /* @__PURE__ */ K("button", {
3857
+ n && c.getCanSort() ? /* @__PURE__ */ G("button", {
3859
3858
  type: "button",
3860
3859
  onClick: c.getToggleSortingHandler(),
3861
3860
  className: "inline-flex items-center gap-1 hover:text-fg-default focus-visible:outline-none min-w-0",
3862
- children: [/* @__PURE__ */ G("span", {
3861
+ children: [/* @__PURE__ */ W("span", {
3863
3862
  className: "truncate",
3864
3863
  children: h
3865
- }), /* @__PURE__ */ G("span", {
3864
+ }), /* @__PURE__ */ W("span", {
3866
3865
  className: "inline-flex shrink-0 text-fg-tertiary",
3867
- children: G(p === "asc" ? v : p === "desc" ? _ : T, { className: "h-3.5 w-3.5" })
3866
+ children: W(p === "asc" ? v : p === "desc" ? _ : T, { className: "h-3.5 w-3.5" })
3868
3867
  })]
3869
- }) : /* @__PURE__ */ G("span", {
3868
+ }) : /* @__PURE__ */ W("span", {
3870
3869
  className: "truncate",
3871
3870
  children: h
3872
3871
  }),
3873
- m && /* @__PURE__ */ K(Nn, { children: [/* @__PURE__ */ G(Pn, { children: /* @__PURE__ */ G("button", {
3872
+ m && /* @__PURE__ */ G(Mn, { children: [/* @__PURE__ */ W(Nn, { children: /* @__PURE__ */ W("button", {
3874
3873
  type: "button",
3875
3874
  "aria-label": `${typeof h == "string" ? h : c.id} column options`,
3876
3875
  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",
3877
- children: /* @__PURE__ */ G(ne, { className: "h-3.5 w-3.5" })
3878
- }) }), /* @__PURE__ */ K(In, {
3876
+ children: /* @__PURE__ */ W(ne, { className: "h-3.5 w-3.5" })
3877
+ }) }), /* @__PURE__ */ G(Fn, {
3879
3878
  align: "start",
3880
3879
  children: [
3881
- o && c.getCanPin() && /* @__PURE__ */ K(W, { children: [
3882
- c.getIsPinned() !== "left" && /* @__PURE__ */ G(Ln, {
3883
- icon: /* @__PURE__ */ G(ie, { className: "h-4 w-4" }),
3880
+ o && c.getCanPin() && /* @__PURE__ */ G(U, { children: [
3881
+ c.getIsPinned() !== "left" && /* @__PURE__ */ W(In, {
3882
+ icon: /* @__PURE__ */ W(ae, { className: "h-4 w-4" }),
3884
3883
  onSelect: () => c.pin("left"),
3885
3884
  children: "Pin left"
3886
3885
  }),
3887
- c.getIsPinned() !== "right" && /* @__PURE__ */ G(Ln, {
3888
- icon: /* @__PURE__ */ G(ie, { className: "h-4 w-4" }),
3886
+ c.getIsPinned() !== "right" && /* @__PURE__ */ W(In, {
3887
+ icon: /* @__PURE__ */ W(ae, { className: "h-4 w-4" }),
3889
3888
  onSelect: () => c.pin("right"),
3890
3889
  children: "Pin right"
3891
3890
  }),
3892
- c.getIsPinned() && /* @__PURE__ */ G(Ln, {
3893
- icon: /* @__PURE__ */ G(ae, { className: "h-4 w-4" }),
3891
+ c.getIsPinned() && /* @__PURE__ */ W(In, {
3892
+ icon: /* @__PURE__ */ W(oe, { className: "h-4 w-4" }),
3894
3893
  onSelect: () => c.pin(!1),
3895
3894
  children: "Unpin"
3896
3895
  })
3897
3896
  ] }),
3898
- o && c.getCanPin() && s && c.getCanHide() && /* @__PURE__ */ G(Rn, {}),
3899
- s && c.getCanHide() && /* @__PURE__ */ G(Ln, {
3900
- icon: /* @__PURE__ */ G(M, { className: "h-4 w-4" }),
3897
+ o && c.getCanPin() && s && c.getCanHide() && /* @__PURE__ */ W(Ln, {}),
3898
+ s && c.getCanHide() && /* @__PURE__ */ W(In, {
3899
+ icon: /* @__PURE__ */ W(M, { className: "h-4 w-4" }),
3901
3900
  onSelect: () => c.toggleVisibility(!1),
3902
3901
  children: "Hide column"
3903
3902
  })
@@ -3905,12 +3904,12 @@ function Yi({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
3905
3904
  })] })
3906
3905
  ]
3907
3906
  }),
3908
- r && c.getCanFilter() && /* @__PURE__ */ G("div", {
3907
+ r && c.getCanFilter() && /* @__PURE__ */ W("div", {
3909
3908
  className: "mt-2 normal-case",
3910
3909
  onClick: (e) => e.stopPropagation(),
3911
- children: /* @__PURE__ */ G(ji, { column: c })
3910
+ children: /* @__PURE__ */ W(Ai, { column: c })
3912
3911
  }),
3913
- a && c.getCanResize() && /* @__PURE__ */ G("div", {
3912
+ a && c.getCanResize() && /* @__PURE__ */ W("div", {
3914
3913
  onMouseDown: e.getResizeHandler(),
3915
3914
  onTouchStart: e.getResizeHandler(),
3916
3915
  "data-resizing": c.getIsResizing() || void 0,
@@ -3919,34 +3918,34 @@ function Yi({ header: e, density: t, enableSorting: n, enableFiltering: r, enabl
3919
3918
  ]
3920
3919
  });
3921
3920
  }
3922
- function Xi({ row: e, onRowClick: t }) {
3923
- let n = e.getVisibleCells(), r = n.find((e) => !Ji.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 && !Ji.has(e.column.id));
3924
- return /* @__PURE__ */ K("div", {
3921
+ function Yi({ row: e, onRowClick: t }) {
3922
+ let n = e.getVisibleCells(), r = n.find((e) => !qi.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 && !qi.has(e.column.id));
3923
+ return /* @__PURE__ */ G("div", {
3925
3924
  "data-selected": e.getIsSelected() || void 0,
3926
3925
  onClick: t ? () => t(e.original) : void 0,
3927
3926
  role: t ? "button" : void 0,
3928
3927
  tabIndex: t ? 0 : void 0,
3929
3928
  className: Y("flex flex-col gap-2 border-b border-border-default p-4", t && "cursor-pointer hover:bg-bg-container", e.getIsSelected() && "bg-brand-50"),
3930
- children: [/* @__PURE__ */ K("div", {
3929
+ children: [/* @__PURE__ */ G("div", {
3931
3930
  className: "flex items-center gap-2",
3932
3931
  children: [
3933
3932
  i && q(i.column.columnDef.cell, i.getContext()),
3934
- /* @__PURE__ */ G("div", {
3933
+ /* @__PURE__ */ W("div", {
3935
3934
  className: "flex-1 min-w-0 text-p-std font-medium text-fg-default truncate",
3936
3935
  children: r && q(r.column.columnDef.cell, r.getContext())
3937
3936
  }),
3938
3937
  a && q(a.column.columnDef.cell, a.getContext())
3939
3938
  ]
3940
- }), o.length > 0 && /* @__PURE__ */ G("dl", {
3939
+ }), o.length > 0 && /* @__PURE__ */ W("dl", {
3941
3940
  className: "grid grid-cols-2 gap-2",
3942
3941
  children: o.map((e) => {
3943
3942
  let t = e.column.columnDef.header;
3944
- return /* @__PURE__ */ K("div", {
3943
+ return /* @__PURE__ */ G("div", {
3945
3944
  className: "min-w-0",
3946
- children: [/* @__PURE__ */ G("dt", {
3945
+ children: [/* @__PURE__ */ W("dt", {
3947
3946
  className: "text-p-xs text-fg-tertiary uppercase tracking-wide",
3948
3947
  children: typeof t == "string" ? t : e.column.id
3949
- }), /* @__PURE__ */ G("dd", {
3948
+ }), /* @__PURE__ */ W("dd", {
3950
3949
  className: "text-p-sm text-fg-default truncate",
3951
3950
  children: q(e.column.columnDef.cell, e.getContext())
3952
3951
  })]
@@ -3955,45 +3954,45 @@ function Xi({ row: e, onRowClick: t }) {
3955
3954
  })]
3956
3955
  });
3957
3956
  }
3958
- function Zi({ rowCount: e }) {
3959
- return /* @__PURE__ */ G("div", { children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ K("div", {
3957
+ function Xi({ rowCount: e }) {
3958
+ return /* @__PURE__ */ W("div", { children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ G("div", {
3960
3959
  "aria-hidden": t > 0 || void 0,
3961
3960
  className: "flex flex-col gap-2 border-b border-border-default p-4",
3962
- children: [/* @__PURE__ */ G(oi, {
3961
+ children: [/* @__PURE__ */ W(ai, {
3963
3962
  variant: "text",
3964
3963
  width: "60%"
3965
- }), /* @__PURE__ */ G(oi, {
3964
+ }), /* @__PURE__ */ W(ai, {
3966
3965
  variant: "text",
3967
3966
  width: "90%"
3968
3967
  })]
3969
3968
  }, t)) });
3970
3969
  }
3971
- function Qi(e, t) {
3972
- 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: te = !1, columnPinning: N, onColumnPinningChange: P, enableColumnResizing: F = !1, columnResizeMode: I = "onChange", enablePagination: L = !1, pageSize: ne = 10, pageSizeOptions: R, pagination: re, onPaginationChange: z, locale: ie = "en-US", manualPagination: ae = !1, pageCount: oe, rowCount: se, enableVirtualization: B = !1, estimatedRowHeight: ce = 44, maxBodyHeight: le = 480, onRowClick: ue, toolbar: V = !1, toolbarActions: de, searchPlaceholder: fe, onRefresh: H, onExport: U, density: pe = "comfortable", stickyHeader: me = !1, wrapperClassName: he, className: ge, dataTestId: _e } = e, [ve, ye] = qi(u, h, []), [be, xe] = qi(v, y, []), [Se, Ce] = qi(S, C, ""), [we, Me] = qi(E, D, {}), [J, Ne] = qi(k, A, {}), [Pe, Fe] = qi(M, ee, []), [Le, ze] = qi(N, P, {}), [Be, Ve] = qi(re, z, {
3970
+ function Zi(e, t) {
3971
+ 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: te = !1, columnPinning: N, onColumnPinningChange: P, enableColumnResizing: F = !1, columnResizeMode: I = "onChange", enablePagination: L = !1, pageSize: ne = 10, pageSizeOptions: re, pagination: ie, onPaginationChange: R, locale: ae = "en-US", manualPagination: oe = !1, pageCount: se, rowCount: ce, enableVirtualization: z = !1, estimatedRowHeight: le = 44, maxBodyHeight: ue = 480, onRowClick: de, toolbar: B = !1, toolbarActions: fe, searchPlaceholder: pe, onRefresh: V, onExport: H, density: me = "comfortable", stickyHeader: he = !1, fillHeight: K = !1, wrapperClassName: ge, className: _e, dataTestId: ve } = e, [ye, be] = Ki(u, h, []), [xe, Se] = Ki(v, y, []), [Ce, we] = Ki(S, C, ""), [Me, J] = Ki(E, D, {}), [Ne, Pe] = Ki(k, A, {}), [Fe, Le] = Ki(M, ee, []), [ze, Be] = Ki(N, P, {}), [Ve, He] = Ki(ie, R, {
3973
3972
  pageIndex: 0,
3974
3973
  pageSize: ne
3975
- }), He = Ae({
3974
+ }), Ue = Ae({
3976
3975
  data: n,
3977
- columns: f(() => !w || r.some((e) => e.id === "select") ? r : [Wi(), ...r], [r, w]),
3976
+ columns: f(() => !w || r.some((e) => e.id === "select") ? r : [Ui(), ...r], [r, w]),
3978
3977
  getRowId: s,
3979
3978
  state: {
3980
- sorting: ve,
3981
- columnFilters: be,
3982
- globalFilter: Se,
3983
- rowSelection: we,
3984
- columnVisibility: J,
3985
- columnOrder: Pe,
3986
- columnPinning: Le,
3987
- pagination: Be
3979
+ sorting: ye,
3980
+ columnFilters: xe,
3981
+ globalFilter: Ce,
3982
+ rowSelection: Me,
3983
+ columnVisibility: Ne,
3984
+ columnOrder: Fe,
3985
+ columnPinning: ze,
3986
+ pagination: Ve
3988
3987
  },
3989
- onSortingChange: ye,
3990
- onColumnFiltersChange: xe,
3991
- onGlobalFilterChange: Ce,
3992
- onRowSelectionChange: Me,
3993
- onColumnVisibilityChange: Ne,
3994
- onColumnOrderChange: Fe,
3995
- onColumnPinningChange: ze,
3996
- onPaginationChange: Ve,
3988
+ onSortingChange: be,
3989
+ onColumnFiltersChange: Se,
3990
+ onGlobalFilterChange: we,
3991
+ onRowSelectionChange: J,
3992
+ onColumnVisibilityChange: Pe,
3993
+ onColumnOrderChange: Le,
3994
+ onColumnPinningChange: Be,
3995
+ onPaginationChange: He,
3997
3996
  enableSorting: c,
3998
3997
  enableMultiSort: l,
3999
3998
  manualSorting: g,
@@ -4004,165 +4003,165 @@ function Qi(e, t) {
4004
4003
  enableMultiRowSelection: T,
4005
4004
  enableColumnResizing: F,
4006
4005
  columnResizeMode: I,
4007
- manualPagination: ae,
4008
- pageCount: oe,
4009
- rowCount: se,
4006
+ manualPagination: oe,
4007
+ pageCount: se,
4008
+ rowCount: ce,
4010
4009
  getCoreRowModel: Ee(),
4011
4010
  getSortedRowModel: c ? ke() : void 0,
4012
4011
  getFilteredRowModel: _ || x ? De() : void 0,
4013
4012
  getPaginationRowModel: L ? Oe() : void 0
4014
- }), Ue = He.getRowModel().rows, We = He.getVisibleLeafColumns().length, Ge = p(null), [Ke, qe] = m(null);
4013
+ }), We = Ue.getRowModel().rows, Ge = Ue.getVisibleLeafColumns().length, Ke = p(null), [X, qe] = m(null);
4015
4014
  d(() => {
4016
- if (!L || B) return;
4017
- let e = Ge.current?.getBoundingClientRect().height;
4018
- e && e !== Ke && qe(e);
4015
+ if (!L || z) return;
4016
+ let e = Ke.current?.getBoundingClientRect().height;
4017
+ e && e !== X && qe(e);
4019
4018
  }, [
4020
4019
  L,
4021
- B,
4022
- pe,
4023
- Ue,
4024
- Ke
4020
+ z,
4021
+ me,
4022
+ We,
4023
+ X
4025
4024
  ]);
4026
- let Je = Ke ?? ce, Ye = L && !B ? Math.max(0, Be.pageSize - Ue.length) * Je : 0, Xe = f(() => Pe.length > 0 ? Pe : He.getAllLeafColumns().map((e) => e.id), [Pe, He]), Ze = zi({
4025
+ let Je = X ?? le, Ye = L && !z ? Math.max(0, Ve.pageSize - We.length) * Je : 0, Xe = f(() => Fe.length > 0 ? Fe : Ue.getAllLeafColumns().map((e) => e.id), [Fe, Ue]), Ze = Ri({
4027
4026
  columnOrder: Xe,
4028
- onColumnOrderChange: Fe
4027
+ onColumnOrderChange: Le
4029
4028
  }), Qe = (e) => Ze.handleDragEnd(e), $e = p(null), et = Te({
4030
- count: Ue.length,
4029
+ count: We.length,
4031
4030
  getScrollElement: () => $e.current,
4032
- estimateSize: () => ce,
4031
+ estimateSize: () => le,
4033
4032
  overscan: 10,
4034
- enabled: B
4035
- }), X = B ? et.getVirtualItems() : null, tt = X && X.length > 0 ? X[0]?.start ?? 0 : 0, nt = X && X.length > 0 ? et.getTotalSize() - (X[X.length - 1]?.end ?? 0) : 0, Z = (e, t) => /* @__PURE__ */ G("tr", {
4033
+ enabled: z
4034
+ }), Z = z ? et.getVirtualItems() : null, tt = Z && Z.length > 0 ? Z[0]?.start ?? 0 : 0, Q = Z && Z.length > 0 ? et.getTotalSize() - (Z[Z.length - 1]?.end ?? 0) : 0, nt = (e, t) => /* @__PURE__ */ W("tr", {
4036
4035
  ref: t,
4037
4036
  "data-selected": e.getIsSelected() || void 0,
4038
- onClick: ue ? () => ue(e.original) : void 0,
4039
- className: Y("group border-t border-border-default", ue && "cursor-pointer"),
4040
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ G("td", {
4041
- style: Ki(e.column),
4042
- className: Y("bg-bg-default px-4 group-hover:bg-bg-container group-data-[selected]:bg-brand-50", Hi[pe], Ui[e.column.columnDef.meta?.align ?? "left"]),
4037
+ onClick: de ? () => de(e.original) : void 0,
4038
+ className: Y("group border-t border-border-default", de && "cursor-pointer"),
4039
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ W("td", {
4040
+ style: Gi(e.column),
4041
+ className: Y("bg-bg-default px-4 group-hover:bg-bg-container group-data-[selected]:bg-brand-50", Vi[me], Hi[e.column.columnDef.meta?.align ?? "left"]),
4043
4042
  children: q(e.column.columnDef.cell, e.getContext())
4044
4043
  }, e.id))
4045
- }, e.id), rt = (e, t) => /* @__PURE__ */ G("tr", { children: t.map((e) => /* @__PURE__ */ G(Yi, {
4044
+ }, e.id), rt = (e, t) => /* @__PURE__ */ W("tr", { children: t.map((e) => /* @__PURE__ */ W(Ji, {
4046
4045
  header: e,
4047
- density: pe,
4046
+ density: me,
4048
4047
  enableSorting: c,
4049
4048
  enableFiltering: _,
4050
4049
  enableColumnOrdering: j,
4051
4050
  enableColumnResizing: F,
4052
4051
  enablePinning: te,
4053
4052
  enableColumnVisibility: O
4054
- }, e.id)) }, e), it = /* @__PURE__ */ K("table", {
4053
+ }, e.id)) }, e), it = /* @__PURE__ */ G("table", {
4055
4054
  className: "w-full border-collapse text-p-std text-fg-default",
4056
- style: { width: F ? He.getTotalSize() : "100%" },
4057
- children: [/* @__PURE__ */ G("thead", {
4058
- className: Y("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", me && "sticky top-0 z-10"),
4059
- children: He.getHeaderGroups().map((e) => rt(e.id, e.headers))
4060
- }), /* @__PURE__ */ G("tbody", { children: i ? /* @__PURE__ */ G(Pi, {
4061
- columnCount: We,
4062
- rowCount: Be.pageSize
4063
- }) : Ue.length === 0 ? /* @__PURE__ */ G("tr", { children: /* @__PURE__ */ G("td", {
4064
- colSpan: We,
4055
+ style: { width: F ? Ue.getTotalSize() : "100%" },
4056
+ children: [/* @__PURE__ */ W("thead", {
4057
+ className: Y("text-p-sm font-semibold text-fg-secondary uppercase tracking-wider", (he || K) && "sticky top-0 z-10"),
4058
+ children: Ue.getHeaderGroups().map((e) => rt(e.id, e.headers))
4059
+ }), /* @__PURE__ */ W("tbody", { children: i ? /* @__PURE__ */ W(Ni, {
4060
+ columnCount: Ge,
4061
+ rowCount: Ve.pageSize
4062
+ }) : We.length === 0 ? /* @__PURE__ */ W("tr", { children: /* @__PURE__ */ W("td", {
4063
+ colSpan: Ge,
4065
4064
  className: "p-0",
4066
- children: /* @__PURE__ */ G(Xn, {
4065
+ children: /* @__PURE__ */ W(Yn, {
4067
4066
  size: "sm",
4068
4067
  title: o
4069
4068
  })
4070
- }) }) : B && X ? /* @__PURE__ */ K(W, { children: [
4071
- tt > 0 && /* @__PURE__ */ G("tr", {
4069
+ }) }) : z && Z ? /* @__PURE__ */ G(U, { children: [
4070
+ tt > 0 && /* @__PURE__ */ W("tr", {
4072
4071
  "aria-hidden": !0,
4073
- children: /* @__PURE__ */ G("td", {
4072
+ children: /* @__PURE__ */ W("td", {
4074
4073
  style: { height: tt },
4075
- colSpan: We
4074
+ colSpan: Ge
4076
4075
  })
4077
4076
  }),
4078
- X.map((e) => {
4079
- let t = Ue[e.index];
4080
- return t ? Z(t) : null;
4077
+ Z.map((e) => {
4078
+ let t = We[e.index];
4079
+ return t ? nt(t) : null;
4081
4080
  }),
4082
- nt > 0 && /* @__PURE__ */ G("tr", {
4081
+ Q > 0 && /* @__PURE__ */ W("tr", {
4083
4082
  "aria-hidden": !0,
4084
- children: /* @__PURE__ */ G("td", {
4085
- style: { height: nt },
4086
- colSpan: We
4083
+ children: /* @__PURE__ */ W("td", {
4084
+ style: { height: Q },
4085
+ colSpan: Ge
4087
4086
  })
4088
4087
  })
4089
- ] }) : /* @__PURE__ */ K(W, { children: [Ue.map((e, t) => Z(e, t === 0 ? Ge : void 0)), Ye > 0 && /* @__PURE__ */ G("tr", {
4088
+ ] }) : /* @__PURE__ */ G(U, { children: [We.map((e, t) => nt(e, t === 0 ? Ke : void 0)), Ye > 0 && /* @__PURE__ */ W("tr", {
4090
4089
  "aria-hidden": !0,
4091
- children: /* @__PURE__ */ G("td", {
4090
+ children: /* @__PURE__ */ W("td", {
4092
4091
  style: { height: Ye },
4093
- colSpan: We,
4092
+ colSpan: Ge,
4094
4093
  className: "p-0"
4095
4094
  })
4096
4095
  })] }) })]
4097
4096
  });
4098
- return /* @__PURE__ */ K("div", {
4097
+ return /* @__PURE__ */ G("div", {
4099
4098
  ref: t,
4100
- "data-test-id": _e,
4101
- className: Y("w-full rounded-lg border border-border-default bg-bg-default", he, ge),
4099
+ "data-test-id": ve,
4100
+ className: Y("w-full rounded-lg border border-border-default bg-bg-default", K && "h-full flex flex-col", ge, _e),
4102
4101
  children: [
4103
- V === !1 ? null : V ?? /* @__PURE__ */ G(Li, {
4104
- table: He,
4102
+ B === !1 ? null : B ?? /* @__PURE__ */ W(Ii, {
4103
+ table: Ue,
4105
4104
  enableGlobalFilter: x,
4106
4105
  enableColumnVisibility: O,
4107
- searchPlaceholder: fe,
4108
- onRefresh: H,
4109
- onExport: U,
4110
- actions: de
4106
+ searchPlaceholder: pe,
4107
+ onRefresh: V,
4108
+ onExport: H,
4109
+ actions: fe
4111
4110
  }),
4112
- a ? /* @__PURE__ */ G("div", {
4111
+ a ? /* @__PURE__ */ W("div", {
4113
4112
  className: "p-4",
4114
- children: /* @__PURE__ */ G(ar, {
4113
+ children: /* @__PURE__ */ W(ir, {
4115
4114
  variant: "danger",
4116
4115
  title: "Couldn't load data",
4117
4116
  description: a
4118
4117
  })
4119
- }) : /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
4120
- className: "hidden md:block",
4121
- children: /* @__PURE__ */ G("div", {
4118
+ }) : /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W("div", {
4119
+ className: Y("hidden", K ? "md:flex md:flex-col md:flex-1 md:min-h-0" : "md:block"),
4120
+ children: /* @__PURE__ */ W("div", {
4122
4121
  ref: $e,
4123
- className: Y("w-full overflow-auto", V === !1 ? "rounded-lg" : "rounded-b-lg"),
4124
- style: B || me ? { maxHeight: le } : void 0,
4125
- children: j ? /* @__PURE__ */ G(je, {
4122
+ className: Y("w-full overflow-auto", B === !1 ? "rounded-lg" : "rounded-b-lg", K && "flex-1 min-h-0"),
4123
+ style: K ? void 0 : z || he ? { maxHeight: ue } : void 0,
4124
+ children: j ? /* @__PURE__ */ W(je, {
4126
4125
  sensors: Ze.sensors,
4127
4126
  collisionDetection: Ze.collisionDetection,
4128
4127
  modifiers: Ze.modifiers,
4129
4128
  onDragEnd: Qe,
4130
- children: /* @__PURE__ */ G(Ie, {
4129
+ children: /* @__PURE__ */ W(Ie, {
4131
4130
  items: Xe,
4132
4131
  strategy: Re,
4133
4132
  children: it
4134
4133
  })
4135
4134
  }) : it
4136
4135
  })
4137
- }), /* @__PURE__ */ G("div", {
4136
+ }), /* @__PURE__ */ W("div", {
4138
4137
  className: "md:hidden",
4139
- children: i ? /* @__PURE__ */ G(Zi, { rowCount: Be.pageSize }) : Ue.length === 0 ? /* @__PURE__ */ G(Xn, {
4138
+ children: i ? /* @__PURE__ */ W(Xi, { rowCount: Ve.pageSize }) : We.length === 0 ? /* @__PURE__ */ W(Yn, {
4140
4139
  size: "sm",
4141
4140
  title: o
4142
- }) : Ue.map((e) => /* @__PURE__ */ G(Xi, {
4141
+ }) : We.map((e) => /* @__PURE__ */ W(Yi, {
4143
4142
  row: e,
4144
- onRowClick: ue
4143
+ onRowClick: de
4145
4144
  }, e.id))
4146
4145
  })] }),
4147
- L && !a && /* @__PURE__ */ G(Ni, {
4148
- table: He,
4149
- pageSizeOptions: R,
4150
- locale: ie
4146
+ L && !a && /* @__PURE__ */ W(Mi, {
4147
+ table: Ue,
4148
+ pageSizeOptions: re,
4149
+ locale: ae
4151
4150
  })
4152
4151
  ]
4153
4152
  });
4154
4153
  }
4155
- var $i = a(Qi);
4156
- $i.displayName = "TableV2";
4154
+ var Qi = a(Zi);
4155
+ Qi.displayName = "TableV2";
4157
4156
  //#endregion
4158
4157
  //#region src/components/Tabs/Tabs.tsx
4159
- var ea = r(null);
4160
- function ta() {
4161
- let e = c(ea);
4158
+ var $i = r(null);
4159
+ function ea() {
4160
+ let e = c($i);
4162
4161
  if (!e) throw Error("Tab components must be used inside <Tabs>");
4163
4162
  return e;
4164
4163
  }
4165
- function na(t) {
4164
+ function ta(t) {
4166
4165
  let n = [];
4167
4166
  e.forEach(t, (e) => {
4168
4167
  o(e) && n.push(e);
@@ -4176,9 +4175,9 @@ function na(t) {
4176
4175
  }
4177
4176
  return "";
4178
4177
  }
4179
- var ra = 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) {
4180
- let [f, p] = m(() => e ?? na(s)), h = t !== void 0, g = h ? t : f, _ = u();
4181
- return /* @__PURE__ */ G(ea.Provider, {
4178
+ var na = 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) {
4179
+ let [f, p] = m(() => e ?? ta(s)), h = t !== void 0, g = h ? t : f, _ = u();
4180
+ return /* @__PURE__ */ W($i.Provider, {
4182
4181
  value: {
4183
4182
  value: g,
4184
4183
  setValue: (e) => {
@@ -4189,7 +4188,7 @@ var ra = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4189
4188
  tabsId: _,
4190
4189
  disabled: a
4191
4190
  },
4192
- children: /* @__PURE__ */ G("div", {
4191
+ children: /* @__PURE__ */ W("div", {
4193
4192
  ref: d,
4194
4193
  "data-test-id": c,
4195
4194
  className: Y("flex flex-col gap-4", o),
@@ -4197,10 +4196,10 @@ var ra = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4197
4196
  children: s
4198
4197
  })
4199
4198
  });
4200
- }), ia = a(function({ children: e, scrollable: t = !1, className: n, dataTestId: r, onKeyDown: i, ...a }, o) {
4201
- let { variant: s } = ta(), c = p(null);
4202
- return /* @__PURE__ */ G("div", {
4203
- ref: Vt(o, c),
4199
+ }), ra = a(function({ children: e, scrollable: t = !1, className: n, dataTestId: r, onKeyDown: i, ...a }, o) {
4200
+ let { variant: s } = ea(), c = p(null);
4201
+ return /* @__PURE__ */ W("div", {
4202
+ ref: Bt(o, c),
4204
4203
  role: "tablist",
4205
4204
  onKeyDown: (e) => {
4206
4205
  i?.(e);
@@ -4220,12 +4219,12 @@ var ra = a(function({ defaultValue: e, value: t, onValueChange: n, variant: r =
4220
4219
  children: e
4221
4220
  });
4222
4221
  });
4223
- ia.displayName = "TabList";
4224
- var aa = {
4222
+ ra.displayName = "TabList";
4223
+ var ia = {
4225
4224
  lg: "h-11 px-4 text-p-md",
4226
4225
  md: "h-10 px-3 text-p-std",
4227
4226
  sm: "h-8 px-2.5 text-p-sm"
4228
- }, oa = {
4227
+ }, aa = {
4229
4228
  underline: {
4230
4229
  on: "bg-brand-500 text-white",
4231
4230
  off: "bg-bg-subtle text-fg-secondary"
@@ -4238,8 +4237,8 @@ var aa = {
4238
4237
  on: "bg-brand-500 text-white",
4239
4238
  off: "bg-bg-subtle text-fg-secondary"
4240
4239
  }
4241
- }, sa = 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) {
4242
- let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = ta(), x = qe(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Y("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", aa[v], S && "opacity-50 cursor-not-allowed"), D = _ === "underline" ? Y("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Y("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Y("border-r border-border-default last:border-r-0", x ? "bg-bg-default text-fg-default" : "bg-transparent text-fg-secondary hover:bg-bg-subtle"), O = /* @__PURE__ */ K("button", {
4240
+ }, oa = 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) {
4241
+ let { value: h, setValue: g, variant: _, size: v, tabsId: y, disabled: b } = ea(), x = X(h, e), S = b || n, C = i != null && i !== !1, w = f ?? `${y}-tab-${e}`, T = `${y}-panel-${e}`, E = Y("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", ia[v], S && "opacity-50 cursor-not-allowed"), D = _ === "underline" ? Y("rounded-t-lg", x ? "text-fg-default" : "text-fg-secondary hover:text-fg-default hover:bg-bg-subtle/60") : _ === "pills" ? Y("rounded-full", x ? "bg-bg-default text-fg-default shadow-z1" : "bg-transparent text-fg-secondary hover:text-fg-default") : Y("border-r border-border-default last:border-r-0", x ? "bg-bg-default text-fg-default" : "bg-transparent text-fg-secondary hover:bg-bg-subtle"), O = /* @__PURE__ */ G("button", {
4243
4242
  ref: m,
4244
4243
  id: w,
4245
4244
  type: "button",
@@ -4255,31 +4254,31 @@ var aa = {
4255
4254
  className: Y(E, D, o && "pr-9", l),
4256
4255
  ...p,
4257
4256
  children: [
4258
- r && /* @__PURE__ */ G("span", {
4257
+ r && /* @__PURE__ */ W("span", {
4259
4258
  className: "inline-flex shrink-0",
4260
4259
  children: r
4261
4260
  }),
4262
- /* @__PURE__ */ G("span", {
4261
+ /* @__PURE__ */ W("span", {
4263
4262
  className: "truncate",
4264
4263
  children: t
4265
4264
  }),
4266
- C && (a ? /* @__PURE__ */ G(Dt, {
4265
+ C && (a ? /* @__PURE__ */ W(Et, {
4267
4266
  size: "xs",
4268
4267
  ...a,
4269
4268
  children: i
4270
- }) : /* @__PURE__ */ G("span", {
4271
- className: Y("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 ? oa[_].on : oa[_].off),
4269
+ }) : /* @__PURE__ */ W("span", {
4270
+ className: Y("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 ? aa[_].on : aa[_].off),
4272
4271
  children: i
4273
4272
  })),
4274
- _ === "underline" && /* @__PURE__ */ G("span", {
4273
+ _ === "underline" && /* @__PURE__ */ W("span", {
4275
4274
  "aria-hidden": !0,
4276
4275
  className: Y("pointer-events-none absolute inset-x-0 -bottom-px h-[2px] rounded-full bg-brand-500 transition-opacity duration-150", x ? "opacity-100" : "opacity-0")
4277
4276
  })
4278
4277
  ]
4279
4278
  });
4280
- return o ? /* @__PURE__ */ K("span", {
4279
+ return o ? /* @__PURE__ */ G("span", {
4281
4280
  className: "relative inline-flex",
4282
- children: [O, /* @__PURE__ */ G("button", {
4281
+ children: [O, /* @__PURE__ */ W("button", {
4283
4282
  type: "button",
4284
4283
  "aria-label": c,
4285
4284
  disabled: S,
@@ -4290,9 +4289,9 @@ var aa = {
4290
4289
  children: o
4291
4290
  })]
4292
4291
  }) : O;
4293
- }), ca = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4294
- let { value: c, tabsId: l } = ta(), u = qe(c, e);
4295
- return !u && !a ? null : /* @__PURE__ */ G("div", {
4292
+ }), sa = a(function({ value: e, children: t, className: n, dataTestId: r, id: i, keepMounted: a = !1, ...o }, s) {
4293
+ let { value: c, tabsId: l } = ea(), u = X(c, e);
4294
+ return !u && !a ? null : /* @__PURE__ */ W("div", {
4296
4295
  ref: s,
4297
4296
  id: i ?? `${l}-panel-${e}`,
4298
4297
  role: "tabpanel",
@@ -4303,28 +4302,28 @@ var aa = {
4303
4302
  ...o,
4304
4303
  children: t
4305
4304
  });
4306
- }), la = 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) {
4305
+ }), ca = 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) {
4307
4306
  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;
4308
- return /* @__PURE__ */ K("div", {
4307
+ return /* @__PURE__ */ G("div", {
4309
4308
  className: Y("flex flex-col gap-1.5 w-full", f),
4310
4309
  "data-test-id": _,
4311
4310
  children: [
4312
- (e || t) && /* @__PURE__ */ K("div", {
4311
+ (e || t) && /* @__PURE__ */ G("div", {
4313
4312
  className: "flex items-center gap-1.5",
4314
- children: [e && /* @__PURE__ */ K("label", {
4313
+ children: [e && /* @__PURE__ */ G("label", {
4315
4314
  htmlFor: S,
4316
4315
  className: "text-p-std font-medium text-fg-default inline-flex items-center gap-1",
4317
- children: [e, s && /* @__PURE__ */ G("span", {
4316
+ children: [e, s && /* @__PURE__ */ W("span", {
4318
4317
  className: "text-red-600",
4319
4318
  "aria-hidden": !0,
4320
4319
  children: "*"
4321
4320
  })]
4322
- }), t && /* @__PURE__ */ G("span", {
4321
+ }), t && /* @__PURE__ */ W("span", {
4323
4322
  className: "inline-flex items-center gap-1",
4324
4323
  children: t
4325
4324
  })]
4326
4325
  }),
4327
- /* @__PURE__ */ G("textarea", {
4326
+ /* @__PURE__ */ W("textarea", {
4328
4327
  ref: b,
4329
4328
  id: S,
4330
4329
  disabled: o,
@@ -4341,20 +4340,20 @@ var aa = {
4341
4340
  className: Y("w-full px-3 py-2.5 rounded-lg border bg-bg-default text-p-std text-fg-default placeholder:text-fg-tertiary outline-none transition-colors resize-y", C ? "border-red-600" : "border-border-default", !o && !C && "hover:border-border-strong", "focus:ring-2", C ? "focus:ring-red-300 focus:border-red-600" : "focus:ring-brand-300 focus:border-brand-500", o && "bg-bg-container border-border-default cursor-not-allowed", d),
4342
4341
  ...y
4343
4342
  }),
4344
- /* @__PURE__ */ K("div", {
4343
+ /* @__PURE__ */ G("div", {
4345
4344
  className: "flex items-start justify-between gap-2",
4346
- children: [/* @__PURE__ */ G("div", {
4345
+ children: [/* @__PURE__ */ W("div", {
4347
4346
  className: "flex-1 min-w-0",
4348
- children: r ? /* @__PURE__ */ G("p", {
4347
+ children: r ? /* @__PURE__ */ W("p", {
4349
4348
  id: `${S}-error`,
4350
4349
  className: "text-p-sm text-red-700",
4351
4350
  children: r
4352
- }) : n ? /* @__PURE__ */ G("p", {
4351
+ }) : n ? /* @__PURE__ */ W("p", {
4353
4352
  id: `${S}-help`,
4354
4353
  className: "text-p-sm text-fg-secondary",
4355
4354
  children: n
4356
4355
  }) : null
4357
- }), E && /* @__PURE__ */ K("p", {
4356
+ }), E && /* @__PURE__ */ G("p", {
4358
4357
  className: "text-p-sm text-fg-tertiary tabular-nums shrink-0",
4359
4358
  children: [
4360
4359
  k,
@@ -4365,16 +4364,16 @@ var aa = {
4365
4364
  })
4366
4365
  ]
4367
4366
  });
4368
- }), ua = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4367
+ }), la = a(function({ checked: e, label: t, id: n, disabled: r, className: i, dataTestId: a, ...o }, s) {
4369
4368
  let c = u(), l = n ?? c;
4370
- return /* @__PURE__ */ K("label", {
4369
+ return /* @__PURE__ */ G("label", {
4371
4370
  htmlFor: l,
4372
4371
  "data-test-id": a,
4373
4372
  className: Y("inline-flex items-center gap-3", r ? "cursor-not-allowed opacity-60" : "cursor-pointer", i),
4374
- children: [/* @__PURE__ */ K("span", {
4373
+ children: [/* @__PURE__ */ G("span", {
4375
4374
  className: "relative inline-flex shrink-0",
4376
4375
  children: [
4377
- /* @__PURE__ */ G("input", {
4376
+ /* @__PURE__ */ W("input", {
4378
4377
  ref: s,
4379
4378
  id: l,
4380
4379
  type: "checkbox",
@@ -4385,40 +4384,40 @@ var aa = {
4385
4384
  className: "peer sr-only",
4386
4385
  ...o
4387
4386
  }),
4388
- /* @__PURE__ */ K("span", {
4387
+ /* @__PURE__ */ G("span", {
4389
4388
  className: Y("inline-flex h-8 w-16 items-center justify-between rounded-full px-2 transition-colors", "bg-gray-200 peer-checked:bg-gray-700 dark:bg-gray-700 dark:peer-checked:bg-gray-900", "peer-focus-visible:ring-2 peer-focus-visible:ring-brand-300 peer-focus-visible:ring-offset-2"),
4390
- children: [/* @__PURE__ */ G(ue, {
4389
+ children: [/* @__PURE__ */ W(de, {
4391
4390
  className: "size-4 text-yellow-500 z-1",
4392
4391
  "aria-hidden": !0
4393
- }), /* @__PURE__ */ G(L, {
4392
+ }), /* @__PURE__ */ W(L, {
4394
4393
  className: "size-4 text-gray-400 z-1",
4395
4394
  "aria-hidden": !0
4396
4395
  })]
4397
4396
  }),
4398
- /* @__PURE__ */ G("span", {
4397
+ /* @__PURE__ */ W("span", {
4399
4398
  "aria-hidden": !0,
4400
4399
  className: "absolute left-1 top-1 size-6 rounded-full bg-white shadow-z1 transition-transform peer-checked:translate-x-8 peer-checked:bg-gray-600"
4401
4400
  })
4402
4401
  ]
4403
- }), t && /* @__PURE__ */ G("span", {
4402
+ }), t && /* @__PURE__ */ W("span", {
4404
4403
  className: "text-p-std font-medium text-fg-default",
4405
4404
  children: t
4406
4405
  })]
4407
4406
  });
4408
- }), da = {
4407
+ }), ua = {
4409
4408
  lg: "px-3 py-2 text-p-std",
4410
4409
  sm: "px-2 py-1 text-p-sm"
4411
- }, fa = {
4410
+ }, da = {
4412
4411
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
4413
4412
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
4414
4413
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
4415
4414
  right: "left-full top-1/2 -translate-y-1/2 ml-2"
4416
- }, pa = {
4415
+ }, fa = {
4417
4416
  top: "top-full left-1/2 -translate-x-1/2 border-t-fg-default border-x-transparent border-b-transparent",
4418
4417
  bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-fg-default border-x-transparent border-t-transparent",
4419
4418
  left: "left-full top-1/2 -translate-y-1/2 border-l-fg-default border-y-transparent border-r-transparent",
4420
4419
  right: "right-full top-1/2 -translate-y-1/2 border-r-fg-default border-y-transparent border-l-transparent"
4421
- }, ma = a(function({ content: e, children: t, side: r = "top", size: i = "sm", delay: a = 150, className: s, dataTestId: c }, l) {
4420
+ }, pa = a(function({ content: e, children: t, side: r = "top", size: i = "sm", delay: a = 150, className: s, dataTestId: c }, l) {
4422
4421
  let [d, f] = m(!1), h = p(null), g = u(), _ = () => {
4423
4422
  h.current && clearTimeout(h.current), h.current = setTimeout(() => f(!0), a);
4424
4423
  }, v = () => {
@@ -4426,7 +4425,7 @@ var aa = {
4426
4425
  };
4427
4426
  if (!o(t)) return t;
4428
4427
  let y = t.props ?? {};
4429
- return /* @__PURE__ */ K("span", {
4428
+ return /* @__PURE__ */ G("span", {
4430
4429
  ref: l,
4431
4430
  "data-test-id": c,
4432
4431
  className: "relative inline-flex",
@@ -4436,42 +4435,42 @@ var aa = {
4436
4435
  onFocus: _,
4437
4436
  onBlur: v,
4438
4437
  "aria-describedby": d ? g : y["aria-describedby"]
4439
- }), d && /* @__PURE__ */ K("span", {
4438
+ }), d && /* @__PURE__ */ G("span", {
4440
4439
  role: "tooltip",
4441
4440
  id: g,
4442
- className: Y("absolute z-50 whitespace-nowrap rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", da[i], fa[r], s),
4443
- children: [e, /* @__PURE__ */ G("span", {
4441
+ className: Y("absolute z-50 whitespace-nowrap rounded-md bg-fg-default text-bg-default shadow-z3 pointer-events-none select-none", ua[i], da[r], s),
4442
+ children: [e, /* @__PURE__ */ W("span", {
4444
4443
  "aria-hidden": !0,
4445
- className: Y("absolute h-0 w-0 border-4", pa[r])
4444
+ className: Y("absolute h-0 w-0 border-4", fa[r])
4446
4445
  })]
4447
4446
  })]
4448
4447
  });
4449
- }), ha = "We'll be back soon", ga = "We're currently performing scheduled maintenance to make your experience even better. Please check back shortly.", _a = {
4448
+ }), ma = "We'll be back soon", ha = "We're currently performing scheduled maintenance to make your experience even better. Please check back shortly.", ga = {
4450
4449
  lg: "xl",
4451
4450
  sm: "lg"
4452
- }, va = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4453
- return /* @__PURE__ */ G(Xn, {
4451
+ }, _a = a(function({ size: e = "lg", title: t, description: n, illustration: r, ...i }, a) {
4452
+ return /* @__PURE__ */ W(Yn, {
4454
4453
  ref: a,
4455
4454
  size: e,
4456
- title: t ?? ha,
4457
- description: n ?? ga,
4458
- illustration: r ?? /* @__PURE__ */ G(Hn, {
4455
+ title: t ?? ma,
4456
+ description: n ?? ha,
4457
+ illustration: r ?? /* @__PURE__ */ W(Vn, {
4459
4458
  icon: k,
4460
4459
  tone: "brand",
4461
4460
  shape: "circle",
4462
- size: _a[e]
4461
+ size: ga[e]
4463
4462
  }),
4464
4463
  ...i
4465
4464
  });
4466
4465
  });
4467
4466
  //#endregion
4468
4467
  //#region src/hooks/useStepper.ts
4469
- function ya(e, t) {
4468
+ function va(e, t) {
4470
4469
  return t <= 0 ? 0 : Math.min(Math.max(e, 0), t - 1);
4471
4470
  }
4472
- function ba({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i = !1 }) {
4473
- let [a, o] = m(() => ya(t, e)), s = n !== void 0, c = s ? ya(n, e) : a, l = (t) => {
4474
- let n = ya(t, e);
4471
+ function ya({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i = !1 }) {
4472
+ let [a, o] = m(() => va(t, e)), s = n !== void 0, c = s ? va(n, e) : a, l = (t) => {
4473
+ let n = va(t, e);
4475
4474
  s || o(n), r?.(n);
4476
4475
  };
4477
4476
  return {
@@ -4499,31 +4498,31 @@ function ba({ count: e, initialStep: t = 0, step: n, onStepChange: r, loop: i =
4499
4498
  }
4500
4499
  //#endregion
4501
4500
  //#region src/hooks/useOnOutsideClick.ts
4502
- var Q = [];
4501
+ var ba = [];
4503
4502
  function xa(e) {
4504
- let t = Q[Q.length - 1];
4503
+ let t = ba[ba.length - 1];
4505
4504
  if (!t) return;
4506
4505
  let { ref: n, callback: r, shouldRemoveCallback: i } = t;
4507
- n && !n.contains(e.target) && (i && Q.splice(Q.length - 1, 1), r(e));
4506
+ n && !n.contains(e.target) && (i && ba.splice(ba.length - 1, 1), r(e));
4508
4507
  }
4509
4508
  var Sa = (e, t, n, r, i = !0) => {
4510
4509
  l(() => {
4511
- if (e && n && r) return Q.push({
4510
+ if (e && n && r) return ba.push({
4512
4511
  ref: e,
4513
4512
  callback: t,
4514
4513
  uid: r,
4515
4514
  shouldRemoveCallback: i
4516
- }), Q.length === 1 && document.addEventListener("mousedown", xa), () => {
4517
- Q.length === 0 && document.removeEventListener("mousedown", xa);
4515
+ }), ba.length === 1 && document.addEventListener("mousedown", xa), () => {
4516
+ ba.length === 0 && document.removeEventListener("mousedown", xa);
4518
4517
  };
4519
4518
  }, [
4520
4519
  e,
4521
4520
  n,
4522
4521
  r
4523
4522
  ]), l(() => {
4524
- if (!n && Q.length > 0) {
4525
- let e = Q.findIndex((e) => e.uid === r);
4526
- e >= 0 && Q.splice(e, 1);
4523
+ if (!n && ba.length > 0) {
4524
+ let e = ba.findIndex((e) => e.uid === r);
4525
+ e >= 0 && ba.splice(e, 1);
4527
4526
  }
4528
4527
  }, [n]);
4529
4528
  };
@@ -4562,7 +4561,7 @@ function Oa(e = Da) {
4562
4561
  //#endregion
4563
4562
  //#region src/hooks/useFormContext.ts
4564
4563
  function ka() {
4565
- let e = c(er);
4564
+ let e = c($n);
4566
4565
  if (!e) throw Error("useFormContext must be used inside a FormContainer.");
4567
4566
  return e;
4568
4567
  }
@@ -4583,7 +4582,7 @@ var Aa = () => void 0, ja = {
4583
4582
  submit: Aa
4584
4583
  };
4585
4584
  function Ma() {
4586
- return c(er) ?? ja;
4585
+ return c($n) ?? ja;
4587
4586
  }
4588
4587
  //#endregion
4589
4588
  //#region src/tokens/colors.ts
@@ -4854,6 +4853,6 @@ var Na = {
4854
4853
  z5: "0 8px 16px 0 rgba(0, 0, 0, 0.12), 0 24px 32px 0 rgba(0, 0, 0, 0.12)"
4855
4854
  };
4856
4855
  //#endregion
4857
- export { Qe as Accordion, $e as AccordionItem, _t as Avatar, vt as AvatarGroup, Dt as Badge, At as Breadcrumb, Z as Button, Mt as ButtonGroup, Ft as Card, Lt as CardGroup, Bt as Checkbox, qt as Copy, en as Counter, hn as DatePicker, yn as DistributionBar, Ke 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, pr as NotificationBadge, _r as Pagination, br as PersonCard, Kt as Popover, Tr as Progress, Ar as Radio, Dr as RadioGroup, jr as ReadMore, Qr as SelectV2, ti as Sidebar, ni as SidebarItem, oi as Skeleton, di as SnackbarProvider, hi as Status, Di as StepIndicator, Ai as Switch, sa as Tab, ia as TabList, ca as TabPanel, $i as TableV2, ji as TableV2ColumnFilter, Ii as TableV2ColumnVisibilityMenu, Ni as TableV2Pagination, Vi as TableV2RowActionsMenu, Pi as TableV2Skeleton, Li as TableV2Toolbar, ra as Tabs, qn as Text, la as TextArea, ua as ThemeSwitch, ma as Tooltip, va as UnderConstruction, st as Upload, lt as UploadItem, Ia as blue, Na as brand, Y as cn, Va as colorPrimitives, Ya as controlHeight, Gi as createRowActionsColumn, Wi as createSelectionColumn, Ua as darkTheme, Wa as fontFamily, Ki as getPinnedStyles, $ as gray, Fa as green, Ga as headline, Xa as iconSize, qa as label, Ha as lightTheme, Ka as paragraph, Ra as pink, La as purple, Za as radius, za as red, Qa as shadows, Ja as typography, Ca as useEscapeKey, _e as useFieldArray, ka as useFormContext, Ma as useFormProps, Ea as useHideBodyScroll, Oa as useIsMobile, Sa as useOnOutsideClick, ui as useSnackbar, ba as useStepper, ot as validateSingleFile, Pa as white, Ba as yellow };
4856
+ export { Ze as Accordion, Qe as AccordionItem, gt as Avatar, _t as AvatarGroup, Et as Badge, kt as Breadcrumb, Q as Button, jt as ButtonGroup, Pt as Card, It as CardGroup, zt as Checkbox, Kt as Copy, $t as Counter, mn as DatePicker, vn as DistributionBar, Ke as Divider, En as Drawer, Fn as DropdownContent, In as DropdownItem, Rn as DropdownLabel, Mn as DropdownMenu, Ln as DropdownSeparator, Nn as DropdownTrigger, Yn as Empty, Qn as Filter, er as FormContainer, tr as FormField, Vn as IconTile, nr as InfoField, ir as InlineAlert, Zt as Input, ar as Link, sr as Modal, fr as NotificationBadge, gr as Pagination, yr as PersonCard, Gt as Popover, wr as Progress, kr as Radio, Er as RadioGroup, Ar as ReadMore, Zr as SelectV2, ei as Sidebar, ti as SidebarItem, ai as Skeleton, ui as SnackbarProvider, mi as Status, Ei as StepIndicator, ki as Switch, oa as Tab, ra as TabList, sa as TabPanel, Qi as TableV2, Ai as TableV2ColumnFilter, Fi as TableV2ColumnVisibilityMenu, Mi as TableV2Pagination, Bi as TableV2RowActionsMenu, Ni as TableV2Skeleton, Ii as TableV2Toolbar, na as Tabs, Kn as Text, ca as TextArea, la as ThemeSwitch, pa as Tooltip, _a as UnderConstruction, ot as Upload, ct as UploadItem, Ia as blue, Na as brand, Y as cn, Va as colorPrimitives, Ya as controlHeight, Wi as createRowActionsColumn, Ui as createSelectionColumn, Ua as darkTheme, Wa as fontFamily, Gi as getPinnedStyles, $ as gray, Fa as green, Ga as headline, Xa as iconSize, qa as label, Ha as lightTheme, Ka as paragraph, Ra as pink, La as purple, Za as radius, za as red, Qa as shadows, Ja as typography, Ca as useEscapeKey, _e as useFieldArray, ka as useFormContext, Ma as useFormProps, Ea as useHideBodyScroll, Oa as useIsMobile, Sa as useOnOutsideClick, li as useSnackbar, ya as useStepper, at as validateSingleFile, Pa as white, Ba as yellow };
4858
4857
 
4859
4858
  //# sourceMappingURL=index.js.map