@apcrda/ui 0.4.9 → 0.5.1

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
@@ -9387,8 +9387,34 @@ var Vv = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Ji, {
9387
9387
  }));
9388
9388
  Vv.displayName = "DrawerDescription";
9389
9389
  //#endregion
9390
+ //#region src/components/EmptyState/EmptyState.tsx
9391
+ function Hv({ icon: t, title: n, description: r, action: i, className: a, ...o }) {
9392
+ return /* @__PURE__ */ P("div", {
9393
+ className: e("flex flex-col items-center justify-center gap-4 py-16 px-6 text-center", a),
9394
+ ...o,
9395
+ children: [
9396
+ t && /* @__PURE__ */ N("div", {
9397
+ className: "flex h-14 w-14 items-center justify-center rounded-full bg-[var(--apcrda-color-surface-muted)] text-[var(--apcrda-color-muted)]",
9398
+ children: t
9399
+ }),
9400
+ /* @__PURE__ */ P("div", {
9401
+ className: "flex flex-col gap-1.5 max-w-sm",
9402
+ children: [/* @__PURE__ */ N("p", {
9403
+ className: "text-base font-semibold text-[var(--apcrda-color-foreground)]",
9404
+ children: n
9405
+ }), r && /* @__PURE__ */ N("p", {
9406
+ className: "text-sm text-[var(--apcrda-color-muted)] leading-5",
9407
+ children: r
9408
+ })]
9409
+ }),
9410
+ i && /* @__PURE__ */ N("div", { children: i })
9411
+ ]
9412
+ });
9413
+ }
9414
+ Hv.displayName = "EmptyState";
9415
+ //#endregion
9390
9416
  //#region src/components/FileUpload/FileUpload.tsx
9391
- var Hv = C(({ className: t, accept: n, multiple: r = !1, maxSize: i, maxFiles: a, onFilesChange: o, disabled: s = !1, error: c = !1, variant: l = "dropzone", showPreview: u = !1, ...d }, f) => {
9417
+ var Uv = C(({ className: t, accept: n, multiple: r = !1, maxSize: i, maxFiles: a, onFilesChange: o, disabled: s = !1, error: c = !1, variant: l = "dropzone", showPreview: u = !1, ...d }, f) => {
9392
9418
  let p = A(null), [m, h] = j([]), [g, _] = j(!1), [v, y] = j(null), b = w((e) => {
9393
9419
  if (!e) return;
9394
9420
  y(null);
@@ -9447,7 +9473,7 @@ var Hv = C(({ className: t, accept: n, multiple: r = !1, maxSize: i, maxFiles: a
9447
9473
  className: "text-xs text-[var(--apcrda-color-error)]",
9448
9474
  children: v
9449
9475
  }),
9450
- u && m.length > 0 && /* @__PURE__ */ N(Uv, {
9476
+ u && m.length > 0 && /* @__PURE__ */ N(Wv, {
9451
9477
  files: m,
9452
9478
  onRemove: x
9453
9479
  })
@@ -9513,15 +9539,15 @@ var Hv = C(({ className: t, accept: n, multiple: r = !1, maxSize: i, maxFiles: a
9513
9539
  role: "alert",
9514
9540
  children: v
9515
9541
  }),
9516
- u && m.length > 0 && /* @__PURE__ */ N(Uv, {
9542
+ u && m.length > 0 && /* @__PURE__ */ N(Wv, {
9517
9543
  files: m,
9518
9544
  onRemove: x
9519
9545
  })
9520
9546
  ]
9521
9547
  });
9522
9548
  });
9523
- Hv.displayName = "FileUpload";
9524
- function Uv({ files: e, onRemove: t }) {
9549
+ Uv.displayName = "FileUpload";
9550
+ function Wv({ files: e, onRemove: t }) {
9525
9551
  return /* @__PURE__ */ N("ul", {
9526
9552
  className: "flex flex-col gap-1.5",
9527
9553
  "aria-label": "Selected files",
@@ -9545,15 +9571,15 @@ function Uv({ files: e, onRemove: t }) {
9545
9571
  }
9546
9572
  //#endregion
9547
9573
  //#region node_modules/@radix-ui/react-label/dist/index.mjs
9548
- var Wv = "Label", Gv = y.forwardRef((e, t) => /* @__PURE__ */ N(U.label, {
9574
+ var Gv = "Label", Kv = y.forwardRef((e, t) => /* @__PURE__ */ N(U.label, {
9549
9575
  ...e,
9550
9576
  ref: t,
9551
9577
  onMouseDown: (t) => {
9552
9578
  t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
9553
9579
  }
9554
9580
  }));
9555
- Gv.displayName = Wv;
9556
- var Kv = Gv, qv = C(({ className: t, required: n = !1, children: r, ...i }, a) => /* @__PURE__ */ P(Kv, {
9581
+ Kv.displayName = Gv;
9582
+ var qv = Kv, Jv = C(({ className: t, required: n = !1, children: r, ...i }, a) => /* @__PURE__ */ P(qv, {
9557
9583
  ref: a,
9558
9584
  className: e("inline-flex items-center gap-1 text-sm font-medium leading-none text-[var(--apcrda-color-foreground)] peer-disabled:cursor-not-allowed peer-disabled:opacity-55", t),
9559
9585
  ...i,
@@ -9563,15 +9589,15 @@ var Kv = Gv, qv = C(({ className: t, required: n = !1, children: r, ...i }, a) =
9563
9589
  children: "*"
9564
9590
  }) : null]
9565
9591
  }));
9566
- qv.displayName = "Label";
9592
+ Jv.displayName = "Label";
9567
9593
  //#endregion
9568
9594
  //#region src/components/FormField/FormField.tsx
9569
- function Jv({ label: t, htmlFor: n, required: r = !1, hint: i, error: a, className: o, children: s, ...c }) {
9595
+ function Yv({ label: t, htmlFor: n, required: r = !1, hint: i, error: a, className: o, children: s, ...c }) {
9570
9596
  return /* @__PURE__ */ P("div", {
9571
9597
  className: e("flex flex-col gap-1.5", o),
9572
9598
  ...c,
9573
9599
  children: [
9574
- t && /* @__PURE__ */ N(qv, {
9600
+ t && /* @__PURE__ */ N(Jv, {
9575
9601
  htmlFor: n,
9576
9602
  required: r,
9577
9603
  children: t
@@ -9588,10 +9614,10 @@ function Jv({ label: t, htmlFor: n, required: r = !1, hint: i, error: a, classNa
9588
9614
  ]
9589
9615
  });
9590
9616
  }
9591
- Jv.displayName = "FormField";
9617
+ Yv.displayName = "FormField";
9592
9618
  //#endregion
9593
9619
  //#region src/components/Input/Input.tsx
9594
- var Yv = hn("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55", {
9620
+ var Xv = hn("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55", {
9595
9621
  variants: {
9596
9622
  inputSize: {
9597
9623
  sm: "h-8 px-3 text-xs",
@@ -9617,7 +9643,7 @@ var Yv = hn("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-co
9617
9643
  withLeftIcon: !1,
9618
9644
  withRightIcon: !1
9619
9645
  }
9620
- }), Xv = C(({ className: t, inputSize: n = "md", error: r = !1, loading: i = !1, disabled: a = !1, leftIcon: o, rightIcon: s, "aria-invalid": c, ...l }, u) => {
9646
+ }), Zv = C(({ className: t, inputSize: n = "md", error: r = !1, loading: i = !1, disabled: a = !1, leftIcon: o, rightIcon: s, "aria-invalid": c, ...l }, u) => {
9621
9647
  let d = a || i, f = i ? /* @__PURE__ */ N(en, {
9622
9648
  "aria-hidden": "true",
9623
9649
  className: "h-4 w-4 animate-spin"
@@ -9631,7 +9657,7 @@ var Yv = hn("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-co
9631
9657
  }) : null,
9632
9658
  /* @__PURE__ */ N("input", {
9633
9659
  ref: u,
9634
- className: e(Yv({
9660
+ className: e(Xv({
9635
9661
  inputSize: n,
9636
9662
  error: r,
9637
9663
  withLeftIcon: !!o,
@@ -9650,10 +9676,10 @@ var Yv = hn("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-co
9650
9676
  ]
9651
9677
  });
9652
9678
  });
9653
- Xv.displayName = "Input";
9679
+ Zv.displayName = "Input";
9654
9680
  //#endregion
9655
9681
  //#region src/components/MultiSelect/MultiSelect.tsx
9656
- var Zv = C(({ className: t, value: n = [], onValueChange: r, options: i, placeholder: a = "Select...", searchPlaceholder: o = "Search...", emptyMessage: s = "No results found.", disabled: c = !1, error: l = !1, maxSelected: u, ...d }, f) => {
9682
+ var Qv = C(({ className: t, value: n = [], onValueChange: r, options: i, placeholder: a = "Select...", searchPlaceholder: o = "Search...", emptyMessage: s = "No results found.", disabled: c = !1, error: l = !1, maxSelected: u, ...d }, f) => {
9657
9683
  let [p, m] = j(!1), [h, g] = j(""), [_, v] = j(-1), y = D(), b = A(null), x = k(() => i.filter((e) => e.label.toLowerCase().includes(h.toLowerCase())), [i, h]), S = i.filter((e) => n.includes(e.value)), C = u !== void 0 && n.length >= u, w = (e) => {
9658
9684
  n.includes(e) ? r?.(n.filter((t) => t !== e)) : C || r?.([...n, e]);
9659
9685
  }, T = (e, t) => {
@@ -9779,10 +9805,10 @@ var Zv = C(({ className: t, value: n = [], onValueChange: r, options: i, placeho
9779
9805
  })
9780
9806
  });
9781
9807
  });
9782
- Zv.displayName = "MultiSelect";
9808
+ Qv.displayName = "MultiSelect";
9783
9809
  //#endregion
9784
9810
  //#region src/components/NotificationCenter/NotificationItem.tsx
9785
- var Qv = {
9811
+ var $v = {
9786
9812
  info: /* @__PURE__ */ N($t, {
9787
9813
  className: "h-4 w-4 text-[var(--apcrda-color-info)]",
9788
9814
  "aria-hidden": "true"
@@ -9800,14 +9826,14 @@ var Qv = {
9800
9826
  "aria-hidden": "true"
9801
9827
  })
9802
9828
  };
9803
- function $v({ notification: t, onDismiss: n, onClick: r }) {
9829
+ function ey({ notification: t, onDismiss: n, onClick: r }) {
9804
9830
  return /* @__PURE__ */ P("div", {
9805
9831
  role: "listitem",
9806
9832
  className: e("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-[var(--apcrda-color-surface-muted)]", !t.read && "bg-[var(--apcrda-color-primary)]/5"),
9807
9833
  children: [
9808
9834
  /* @__PURE__ */ N("div", {
9809
9835
  className: "mt-0.5 shrink-0",
9810
- children: Qv[t.type]
9836
+ children: $v[t.type]
9811
9837
  }),
9812
9838
  /* @__PURE__ */ P("button", {
9813
9839
  type: "button",
@@ -9853,7 +9879,7 @@ function $v({ notification: t, onDismiss: n, onClick: r }) {
9853
9879
  }
9854
9880
  //#endregion
9855
9881
  //#region src/components/NotificationCenter/NotificationPanel.tsx
9856
- function ey({ notifications: e, onMarkAllRead: t, onDismiss: n, onNotificationClick: r, loading: i = !1, emptyMessage: a = "No notifications" }) {
9882
+ function ty({ notifications: e, onMarkAllRead: t, onDismiss: n, onNotificationClick: r, loading: i = !1, emptyMessage: a = "No notifications" }) {
9857
9883
  let o = e.filter((e) => !e.read).length;
9858
9884
  return /* @__PURE__ */ P("div", {
9859
9885
  role: "region",
@@ -9889,7 +9915,7 @@ function ey({ notifications: e, onMarkAllRead: t, onDismiss: n, onNotificationCl
9889
9915
  }) : e.length === 0 ? /* @__PURE__ */ N("p", {
9890
9916
  className: "px-4 py-8 text-center text-sm text-[var(--apcrda-color-muted)]",
9891
9917
  children: a
9892
- }) : e.map((e) => /* @__PURE__ */ N($v, {
9918
+ }) : e.map((e) => /* @__PURE__ */ N(ey, {
9893
9919
  notification: e,
9894
9920
  onDismiss: n,
9895
9921
  onClick: r
@@ -9899,7 +9925,7 @@ function ey({ notifications: e, onMarkAllRead: t, onDismiss: n, onNotificationCl
9899
9925
  }
9900
9926
  //#endregion
9901
9927
  //#region src/components/NotificationCenter/NotificationCenter.tsx
9902
- function ty(e) {
9928
+ function ny(e) {
9903
9929
  let t = e.notifications.filter((e) => !e.read).length;
9904
9930
  return /* @__PURE__ */ P(Uc, { children: [/* @__PURE__ */ N(Gc, {
9905
9931
  asChild: !0,
@@ -9919,13 +9945,13 @@ function ty(e) {
9919
9945
  align: "end",
9920
9946
  sideOffset: 8,
9921
9947
  className: "z-50 w-80 rounded-[var(--apcrda-radius-md)] border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] shadow-[var(--apcrda-shadow-lg)] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
9922
- children: /* @__PURE__ */ N(ey, { ...e })
9948
+ children: /* @__PURE__ */ N(ty, { ...e })
9923
9949
  }) })] });
9924
9950
  }
9925
- ty.displayName = "NotificationCenter";
9951
+ ny.displayName = "NotificationCenter";
9926
9952
  //#endregion
9927
9953
  //#region src/components/Pagination/Pagination.tsx
9928
- function ny(e, t, n, r) {
9954
+ function ry(e, t, n, r) {
9929
9955
  let i = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n), a = i(1, Math.min(r, t)), o = i(Math.max(t - r + 1, 1), t), s = Math.max(e - n, r + 1), c = Math.min(e + n, t - r), l = [];
9930
9956
  s > r + 2 ? l.push("...") : s === r + 2 && l.push(r + 1);
9931
9957
  for (let e = s; e <= c; e++) l.push(e);
@@ -9939,13 +9965,13 @@ function ny(e, t, n, r) {
9939
9965
  t > 0 && e !== "..." && u[t - 1] !== "..." && e - u[t - 1] > 1 && d.push("..."), d.push(e);
9940
9966
  }), d;
9941
9967
  }
9942
- var ry = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-sm)] font-medium transition-colors duration-[var(--apcrda-motion-normal)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", iy = C(({ className: t, page: n, totalPages: r, onPageChange: i, siblingCount: a = 1, boundaryCount: o = 1, showFirstLast: s = !0, size: c = "md", disabled: l = !1, pageSize: u, onPageSizeChange: d, pageSizeOptions: f = [
9968
+ var iy = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-sm)] font-medium transition-colors duration-[var(--apcrda-motion-normal)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", ay = C(({ className: t, page: n, totalPages: r, onPageChange: i, siblingCount: a = 1, boundaryCount: o = 1, showFirstLast: s = !0, size: c = "md", disabled: l = !1, pageSize: u, onPageSizeChange: d, pageSizeOptions: f = [
9943
9969
  10,
9944
9970
  20,
9945
9971
  50,
9946
9972
  100
9947
9973
  ], ...p }, m) => {
9948
- let h = k(() => ny(n, r, a, o), [
9974
+ let h = k(() => ry(n, r, a, o), [
9949
9975
  n,
9950
9976
  r,
9951
9977
  a,
@@ -9959,7 +9985,7 @@ var ry = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-s
9959
9985
  onClick: t,
9960
9986
  disabled: l || r,
9961
9987
  "aria-label": n,
9962
- className: e(ry, g[c], "border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]"),
9988
+ className: e(iy, g[c], "border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]"),
9963
9989
  children: i
9964
9990
  });
9965
9991
  return /* @__PURE__ */ P("nav", {
@@ -9986,7 +10012,7 @@ var ry = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-s
9986
10012
  disabled: l,
9987
10013
  "aria-label": `Go to page ${t}`,
9988
10014
  "aria-current": t === n ? "page" : void 0,
9989
- className: e(ry, g[c], t === n ? "bg-[var(--apcrda-color-primary)] text-[var(--apcrda-color-primary-foreground)] border border-[var(--apcrda-color-primary)]" : "border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]"),
10015
+ className: e(iy, g[c], t === n ? "bg-[var(--apcrda-color-primary)] text-[var(--apcrda-color-primary-foreground)] border border-[var(--apcrda-color-primary)]" : "border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]"),
9990
10016
  children: t
9991
10017
  }, t)),
9992
10018
  _(() => i(n + 1), "Go to next page", n === r, /* @__PURE__ */ N(Wt, {
@@ -10011,10 +10037,10 @@ var ry = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-s
10011
10037
  ]
10012
10038
  });
10013
10039
  });
10014
- iy.displayName = "Pagination";
10040
+ ay.displayName = "Pagination";
10015
10041
  //#endregion
10016
10042
  //#region src/components/Popover/Popover.tsx
10017
- var ay = Uc, oy = Gc, sy = Jc, cy = Wc, ly = C(({ className: t, align: n = "center", sideOffset: r = 4, showArrow: i = !1, children: a, ...o }, s) => /* @__PURE__ */ N(Kc, { children: /* @__PURE__ */ P(qc, {
10043
+ var oy = Uc, sy = Gc, cy = Jc, ly = Wc, uy = C(({ className: t, align: n = "center", sideOffset: r = 4, showArrow: i = !1, children: a, ...o }, s) => /* @__PURE__ */ N(Kc, { children: /* @__PURE__ */ P(qc, {
10018
10044
  ref: s,
10019
10045
  align: n,
10020
10046
  sideOffset: r,
@@ -10022,11 +10048,59 @@ var ay = Uc, oy = Gc, sy = Jc, cy = Wc, ly = C(({ className: t, align: n = "cent
10022
10048
  ...o,
10023
10049
  children: [a, i && /* @__PURE__ */ N(Yc, { className: "fill-[var(--apcrda-color-surface)]" })]
10024
10050
  }) }));
10025
- ly.displayName = "PopoverContent";
10051
+ uy.displayName = "PopoverContent";
10052
+ //#endregion
10053
+ //#region src/components/Progress/Progress.tsx
10054
+ var dy = hn("w-full overflow-hidden rounded-full bg-[var(--apcrda-color-surface-muted)]", {
10055
+ variants: { size: {
10056
+ sm: "h-1",
10057
+ md: "h-2",
10058
+ lg: "h-3"
10059
+ } },
10060
+ defaultVariants: { size: "md" }
10061
+ }), fy = hn("h-full rounded-full transition-all duration-500 ease-out", {
10062
+ variants: { variant: {
10063
+ default: "bg-[var(--apcrda-color-primary)]",
10064
+ success: "bg-[var(--apcrda-color-success)]",
10065
+ warning: "bg-[var(--apcrda-color-warning)]",
10066
+ error: "bg-[var(--apcrda-color-error)]",
10067
+ info: "bg-[var(--apcrda-color-info)]"
10068
+ } },
10069
+ defaultVariants: { variant: "default" }
10070
+ });
10071
+ function py({ value: t = 0, max: n = 100, variant: r = "default", size: i = "md", label: a, showValue: o = !1, indeterminate: s = !1, className: c, ...l }) {
10072
+ let u = Math.min(Math.max(t, 0), n), d = u / n * 100;
10073
+ return /* @__PURE__ */ P("div", {
10074
+ className: e("flex flex-col gap-1.5", c),
10075
+ ...l,
10076
+ children: [(a || o) && /* @__PURE__ */ P("div", {
10077
+ className: "flex items-center justify-between gap-2",
10078
+ children: [a && /* @__PURE__ */ N("span", {
10079
+ className: "text-xs font-medium text-[var(--apcrda-color-foreground)]",
10080
+ children: a
10081
+ }), o && !s && /* @__PURE__ */ P("span", {
10082
+ className: "text-xs tabular-nums text-[var(--apcrda-color-muted)]",
10083
+ children: [Math.round(d), "%"]
10084
+ })]
10085
+ }), /* @__PURE__ */ N("div", {
10086
+ role: "progressbar",
10087
+ "aria-valuenow": s ? void 0 : u,
10088
+ "aria-valuemin": 0,
10089
+ "aria-valuemax": n,
10090
+ "aria-label": a,
10091
+ className: dy({ size: i }),
10092
+ children: /* @__PURE__ */ N("div", {
10093
+ className: e(fy({ variant: r }), s && "animate-[indeterminate_1.5s_ease-in-out_infinite] w-1/3"),
10094
+ style: s ? void 0 : { width: `${d}%` }
10095
+ })
10096
+ })]
10097
+ });
10098
+ }
10099
+ py.displayName = "Progress";
10026
10100
  //#endregion
10027
10101
  //#region node_modules/@radix-ui/react-radio-group/dist/index.mjs
10028
- var uy = "Radio", [dy, fy] = R(uy), [py, my] = dy(uy);
10029
- function hy(e) {
10102
+ var my = "Radio", [hy, gy] = R(my), [_y, vy] = hy(my);
10103
+ function yy(e) {
10030
10104
  let { __scopeRadio: t, checked: n = !1, children: r, disabled: i, form: a, name: o, onCheck: s, required: c, value: l = "on", internal_do_not_use_render: u } = e, [d, f] = y.useState(null), [p, m] = y.useState(null), h = {
10031
10105
  checked: n,
10032
10106
  disabled: i,
@@ -10042,19 +10116,19 @@ function hy(e) {
10042
10116
  setBubbleInput: m,
10043
10117
  onCheck: () => s?.()
10044
10118
  };
10045
- return /* @__PURE__ */ N(py, {
10119
+ return /* @__PURE__ */ N(_y, {
10046
10120
  scope: t,
10047
10121
  ...h,
10048
- children: Cy(u) ? u(h) : r
10122
+ children: Dy(u) ? u(h) : r
10049
10123
  });
10050
10124
  }
10051
- var gy = "RadioTrigger", _y = y.forwardRef(({ __scopeRadio: e, onClick: t, ...n }, r) => {
10052
- let { checked: i, disabled: a, value: o, setControl: s, onCheck: c, hasConsumerStoppedPropagationRef: l, isFormControl: u, bubbleInput: d } = my(gy, e), f = B(r, s);
10125
+ var by = "RadioTrigger", xy = y.forwardRef(({ __scopeRadio: e, onClick: t, ...n }, r) => {
10126
+ let { checked: i, disabled: a, value: o, setControl: s, onCheck: c, hasConsumerStoppedPropagationRef: l, isFormControl: u, bubbleInput: d } = vy(by, e), f = B(r, s);
10053
10127
  return /* @__PURE__ */ N(U.button, {
10054
10128
  type: "button",
10055
10129
  role: "radio",
10056
10130
  "aria-checked": i,
10057
- "data-state": wy(i),
10131
+ "data-state": Oy(i),
10058
10132
  "data-disabled": a ? "" : void 0,
10059
10133
  disabled: a,
10060
10134
  value: o,
@@ -10065,10 +10139,10 @@ var gy = "RadioTrigger", _y = y.forwardRef(({ __scopeRadio: e, onClick: t, ...n
10065
10139
  })
10066
10140
  });
10067
10141
  });
10068
- _y.displayName = gy;
10069
- var vy = y.forwardRef((e, t) => {
10142
+ xy.displayName = by;
10143
+ var Sy = y.forwardRef((e, t) => {
10070
10144
  let { __scopeRadio: n, name: r, checked: i, required: a, disabled: o, value: s, onCheck: c, form: l, ...u } = e;
10071
- return /* @__PURE__ */ N(hy, {
10145
+ return /* @__PURE__ */ N(yy, {
10072
10146
  __scopeRadio: n,
10073
10147
  checked: i,
10074
10148
  disabled: o,
@@ -10077,29 +10151,29 @@ var vy = y.forwardRef((e, t) => {
10077
10151
  name: r,
10078
10152
  form: l,
10079
10153
  value: s,
10080
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(_y, {
10154
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(xy, {
10081
10155
  ...u,
10082
10156
  ref: t,
10083
10157
  __scopeRadio: n
10084
- }), e && /* @__PURE__ */ N(Sy, { __scopeRadio: n })] })
10158
+ }), e && /* @__PURE__ */ N(Ey, { __scopeRadio: n })] })
10085
10159
  });
10086
10160
  });
10087
- vy.displayName = uy;
10088
- var yy = "RadioIndicator", by = y.forwardRef((e, t) => {
10089
- let { __scopeRadio: n, forceMount: r, ...i } = e, a = my(yy, n);
10161
+ Sy.displayName = my;
10162
+ var Cy = "RadioIndicator", wy = y.forwardRef((e, t) => {
10163
+ let { __scopeRadio: n, forceMount: r, ...i } = e, a = vy(Cy, n);
10090
10164
  return /* @__PURE__ */ N(W, {
10091
10165
  present: r || a.checked,
10092
10166
  children: /* @__PURE__ */ N(U.span, {
10093
- "data-state": wy(a.checked),
10167
+ "data-state": Oy(a.checked),
10094
10168
  "data-disabled": a.disabled ? "" : void 0,
10095
10169
  ...i,
10096
10170
  ref: t
10097
10171
  })
10098
10172
  });
10099
10173
  });
10100
- by.displayName = yy;
10101
- var xy = "RadioBubbleInput", Sy = y.forwardRef(({ __scopeRadio: e, ...t }, n) => {
10102
- let { control: r, checked: i, required: a, disabled: o, name: s, value: c, form: l, bubbleInput: u, setBubbleInput: d, hasConsumerStoppedPropagationRef: f } = my(xy, e), p = B(n, d), m = qm(i), h = Js(r);
10174
+ wy.displayName = Cy;
10175
+ var Ty = "RadioBubbleInput", Ey = y.forwardRef(({ __scopeRadio: e, ...t }, n) => {
10176
+ let { control: r, checked: i, required: a, disabled: o, name: s, value: c, form: l, bubbleInput: u, setBubbleInput: d, hasConsumerStoppedPropagationRef: f } = vy(Ty, e), p = B(n, d), m = qm(i), h = Js(r);
10103
10177
  y.useEffect(() => {
10104
10178
  let e = u;
10105
10179
  if (!e) return;
@@ -10138,26 +10212,26 @@ var xy = "RadioBubbleInput", Sy = y.forwardRef(({ __scopeRadio: e, ...t }, n) =>
10138
10212
  }
10139
10213
  });
10140
10214
  });
10141
- Sy.displayName = xy;
10142
- function Cy(e) {
10215
+ Ey.displayName = Ty;
10216
+ function Dy(e) {
10143
10217
  return typeof e == "function";
10144
10218
  }
10145
- function wy(e) {
10219
+ function Oy(e) {
10146
10220
  return e ? "checked" : "unchecked";
10147
10221
  }
10148
- var Ty = [
10222
+ var ky = [
10149
10223
  "ArrowUp",
10150
10224
  "ArrowDown",
10151
10225
  "ArrowLeft",
10152
10226
  "ArrowRight"
10153
- ], Ey = "RadioGroup", [Dy, Oy] = R(Ey, [bh, fy]), ky = bh(), Ay = fy(), [jy, My] = Dy(Ey), Ny = y.forwardRef((e, t) => {
10154
- let { __scopeRadioGroup: n, name: r, defaultValue: i, value: a, required: o = !1, disabled: s = !1, orientation: c, dir: l, loop: u = !0, onValueChange: d, ...f } = e, p = ky(n), m = Ke(l), [h, g] = ve({
10227
+ ], Ay = "RadioGroup", [jy, My] = R(Ay, [bh, gy]), Ny = bh(), Py = gy(), [Fy, Iy] = jy(Ay), Ly = y.forwardRef((e, t) => {
10228
+ let { __scopeRadioGroup: n, name: r, defaultValue: i, value: a, required: o = !1, disabled: s = !1, orientation: c, dir: l, loop: u = !0, onValueChange: d, ...f } = e, p = Ny(n), m = Ke(l), [h, g] = ve({
10155
10229
  prop: a,
10156
10230
  defaultProp: i ?? null,
10157
10231
  onChange: d,
10158
- caller: Ey
10232
+ caller: Ay
10159
10233
  });
10160
- return /* @__PURE__ */ N(jy, {
10234
+ return /* @__PURE__ */ N(Fy, {
10161
10235
  scope: n,
10162
10236
  name: r,
10163
10237
  required: o,
@@ -10182,11 +10256,11 @@ var Ty = [
10182
10256
  })
10183
10257
  });
10184
10258
  });
10185
- Ny.displayName = Ey;
10186
- var Py = "RadioGroupItem", Fy = "RadioGroupItemProvider", Iy = "RadioGroupItemTrigger", Ly = "RadioGroupItemBubbleInput";
10187
- function Ry(e) {
10188
- let { __scopeRadioGroup: t, value: n, disabled: r, children: i, internal_do_not_use_render: a } = e, o = My(Fy, t), s = Ay(t), c = o.disabled || r;
10189
- return /* @__PURE__ */ N(hy, {
10259
+ Ly.displayName = Ay;
10260
+ var Ry = "RadioGroupItem", zy = "RadioGroupItemProvider", By = "RadioGroupItemTrigger", Vy = "RadioGroupItemBubbleInput";
10261
+ function Hy(e) {
10262
+ let { __scopeRadioGroup: t, value: n, disabled: r, children: i, internal_do_not_use_render: a } = e, o = Iy(zy, t), s = Py(t), c = o.disabled || r;
10263
+ return /* @__PURE__ */ N(yy, {
10190
10264
  ...s,
10191
10265
  checked: o.value === n,
10192
10266
  disabled: c,
@@ -10198,11 +10272,11 @@ function Ry(e) {
10198
10272
  children: i
10199
10273
  });
10200
10274
  }
10201
- var zy = y.forwardRef((e, t) => {
10202
- let { __scopeRadioGroup: n, ...r } = e, i = ky(n), a = Ay(n), { checked: o, disabled: s } = my(Iy, a.__scopeRadio), c = y.useRef(null), l = B(t, c), u = y.useRef(!1);
10275
+ var Uy = y.forwardRef((e, t) => {
10276
+ let { __scopeRadioGroup: n, ...r } = e, i = Ny(n), a = Py(n), { checked: o, disabled: s } = vy(By, a.__scopeRadio), c = y.useRef(null), l = B(t, c), u = y.useRef(!1);
10203
10277
  return y.useEffect(() => {
10204
10278
  let e = (e) => {
10205
- Ty.includes(e.key) && (u.current = !0);
10279
+ ky.includes(e.key) && (u.current = !0);
10206
10280
  }, t = () => u.current = !1;
10207
10281
  return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
10208
10282
  document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
@@ -10212,7 +10286,7 @@ var zy = y.forwardRef((e, t) => {
10212
10286
  ...i,
10213
10287
  focusable: !s,
10214
10288
  active: o,
10215
- children: /* @__PURE__ */ N(_y, {
10289
+ children: /* @__PURE__ */ N(xy, {
10216
10290
  ...a,
10217
10291
  ...r,
10218
10292
  ref: l,
@@ -10225,61 +10299,61 @@ var zy = y.forwardRef((e, t) => {
10225
10299
  })
10226
10300
  });
10227
10301
  });
10228
- zy.displayName = Iy;
10229
- var By = y.forwardRef((e, t) => {
10302
+ Uy.displayName = By;
10303
+ var Wy = y.forwardRef((e, t) => {
10230
10304
  let { __scopeRadioGroup: n, value: r, disabled: i, ...a } = e;
10231
- return /* @__PURE__ */ N(Ry, {
10305
+ return /* @__PURE__ */ N(Hy, {
10232
10306
  __scopeRadioGroup: n,
10233
10307
  value: r,
10234
10308
  disabled: i,
10235
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(zy, {
10309
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(Uy, {
10236
10310
  ...a,
10237
10311
  ref: t,
10238
10312
  __scopeRadioGroup: n
10239
- }), e && /* @__PURE__ */ N(Vy, { __scopeRadioGroup: n })] })
10313
+ }), e && /* @__PURE__ */ N(Gy, { __scopeRadioGroup: n })] })
10240
10314
  });
10241
10315
  });
10242
- By.displayName = Py;
10243
- var Vy = y.forwardRef((e, t) => {
10316
+ Wy.displayName = Ry;
10317
+ var Gy = y.forwardRef((e, t) => {
10244
10318
  let { __scopeRadioGroup: n, ...r } = e;
10245
- return /* @__PURE__ */ N(Sy, {
10246
- ...Ay(n),
10319
+ return /* @__PURE__ */ N(Ey, {
10320
+ ...Py(n),
10247
10321
  ...r,
10248
10322
  ref: t
10249
10323
  });
10250
10324
  });
10251
- Vy.displayName = Ly;
10252
- var Hy = "RadioGroupIndicator", Uy = y.forwardRef((e, t) => {
10325
+ Gy.displayName = Vy;
10326
+ var Ky = "RadioGroupIndicator", qy = y.forwardRef((e, t) => {
10253
10327
  let { __scopeRadioGroup: n, ...r } = e;
10254
- return /* @__PURE__ */ N(by, {
10255
- ...Ay(n),
10328
+ return /* @__PURE__ */ N(wy, {
10329
+ ...Py(n),
10256
10330
  ...r,
10257
10331
  ref: t
10258
10332
  });
10259
10333
  });
10260
- Uy.displayName = Hy;
10334
+ qy.displayName = Ky;
10261
10335
  //#endregion
10262
10336
  //#region src/components/RadioGroup/RadioGroup.tsx
10263
- var Wy = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Ny, {
10337
+ var Jy = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Ly, {
10264
10338
  ref: r,
10265
10339
  className: e("grid gap-2", t),
10266
10340
  ...n
10267
10341
  }));
10268
- Wy.displayName = "RadioGroup";
10269
- var Gy = hn("aspect-square rounded-full border border-[var(--apcrda-color-border-strong)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-primary)] shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55 data-[state=checked]:border-[var(--apcrda-color-primary)]", {
10342
+ Jy.displayName = "RadioGroup";
10343
+ var Yy = hn("aspect-square rounded-full border border-[var(--apcrda-color-border-strong)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-primary)] shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55 data-[state=checked]:border-[var(--apcrda-color-primary)]", {
10270
10344
  variants: { size: {
10271
10345
  sm: "h-4 w-4",
10272
10346
  md: "h-5 w-5",
10273
10347
  lg: "h-6 w-6"
10274
10348
  } },
10275
10349
  defaultVariants: { size: "md" }
10276
- }), Ky = C(({ className: t, size: n = "md", loading: r = !1, disabled: i = !1, ...a }, o) => /* @__PURE__ */ N(By, {
10350
+ }), Xy = C(({ className: t, size: n = "md", loading: r = !1, disabled: i = !1, ...a }, o) => /* @__PURE__ */ N(Wy, {
10277
10351
  ref: o,
10278
- className: e(Gy({ size: n }), t),
10352
+ className: e(Yy({ size: n }), t),
10279
10353
  disabled: i || r,
10280
10354
  "aria-busy": r || void 0,
10281
10355
  ...a,
10282
- children: /* @__PURE__ */ N(Uy, {
10356
+ children: /* @__PURE__ */ N(qy, {
10283
10357
  className: "flex items-center justify-center",
10284
10358
  children: r ? /* @__PURE__ */ N(en, {
10285
10359
  "aria-hidden": "true",
@@ -10290,15 +10364,15 @@ var Gy = hn("aspect-square rounded-full border border-[var(--apcrda-color-border
10290
10364
  })
10291
10365
  })
10292
10366
  }));
10293
- Ky.displayName = "RadioGroupItem";
10367
+ Xy.displayName = "RadioGroupItem";
10294
10368
  //#endregion
10295
10369
  //#region node_modules/@radix-ui/number/dist/index.mjs
10296
- function qy(e, [t, n]) {
10370
+ function Zy(e, [t, n]) {
10297
10371
  return Math.min(n, Math.max(t, e));
10298
10372
  }
10299
10373
  //#endregion
10300
10374
  //#region node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
10301
- var Jy = Object.freeze({
10375
+ var Qy = Object.freeze({
10302
10376
  position: "absolute",
10303
10377
  border: 0,
10304
10378
  width: 1,
@@ -10309,32 +10383,32 @@ var Jy = Object.freeze({
10309
10383
  clip: "rect(0, 0, 0, 0)",
10310
10384
  whiteSpace: "nowrap",
10311
10385
  wordWrap: "normal"
10312
- }), Yy = "VisuallyHidden", Xy = y.forwardRef((e, t) => /* @__PURE__ */ N(U.span, {
10386
+ }), $y = "VisuallyHidden", eb = y.forwardRef((e, t) => /* @__PURE__ */ N(U.span, {
10313
10387
  ...e,
10314
10388
  ref: t,
10315
10389
  style: {
10316
- ...Jy,
10390
+ ...Qy,
10317
10391
  ...e.style
10318
10392
  }
10319
10393
  }));
10320
- Xy.displayName = Yy;
10321
- var Zy = Xy, Qy = [
10394
+ eb.displayName = $y;
10395
+ var tb = eb, nb = [
10322
10396
  " ",
10323
10397
  "Enter",
10324
10398
  "ArrowUp",
10325
10399
  "ArrowDown"
10326
- ], $y = [" ", "Enter"], eb = "Select", [tb, nb, rb] = ge(eb), [ib, ab] = R(eb, [rb, Zs]), ob = Zs(), [sb, cb] = ib(eb), [lb, ub] = ib(eb), db = "SelectProvider";
10327
- function fb(e) {
10328
- let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m, internal_do_not_use_render: h } = e, g = ob(t), [_, v] = y.useState(null), [b, x] = y.useState(null), [S, C] = y.useState(!1), w = Ke(l), [T, E] = ve({
10400
+ ], rb = [" ", "Enter"], ib = "Select", [ab, ob, sb] = ge(ib), [cb, lb] = R(ib, [sb, Zs]), ub = Zs(), [db, fb] = cb(ib), [pb, mb] = cb(ib), hb = "SelectProvider";
10401
+ function gb(e) {
10402
+ let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m, internal_do_not_use_render: h } = e, g = ub(t), [_, v] = y.useState(null), [b, x] = y.useState(null), [S, C] = y.useState(!1), w = Ke(l), [T, E] = ve({
10329
10403
  prop: r,
10330
10404
  defaultProp: i ?? !1,
10331
10405
  onChange: a,
10332
- caller: eb
10406
+ caller: ib
10333
10407
  }), [D, O] = ve({
10334
10408
  prop: o,
10335
10409
  defaultProp: s,
10336
10410
  onChange: c,
10337
- caller: eb
10411
+ caller: ib
10338
10412
  }), k = y.useRef(null), A = _ ? !!m || !!_.closest("form") : !0, [j, M] = y.useState(/* @__PURE__ */ new Set()), P = G(), F = Array.from(j).map((e) => e.props.value).join(";"), I = y.useCallback((e) => {
10339
10413
  M((t) => new Set(t).add(e));
10340
10414
  }, []), L = y.useCallback((e) => {
@@ -10367,34 +10441,34 @@ function fb(e) {
10367
10441
  };
10368
10442
  return /* @__PURE__ */ N(pc, {
10369
10443
  ...g,
10370
- children: /* @__PURE__ */ N(sb, {
10444
+ children: /* @__PURE__ */ N(db, {
10371
10445
  scope: t,
10372
10446
  ...R,
10373
- children: /* @__PURE__ */ N(tb.Provider, {
10447
+ children: /* @__PURE__ */ N(ab.Provider, {
10374
10448
  scope: t,
10375
- children: /* @__PURE__ */ N(lb, {
10449
+ children: /* @__PURE__ */ N(pb, {
10376
10450
  scope: t,
10377
10451
  onNativeOptionAdd: I,
10378
10452
  onNativeOptionRemove: L,
10379
- children: fx(h) ? h(R) : n
10453
+ children: gx(h) ? h(R) : n
10380
10454
  })
10381
10455
  })
10382
10456
  })
10383
10457
  });
10384
10458
  }
10385
- fb.displayName = db;
10386
- var pb = (e) => {
10459
+ gb.displayName = hb;
10460
+ var _b = (e) => {
10387
10461
  let { __scopeSelect: t, children: n, ...r } = e;
10388
- return /* @__PURE__ */ N(fb, {
10462
+ return /* @__PURE__ */ N(gb, {
10389
10463
  __scopeSelect: t,
10390
10464
  ...r,
10391
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [n, e ? /* @__PURE__ */ N(dx, { __scopeSelect: t }) : null] })
10465
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [n, e ? /* @__PURE__ */ N(hx, { __scopeSelect: t }) : null] })
10392
10466
  });
10393
10467
  };
10394
- pb.displayName = eb;
10395
- var mb = "SelectTrigger", hb = y.forwardRef((e, t) => {
10396
- let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = ob(n), o = cb(mb, n), s = o.disabled || r, c = B(t, o.onTriggerChange), l = nb(n), u = y.useRef("touch"), [d, f, p] = mx((e) => {
10397
- let t = l().filter((e) => !e.disabled), n = hx(t, e, t.find((e) => e.value === o.value));
10468
+ _b.displayName = ib;
10469
+ var vb = "SelectTrigger", yb = y.forwardRef((e, t) => {
10470
+ let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = ub(n), o = fb(vb, n), s = o.disabled || r, c = B(t, o.onTriggerChange), l = ob(n), u = y.useRef("touch"), [d, f, p] = vx((e) => {
10471
+ let t = l().filter((e) => !e.disabled), n = yx(t, e, t.find((e) => e.value === o.value));
10398
10472
  n !== void 0 && o.onValueChange(n.value);
10399
10473
  }), m = (e) => {
10400
10474
  s || (o.onOpenChange(!0), p()), e && (o.triggerPointerDownPosRef.current = {
@@ -10416,7 +10490,7 @@ var mb = "SelectTrigger", hb = y.forwardRef((e, t) => {
10416
10490
  "data-state": o.open ? "open" : "closed",
10417
10491
  disabled: s,
10418
10492
  "data-disabled": s ? "" : void 0,
10419
- "data-placeholder": px(o.value) ? "" : void 0,
10493
+ "data-placeholder": _x(o.value) ? "" : void 0,
10420
10494
  ...i,
10421
10495
  ref: c,
10422
10496
  onClick: V(i.onClick, (e) => {
@@ -10429,18 +10503,18 @@ var mb = "SelectTrigger", hb = y.forwardRef((e, t) => {
10429
10503
  }),
10430
10504
  onKeyDown: V(i.onKeyDown, (e) => {
10431
10505
  let t = d.current !== "";
10432
- !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && f(e.key), !(t && e.key === " ") && Qy.includes(e.key) && (m(), e.preventDefault());
10506
+ !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && f(e.key), !(t && e.key === " ") && nb.includes(e.key) && (m(), e.preventDefault());
10433
10507
  })
10434
10508
  })
10435
10509
  });
10436
10510
  });
10437
- hb.displayName = mb;
10438
- var gb = "SelectValue", _b = y.forwardRef((e, t) => {
10439
- let { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = e, c = cb(gb, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = B(t, c.onValueNodeChange);
10511
+ yb.displayName = vb;
10512
+ var bb = "SelectValue", xb = y.forwardRef((e, t) => {
10513
+ let { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = e, c = fb(bb, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = B(t, c.onValueNodeChange);
10440
10514
  H(() => {
10441
10515
  l(u);
10442
10516
  }, [l, u]);
10443
- let f = px(c.value);
10517
+ let f = _x(c.value);
10444
10518
  return /* @__PURE__ */ N(U.span, {
10445
10519
  ...s,
10446
10520
  asChild: f ? !1 : s.asChild,
@@ -10449,8 +10523,8 @@ var gb = "SelectValue", _b = y.forwardRef((e, t) => {
10449
10523
  children: /* @__PURE__ */ N(y.Fragment, { children: f ? o : a }, f ? "placeholder" : "value")
10450
10524
  });
10451
10525
  });
10452
- _b.displayName = gb;
10453
- var vb = "SelectIcon", yb = y.forwardRef((e, t) => {
10526
+ xb.displayName = bb;
10527
+ var Sb = "SelectIcon", Cb = y.forwardRef((e, t) => {
10454
10528
  let { __scopeSelect: n, children: r, ...i } = e;
10455
10529
  return /* @__PURE__ */ N(U.span, {
10456
10530
  "aria-hidden": !0,
@@ -10459,10 +10533,10 @@ var vb = "SelectIcon", yb = y.forwardRef((e, t) => {
10459
10533
  children: r || "▼"
10460
10534
  });
10461
10535
  });
10462
- yb.displayName = vb;
10463
- var bb = "SelectPortal", [xb, Sb] = ib(bb, { forceMount: void 0 }), Cb = (e) => {
10536
+ Cb.displayName = Sb;
10537
+ var wb = "SelectPortal", [Tb, Eb] = cb(wb, { forceMount: void 0 }), Db = (e) => {
10464
10538
  let { __scopeSelect: t, forceMount: n, ...r } = e;
10465
- return /* @__PURE__ */ N(xb, {
10539
+ return /* @__PURE__ */ N(Tb, {
10466
10540
  scope: e.__scopeSelect,
10467
10541
  forceMount: n,
10468
10542
  children: /* @__PURE__ */ N(tr, {
@@ -10471,28 +10545,28 @@ var bb = "SelectPortal", [xb, Sb] = ib(bb, { forceMount: void 0 }), Cb = (e) =>
10471
10545
  })
10472
10546
  });
10473
10547
  };
10474
- Cb.displayName = bb;
10475
- var wb = "SelectContent", Tb = y.forwardRef((e, t) => {
10476
- let n = Sb(wb, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = cb(wb, e.__scopeSelect), [o, s] = y.useState();
10548
+ Db.displayName = wb;
10549
+ var Ob = "SelectContent", kb = y.forwardRef((e, t) => {
10550
+ let n = Eb(Ob, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = fb(Ob, e.__scopeSelect), [o, s] = y.useState();
10477
10551
  return H(() => {
10478
10552
  s(new DocumentFragment());
10479
10553
  }, []), /* @__PURE__ */ N(W, {
10480
10554
  present: r || a.open,
10481
- children: ({ present: e }) => e ? /* @__PURE__ */ N(Mb, {
10555
+ children: ({ present: e }) => e ? /* @__PURE__ */ N(Ib, {
10482
10556
  ...i,
10483
10557
  ref: t
10484
- }) : /* @__PURE__ */ N(Eb, {
10558
+ }) : /* @__PURE__ */ N(Ab, {
10485
10559
  ...i,
10486
10560
  fragment: o
10487
10561
  })
10488
10562
  });
10489
10563
  });
10490
- Tb.displayName = wb;
10491
- var Eb = y.forwardRef((e, t) => {
10564
+ kb.displayName = Ob;
10565
+ var Ab = y.forwardRef((e, t) => {
10492
10566
  let { __scopeSelect: n, children: r, fragment: i } = e;
10493
- return i ? F.createPortal(/* @__PURE__ */ N(Ob, {
10567
+ return i ? F.createPortal(/* @__PURE__ */ N(Mb, {
10494
10568
  scope: n,
10495
- children: /* @__PURE__ */ N(tb.Slot, {
10569
+ children: /* @__PURE__ */ N(ab.Slot, {
10496
10570
  scope: n,
10497
10571
  children: /* @__PURE__ */ N("div", {
10498
10572
  ref: t,
@@ -10501,9 +10575,9 @@ var Eb = y.forwardRef((e, t) => {
10501
10575
  })
10502
10576
  }), i) : null;
10503
10577
  });
10504
- Eb.displayName = "SelectContentFragment";
10505
- var Db = 10, [Ob, kb] = ib(wb), Ab = "SelectContentImpl", jb = /* @__PURE__ */ ne("SelectContent.RemoveScroll"), Mb = y.forwardRef((e, t) => {
10506
- let { __scopeSelect: n } = e, { position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, side: s, sideOffset: c, align: l, alignOffset: u, arrowPadding: d, collisionBoundary: f, collisionPadding: p, sticky: m, hideWhenDetached: h, avoidCollisions: g, ..._ } = e, v = cb(wb, n), [b, x] = y.useState(null), [S, C] = y.useState(null), w = B(t, (e) => x(e)), [T, E] = y.useState(null), [D, O] = y.useState(null), k = nb(n), [A, j] = y.useState(!1), M = y.useRef(!1);
10578
+ Ab.displayName = "SelectContentFragment";
10579
+ var jb = 10, [Mb, Nb] = cb(Ob), Pb = "SelectContentImpl", Fb = /* @__PURE__ */ ne("SelectContent.RemoveScroll"), Ib = y.forwardRef((e, t) => {
10580
+ let { __scopeSelect: n } = e, { position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, side: s, sideOffset: c, align: l, alignOffset: u, arrowPadding: d, collisionBoundary: f, collisionPadding: p, sticky: m, hideWhenDetached: h, avoidCollisions: g, ..._ } = e, v = fb(Ob, n), [b, x] = y.useState(null), [S, C] = y.useState(null), w = B(t, (e) => x(e)), [T, E] = y.useState(null), [D, O] = y.useState(null), k = ob(n), [A, j] = y.useState(!1), M = y.useRef(!1);
10507
10581
  y.useEffect(() => {
10508
10582
  if (b) return Ci(b);
10509
10583
  }, [b]), ir();
@@ -10549,8 +10623,8 @@ var Db = 10, [Ob, kb] = ib(wb), Ab = "SelectContentImpl", jb = /* @__PURE__ */ n
10549
10623
  window.removeEventListener("blur", e), window.removeEventListener("resize", e);
10550
10624
  };
10551
10625
  }, [I]);
10552
- let [R, ee] = mx((e) => {
10553
- let t = k().filter((e) => !e.disabled), n = hx(t, e, t.find((e) => e.ref.current === document.activeElement));
10626
+ let [R, ee] = vx((e) => {
10627
+ let t = k().filter((e) => !e.disabled), n = yx(t, e, t.find((e) => e.ref.current === document.activeElement));
10554
10628
  n && setTimeout(() => n.ref.current?.focus());
10555
10629
  }), te = y.useCallback((e, t, n) => {
10556
10630
  let r = !M.current && !n;
@@ -10558,7 +10632,7 @@ var Db = 10, [Ob, kb] = ib(wb), Ab = "SelectContentImpl", jb = /* @__PURE__ */ n
10558
10632
  }, [v.value]), z = y.useCallback(() => b?.focus(), [b]), ne = y.useCallback((e, t, n) => {
10559
10633
  let r = !M.current && !n;
10560
10634
  (v.value !== void 0 && v.value === t || r) && O(e);
10561
- }, [v.value]), re = r === "popper" ? Ib : Pb, ie = re === Ib ? {
10635
+ }, [v.value]), re = r === "popper" ? Bb : Rb, ie = re === Bb ? {
10562
10636
  side: s,
10563
10637
  sideOffset: c,
10564
10638
  align: l,
@@ -10570,7 +10644,7 @@ var Db = 10, [Ob, kb] = ib(wb), Ab = "SelectContentImpl", jb = /* @__PURE__ */ n
10570
10644
  hideWhenDetached: h,
10571
10645
  avoidCollisions: g
10572
10646
  } : {};
10573
- return /* @__PURE__ */ N(Ob, {
10647
+ return /* @__PURE__ */ N(Mb, {
10574
10648
  scope: n,
10575
10649
  content: b,
10576
10650
  viewport: S,
@@ -10585,7 +10659,7 @@ var Db = 10, [Ob, kb] = ib(wb), Ab = "SelectContentImpl", jb = /* @__PURE__ */ n
10585
10659
  isPositioned: A,
10586
10660
  searchRef: R,
10587
10661
  children: /* @__PURE__ */ N(mi, {
10588
- as: jb,
10662
+ as: Fb,
10589
10663
  allowPinchZoom: !0,
10590
10664
  children: /* @__PURE__ */ N(Hn, {
10591
10665
  asChild: !0,
@@ -10641,19 +10715,19 @@ var Db = 10, [Ob, kb] = ib(wb), Ab = "SelectContentImpl", jb = /* @__PURE__ */ n
10641
10715
  })
10642
10716
  });
10643
10717
  });
10644
- Mb.displayName = Ab;
10645
- var Nb = "SelectItemAlignedPosition", Pb = y.forwardRef((e, t) => {
10646
- let { __scopeSelect: n, onPlaced: r, ...i } = e, a = cb(wb, n), o = kb(wb, n), [s, c] = y.useState(null), [l, u] = y.useState(null), d = B(t, (e) => u(e)), f = nb(n), p = y.useRef(!1), m = y.useRef(!0), { viewport: h, selectedItem: g, selectedItemText: _, focusSelectedItem: v } = o, b = y.useCallback(() => {
10718
+ Ib.displayName = Pb;
10719
+ var Lb = "SelectItemAlignedPosition", Rb = y.forwardRef((e, t) => {
10720
+ let { __scopeSelect: n, onPlaced: r, ...i } = e, a = fb(Ob, n), o = Nb(Ob, n), [s, c] = y.useState(null), [l, u] = y.useState(null), d = B(t, (e) => u(e)), f = ob(n), p = y.useRef(!1), m = y.useRef(!0), { viewport: h, selectedItem: g, selectedItemText: _, focusSelectedItem: v } = o, b = y.useCallback(() => {
10647
10721
  if (a.trigger && a.valueNode && s && l && h && g && _) {
10648
10722
  let e = a.trigger.getBoundingClientRect(), t = l.getBoundingClientRect(), n = a.valueNode.getBoundingClientRect(), i = _.getBoundingClientRect();
10649
10723
  if (a.dir !== "rtl") {
10650
- let r = i.left - t.left, a = n.left - r, o = e.left - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - Db, d = qy(a, [Db, Math.max(Db, u - l)]);
10724
+ let r = i.left - t.left, a = n.left - r, o = e.left - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - jb, d = Zy(a, [jb, Math.max(jb, u - l)]);
10651
10725
  s.style.minWidth = c + "px", s.style.left = d + "px";
10652
10726
  } else {
10653
- let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - Db, d = qy(a, [Db, Math.max(Db, u - l)]);
10727
+ let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - jb, d = Zy(a, [jb, Math.max(jb, u - l)]);
10654
10728
  s.style.minWidth = c + "px", s.style.right = d + "px";
10655
10729
  }
10656
- let o = f(), c = window.innerHeight - Db * 2, u = h.scrollHeight, d = window.getComputedStyle(l), m = parseInt(d.borderTopWidth, 10), v = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = m + v + u + b + y, S = Math.min(g.offsetHeight * 5, x), C = window.getComputedStyle(h), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Db, D = c - E, O = g.offsetHeight / 2, k = g.offsetTop + O, A = m + v + k, j = x - A;
10730
+ let o = f(), c = window.innerHeight - jb * 2, u = h.scrollHeight, d = window.getComputedStyle(l), m = parseInt(d.borderTopWidth, 10), v = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = m + v + u + b + y, S = Math.min(g.offsetHeight * 5, x), C = window.getComputedStyle(h), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - jb, D = c - E, O = g.offsetHeight / 2, k = g.offsetTop + O, A = m + v + k, j = x - A;
10657
10731
  if (A <= E) {
10658
10732
  let e = o.length > 0 && g === o[o.length - 1].ref.current;
10659
10733
  s.style.bottom = "0px";
@@ -10665,7 +10739,7 @@ var Nb = "SelectItemAlignedPosition", Pb = y.forwardRef((e, t) => {
10665
10739
  let t = Math.max(E, m + h.offsetTop + (e ? w : 0) + O) + j;
10666
10740
  s.style.height = t + "px", h.scrollTop = A - E + h.offsetTop;
10667
10741
  }
10668
- s.style.margin = `${Db}px 0`, s.style.minHeight = S + "px", s.style.maxHeight = c + "px", r?.(), requestAnimationFrame(() => p.current = !0);
10742
+ s.style.margin = `${jb}px 0`, s.style.minHeight = S + "px", s.style.maxHeight = c + "px", r?.(), requestAnimationFrame(() => p.current = !0);
10669
10743
  }
10670
10744
  }, [
10671
10745
  f,
@@ -10683,7 +10757,7 @@ var Nb = "SelectItemAlignedPosition", Pb = y.forwardRef((e, t) => {
10683
10757
  let [x, S] = y.useState();
10684
10758
  return H(() => {
10685
10759
  l && S(window.getComputedStyle(l).zIndex);
10686
- }, [l]), /* @__PURE__ */ N(Lb, {
10760
+ }, [l]), /* @__PURE__ */ N(Vb, {
10687
10761
  scope: n,
10688
10762
  contentWrapper: s,
10689
10763
  shouldExpandOnScrollRef: p,
@@ -10710,11 +10784,11 @@ var Nb = "SelectItemAlignedPosition", Pb = y.forwardRef((e, t) => {
10710
10784
  })
10711
10785
  });
10712
10786
  });
10713
- Pb.displayName = Nb;
10714
- var Fb = "SelectPopperPosition", Ib = y.forwardRef((e, t) => {
10715
- let { __scopeSelect: n, align: r = "start", collisionPadding: i = Db, ...a } = e;
10787
+ Rb.displayName = Lb;
10788
+ var zb = "SelectPopperPosition", Bb = y.forwardRef((e, t) => {
10789
+ let { __scopeSelect: n, align: r = "start", collisionPadding: i = jb, ...a } = e;
10716
10790
  return /* @__PURE__ */ N(hc, {
10717
- ...ob(n),
10791
+ ...ub(n),
10718
10792
  ...a,
10719
10793
  ref: t,
10720
10794
  align: r,
@@ -10730,13 +10804,13 @@ var Fb = "SelectPopperPosition", Ib = y.forwardRef((e, t) => {
10730
10804
  }
10731
10805
  });
10732
10806
  });
10733
- Ib.displayName = Fb;
10734
- var [Lb, Rb] = ib(wb, {}), zb = "SelectViewport", Bb = y.forwardRef((e, t) => {
10735
- let { __scopeSelect: n, nonce: r, ...i } = e, a = kb(zb, n), o = Rb(zb, n), s = B(t, a.onViewportChange), c = y.useRef(0);
10807
+ Bb.displayName = zb;
10808
+ var [Vb, Hb] = cb(Ob, {}), Ub = "SelectViewport", Wb = y.forwardRef((e, t) => {
10809
+ let { __scopeSelect: n, nonce: r, ...i } = e, a = Nb(Ub, n), o = Hb(Ub, n), s = B(t, a.onViewportChange), c = y.useRef(0);
10736
10810
  return /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N("style", {
10737
10811
  dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
10738
10812
  nonce: r
10739
- }), /* @__PURE__ */ N(tb.Slot, {
10813
+ }), /* @__PURE__ */ N(ab.Slot, {
10740
10814
  scope: n,
10741
10815
  children: /* @__PURE__ */ N(U.div, {
10742
10816
  "data-radix-select-viewport": "",
@@ -10754,7 +10828,7 @@ var [Lb, Rb] = ib(wb, {}), zb = "SelectViewport", Bb = y.forwardRef((e, t) => {
10754
10828
  if (r?.current && n) {
10755
10829
  let e = Math.abs(c.current - t.scrollTop);
10756
10830
  if (e > 0) {
10757
- let r = window.innerHeight - Db * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
10831
+ let r = window.innerHeight - jb * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
10758
10832
  if (o < r) {
10759
10833
  let i = o + e, a = Math.min(r, i), s = i - a;
10760
10834
  n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
@@ -10766,10 +10840,10 @@ var [Lb, Rb] = ib(wb, {}), zb = "SelectViewport", Bb = y.forwardRef((e, t) => {
10766
10840
  })
10767
10841
  })] });
10768
10842
  });
10769
- Bb.displayName = zb;
10770
- var Vb = "SelectGroup", [Hb, Ub] = ib(Vb), Wb = y.forwardRef((e, t) => {
10843
+ Wb.displayName = Ub;
10844
+ var Gb = "SelectGroup", [Kb, qb] = cb(Gb), Jb = y.forwardRef((e, t) => {
10771
10845
  let { __scopeSelect: n, ...r } = e, i = G();
10772
- return /* @__PURE__ */ N(Hb, {
10846
+ return /* @__PURE__ */ N(Kb, {
10773
10847
  scope: n,
10774
10848
  id: i,
10775
10849
  children: /* @__PURE__ */ N(U.div, {
@@ -10780,21 +10854,21 @@ var Vb = "SelectGroup", [Hb, Ub] = ib(Vb), Wb = y.forwardRef((e, t) => {
10780
10854
  })
10781
10855
  });
10782
10856
  });
10783
- Wb.displayName = Vb;
10784
- var Gb = "SelectLabel", Kb = y.forwardRef((e, t) => {
10785
- let { __scopeSelect: n, ...r } = e, i = Ub(Gb, n);
10857
+ Jb.displayName = Gb;
10858
+ var Yb = "SelectLabel", Xb = y.forwardRef((e, t) => {
10859
+ let { __scopeSelect: n, ...r } = e, i = qb(Yb, n);
10786
10860
  return /* @__PURE__ */ N(U.div, {
10787
10861
  id: i.id,
10788
10862
  ...r,
10789
10863
  ref: t
10790
10864
  });
10791
10865
  });
10792
- Kb.displayName = Gb;
10793
- var qb = "SelectItem", [Jb, Yb] = ib(qb), Xb = y.forwardRef((e, t) => {
10794
- let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, s = cb(qb, n), c = kb(qb, n), l = s.value === r, [u, d] = y.useState(a ?? ""), [f, p] = y.useState(!1), m = B(t, (e) => c.itemRefCallback?.(e, r, i)), h = G(), g = y.useRef("touch"), _ = () => {
10866
+ Xb.displayName = Yb;
10867
+ var Zb = "SelectItem", [Qb, $b] = cb(Zb), ex = y.forwardRef((e, t) => {
10868
+ let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, s = fb(Zb, n), c = Nb(Zb, n), l = s.value === r, [u, d] = y.useState(a ?? ""), [f, p] = y.useState(!1), m = B(t, (e) => c.itemRefCallback?.(e, r, i)), h = G(), g = y.useRef("touch"), _ = () => {
10795
10869
  i || (s.onValueChange(r), s.onOpenChange(!1));
10796
10870
  };
10797
- return /* @__PURE__ */ N(Jb, {
10871
+ return /* @__PURE__ */ N(Qb, {
10798
10872
  scope: n,
10799
10873
  value: r,
10800
10874
  disabled: i,
@@ -10803,7 +10877,7 @@ var qb = "SelectItem", [Jb, Yb] = ib(qb), Xb = y.forwardRef((e, t) => {
10803
10877
  onItemTextChange: y.useCallback((e) => {
10804
10878
  d((t) => t || (e?.textContent ?? "").trim());
10805
10879
  }, []),
10806
- children: /* @__PURE__ */ N(tb.ItemSlot, {
10880
+ children: /* @__PURE__ */ N(ab.ItemSlot, {
10807
10881
  scope: n,
10808
10882
  value: r,
10809
10883
  disabled: i,
@@ -10837,15 +10911,15 @@ var qb = "SelectItem", [Jb, Yb] = ib(qb), Xb = y.forwardRef((e, t) => {
10837
10911
  e.currentTarget === document.activeElement && c.onItemLeave?.();
10838
10912
  }),
10839
10913
  onKeyDown: V(o.onKeyDown, (e) => {
10840
- c.searchRef?.current !== "" && e.key === " " || ($y.includes(e.key) && _(), e.key === " " && e.preventDefault());
10914
+ c.searchRef?.current !== "" && e.key === " " || (rb.includes(e.key) && _(), e.key === " " && e.preventDefault());
10841
10915
  })
10842
10916
  })
10843
10917
  })
10844
10918
  });
10845
10919
  });
10846
- Xb.displayName = qb;
10847
- var Zb = "SelectItemText", Qb = y.forwardRef((e, t) => {
10848
- let { __scopeSelect: n, className: r, style: i, ...a } = e, o = cb(Zb, n), s = kb(Zb, n), c = Yb(Zb, n), l = ub(Zb, n), [u, d] = y.useState(null), f = B(t, (e) => d(e), c.onItemTextChange, (e) => s.itemTextRefCallback?.(e, c.value, c.disabled)), p = u?.textContent, m = y.useMemo(() => /* @__PURE__ */ N("option", {
10920
+ ex.displayName = Zb;
10921
+ var tx = "SelectItemText", nx = y.forwardRef((e, t) => {
10922
+ let { __scopeSelect: n, className: r, style: i, ...a } = e, o = fb(tx, n), s = Nb(tx, n), c = $b(tx, n), l = mb(tx, n), [u, d] = y.useState(null), f = B(t, (e) => d(e), c.onItemTextChange, (e) => s.itemTextRefCallback?.(e, c.value, c.disabled)), p = u?.textContent, m = y.useMemo(() => /* @__PURE__ */ N("option", {
10849
10923
  value: c.value,
10850
10924
  disabled: c.disabled,
10851
10925
  children: p
@@ -10862,20 +10936,20 @@ var Zb = "SelectItemText", Qb = y.forwardRef((e, t) => {
10862
10936
  id: c.textId,
10863
10937
  ...a,
10864
10938
  ref: f
10865
- }), c.isSelected && o.valueNode && !o.valueNodeHasChildren && !px(o.value) ? F.createPortal(a.children, o.valueNode) : null] });
10939
+ }), c.isSelected && o.valueNode && !o.valueNodeHasChildren && !_x(o.value) ? F.createPortal(a.children, o.valueNode) : null] });
10866
10940
  });
10867
- Qb.displayName = Zb;
10868
- var $b = "SelectItemIndicator", ex = y.forwardRef((e, t) => {
10941
+ nx.displayName = tx;
10942
+ var rx = "SelectItemIndicator", ix = y.forwardRef((e, t) => {
10869
10943
  let { __scopeSelect: n, ...r } = e;
10870
- return Yb($b, n).isSelected ? /* @__PURE__ */ N(U.span, {
10944
+ return $b(rx, n).isSelected ? /* @__PURE__ */ N(U.span, {
10871
10945
  "aria-hidden": !0,
10872
10946
  ...r,
10873
10947
  ref: t
10874
10948
  }) : null;
10875
10949
  });
10876
- ex.displayName = $b;
10877
- var tx = "SelectScrollUpButton", nx = y.forwardRef((e, t) => {
10878
- let n = kb(tx, e.__scopeSelect), r = Rb(tx, e.__scopeSelect), [i, a] = y.useState(!1), o = B(t, r.onScrollButtonChange);
10950
+ ix.displayName = rx;
10951
+ var ax = "SelectScrollUpButton", ox = y.forwardRef((e, t) => {
10952
+ let n = Nb(ax, e.__scopeSelect), r = Hb(ax, e.__scopeSelect), [i, a] = y.useState(!1), o = B(t, r.onScrollButtonChange);
10879
10953
  return H(() => {
10880
10954
  if (n.viewport && n.isPositioned) {
10881
10955
  let e = function() {
@@ -10883,7 +10957,7 @@ var tx = "SelectScrollUpButton", nx = y.forwardRef((e, t) => {
10883
10957
  }, t = n.viewport;
10884
10958
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
10885
10959
  }
10886
- }, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ N(ax, {
10960
+ }, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ N(lx, {
10887
10961
  ...e,
10888
10962
  ref: o,
10889
10963
  onAutoScroll: () => {
@@ -10892,9 +10966,9 @@ var tx = "SelectScrollUpButton", nx = y.forwardRef((e, t) => {
10892
10966
  }
10893
10967
  }) : null;
10894
10968
  });
10895
- nx.displayName = tx;
10896
- var rx = "SelectScrollDownButton", ix = y.forwardRef((e, t) => {
10897
- let n = kb(rx, e.__scopeSelect), r = Rb(rx, e.__scopeSelect), [i, a] = y.useState(!1), o = B(t, r.onScrollButtonChange);
10969
+ ox.displayName = ax;
10970
+ var sx = "SelectScrollDownButton", cx = y.forwardRef((e, t) => {
10971
+ let n = Nb(sx, e.__scopeSelect), r = Hb(sx, e.__scopeSelect), [i, a] = y.useState(!1), o = B(t, r.onScrollButtonChange);
10898
10972
  return H(() => {
10899
10973
  if (n.viewport && n.isPositioned) {
10900
10974
  let e = function() {
@@ -10903,7 +10977,7 @@ var rx = "SelectScrollDownButton", ix = y.forwardRef((e, t) => {
10903
10977
  }, t = n.viewport;
10904
10978
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
10905
10979
  }
10906
- }, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ N(ax, {
10980
+ }, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ N(lx, {
10907
10981
  ...e,
10908
10982
  ref: o,
10909
10983
  onAutoScroll: () => {
@@ -10912,9 +10986,9 @@ var rx = "SelectScrollDownButton", ix = y.forwardRef((e, t) => {
10912
10986
  }
10913
10987
  }) : null;
10914
10988
  });
10915
- ix.displayName = rx;
10916
- var ax = y.forwardRef((e, t) => {
10917
- let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = kb("SelectScrollButton", n), o = y.useRef(null), s = nb(n), c = y.useCallback(() => {
10989
+ cx.displayName = sx;
10990
+ var lx = y.forwardRef((e, t) => {
10991
+ let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = Nb("SelectScrollButton", n), o = y.useRef(null), s = ob(n), c = y.useCallback(() => {
10918
10992
  o.current !== null && (window.clearInterval(o.current), o.current = null);
10919
10993
  }, []);
10920
10994
  return y.useEffect(() => () => c(), [c]), H(() => {
@@ -10937,7 +11011,7 @@ var ax = y.forwardRef((e, t) => {
10937
11011
  c();
10938
11012
  })
10939
11013
  });
10940
- }), ox = "SelectSeparator", sx = y.forwardRef((e, t) => {
11014
+ }), ux = "SelectSeparator", dx = y.forwardRef((e, t) => {
10941
11015
  let { __scopeSelect: n, ...r } = e;
10942
11016
  return /* @__PURE__ */ N(U.div, {
10943
11017
  "aria-hidden": !0,
@@ -10945,18 +11019,18 @@ var ax = y.forwardRef((e, t) => {
10945
11019
  ref: t
10946
11020
  });
10947
11021
  });
10948
- sx.displayName = ox;
10949
- var cx = "SelectArrow", lx = y.forwardRef((e, t) => {
10950
- let { __scopeSelect: n, ...r } = e, i = ob(n);
10951
- return kb(cx, n).position === "popper" ? /* @__PURE__ */ N(gc, {
11022
+ dx.displayName = ux;
11023
+ var fx = "SelectArrow", px = y.forwardRef((e, t) => {
11024
+ let { __scopeSelect: n, ...r } = e, i = ub(n);
11025
+ return Nb(fx, n).position === "popper" ? /* @__PURE__ */ N(gc, {
10952
11026
  ...i,
10953
11027
  ...r,
10954
11028
  ref: t
10955
11029
  }) : null;
10956
11030
  });
10957
- lx.displayName = cx;
10958
- var ux = "SelectBubbleInput", dx = y.forwardRef(({ __scopeSelect: e, ...t }, n) => {
10959
- let r = cb(ux, e), { value: i, onValueChange: a, required: o, disabled: s, name: c, autoComplete: l, form: u } = r, { nativeOptions: d, nativeSelectKey: f } = r, p = y.useRef(null), m = B(n, p), h = i ?? "", g = qm(h), _ = Array.from(d).some((e) => (e.props.value ?? "") === "");
11031
+ px.displayName = fx;
11032
+ var mx = "SelectBubbleInput", hx = y.forwardRef(({ __scopeSelect: e, ...t }, n) => {
11033
+ let r = fb(mx, e), { value: i, onValueChange: a, required: o, disabled: s, name: c, autoComplete: l, form: u } = r, { nativeOptions: d, nativeSelectKey: f } = r, p = y.useRef(null), m = B(n, p), h = i ?? "", g = qm(h), _ = Array.from(d).some((e) => (e.props.value ?? "") === "");
10960
11034
  return y.useEffect(() => {
10961
11035
  let e = p.current;
10962
11036
  if (!e) return;
@@ -10976,22 +11050,22 @@ var ux = "SelectBubbleInput", dx = y.forwardRef(({ __scopeSelect: e, ...t }, n)
10976
11050
  onChange: (e) => a(e.target.value),
10977
11051
  ...t,
10978
11052
  style: {
10979
- ...Jy,
11053
+ ...Qy,
10980
11054
  ...t.style
10981
11055
  },
10982
11056
  ref: m,
10983
11057
  defaultValue: h,
10984
- children: [px(i) && !_ ? /* @__PURE__ */ N("option", { value: "" }) : null, Array.from(d)]
11058
+ children: [_x(i) && !_ ? /* @__PURE__ */ N("option", { value: "" }) : null, Array.from(d)]
10985
11059
  }, f);
10986
11060
  });
10987
- dx.displayName = ux;
10988
- function fx(e) {
11061
+ hx.displayName = mx;
11062
+ function gx(e) {
10989
11063
  return typeof e == "function";
10990
11064
  }
10991
- function px(e) {
11065
+ function _x(e) {
10992
11066
  return e === "" || e === void 0;
10993
11067
  }
10994
- function mx(e) {
11068
+ function vx(e) {
10995
11069
  let t = bn(e), n = y.useRef(""), r = y.useRef(0), i = y.useCallback((e) => {
10996
11070
  let i = n.current + e;
10997
11071
  t(i), (function e(t) {
@@ -11006,23 +11080,23 @@ function mx(e) {
11006
11080
  a
11007
11081
  ];
11008
11082
  }
11009
- function hx(e, t, n) {
11010
- let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = gx(e, Math.max(i, 0));
11083
+ function yx(e, t, n) {
11084
+ let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = bx(e, Math.max(i, 0));
11011
11085
  r.length === 1 && (a = a.filter((e) => e !== n));
11012
11086
  let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
11013
11087
  return o === n ? void 0 : o;
11014
11088
  }
11015
- function gx(e, t) {
11089
+ function bx(e, t) {
11016
11090
  return e.map((n, r) => e[(t + r) % e.length]);
11017
11091
  }
11018
11092
  //#endregion
11019
11093
  //#region src/components/Select/Select.tsx
11020
- var _x = pb, vx = Wb, yx = _b, bx = C(({ className: t, size: n = "md", error: r = !1, children: i, ...a }, o) => /* @__PURE__ */ P(hb, {
11094
+ var xx = _b, Sx = Jb, Cx = xb, wx = C(({ className: t, size: n = "md", error: r = !1, children: i, ...a }, o) => /* @__PURE__ */ P(yb, {
11021
11095
  ref: o,
11022
11096
  className: e("flex w-full items-center justify-between gap-2 rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55 [&>span]:truncate", n === "sm" && "h-8 px-3 text-xs", n === "md" && "h-10 px-3 text-sm", n === "lg" && "h-12 px-4 text-base", r ? "border-[var(--apcrda-color-error)]" : "border-[var(--apcrda-color-border)] hover:border-[var(--apcrda-color-border-strong)]", t),
11023
11097
  "aria-invalid": r || void 0,
11024
11098
  ...a,
11025
- children: [i, /* @__PURE__ */ N(yb, {
11099
+ children: [i, /* @__PURE__ */ N(Cb, {
11026
11100
  asChild: !0,
11027
11101
  children: /* @__PURE__ */ N(Ht, {
11028
11102
  className: "h-4 w-4 shrink-0 text-[var(--apcrda-color-muted)]",
@@ -11030,8 +11104,8 @@ var _x = pb, vx = Wb, yx = _b, bx = C(({ className: t, size: n = "md", error: r
11030
11104
  })
11031
11105
  })]
11032
11106
  }));
11033
- bx.displayName = "SelectTrigger";
11034
- var xx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(nx, {
11107
+ wx.displayName = "SelectTrigger";
11108
+ var Tx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(ox, {
11035
11109
  ref: r,
11036
11110
  className: e("flex cursor-default items-center justify-center py-1", t),
11037
11111
  ...n,
@@ -11040,8 +11114,8 @@ var xx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(nx, {
11040
11114
  "aria-hidden": "true"
11041
11115
  })
11042
11116
  }));
11043
- xx.displayName = "SelectScrollUpButton";
11044
- var Sx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(ix, {
11117
+ Tx.displayName = "SelectScrollUpButton";
11118
+ var Ex = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(cx, {
11045
11119
  ref: r,
11046
11120
  className: e("flex cursor-default items-center justify-center py-1", t),
11047
11121
  ...n,
@@ -11050,57 +11124,57 @@ var Sx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(ix, {
11050
11124
  "aria-hidden": "true"
11051
11125
  })
11052
11126
  }));
11053
- Sx.displayName = "SelectScrollDownButton";
11054
- var Cx = C(({ className: t, children: n, position: r = "popper", ...i }, a) => /* @__PURE__ */ N(Cb, { children: /* @__PURE__ */ P(Tb, {
11127
+ Ex.displayName = "SelectScrollDownButton";
11128
+ var Dx = C(({ className: t, children: n, position: r = "popper", ...i }, a) => /* @__PURE__ */ N(Db, { children: /* @__PURE__ */ P(kb, {
11055
11129
  ref: a,
11056
11130
  className: e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-[var(--apcrda-radius-md)] border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-[var(--apcrda-shadow-md)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", t),
11057
11131
  position: r,
11058
11132
  ...i,
11059
11133
  children: [
11060
- /* @__PURE__ */ N(xx, {}),
11061
- /* @__PURE__ */ N(Bb, {
11134
+ /* @__PURE__ */ N(Tx, {}),
11135
+ /* @__PURE__ */ N(Wb, {
11062
11136
  className: e("p-1", r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
11063
11137
  children: n
11064
11138
  }),
11065
- /* @__PURE__ */ N(Sx, {})
11139
+ /* @__PURE__ */ N(Ex, {})
11066
11140
  ]
11067
11141
  }) }));
11068
- Cx.displayName = "SelectContent";
11069
- var wx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Kb, {
11142
+ Dx.displayName = "SelectContent";
11143
+ var Ox = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Xb, {
11070
11144
  ref: r,
11071
11145
  className: e("px-2 py-1.5 text-xs font-semibold text-[var(--apcrda-color-muted)]", t),
11072
11146
  ...n
11073
11147
  }));
11074
- wx.displayName = "SelectLabel";
11075
- var Tx = C(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ P(Xb, {
11148
+ Ox.displayName = "SelectLabel";
11149
+ var kx = C(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ P(ex, {
11076
11150
  ref: i,
11077
11151
  className: e("relative flex w-full cursor-default select-none items-center rounded-[var(--apcrda-radius-sm)] py-1.5 pl-8 pr-2 text-sm text-[var(--apcrda-color-foreground)] outline-none focus:bg-[var(--apcrda-color-surface-muted)] focus:text-[var(--apcrda-color-foreground)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
11078
11152
  ...r,
11079
11153
  children: [/* @__PURE__ */ N("span", {
11080
11154
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
11081
- children: /* @__PURE__ */ N(ex, { children: /* @__PURE__ */ N(Vt, {
11155
+ children: /* @__PURE__ */ N(ix, { children: /* @__PURE__ */ N(Vt, {
11082
11156
  className: "h-4 w-4 text-[var(--apcrda-color-primary)]",
11083
11157
  "aria-hidden": "true"
11084
11158
  }) })
11085
- }), /* @__PURE__ */ N(Qb, { children: n })]
11159
+ }), /* @__PURE__ */ N(nx, { children: n })]
11086
11160
  }));
11087
- Tx.displayName = "SelectItem";
11088
- var Ex = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(sx, {
11161
+ kx.displayName = "SelectItem";
11162
+ var Ax = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(dx, {
11089
11163
  ref: r,
11090
11164
  className: e("-mx-1 my-1 h-px bg-[var(--apcrda-color-border)]", t),
11091
11165
  ...n
11092
11166
  }));
11093
- Ex.displayName = "SelectSeparator";
11167
+ Ax.displayName = "SelectSeparator";
11094
11168
  //#endregion
11095
11169
  //#region src/components/Sidebar/SidebarContext.ts
11096
- var Dx = x({ collapsed: !1 });
11097
- function Ox() {
11098
- return T(Dx);
11170
+ var jx = x({ collapsed: !1 });
11171
+ function Mx() {
11172
+ return T(jx);
11099
11173
  }
11100
11174
  //#endregion
11101
11175
  //#region src/components/Sidebar/SidebarItem.tsx
11102
- function kx({ item: t, depth: n = 0 }) {
11103
- let { collapsed: r, activeId: i, onNavigate: a } = Ox(), [o, s] = j(i === t.id || (t.items?.some((e) => e.id === i) ?? !1)), c = (t.items?.length ?? 0) > 0, l = i === t.id, u = e("group relative flex w-full items-center gap-3 rounded-[var(--apcrda-radius-md)] px-3 py-2 text-sm font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)]", l ? "bg-[var(--apcrda-color-primary)] text-[var(--apcrda-color-primary-foreground)]" : "text-[var(--apcrda-color-muted)] hover:bg-[var(--apcrda-color-surface-muted)] hover:text-[var(--apcrda-color-foreground)]", t.disabled && "pointer-events-none opacity-50", n > 0 && "pl-10");
11176
+ function Nx({ item: t, depth: n = 0 }) {
11177
+ let { collapsed: r, activeId: i, onNavigate: a } = Mx(), [o, s] = j(i === t.id || (t.items?.some((e) => e.id === i) ?? !1)), c = (t.items?.length ?? 0) > 0, l = i === t.id, u = e("group relative flex w-full items-center gap-3 rounded-[var(--apcrda-radius-md)] px-3 py-2 text-sm font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)]", l ? "bg-[var(--apcrda-color-primary)] text-[var(--apcrda-color-primary-foreground)]" : "text-[var(--apcrda-color-muted)] hover:bg-[var(--apcrda-color-surface-muted)] hover:text-[var(--apcrda-color-foreground)]", t.disabled && "pointer-events-none opacity-50", n > 0 && "pl-10");
11104
11178
  function d() {
11105
11179
  t.disabled || (c ? s((e) => !e) : a?.(t));
11106
11180
  }
@@ -11137,7 +11211,7 @@ function kx({ item: t, depth: n = 0 }) {
11137
11211
  }), c && !r && o && /* @__PURE__ */ N("ul", {
11138
11212
  className: "mt-1 space-y-1",
11139
11213
  role: "list",
11140
- children: t.items.map((e) => /* @__PURE__ */ N(kx, {
11214
+ children: t.items.map((e) => /* @__PURE__ */ N(Nx, {
11141
11215
  item: e,
11142
11216
  depth: n + 1
11143
11217
  }, e.id))
@@ -11145,8 +11219,8 @@ function kx({ item: t, depth: n = 0 }) {
11145
11219
  }
11146
11220
  //#endregion
11147
11221
  //#region src/components/Sidebar/SidebarContent.tsx
11148
- function Ax({ groups: t, logo: n, userSlot: r, onToggleCollapse: i, className: a }) {
11149
- let { collapsed: o } = Ox();
11222
+ function Px({ groups: t, logo: n, userSlot: r, onToggleCollapse: i, className: a }) {
11223
+ let { collapsed: o } = Mx();
11150
11224
  return /* @__PURE__ */ P("div", {
11151
11225
  className: e("relative flex h-full flex-col border-r border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] transition-all duration-300", o ? "w-16" : "w-64", a),
11152
11226
  children: [
@@ -11179,7 +11253,7 @@ function Ax({ groups: t, logo: n, userSlot: r, onToggleCollapse: i, className: a
11179
11253
  /* @__PURE__ */ N("ul", {
11180
11254
  className: "space-y-1",
11181
11255
  role: "list",
11182
- children: e.items.map((e) => /* @__PURE__ */ N(kx, { item: e }, e.id))
11256
+ children: e.items.map((e) => /* @__PURE__ */ N(Nx, { item: e }, e.id))
11183
11257
  })
11184
11258
  ] }, t))
11185
11259
  })
@@ -11193,19 +11267,19 @@ function Ax({ groups: t, logo: n, userSlot: r, onToggleCollapse: i, className: a
11193
11267
  }
11194
11268
  //#endregion
11195
11269
  //#region src/components/Sidebar/Sidebar.tsx
11196
- function jx({ groups: t, activeId: n, onNavigate: r, logo: i, userSlot: a, defaultCollapsed: o = !1, className: s }) {
11270
+ function Fx({ groups: t, activeId: n, onNavigate: r, logo: i, userSlot: a, defaultCollapsed: o = !1, className: s }) {
11197
11271
  let [c, l] = j(o), [u, d] = j(!1), f = {
11198
11272
  collapsed: c,
11199
11273
  activeId: n,
11200
11274
  onNavigate: r
11201
11275
  };
11202
- return /* @__PURE__ */ P(Dx.Provider, {
11276
+ return /* @__PURE__ */ P(jx.Provider, {
11203
11277
  value: f,
11204
11278
  children: [
11205
11279
  /* @__PURE__ */ N("aside", {
11206
11280
  "aria-label": "Sidebar",
11207
11281
  className: e("hidden lg:flex lg:flex-col", s),
11208
- children: /* @__PURE__ */ N(Ax, {
11282
+ children: /* @__PURE__ */ N(Px, {
11209
11283
  groups: t,
11210
11284
  logo: i,
11211
11285
  userSlot: a,
@@ -11234,12 +11308,12 @@ function jx({ groups: t, activeId: n, onNavigate: r, logo: i, userSlot: a, defau
11234
11308
  children: [/* @__PURE__ */ N(Ki, {
11235
11309
  className: "sr-only",
11236
11310
  children: "Navigation"
11237
- }), /* @__PURE__ */ N(Dx.Provider, {
11311
+ }), /* @__PURE__ */ N(jx.Provider, {
11238
11312
  value: {
11239
11313
  ...f,
11240
11314
  collapsed: !1
11241
11315
  },
11242
- children: /* @__PURE__ */ N(Ax, {
11316
+ children: /* @__PURE__ */ N(Px, {
11243
11317
  groups: t,
11244
11318
  logo: i,
11245
11319
  userSlot: a,
@@ -11251,10 +11325,84 @@ function jx({ groups: t, activeId: n, onNavigate: r, logo: i, userSlot: a, defau
11251
11325
  ]
11252
11326
  });
11253
11327
  }
11254
- jx.displayName = "Sidebar";
11328
+ Fx.displayName = "Sidebar";
11329
+ //#endregion
11330
+ //#region src/components/Skeleton/Skeleton.tsx
11331
+ var Ix = {
11332
+ none: "rounded-none",
11333
+ sm: "rounded-[var(--apcrda-radius-sm)]",
11334
+ md: "rounded-[var(--apcrda-radius-md)]",
11335
+ lg: "rounded-[var(--apcrda-radius-lg)]",
11336
+ full: "rounded-full"
11337
+ };
11338
+ function Lx({ width: t, height: n, rounded: r = "md", className: i, style: a, ...o }) {
11339
+ return /* @__PURE__ */ N("div", {
11340
+ role: "status",
11341
+ "aria-label": "Loading…",
11342
+ className: e("animate-pulse bg-[var(--apcrda-color-surface-muted)]", Ix[r], i),
11343
+ style: {
11344
+ width: t,
11345
+ height: n,
11346
+ ...a
11347
+ },
11348
+ ...o
11349
+ });
11350
+ }
11351
+ Lx.displayName = "Skeleton";
11352
+ function Rx({ lines: t = 3, className: n }) {
11353
+ return /* @__PURE__ */ N("div", {
11354
+ className: e("flex flex-col gap-2", n),
11355
+ role: "status",
11356
+ "aria-label": "Loading…",
11357
+ children: Array.from({ length: t }).map((e, n) => /* @__PURE__ */ N(Lx, {
11358
+ height: 14,
11359
+ rounded: "md",
11360
+ className: n === t - 1 && t > 1 ? "w-3/4" : "w-full"
11361
+ }, n))
11362
+ });
11363
+ }
11364
+ Rx.displayName = "SkeletonText";
11365
+ function zx({ size: e = 40, className: t }) {
11366
+ return /* @__PURE__ */ N(Lx, {
11367
+ width: e,
11368
+ height: e,
11369
+ rounded: "full",
11370
+ className: t
11371
+ });
11372
+ }
11373
+ zx.displayName = "SkeletonAvatar";
11374
+ function Bx({ className: t }) {
11375
+ return /* @__PURE__ */ P("div", {
11376
+ role: "status",
11377
+ "aria-label": "Loading…",
11378
+ className: e("flex flex-col gap-4 rounded-[var(--apcrda-radius-lg)] border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] p-5", t),
11379
+ children: [
11380
+ /* @__PURE__ */ P("div", {
11381
+ className: "flex items-center gap-3",
11382
+ children: [/* @__PURE__ */ N(zx, { size: 40 }), /* @__PURE__ */ P("div", {
11383
+ className: "flex flex-col gap-2 flex-1",
11384
+ children: [/* @__PURE__ */ N(Lx, {
11385
+ height: 14,
11386
+ className: "w-1/2"
11387
+ }), /* @__PURE__ */ N(Lx, {
11388
+ height: 12,
11389
+ className: "w-1/3"
11390
+ })]
11391
+ })]
11392
+ }),
11393
+ /* @__PURE__ */ N(Rx, { lines: 3 }),
11394
+ /* @__PURE__ */ N(Lx, {
11395
+ height: 32,
11396
+ rounded: "md",
11397
+ className: "w-1/3"
11398
+ })
11399
+ ]
11400
+ });
11401
+ }
11402
+ Bx.displayName = "SkeletonCard";
11255
11403
  //#endregion
11256
11404
  //#region src/components/StatCard/StatCard.tsx
11257
- function Mx({ label: t, value: n, icon: r, trend: i, trendLabel: a, description: o, className: s, ...c }) {
11405
+ function Vx({ label: t, value: n, icon: r, trend: i, trendLabel: a, description: o, className: s, ...c }) {
11258
11406
  let l = i !== void 0 && i >= 0;
11259
11407
  return /* @__PURE__ */ P("div", {
11260
11408
  className: e("flex flex-col gap-3 rounded-[var(--apcrda-radius-lg)] border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] p-5", s),
@@ -11292,13 +11440,13 @@ function Mx({ label: t, value: n, icon: r, trend: i, trendLabel: a, description:
11292
11440
  ]
11293
11441
  });
11294
11442
  }
11295
- Mx.displayName = "StatCard";
11443
+ Vx.displayName = "StatCard";
11296
11444
  //#endregion
11297
11445
  //#region src/components/Stepper/Stepper.tsx
11298
- function Nx(e, t, n, r) {
11446
+ function Hx(e, t, n, r) {
11299
11447
  return r.includes(e) ? "error" : n.includes(e) || e < t ? "completed" : e === t ? "active" : "pending";
11300
11448
  }
11301
- function Px({ status: t, number: n }) {
11449
+ function Ux({ status: t, number: n }) {
11302
11450
  let r = "flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-sm font-semibold transition-colors";
11303
11451
  return t === "completed" ? /* @__PURE__ */ N("span", {
11304
11452
  className: e(r, "bg-[var(--apcrda-color-primary)] text-[var(--apcrda-color-primary-foreground)]"),
@@ -11320,7 +11468,7 @@ function Px({ status: t, number: n }) {
11320
11468
  children: n
11321
11469
  });
11322
11470
  }
11323
- function Fx({ step: t, status: n }) {
11471
+ function Wx({ step: t, status: n }) {
11324
11472
  return /* @__PURE__ */ P("div", {
11325
11473
  className: "min-w-0",
11326
11474
  children: [/* @__PURE__ */ N("p", {
@@ -11332,7 +11480,7 @@ function Fx({ step: t, status: n }) {
11332
11480
  })]
11333
11481
  });
11334
11482
  }
11335
- function Ix({ status: e, orientation: t }) {
11483
+ function Gx({ status: e, orientation: t }) {
11336
11484
  let n = e === "completed";
11337
11485
  return t === "horizontal" ? /* @__PURE__ */ N("div", {
11338
11486
  className: "flex-1 mx-2 h-0.5 rounded-full transition-colors",
@@ -11342,27 +11490,27 @@ function Ix({ status: e, orientation: t }) {
11342
11490
  style: { background: n ? "var(--apcrda-color-primary)" : "var(--apcrda-color-border)" }
11343
11491
  });
11344
11492
  }
11345
- function Lx({ steps: t, activeStep: n, orientation: r = "horizontal", completedSteps: i = [], errorSteps: a = [], className: o, ...s }) {
11493
+ function Kx({ steps: t, activeStep: n, orientation: r = "horizontal", completedSteps: i = [], errorSteps: a = [], className: o, ...s }) {
11346
11494
  let c = i.length > 0 ? i : t.map((e, t) => t).filter((e) => e < n);
11347
11495
  return r === "vertical" ? /* @__PURE__ */ N("div", {
11348
11496
  className: e("flex flex-col", o),
11349
11497
  ...s,
11350
11498
  children: t.map((r, i) => {
11351
- let o = Nx(i, n, c, a), s = i === t.length - 1;
11499
+ let o = Hx(i, n, c, a), s = i === t.length - 1;
11352
11500
  return /* @__PURE__ */ P("div", {
11353
11501
  className: "flex gap-3",
11354
11502
  children: [/* @__PURE__ */ P("div", {
11355
11503
  className: "flex flex-col items-center",
11356
- children: [/* @__PURE__ */ N(Px, {
11504
+ children: [/* @__PURE__ */ N(Ux, {
11357
11505
  status: o,
11358
11506
  number: i + 1
11359
- }), !s && /* @__PURE__ */ N(Ix, {
11507
+ }), !s && /* @__PURE__ */ N(Gx, {
11360
11508
  status: o,
11361
11509
  orientation: "vertical"
11362
11510
  })]
11363
11511
  }), /* @__PURE__ */ N("div", {
11364
11512
  className: e("pb-6 pt-1", s && "pb-0"),
11365
- children: /* @__PURE__ */ N(Fx, {
11513
+ children: /* @__PURE__ */ N(Wx, {
11366
11514
  step: r,
11367
11515
  status: o
11368
11516
  })
@@ -11373,36 +11521,36 @@ function Lx({ steps: t, activeStep: n, orientation: r = "horizontal", completedS
11373
11521
  className: e("flex items-center", o),
11374
11522
  ...s,
11375
11523
  children: t.map((r, i) => {
11376
- let o = Nx(i, n, c, a), s = i === t.length - 1;
11524
+ let o = Hx(i, n, c, a), s = i === t.length - 1;
11377
11525
  return /* @__PURE__ */ P("div", {
11378
11526
  className: e("flex items-center", !s && "flex-1"),
11379
11527
  children: [/* @__PURE__ */ P("div", {
11380
11528
  className: "flex flex-col items-center gap-1.5",
11381
- children: [/* @__PURE__ */ N(Px, {
11529
+ children: [/* @__PURE__ */ N(Ux, {
11382
11530
  status: o,
11383
11531
  number: i + 1
11384
- }), /* @__PURE__ */ N(Fx, {
11532
+ }), /* @__PURE__ */ N(Wx, {
11385
11533
  step: r,
11386
11534
  status: o
11387
11535
  })]
11388
- }), !s && /* @__PURE__ */ N(Ix, {
11389
- status: Nx(i + 1, n, c, a) === "pending" ? "pending" : o,
11536
+ }), !s && /* @__PURE__ */ N(Gx, {
11537
+ status: Hx(i + 1, n, c, a) === "pending" ? "pending" : o,
11390
11538
  orientation: "horizontal"
11391
11539
  })]
11392
11540
  }, r.id);
11393
11541
  })
11394
11542
  });
11395
11543
  }
11396
- Lx.displayName = "Stepper";
11544
+ Kx.displayName = "Stepper";
11397
11545
  //#endregion
11398
11546
  //#region node_modules/@radix-ui/react-switch/dist/index.mjs
11399
- var Rx = "Switch", [zx, Bx] = R(Rx), [Vx, Hx] = zx(Rx);
11400
- function Ux(e) {
11547
+ var qx = "Switch", [Jx, Yx] = R(qx), [Xx, Zx] = Jx(qx);
11548
+ function Qx(e) {
11401
11549
  let { __scopeSwitch: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = ve({
11402
11550
  prop: n,
11403
11551
  defaultProp: i ?? !1,
11404
11552
  onChange: c,
11405
- caller: Rx
11553
+ caller: qx
11406
11554
  }), [m, h] = y.useState(null), [g, _] = y.useState(null), v = {
11407
11555
  checked: f,
11408
11556
  setChecked: p,
@@ -11419,20 +11567,20 @@ function Ux(e) {
11419
11567
  bubbleInput: g,
11420
11568
  setBubbleInput: _
11421
11569
  };
11422
- return /* @__PURE__ */ N(Vx, {
11570
+ return /* @__PURE__ */ N(Xx, {
11423
11571
  scope: t,
11424
11572
  ...v,
11425
- children: Zx(d) ? d(v) : r
11573
+ children: oS(d) ? d(v) : r
11426
11574
  });
11427
11575
  }
11428
- var Wx = "SwitchTrigger", Gx = y.forwardRef(({ __scopeSwitch: e, onClick: t, ...n }, r) => {
11429
- let { value: i, disabled: a, checked: o, required: s, setControl: c, setChecked: l, hasConsumerStoppedPropagationRef: u, isFormControl: d, bubbleInput: f } = Hx(Wx, e), p = B(r, c);
11576
+ var $x = "SwitchTrigger", eS = y.forwardRef(({ __scopeSwitch: e, onClick: t, ...n }, r) => {
11577
+ let { value: i, disabled: a, checked: o, required: s, setControl: c, setChecked: l, hasConsumerStoppedPropagationRef: u, isFormControl: d, bubbleInput: f } = Zx($x, e), p = B(r, c);
11430
11578
  return /* @__PURE__ */ N(U.button, {
11431
11579
  type: "button",
11432
11580
  role: "switch",
11433
11581
  "aria-checked": o,
11434
11582
  "aria-required": s,
11435
- "data-state": Qx(o),
11583
+ "data-state": sS(o),
11436
11584
  "data-disabled": a ? "" : void 0,
11437
11585
  disabled: a,
11438
11586
  value: i,
@@ -11443,10 +11591,10 @@ var Wx = "SwitchTrigger", Gx = y.forwardRef(({ __scopeSwitch: e, onClick: t, ...
11443
11591
  })
11444
11592
  });
11445
11593
  });
11446
- Gx.displayName = Wx;
11447
- var Kx = y.forwardRef((e, t) => {
11594
+ eS.displayName = $x;
11595
+ var tS = y.forwardRef((e, t) => {
11448
11596
  let { __scopeSwitch: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c, onCheckedChange: l, form: u, ...d } = e;
11449
- return /* @__PURE__ */ N(Ux, {
11597
+ return /* @__PURE__ */ N(Qx, {
11450
11598
  __scopeSwitch: n,
11451
11599
  checked: i,
11452
11600
  defaultChecked: a,
@@ -11456,26 +11604,26 @@ var Kx = y.forwardRef((e, t) => {
11456
11604
  name: r,
11457
11605
  form: u,
11458
11606
  value: c,
11459
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(Gx, {
11607
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(eS, {
11460
11608
  ...d,
11461
11609
  ref: t,
11462
11610
  __scopeSwitch: n
11463
- }), e && /* @__PURE__ */ N(Xx, { __scopeSwitch: n })] })
11611
+ }), e && /* @__PURE__ */ N(aS, { __scopeSwitch: n })] })
11464
11612
  });
11465
11613
  });
11466
- Kx.displayName = Rx;
11467
- var qx = "SwitchThumb", Jx = y.forwardRef((e, t) => {
11468
- let { __scopeSwitch: n, ...r } = e, i = Hx(qx, n);
11614
+ tS.displayName = qx;
11615
+ var nS = "SwitchThumb", rS = y.forwardRef((e, t) => {
11616
+ let { __scopeSwitch: n, ...r } = e, i = Zx(nS, n);
11469
11617
  return /* @__PURE__ */ N(U.span, {
11470
- "data-state": Qx(i.checked),
11618
+ "data-state": sS(i.checked),
11471
11619
  "data-disabled": i.disabled ? "" : void 0,
11472
11620
  ...r,
11473
11621
  ref: t
11474
11622
  });
11475
11623
  });
11476
- Jx.displayName = qx;
11477
- var Yx = "SwitchBubbleInput", Xx = y.forwardRef(({ __scopeSwitch: e, ...t }, n) => {
11478
- let { control: r, hasConsumerStoppedPropagationRef: i, checked: a, defaultChecked: o, required: s, disabled: c, name: l, value: u, form: d, bubbleInput: f, setBubbleInput: p } = Hx(Yx, e), m = B(n, p), h = qm(a), g = Js(r);
11624
+ rS.displayName = nS;
11625
+ var iS = "SwitchBubbleInput", aS = y.forwardRef(({ __scopeSwitch: e, ...t }, n) => {
11626
+ let { control: r, hasConsumerStoppedPropagationRef: i, checked: a, defaultChecked: o, required: s, disabled: c, name: l, value: u, form: d, bubbleInput: f, setBubbleInput: p } = Zx(iS, e), m = B(n, p), h = qm(a), g = Js(r);
11479
11627
  y.useEffect(() => {
11480
11628
  let e = f;
11481
11629
  if (!e) return;
@@ -11514,61 +11662,61 @@ var Yx = "SwitchBubbleInput", Xx = y.forwardRef(({ __scopeSwitch: e, ...t }, n)
11514
11662
  }
11515
11663
  });
11516
11664
  });
11517
- Xx.displayName = Yx;
11518
- function Zx(e) {
11665
+ aS.displayName = iS;
11666
+ function oS(e) {
11519
11667
  return typeof e == "function";
11520
11668
  }
11521
- function Qx(e) {
11669
+ function sS(e) {
11522
11670
  return e ? "checked" : "unchecked";
11523
11671
  }
11524
11672
  //#endregion
11525
11673
  //#region src/components/Switch/Switch.tsx
11526
- var $x = hn("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[var(--apcrda-color-border-strong)] shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-55 data-[state=checked]:bg-[var(--apcrda-color-primary)]", {
11674
+ var cS = hn("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[var(--apcrda-color-border-strong)] shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-55 data-[state=checked]:bg-[var(--apcrda-color-primary)]", {
11527
11675
  variants: { size: {
11528
11676
  sm: "h-5 w-9",
11529
11677
  md: "h-6 w-11",
11530
11678
  lg: "h-7 w-12"
11531
11679
  } },
11532
11680
  defaultVariants: { size: "md" }
11533
- }), eS = {
11681
+ }), lS = {
11534
11682
  sm: "h-4 w-4 data-[state=checked]:translate-x-4",
11535
11683
  md: "h-5 w-5 data-[state=checked]:translate-x-5",
11536
11684
  lg: "h-6 w-6 data-[state=checked]:translate-x-5"
11537
- }, tS = C(({ className: t, size: n = "md", loading: r = !1, disabled: i = !1, ...a }, o) => /* @__PURE__ */ N(Kx, {
11685
+ }, uS = C(({ className: t, size: n = "md", loading: r = !1, disabled: i = !1, ...a }, o) => /* @__PURE__ */ N(tS, {
11538
11686
  ref: o,
11539
- className: e($x({ size: n }), t),
11687
+ className: e(cS({ size: n }), t),
11540
11688
  disabled: i || r,
11541
11689
  "aria-busy": r || void 0,
11542
11690
  ...a,
11543
- children: /* @__PURE__ */ N(Jx, {
11544
- className: e("pointer-events-none flex translate-x-0.5 items-center justify-center rounded-full bg-white text-[var(--apcrda-color-primary)] shadow transition-transform", eS[n]),
11691
+ children: /* @__PURE__ */ N(rS, {
11692
+ className: e("pointer-events-none flex translate-x-0.5 items-center justify-center rounded-full bg-white text-[var(--apcrda-color-primary)] shadow transition-transform", lS[n]),
11545
11693
  children: r ? /* @__PURE__ */ N(en, {
11546
11694
  "aria-hidden": "true",
11547
11695
  className: "h-3 w-3 animate-spin"
11548
11696
  }) : null
11549
11697
  })
11550
11698
  }));
11551
- tS.displayName = "Switch";
11699
+ uS.displayName = "Switch";
11552
11700
  //#endregion
11553
11701
  //#region node_modules/@tanstack/table-core/build/lib/index.mjs
11554
- function nS(e, t) {
11702
+ function dS(e, t) {
11555
11703
  return typeof e == "function" ? e(t) : e;
11556
11704
  }
11557
- function rS(e, t) {
11705
+ function fS(e, t) {
11558
11706
  return (n) => {
11559
11707
  t.setState((t) => ({
11560
11708
  ...t,
11561
- [e]: nS(n, t[e])
11709
+ [e]: dS(n, t[e])
11562
11710
  }));
11563
11711
  };
11564
11712
  }
11565
- function iS(e) {
11713
+ function pS(e) {
11566
11714
  return e instanceof Function;
11567
11715
  }
11568
- function aS(e) {
11716
+ function mS(e) {
11569
11717
  return Array.isArray(e) && e.every((e) => typeof e == "number");
11570
11718
  }
11571
- function oS(e, t) {
11719
+ function hS(e, t) {
11572
11720
  let n = [], r = (e) => {
11573
11721
  e.forEach((e) => {
11574
11722
  n.push(e);
@@ -11607,7 +11755,7 @@ function $(e, t, n, r) {
11607
11755
  onChange: r
11608
11756
  };
11609
11757
  }
11610
- function sS(e, t, n, r) {
11758
+ function gS(e, t, n, r) {
11611
11759
  let i = {
11612
11760
  id: `${t.id}_${n.id}`,
11613
11761
  row: t,
@@ -11632,7 +11780,7 @@ function sS(e, t, n, r) {
11632
11780
  r.createCell == null || r.createCell(i, n, t, e);
11633
11781
  }, {}), i;
11634
11782
  }
11635
- function cS(e, t, n, r) {
11783
+ function _S(e, t, n, r) {
11636
11784
  let i = {
11637
11785
  ...e._getDefaultColumnDef(),
11638
11786
  ...t
@@ -11658,8 +11806,8 @@ function cS(e, t, n, r) {
11658
11806
  for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
11659
11807
  return c;
11660
11808
  }
11661
- var lS = "debugHeaders";
11662
- function uS(e, t, n) {
11809
+ var vS = "debugHeaders";
11810
+ function yS(e, t, n) {
11663
11811
  let r = {
11664
11812
  id: n.id ?? t.id,
11665
11813
  column: t,
@@ -11687,7 +11835,7 @@ function uS(e, t, n) {
11687
11835
  t.createHeader == null || t.createHeader(r, e);
11688
11836
  }), r;
11689
11837
  }
11690
- var dS = { createTable: (e) => {
11838
+ var bS = { createTable: (e) => {
11691
11839
  e.getHeaderGroups = Q(() => [
11692
11840
  e.getAllColumns(),
11693
11841
  e.getVisibleLeafColumns(),
@@ -11695,34 +11843,34 @@ var dS = { createTable: (e) => {
11695
11843
  e.getState().columnPinning.right
11696
11844
  ], (t, n, r, i) => {
11697
11845
  let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
11698
- return fS(t, [
11846
+ return xS(t, [
11699
11847
  ...a,
11700
11848
  ...s,
11701
11849
  ...o
11702
11850
  ], e);
11703
- }, $(e.options, lS, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [
11851
+ }, $(e.options, vS, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [
11704
11852
  e.getAllColumns(),
11705
11853
  e.getVisibleLeafColumns(),
11706
11854
  e.getState().columnPinning.left,
11707
11855
  e.getState().columnPinning.right
11708
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), fS(t, n, e, "center")), $(e.options, lS, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [
11856
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), xS(t, n, e, "center")), $(e.options, vS, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [
11709
11857
  e.getAllColumns(),
11710
11858
  e.getVisibleLeafColumns(),
11711
11859
  e.getState().columnPinning.left
11712
- ], (t, n, r) => fS(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, lS, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [
11860
+ ], (t, n, r) => xS(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, vS, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [
11713
11861
  e.getAllColumns(),
11714
11862
  e.getVisibleLeafColumns(),
11715
11863
  e.getState().columnPinning.right
11716
- ], (t, n, r) => fS(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, lS, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, lS, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, lS, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, lS, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, lS, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, lS, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, lS, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, lS, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, lS, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
11864
+ ], (t, n, r) => xS(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, vS, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, vS, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, vS, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, vS, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, vS, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, vS, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, vS, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, vS, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, vS, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
11717
11865
  var t;
11718
11866
  return !((t = e.subHeaders) != null && t.length);
11719
- }), $(e.options, lS, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
11867
+ }), $(e.options, vS, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
11720
11868
  var t;
11721
11869
  return !((t = e.subHeaders) != null && t.length);
11722
- }), $(e.options, lS, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
11870
+ }), $(e.options, vS, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
11723
11871
  var t;
11724
11872
  return !((t = e.subHeaders) != null && t.length);
11725
- }), $(e.options, lS, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [
11873
+ }), $(e.options, vS, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [
11726
11874
  e.getLeftHeaderGroups(),
11727
11875
  e.getCenterHeaderGroups(),
11728
11876
  e.getRightHeaderGroups()
@@ -11730,9 +11878,9 @@ var dS = { createTable: (e) => {
11730
11878
  ...e[0]?.headers ?? [],
11731
11879
  ...t[0]?.headers ?? [],
11732
11880
  ...n[0]?.headers ?? []
11733
- ].map((e) => e.getLeafHeaders()).flat(), $(e.options, lS, "getLeafHeaders"));
11881
+ ].map((e) => e.getLeafHeaders()).flat(), $(e.options, vS, "getLeafHeaders"));
11734
11882
  } };
11735
- function fS(e, t, n, r) {
11883
+ function xS(e, t, n, r) {
11736
11884
  let i = 0, a = function(e, t) {
11737
11885
  t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
11738
11886
  var n;
@@ -11750,7 +11898,7 @@ function fS(e, t, n, r) {
11750
11898
  let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
11751
11899
  if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
11752
11900
  else {
11753
- let i = uS(n, c, {
11901
+ let i = yS(n, c, {
11754
11902
  id: [
11755
11903
  r,
11756
11904
  t,
@@ -11767,7 +11915,7 @@ function fS(e, t, n, r) {
11767
11915
  i.headers.push(e), e.headerGroup = i;
11768
11916
  }), o.push(i), t > 0 && s(a, t - 1);
11769
11917
  };
11770
- s(t.map((e, t) => uS(n, e, {
11918
+ s(t.map((e, t) => yS(n, e, {
11771
11919
  depth: i,
11772
11920
  index: t
11773
11921
  })), i - 1), o.reverse();
@@ -11785,7 +11933,7 @@ function fS(e, t, n, r) {
11785
11933
  });
11786
11934
  return c(o[0]?.headers ?? []), o;
11787
11935
  }
11788
- var pS = (e, t, n, r, i, a, o) => {
11936
+ var SS = (e, t, n, r, i, a, o) => {
11789
11937
  let s = {
11790
11938
  id: t,
11791
11939
  index: r,
@@ -11806,7 +11954,7 @@ var pS = (e, t, n, r, i, a, o) => {
11806
11954
  },
11807
11955
  renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
11808
11956
  subRows: a ?? [],
11809
- getLeafRows: () => oS(s.subRows, (e) => e.subRows),
11957
+ getLeafRows: () => hS(s.subRows, (e) => e.subRows),
11810
11958
  getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
11811
11959
  getParentRows: () => {
11812
11960
  let e = [], t = s;
@@ -11817,7 +11965,7 @@ var pS = (e, t, n, r, i, a, o) => {
11817
11965
  }
11818
11966
  return e.reverse();
11819
11967
  },
11820
- getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => sS(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),
11968
+ getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => gS(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),
11821
11969
  _getAllCellsByColumnId: Q(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), $(e.options, "debugRows", "getAllCellsByColumnId"))
11822
11970
  };
11823
11971
  for (let t = 0; t < e._features.length; t++) {
@@ -11825,87 +11973,87 @@ var pS = (e, t, n, r, i, a, o) => {
11825
11973
  n == null || n.createRow == null || n.createRow(s, e);
11826
11974
  }
11827
11975
  return s;
11828
- }, mS = { createColumn: (e, t) => {
11976
+ }, CS = { createColumn: (e, t) => {
11829
11977
  e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
11830
11978
  if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
11831
11979
  };
11832
- } }, hS = (e, t, n) => {
11980
+ } }, wS = (e, t, n) => {
11833
11981
  var r, i;
11834
11982
  let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
11835
11983
  return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
11836
11984
  };
11837
- hS.autoRemove = (e) => TS(e);
11838
- var gS = (e, t, n) => {
11985
+ wS.autoRemove = (e) => PS(e);
11986
+ var TS = (e, t, n) => {
11839
11987
  var r;
11840
11988
  return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
11841
11989
  };
11842
- gS.autoRemove = (e) => TS(e);
11843
- var _S = (e, t, n) => {
11990
+ TS.autoRemove = (e) => PS(e);
11991
+ var ES = (e, t, n) => {
11844
11992
  var r;
11845
11993
  return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
11846
11994
  };
11847
- _S.autoRemove = (e) => TS(e);
11848
- var vS = (e, t, n) => e.getValue(t)?.includes(n);
11849
- vS.autoRemove = (e) => TS(e);
11850
- var yS = (e, t, n) => !n.some((n) => {
11995
+ ES.autoRemove = (e) => PS(e);
11996
+ var DS = (e, t, n) => e.getValue(t)?.includes(n);
11997
+ DS.autoRemove = (e) => PS(e);
11998
+ var OS = (e, t, n) => !n.some((n) => {
11851
11999
  var r;
11852
12000
  return !((r = e.getValue(t)) != null && r.includes(n));
11853
12001
  });
11854
- yS.autoRemove = (e) => TS(e) || !(e != null && e.length);
11855
- var bS = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
11856
- bS.autoRemove = (e) => TS(e) || !(e != null && e.length);
11857
- var xS = (e, t, n) => e.getValue(t) === n;
11858
- xS.autoRemove = (e) => TS(e);
11859
- var SS = (e, t, n) => e.getValue(t) == n;
11860
- SS.autoRemove = (e) => TS(e);
11861
- var CS = (e, t, n) => {
12002
+ OS.autoRemove = (e) => PS(e) || !(e != null && e.length);
12003
+ var kS = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
12004
+ kS.autoRemove = (e) => PS(e) || !(e != null && e.length);
12005
+ var AS = (e, t, n) => e.getValue(t) === n;
12006
+ AS.autoRemove = (e) => PS(e);
12007
+ var jS = (e, t, n) => e.getValue(t) == n;
12008
+ jS.autoRemove = (e) => PS(e);
12009
+ var MS = (e, t, n) => {
11862
12010
  let [r, i] = n, a = e.getValue(t);
11863
12011
  return a >= r && a <= i;
11864
12012
  };
11865
- CS.resolveFilterValue = (e) => {
12013
+ MS.resolveFilterValue = (e) => {
11866
12014
  let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
11867
12015
  if (a > o) {
11868
12016
  let e = a;
11869
12017
  a = o, o = e;
11870
12018
  }
11871
12019
  return [a, o];
11872
- }, CS.autoRemove = (e) => TS(e) || TS(e[0]) && TS(e[1]);
11873
- var wS = {
11874
- includesString: hS,
11875
- includesStringSensitive: gS,
11876
- equalsString: _S,
11877
- arrIncludes: vS,
11878
- arrIncludesAll: yS,
11879
- arrIncludesSome: bS,
11880
- equals: xS,
11881
- weakEquals: SS,
11882
- inNumberRange: CS
12020
+ }, MS.autoRemove = (e) => PS(e) || PS(e[0]) && PS(e[1]);
12021
+ var NS = {
12022
+ includesString: wS,
12023
+ includesStringSensitive: TS,
12024
+ equalsString: ES,
12025
+ arrIncludes: DS,
12026
+ arrIncludesAll: OS,
12027
+ arrIncludesSome: kS,
12028
+ equals: AS,
12029
+ weakEquals: jS,
12030
+ inNumberRange: MS
11883
12031
  };
11884
- function TS(e) {
12032
+ function PS(e) {
11885
12033
  return e == null || e === "";
11886
12034
  }
11887
- var ES = {
12035
+ var FS = {
11888
12036
  getDefaultColumnDef: () => ({ filterFn: "auto" }),
11889
12037
  getInitialState: (e) => ({
11890
12038
  columnFilters: [],
11891
12039
  ...e
11892
12040
  }),
11893
12041
  getDefaultOptions: (e) => ({
11894
- onColumnFiltersChange: rS("columnFilters", e),
12042
+ onColumnFiltersChange: fS("columnFilters", e),
11895
12043
  filterFromLeafRows: !1,
11896
12044
  maxLeafRowFilterDepth: 100
11897
12045
  }),
11898
12046
  createColumn: (e, t) => {
11899
12047
  e.getAutoFilterFn = () => {
11900
12048
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
11901
- return typeof n == "string" ? wS.includesString : typeof n == "number" ? wS.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? wS.equals : Array.isArray(n) ? wS.arrIncludes : wS.weakEquals;
11902
- }, e.getFilterFn = () => iS(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? wS[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
12049
+ return typeof n == "string" ? NS.includesString : typeof n == "number" ? NS.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? NS.equals : Array.isArray(n) ? NS.arrIncludes : NS.weakEquals;
12050
+ }, e.getFilterFn = () => pS(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? NS[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
11903
12051
  var n;
11904
12052
  return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
11905
12053
  }, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
11906
12054
  t.setColumnFilters((t) => {
11907
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = nS(n, i ? i.value : void 0);
11908
- if (DS(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
12055
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = dS(n, i ? i.value : void 0);
12056
+ if (IS(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
11909
12057
  let o = {
11910
12058
  id: e.id,
11911
12059
  value: a
@@ -11920,19 +12068,19 @@ var ES = {
11920
12068
  createTable: (e) => {
11921
12069
  e.setColumnFilters = (t) => {
11922
12070
  let n = e.getAllLeafColumns();
11923
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => nS(t, e)?.filter((e) => {
12071
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => dS(t, e)?.filter((e) => {
11924
12072
  let t = n.find((t) => t.id === e.id);
11925
- return !(t && DS(t.getFilterFn(), e.value, t));
12073
+ return !(t && IS(t.getFilterFn(), e.value, t));
11926
12074
  }));
11927
12075
  }, e.resetColumnFilters = (t) => {
11928
12076
  e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
11929
12077
  }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
11930
12078
  }
11931
12079
  };
11932
- function DS(e, t, n) {
12080
+ function IS(e, t, n) {
11933
12081
  return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
11934
12082
  }
11935
- var OS = {
12083
+ var LS = {
11936
12084
  sum: (e, t, n) => n.reduce((t, n) => {
11937
12085
  let r = n.getValue(e);
11938
12086
  return t + (typeof r == "number" ? r : 0);
@@ -11968,7 +12116,7 @@ var OS = {
11968
12116
  median: (e, t) => {
11969
12117
  if (!t.length) return;
11970
12118
  let n = t.map((t) => t.getValue(e));
11971
- if (!aS(n)) return;
12119
+ if (!mS(n)) return;
11972
12120
  if (n.length === 1) return n[0];
11973
12121
  let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
11974
12122
  return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -11976,7 +12124,7 @@ var OS = {
11976
12124
  unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
11977
12125
  uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
11978
12126
  count: (e, t) => t.length
11979
- }, kS = {
12127
+ }, RS = {
11980
12128
  getDefaultColumnDef: () => ({
11981
12129
  aggregatedCell: (e) => {
11982
12130
  var t;
@@ -11989,7 +12137,7 @@ var OS = {
11989
12137
  ...e
11990
12138
  }),
11991
12139
  getDefaultOptions: (e) => ({
11992
- onGroupingChange: rS("grouping", e),
12140
+ onGroupingChange: fS("grouping", e),
11993
12141
  groupedColumnMode: "reorder"
11994
12142
  }),
11995
12143
  createColumn: (e, t) => {
@@ -12002,11 +12150,11 @@ var OS = {
12002
12150
  };
12003
12151
  }, e.getAutoAggregationFn = () => {
12004
12152
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
12005
- if (typeof n == "number") return OS.sum;
12006
- if (Object.prototype.toString.call(n) === "[object Date]") return OS.extent;
12153
+ if (typeof n == "number") return LS.sum;
12154
+ if (Object.prototype.toString.call(n) === "[object Date]") return LS.extent;
12007
12155
  }, e.getAggregationFn = () => {
12008
12156
  if (!e) throw Error();
12009
- return iS(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? OS[e.columnDef.aggregationFn];
12157
+ return pS(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? LS[e.columnDef.aggregationFn];
12010
12158
  };
12011
12159
  },
12012
12160
  createTable: (e) => {
@@ -12028,20 +12176,20 @@ var OS = {
12028
12176
  };
12029
12177
  }
12030
12178
  };
12031
- function AS(e, t, n) {
12179
+ function zS(e, t, n) {
12032
12180
  if (!(t != null && t.length) || !n) return e;
12033
12181
  let r = e.filter((e) => !t.includes(e.id));
12034
12182
  return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
12035
12183
  }
12036
- var jS = {
12184
+ var BS = {
12037
12185
  getInitialState: (e) => ({
12038
12186
  columnOrder: [],
12039
12187
  ...e
12040
12188
  }),
12041
- getDefaultOptions: (e) => ({ onColumnOrderChange: rS("columnOrder", e) }),
12189
+ getDefaultOptions: (e) => ({ onColumnOrderChange: fS("columnOrder", e) }),
12042
12190
  createColumn: (e, t) => {
12043
- e.getIndex = Q((e) => [HS(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => HS(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
12044
- let r = HS(t, n);
12191
+ e.getIndex = Q((e) => [ZS(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => ZS(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
12192
+ let r = ZS(t, n);
12045
12193
  return r[r.length - 1]?.id === e.id;
12046
12194
  };
12047
12195
  },
@@ -12063,18 +12211,18 @@ var jS = {
12063
12211
  }
12064
12212
  i = [...i, ...n];
12065
12213
  }
12066
- return AS(i, t, n);
12214
+ return zS(i, t, n);
12067
12215
  }, $(e.options, "debugTable", "_getOrderColumnsFn"));
12068
12216
  }
12069
- }, MS = () => ({
12217
+ }, VS = () => ({
12070
12218
  left: [],
12071
12219
  right: []
12072
- }), NS = {
12220
+ }), HS = {
12073
12221
  getInitialState: (e) => ({
12074
- columnPinning: MS(),
12222
+ columnPinning: VS(),
12075
12223
  ...e
12076
12224
  }),
12077
- getDefaultOptions: (e) => ({ onColumnPinningChange: rS("columnPinning", e) }),
12225
+ getDefaultOptions: (e) => ({ onColumnPinningChange: fS("columnPinning", e) }),
12078
12226
  createColumn: (e, t) => {
12079
12227
  e.pin = (n) => {
12080
12228
  let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -12114,7 +12262,7 @@ var jS = {
12114
12262
  })), $(t.options, "debugRows", "getRightVisibleCells"));
12115
12263
  },
12116
12264
  createTable: (e) => {
12117
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? MS() : e.initialState?.columnPinning ?? MS()), e.getIsSomeColumnsPinned = (t) => {
12265
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? VS() : e.initialState?.columnPinning ?? VS()), e.getIsSomeColumnsPinned = (t) => {
12118
12266
  let n = e.getState().columnPinning;
12119
12267
  return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
12120
12268
  }, e.getLeftLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Q(() => [
@@ -12127,44 +12275,44 @@ var jS = {
12127
12275
  }, $(e.options, "debugColumns", "getCenterLeafColumns"));
12128
12276
  }
12129
12277
  };
12130
- function PS(e) {
12278
+ function US(e) {
12131
12279
  return e || (typeof document < "u" ? document : null);
12132
12280
  }
12133
- var FS = {
12281
+ var WS = {
12134
12282
  size: 150,
12135
12283
  minSize: 20,
12136
12284
  maxSize: 2 ** 53 - 1
12137
- }, IS = () => ({
12285
+ }, GS = () => ({
12138
12286
  startOffset: null,
12139
12287
  startSize: null,
12140
12288
  deltaOffset: null,
12141
12289
  deltaPercentage: null,
12142
12290
  isResizingColumn: !1,
12143
12291
  columnSizingStart: []
12144
- }), LS = {
12145
- getDefaultColumnDef: () => FS,
12292
+ }), KS = {
12293
+ getDefaultColumnDef: () => WS,
12146
12294
  getInitialState: (e) => ({
12147
12295
  columnSizing: {},
12148
- columnSizingInfo: IS(),
12296
+ columnSizingInfo: GS(),
12149
12297
  ...e
12150
12298
  }),
12151
12299
  getDefaultOptions: (e) => ({
12152
12300
  columnResizeMode: "onEnd",
12153
12301
  columnResizeDirection: "ltr",
12154
- onColumnSizingChange: rS("columnSizing", e),
12155
- onColumnSizingInfoChange: rS("columnSizingInfo", e)
12302
+ onColumnSizingChange: fS("columnSizing", e),
12303
+ onColumnSizingInfoChange: fS("columnSizingInfo", e)
12156
12304
  }),
12157
12305
  createColumn: (e, t) => {
12158
12306
  e.getSize = () => {
12159
12307
  let n = t.getState().columnSizing[e.id];
12160
- return Math.min(Math.max(e.columnDef.minSize ?? FS.minSize, n ?? e.columnDef.size ?? FS.size), e.columnDef.maxSize ?? FS.maxSize);
12308
+ return Math.min(Math.max(e.columnDef.minSize ?? WS.minSize, n ?? e.columnDef.size ?? WS.size), e.columnDef.maxSize ?? WS.maxSize);
12161
12309
  }, e.getStart = Q((e) => [
12162
12310
  e,
12163
- HS(t, e),
12311
+ ZS(t, e),
12164
12312
  t.getState().columnSizing
12165
12313
  ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getStart")), e.getAfter = Q((e) => [
12166
12314
  e,
12167
- HS(t, e),
12315
+ ZS(t, e),
12168
12316
  t.getState().columnSizing
12169
12317
  ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
12170
12318
  t.setColumnSizing((t) => {
@@ -12188,8 +12336,8 @@ var FS = {
12188
12336
  }, e.getResizeHandler = (n) => {
12189
12337
  let r = t.getColumn(e.column.id), i = r?.getCanResize();
12190
12338
  return (a) => {
12191
- if (!r || !i || (a.persist == null || a.persist(), BS(a) && a.touches && a.touches.length > 1)) return;
12192
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = BS(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
12339
+ if (!r || !i || (a.persist == null || a.persist(), YS(a) && a.touches && a.touches.length > 1)) return;
12340
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = YS(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
12193
12341
  typeof n == "number" && (t.setColumnSizingInfo((e) => {
12194
12342
  let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
12195
12343
  return e.columnSizingStart.forEach((e) => {
@@ -12214,7 +12362,7 @@ var FS = {
12214
12362
  deltaPercentage: null,
12215
12363
  columnSizingStart: []
12216
12364
  }));
12217
- }, p = PS(n), m = {
12365
+ }, p = US(n), m = {
12218
12366
  moveHandler: (e) => d(e.clientX),
12219
12367
  upHandler: (e) => {
12220
12368
  p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -12224,8 +12372,8 @@ var FS = {
12224
12372
  upHandler: (e) => {
12225
12373
  p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
12226
12374
  }
12227
- }, g = zS() ? { passive: !1 } : !1;
12228
- BS(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
12375
+ }, g = JS() ? { passive: !1 } : !1;
12376
+ YS(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
12229
12377
  ...e,
12230
12378
  startOffset: c,
12231
12379
  startSize: o,
@@ -12241,12 +12389,12 @@ var FS = {
12241
12389
  e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
12242
12390
  e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
12243
12391
  }, e.resetHeaderSizeInfo = (t) => {
12244
- e.setColumnSizingInfo(t ? IS() : e.initialState.columnSizingInfo ?? IS());
12392
+ e.setColumnSizingInfo(t ? GS() : e.initialState.columnSizingInfo ?? GS());
12245
12393
  }, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
12246
12394
  }
12247
- }, RS = null;
12248
- function zS() {
12249
- if (typeof RS == "boolean") return RS;
12395
+ }, qS = null;
12396
+ function JS() {
12397
+ if (typeof qS == "boolean") return qS;
12250
12398
  let e = !1;
12251
12399
  try {
12252
12400
  let t = { get passive() {
@@ -12256,17 +12404,17 @@ function zS() {
12256
12404
  } catch {
12257
12405
  e = !1;
12258
12406
  }
12259
- return RS = e, RS;
12407
+ return qS = e, qS;
12260
12408
  }
12261
- function BS(e) {
12409
+ function YS(e) {
12262
12410
  return e.type === "touchstart";
12263
12411
  }
12264
- var VS = {
12412
+ var XS = {
12265
12413
  getInitialState: (e) => ({
12266
12414
  columnVisibility: {},
12267
12415
  ...e
12268
12416
  }),
12269
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: rS("columnVisibility", e) }),
12417
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: fS("columnVisibility", e) }),
12270
12418
  createColumn: (e, t) => {
12271
12419
  e.toggleVisibility = (n) => {
12272
12420
  e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -12305,20 +12453,20 @@ var VS = {
12305
12453
  };
12306
12454
  }
12307
12455
  };
12308
- function HS(e, t) {
12456
+ function ZS(e, t) {
12309
12457
  return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
12310
12458
  }
12311
- var US = { createTable: (e) => {
12459
+ var QS = { createTable: (e) => {
12312
12460
  e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
12313
12461
  if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
12314
12462
  };
12315
- } }, WS = {
12463
+ } }, $S = {
12316
12464
  getInitialState: (e) => ({
12317
12465
  globalFilter: void 0,
12318
12466
  ...e
12319
12467
  }),
12320
12468
  getDefaultOptions: (e) => ({
12321
- onGlobalFilterChange: rS("globalFilter", e),
12469
+ onGlobalFilterChange: fS("globalFilter", e),
12322
12470
  globalFilterFn: "auto",
12323
12471
  getColumnCanGlobalFilter: (t) => {
12324
12472
  var n;
@@ -12330,22 +12478,22 @@ var US = { createTable: (e) => {
12330
12478
  e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
12331
12479
  },
12332
12480
  createTable: (e) => {
12333
- e.getGlobalAutoFilterFn = () => wS.includesString, e.getGlobalFilterFn = () => {
12481
+ e.getGlobalAutoFilterFn = () => NS.includesString, e.getGlobalFilterFn = () => {
12334
12482
  let { globalFilterFn: t } = e.options;
12335
- return iS(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? wS[t];
12483
+ return pS(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? NS[t];
12336
12484
  }, e.setGlobalFilter = (t) => {
12337
12485
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
12338
12486
  }, e.resetGlobalFilter = (t) => {
12339
12487
  e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
12340
12488
  };
12341
12489
  }
12342
- }, GS = {
12490
+ }, eC = {
12343
12491
  getInitialState: (e) => ({
12344
12492
  expanded: {},
12345
12493
  ...e
12346
12494
  }),
12347
12495
  getDefaultOptions: (e) => ({
12348
- onExpandedChange: rS("expanded", e),
12496
+ onExpandedChange: fS("expanded", e),
12349
12497
  paginateExpandedRows: !0
12350
12498
  }),
12351
12499
  createTable: (e) => {
@@ -12416,18 +12564,18 @@ var US = { createTable: (e) => {
12416
12564
  };
12417
12565
  };
12418
12566
  }
12419
- }, KS = 0, qS = 10, JS = () => ({
12420
- pageIndex: KS,
12421
- pageSize: qS
12422
- }), YS = {
12567
+ }, tC = 0, nC = 10, rC = () => ({
12568
+ pageIndex: tC,
12569
+ pageSize: nC
12570
+ }), iC = {
12423
12571
  getInitialState: (e) => ({
12424
12572
  ...e,
12425
12573
  pagination: {
12426
- ...JS(),
12574
+ ...rC(),
12427
12575
  ...e?.pagination
12428
12576
  }
12429
12577
  }),
12430
- getDefaultOptions: (e) => ({ onPaginationChange: rS("pagination", e) }),
12578
+ getDefaultOptions: (e) => ({ onPaginationChange: fS("pagination", e) }),
12431
12579
  createTable: (e) => {
12432
12580
  let t = !1, n = !1;
12433
12581
  e._autoResetPageIndex = () => {
@@ -12443,11 +12591,11 @@ var US = { createTable: (e) => {
12443
12591
  e.resetPageIndex(), n = !1;
12444
12592
  });
12445
12593
  }
12446
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => nS(t, e)), e.resetPagination = (t) => {
12447
- e.setPagination(t ? JS() : e.initialState.pagination ?? JS());
12594
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => dS(t, e)), e.resetPagination = (t) => {
12595
+ e.setPagination(t ? rC() : e.initialState.pagination ?? rC());
12448
12596
  }, e.setPageIndex = (t) => {
12449
12597
  e.setPagination((n) => {
12450
- let r = nS(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
12598
+ let r = dS(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
12451
12599
  return r = Math.max(0, Math.min(r, i)), {
12452
12600
  ...n,
12453
12601
  pageIndex: r
@@ -12455,13 +12603,13 @@ var US = { createTable: (e) => {
12455
12603
  });
12456
12604
  }, e.resetPageIndex = (t) => {
12457
12605
  var n;
12458
- e.setPageIndex(t ? KS : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? KS);
12606
+ e.setPageIndex(t ? tC : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? tC);
12459
12607
  }, e.resetPageSize = (t) => {
12460
12608
  var n;
12461
- e.setPageSize(t ? qS : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? qS);
12609
+ e.setPageSize(t ? nC : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? nC);
12462
12610
  }, e.setPageSize = (t) => {
12463
12611
  e.setPagination((e) => {
12464
- let n = Math.max(1, nS(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
12612
+ let n = Math.max(1, dS(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
12465
12613
  return {
12466
12614
  ...e,
12467
12615
  pageIndex: i,
@@ -12469,7 +12617,7 @@ var US = { createTable: (e) => {
12469
12617
  };
12470
12618
  });
12471
12619
  }, e.setPageCount = (t) => e.setPagination((n) => {
12472
- let r = nS(t, e.options.pageCount ?? -1);
12620
+ let r = dS(t, e.options.pageCount ?? -1);
12473
12621
  return typeof r == "number" && (r = Math.max(-1, r)), {
12474
12622
  ...n,
12475
12623
  pageCount: r
@@ -12482,15 +12630,15 @@ var US = { createTable: (e) => {
12482
12630
  return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
12483
12631
  }, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
12484
12632
  }
12485
- }, XS = () => ({
12633
+ }, aC = () => ({
12486
12634
  top: [],
12487
12635
  bottom: []
12488
- }), ZS = {
12636
+ }), oC = {
12489
12637
  getInitialState: (e) => ({
12490
- rowPinning: XS(),
12638
+ rowPinning: aC(),
12491
12639
  ...e
12492
12640
  }),
12493
- getDefaultOptions: (e) => ({ onRowPinningChange: rS("rowPinning", e) }),
12641
+ getDefaultOptions: (e) => ({ onRowPinningChange: fS("rowPinning", e) }),
12494
12642
  createRow: (e, t) => {
12495
12643
  e.pin = (n, r, i) => {
12496
12644
  let a = r ? e.getLeafRows().map((e) => {
@@ -12529,7 +12677,7 @@ var US = { createTable: (e) => {
12529
12677
  };
12530
12678
  },
12531
12679
  createTable: (e) => {
12532
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? XS() : e.initialState?.rowPinning ?? XS()), e.getIsSomeRowsPinned = (t) => {
12680
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? aC() : e.initialState?.rowPinning ?? aC()), e.getIsSomeRowsPinned = (t) => {
12533
12681
  let n = e.getState().rowPinning;
12534
12682
  return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
12535
12683
  }, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -12547,13 +12695,13 @@ var US = { createTable: (e) => {
12547
12695
  return e.filter((e) => !r.has(e.id));
12548
12696
  }, $(e.options, "debugRows", "getCenterRows"));
12549
12697
  }
12550
- }, QS = {
12698
+ }, sC = {
12551
12699
  getInitialState: (e) => ({
12552
12700
  rowSelection: {},
12553
12701
  ...e
12554
12702
  }),
12555
12703
  getDefaultOptions: (e) => ({
12556
- onRowSelectionChange: rS("rowSelection", e),
12704
+ onRowSelectionChange: fS("rowSelection", e),
12557
12705
  enableRowSelection: !0,
12558
12706
  enableMultiRowSelection: !0,
12559
12707
  enableSubRowSelection: !0
@@ -12572,17 +12720,17 @@ var US = { createTable: (e) => {
12572
12720
  }, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
12573
12721
  let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
12574
12722
  return e.getRowModel().rows.forEach((t) => {
12575
- $S(i, t.id, r, !0, e);
12723
+ cC(i, t.id, r, !0, e);
12576
12724
  }), i;
12577
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? eC(e, n) : {
12725
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? lC(e, n) : {
12578
12726
  rows: [],
12579
12727
  flatRows: [],
12580
12728
  rowsById: {}
12581
- }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? eC(e, n) : {
12729
+ }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? lC(e, n) : {
12582
12730
  rows: [],
12583
12731
  flatRows: [],
12584
12732
  rowsById: {}
12585
- }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? eC(e, n) : {
12733
+ }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? lC(e, n) : {
12586
12734
  rows: [],
12587
12735
  flatRows: [],
12588
12736
  rowsById: {}
@@ -12610,17 +12758,17 @@ var US = { createTable: (e) => {
12610
12758
  t.setRowSelection((a) => {
12611
12759
  if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
12612
12760
  let o = { ...a };
12613
- return $S(o, e.id, n, r?.selectChildren ?? !0, t), o;
12761
+ return cC(o, e.id, n, r?.selectChildren ?? !0, t), o;
12614
12762
  });
12615
12763
  }, e.getIsSelected = () => {
12616
12764
  let { rowSelection: n } = t.getState();
12617
- return tC(e, n);
12765
+ return uC(e, n);
12618
12766
  }, e.getIsSomeSelected = () => {
12619
12767
  let { rowSelection: n } = t.getState();
12620
- return nC(e, n) === "some";
12768
+ return dC(e, n) === "some";
12621
12769
  }, e.getIsAllSubRowsSelected = () => {
12622
12770
  let { rowSelection: n } = t.getState();
12623
- return nC(e, n) === "all";
12771
+ return dC(e, n) === "all";
12624
12772
  }, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
12625
12773
  let t = e.getCanSelect();
12626
12774
  return (n) => {
@@ -12628,16 +12776,16 @@ var US = { createTable: (e) => {
12628
12776
  };
12629
12777
  };
12630
12778
  }
12631
- }, $S = (e, t, n, r, i) => {
12779
+ }, cC = (e, t, n, r, i) => {
12632
12780
  var a;
12633
12781
  let o = i.getRow(t, !0);
12634
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => $S(e, t.id, n, r, i));
12782
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => cC(e, t.id, n, r, i));
12635
12783
  };
12636
- function eC(e, t) {
12784
+ function lC(e, t) {
12637
12785
  let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
12638
12786
  return e.map((e) => {
12639
12787
  var t;
12640
- let o = tC(e, n);
12788
+ let o = uC(e, n);
12641
12789
  if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
12642
12790
  ...e,
12643
12791
  subRows: a(e.subRows)
@@ -12650,32 +12798,32 @@ function eC(e, t) {
12650
12798
  rowsById: i
12651
12799
  };
12652
12800
  }
12653
- function tC(e, t) {
12801
+ function uC(e, t) {
12654
12802
  return t[e.id] ?? !1;
12655
12803
  }
12656
- function nC(e, t, n) {
12804
+ function dC(e, t, n) {
12657
12805
  var r;
12658
12806
  if (!((r = e.subRows) != null && r.length)) return !1;
12659
12807
  let i = !0, a = !1;
12660
12808
  return e.subRows.forEach((e) => {
12661
- if (!(a && !i) && (e.getCanSelect() && (tC(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
12662
- let n = nC(e, t);
12809
+ if (!(a && !i) && (e.getCanSelect() && (uC(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
12810
+ let n = dC(e, t);
12663
12811
  n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
12664
12812
  }
12665
12813
  }), i ? "all" : a ? "some" : !1;
12666
12814
  }
12667
- var rC = /([0-9]+)/gm, iC = (e, t, n) => fC(dC(e.getValue(n)).toLowerCase(), dC(t.getValue(n)).toLowerCase()), aC = (e, t, n) => fC(dC(e.getValue(n)), dC(t.getValue(n))), oC = (e, t, n) => uC(dC(e.getValue(n)).toLowerCase(), dC(t.getValue(n)).toLowerCase()), sC = (e, t, n) => uC(dC(e.getValue(n)), dC(t.getValue(n))), cC = (e, t, n) => {
12815
+ var fC = /([0-9]+)/gm, pC = (e, t, n) => xC(bC(e.getValue(n)).toLowerCase(), bC(t.getValue(n)).toLowerCase()), mC = (e, t, n) => xC(bC(e.getValue(n)), bC(t.getValue(n))), hC = (e, t, n) => yC(bC(e.getValue(n)).toLowerCase(), bC(t.getValue(n)).toLowerCase()), gC = (e, t, n) => yC(bC(e.getValue(n)), bC(t.getValue(n))), _C = (e, t, n) => {
12668
12816
  let r = e.getValue(n), i = t.getValue(n);
12669
12817
  return r > i ? 1 : r < i ? -1 : 0;
12670
- }, lC = (e, t, n) => uC(e.getValue(n), t.getValue(n));
12671
- function uC(e, t) {
12818
+ }, vC = (e, t, n) => yC(e.getValue(n), t.getValue(n));
12819
+ function yC(e, t) {
12672
12820
  return e === t ? 0 : e > t ? 1 : -1;
12673
12821
  }
12674
- function dC(e) {
12822
+ function bC(e) {
12675
12823
  return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
12676
12824
  }
12677
- function fC(e, t) {
12678
- let n = e.split(rC).filter(Boolean), r = t.split(rC).filter(Boolean);
12825
+ function xC(e, t) {
12826
+ let n = e.split(fC).filter(Boolean), r = t.split(fC).filter(Boolean);
12679
12827
  for (; n.length && r.length;) {
12680
12828
  let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
12681
12829
  if (isNaN(o[0])) {
@@ -12689,22 +12837,22 @@ function fC(e, t) {
12689
12837
  }
12690
12838
  return n.length - r.length;
12691
12839
  }
12692
- var pC = {
12693
- alphanumeric: iC,
12694
- alphanumericCaseSensitive: aC,
12695
- text: oC,
12696
- textCaseSensitive: sC,
12697
- datetime: cC,
12698
- basic: lC
12699
- }, mC = [
12700
- dS,
12701
- VS,
12702
- jS,
12703
- NS,
12704
- mS,
12705
- ES,
12706
- US,
12707
- WS,
12840
+ var SC = {
12841
+ alphanumeric: pC,
12842
+ alphanumericCaseSensitive: mC,
12843
+ text: hC,
12844
+ textCaseSensitive: gC,
12845
+ datetime: _C,
12846
+ basic: vC
12847
+ }, CC = [
12848
+ bS,
12849
+ XS,
12850
+ BS,
12851
+ HS,
12852
+ CS,
12853
+ FS,
12854
+ QS,
12855
+ $S,
12708
12856
  {
12709
12857
  getInitialState: (e) => ({
12710
12858
  sorting: [],
@@ -12715,7 +12863,7 @@ var pC = {
12715
12863
  sortUndefined: 1
12716
12864
  }),
12717
12865
  getDefaultOptions: (e) => ({
12718
- onSortingChange: rS("sorting", e),
12866
+ onSortingChange: fS("sorting", e),
12719
12867
  isMultiSortEvent: (e) => e.shiftKey
12720
12868
  }),
12721
12869
  createColumn: (e, t) => {
@@ -12723,13 +12871,13 @@ var pC = {
12723
12871
  let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
12724
12872
  for (let t of n) {
12725
12873
  let n = t?.getValue(e.id);
12726
- if (Object.prototype.toString.call(n) === "[object Date]") return pC.datetime;
12727
- if (typeof n == "string" && (r = !0, n.split(rC).length > 1)) return pC.alphanumeric;
12874
+ if (Object.prototype.toString.call(n) === "[object Date]") return SC.datetime;
12875
+ if (typeof n == "string" && (r = !0, n.split(fC).length > 1)) return SC.alphanumeric;
12728
12876
  }
12729
- return r ? pC.text : pC.basic;
12877
+ return r ? SC.text : SC.basic;
12730
12878
  }, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
12731
12879
  if (!e) throw Error();
12732
- return iS(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? pC[e.columnDef.sortingFn];
12880
+ return pS(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? SC[e.columnDef.sortingFn];
12733
12881
  }, e.toggleSorting = (n, r) => {
12734
12882
  let i = e.getNextSortingOrder(), a = n != null;
12735
12883
  t.setSorting((o) => {
@@ -12766,16 +12914,16 @@ var pC = {
12766
12914
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
12767
12915
  }
12768
12916
  },
12769
- kS,
12770
- GS,
12771
- YS,
12772
- ZS,
12773
- QS,
12774
- LS
12917
+ RS,
12918
+ eC,
12919
+ iC,
12920
+ oC,
12921
+ sC,
12922
+ KS
12775
12923
  ];
12776
- function hC(e) {
12924
+ function wC(e) {
12777
12925
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
12778
- let t = [...mC, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
12926
+ let t = [...CC, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
12779
12927
  ...r,
12780
12928
  ...e
12781
12929
  }, a = { ...e.initialState ?? {} };
@@ -12801,7 +12949,7 @@ function hC(e) {
12801
12949
  n.setState(n.initialState);
12802
12950
  },
12803
12951
  setOptions: (e) => {
12804
- n.options = i(nS(e, n.options));
12952
+ n.options = i(dS(e, n.options));
12805
12953
  },
12806
12954
  getState: () => n.options.state,
12807
12955
  setState: (e) => {
@@ -12831,7 +12979,7 @@ function hC(e) {
12831
12979
  getAllColumns: Q(() => [n._getColumnDefs()], (e) => {
12832
12980
  let t = function(e, r, i) {
12833
12981
  return i === void 0 && (i = 0), e.map((e) => {
12834
- let a = cS(n, e, i, r), o = e;
12982
+ let a = _S(n, e, i, r), o = e;
12835
12983
  return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
12836
12984
  });
12837
12985
  };
@@ -12852,7 +13000,7 @@ function hC(e) {
12852
13000
  }
12853
13001
  return n;
12854
13002
  }
12855
- function gC() {
13003
+ function TC() {
12856
13004
  return (e) => Q(() => [e.options.data], (t) => {
12857
13005
  let n = {
12858
13006
  rows: [],
@@ -12862,7 +13010,7 @@ function gC() {
12862
13010
  i === void 0 && (i = 0);
12863
13011
  let o = [];
12864
13012
  for (let c = 0; c < t.length; c++) {
12865
- let l = pS(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
13013
+ let l = SS(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
12866
13014
  if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
12867
13015
  var s;
12868
13016
  l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -12873,7 +13021,7 @@ function gC() {
12873
13021
  return n.rows = r(t), n;
12874
13022
  }, $(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
12875
13023
  }
12876
- function _C(e) {
13024
+ function EC(e) {
12877
13025
  let t = [], n = (e) => {
12878
13026
  var r;
12879
13027
  t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -12884,16 +13032,16 @@ function _C(e) {
12884
13032
  rowsById: e.rowsById
12885
13033
  };
12886
13034
  }
12887
- function vC(e, t, n) {
12888
- return n.options.filterFromLeafRows ? yC(e, t, n) : bC(e, t, n);
13035
+ function DC(e, t, n) {
13036
+ return n.options.filterFromLeafRows ? OC(e, t, n) : kC(e, t, n);
12889
13037
  }
12890
- function yC(e, t, n) {
13038
+ function OC(e, t, n) {
12891
13039
  let r = [], i = {}, a = n.options.maxLeafRowFilterDepth ?? 100, o = function(e, s) {
12892
13040
  s === void 0 && (s = 0);
12893
13041
  let c = [];
12894
13042
  for (let u = 0; u < e.length; u++) {
12895
13043
  var l;
12896
- let d = e[u], f = pS(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
13044
+ let d = e[u], f = SS(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
12897
13045
  if (f.columnFilters = d.columnFilters, (l = d.subRows) != null && l.length && s < a) {
12898
13046
  if (f.subRows = o(d.subRows, s + 1), d = f, t(d) && !f.subRows.length) {
12899
13047
  c.push(d), i[d.id] = d, r.push(d);
@@ -12913,7 +13061,7 @@ function yC(e, t, n) {
12913
13061
  rowsById: i
12914
13062
  };
12915
13063
  }
12916
- function bC(e, t, n) {
13064
+ function kC(e, t, n) {
12917
13065
  let r = [], i = {}, a = n.options.maxLeafRowFilterDepth ?? 100, o = function(e, s) {
12918
13066
  s === void 0 && (s = 0);
12919
13067
  let c = [];
@@ -12922,7 +13070,7 @@ function bC(e, t, n) {
12922
13070
  if (t(d)) {
12923
13071
  var l;
12924
13072
  if ((l = d.subRows) != null && l.length && s < a) {
12925
- let e = pS(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
13073
+ let e = SS(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
12926
13074
  e.subRows = o(d.subRows, s + 1), d = e;
12927
13075
  }
12928
13076
  c.push(d), r.push(d), i[d.id] = d;
@@ -12936,7 +13084,7 @@ function bC(e, t, n) {
12936
13084
  rowsById: i
12937
13085
  };
12938
13086
  }
12939
- function xC() {
13087
+ function AC() {
12940
13088
  return (e) => Q(() => [
12941
13089
  e.getPreFilteredRowModel(),
12942
13090
  e.getState().columnFilters,
@@ -12993,13 +13141,13 @@ function xC() {
12993
13141
  n.columnFilters.__global__ !== !0 && (n.columnFilters.__global__ = !1);
12994
13142
  }
12995
13143
  }
12996
- return vC(t.rows, (e) => {
13144
+ return DC(t.rows, (e) => {
12997
13145
  for (let t = 0; t < o.length; t++) if (e.columnFilters[o[t]] === !1) return !1;
12998
13146
  return !0;
12999
13147
  }, e);
13000
13148
  }, $(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
13001
13149
  }
13002
- function SC(e) {
13150
+ function jC(e) {
13003
13151
  return (e) => Q(() => [
13004
13152
  e.getState().pagination,
13005
13153
  e.getPrePaginationRowModel(),
@@ -13013,7 +13161,7 @@ function SC(e) {
13013
13161
  rows: a,
13014
13162
  flatRows: o,
13015
13163
  rowsById: s
13016
- } : _C({
13164
+ } : EC({
13017
13165
  rows: a,
13018
13166
  flatRows: o,
13019
13167
  rowsById: s
@@ -13024,7 +13172,7 @@ function SC(e) {
13024
13172
  return u.rows.forEach(d), u;
13025
13173
  }, $(e.options, "debugTable", "getPaginationRowModel"));
13026
13174
  }
13027
- function CC() {
13175
+ function MC() {
13028
13176
  return (e) => Q(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
13029
13177
  if (!n.rows.length || !(t != null && t.length)) return n;
13030
13178
  let r = e.getState().sorting, i = [], a = r.filter((t) => e.getColumn(t.id)?.getCanSort()), o = {};
@@ -13066,28 +13214,28 @@ function CC() {
13066
13214
  }
13067
13215
  //#endregion
13068
13216
  //#region node_modules/@tanstack/react-table/build/lib/index.mjs
13069
- function wC(e, t) {
13070
- return e ? TC(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
13217
+ function NC(e, t) {
13218
+ return e ? PC(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
13071
13219
  }
13072
- function TC(e) {
13073
- return EC(e) || typeof e == "function" || DC(e);
13220
+ function PC(e) {
13221
+ return FC(e) || typeof e == "function" || IC(e);
13074
13222
  }
13075
- function EC(e) {
13223
+ function FC(e) {
13076
13224
  return typeof e == "function" && (() => {
13077
13225
  let t = Object.getPrototypeOf(e);
13078
13226
  return t.prototype && t.prototype.isReactComponent;
13079
13227
  })();
13080
13228
  }
13081
- function DC(e) {
13229
+ function IC(e) {
13082
13230
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
13083
13231
  }
13084
- function OC(e) {
13232
+ function LC(e) {
13085
13233
  let t = {
13086
13234
  state: {},
13087
13235
  onStateChange: () => {},
13088
13236
  renderFallbackValue: null,
13089
13237
  ...e
13090
- }, [n] = y.useState(() => ({ current: hC(t) })), [r, i] = y.useState(() => n.current.initialState);
13238
+ }, [n] = y.useState(() => ({ current: wC(t) })), [r, i] = y.useState(() => n.current.initialState);
13091
13239
  return n.current.setOptions((t) => ({
13092
13240
  ...t,
13093
13241
  ...e,
@@ -13102,57 +13250,57 @@ function OC(e) {
13102
13250
  }
13103
13251
  //#endregion
13104
13252
  //#region src/components/Table/Table.tsx
13105
- var kC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("table", {
13253
+ var RC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("table", {
13106
13254
  ref: r,
13107
13255
  className: e("w-full caption-bottom text-sm", t),
13108
13256
  ...n
13109
13257
  }));
13110
- kC.displayName = "Table";
13111
- var AC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("thead", {
13258
+ RC.displayName = "Table";
13259
+ var zC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("thead", {
13112
13260
  ref: r,
13113
13261
  className: e("[&_tr]:border-b [&_tr]:border-[var(--apcrda-color-border)]", t),
13114
13262
  ...n
13115
13263
  }));
13116
- AC.displayName = "TableHeader";
13117
- var jC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tbody", {
13264
+ zC.displayName = "TableHeader";
13265
+ var BC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tbody", {
13118
13266
  ref: r,
13119
13267
  className: e("[&_tr:last-child]:border-0", t),
13120
13268
  ...n
13121
13269
  }));
13122
- jC.displayName = "TableBody";
13123
- var MC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tfoot", {
13270
+ BC.displayName = "TableBody";
13271
+ var VC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tfoot", {
13124
13272
  ref: r,
13125
13273
  className: e("border-t border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface-muted)] font-medium", t),
13126
13274
  ...n
13127
13275
  }));
13128
- MC.displayName = "TableFooter";
13129
- var NC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tr", {
13276
+ VC.displayName = "TableFooter";
13277
+ var HC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tr", {
13130
13278
  ref: r,
13131
13279
  className: e("border-b border-[var(--apcrda-color-border)] transition-colors", "hover:bg-[var(--apcrda-color-surface-muted)]", "data-[state=selected]:bg-[var(--apcrda-color-primary)]/8", t),
13132
13280
  ...n
13133
13281
  }));
13134
- NC.displayName = "TableRow";
13135
- var PC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("th", {
13282
+ HC.displayName = "TableRow";
13283
+ var UC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("th", {
13136
13284
  ref: r,
13137
13285
  className: e("h-10 px-4 text-left align-middle text-xs font-semibold uppercase tracking-wide", "text-[var(--apcrda-color-muted)] bg-[var(--apcrda-color-surface-muted)]", "[&:has([role=checkbox])]:w-10 [&:has([role=checkbox])]:pr-0", t),
13138
13286
  ...n
13139
13287
  }));
13140
- PC.displayName = "TableHead";
13141
- var FC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("td", {
13288
+ UC.displayName = "TableHead";
13289
+ var WC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("td", {
13142
13290
  ref: r,
13143
13291
  className: e("px-4 py-3 align-middle text-[var(--apcrda-color-foreground)]", "[&:has([role=checkbox])]:w-10 [&:has([role=checkbox])]:pr-0", t),
13144
13292
  ...n
13145
13293
  }));
13146
- FC.displayName = "TableCell";
13147
- var IC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("caption", {
13294
+ WC.displayName = "TableCell";
13295
+ var GC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("caption", {
13148
13296
  ref: r,
13149
13297
  className: e("mt-4 text-sm text-[var(--apcrda-color-muted)]", t),
13150
13298
  ...n
13151
13299
  }));
13152
- IC.displayName = "TableCaption";
13300
+ GC.displayName = "TableCaption";
13153
13301
  //#endregion
13154
13302
  //#region src/components/Table/DataTable.tsx
13155
- function LC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMessage: a = "No results found", emptyDescription: o, pageSize: s = 10, pageSizeOptions: c = [
13303
+ function KC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMessage: a = "No results found", emptyDescription: o, pageSize: s = 10, pageSizeOptions: c = [
13156
13304
  10,
13157
13305
  20,
13158
13306
  50,
@@ -13181,7 +13329,7 @@ function LC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13181
13329
  u,
13182
13330
  C,
13183
13331
  n
13184
- ]), T = OC({
13332
+ ]), T = LC({
13185
13333
  data: t,
13186
13334
  columns: w,
13187
13335
  state: {
@@ -13204,10 +13352,10 @@ function LC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13204
13352
  onPaginationChange: (e) => {
13205
13353
  S((t) => typeof e == "function" ? e(t) : e);
13206
13354
  },
13207
- getCoreRowModel: gC(),
13208
- getSortedRowModel: CC(),
13209
- getPaginationRowModel: SC(),
13210
- getFilteredRowModel: xC()
13355
+ getCoreRowModel: TC(),
13356
+ getSortedRowModel: MC(),
13357
+ getPaginationRowModel: jC(),
13358
+ getFilteredRowModel: AC()
13211
13359
  });
13212
13360
  E(() => {
13213
13361
  d?.(T.getSelectedRowModel().rows.map((e) => e.original));
@@ -13218,7 +13366,7 @@ function LC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13218
13366
  children: [
13219
13367
  /* @__PURE__ */ P("div", {
13220
13368
  className: "flex items-center justify-between gap-4",
13221
- children: [/* @__PURE__ */ N(Xv, {
13369
+ children: [/* @__PURE__ */ N(Zv, {
13222
13370
  placeholder: "Search...",
13223
13371
  value: v,
13224
13372
  onChange: (e) => y(e.target.value),
@@ -13237,29 +13385,29 @@ function LC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13237
13385
  }),
13238
13386
  /* @__PURE__ */ N("div", {
13239
13387
  className: "rounded-[var(--apcrda-radius-md)] border border-[var(--apcrda-color-border)] overflow-auto",
13240
- children: /* @__PURE__ */ P(kC, { children: [/* @__PURE__ */ N(AC, { children: T.getHeaderGroups().map((t) => /* @__PURE__ */ N(NC, {
13388
+ children: /* @__PURE__ */ P(RC, { children: [/* @__PURE__ */ N(zC, { children: T.getHeaderGroups().map((t) => /* @__PURE__ */ N(HC, {
13241
13389
  className: "hover:bg-transparent",
13242
13390
  children: t.headers.map((t) => {
13243
13391
  let n = t.column.getCanSort(), r = t.column.getIsSorted();
13244
- return /* @__PURE__ */ N(PC, {
13392
+ return /* @__PURE__ */ N(UC, {
13245
13393
  style: { width: t.column.columnDef.size },
13246
13394
  onClick: n ? t.column.getToggleSortingHandler() : void 0,
13247
13395
  className: e(n && "cursor-pointer hover:text-[var(--apcrda-color-foreground)]"),
13248
13396
  children: t.isPlaceholder ? null : /* @__PURE__ */ P("div", {
13249
13397
  className: "flex items-center gap-1.5",
13250
- children: [wC(t.column.columnDef.header, t.getContext()), n && /* @__PURE__ */ N("span", {
13398
+ children: [NC(t.column.columnDef.header, t.getContext()), n && /* @__PURE__ */ N("span", {
13251
13399
  className: "shrink-0",
13252
13400
  children: r === "asc" ? /* @__PURE__ */ N(Rt, { className: "h-3 w-3" }) : r === "desc" ? /* @__PURE__ */ N(It, { className: "h-3 w-3" }) : /* @__PURE__ */ N(Lt, { className: "h-3 w-3 opacity-40" })
13253
13401
  })]
13254
13402
  })
13255
13403
  }, t.id);
13256
13404
  })
13257
- }, t.id)) }), /* @__PURE__ */ N(jC, { children: r ? Array.from({ length: i }).map((e, t) => /* @__PURE__ */ N(NC, {
13405
+ }, t.id)) }), /* @__PURE__ */ N(BC, { children: r ? Array.from({ length: i }).map((e, t) => /* @__PURE__ */ N(HC, {
13258
13406
  className: "animate-pulse hover:bg-transparent",
13259
- children: w.map((e, t) => /* @__PURE__ */ N(FC, { children: /* @__PURE__ */ N("div", { className: "h-4 rounded bg-[var(--apcrda-color-surface-muted)]" }) }, t))
13260
- }, t)) : T.getRowModel().rows.length === 0 ? /* @__PURE__ */ N(NC, {
13407
+ children: w.map((e, t) => /* @__PURE__ */ N(WC, { children: /* @__PURE__ */ N("div", { className: "h-4 rounded bg-[var(--apcrda-color-surface-muted)]" }) }, t))
13408
+ }, t)) : T.getRowModel().rows.length === 0 ? /* @__PURE__ */ N(HC, {
13261
13409
  className: "hover:bg-transparent",
13262
- children: /* @__PURE__ */ P(FC, {
13410
+ children: /* @__PURE__ */ P(WC, {
13263
13411
  colSpan: w.length,
13264
13412
  className: "py-16 text-center",
13265
13413
  children: [/* @__PURE__ */ N("p", {
@@ -13270,11 +13418,11 @@ function LC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13270
13418
  children: o
13271
13419
  })]
13272
13420
  })
13273
- }) : T.getRowModel().rows.map((t) => /* @__PURE__ */ N(NC, {
13421
+ }) : T.getRowModel().rows.map((t) => /* @__PURE__ */ N(HC, {
13274
13422
  "data-state": t.getIsSelected() ? "selected" : void 0,
13275
13423
  onClick: f ? () => f(t.original) : void 0,
13276
13424
  className: e(f && "cursor-pointer"),
13277
- children: t.getVisibleCells().map((e) => /* @__PURE__ */ N(FC, { children: wC(e.column.columnDef.cell, e.getContext()) }, e.id))
13425
+ children: t.getVisibleCells().map((e) => /* @__PURE__ */ N(WC, { children: NC(e.column.columnDef.cell, e.getContext()) }, e.id))
13278
13426
  }, t.id)) })] })
13279
13427
  }),
13280
13428
  l && !r && /* @__PURE__ */ P("div", {
@@ -13282,7 +13430,7 @@ function LC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13282
13430
  children: [/* @__PURE__ */ N("p", {
13283
13431
  className: "text-sm text-[var(--apcrda-color-muted)] shrink-0",
13284
13432
  children: D === 0 ? "No results" : `Showing ${A}–${M} of ${D}`
13285
- }), O > 1 && /* @__PURE__ */ N(iy, {
13433
+ }), O > 1 && /* @__PURE__ */ N(ay, {
13286
13434
  page: b + 1,
13287
13435
  totalPages: O,
13288
13436
  onPageChange: (e) => S((t) => ({
@@ -13301,17 +13449,17 @@ function LC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13301
13449
  ]
13302
13450
  });
13303
13451
  }
13304
- LC.displayName = "DataTable";
13452
+ KC.displayName = "DataTable";
13305
13453
  //#endregion
13306
13454
  //#region node_modules/@radix-ui/react-tabs/dist/index.mjs
13307
- var RC = "Tabs", [zC, BC] = R(RC, [bh]), VC = bh(), [HC, UC] = zC(RC), WC = y.forwardRef((e, t) => {
13455
+ var qC = "Tabs", [JC, YC] = R(qC, [bh]), XC = bh(), [ZC, QC] = JC(qC), $C = y.forwardRef((e, t) => {
13308
13456
  let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = "automatic", ...l } = e, u = Ke(s), [d, f] = ve({
13309
13457
  prop: r,
13310
13458
  onChange: i,
13311
13459
  defaultProp: a ?? "",
13312
- caller: RC
13460
+ caller: qC
13313
13461
  });
13314
- return /* @__PURE__ */ N(HC, {
13462
+ return /* @__PURE__ */ N(ZC, {
13315
13463
  scope: n,
13316
13464
  baseId: G(),
13317
13465
  value: d,
@@ -13327,12 +13475,12 @@ var RC = "Tabs", [zC, BC] = R(RC, [bh]), VC = bh(), [HC, UC] = zC(RC), WC = y.fo
13327
13475
  })
13328
13476
  });
13329
13477
  });
13330
- WC.displayName = RC;
13331
- var GC = "TabsList", KC = y.forwardRef((e, t) => {
13332
- let { __scopeTabs: n, loop: r = !0, ...i } = e, a = UC(GC, n);
13478
+ $C.displayName = qC;
13479
+ var ew = "TabsList", tw = y.forwardRef((e, t) => {
13480
+ let { __scopeTabs: n, loop: r = !0, ...i } = e, a = QC(ew, n);
13333
13481
  return /* @__PURE__ */ N(Mh, {
13334
13482
  asChild: !0,
13335
- ...VC(n),
13483
+ ...XC(n),
13336
13484
  orientation: a.orientation,
13337
13485
  dir: a.dir,
13338
13486
  loop: r,
@@ -13344,9 +13492,9 @@ var GC = "TabsList", KC = y.forwardRef((e, t) => {
13344
13492
  })
13345
13493
  });
13346
13494
  });
13347
- KC.displayName = GC;
13348
- var qC = "TabsTrigger", JC = y.forwardRef((e, t) => {
13349
- let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = UC(qC, n), s = VC(n), c = ZC(o.baseId, r), l = QC(o.baseId, r), u = r === o.value;
13495
+ tw.displayName = ew;
13496
+ var nw = "TabsTrigger", rw = y.forwardRef((e, t) => {
13497
+ let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = QC(nw, n), s = XC(n), c = ow(o.baseId, r), l = sw(o.baseId, r), u = r === o.value;
13350
13498
  return /* @__PURE__ */ N(Nh, {
13351
13499
  asChild: !0,
13352
13500
  ...s,
@@ -13376,9 +13524,9 @@ var qC = "TabsTrigger", JC = y.forwardRef((e, t) => {
13376
13524
  })
13377
13525
  });
13378
13526
  });
13379
- JC.displayName = qC;
13380
- var YC = "TabsContent", XC = y.forwardRef((e, t) => {
13381
- let { __scopeTabs: n, value: r, forceMount: i, children: a, ...o } = e, s = UC(YC, n), c = ZC(s.baseId, r), l = QC(s.baseId, r), u = r === s.value, d = y.useRef(u);
13527
+ rw.displayName = nw;
13528
+ var iw = "TabsContent", aw = y.forwardRef((e, t) => {
13529
+ let { __scopeTabs: n, value: r, forceMount: i, children: a, ...o } = e, s = QC(iw, n), c = ow(s.baseId, r), l = sw(s.baseId, r), u = r === s.value, d = y.useRef(u);
13382
13530
  return y.useEffect(() => {
13383
13531
  let e = requestAnimationFrame(() => d.current = !1);
13384
13532
  return () => cancelAnimationFrame(e);
@@ -13402,41 +13550,41 @@ var YC = "TabsContent", XC = y.forwardRef((e, t) => {
13402
13550
  })
13403
13551
  });
13404
13552
  });
13405
- XC.displayName = YC;
13406
- function ZC(e, t) {
13553
+ aw.displayName = iw;
13554
+ function ow(e, t) {
13407
13555
  return `${e}-trigger-${t}`;
13408
13556
  }
13409
- function QC(e, t) {
13557
+ function sw(e, t) {
13410
13558
  return `${e}-content-${t}`;
13411
13559
  }
13412
- var $C = WC, ew = KC, tw = JC, nw = XC, rw = C(({ className: t, ...n }, r) => /* @__PURE__ */ N($C, {
13560
+ var cw = $C, lw = tw, uw = rw, dw = aw, fw = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(cw, {
13413
13561
  ref: r,
13414
13562
  className: e("flex flex-col gap-2", t),
13415
13563
  ...n
13416
13564
  }));
13417
- rw.displayName = "Tabs";
13418
- var iw = C(({ className: t, variant: n = "line", size: r = "md", ...i }, a) => /* @__PURE__ */ N(ew, {
13565
+ fw.displayName = "Tabs";
13566
+ var pw = C(({ className: t, variant: n = "line", size: r = "md", ...i }, a) => /* @__PURE__ */ N(lw, {
13419
13567
  ref: a,
13420
13568
  className: e("inline-flex items-center", n === "line" && "border-b border-[var(--apcrda-color-border)] gap-0", n === "enclosed" && "rounded-[var(--apcrda-radius-md)] bg-[var(--apcrda-color-surface-muted)] p-1 gap-1", n === "pill" && "gap-1", r === "sm" && "text-xs", r === "md" && "text-sm", r === "lg" && "text-base", t),
13421
13569
  "data-variant": n,
13422
13570
  ...i
13423
13571
  }));
13424
- iw.displayName = "TabsList";
13425
- var aw = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(tw, {
13572
+ pw.displayName = "TabsList";
13573
+ var mw = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(uw, {
13426
13574
  ref: r,
13427
13575
  className: e("inline-flex items-center justify-center gap-1.5 whitespace-nowrap font-medium transition-colors duration-[var(--apcrda-motion-normal)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", "[&[data-state=active]]:text-[var(--apcrda-color-primary)]", "[data-variant=line_&]:border-b-2 [data-variant=line_&]:border-transparent [data-variant=line_&]:px-4 [data-variant=line_&]:pb-2.5 [data-variant=line_&]:pt-2 [data-variant=line_&]:text-[var(--apcrda-color-muted)] [data-variant=line_&[data-state=active]]:border-[var(--apcrda-color-primary)] [data-variant=line_&[data-state=active]]:text-[var(--apcrda-color-primary)]", "[data-variant=enclosed_&]:rounded-[var(--apcrda-radius-sm)] [data-variant=enclosed_&]:px-3 [data-variant=enclosed_&]:py-1.5 [data-variant=enclosed_&]:text-[var(--apcrda-color-muted)] [data-variant=enclosed_&[data-state=active]]:bg-[var(--apcrda-color-surface)] [data-variant=enclosed_&[data-state=active]]:shadow-[var(--apcrda-shadow-sm)] [data-variant=enclosed_&[data-state=active]]:text-[var(--apcrda-color-foreground)]", "[data-variant=pill_&]:rounded-full [data-variant=pill_&]:px-4 [data-variant=pill_&]:py-1.5 [data-variant=pill_&]:text-[var(--apcrda-color-muted)] [data-variant=pill_&[data-state=active]]:bg-[var(--apcrda-color-primary)] [data-variant=pill_&[data-state=active]]:text-[var(--apcrda-color-primary-foreground)]", t),
13428
13576
  ...n
13429
13577
  }));
13430
- aw.displayName = "TabsTrigger";
13431
- var ow = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(nw, {
13578
+ mw.displayName = "TabsTrigger";
13579
+ var hw = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(dw, {
13432
13580
  ref: r,
13433
13581
  className: e("focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-2", t),
13434
13582
  ...n
13435
13583
  }));
13436
- ow.displayName = "TabsContent";
13584
+ hw.displayName = "TabsContent";
13437
13585
  //#endregion
13438
13586
  //#region src/components/Textarea/Textarea.tsx
13439
- var sw = hn("min-h-24 w-full resize-y rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55", {
13587
+ var gw = hn("min-h-24 w-full resize-y rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55", {
13440
13588
  variants: {
13441
13589
  textareaSize: {
13442
13590
  sm: "px-3 py-2 text-xs",
@@ -13452,11 +13600,11 @@ var sw = hn("min-h-24 w-full resize-y rounded-[var(--apcrda-radius-md)] border b
13452
13600
  textareaSize: "md",
13453
13601
  error: !1
13454
13602
  }
13455
- }), cw = C(({ className: t, textareaSize: n = "md", error: r = !1, loading: i = !1, disabled: a = !1, "aria-invalid": o, ...s }, c) => /* @__PURE__ */ P("span", {
13603
+ }), _w = C(({ className: t, textareaSize: n = "md", error: r = !1, loading: i = !1, disabled: a = !1, "aria-invalid": o, ...s }, c) => /* @__PURE__ */ P("span", {
13456
13604
  className: "relative block w-full",
13457
13605
  children: [/* @__PURE__ */ N("textarea", {
13458
13606
  ref: c,
13459
- className: e(sw({
13607
+ className: e(gw({
13460
13608
  textareaSize: n,
13461
13609
  error: r
13462
13610
  }), i && "pr-10", t),
@@ -13473,14 +13621,14 @@ var sw = hn("min-h-24 w-full resize-y rounded-[var(--apcrda-radius-md)] border b
13473
13621
  })
13474
13622
  }) : null]
13475
13623
  }));
13476
- cw.displayName = "Textarea";
13624
+ _w.displayName = "Textarea";
13477
13625
  //#endregion
13478
13626
  //#region node_modules/@radix-ui/react-toast/dist/index.mjs
13479
- var lw = "ToastProvider", [uw, dw, fw] = ge("Toast"), [pw, mw] = R("Toast", [fw]), [hw, gw] = pw(lw), _w = (e) => {
13627
+ var vw = "ToastProvider", [yw, bw, xw] = ge("Toast"), [Sw, Cw] = R("Toast", [xw]), [ww, Tw] = Sw(vw), Ew = (e) => {
13480
13628
  let { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: i = "right", swipeThreshold: a = 50, announcerContainer: o, children: s } = e, [c, l] = y.useState(null), [u, d] = y.useState(0), f = y.useRef(!1), p = y.useRef(!1);
13481
- return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${lw}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ N(uw.Provider, {
13629
+ return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${vw}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ N(yw.Provider, {
13482
13630
  scope: t,
13483
- children: /* @__PURE__ */ N(hw, {
13631
+ children: /* @__PURE__ */ N(ww, {
13484
13632
  scope: t,
13485
13633
  label: n,
13486
13634
  duration: r,
@@ -13498,9 +13646,9 @@ var lw = "ToastProvider", [uw, dw, fw] = ge("Toast"), [pw, mw] = R("Toast", [fw]
13498
13646
  })
13499
13647
  });
13500
13648
  };
13501
- _w.displayName = lw;
13502
- var vw = "ToastViewport", yw = ["F8"], bw = "toast.viewportPause", xw = "toast.viewportResume", Sw = y.forwardRef((e, t) => {
13503
- let { __scopeToast: n, hotkey: r = yw, label: i = "Notifications ({hotkey})", ...a } = e, o = gw(vw, n), s = dw(n), c = y.useRef(null), l = y.useRef(null), u = y.useRef(null), d = y.useRef(null), f = B(t, d, o.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), m = o.toastCount > 0;
13649
+ Ew.displayName = vw;
13650
+ var Dw = "ToastViewport", Ow = ["F8"], kw = "toast.viewportPause", Aw = "toast.viewportResume", jw = y.forwardRef((e, t) => {
13651
+ let { __scopeToast: n, hotkey: r = Ow, label: i = "Notifications ({hotkey})", ...a } = e, o = Tw(Dw, n), s = bw(n), c = y.useRef(null), l = y.useRef(null), u = y.useRef(null), d = y.useRef(null), f = B(t, d, o.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), m = o.toastCount > 0;
13504
13652
  y.useEffect(() => {
13505
13653
  let e = (e) => {
13506
13654
  r.length !== 0 && r.every((t) => e[t] || e.code === t) && d.current?.focus();
@@ -13511,12 +13659,12 @@ var vw = "ToastViewport", yw = ["F8"], bw = "toast.viewportPause", xw = "toast.v
13511
13659
  if (m && e && t) {
13512
13660
  let n = () => {
13513
13661
  if (!o.isClosePausedRef.current) {
13514
- let e = new CustomEvent(bw);
13662
+ let e = new CustomEvent(kw);
13515
13663
  t.dispatchEvent(e), o.isClosePausedRef.current = !0;
13516
13664
  }
13517
13665
  }, r = () => {
13518
13666
  if (o.isClosePausedRef.current) {
13519
- let e = new CustomEvent(xw);
13667
+ let e = new CustomEvent(Aw);
13520
13668
  t.dispatchEvent(e), o.isClosePausedRef.current = !1;
13521
13669
  }
13522
13670
  }, i = (t) => {
@@ -13531,7 +13679,7 @@ var vw = "ToastViewport", yw = ["F8"], bw = "toast.viewportPause", xw = "toast.v
13531
13679
  }, [m, o.isClosePausedRef]);
13532
13680
  let h = y.useCallback(({ tabbingDirection: e }) => {
13533
13681
  let t = s().map((t) => {
13534
- let n = t.ref.current, r = [n, ...Yw(n)];
13682
+ let n = t.ref.current, r = [n, ...iT(n)];
13535
13683
  return e === "forwards" ? r : r.reverse();
13536
13684
  });
13537
13685
  return (e === "forwards" ? t.reverse() : t).flat();
@@ -13548,7 +13696,7 @@ var vw = "ToastViewport", yw = ["F8"], bw = "toast.viewportPause", xw = "toast.v
13548
13696
  return;
13549
13697
  }
13550
13698
  let i = h({ tabbingDirection: r ? "backwards" : "forwards" }), a = i.findIndex((e) => e === n);
13551
- Xw(i.slice(a + 1)) ? t.preventDefault() : r ? l.current?.focus() : u.current?.focus();
13699
+ aT(i.slice(a + 1)) ? t.preventDefault() : r ? l.current?.focus() : u.current?.focus();
13552
13700
  }
13553
13701
  };
13554
13702
  return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
@@ -13560,13 +13708,13 @@ var vw = "ToastViewport", yw = ["F8"], bw = "toast.viewportPause", xw = "toast.v
13560
13708
  tabIndex: -1,
13561
13709
  style: { pointerEvents: m ? void 0 : "none" },
13562
13710
  children: [
13563
- m && /* @__PURE__ */ N(ww, {
13711
+ m && /* @__PURE__ */ N(Nw, {
13564
13712
  ref: l,
13565
13713
  onFocusFromOutsideViewport: () => {
13566
- Xw(h({ tabbingDirection: "forwards" }));
13714
+ aT(h({ tabbingDirection: "forwards" }));
13567
13715
  }
13568
13716
  }),
13569
- /* @__PURE__ */ N(uw.Slot, {
13717
+ /* @__PURE__ */ N(yw.Slot, {
13570
13718
  scope: n,
13571
13719
  children: /* @__PURE__ */ N(U.ol, {
13572
13720
  tabIndex: -1,
@@ -13574,19 +13722,19 @@ var vw = "ToastViewport", yw = ["F8"], bw = "toast.viewportPause", xw = "toast.v
13574
13722
  ref: f
13575
13723
  })
13576
13724
  }),
13577
- m && /* @__PURE__ */ N(ww, {
13725
+ m && /* @__PURE__ */ N(Nw, {
13578
13726
  ref: u,
13579
13727
  onFocusFromOutsideViewport: () => {
13580
- Xw(h({ tabbingDirection: "backwards" }));
13728
+ aT(h({ tabbingDirection: "backwards" }));
13581
13729
  }
13582
13730
  })
13583
13731
  ]
13584
13732
  });
13585
13733
  });
13586
- Sw.displayName = vw;
13587
- var Cw = "ToastFocusProxy", ww = y.forwardRef((e, t) => {
13588
- let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a = gw(Cw, n);
13589
- return /* @__PURE__ */ N(Xy, {
13734
+ jw.displayName = Dw;
13735
+ var Mw = "ToastFocusProxy", Nw = y.forwardRef((e, t) => {
13736
+ let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a = Tw(Mw, n);
13737
+ return /* @__PURE__ */ N(eb, {
13590
13738
  tabIndex: 0,
13591
13739
  ...i,
13592
13740
  ref: t,
@@ -13597,17 +13745,17 @@ var Cw = "ToastFocusProxy", ww = y.forwardRef((e, t) => {
13597
13745
  }
13598
13746
  });
13599
13747
  });
13600
- ww.displayName = Cw;
13601
- var Tw = "Toast", Ew = "toast.swipeStart", Dw = "toast.swipeMove", Ow = "toast.swipeCancel", kw = "toast.swipeEnd", Aw = y.forwardRef((e, t) => {
13748
+ Nw.displayName = Mw;
13749
+ var Pw = "Toast", Fw = "toast.swipeStart", Iw = "toast.swipeMove", Lw = "toast.swipeCancel", Rw = "toast.swipeEnd", zw = y.forwardRef((e, t) => {
13602
13750
  let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [s, c] = ve({
13603
13751
  prop: r,
13604
13752
  defaultProp: i ?? !0,
13605
13753
  onChange: a,
13606
- caller: Tw
13754
+ caller: Pw
13607
13755
  });
13608
13756
  return /* @__PURE__ */ N(W, {
13609
13757
  present: n || s,
13610
- children: /* @__PURE__ */ N(Nw, {
13758
+ children: /* @__PURE__ */ N(Hw, {
13611
13759
  open: s,
13612
13760
  ...o,
13613
13761
  ref: t,
@@ -13631,9 +13779,9 @@ var Tw = "Toast", Ew = "toast.swipeStart", Dw = "toast.swipeMove", Ow = "toast.s
13631
13779
  })
13632
13780
  });
13633
13781
  });
13634
- Aw.displayName = Tw;
13635
- var [jw, Mw] = pw(Tw, { onClose() {} }), Nw = y.forwardRef((e, t) => {
13636
- let { __scopeToast: n, type: r = "foreground", duration: i, open: a, onClose: o, onEscapeKeyDown: s, onPause: c, onResume: l, onSwipeStart: u, onSwipeMove: d, onSwipeCancel: f, onSwipeEnd: p, ...m } = e, h = gw(Tw, n), [g, _] = y.useState(null), v = B(t, (e) => _(e)), b = y.useRef(null), x = y.useRef(null), S = i || h.duration, C = y.useRef(0), w = y.useRef(S), T = y.useRef(0), { onToastAdd: E, onToastRemove: D } = h, O = bn(() => {
13782
+ zw.displayName = Pw;
13783
+ var [Bw, Vw] = Sw(Pw, { onClose() {} }), Hw = y.forwardRef((e, t) => {
13784
+ let { __scopeToast: n, type: r = "foreground", duration: i, open: a, onClose: o, onEscapeKeyDown: s, onPause: c, onResume: l, onSwipeStart: u, onSwipeMove: d, onSwipeCancel: f, onSwipeEnd: p, ...m } = e, h = Tw(Pw, n), [g, _] = y.useState(null), v = B(t, (e) => _(e)), b = y.useRef(null), x = y.useRef(null), S = i || h.duration, C = y.useRef(0), w = y.useRef(S), T = y.useRef(0), { onToastAdd: E, onToastRemove: D } = h, O = bn(() => {
13637
13785
  g?.contains(document.activeElement) && h.viewport?.focus(), o();
13638
13786
  }), k = y.useCallback((e) => {
13639
13787
  !e || e === Infinity || (window.clearTimeout(T.current), C.current = (/* @__PURE__ */ new Date()).getTime(), T.current = window.setTimeout(O, e));
@@ -13647,8 +13795,8 @@ var [jw, Mw] = pw(Tw, { onClose() {} }), Nw = y.forwardRef((e, t) => {
13647
13795
  let e = (/* @__PURE__ */ new Date()).getTime() - C.current;
13648
13796
  w.current -= e, window.clearTimeout(T.current), c?.();
13649
13797
  };
13650
- return e.addEventListener(bw, n), e.addEventListener(xw, t), () => {
13651
- e.removeEventListener(bw, n), e.removeEventListener(xw, t);
13798
+ return e.addEventListener(kw, n), e.addEventListener(Aw, t), () => {
13799
+ e.removeEventListener(kw, n), e.removeEventListener(Aw, t);
13652
13800
  };
13653
13801
  }
13654
13802
  }, [
@@ -13665,16 +13813,16 @@ var [jw, Mw] = pw(Tw, { onClose() {} }), Nw = y.forwardRef((e, t) => {
13665
13813
  h.isClosePausedRef,
13666
13814
  k
13667
13815
  ]), y.useEffect(() => (E(), () => D()), [E, D]);
13668
- let A = y.useMemo(() => g ? Ww(g) : null, [g]);
13669
- return h.viewport ? /* @__PURE__ */ P(M, { children: [A && /* @__PURE__ */ N(Pw, {
13816
+ let A = y.useMemo(() => g ? $w(g) : null, [g]);
13817
+ return h.viewport ? /* @__PURE__ */ P(M, { children: [A && /* @__PURE__ */ N(Uw, {
13670
13818
  __scopeToast: n,
13671
13819
  role: "status",
13672
13820
  "aria-live": r === "foreground" ? "assertive" : "polite",
13673
13821
  children: A
13674
- }), /* @__PURE__ */ N(jw, {
13822
+ }), /* @__PURE__ */ N(Bw, {
13675
13823
  scope: n,
13676
13824
  onClose: O,
13677
- children: F.createPortal(/* @__PURE__ */ N(uw.ItemSlot, {
13825
+ children: F.createPortal(/* @__PURE__ */ N(yw.ItemSlot, {
13678
13826
  scope: n,
13679
13827
  children: /* @__PURE__ */ N(In, {
13680
13828
  asChild: !0,
@@ -13710,7 +13858,7 @@ var [jw, Mw] = pw(Tw, { onClose() {} }), Nw = y.forwardRef((e, t) => {
13710
13858
  originalEvent: e,
13711
13859
  delta: l
13712
13860
  };
13713
- r ? (x.current = l, Gw(Dw, d, f, { discrete: !1 })) : Kw(l, h.swipeDirection, c) ? (x.current = l, Gw(Ew, u, f, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (b.current = null);
13861
+ r ? (x.current = l, eT(Iw, d, f, { discrete: !1 })) : tT(l, h.swipeDirection, c) ? (x.current = l, eT(Fw, u, f, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (b.current = null);
13714
13862
  }),
13715
13863
  onPointerUp: V(e.onPointerUp, (e) => {
13716
13864
  let t = x.current, n = e.target;
@@ -13719,22 +13867,22 @@ var [jw, Mw] = pw(Tw, { onClose() {} }), Nw = y.forwardRef((e, t) => {
13719
13867
  originalEvent: e,
13720
13868
  delta: t
13721
13869
  };
13722
- Kw(t, h.swipeDirection, h.swipeThreshold) ? Gw(kw, p, r, { discrete: !0 }) : Gw(Ow, f, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
13870
+ tT(t, h.swipeDirection, h.swipeThreshold) ? eT(Rw, p, r, { discrete: !0 }) : eT(Lw, f, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
13723
13871
  }
13724
13872
  })
13725
13873
  })
13726
13874
  })
13727
13875
  }), h.viewport)
13728
13876
  })] }) : null;
13729
- }), Pw = (e) => {
13730
- let { __scopeToast: t, children: n, ...r } = e, i = gw(Tw, t), [a, o] = y.useState(!1), [s, c] = y.useState(!1);
13731
- return qw(() => o(!0)), y.useEffect(() => {
13877
+ }), Uw = (e) => {
13878
+ let { __scopeToast: t, children: n, ...r } = e, i = Tw(Pw, t), [a, o] = y.useState(!1), [s, c] = y.useState(!1);
13879
+ return nT(() => o(!0)), y.useEffect(() => {
13732
13880
  let e = window.setTimeout(() => c(!0), 1e3);
13733
13881
  return () => window.clearTimeout(e);
13734
13882
  }, []), s ? null : /* @__PURE__ */ N(tr, {
13735
13883
  asChild: !0,
13736
13884
  container: i.announcerContainer || void 0,
13737
- children: /* @__PURE__ */ N(Xy, {
13885
+ children: /* @__PURE__ */ N(eb, {
13738
13886
  ...r,
13739
13887
  children: a && /* @__PURE__ */ P(M, { children: [
13740
13888
  i.label,
@@ -13743,37 +13891,37 @@ var [jw, Mw] = pw(Tw, { onClose() {} }), Nw = y.forwardRef((e, t) => {
13743
13891
  ] })
13744
13892
  })
13745
13893
  });
13746
- }, Fw = "ToastTitle", Iw = y.forwardRef((e, t) => {
13894
+ }, Ww = "ToastTitle", Gw = y.forwardRef((e, t) => {
13747
13895
  let { __scopeToast: n, ...r } = e;
13748
13896
  return /* @__PURE__ */ N(U.div, {
13749
13897
  ...r,
13750
13898
  ref: t
13751
13899
  });
13752
13900
  });
13753
- Iw.displayName = Fw;
13754
- var Lw = "ToastDescription", Rw = y.forwardRef((e, t) => {
13901
+ Gw.displayName = Ww;
13902
+ var Kw = "ToastDescription", qw = y.forwardRef((e, t) => {
13755
13903
  let { __scopeToast: n, ...r } = e;
13756
13904
  return /* @__PURE__ */ N(U.div, {
13757
13905
  ...r,
13758
13906
  ref: t
13759
13907
  });
13760
13908
  });
13761
- Rw.displayName = Lw;
13762
- var zw = "ToastAction", Bw = y.forwardRef((e, t) => {
13909
+ qw.displayName = Kw;
13910
+ var Jw = "ToastAction", Yw = y.forwardRef((e, t) => {
13763
13911
  let { altText: n, ...r } = e;
13764
- return n.trim() ? /* @__PURE__ */ N(Uw, {
13912
+ return n.trim() ? /* @__PURE__ */ N(Qw, {
13765
13913
  altText: n,
13766
13914
  asChild: !0,
13767
- children: /* @__PURE__ */ N(Hw, {
13915
+ children: /* @__PURE__ */ N(Zw, {
13768
13916
  ...r,
13769
13917
  ref: t
13770
13918
  })
13771
- }) : (console.error(`Invalid prop \`altText\` supplied to \`${zw}\`. Expected non-empty \`string\`.`), null);
13919
+ }) : (console.error(`Invalid prop \`altText\` supplied to \`${Jw}\`. Expected non-empty \`string\`.`), null);
13772
13920
  });
13773
- Bw.displayName = zw;
13774
- var Vw = "ToastClose", Hw = y.forwardRef((e, t) => {
13775
- let { __scopeToast: n, ...r } = e, i = Mw(Vw, n);
13776
- return /* @__PURE__ */ N(Uw, {
13921
+ Yw.displayName = Jw;
13922
+ var Xw = "ToastClose", Zw = y.forwardRef((e, t) => {
13923
+ let { __scopeToast: n, ...r } = e, i = Vw(Xw, n);
13924
+ return /* @__PURE__ */ N(Qw, {
13777
13925
  asChild: !0,
13778
13926
  children: /* @__PURE__ */ N(U.button, {
13779
13927
  type: "button",
@@ -13783,8 +13931,8 @@ var Vw = "ToastClose", Hw = y.forwardRef((e, t) => {
13783
13931
  })
13784
13932
  });
13785
13933
  });
13786
- Hw.displayName = Vw;
13787
- var Uw = y.forwardRef((e, t) => {
13934
+ Zw.displayName = Xw;
13935
+ var Qw = y.forwardRef((e, t) => {
13788
13936
  let { __scopeToast: n, altText: r, ...i } = e;
13789
13937
  return /* @__PURE__ */ N(U.div, {
13790
13938
  "data-radix-toast-announce-exclude": "",
@@ -13793,19 +13941,19 @@ var Uw = y.forwardRef((e, t) => {
13793
13941
  ref: t
13794
13942
  });
13795
13943
  });
13796
- function Ww(e) {
13944
+ function $w(e) {
13797
13945
  let t = [];
13798
13946
  return Array.from(e.childNodes).forEach((e) => {
13799
- if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent), Jw(e)) {
13947
+ if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent), rT(e)) {
13800
13948
  let n = e.ariaHidden || e.hidden || e.style.display === "none", r = e.dataset.radixToastAnnounceExclude === "";
13801
13949
  if (!n) if (r) {
13802
13950
  let n = e.dataset.radixToastAnnounceAlt;
13803
13951
  n && t.push(n);
13804
- } else t.push(...Ww(e));
13952
+ } else t.push(...$w(e));
13805
13953
  }
13806
13954
  }), t;
13807
13955
  }
13808
- function Gw(e, t, n, { discrete: r }) {
13956
+ function eT(e, t, n, { discrete: r }) {
13809
13957
  let i = n.originalEvent.currentTarget, a = new CustomEvent(e, {
13810
13958
  bubbles: !0,
13811
13959
  cancelable: !0,
@@ -13813,11 +13961,11 @@ function Gw(e, t, n, { discrete: r }) {
13813
13961
  });
13814
13962
  t && i.addEventListener(e, t, { once: !0 }), r ? xe(i, a) : i.dispatchEvent(a);
13815
13963
  }
13816
- var Kw = (e, t, n = 0) => {
13964
+ var tT = (e, t, n = 0) => {
13817
13965
  let r = Math.abs(e.x), i = Math.abs(e.y), a = r > i;
13818
13966
  return t === "left" || t === "right" ? a && r > n : !a && i > n;
13819
13967
  };
13820
- function qw(e = () => {}) {
13968
+ function nT(e = () => {}) {
13821
13969
  let t = bn(e);
13822
13970
  H(() => {
13823
13971
  let e = 0, n = 0;
@@ -13826,10 +13974,10 @@ function qw(e = () => {}) {
13826
13974
  };
13827
13975
  }, [t]);
13828
13976
  }
13829
- function Jw(e) {
13977
+ function rT(e) {
13830
13978
  return e.nodeType === e.ELEMENT_NODE;
13831
13979
  }
13832
- function Yw(e) {
13980
+ function iT(e) {
13833
13981
  let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
13834
13982
  let t = e.tagName === "INPUT" && e.type === "hidden";
13835
13983
  return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
@@ -13837,38 +13985,38 @@ function Yw(e) {
13837
13985
  for (; n.nextNode();) t.push(n.currentNode);
13838
13986
  return t;
13839
13987
  }
13840
- function Xw(e) {
13988
+ function aT(e) {
13841
13989
  let t = document.activeElement;
13842
13990
  return e.some((e) => e === t ? !0 : (e.focus(), document.activeElement !== t));
13843
13991
  }
13844
- var Zw = _w, Qw = Sw, $w = Aw, eT = Iw, tT = Rw, nT = Bw, rT = Hw, iT = /* @__PURE__ */ new Set(), aT = [];
13845
- function oT() {
13846
- let e = [...aT];
13847
- iT.forEach((t) => t(e));
13992
+ var oT = Ew, sT = jw, cT = zw, lT = Gw, uT = qw, dT = Yw, fT = Zw, pT = /* @__PURE__ */ new Set(), mT = [];
13993
+ function hT() {
13994
+ let e = [...mT];
13995
+ pT.forEach((t) => t(e));
13848
13996
  }
13849
- function sT(e) {
13997
+ function gT(e) {
13850
13998
  let t = `toast-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`;
13851
- return aT = [...aT, {
13999
+ return mT = [...mT, {
13852
14000
  ...e,
13853
14001
  id: t
13854
- }], oT(), t;
14002
+ }], hT(), t;
13855
14003
  }
13856
- function cT(e) {
13857
- aT = aT.filter((t) => t.id !== e), oT();
14004
+ function _T(e) {
14005
+ mT = mT.filter((t) => t.id !== e), hT();
13858
14006
  }
13859
- function lT() {
13860
- let [e, t] = j([...aT]);
13861
- return E(() => (iT.add(t), () => {
13862
- iT.delete(t);
14007
+ function vT() {
14008
+ let [e, t] = j([...mT]);
14009
+ return E(() => (pT.add(t), () => {
14010
+ pT.delete(t);
13863
14011
  }), []), {
13864
14012
  toasts: e,
13865
- toast: (e) => sT(e),
13866
- dismiss: (e) => cT(e)
14013
+ toast: (e) => gT(e),
14014
+ dismiss: (e) => _T(e)
13867
14015
  };
13868
14016
  }
13869
14017
  //#endregion
13870
14018
  //#region src/components/Toast/Toaster.tsx
13871
- var uT = {
14019
+ var yT = {
13872
14020
  success: /* @__PURE__ */ N(Yt, {
13873
14021
  className: "h-5 w-5 shrink-0 text-[var(--apcrda-color-success)]",
13874
14022
  "aria-hidden": "true"
@@ -13886,14 +14034,14 @@ var uT = {
13886
14034
  "aria-hidden": "true"
13887
14035
  })
13888
14036
  };
13889
- function dT() {
13890
- let { toasts: t } = lT();
13891
- return /* @__PURE__ */ P(Zw, {
14037
+ function bT() {
14038
+ let { toasts: t } = vT();
14039
+ return /* @__PURE__ */ P(oT, {
13892
14040
  swipeDirection: "right",
13893
- children: [t.map((t) => /* @__PURE__ */ P($w, {
14041
+ children: [t.map((t) => /* @__PURE__ */ P(cT, {
13894
14042
  open: !0,
13895
14043
  onOpenChange: (e) => {
13896
- e || cT(t.id);
14044
+ e || _T(t.id);
13897
14045
  },
13898
14046
  duration: t.duration ?? 5e3,
13899
14047
  role: t.variant === "error" ? "alert" : "status",
@@ -13901,25 +14049,25 @@ function dT() {
13901
14049
  children: [
13902
14050
  t.variant && t.variant !== "default" && /* @__PURE__ */ N("span", {
13903
14051
  className: "mt-0.5",
13904
- children: uT[t.variant]
14052
+ children: yT[t.variant]
13905
14053
  }),
13906
14054
  /* @__PURE__ */ P("div", {
13907
14055
  className: "flex-1 space-y-1",
13908
- children: [/* @__PURE__ */ N(eT, {
14056
+ children: [/* @__PURE__ */ N(lT, {
13909
14057
  className: "text-sm font-semibold text-[var(--apcrda-color-foreground)]",
13910
14058
  children: t.title
13911
- }), t.description && /* @__PURE__ */ N(tT, {
14059
+ }), t.description && /* @__PURE__ */ N(uT, {
13912
14060
  className: "text-sm text-[var(--apcrda-color-muted)]",
13913
14061
  children: t.description
13914
14062
  })]
13915
14063
  }),
13916
- t.action && /* @__PURE__ */ N(nT, {
14064
+ t.action && /* @__PURE__ */ N(dT, {
13917
14065
  altText: t.action.label,
13918
14066
  onClick: t.action.onClick,
13919
14067
  className: "shrink-0 rounded-[var(--apcrda-radius-sm)] border border-[var(--apcrda-color-border)] px-3 py-1.5 text-xs font-medium text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]",
13920
14068
  children: t.action.label
13921
14069
  }),
13922
- /* @__PURE__ */ N(rT, {
14070
+ /* @__PURE__ */ N(fT, {
13923
14071
  "aria-label": "Close",
13924
14072
  className: "shrink-0 rounded-[var(--apcrda-radius-sm)] text-[var(--apcrda-color-muted)] opacity-0 transition-opacity hover:text-[var(--apcrda-color-foreground)] group-hover:opacity-100 focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--apcrda-color-ring)]",
13925
14073
  children: /* @__PURE__ */ N(cn, {
@@ -13928,18 +14076,18 @@ function dT() {
13928
14076
  })
13929
14077
  })
13930
14078
  ]
13931
- }, t.id)), /* @__PURE__ */ N(Qw, { className: "fixed bottom-4 right-4 z-[100] flex max-h-screen w-full max-w-sm flex-col-reverse gap-2 p-4" })]
14079
+ }, t.id)), /* @__PURE__ */ N(sT, { className: "fixed bottom-4 right-4 z-[100] flex max-h-screen w-full max-w-sm flex-col-reverse gap-2 p-4" })]
13932
14080
  });
13933
14081
  }
13934
- dT.displayName = "Toaster";
14082
+ bT.displayName = "Toaster";
13935
14083
  //#endregion
13936
14084
  //#region node_modules/@radix-ui/react-tooltip/dist/index.mjs
13937
- var [fT, pT] = R("Tooltip", [Zs]), mT = Zs(), hT = "TooltipProvider", gT = 700, _T = "tooltip.open", [vT, yT] = fT(hT), bT = (e) => {
13938
- let { __scopeTooltip: t, delayDuration: n = gT, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = y.useRef(!0), s = y.useRef(!1), c = y.useRef(0);
14085
+ var [xT, ST] = R("Tooltip", [Zs]), CT = Zs(), wT = "TooltipProvider", TT = 700, ET = "tooltip.open", [DT, OT] = xT(wT), kT = (e) => {
14086
+ let { __scopeTooltip: t, delayDuration: n = TT, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = y.useRef(!0), s = y.useRef(!1), c = y.useRef(0);
13939
14087
  return y.useEffect(() => {
13940
14088
  let e = c.current;
13941
14089
  return () => window.clearTimeout(e);
13942
- }, []), /* @__PURE__ */ N(vT, {
14090
+ }, []), /* @__PURE__ */ N(DT, {
13943
14091
  scope: t,
13944
14092
  isOpenDelayedRef: o,
13945
14093
  delayDuration: n,
@@ -13957,15 +14105,15 @@ var [fT, pT] = R("Tooltip", [Zs]), mT = Zs(), hT = "TooltipProvider", gT = 700,
13957
14105
  children: a
13958
14106
  });
13959
14107
  };
13960
- bT.displayName = hT;
13961
- var xT = "Tooltip", [ST, CT] = fT(xT), wT = (e) => {
13962
- let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: s } = e, c = yT(xT, e.__scopeTooltip), l = mT(t), [u, d] = y.useState(null), f = G(), p = y.useRef(0), m = o ?? c.disableHoverableContent, h = s ?? c.delayDuration, g = y.useRef(!1), [_, v] = ve({
14108
+ kT.displayName = wT;
14109
+ var AT = "Tooltip", [jT, MT] = xT(AT), NT = (e) => {
14110
+ let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: s } = e, c = OT(AT, e.__scopeTooltip), l = CT(t), [u, d] = y.useState(null), f = G(), p = y.useRef(0), m = o ?? c.disableHoverableContent, h = s ?? c.delayDuration, g = y.useRef(!1), [_, v] = ve({
13963
14111
  prop: r,
13964
14112
  defaultProp: i ?? !1,
13965
14113
  onChange: (e) => {
13966
- e ? (c.onOpen(), document.dispatchEvent(new CustomEvent(_T))) : c.onClose(), a?.(e);
14114
+ e ? (c.onOpen(), document.dispatchEvent(new CustomEvent(ET))) : c.onClose(), a?.(e);
13967
14115
  },
13968
- caller: xT
14116
+ caller: AT
13969
14117
  }), b = y.useMemo(() => _ ? g.current ? "delayed-open" : "instant-open" : "closed", [_]), x = y.useCallback(() => {
13970
14118
  window.clearTimeout(p.current), p.current = 0, g.current = !1, v(!0);
13971
14119
  }, [v]), S = y.useCallback(() => {
@@ -13979,7 +14127,7 @@ var xT = "Tooltip", [ST, CT] = fT(xT), wT = (e) => {
13979
14127
  p.current &&= (window.clearTimeout(p.current), 0);
13980
14128
  }, []), /* @__PURE__ */ N(pc, {
13981
14129
  ...l,
13982
- children: /* @__PURE__ */ N(ST, {
14130
+ children: /* @__PURE__ */ N(jT, {
13983
14131
  scope: t,
13984
14132
  contentId: f,
13985
14133
  open: _,
@@ -14003,9 +14151,9 @@ var xT = "Tooltip", [ST, CT] = fT(xT), wT = (e) => {
14003
14151
  })
14004
14152
  });
14005
14153
  };
14006
- wT.displayName = xT;
14007
- var TT = "TooltipTrigger", ET = y.forwardRef((e, t) => {
14008
- let { __scopeTooltip: n, ...r } = e, i = CT(TT, n), a = yT(TT, n), o = mT(n), s = B(t, y.useRef(null), i.onTriggerChange), c = y.useRef(!1), l = y.useRef(!1), u = y.useCallback(() => c.current = !1, []);
14154
+ NT.displayName = AT;
14155
+ var PT = "TooltipTrigger", FT = y.forwardRef((e, t) => {
14156
+ let { __scopeTooltip: n, ...r } = e, i = MT(PT, n), a = OT(PT, n), o = CT(n), s = B(t, y.useRef(null), i.onTriggerChange), c = y.useRef(!1), l = y.useRef(!1), u = y.useCallback(() => c.current = !1, []);
14009
14157
  return y.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ N(mc, {
14010
14158
  asChild: !0,
14011
14159
  ...o,
@@ -14031,10 +14179,10 @@ var TT = "TooltipTrigger", ET = y.forwardRef((e, t) => {
14031
14179
  })
14032
14180
  });
14033
14181
  });
14034
- ET.displayName = TT;
14035
- var DT = "TooltipPortal", [OT, kT] = fT(DT, { forceMount: void 0 }), AT = (e) => {
14036
- let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a = CT(DT, t);
14037
- return /* @__PURE__ */ N(OT, {
14182
+ FT.displayName = PT;
14183
+ var IT = "TooltipPortal", [LT, RT] = xT(IT, { forceMount: void 0 }), zT = (e) => {
14184
+ let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a = MT(IT, t);
14185
+ return /* @__PURE__ */ N(LT, {
14038
14186
  scope: t,
14039
14187
  forceMount: n,
14040
14188
  children: /* @__PURE__ */ N(W, {
@@ -14047,30 +14195,30 @@ var DT = "TooltipPortal", [OT, kT] = fT(DT, { forceMount: void 0 }), AT = (e) =>
14047
14195
  })
14048
14196
  });
14049
14197
  };
14050
- AT.displayName = DT;
14051
- var jT = "TooltipContent", MT = y.forwardRef((e, t) => {
14052
- let n = kT(jT, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = CT(jT, e.__scopeTooltip);
14198
+ zT.displayName = IT;
14199
+ var BT = "TooltipContent", VT = y.forwardRef((e, t) => {
14200
+ let n = RT(BT, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = MT(BT, e.__scopeTooltip);
14053
14201
  return /* @__PURE__ */ N(W, {
14054
14202
  present: r || o.open,
14055
- children: o.disableHoverableContent ? /* @__PURE__ */ N(LT, {
14203
+ children: o.disableHoverableContent ? /* @__PURE__ */ N(KT, {
14056
14204
  side: i,
14057
14205
  ...a,
14058
14206
  ref: t
14059
- }) : /* @__PURE__ */ N(NT, {
14207
+ }) : /* @__PURE__ */ N(HT, {
14060
14208
  side: i,
14061
14209
  ...a,
14062
14210
  ref: t
14063
14211
  })
14064
14212
  });
14065
- }), NT = y.forwardRef((e, t) => {
14066
- let n = CT(jT, e.__scopeTooltip), r = yT(jT, e.__scopeTooltip), i = y.useRef(null), a = B(t, i), [o, s] = y.useState(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = r, f = y.useCallback(() => {
14213
+ }), HT = y.forwardRef((e, t) => {
14214
+ let n = MT(BT, e.__scopeTooltip), r = OT(BT, e.__scopeTooltip), i = y.useRef(null), a = B(t, i), [o, s] = y.useState(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = r, f = y.useCallback(() => {
14067
14215
  s(null), d(!1);
14068
14216
  }, [d]), p = y.useCallback((e, t) => {
14069
14217
  let n = e.currentTarget, r = {
14070
14218
  x: e.clientX,
14071
14219
  y: e.clientY
14072
- }, i = VT(r, BT(r, n.getBoundingClientRect())), a = HT(t.getBoundingClientRect());
14073
- s(WT([...i, ...a])), d(!0);
14220
+ }, i = XT(r, YT(r, n.getBoundingClientRect())), a = ZT(t.getBoundingClientRect());
14221
+ s($T([...i, ...a])), d(!0);
14074
14222
  }, [d]);
14075
14223
  return y.useEffect(() => () => f(), [f]), y.useEffect(() => {
14076
14224
  if (c && u) {
@@ -14090,7 +14238,7 @@ var jT = "TooltipContent", MT = y.forwardRef((e, t) => {
14090
14238
  let t = e.target, n = {
14091
14239
  x: e.clientX,
14092
14240
  y: e.clientY
14093
- }, r = c?.contains(t) || u?.contains(t), i = !UT(n, o);
14241
+ }, r = c?.contains(t) || u?.contains(t), i = !QT(n, o);
14094
14242
  r ? f() : i && (f(), l());
14095
14243
  };
14096
14244
  return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
@@ -14101,13 +14249,13 @@ var jT = "TooltipContent", MT = y.forwardRef((e, t) => {
14101
14249
  o,
14102
14250
  l,
14103
14251
  f
14104
- ]), /* @__PURE__ */ N(LT, {
14252
+ ]), /* @__PURE__ */ N(KT, {
14105
14253
  ...e,
14106
14254
  ref: a
14107
14255
  });
14108
- }), [PT, FT] = fT(xT, { isInside: !1 }), IT = /* @__PURE__ */ ae("TooltipContent"), LT = y.forwardRef((e, t) => {
14109
- let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c = CT(jT, n), l = mT(n), { onClose: u } = c;
14110
- return y.useEffect(() => (document.addEventListener(_T, u), () => document.removeEventListener(_T, u)), [u]), y.useEffect(() => {
14256
+ }), [UT, WT] = xT(AT, { isInside: !1 }), GT = /* @__PURE__ */ ae("TooltipContent"), KT = y.forwardRef((e, t) => {
14257
+ let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c = MT(BT, n), l = CT(n), { onClose: u } = c;
14258
+ return y.useEffect(() => (document.addEventListener(ET, u), () => document.removeEventListener(ET, u)), [u]), y.useEffect(() => {
14111
14259
  if (c.trigger) {
14112
14260
  let e = (e) => {
14113
14261
  e.target instanceof Node && e.target.contains(c.trigger) && u();
@@ -14134,10 +14282,10 @@ var jT = "TooltipContent", MT = y.forwardRef((e, t) => {
14134
14282
  "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
14135
14283
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
14136
14284
  },
14137
- children: [/* @__PURE__ */ N(IT, { children: r }), /* @__PURE__ */ N(PT, {
14285
+ children: [/* @__PURE__ */ N(GT, { children: r }), /* @__PURE__ */ N(UT, {
14138
14286
  scope: n,
14139
14287
  isInside: !0,
14140
- children: /* @__PURE__ */ N(Zy, {
14288
+ children: /* @__PURE__ */ N(tb, {
14141
14289
  id: c.contentId,
14142
14290
  role: "tooltip",
14143
14291
  children: i || r
@@ -14146,17 +14294,17 @@ var jT = "TooltipContent", MT = y.forwardRef((e, t) => {
14146
14294
  })
14147
14295
  });
14148
14296
  });
14149
- MT.displayName = jT;
14150
- var RT = "TooltipArrow", zT = y.forwardRef((e, t) => {
14151
- let { __scopeTooltip: n, ...r } = e, i = mT(n);
14152
- return FT(RT, n).isInside ? null : /* @__PURE__ */ N(gc, {
14297
+ VT.displayName = BT;
14298
+ var qT = "TooltipArrow", JT = y.forwardRef((e, t) => {
14299
+ let { __scopeTooltip: n, ...r } = e, i = CT(n);
14300
+ return WT(qT, n).isInside ? null : /* @__PURE__ */ N(gc, {
14153
14301
  ...i,
14154
14302
  ...r,
14155
14303
  ref: t
14156
14304
  });
14157
14305
  });
14158
- zT.displayName = RT;
14159
- function BT(e, t) {
14306
+ JT.displayName = qT;
14307
+ function YT(e, t) {
14160
14308
  let n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
14161
14309
  switch (Math.min(n, r, i, a)) {
14162
14310
  case a: return "left";
@@ -14166,7 +14314,7 @@ function BT(e, t) {
14166
14314
  default: throw Error("unreachable");
14167
14315
  }
14168
14316
  }
14169
- function VT(e, t, n = 5) {
14317
+ function XT(e, t, n = 5) {
14170
14318
  let r = [];
14171
14319
  switch (t) {
14172
14320
  case "top":
@@ -14208,7 +14356,7 @@ function VT(e, t, n = 5) {
14208
14356
  }
14209
14357
  return r;
14210
14358
  }
14211
- function HT(e) {
14359
+ function ZT(e) {
14212
14360
  let { top: t, right: n, bottom: r, left: i } = e;
14213
14361
  return [
14214
14362
  {
@@ -14229,7 +14377,7 @@ function HT(e) {
14229
14377
  }
14230
14378
  ];
14231
14379
  }
14232
- function UT(e, t) {
14380
+ function QT(e, t) {
14233
14381
  let { x: n, y: r } = e, i = !1;
14234
14382
  for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
14235
14383
  let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
@@ -14237,11 +14385,11 @@ function UT(e, t) {
14237
14385
  }
14238
14386
  return i;
14239
14387
  }
14240
- function WT(e) {
14388
+ function $T(e) {
14241
14389
  let t = e.slice();
14242
- return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)), GT(t);
14390
+ return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)), eE(t);
14243
14391
  }
14244
- function GT(e) {
14392
+ function eE(e) {
14245
14393
  if (e.length <= 1) return e.slice();
14246
14394
  let t = [];
14247
14395
  for (let n = 0; n < e.length; n++) {
@@ -14266,31 +14414,31 @@ function GT(e) {
14266
14414
  }
14267
14415
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
14268
14416
  }
14269
- var KT = bT, qT = wT, JT = ET, YT = AT, XT = MT, ZT = KT, QT = qT, $T = JT, eE = C(({ className: t, sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ N(YT, { children: /* @__PURE__ */ N(XT, {
14417
+ var tE = kT, nE = NT, rE = FT, iE = zT, aE = VT, oE = tE, sE = nE, cE = rE, lE = C(({ className: t, sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ N(iE, { children: /* @__PURE__ */ N(aE, {
14270
14418
  ref: i,
14271
14419
  sideOffset: n,
14272
14420
  className: e("z-50 overflow-hidden rounded-[var(--apcrda-radius-sm)] bg-[var(--apcrda-color-foreground)] px-3 py-1.5 text-xs text-[var(--apcrda-color-surface)] shadow-[var(--apcrda-shadow-md)]", "animate-in fade-in-0 zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", t),
14273
14421
  ...r
14274
14422
  }) }));
14275
- eE.displayName = "TooltipContent";
14276
- function tE({ children: e, content: t, disabled: n, side: r, align: i, delayDuration: a, ...o }) {
14277
- return n ? /* @__PURE__ */ N(M, { children: e }) : /* @__PURE__ */ P(QT, {
14423
+ lE.displayName = "TooltipContent";
14424
+ function uE({ children: e, content: t, disabled: n, side: r, align: i, delayDuration: a, ...o }) {
14425
+ return n ? /* @__PURE__ */ N(M, { children: e }) : /* @__PURE__ */ P(sE, {
14278
14426
  delayDuration: a,
14279
14427
  ...o,
14280
- children: [/* @__PURE__ */ N($T, {
14428
+ children: [/* @__PURE__ */ N(cE, {
14281
14429
  asChild: !0,
14282
14430
  children: e
14283
- }), /* @__PURE__ */ N(eE, {
14431
+ }), /* @__PURE__ */ N(lE, {
14284
14432
  side: r,
14285
14433
  align: i,
14286
14434
  children: t
14287
14435
  })]
14288
14436
  });
14289
14437
  }
14290
- tE.displayName = "Tooltip";
14438
+ uE.displayName = "Tooltip";
14291
14439
  //#endregion
14292
14440
  //#region src/hooks/useMediaQuery.ts
14293
- function nE(e) {
14441
+ function dE(e) {
14294
14442
  let [t, n] = j(() => typeof window > "u" ? !1 : window.matchMedia(e).matches);
14295
14443
  return E(() => {
14296
14444
  if (typeof window > "u") return;
@@ -14301,4 +14449,4 @@ function nE(e) {
14301
14449
  }, [e]), t;
14302
14450
  }
14303
14451
  //#endregion
14304
- export { ln as Accordion, fn as AccordionContent, un as AccordionItem, dn as AccordionTrigger, yn as Alert, ja as AlertDialog, Xc as Autocomplete, pl as Avatar, hl as AvatarFallback, ml as AvatarImage, _l as Badge, vl as Breadcrumb, wl as BreadcrumbEllipsis, bl as BreadcrumbItem, xl as BreadcrumbLink, yl as BreadcrumbList, Sl as BreadcrumbPage, Cl as BreadcrumbSeparator, El as Button, Up as Calendar, Vm as Card, Gm as CardContent, Wm as CardDescription, Km as CardFooter, Hm as CardHeader, Um as CardTitle, dh as Checkbox, fh as Combobox, zm as CommandPalette, fv as ContextMenu, LC as DataTable, pv as DatePicker, mv as DateRangePicker, hv as Dialog, Cv as DialogBody, _v as DialogClose, xv as DialogContent, Ev as DialogDescription, wv as DialogFooter, Sv as DialogHeader, yv as DialogOverlay, vv as DialogPortal, Tv as DialogTitle, gv as DialogTrigger, Ov as Divider, kv as Drawer, jv as DrawerClose, Lv as DrawerContent, Vv as DrawerDescription, zv as DrawerFooter, Rv as DrawerHeader, Nv as DrawerOverlay, Mv as DrawerPortal, Bv as DrawerTitle, Av as DrawerTrigger, Hv as FileUpload, Jv as FormField, Xv as Input, qv as Label, Zv as MultiSelect, ty as NotificationCenter, $v as NotificationItem, ey as NotificationPanel, iy as Pagination, ay as Popover, cy as PopoverAnchor, sy as PopoverClose, ly as PopoverContent, oy as PopoverTrigger, Wy as RadioGroup, Ky as RadioGroupItem, _x as Select, Cx as SelectContent, vx as SelectGroup, Tx as SelectItem, wx as SelectLabel, Sx as SelectScrollDownButton, xx as SelectScrollUpButton, Ex as SelectSeparator, bx as SelectTrigger, yx as SelectValue, jx as Sidebar, Ax as SidebarContent, Dx as SidebarContext, kx as SidebarItem, Mx as StatCard, Lx as Stepper, tS as Switch, kC as Table, jC as TableBody, IC as TableCaption, FC as TableCell, MC as TableFooter, PC as TableHead, AC as TableHeader, NC as TableRow, rw as Tabs, ow as TabsContent, iw as TabsList, aw as TabsTrigger, cw as Textarea, u as ThemeProvider, dT as Toaster, tE as Tooltip, eE as TooltipContent, ZT as TooltipProvider, QT as TooltipRoot, $T as TooltipTrigger, sT as addToast, fl as avatarVariants, gl as badgeVariants, Tl as buttonVariants, Bm as cardVariants, uh as checkboxVariants, e as cn, f as colors, a as createDataState, c as darkTheme, Dv as dividerVariants, s as getInitialTheme, r as getThemeAttribute, Yv as inputVariants, i as isThemeName, d as lightTheme, n as mergeClasses, g as motion, Gy as radioGroupItemVariants, p as radius, cT as removeToast, o as setThemeAttribute, m as shadows, h as spacing, _ as spacingPixels, $x as switchVariants, sw as textareaVariants, v as typography, nE as useMediaQuery, Ox as useSidebar, l as useTheme, lT as useToast };
14452
+ export { ln as Accordion, fn as AccordionContent, un as AccordionItem, dn as AccordionTrigger, yn as Alert, ja as AlertDialog, Xc as Autocomplete, pl as Avatar, hl as AvatarFallback, ml as AvatarImage, _l as Badge, vl as Breadcrumb, wl as BreadcrumbEllipsis, bl as BreadcrumbItem, xl as BreadcrumbLink, yl as BreadcrumbList, Sl as BreadcrumbPage, Cl as BreadcrumbSeparator, El as Button, Up as Calendar, Vm as Card, Gm as CardContent, Wm as CardDescription, Km as CardFooter, Hm as CardHeader, Um as CardTitle, dh as Checkbox, fh as Combobox, zm as CommandPalette, fv as ContextMenu, KC as DataTable, pv as DatePicker, mv as DateRangePicker, hv as Dialog, Cv as DialogBody, _v as DialogClose, xv as DialogContent, Ev as DialogDescription, wv as DialogFooter, Sv as DialogHeader, yv as DialogOverlay, vv as DialogPortal, Tv as DialogTitle, gv as DialogTrigger, Ov as Divider, kv as Drawer, jv as DrawerClose, Lv as DrawerContent, Vv as DrawerDescription, zv as DrawerFooter, Rv as DrawerHeader, Nv as DrawerOverlay, Mv as DrawerPortal, Bv as DrawerTitle, Av as DrawerTrigger, Hv as EmptyState, Uv as FileUpload, Yv as FormField, Zv as Input, Jv as Label, Qv as MultiSelect, ny as NotificationCenter, ey as NotificationItem, ty as NotificationPanel, ay as Pagination, oy as Popover, ly as PopoverAnchor, cy as PopoverClose, uy as PopoverContent, sy as PopoverTrigger, py as Progress, Jy as RadioGroup, Xy as RadioGroupItem, xx as Select, Dx as SelectContent, Sx as SelectGroup, kx as SelectItem, Ox as SelectLabel, Ex as SelectScrollDownButton, Tx as SelectScrollUpButton, Ax as SelectSeparator, wx as SelectTrigger, Cx as SelectValue, Fx as Sidebar, Px as SidebarContent, jx as SidebarContext, Nx as SidebarItem, Lx as Skeleton, zx as SkeletonAvatar, Bx as SkeletonCard, Rx as SkeletonText, Vx as StatCard, Kx as Stepper, uS as Switch, RC as Table, BC as TableBody, GC as TableCaption, WC as TableCell, VC as TableFooter, UC as TableHead, zC as TableHeader, HC as TableRow, fw as Tabs, hw as TabsContent, pw as TabsList, mw as TabsTrigger, _w as Textarea, u as ThemeProvider, bT as Toaster, uE as Tooltip, lE as TooltipContent, oE as TooltipProvider, sE as TooltipRoot, cE as TooltipTrigger, gT as addToast, fl as avatarVariants, gl as badgeVariants, Tl as buttonVariants, Bm as cardVariants, uh as checkboxVariants, e as cn, f as colors, a as createDataState, c as darkTheme, Dv as dividerVariants, s as getInitialTheme, r as getThemeAttribute, Xv as inputVariants, i as isThemeName, d as lightTheme, n as mergeClasses, g as motion, Yy as radioGroupItemVariants, p as radius, _T as removeToast, o as setThemeAttribute, m as shadows, h as spacing, _ as spacingPixels, cS as switchVariants, gw as textareaVariants, v as typography, dE as useMediaQuery, Mx as useSidebar, l as useTheme, vT as useToast };