dts-universal-report-module 1.0.12 → 1.0.13

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.esm.js CHANGED
@@ -1,12 +1,12 @@
1
1
  var vl = Object.defineProperty;
2
2
  var Sl = (e, t, n) => t in e ? vl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var _n = (e, t, n) => Sl(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var $n = (e, t, n) => Sl(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as r, jsxs as d, Fragment as Ke } from "react/jsx-runtime";
5
5
  import * as wo from "react";
6
6
  import { createContext as Ba, useContext as ja, useMemo as he, useState as V, useCallback as L, useRef as Fe, useEffect as Ce, memo as Ha, Component as wl } from "react";
7
7
  import * as Qn from "xlsx";
8
- import { InfoOutlined as fr, ChevronRight as Yn, Add as cn, Close as De, Description as Ua, Api as Fi, CheckCircle as Ho, Info as Ya, CloudUpload as Cl, Lock as Ga, ErrorOutline as Co, UploadFile as kl, Upload as zl, Star as _r, StarBorder as Hn, Delete as Ut, Search as El, Visibility as dn, Settings as mo, Warning as Rr, Check as Il, RadioButtonUnchecked as Tl, Undo as pi, ArrowUpward as ko, ArrowDownward as zo, FilterList as ln, FilterListOff as Dl, GroupWorkOutlined as Ol, VisibilityOff as qa, TableRows as Ja, RestartAlt as Ka, Download as un, SwapVert as mi, KeyboardArrowDown as Eo, MoreVert as Xa, Edit as Gn, ContentCopy as Za, FirstPage as _l, ChevronLeft as $l, LastPage as Al, VisibilityOutlined as Bi, TextFields as Qa, DataObject as es, DataArray as ts, CheckBox as rs, Numbers as ns, WarningAmberRounded as Rl, DeleteForever as Ml, EditOutlined as ji, SaveOutlined as Wl, DisplaySettings as Pl, ViewColumn as fi, GridView as os, Layers as hi, History as Nl, Schedule as ai, Language as Uo, Save as gi, DragIndicator as Ll, KeyboardArrowUp as Vl, Straighten as Fl, UnfoldMore as Bl, DeleteSweepOutlined as Hi, AccessTime as Ui, Person as jl, WarningAmberOutlined as xi, Email as yi, Share as is, Link as Hl, SplitscreenOutlined as Ul, Cancel as Yl, Refresh as Gl, NotificationsActive as ql, ArrowBack as Jl, Pause as Kl, PlayArrow as Xl } from "@mui/icons-material";
9
- import { Box as u, Breadcrumbs as Zl, Typography as w, Tooltip as We, Button as re, Dialog as lt, DialogTitle as Yt, IconButton as ne, DialogContent as ct, TextField as rt, Tabs as bi, Tab as on, InputAdornment as si, CircularProgress as vi, DialogActions as dt, Paper as Ze, Alert as Rt, AlertTitle as Io, TableContainer as Ql, Table as fo, TableHead as Si, TableRow as ir, TableCell as Be, TableBody as wi, Chip as je, Divider as Xe, MenuList as Yo, MenuItem as xe, ListItemIcon as Ir, ListItemText as Tr, Menu as as, Popover as ho, Select as At, InputBase as ec, Stack as nn, Switch as tc, FormControl as kt, InputLabel as an, FormControlLabel as ht, Checkbox as Nn, FormLabel as Go, RadioGroup as so, Radio as nr, Collapse as rc, Slider as $n, FormGroup as qo, Snackbar as nc } from "@mui/material";
8
+ import { InfoOutlined as fr, ChevronRight as Yn, Add as cn, Close as De, Description as Ua, Api as Fi, CheckCircle as Ho, Info as Ya, CloudUpload as Cl, Lock as Ga, ErrorOutline as Co, UploadFile as kl, Upload as zl, Star as $r, StarBorder as Hn, Delete as Ut, Search as El, Visibility as dn, Settings as mo, Warning as Rr, Check as Il, RadioButtonUnchecked as Tl, Undo as pi, ArrowUpward as ko, ArrowDownward as zo, FilterList as ln, FilterListOff as Dl, GroupWorkOutlined as Ol, VisibilityOff as qa, TableRows as Ja, RestartAlt as Ka, Download as un, SwapVert as mi, KeyboardArrowDown as Eo, MoreVert as Xa, Edit as Gn, ContentCopy as Za, FirstPage as $l, ChevronLeft as _l, LastPage as Al, VisibilityOutlined as Bi, TextFields as Qa, DataObject as es, DataArray as ts, CheckBox as rs, Numbers as ns, WarningAmberRounded as Rl, DeleteForever as Ml, EditOutlined as ji, SaveOutlined as Wl, DisplaySettings as Pl, ViewColumn as fi, GridView as os, Layers as hi, History as Nl, Schedule as ai, Language as Uo, Save as gi, DragIndicator as Ll, KeyboardArrowUp as Vl, Straighten as Fl, UnfoldMore as Bl, DeleteSweepOutlined as Hi, AccessTime as Ui, Person as jl, WarningAmberOutlined as xi, Email as yi, Share as is, Link as Hl, SplitscreenOutlined as Ul, Cancel as Yl, Refresh as Gl, NotificationsActive as ql, ArrowBack as Jl, Pause as Kl, PlayArrow as Xl } from "@mui/icons-material";
9
+ import { Box as u, Breadcrumbs as Zl, Typography as w, Tooltip as We, Button as re, Dialog as lt, DialogTitle as Yt, IconButton as ne, DialogContent as ct, TextField as nt, Tabs as bi, Tab as on, InputAdornment as si, CircularProgress as vi, DialogActions as dt, Paper as Ze, Alert as Rt, AlertTitle as Io, TableContainer as Ql, Table as fo, TableHead as Si, TableRow as ir, TableCell as Be, TableBody as wi, Chip as je, Divider as Xe, MenuList as Yo, MenuItem as xe, ListItemIcon as Ir, ListItemText as Tr, Menu as as, Popover as ho, Select as At, InputBase as ec, Stack as nn, Switch as tc, FormControl as kt, InputLabel as an, FormControlLabel as ht, Checkbox as Nn, FormLabel as Go, RadioGroup as so, Radio as nr, Collapse as rc, Slider as _n, FormGroup as qo, Snackbar as nc } from "@mui/material";
10
10
  import { createPortal as ss } from "react-dom";
11
11
  import { ThemeContext as oc } from "@emotion/react";
12
12
  import { useDrop as Ci, useDrag as ki, DndProvider as zi } from "react-dnd";
@@ -373,7 +373,7 @@ function ps(e, t, n = []) {
373
373
  n.push(o);
374
374
  return n;
375
375
  }
376
- function _c(e, t) {
376
+ function $c(e, t) {
377
377
  const n = e.collapsedGroups || [], o = n.includes(t) ? n.filter((a) => a !== t) : [...n, t];
378
378
  return {
379
379
  ...e,
@@ -428,7 +428,7 @@ function Jo(e) {
428
428
  }
429
429
  };
430
430
  }
431
- function $c(e, t, n, o, a, l, c, s) {
431
+ function _c(e, t, n, o, a, l, c, s) {
432
432
  const p = {}, m = [], h = {};
433
433
  n.forEach((y) => {
434
434
  p[y.name] = !0, m.push(y.name), h[y.name] = 170;
@@ -586,7 +586,7 @@ function qi() {
586
586
  function Ji(e) {
587
587
  return `[${e}]`;
588
588
  }
589
- const $r = {
589
+ const _r = {
590
590
  warn(e, t, ...n) {
591
591
  qi() && console.warn(Ji(e), t, ...n);
592
592
  },
@@ -599,7 +599,7 @@ function Wc(e, t) {
599
599
  const n = `${gs}${e}`;
600
600
  localStorage.setItem(n, JSON.stringify(t));
601
601
  } catch (n) {
602
- $r.error("urm:persistence", "Failed to save report state", n);
602
+ _r.error("urm:persistence", "Failed to save report state", n);
603
603
  }
604
604
  }
605
605
  function Pc(e) {
@@ -607,7 +607,7 @@ function Pc(e) {
607
607
  const t = `${gs}${e}`, n = localStorage.getItem(t);
608
608
  return n ? JSON.parse(n) : null;
609
609
  } catch (t) {
610
- return $r.error("urm:persistence", "Failed to load report state", t), null;
610
+ return _r.error("urm:persistence", "Failed to load report state", t), null;
611
611
  }
612
612
  }
613
613
  function To(e, t, n = 0) {
@@ -1151,8 +1151,8 @@ function sd(e, t) {
1151
1151
  }
1152
1152
  class eo {
1153
1153
  constructor(t = ad.MAX_CACHE_ENTRIES) {
1154
- _n(this, "cache", /* @__PURE__ */ new Map());
1155
- _n(this, "maxEntries");
1154
+ $n(this, "cache", /* @__PURE__ */ new Map());
1155
+ $n(this, "maxEntries");
1156
1156
  this.maxEntries = t;
1157
1157
  }
1158
1158
  get(t) {
@@ -1185,7 +1185,7 @@ class eo {
1185
1185
  }
1186
1186
  class ld {
1187
1187
  constructor() {
1188
- _n(this, "metrics", /* @__PURE__ */ new Map());
1188
+ $n(this, "metrics", /* @__PURE__ */ new Map());
1189
1189
  }
1190
1190
  start(t) {
1191
1191
  this.metrics.set(t, performance.now());
@@ -1216,7 +1216,7 @@ function or(e, t, n, o) {
1216
1216
  timestamp: Date.now(),
1217
1217
  recoverable: cd(e, t)
1218
1218
  };
1219
- return process.env.NODE_ENV === "development" && $r.error("urm:error-handling", "[Report Error]", {
1219
+ return process.env.NODE_ENV === "development" && _r.error("urm:error-handling", "[Report Error]", {
1220
1220
  type: e,
1221
1221
  context: t,
1222
1222
  message: a,
@@ -1643,49 +1643,49 @@ function Od(e = {}) {
1643
1643
  message: "",
1644
1644
  severity: "info",
1645
1645
  open: !1
1646
- }), x = (k, _ = "info") => {
1647
- T({ message: k, severity: _, open: !0 });
1646
+ }), x = (k, $ = "info") => {
1647
+ T({ message: k, severity: $, open: !0 });
1648
1648
  }, z = () => T((k) => ({ ...k, open: !1 })), i = p.find((k) => k.id === b), [R, I] = V("idle"), [P, K] = V(!1), [Q, ie] = V(!1), [g, M] = V(!1), [N, U] = V(!1), [ee, be] = V(!1), [ve, H] = V(!1), [A, Y] = V(void 0), [le, X] = V(null), [oe, pe] = V(null), [ce, F] = V(!1), [de, me] = V(!1), [ue, ke] = V(null), [Z, Ge] = V(!1), [ut, Et] = V(!1), [Nr, pn] = V({
1649
1649
  enabled: !1,
1650
1650
  levels: [],
1651
1651
  collapsedGroups: []
1652
- }), [gr, Mt] = V(""), [it, Ne] = V(/* @__PURE__ */ new Set()), [lr, Gt] = V(null), [bt, st] = V(1), [vt, Lr] = V(15), [St, It] = V(!1), [Qe, Vr] = V(!1), [mn, xr] = V(!1), [Wt, qt] = V(null), [Fr, Jt] = V(!1), [Xn, Br] = V(null), [fn, Kt] = V(
1652
+ }), [gr, Mt] = V(""), [it, Ne] = V(/* @__PURE__ */ new Set()), [lr, Gt] = V(null), [bt, st] = V(1), [vt, Lr] = V(15), [St, It] = V(!1), [et, Vr] = V(!1), [mn, xr] = V(!1), [Wt, qt] = V(null), [Fr, Jt] = V(!1), [Xn, Br] = V(null), [fn, Kt] = V(
1653
1653
  null
1654
1654
  );
1655
1655
  Fe(new ld()), Fe(new eo()), Fe(new eo()), Fe(new eo()), Fe(new eo());
1656
1656
  const [Tt, hn] = V(null), yr = Fe(null), Oe = he(() => i ? Hc(i.permissions, Bt) : "owner", [i]), gn = Uc(Oe), jr = he(() => !(i != null && i.uploadedData) || !(i != null && i.schema) ? { totalRows: 0, totalColumns: 0 } : id(i.uploadedData, i.schema), [i == null ? void 0 : i.uploadedData, i == null ? void 0 : i.schema]), Dt = L(() => {
1657
1657
  i && (yr.current = ud(i));
1658
- }, [i]), j = L((k, _) => {
1658
+ }, [i]), j = L((k, $) => {
1659
1659
  m(
1660
- (W) => W.map(($) => $.id === k ? { ...$, ..._ } : $)
1660
+ (W) => W.map((_) => _.id === k ? { ..._, ...$ } : _)
1661
1661
  );
1662
1662
  }, []), pt = L(
1663
1663
  (k) => {
1664
1664
  if (!i) return;
1665
1665
  hn(k);
1666
- const _ = ta(
1666
+ const $ = ta(
1667
1667
  i.id,
1668
1668
  Bt,
1669
1669
  k,
1670
1670
  i.auditHistory || []
1671
1671
  );
1672
1672
  j(i.id, {
1673
- auditHistory: _
1673
+ auditHistory: $
1674
1674
  }), x(k.message, "error"), k.recoverable && yr.current && setTimeout(() => {
1675
1675
  pd(i, yr.current, j), x("Previous state restored", "success");
1676
1676
  }, 100);
1677
1677
  },
1678
1678
  [i, j]
1679
- ), _e = L(
1680
- (k, _, W, $) => {
1679
+ ), $e = L(
1680
+ (k, $, W, _) => {
1681
1681
  if (!i) return;
1682
1682
  const J = ys(
1683
1683
  i.id,
1684
1684
  Bt,
1685
1685
  k,
1686
- _,
1686
+ $,
1687
1687
  W,
1688
- $
1688
+ _
1689
1689
  ), G = i.auditHistory || [], se = bs(G, J);
1690
1690
  setTimeout(() => {
1691
1691
  j(i.id, {
@@ -1700,8 +1700,8 @@ function Od(e = {}) {
1700
1700
  const k = Jo(i.schema);
1701
1701
  (() => {
1702
1702
  try {
1703
- const _ = localStorage.getItem("urm_dev_config");
1704
- return _ ? JSON.parse(_) : null;
1703
+ const $ = localStorage.getItem("urm_dev_config");
1704
+ return $ ? JSON.parse($) : null;
1705
1705
  } catch {
1706
1706
  return null;
1707
1707
  }
@@ -1718,7 +1718,7 @@ function Od(e = {}) {
1718
1718
  }
1719
1719
  }, [i == null ? void 0 : i.schemaLocked, i == null ? void 0 : i.schema, i == null ? void 0 : i.id, j]), Ce(() => {
1720
1720
  if (o && n && !v && p.length === 0) {
1721
- const k = lo(o), _ = {
1721
+ const k = lo(o), $ = {
1722
1722
  id: `auto-report-${Date.now()}`,
1723
1723
  name: l || (t === "viewer" ? "Data View" : "Imported Data"),
1724
1724
  description: "Auto-generated from external data",
@@ -1731,30 +1731,30 @@ function Od(e = {}) {
1731
1731
  viewers: []
1732
1732
  }
1733
1733
  };
1734
- m([_]), f(_.id), C(!0), I("confirmed");
1734
+ m([$]), f($.id), C(!0), I("confirmed");
1735
1735
  }
1736
1736
  }, [o, n, v, p.length, t, l]), Ce(() => {
1737
1737
  if (!a || v) return;
1738
- let k = !1, _ = null;
1738
+ let k = !1, $ = null;
1739
1739
  const W = async () => {
1740
1740
  try {
1741
1741
  I("uploading");
1742
- let $;
1742
+ let _;
1743
1743
  if (a.type === "api") {
1744
1744
  const G = await fetch(a.url, {
1745
1745
  headers: a.headers || {}
1746
1746
  });
1747
1747
  if (!G.ok) throw new Error(`HTTP ${G.status}: ${G.statusText}`);
1748
- $ = await G.json();
1748
+ _ = await G.json();
1749
1749
  } else
1750
- $ = await a.fetch();
1750
+ _ = await a.fetch();
1751
1751
  if (k) return;
1752
- if (!Array.isArray($))
1752
+ if (!Array.isArray(_))
1753
1753
  throw new Error("Data source must return an array of objects");
1754
- const J = An($);
1754
+ const J = An(_);
1755
1755
  if (v)
1756
1756
  m(
1757
- (G) => G.map((se) => se.id === b ? { ...se, uploadedData: $ } : se)
1757
+ (G) => G.map((se) => se.id === b ? { ...se, uploadedData: _ } : se)
1758
1758
  ), I("confirmed");
1759
1759
  else {
1760
1760
  const G = {
@@ -1762,8 +1762,8 @@ function Od(e = {}) {
1762
1762
  name: l || (t === "viewer" ? "Data View" : "Imported Data"),
1763
1763
  description: `Loaded from ${a.type === "api" ? a.url : "callback"}`,
1764
1764
  schemaLocked: !0,
1765
- uploadedData: lo($),
1766
- schema: An(lo($)),
1765
+ uploadedData: lo(_),
1766
+ schema: An(lo(_)),
1767
1767
  permissions: {
1768
1768
  owner: Bt,
1769
1769
  editors: [],
@@ -1772,32 +1772,32 @@ function Od(e = {}) {
1772
1772
  };
1773
1773
  m([G]), f(G.id), C(!0), I("confirmed");
1774
1774
  }
1775
- } catch ($) {
1775
+ } catch (_) {
1776
1776
  k || (I("error"), i && j(i.id, {
1777
- uploadError: ($ == null ? void 0 : $.message) || "Failed to load data from source"
1777
+ uploadError: (_ == null ? void 0 : _.message) || "Failed to load data from source"
1778
1778
  }));
1779
1779
  }
1780
1780
  };
1781
- return W(), a.refreshInterval && a.refreshInterval > 0 && (_ = setInterval(W, a.refreshInterval)), () => {
1782
- k = !0, _ && clearInterval(_);
1781
+ return W(), a.refreshInterval && a.refreshInterval > 0 && ($ = setInterval(W, a.refreshInterval)), () => {
1782
+ k = !0, $ && clearInterval($);
1783
1783
  };
1784
1784
  }, [a, l, t]);
1785
1785
  const at = (Wi = i == null ? void 0 : i.views) == null ? void 0 : Wi.find(
1786
1786
  (k) => k.id === i.activeViewId
1787
1787
  ), xn = he(() => i != null && i.uploadedData ? (i.uploadedData.forEach(Dd), i.showFavoritesOnly ? !i.favoriteRowIndices || i.favoriteRowIndices.length === 0 ? [] : i.uploadedData.filter(
1788
- (k, _) => i.favoriteRowIndices.includes(_)
1788
+ (k, $) => i.favoriteRowIndices.includes($)
1789
1789
  ) : i.uploadedData) : [], [
1790
1790
  i == null ? void 0 : i.uploadedData,
1791
1791
  i == null ? void 0 : i.showFavoritesOnly,
1792
1792
  i == null ? void 0 : i.favoriteRowIndices
1793
1793
  ]), br = he(() => {
1794
- var _;
1795
- if (!(i != null && i.uploadedData) || !((_ = i == null ? void 0 : i.favoriteRowIndices) != null && _.length))
1794
+ var $;
1795
+ if (!(i != null && i.uploadedData) || !(($ = i == null ? void 0 : i.favoriteRowIndices) != null && $.length))
1796
1796
  return /* @__PURE__ */ new Set();
1797
1797
  const k = /* @__PURE__ */ new Set();
1798
1798
  return i.favoriteRowIndices.forEach((W) => {
1799
- const $ = i.uploadedData[W];
1800
- $ !== void 0 && k.add($);
1799
+ const _ = i.uploadedData[W];
1800
+ _ !== void 0 && k.add(_);
1801
1801
  }), k;
1802
1802
  }, [
1803
1803
  i == null ? void 0 : i.uploadedData,
@@ -1830,13 +1830,13 @@ function Od(e = {}) {
1830
1830
  } = Xt || {}, te = ((Pi = Xt.viewEngine) == null ? void 0 : Pi.activeView) || at, Zt = ((Ni = Xt.viewEngine) == null ? void 0 : Ni.isDirty) || !1;
1831
1831
  Ce(() => {
1832
1832
  if (!(!te || !i) && !i.columnOrder) {
1833
- const k = te.snapshot.columnOrder, _ = Ln(k, te.snapshot.grouping);
1833
+ const k = te.snapshot.columnOrder, $ = Ln(k, te.snapshot.grouping);
1834
1834
  j(i.id, {
1835
- columnOrder: _
1835
+ columnOrder: $
1836
1836
  });
1837
1837
  }
1838
1838
  }, [i == null ? void 0 : i.activeViewId]);
1839
- const $e = he(() => !(i != null && i.schema) || !te ? null : $c(
1839
+ const _e = he(() => !(i != null && i.schema) || !te ? null : _c(
1840
1840
  i.filters || [],
1841
1841
  i.sortStack || [],
1842
1842
  i.schema,
@@ -1854,11 +1854,11 @@ function Od(e = {}) {
1854
1854
  i == null ? void 0 : i.columnWidths,
1855
1855
  i == null ? void 0 : i.grouping,
1856
1856
  te
1857
- ]), Ae = he(() => !te || !$e || !Zt ? [] : Mc($e, te.snapshot), [te, $e, Zt]), Ot = L((k, _, W) => {
1858
- const $ = {
1857
+ ]), Ae = he(() => !te || !_e || !Zt ? [] : Mc(_e, te.snapshot), [te, _e, Zt]), Ot = L((k, $, W) => {
1858
+ const _ = {
1859
1859
  id: `report-${Date.now()}`,
1860
1860
  name: k,
1861
- description: _,
1861
+ description: $,
1862
1862
  schemaLocked: !1,
1863
1863
  permissions: {
1864
1864
  owner: Bt,
@@ -1868,16 +1868,16 @@ function Od(e = {}) {
1868
1868
  };
1869
1869
  if (W && Array.isArray(W) && W.length > 0) {
1870
1870
  const J = An(W), G = Jo(J);
1871
- $.uploadedData = W, $.schema = J, $.schemaLocked = !0, $.views = [G], $.activeViewId = G.id, $.sortStack = G.snapshot.sortStack, $.filters = G.snapshot.filters, $.columnVisibility = G.snapshot.columnVisibility, $.columnOrder = G.snapshot.columnOrder, $.columnWidths = G.snapshot.columnWidths, $.grouping = G.snapshot.grouping;
1871
+ _.uploadedData = W, _.schema = J, _.schemaLocked = !0, _.views = [G], _.activeViewId = G.id, _.sortStack = G.snapshot.sortStack, _.filters = G.snapshot.filters, _.columnVisibility = G.snapshot.columnVisibility, _.columnOrder = G.snapshot.columnOrder, _.columnWidths = G.snapshot.columnWidths, _.grouping = G.snapshot.grouping;
1872
1872
  }
1873
- m((J) => [...J, $]), f($.id), D(!1), I("confirmed");
1873
+ m((J) => [...J, _]), f(_.id), D(!1), I("confirmed");
1874
1874
  }, []), Hr = L(
1875
1875
  (k) => {
1876
1876
  i && (I("uploading"), setTimeout(() => {
1877
- const _ = An(k);
1877
+ const $ = An(k);
1878
1878
  j(i.id, {
1879
1879
  uploadedData: k,
1880
- schema: _,
1880
+ schema: $,
1881
1881
  uploadError: void 0
1882
1882
  }), I("preview");
1883
1883
  }, 500));
@@ -1907,16 +1907,16 @@ function Od(e = {}) {
1907
1907
  x(Ft("edit_sorting"), "error");
1908
1908
  return;
1909
1909
  }
1910
- const _ = i.sortStack ?? [], W = _.find(($) => $.column === k);
1910
+ const $ = i.sortStack ?? [], W = $.find((_) => _.column === k);
1911
1911
  if (W) {
1912
- const $ = Ec(W.direction);
1913
- if ($ === null) {
1914
- const J = _.filter((G) => G.column !== k).map((G, se) => ({ ...G, priority: se + 1 }));
1912
+ const _ = Ec(W.direction);
1913
+ if (_ === null) {
1914
+ const J = $.filter((G) => G.column !== k).map((G, se) => ({ ...G, priority: se + 1 }));
1915
1915
  j(i.id, {
1916
1916
  sortStack: J.length > 0 ? J : void 0
1917
1917
  });
1918
1918
  } else {
1919
- const J = $, G = _.map(
1919
+ const J = _, G = $.map(
1920
1920
  (se) => se.column === k ? { ...se, direction: J } : se
1921
1921
  );
1922
1922
  j(i.id, {
@@ -1924,20 +1924,20 @@ function Od(e = {}) {
1924
1924
  });
1925
1925
  }
1926
1926
  } else {
1927
- if (_.length >= h.sort.maxLevels) {
1927
+ if ($.length >= h.sort.maxLevels) {
1928
1928
  x(
1929
1929
  `Sort limit reached — maximum ${h.sort.maxLevels} sort levels allowed. Remove an existing sort to add a new one.`,
1930
1930
  "warning"
1931
1931
  );
1932
1932
  return;
1933
1933
  }
1934
- const $ = {
1934
+ const _ = {
1935
1935
  column: k,
1936
1936
  direction: "asc",
1937
- priority: _.length + 1
1937
+ priority: $.length + 1
1938
1938
  };
1939
1939
  j(i.id, {
1940
- sortStack: [..._, $]
1940
+ sortStack: [...$, _]
1941
1941
  });
1942
1942
  }
1943
1943
  },
@@ -1946,14 +1946,14 @@ function Od(e = {}) {
1946
1946
  (k) => {
1947
1947
  if (i)
1948
1948
  if (i.schema) {
1949
- const { validRules: _, invalidColumns: W } = vs(k, i.schema);
1949
+ const { validRules: $, invalidColumns: W } = vs(k, i.schema);
1950
1950
  W.length > 0 && x(`Removed invalid sort columns: ${W.join(", ")}`), Dt();
1951
1951
  try {
1952
1952
  j(i.id, {
1953
- sortStack: _.length > 0 ? _ : void 0
1953
+ sortStack: $.length > 0 ? $ : void 0
1954
1954
  });
1955
- } catch ($) {
1956
- const J = or("processing", "sorting", $);
1955
+ } catch (_) {
1956
+ const J = or("processing", "sorting", _);
1957
1957
  pt(J);
1958
1958
  }
1959
1959
  } else
@@ -1965,30 +1965,30 @@ function Od(e = {}) {
1965
1965
  ), Qt = L(
1966
1966
  (k) => {
1967
1967
  if (!i) return;
1968
- const _ = i.sortStack ?? [], W = _.find(($) => $.column === k);
1968
+ const $ = i.sortStack ?? [], W = $.find((_) => _.column === k);
1969
1969
  if (!(W && W.direction === "asc"))
1970
1970
  if (W) {
1971
- const $ = _.map(
1971
+ const _ = $.map(
1972
1972
  (J) => J.column === k ? { ...J, direction: "asc" } : J
1973
1973
  );
1974
1974
  j(i.id, {
1975
- sortStack: $
1975
+ sortStack: _
1976
1976
  });
1977
1977
  } else {
1978
- if (_.length >= h.sort.maxLevels) {
1978
+ if ($.length >= h.sort.maxLevels) {
1979
1979
  x(
1980
1980
  `Sort limit reached — maximum ${h.sort.maxLevels} sort levels allowed. Remove an existing sort to add a new one.`,
1981
1981
  "warning"
1982
1982
  );
1983
1983
  return;
1984
1984
  }
1985
- const $ = {
1985
+ const _ = {
1986
1986
  column: k,
1987
1987
  direction: "asc",
1988
- priority: _.length + 1
1988
+ priority: $.length + 1
1989
1989
  };
1990
1990
  j(i.id, {
1991
- sortStack: [..._, $]
1991
+ sortStack: [...$, _]
1992
1992
  });
1993
1993
  }
1994
1994
  },
@@ -1996,30 +1996,30 @@ function Od(e = {}) {
1996
1996
  ), bn = L(
1997
1997
  (k) => {
1998
1998
  if (!i) return;
1999
- const _ = i.sortStack ?? [], W = _.find(($) => $.column === k);
1999
+ const $ = i.sortStack ?? [], W = $.find((_) => _.column === k);
2000
2000
  if (!(W && W.direction === "desc"))
2001
2001
  if (W) {
2002
- const $ = _.map(
2002
+ const _ = $.map(
2003
2003
  (J) => J.column === k ? { ...J, direction: "desc" } : J
2004
2004
  );
2005
2005
  j(i.id, {
2006
- sortStack: $
2006
+ sortStack: _
2007
2007
  });
2008
2008
  } else {
2009
- if (_.length >= h.sort.maxLevels) {
2009
+ if ($.length >= h.sort.maxLevels) {
2010
2010
  x(
2011
2011
  `Sort limit reached — maximum ${h.sort.maxLevels} sort levels allowed. Remove an existing sort to add a new one.`,
2012
2012
  "warning"
2013
2013
  );
2014
2014
  return;
2015
2015
  }
2016
- const $ = {
2016
+ const _ = {
2017
2017
  column: k,
2018
2018
  direction: "desc",
2019
- priority: _.length + 1
2019
+ priority: $.length + 1
2020
2020
  };
2021
2021
  j(i.id, {
2022
- sortStack: [..._, $]
2022
+ sortStack: [...$, _]
2023
2023
  });
2024
2024
  }
2025
2025
  },
@@ -2032,39 +2032,39 @@ function Od(e = {}) {
2032
2032
  x(Ft("edit_filters"), "error");
2033
2033
  return;
2034
2034
  }
2035
- const _ = (W = i.schema) == null ? void 0 : W.find(($) => $.name === k.column);
2036
- if (_ && k.value !== void 0) {
2037
- const $ = md(_.type, k.operator, k.value);
2038
- if (!$.isValid) {
2039
- x($.errorMessage || "Invalid filter value", "error");
2035
+ const $ = (W = i.schema) == null ? void 0 : W.find((_) => _.name === k.column);
2036
+ if ($ && k.value !== void 0) {
2037
+ const _ = md($.type, k.operator, k.value);
2038
+ if (!_.isValid) {
2039
+ x(_.errorMessage || "Invalid filter value", "error");
2040
2040
  return;
2041
2041
  }
2042
2042
  }
2043
2043
  Dt();
2044
2044
  try {
2045
- const $ = i.filters ?? [];
2046
- _e("filters", "filter_added", $, [...$, k]), j(i.id, {
2047
- filters: [...$, k]
2045
+ const _ = i.filters ?? [];
2046
+ $e("filters", "filter_added", _, [..._, k]), j(i.id, {
2047
+ filters: [..._, k]
2048
2048
  });
2049
- } catch ($) {
2050
- const J = or("processing", "filters", $);
2049
+ } catch (_) {
2050
+ const J = or("processing", "filters", _);
2051
2051
  pt(J);
2052
2052
  }
2053
2053
  },
2054
- [i, Oe, j, Dt, pt, _e]
2054
+ [i, Oe, j, Dt, pt, $e]
2055
2055
  ), Cr = L(
2056
- (k, _) => {
2056
+ (k, $) => {
2057
2057
  if (!i) return;
2058
2058
  if (!Vt("edit_filters", Oe)) {
2059
2059
  x(Ft("edit_filters"), "error");
2060
2060
  return;
2061
2061
  }
2062
- const W = i.filters ?? [], $ = [...W];
2063
- _e("filters", "filter_updated", W[k], _), $[k] = _, j(i.id, {
2064
- filters: $
2062
+ const W = i.filters ?? [], _ = [...W];
2063
+ $e("filters", "filter_updated", W[k], $), _[k] = $, j(i.id, {
2064
+ filters: _
2065
2065
  });
2066
2066
  },
2067
- [i, Oe, j, _e]
2067
+ [i, Oe, j, $e]
2068
2068
  ), wt = L(
2069
2069
  (k) => {
2070
2070
  if (!i) return;
@@ -2072,58 +2072,58 @@ function Od(e = {}) {
2072
2072
  x(Ft("edit_filters"), "error");
2073
2073
  return;
2074
2074
  }
2075
- const _ = i.filters ?? [], W = _.filter(($, J) => J !== k);
2076
- _e("filters", "filter_removed", _[k], null), j(i.id, {
2075
+ const $ = i.filters ?? [], W = $.filter((_, J) => J !== k);
2076
+ $e("filters", "filter_removed", $[k], null), j(i.id, {
2077
2077
  filters: W.length > 0 ? W : void 0
2078
2078
  });
2079
2079
  },
2080
- [i, Oe, j, _e]
2081
- ), _t = L(() => {
2080
+ [i, Oe, j, $e]
2081
+ ), $t = L(() => {
2082
2082
  if (!i) return;
2083
2083
  if (!Vt("edit_filters", Oe)) {
2084
2084
  x(Ft("edit_filters"), "error");
2085
2085
  return;
2086
2086
  }
2087
2087
  const k = i.filters ?? [];
2088
- _e("filters", "filter_cleared", k, null), j(i.id, {
2088
+ $e("filters", "filter_cleared", k, null), j(i.id, {
2089
2089
  filters: void 0
2090
2090
  });
2091
- }, [i, Oe, j, _e]), et = L(
2091
+ }, [i, Oe, j, $e]), tt = L(
2092
2092
  (k) => {
2093
2093
  if (!i) return;
2094
2094
  if (!Vt("edit_filters", Oe)) {
2095
2095
  x(Ft("edit_filters"), "error");
2096
2096
  return;
2097
2097
  }
2098
- const _ = i.filters ?? [];
2099
- _e("filters", "filter_cleared", _, k), j(i.id, {
2098
+ const $ = i.filters ?? [];
2099
+ $e("filters", "filter_cleared", $, k), j(i.id, {
2100
2100
  filters: k.length > 0 ? k : void 0
2101
2101
  });
2102
2102
  },
2103
- [i, Oe, j, _e]
2103
+ [i, Oe, j, $e]
2104
2104
  ), Nt = L(
2105
2105
  (k) => {
2106
2106
  var J;
2107
2107
  if (!i) return;
2108
- const _ = (J = i.views) == null ? void 0 : J.find((G) => G.id === k);
2109
- if (!_) return;
2110
- const W = _.snapshot.columnOrder, $ = Ln(W, _.snapshot.grouping);
2108
+ const $ = (J = i.views) == null ? void 0 : J.find((G) => G.id === k);
2109
+ if (!$) return;
2110
+ const W = $.snapshot.columnOrder, _ = Ln(W, $.snapshot.grouping);
2111
2111
  j(i.id, {
2112
- filters: _.snapshot.filters.length > 0 ? [..._.snapshot.filters] : void 0,
2113
- sortStack: _.snapshot.sortStack.length > 0 ? [..._.snapshot.sortStack] : void 0,
2114
- columnVisibility: { ..._.snapshot.columnVisibility },
2115
- columnOrder: $,
2116
- columnWidths: { ..._.snapshot.columnWidths },
2117
- grouping: _.snapshot.grouping,
2112
+ filters: $.snapshot.filters.length > 0 ? [...$.snapshot.filters] : void 0,
2113
+ sortStack: $.snapshot.sortStack.length > 0 ? [...$.snapshot.sortStack] : void 0,
2114
+ columnVisibility: { ...$.snapshot.columnVisibility },
2115
+ columnOrder: _,
2116
+ columnWidths: { ...$.snapshot.columnWidths },
2117
+ grouping: $.snapshot.grouping,
2118
2118
  activeViewId: k
2119
2119
  }), Ne(/* @__PURE__ */ new Set()), M(!1);
2120
2120
  },
2121
2121
  [i, j]
2122
2122
  ), qr = L(
2123
- (k, _, W) => {
2123
+ (k, $, W) => {
2124
2124
  var Er;
2125
- if (!(i != null && i.schema) || !$e) return;
2126
- const $ = i.views ?? [], J = $.filter((On) => !On.isDeleted).length, G = ((Er = h.views) == null ? void 0 : Er.maxViews) ?? 10;
2125
+ if (!(i != null && i.schema) || !_e) return;
2126
+ const _ = i.views ?? [], J = _.filter((On) => !On.isDeleted).length, G = ((Er = h.views) == null ? void 0 : Er.maxViews) ?? 10;
2127
2127
  if (J >= G) {
2128
2128
  x(
2129
2129
  `View limit reached — you can have at most ${G} saved views. Delete an existing view to create a new one.`,
@@ -2134,7 +2134,7 @@ function Od(e = {}) {
2134
2134
  const se = {
2135
2135
  id: `view-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
2136
2136
  name: k,
2137
- description: _ || void 0,
2137
+ description: $ || void 0,
2138
2138
  isDefault: W,
2139
2139
  isFavorite: !1,
2140
2140
  isDeleted: !1,
@@ -2142,73 +2142,73 @@ function Od(e = {}) {
2142
2142
  createdBy: Bt,
2143
2143
  createdAt: Date.now(),
2144
2144
  updatedAt: Date.now(),
2145
- snapshot: { ...$e }
2146
- }, we = W ? $.map((On) => ({ ...On, isDefault: !1 })) : $;
2145
+ snapshot: { ..._e }
2146
+ }, we = W ? _.map((On) => ({ ...On, isDefault: !1 })) : _;
2147
2147
  j(i.id, {
2148
2148
  views: [...we, se],
2149
2149
  activeViewId: se.id
2150
2150
  }), x(`"${k}" view created`, "success");
2151
2151
  },
2152
- [i, $e, j]
2152
+ [i, _e, j]
2153
2153
  ), Lt = L(() => {
2154
- var _;
2155
- if (!te || !$e || te.isDefault || !i) return;
2156
- const k = (_ = i.views) == null ? void 0 : _.map(
2157
- (W) => W.id === te.id ? { ...W, snapshot: { ...$e } } : W
2154
+ var $;
2155
+ if (!te || !_e || te.isDefault || !i) return;
2156
+ const k = ($ = i.views) == null ? void 0 : $.map(
2157
+ (W) => W.id === te.id ? { ...W, snapshot: { ..._e } } : W
2158
2158
  );
2159
2159
  j(i.id, {
2160
2160
  views: k
2161
2161
  }), x(`"${te.name}" view updated`, "success");
2162
- }, [te, $e, i, j]), vn = L(
2162
+ }, [te, _e, i, j]), vn = L(
2163
2163
  (k) => {
2164
- var $;
2165
- if (!te || !$e || !i) return;
2166
- const _ = k ?? $e.columnWidths, W = ($ = i.views) == null ? void 0 : $.map(
2164
+ var _;
2165
+ if (!te || !_e || !i) return;
2166
+ const $ = k ?? _e.columnWidths, W = (_ = i.views) == null ? void 0 : _.map(
2167
2167
  (J) => J.id === te.id ? {
2168
2168
  ...J,
2169
2169
  snapshot: {
2170
2170
  ...J.snapshot,
2171
- columnVisibility: $e.columnVisibility,
2172
- columnOrder: $e.columnOrder,
2173
- columnWidths: _
2171
+ columnVisibility: _e.columnVisibility,
2172
+ columnOrder: _e.columnOrder,
2173
+ columnWidths: $
2174
2174
  },
2175
2175
  updatedAt: Date.now()
2176
2176
  } : J
2177
2177
  );
2178
2178
  j(i.id, {
2179
2179
  views: W,
2180
- columnWidths: _
2180
+ columnWidths: $
2181
2181
  }), x(`Column configuration saved to "${te.name}"`, "success");
2182
2182
  },
2183
- [te, $e, i, j]
2183
+ [te, _e, i, j]
2184
2184
  ), Sn = L(
2185
2185
  (k) => {
2186
2186
  var G, se;
2187
- if (!$e || !i || !te) return;
2188
- const _ = k ?? $e.columnWidths, W = {
2187
+ if (!_e || !i || !te) return;
2188
+ const $ = k ?? _e.columnWidths, W = {
2189
2189
  ...te,
2190
2190
  snapshot: {
2191
2191
  ...te.snapshot,
2192
- columnVisibility: $e.columnVisibility,
2193
- columnOrder: $e.columnOrder,
2194
- columnWidths: _
2192
+ columnVisibility: _e.columnVisibility,
2193
+ columnOrder: _e.columnOrder,
2194
+ columnWidths: $
2195
2195
  },
2196
2196
  updatedAt: Date.now()
2197
- }, $ = (G = i.views) == null ? void 0 : G.map(
2197
+ }, _ = (G = i.views) == null ? void 0 : G.map(
2198
2198
  (we) => we.id === te.id ? W : {
2199
2199
  ...we,
2200
2200
  snapshot: {
2201
2201
  ...we.snapshot,
2202
- columnVisibility: $e.columnVisibility,
2203
- columnOrder: $e.columnOrder,
2204
- columnWidths: _
2202
+ columnVisibility: _e.columnVisibility,
2203
+ columnOrder: _e.columnOrder,
2204
+ columnWidths: $
2205
2205
  },
2206
2206
  updatedAt: Date.now()
2207
2207
  }
2208
2208
  );
2209
2209
  j(i.id, {
2210
- views: $,
2211
- columnWidths: _
2210
+ views: _,
2211
+ columnWidths: $
2212
2212
  });
2213
2213
  const J = (((se = i.views) == null ? void 0 : se.length) || 0) - 1;
2214
2214
  x(
@@ -2216,12 +2216,12 @@ function Od(e = {}) {
2216
2216
  "success"
2217
2217
  );
2218
2218
  },
2219
- [$e, i, te, j]
2219
+ [_e, i, te, j]
2220
2220
  ), wn = L(() => {
2221
2221
  U(!0);
2222
2222
  }, []), Cn = L(() => {
2223
2223
  if (!te || !i) return;
2224
- const k = te.snapshot.columnOrder, _ = Ln(
2224
+ const k = te.snapshot.columnOrder, $ = Ln(
2225
2225
  k,
2226
2226
  te.snapshot.grouping
2227
2227
  );
@@ -2229,48 +2229,48 @@ function Od(e = {}) {
2229
2229
  filters: te.snapshot.filters.length > 0 ? [...te.snapshot.filters] : void 0,
2230
2230
  sortStack: te.snapshot.sortStack.length > 0 ? [...te.snapshot.sortStack] : void 0,
2231
2231
  columnVisibility: { ...te.snapshot.columnVisibility },
2232
- columnOrder: _,
2232
+ columnOrder: $,
2233
2233
  columnWidths: { ...te.snapshot.columnWidths },
2234
2234
  grouping: te.snapshot.grouping
2235
2235
  }), x("Changes reverted to last saved state", "success");
2236
2236
  }, [te, i, j]), Jr = L(
2237
2237
  (k) => {
2238
2238
  if (!(i != null && i.views)) return;
2239
- const _ = i.views.map(($) => ({
2240
- ...$,
2241
- isDefault: $.id === k
2239
+ const $ = i.views.map((_) => ({
2240
+ ..._,
2241
+ isDefault: _.id === k
2242
2242
  }));
2243
2243
  j(i.id, {
2244
- views: _
2244
+ views: $
2245
2245
  });
2246
- const W = i.views.find(($) => $.id === k);
2246
+ const W = i.views.find((_) => _.id === k);
2247
2247
  W && x(`"${W.name}" set as default view`, "success");
2248
2248
  },
2249
2249
  [i, j]
2250
2250
  ), kn = L(
2251
2251
  (k) => {
2252
2252
  if (!(i != null && i.views)) return;
2253
- const _ = i.views.map(
2254
- ($) => $.id === k ? { ...$, isFavorite: !$.isFavorite, updatedAt: Date.now() } : $
2253
+ const $ = i.views.map(
2254
+ (_) => _.id === k ? { ..._, isFavorite: !_.isFavorite, updatedAt: Date.now() } : _
2255
2255
  );
2256
2256
  j(i.id, {
2257
- views: _
2257
+ views: $
2258
2258
  });
2259
- const W = i.views.find(($) => $.id === k);
2259
+ const W = i.views.find((_) => _.id === k);
2260
2260
  W && !W.isFavorite ? x(`"${W.name}" added to favorites`, "success") : W && x(`"${W.name}" removed from favorites`, "info");
2261
2261
  },
2262
2262
  [i, j]
2263
2263
  ), zn = L(
2264
2264
  (k) => {
2265
2265
  if (!(i != null && i.views)) return;
2266
- const _ = i.views.map(
2266
+ const $ = i.views.map(
2267
2267
  (G) => G.id === k ? { ...G, isDeleted: !0, updatedAt: Date.now() } : G
2268
- ), W = i.activeViewId === k, $ = _.find((G) => G.isDefault && !G.isDeleted);
2268
+ ), W = i.activeViewId === k, _ = $.find((G) => G.isDefault && !G.isDeleted);
2269
2269
  j(i.id, {
2270
- views: _,
2271
- activeViewId: W && $ ? $.id : i.activeViewId,
2272
- filters: W && $ ? $.snapshot.filters.length > 0 ? $.snapshot.filters : void 0 : i.filters,
2273
- sortStack: W && $ ? $.snapshot.sortStack.length > 0 ? $.snapshot.sortStack : void 0 : i.sortStack
2270
+ views: $,
2271
+ activeViewId: W && _ ? _.id : i.activeViewId,
2272
+ filters: W && _ ? _.snapshot.filters.length > 0 ? _.snapshot.filters : void 0 : i.filters,
2273
+ sortStack: W && _ ? _.snapshot.sortStack.length > 0 ? _.snapshot.sortStack : void 0 : i.sortStack
2274
2274
  });
2275
2275
  const J = i.views.find((G) => G.id === k);
2276
2276
  J && x(`"${J.name}" moved to Recently Deleted`, "info");
@@ -2279,21 +2279,21 @@ function Od(e = {}) {
2279
2279
  ), En = L(
2280
2280
  (k) => {
2281
2281
  if (!(i != null && i.views)) return;
2282
- const _ = i.views.map(
2283
- ($) => $.id === k ? { ...$, isDeleted: !1, updatedAt: Date.now() } : $
2282
+ const $ = i.views.map(
2283
+ (_) => _.id === k ? { ..._, isDeleted: !1, updatedAt: Date.now() } : _
2284
2284
  );
2285
2285
  j(i.id, {
2286
- views: _
2286
+ views: $
2287
2287
  });
2288
- const W = i.views.find(($) => $.id === k);
2288
+ const W = i.views.find((_) => _.id === k);
2289
2289
  W && x(`"${W.name}" restored`, "success");
2290
2290
  },
2291
2291
  [i, j]
2292
2292
  ), ur = L(
2293
2293
  (k) => {
2294
2294
  if (!(i != null && i.views)) return;
2295
- const _ = i.views.find((we) => we.id === k), W = i.views.filter((we) => !we.isDeleted || we.id === k);
2296
- if ((_ == null ? void 0 : _.isDefault) && W.filter((we) => we.isDefault).length === 1) {
2295
+ const $ = i.views.find((we) => we.id === k), W = i.views.filter((we) => !we.isDeleted || we.id === k);
2296
+ if (($ == null ? void 0 : $.isDefault) && W.filter((we) => we.isDefault).length === 1) {
2297
2297
  x("Cannot delete the last default view", "error");
2298
2298
  return;
2299
2299
  }
@@ -2303,16 +2303,16 @@ function Od(e = {}) {
2303
2303
  activeViewId: G && se ? se.id : i.activeViewId,
2304
2304
  filters: G && se ? se.snapshot.filters.length > 0 ? se.snapshot.filters : void 0 : i.filters,
2305
2305
  sortStack: G && se ? se.snapshot.sortStack.length > 0 ? se.snapshot.sortStack : void 0 : i.sortStack
2306
- }), _ && x(`"${_.name}" permanently deleted`, "success");
2306
+ }), $ && x(`"${$.name}" permanently deleted`, "success");
2307
2307
  },
2308
2308
  [i, j]
2309
2309
  ), Kr = L((k) => {
2310
2310
  X(k), be(!0), M(!1);
2311
2311
  }, []), In = L(
2312
- (k, _) => {
2312
+ (k, $) => {
2313
2313
  if (!le || !(i != null && i.views)) return;
2314
2314
  const W = i.views.map(
2315
- ($) => $.id === le ? { ...$, name: k, description: _ || void 0 } : $
2315
+ (_) => _.id === le ? { ..._, name: k, description: $ || void 0 } : _
2316
2316
  );
2317
2317
  j(i.id, {
2318
2318
  views: W
@@ -2323,14 +2323,14 @@ function Od(e = {}) {
2323
2323
  pe(k), H(!0), M(!1);
2324
2324
  }, []), Ue = L(() => {
2325
2325
  if (!oe || !(i != null && i.views)) return;
2326
- const k = i.views.filter(($) => $.id !== oe), _ = i.activeViewId === oe, W = k.find(($) => $.isDefault);
2326
+ const k = i.views.filter((_) => _.id !== oe), $ = i.activeViewId === oe, W = k.find((_) => _.isDefault);
2327
2327
  j(i.id, {
2328
2328
  views: k,
2329
- activeViewId: _ && W ? W.id : i.activeViewId,
2330
- filters: _ && W ? W.snapshot.filters.length > 0 ? W.snapshot.filters : void 0 : i.filters,
2331
- sortStack: _ && W ? W.snapshot.sortStack.length > 0 ? W.snapshot.sortStack : void 0 : i.sortStack
2329
+ activeViewId: $ && W ? W.id : i.activeViewId,
2330
+ filters: $ && W ? W.snapshot.filters.length > 0 ? W.snapshot.filters : void 0 : i.filters,
2331
+ sortStack: $ && W ? W.snapshot.sortStack.length > 0 ? W.snapshot.sortStack : void 0 : i.sortStack
2332
2332
  }), pe(null), H(!1);
2333
- }, [oe, i, j]), $t = L(
2333
+ }, [oe, i, j]), _t = L(
2334
2334
  (k) => {
2335
2335
  var J;
2336
2336
  if (!(i != null && i.views)) return;
@@ -2344,10 +2344,10 @@ function Od(e = {}) {
2344
2344
  x(`"${W.name}" is already a Global View.`, "info");
2345
2345
  return;
2346
2346
  }
2347
- const $ = i.views.map(
2347
+ const _ = i.views.map(
2348
2348
  (G) => G.id === k ? { ...G, scope: "global", isDefault: !0, updatedAt: Date.now() } : G.scope === "global" && G.isDefault ? { ...G, isDefault: !1 } : G
2349
2349
  );
2350
- j(i.id, { views: $ }), x(`"${W.name}" promoted to Global View and set as default.`, "success");
2350
+ j(i.id, { views: _ }), x(`"${W.name}" promoted to Global View and set as default.`, "success");
2351
2351
  },
2352
2352
  [i, h, j]
2353
2353
  );
@@ -2363,23 +2363,23 @@ function Od(e = {}) {
2363
2363
  [qe]
2364
2364
  ), Tn = L(
2365
2365
  (k) => {
2366
- const _ = (bt - 1) * vt, W = Math.floor(_ / k) + 1;
2366
+ const $ = (bt - 1) * vt, W = Math.floor($ / k) + 1;
2367
2367
  Lr(k), st(W);
2368
2368
  },
2369
2369
  [bt, vt]
2370
2370
  ), er = L(
2371
- (k, _) => {
2371
+ (k, $) => {
2372
2372
  if (!i) return;
2373
2373
  if (!Vt("edit_columns", Oe)) {
2374
2374
  x(Ft("edit_columns"), "error");
2375
2375
  return;
2376
2376
  }
2377
- const $ = {
2377
+ const _ = {
2378
2378
  ...i.columnVisibility || (te == null ? void 0 : te.snapshot.columnVisibility) || {},
2379
- [k]: _
2379
+ [k]: $
2380
2380
  };
2381
2381
  j(i.id, {
2382
- columnVisibility: $
2382
+ columnVisibility: _
2383
2383
  });
2384
2384
  },
2385
2385
  [i, te, Oe, j]
@@ -2397,25 +2397,25 @@ function Od(e = {}) {
2397
2397
  },
2398
2398
  [i, Oe, j]
2399
2399
  ), Se = L(
2400
- (k, _) => {
2400
+ (k, $) => {
2401
2401
  if (!i) return;
2402
2402
  if (!Vt("edit_columns", Oe)) {
2403
2403
  x(Ft("edit_columns"), "error");
2404
2404
  return;
2405
2405
  }
2406
- const $ = {
2406
+ const _ = {
2407
2407
  ...i.columnWidths || (te == null ? void 0 : te.snapshot.columnWidths) || {},
2408
- [k]: _
2408
+ [k]: $
2409
2409
  };
2410
2410
  j(i.id, {
2411
- columnWidths: $
2411
+ columnWidths: _
2412
2412
  });
2413
2413
  },
2414
2414
  [i, te, Oe, j]
2415
2415
  ), Je = L(
2416
2416
  (k) => {
2417
2417
  if (!i) return;
2418
- const W = (i.filters ?? []).filter(($) => $.column !== k);
2418
+ const W = (i.filters ?? []).filter((_) => _.column !== k);
2419
2419
  j(i.id, {
2420
2420
  filters: W.length > 0 ? W : void 0
2421
2421
  });
@@ -2423,12 +2423,12 @@ function Od(e = {}) {
2423
2423
  [i, j]
2424
2424
  ), O = L(() => {
2425
2425
  if (!te || !(i != null && i.schema)) return;
2426
- const k = {}, _ = [], W = {};
2427
- i.schema.forEach(($) => {
2428
- k[$.name] = !0, _.push($.name), W[$.name] = 170;
2426
+ const k = {}, $ = [], W = {};
2427
+ i.schema.forEach((_) => {
2428
+ k[_.name] = !0, $.push(_.name), W[_.name] = 170;
2429
2429
  }), j(i.id, {
2430
2430
  columnVisibility: k,
2431
- columnOrder: _,
2431
+ columnOrder: $,
2432
2432
  columnWidths: W,
2433
2433
  filters: void 0,
2434
2434
  sortStack: void 0
@@ -2443,10 +2443,10 @@ function Od(e = {}) {
2443
2443
  q(k);
2444
2444
  },
2445
2445
  [q]
2446
- ), tt = L(
2446
+ ), rt = L(
2447
2447
  (k) => {
2448
2448
  if (!k.trim() || !i) return;
2449
- const _ = i.searchHistory || [], W = Lc(_, k);
2449
+ const $ = i.searchHistory || [], W = Lc($, k);
2450
2450
  j(i.id, {
2451
2451
  searchHistory: W
2452
2452
  });
@@ -2455,7 +2455,7 @@ function Od(e = {}) {
2455
2455
  ), fe = L(
2456
2456
  (k) => {
2457
2457
  if (!i) return;
2458
- const _ = i.searchHistory || [], W = Vc(_, k);
2458
+ const $ = i.searchHistory || [], W = Vc($, k);
2459
2459
  j(i.id, {
2460
2460
  searchHistory: W
2461
2461
  });
@@ -2464,43 +2464,43 @@ function Od(e = {}) {
2464
2464
  ), tr = L(
2465
2465
  (k) => {
2466
2466
  if (!i) return;
2467
- const _ = i.searchHistory || [], W = Fc(_, k);
2467
+ const $ = i.searchHistory || [], W = Fc($, k);
2468
2468
  j(i.id, {
2469
2469
  searchHistory: W
2470
2470
  });
2471
2471
  },
2472
2472
  [i, j]
2473
2473
  ), jo = L((k) => {
2474
- const _ = k == null ? void 0 : k.__urm_row_id__;
2474
+ const $ = k == null ? void 0 : k.__urm_row_id__;
2475
2475
  Ne((W) => {
2476
- const $ = new Set(W);
2477
- if (_ !== void 0) {
2478
- const J = Array.from($).find(
2479
- (G) => (G == null ? void 0 : G.__urm_row_id__) === _
2476
+ const _ = new Set(W);
2477
+ if ($ !== void 0) {
2478
+ const J = Array.from(_).find(
2479
+ (G) => (G == null ? void 0 : G.__urm_row_id__) === $
2480
2480
  );
2481
- J !== void 0 ? $.delete(J) : $.add(k);
2481
+ J !== void 0 ? _.delete(J) : _.add(k);
2482
2482
  } else {
2483
- const J = JSON.stringify(k), G = Array.from($).find(
2483
+ const J = JSON.stringify(k), G = Array.from(_).find(
2484
2484
  (se) => JSON.stringify(se) === J
2485
2485
  );
2486
- G !== void 0 ? $.delete(G) : $.add(k);
2486
+ G !== void 0 ? _.delete(G) : _.add(k);
2487
2487
  }
2488
- return $;
2488
+ return _;
2489
2489
  });
2490
2490
  }, []), Ks = L(
2491
- (k, _) => {
2491
+ (k, $) => {
2492
2492
  Ne((W) => {
2493
- const $ = new Set(W);
2494
- for (const J of _)
2495
- k ? $.add(J) : $.delete(J);
2496
- return $;
2493
+ const _ = new Set(W);
2494
+ for (const J of $)
2495
+ k ? _.add(J) : _.delete(J);
2496
+ return _;
2497
2497
  });
2498
2498
  },
2499
2499
  []
2500
2500
  ), Xs = L(
2501
- (k, _, W) => {
2502
- Ne(($) => {
2503
- const J = new Set($), G = Math.min(k, _), se = Math.max(k, _);
2501
+ (k, $, W) => {
2502
+ Ne((_) => {
2503
+ const J = new Set(_), G = Math.min(k, $), se = Math.max(k, $);
2504
2504
  for (let we = G; we <= se; we++)
2505
2505
  W[we] !== void 0 && J.add(W[we]);
2506
2506
  return J;
@@ -2510,56 +2510,56 @@ function Od(e = {}) {
2510
2510
  ), Zs = L(() => {
2511
2511
  Ne(/* @__PURE__ */ new Set()), Gt(null);
2512
2512
  }, []), Qs = L((k) => {
2513
- const _ = k == null ? void 0 : k.__urm_row_id__;
2513
+ const $ = k == null ? void 0 : k.__urm_row_id__;
2514
2514
  Ne((W) => {
2515
- const $ = new Set(W);
2516
- if (_ !== void 0) {
2517
- const J = Array.from($).find((G) => (G == null ? void 0 : G.__urm_row_id__) === _);
2518
- J !== void 0 && $.delete(J);
2515
+ const _ = new Set(W);
2516
+ if ($ !== void 0) {
2517
+ const J = Array.from(_).find((G) => (G == null ? void 0 : G.__urm_row_id__) === $);
2518
+ J !== void 0 && _.delete(J);
2519
2519
  } else
2520
- $.delete(k);
2521
- return $;
2520
+ _.delete(k);
2521
+ return _;
2522
2522
  });
2523
2523
  }, []), el = L(
2524
2524
  (k) => {
2525
2525
  if (!(i != null && i.uploadedData)) return;
2526
- const _ = i.uploadedData.indexOf(k);
2527
- if (_ === -1) return;
2528
- const W = i.favoriteRowIndices || [], J = W.includes(_) ? W.filter((G) => G !== _) : [...W, _];
2526
+ const $ = i.uploadedData.indexOf(k);
2527
+ if ($ === -1) return;
2528
+ const W = i.favoriteRowIndices || [], J = W.includes($) ? W.filter((G) => G !== $) : [...W, $];
2529
2529
  j(i.id, {
2530
2530
  favoriteRowIndices: J
2531
2531
  });
2532
2532
  },
2533
2533
  [i, j]
2534
2534
  ), tl = L(
2535
- (k, _) => {
2535
+ (k, $) => {
2536
2536
  if (!(i != null && i.uploadedData)) return;
2537
- const W = i.favoriteRowIndices || [], $ = k.map((G) => i.uploadedData.indexOf(G)).filter((G) => G !== -1), J = _ ? [...W, ...$.filter((G) => !W.includes(G))] : W.filter((G) => !$.includes(G));
2537
+ const W = i.favoriteRowIndices || [], _ = k.map((G) => i.uploadedData.indexOf(G)).filter((G) => G !== -1), J = $ ? [...W, ..._.filter((G) => !W.includes(G))] : W.filter((G) => !_.includes(G));
2538
2538
  j(i.id, { favoriteRowIndices: J });
2539
2539
  },
2540
2540
  [i, j]
2541
2541
  ), rl = L(() => {
2542
2542
  if (!i) return;
2543
- const k = i.favoriteRowIndices || [], _ = !i.showFavoritesOnly;
2544
- if (_ && k.length === 0) {
2543
+ const k = i.favoriteRowIndices || [], $ = !i.showFavoritesOnly;
2544
+ if ($ && k.length === 0) {
2545
2545
  x("No rows marked as favorite", "warning");
2546
2546
  return;
2547
2547
  }
2548
2548
  if (j(i.id, {
2549
- showFavoritesOnly: _
2550
- }), _) {
2549
+ showFavoritesOnly: $
2550
+ }), $) {
2551
2551
  if (Gt(new Set(it)), it.size > 0) {
2552
2552
  const W = new Set(
2553
2553
  k.map((J) => {
2554
2554
  var G, se;
2555
2555
  return (se = (G = i.uploadedData) == null ? void 0 : G[J]) == null ? void 0 : se.__urm_row_id__;
2556
2556
  }).filter((J) => J !== void 0)
2557
- ), $ = new Set(
2557
+ ), _ = new Set(
2558
2558
  Array.from(it).filter(
2559
2559
  (J) => (J == null ? void 0 : J.__urm_row_id__) !== void 0 && W.has(J.__urm_row_id__)
2560
2560
  )
2561
2561
  );
2562
- Ne($);
2562
+ Ne(_);
2563
2563
  }
2564
2564
  x(
2565
2565
  `Showing ${k.length} favorite row${k.length === 1 ? "" : "s"}`,
@@ -2569,7 +2569,7 @@ function Od(e = {}) {
2569
2569
  if (lr !== null) {
2570
2570
  const W = new Set(
2571
2571
  Array.from(it).map((se) => se == null ? void 0 : se.__urm_row_id__).filter(Boolean)
2572
- ), $ = new Set(
2572
+ ), _ = new Set(
2573
2573
  Array.from(lr).map((se) => se == null ? void 0 : se.__urm_row_id__).filter(Boolean)
2574
2574
  ), J = new Set(
2575
2575
  k.map((se) => {
@@ -2584,7 +2584,7 @@ function Od(e = {}) {
2584
2584
  Er && !On || G.add(se);
2585
2585
  }), Array.from(it).forEach((se) => {
2586
2586
  const we = se == null ? void 0 : se.__urm_row_id__;
2587
- we !== void 0 && ($.has(we) || G.add(se));
2587
+ we !== void 0 && (_.has(we) || G.add(se));
2588
2588
  }), Ne(G), Gt(null);
2589
2589
  }
2590
2590
  x("Showing all data", "info");
@@ -2597,31 +2597,31 @@ function Od(e = {}) {
2597
2597
  return;
2598
2598
  }
2599
2599
  if (k && i.schema) {
2600
- const { validGrouping: _, invalidColumns: W } = Ss(
2600
+ const { validGrouping: $, invalidColumns: W } = Ss(
2601
2601
  k,
2602
2602
  i.schema
2603
2603
  );
2604
2604
  W.length > 0 && x(`Removed invalid grouping columns: ${W.join(", ")}`, "warning"), Dt();
2605
2605
  try {
2606
- const $ = i.grouping;
2607
- _ === null ? _e("grouping", "group_cleared", $, null) : $ ? _e("grouping", "group_reordered", $, _) : _e("grouping", "group_level_added", null, _);
2608
- const J = (te == null ? void 0 : te.snapshot.columnOrder) || i.columnOrder || [], G = Ln(J, _);
2606
+ const _ = i.grouping;
2607
+ $ === null ? $e("grouping", "group_cleared", _, null) : _ ? $e("grouping", "group_reordered", _, $) : $e("grouping", "group_level_added", null, $);
2608
+ const J = (te == null ? void 0 : te.snapshot.columnOrder) || i.columnOrder || [], G = Ln(J, $);
2609
2609
  j(i.id, {
2610
- grouping: _,
2610
+ grouping: $,
2611
2611
  columnOrder: G
2612
- }), JSON.stringify(G) !== JSON.stringify(i.columnOrder) && _e("columns", "column_reordered", i.columnOrder, G), Et(!1);
2613
- } catch ($) {
2614
- const J = or("processing", "grouping", $);
2612
+ }), JSON.stringify(G) !== JSON.stringify(i.columnOrder) && $e("columns", "column_reordered", i.columnOrder, G), Et(!1);
2613
+ } catch (_) {
2614
+ const J = or("processing", "grouping", _);
2615
2615
  pt(J);
2616
2616
  }
2617
2617
  } else {
2618
- const _ = i.grouping;
2619
- _e("grouping", "group_cleared", _, null);
2618
+ const $ = i.grouping;
2619
+ $e("grouping", "group_cleared", $, null);
2620
2620
  const W = (te == null ? void 0 : te.snapshot.columnOrder) || i.columnOrder || [];
2621
2621
  j(i.id, {
2622
2622
  grouping: k,
2623
2623
  columnOrder: [...W]
2624
- }), JSON.stringify(W) !== JSON.stringify(i.columnOrder) && _e("columns", "column_reordered", i.columnOrder, W), Et(!1);
2624
+ }), JSON.stringify(W) !== JSON.stringify(i.columnOrder) && $e("columns", "column_reordered", i.columnOrder, W), Et(!1);
2625
2625
  }
2626
2626
  }
2627
2627
  },
@@ -2632,14 +2632,14 @@ function Od(e = {}) {
2632
2632
  j,
2633
2633
  Dt,
2634
2634
  pt,
2635
- _e
2635
+ $e
2636
2636
  ]
2637
2637
  ), ol = L(
2638
2638
  (k) => {
2639
2639
  if (!i) return;
2640
- const _ = i.grouping;
2641
- if (!_) return;
2642
- const W = _c(_, k);
2640
+ const $ = i.grouping;
2641
+ if (!$) return;
2642
+ const W = $c($, k);
2643
2643
  j(i.id, {
2644
2644
  grouping: W
2645
2645
  });
@@ -2651,20 +2651,20 @@ function Od(e = {}) {
2651
2651
  (k) => {
2652
2652
  i != null && i.schema && (F(!0), setTimeout(() => {
2653
2653
  try {
2654
- let _;
2655
- k.scope === "visible" ? _ = vr : _ = i.uploadedData || [];
2654
+ let $;
2655
+ k.scope === "visible" ? $ = vr : $ = i.uploadedData || [];
2656
2656
  let W;
2657
2657
  k.columnScope === "all" ? (W = {}, (i.schema ?? []).forEach((we) => {
2658
2658
  W[we.name] = !0;
2659
2659
  })) : W = i.columnVisibility || (te == null ? void 0 : te.snapshot.columnVisibility) || {};
2660
- const $ = i.columnOrder || (te == null ? void 0 : te.snapshot.columnOrder), J = go(
2661
- _,
2660
+ const _ = i.columnOrder || (te == null ? void 0 : te.snapshot.columnOrder), J = go(
2661
+ $,
2662
2662
  i.schema,
2663
2663
  i.filters ?? [],
2664
2664
  i.sortStack ?? [],
2665
2665
  te,
2666
2666
  W,
2667
- $
2667
+ _
2668
2668
  ), G = i.name;
2669
2669
  let se;
2670
2670
  switch (k.format) {
@@ -2678,33 +2678,33 @@ function Od(e = {}) {
2678
2678
  bo(J, G, k), se = "export_json";
2679
2679
  break;
2680
2680
  }
2681
- _e("export", se, null, {
2681
+ $e("export", se, null, {
2682
2682
  format: k.format,
2683
2683
  scope: k.scope,
2684
2684
  columnScope: k.columnScope,
2685
- rowCount: _.length,
2685
+ rowCount: $.length,
2686
2686
  viewName: (te == null ? void 0 : te.name) || "Default View"
2687
2687
  }), x(`Export completed successfully (${k.format.toUpperCase()})`, "success");
2688
- } catch (_) {
2689
- const W = hd(_, {
2688
+ } catch ($) {
2689
+ const W = hd($, {
2690
2690
  onRetry: () => Dn(k)
2691
2691
  });
2692
2692
  x(`Export failed: ${W.message}. Click Export to retry.`, "error");
2693
- const $ = ta(
2693
+ const _ = ta(
2694
2694
  i.id,
2695
2695
  Bt,
2696
2696
  W,
2697
2697
  i.auditHistory || []
2698
2698
  );
2699
2699
  j(i.id, {
2700
- auditHistory: $
2701
- }), $r.error("urm:report-engine", "Export failed", _);
2700
+ auditHistory: _
2701
+ }), _r.error("urm:report-engine", "Export failed", $);
2702
2702
  } finally {
2703
2703
  F(!1);
2704
2704
  }
2705
2705
  }, 500));
2706
2706
  },
2707
- [i, te, vr, j, _e]
2707
+ [i, te, vr, j, $e]
2708
2708
  ), al = L(
2709
2709
  (k) => {
2710
2710
  if (i != null && i.schema) {
@@ -2735,27 +2735,27 @@ function Od(e = {}) {
2735
2735
  (k) => {
2736
2736
  !(i != null && i.schema) || it.size === 0 || (F(!0), setTimeout(() => {
2737
2737
  try {
2738
- const _ = Array.from(it), W = go(
2739
- _,
2738
+ const $ = Array.from(it), W = go(
2739
+ $,
2740
2740
  i.schema,
2741
2741
  i.filters ?? [],
2742
2742
  i.sortStack ?? [],
2743
2743
  te
2744
- ), $ = `${i.name.toLowerCase().replace(/\s+/g, "_")}_selected_export`;
2744
+ ), _ = `${i.name.toLowerCase().replace(/\s+/g, "_")}_selected_export`;
2745
2745
  switch (k) {
2746
2746
  case "csv":
2747
- xo(W, $);
2747
+ xo(W, _);
2748
2748
  break;
2749
2749
  case "excel":
2750
- yo(W, $);
2750
+ yo(W, _);
2751
2751
  break;
2752
2752
  case "json":
2753
- bo(W, $);
2753
+ bo(W, _);
2754
2754
  break;
2755
2755
  }
2756
- x(`Exported ${_.length} selected rows`, "info");
2757
- } catch (_) {
2758
- x("Export failed. Please try again.", "error"), $r.error("urm:report-engine", "Bulk export failed", _);
2756
+ x(`Exported ${$.length} selected rows`, "info");
2757
+ } catch ($) {
2758
+ x("Export failed. Please try again.", "error"), _r.error("urm:report-engine", "Bulk export failed", $);
2759
2759
  } finally {
2760
2760
  F(!1);
2761
2761
  }
@@ -2763,49 +2763,49 @@ function Od(e = {}) {
2763
2763
  },
2764
2764
  [i, te, it, Sr]
2765
2765
  ), ul = L(
2766
- (k, _) => {
2766
+ (k, $) => {
2767
2767
  if (i)
2768
2768
  try {
2769
- const W = Qc(i), $ = ed(k, _, Bt, W), J = td(i.presets, $);
2769
+ const W = Qc(i), _ = ed(k, $, Bt, W), J = td(i.presets, _);
2770
2770
  j(i.id, {
2771
2771
  presets: J
2772
- }), _e("presets", "preset_created", null, { presetId: $.id, name: $.name }), Vr(!1), x(`Preset "${k}" saved successfully`, "success");
2772
+ }), $e("presets", "preset_created", null, { presetId: _.id, name: _.name }), Vr(!1), x(`Preset "${k}" saved successfully`, "success");
2773
2773
  } catch (W) {
2774
2774
  x(W instanceof Error ? W.message : "Failed to create preset", "error");
2775
2775
  }
2776
2776
  },
2777
- [i, j, _e]
2777
+ [i, j, $e]
2778
2778
  ), pl = L(() => {
2779
2779
  qt(null), x("Exited preset view", "info");
2780
2780
  }, []), ml = L(() => {
2781
2781
  xr(!0);
2782
2782
  }, []), fl = L(
2783
- (k, _) => {
2783
+ (k, $) => {
2784
2784
  if (!i) return;
2785
2785
  const W = rd(i.presets, k);
2786
2786
  j(i.id, {
2787
2787
  presets: W
2788
- }), _e("presets", "preset_deleted", { presetId: k, name: _ }, null), Wt === k && qt(null), x(`Preset "${_}" deleted`, "success");
2788
+ }), $e("presets", "preset_deleted", { presetId: k, name: $ }, null), Wt === k && qt(null), x(`Preset "${$}" deleted`, "success");
2789
2789
  },
2790
- [i, Wt, j, _e]
2790
+ [i, Wt, j, $e]
2791
2791
  );
2792
2792
  Ce(() => {
2793
2793
  if (!c || p.length === 0) return;
2794
- const k = p.find((_) => _.id === c);
2794
+ const k = p.find(($) => $.id === c);
2795
2795
  k && k.id !== b && f(k.id);
2796
2796
  }, [c, p, b]), Ce(() => {
2797
2797
  if (!i) return;
2798
2798
  const k = nd();
2799
2799
  if (k && i.presets && i.schemaLocked && i.schema) {
2800
- const _ = ea(i.presets, k);
2801
- if (_) {
2802
- const { sanitizedConfig: W, warnings: $ } = fd(
2803
- _.config,
2800
+ const $ = ea(i.presets, k);
2801
+ if ($) {
2802
+ const { sanitizedConfig: W, warnings: _ } = fd(
2803
+ $.config,
2804
2804
  i.schema
2805
2805
  );
2806
- $.length > 0 && $.forEach((G) => x(G, "warning"));
2806
+ _.length > 0 && _.forEach((G) => x(G, "warning"));
2807
2807
  const J = od(W);
2808
- j(i.id, J), qt(k), _e("presets", "preset_applied", null, { presetId: _.id, name: _.name }), x(`Loaded preset: ${_.name}`, "info");
2808
+ j(i.id, J), qt(k), $e("presets", "preset_applied", null, { presetId: $.id, name: $.name }), x(`Loaded preset: ${$.name}`, "info");
2809
2809
  } else
2810
2810
  x("Preset not found", "info");
2811
2811
  }
@@ -2820,18 +2820,18 @@ function Od(e = {}) {
2820
2820
  if (i != null && i.schemaLocked && i.schema && (!i.views || i.views.length === 0)) {
2821
2821
  const k = Pc(i.id);
2822
2822
  if (k && k.views.length > 0) {
2823
- const _ = k.views.find(
2823
+ const $ = k.views.find(
2824
2824
  (W) => W.id === k.activeViewId
2825
2825
  );
2826
- if (_)
2826
+ if ($)
2827
2827
  j(i.id, {
2828
2828
  views: k.views,
2829
2829
  activeViewId: k.activeViewId,
2830
- filters: _.snapshot.filters.length > 0 ? _.snapshot.filters : void 0,
2831
- sortStack: _.snapshot.sortStack.length > 0 ? _.snapshot.sortStack : void 0
2830
+ filters: $.snapshot.filters.length > 0 ? $.snapshot.filters : void 0,
2831
+ sortStack: $.snapshot.sortStack.length > 0 ? $.snapshot.sortStack : void 0
2832
2832
  });
2833
2833
  else {
2834
- const W = k.views.find(($) => $.isDefault) || Jo(i.schema);
2834
+ const W = k.views.find((_) => _.isDefault) || Jo(i.schema);
2835
2835
  j(i.id, {
2836
2836
  views: k.views,
2837
2837
  activeViewId: W.id,
@@ -2843,9 +2843,9 @@ function Od(e = {}) {
2843
2843
  }
2844
2844
  }, [i == null ? void 0 : i.schemaLocked, i == null ? void 0 : i.schema, i == null ? void 0 : i.id]);
2845
2845
  const gl = L((k) => {
2846
- var $;
2847
- const _ = (i == null ? void 0 : i.filters) ?? [], W = (($ = h.filter) == null ? void 0 : $.maxConditions) ?? 3;
2848
- if (_.length >= W) {
2846
+ var _;
2847
+ const $ = (i == null ? void 0 : i.filters) ?? [], W = ((_ = h.filter) == null ? void 0 : _.maxConditions) ?? 3;
2848
+ if ($.length >= W) {
2849
2849
  x(
2850
2850
  `Filter limit reached — maximum ${W} filters allowed. Remove an existing filter before adding a new one.`,
2851
2851
  "warning"
@@ -2884,7 +2884,7 @@ function Od(e = {}) {
2884
2884
  // View state
2885
2885
  activeView: te,
2886
2886
  isDirty: Zt,
2887
- currentTableState: $e,
2887
+ currentTableState: _e,
2888
2888
  viewChanges: Ae,
2889
2889
  // Filters
2890
2890
  filters: i == null ? void 0 : i.filters,
@@ -2894,8 +2894,8 @@ function Od(e = {}) {
2894
2894
  handleAddFilter: dr,
2895
2895
  handleUpdateFilter: Cr,
2896
2896
  handleRemoveFilter: wt,
2897
- handleClearAllFilters: _t,
2898
- handleReplaceFilters: et,
2897
+ handleClearAllFilters: $t,
2898
+ handleReplaceFilters: tt,
2899
2899
  handleOpenFilterForColumn: gl,
2900
2900
  handleCloseFilterPanel: xl,
2901
2901
  handleClearFiltersForColumn: Je,
@@ -2937,7 +2937,7 @@ function Od(e = {}) {
2937
2937
  handleSaveEditView: In,
2938
2938
  handleDeleteView: kr,
2939
2939
  handleConfirmDelete: Ue,
2940
- handlePromoteToGlobal: $t,
2940
+ handlePromoteToGlobal: _t,
2941
2941
  // Columns
2942
2942
  showManageColumns: Z,
2943
2943
  setShowManageColumns: Ge,
@@ -2959,7 +2959,7 @@ function Od(e = {}) {
2959
2959
  searchQuery: gr,
2960
2960
  searchHistory: Bc((i == null ? void 0 : i.searchHistory) || []),
2961
2961
  handleSearchChange: ye,
2962
- handleAddToSearchHistory: tt,
2962
+ handleAddToSearchHistory: rt,
2963
2963
  handleToggleSearchFavourite: fe,
2964
2964
  handleDeleteSearchHistory: tr,
2965
2965
  // Selection
@@ -3000,7 +3000,7 @@ function Od(e = {}) {
3000
3000
  setShowAuditHistory: It,
3001
3001
  auditHistory: i == null ? void 0 : i.auditHistory,
3002
3002
  // Presets
3003
- showCreatePreset: Qe,
3003
+ showCreatePreset: et,
3004
3004
  setShowCreatePreset: Vr,
3005
3005
  showManagePresets: mn,
3006
3006
  setShowManagePresets: xr,
@@ -3081,7 +3081,7 @@ function Di() {
3081
3081
  );
3082
3082
  return e;
3083
3083
  }
3084
- function _d({
3084
+ function $d({
3085
3085
  onCreateReport: e,
3086
3086
  reports: t = [],
3087
3087
  activeReportId: n,
@@ -3206,7 +3206,7 @@ function Ar(e, ...t) {
3206
3206
  const n = new URL(`https://mui.com/production-error/?code=${e}`);
3207
3207
  return t.forEach((o) => n.searchParams.append("args[]", o)), `Minified MUI error #${e}; visit ${n} for the full message.`;
3208
3208
  }
3209
- const $d = "$$material";
3209
+ const _d = "$$material";
3210
3210
  function Ad(e) {
3211
3211
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3212
3212
  }
@@ -4293,7 +4293,7 @@ const eu = {
4293
4293
  return [e];
4294
4294
  const [t, n] = e.split(""), o = eu[t], a = tu[n] || "";
4295
4295
  return Array.isArray(a) ? a.map((l) => o + l) : [o + a];
4296
- }), _o = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], $o = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], nu = [..._o, ...$o];
4296
+ }), $o = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], _o = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], nu = [...$o, ..._o];
4297
4297
  function qn(e, t, n, o) {
4298
4298
  const a = Oo(e, t, !0) ?? n;
4299
4299
  return typeof a == "number" || typeof a == "string" ? (l) => typeof l == "string" ? l : (process.env.NODE_ENV !== "production" && typeof l != "number" && console.error(`MUI: Expected ${o} argument to be a number or a string, got ${l}.`), typeof a == "string" ? a.startsWith("var(") && l === 0 ? 0 : a.startsWith("var(") && l === 1 ? a : `calc(${l} * ${a})` : a * l) : Array.isArray(a) ? (l) => {
@@ -4309,7 +4309,7 @@ function qn(e, t, n, o) {
4309
4309
  `)), () => {
4310
4310
  });
4311
4311
  }
4312
- function _i(e) {
4312
+ function $i(e) {
4313
4313
  return qn(e, "spacing", 8, "spacing");
4314
4314
  }
4315
4315
  function Jn(e, t) {
@@ -4325,21 +4325,21 @@ function iu(e, t, n, o) {
4325
4325
  return ar(e, c, l);
4326
4326
  }
4327
4327
  function Ds(e, t) {
4328
- const n = _i(e.theme);
4328
+ const n = $i(e.theme);
4329
4329
  return Object.keys(e).map((o) => iu(e, t, o, n)).reduce(jn, {});
4330
4330
  }
4331
4331
  function Le(e) {
4332
- return Ds(e, _o);
4332
+ return Ds(e, $o);
4333
4333
  }
4334
- Le.propTypes = process.env.NODE_ENV !== "production" ? _o.reduce((e, t) => (e[t] = hr, e), {}) : {};
4335
- Le.filterProps = _o;
4334
+ Le.propTypes = process.env.NODE_ENV !== "production" ? $o.reduce((e, t) => (e[t] = hr, e), {}) : {};
4335
+ Le.filterProps = $o;
4336
4336
  function Ve(e) {
4337
- return Ds(e, $o);
4337
+ return Ds(e, _o);
4338
4338
  }
4339
- Ve.propTypes = process.env.NODE_ENV !== "production" ? $o.reduce((e, t) => (e[t] = hr, e), {}) : {};
4340
- Ve.filterProps = $o;
4339
+ Ve.propTypes = process.env.NODE_ENV !== "production" ? _o.reduce((e, t) => (e[t] = hr, e), {}) : {};
4340
+ Ve.filterProps = _o;
4341
4341
  process.env.NODE_ENV !== "production" && nu.reduce((e, t) => (e[t] = hr, e), {});
4342
- function Os(e = 8, t = _i({
4342
+ function Os(e = 8, t = $i({
4343
4343
  spacing: e
4344
4344
  })) {
4345
4345
  if (e.mui)
@@ -4463,7 +4463,7 @@ function gt(e) {
4463
4463
  const Ou = He({
4464
4464
  prop: "width",
4465
4465
  transform: gt
4466
- }), $i = (e) => {
4466
+ }), _i = (e) => {
4467
4467
  if (e.maxWidth !== void 0 && e.maxWidth !== null) {
4468
4468
  const t = (n) => {
4469
4469
  var a, l, c, s, p;
@@ -4480,11 +4480,11 @@ const Ou = He({
4480
4480
  }
4481
4481
  return null;
4482
4482
  };
4483
- $i.filterProps = ["maxWidth"];
4484
- const _u = He({
4483
+ _i.filterProps = ["maxWidth"];
4484
+ const $u = He({
4485
4485
  prop: "minWidth",
4486
4486
  transform: gt
4487
- }), $u = He({
4487
+ }), _u = He({
4488
4488
  prop: "height",
4489
4489
  transform: gt
4490
4490
  }), Au = He({
@@ -4507,7 +4507,7 @@ He({
4507
4507
  const Mu = He({
4508
4508
  prop: "boxSizing"
4509
4509
  });
4510
- Ao(Ou, $i, _u, $u, Au, Ru, Mu);
4510
+ Ao(Ou, _i, $u, _u, Au, Ru, Mu);
4511
4511
  const No = {
4512
4512
  // borders
4513
4513
  border: {
@@ -4756,7 +4756,7 @@ const No = {
4756
4756
  transform: gt
4757
4757
  },
4758
4758
  maxWidth: {
4759
- style: $i
4759
+ style: _i
4760
4760
  },
4761
4761
  minWidth: {
4762
4762
  transform: gt
@@ -4895,7 +4895,7 @@ function Lu(e, t) {
4895
4895
  }
4896
4896
  return n.palette.mode === e ? t : {};
4897
4897
  }
4898
- function _s(e = {}, ...t) {
4898
+ function $s(e = {}, ...t) {
4899
4899
  const {
4900
4900
  breakpoints: n = {},
4901
4901
  palette: o = {},
@@ -4935,7 +4935,7 @@ function Fu(e = null) {
4935
4935
  const t = wo.useContext(oc);
4936
4936
  return !t || Vu(t) ? e : t;
4937
4937
  }
4938
- const Bu = _s();
4938
+ const Bu = $s();
4939
4939
  function ju(e = Bu) {
4940
4940
  return Fu(e);
4941
4941
  }
@@ -5024,7 +5024,7 @@ function Vo(e) {
5024
5024
  } = e;
5025
5025
  return t.includes("rgb") ? o = o.map((a, l) => l < 3 ? parseInt(a, 10) : a) : t.includes("hsl") && (o[1] = `${o[1]}%`, o[2] = `${o[2]}%`), t.includes("color") ? o = `${n} ${o.join(" ")}` : o = `${o.join(", ")}`, `${t}(${o})`;
5026
5026
  }
5027
- function $s(e) {
5027
+ function _s(e) {
5028
5028
  e = mr(e);
5029
5029
  const {
5030
5030
  values: t
@@ -5038,7 +5038,7 @@ function $s(e) {
5038
5038
  }
5039
5039
  function ci(e) {
5040
5040
  e = mr(e);
5041
- let t = e.type === "hsl" || e.type === "hsla" ? mr($s(e)).values : e.values;
5041
+ let t = e.type === "hsl" || e.type === "hsla" ? mr(_s(e)).values : e.values;
5042
5042
  return t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
5043
5043
  }
5044
5044
  function Sa(e, t) {
@@ -5832,7 +5832,7 @@ function ui(e = {}, ...t) {
5832
5832
  const b = Ri({
5833
5833
  ...l,
5834
5834
  colorSpace: m
5835
- }), f = _s(e);
5835
+ }), f = $s(e);
5836
5836
  let y = yt(f, {
5837
5837
  mixins: pp(f.breakpoints, o),
5838
5838
  palette: b,
@@ -5928,13 +5928,13 @@ function Op(e) {
5928
5928
  return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
5929
5929
  e[0] === "palette" && !!((t = e[1]) != null && t.match(/(mode|contrastThreshold|tonalOffset)/));
5930
5930
  }
5931
- const _p = (e) => [...[...Array(25)].map((t, n) => `--${e ? `${e}-` : ""}overlays-${n}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], $p = (e) => (t, n) => {
5931
+ const $p = (e) => [...[...Array(25)].map((t, n) => `--${e ? `${e}-` : ""}overlays-${n}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], _p = (e) => (t, n) => {
5932
5932
  const o = e.rootSelector || ":root", a = e.colorSchemeSelector;
5933
5933
  let l = a;
5934
5934
  if (a === "class" && (l = ".%s"), a === "data" && (l = "[data-%s]"), a != null && a.startsWith("data-") && !a.includes("%s") && (l = `[${a}="%s"]`), e.defaultColorScheme === t) {
5935
5935
  if (t === "dark") {
5936
5936
  const c = {};
5937
- return _p(e.cssVarPrefix).forEach((s) => {
5937
+ return $p(e.cssVarPrefix).forEach((s) => {
5938
5938
  c[s] = n[s], delete n[s];
5939
5939
  }), l === "media" ? {
5940
5940
  [o]: n,
@@ -5974,7 +5974,7 @@ function B(e, t, n) {
5974
5974
  !e[t] && n && (e[t] = n);
5975
5975
  }
5976
5976
  function Fn(e) {
5977
- return typeof e != "string" || !e.startsWith("hsl") ? e : $s(e);
5977
+ return typeof e != "string" || !e.startsWith("hsl") ? e : _s(e);
5978
5978
  }
5979
5979
  function rr(e, t) {
5980
5980
  `${t}Channel` in e || (e[`${t}Channel`] = Vn(Fn(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
@@ -6100,7 +6100,7 @@ function Wp(e = {}, ...t) {
6100
6100
  prefix: l,
6101
6101
  disableCssColorScheme: a,
6102
6102
  shouldSkipGeneratingVar: s,
6103
- getSelector: $p(R),
6103
+ getSelector: _p(R),
6104
6104
  enableContrastVars: c
6105
6105
  }, {
6106
6106
  vars: P,
@@ -6110,7 +6110,7 @@ function Wp(e = {}, ...t) {
6110
6110
  return R.vars = P, Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([ie, g]) => {
6111
6111
  R[ie] = g;
6112
6112
  }), R.generateThemeVars = K, R.generateStyleSheets = Q, R.generateSpacing = function() {
6113
- return Os(h.spacing, _i(this));
6113
+ return Os(h.spacing, $i(this));
6114
6114
  }, R.getColorSchemeSelector = rp(p), R.spacing = R.generateSpacing(), R.shouldSkipGeneratingVar = s, R.unstable_sxConfig = {
6115
6115
  ...No,
6116
6116
  ...h == null ? void 0 : h.unstable_sxConfig
@@ -6178,7 +6178,7 @@ function Pp(e = {}, ...t) {
6178
6178
  const Np = Pp();
6179
6179
  function sr() {
6180
6180
  const e = ju(Np);
6181
- return process.env.NODE_ENV !== "production" && wo.useDebugValue(e), e[$d] || e;
6181
+ return process.env.NODE_ENV !== "production" && wo.useDebugValue(e), e[_d] || e;
6182
6182
  }
6183
6183
  async function Lp(e, t, n) {
6184
6184
  try {
@@ -6279,11 +6279,11 @@ const Fp = {
6279
6279
  function ae(e, t) {
6280
6280
  return Vp(e, Fp[t]);
6281
6281
  }
6282
- function ot(e) {
6283
- return Number(e.shape.borderRadius) * 1.5;
6282
+ function Qe(e) {
6283
+ return `${Number(e.shape.borderRadius) * 1.5}px`;
6284
6284
  }
6285
6285
  function Kn(e) {
6286
- return Number(e.shape.borderRadius);
6286
+ return `${Number(e.shape.borderRadius)}px`;
6287
6287
  }
6288
6288
  function Bp({
6289
6289
  isOpen: e,
@@ -6361,7 +6361,7 @@ function Bp({
6361
6361
  fullWidth: !0,
6362
6362
  PaperProps: {
6363
6363
  sx: {
6364
- borderRadius: "12px",
6364
+ borderRadius: (F) => Qe(F),
6365
6365
  width: 480,
6366
6366
  maxHeight: "min(720px, calc(100vh - 120px))",
6367
6367
  my: "auto",
@@ -6407,7 +6407,7 @@ function Bp({
6407
6407
  ),
6408
6408
  /* @__PURE__ */ r(ct, { sx: { px: 3, pt: 2, pb: 2, overflowY: "auto" }, children: /* @__PURE__ */ d(u, { sx: { display: "flex", flexDirection: "column", gap: 2, pt: 2 }, children: [
6409
6409
  /* @__PURE__ */ r(
6410
- rt,
6410
+ nt,
6411
6411
  {
6412
6412
  label: "Report name",
6413
6413
  required: !0,
@@ -6441,7 +6441,7 @@ function Bp({
6441
6441
  }
6442
6442
  ),
6443
6443
  /* @__PURE__ */ r(
6444
- rt,
6444
+ nt,
6445
6445
  {
6446
6446
  label: "Description (optional)",
6447
6447
  fullWidth: !0,
@@ -6740,7 +6740,7 @@ function Bp({
6740
6740
  ] }) }),
6741
6741
  z === "api" && /* @__PURE__ */ d(u, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
6742
6742
  /* @__PURE__ */ r(
6743
- rt,
6743
+ nt,
6744
6744
  {
6745
6745
  label: "API Endpoint URL",
6746
6746
  required: !0,
@@ -6771,7 +6771,7 @@ function Bp({
6771
6771
  }
6772
6772
  ),
6773
6773
  /* @__PURE__ */ r(
6774
- rt,
6774
+ nt,
6775
6775
  {
6776
6776
  label: "API Key (optional)",
6777
6777
  fullWidth: !0,
@@ -6802,7 +6802,7 @@ function Bp({
6802
6802
  }
6803
6803
  ),
6804
6804
  /* @__PURE__ */ r(
6805
- rt,
6805
+ nt,
6806
6806
  {
6807
6807
  label: "Response data path (optional)",
6808
6808
  fullWidth: !0,
@@ -6968,7 +6968,7 @@ function Bp({
6968
6968
  sx: {
6969
6969
  color: "primary.main",
6970
6970
  fontSize: "0.875rem",
6971
- borderRadius: (F) => F.shape.borderRadius,
6971
+ borderRadius: (F) => `${F.shape.borderRadius}px`,
6972
6972
  px: 2,
6973
6973
  py: 0.625,
6974
6974
  minWidth: 64,
@@ -6987,7 +6987,7 @@ function Bp({
6987
6987
  variant: "contained",
6988
6988
  sx: {
6989
6989
  fontSize: "0.875rem",
6990
- borderRadius: (F) => F.shape.borderRadius,
6990
+ borderRadius: (F) => `${F.shape.borderRadius}px`,
6991
6991
  px: 2.5,
6992
6992
  py: 0.625,
6993
6993
  minWidth: 64,
@@ -7141,7 +7141,7 @@ function Bp({
7141
7141
  variant: "contained",
7142
7142
  sx: {
7143
7143
  fontSize: "0.875rem",
7144
- borderRadius: (F) => F.shape.borderRadius,
7144
+ borderRadius: (F) => `${F.shape.borderRadius}px`,
7145
7145
  px: 2.5,
7146
7146
  py: 0.625,
7147
7147
  minWidth: 64
@@ -7164,7 +7164,7 @@ function Ls({ isOpen: e, onClose: t }) {
7164
7164
  fullWidth: !0,
7165
7165
  PaperProps: {
7166
7166
  sx: {
7167
- borderRadius: (n) => ot(n),
7167
+ borderRadius: (n) => Qe(n),
7168
7168
  maxHeight: "min(640px, calc(100vh - 180px))",
7169
7169
  my: "auto",
7170
7170
  boxShadow: (n) => ae(n, "menu"),
@@ -7417,7 +7417,7 @@ function Ls({ isOpen: e, onClose: t }) {
7417
7417
  px: 3,
7418
7418
  py: 0.875,
7419
7419
  minHeight: 36,
7420
- borderRadius: (n) => n.shape.borderRadius,
7420
+ borderRadius: (n) => `${n.shape.borderRadius}px`,
7421
7421
  boxShadow: (n) => ae(n, "restButton"),
7422
7422
  transition: "all 0.2s ease",
7423
7423
  "&:hover": {
@@ -7862,7 +7862,7 @@ function Yp({
7862
7862
  }, [t]), i = he(() => n.filter((P) => P.isFavourite), [n]), R = he(() => n.filter((P) => !P.isFavourite), [n]), I = s && n.length > 0;
7863
7863
  return /* @__PURE__ */ d(u, { sx: { position: "relative", width: 240 }, ref: y, children: [
7864
7864
  /* @__PURE__ */ r(
7865
- rt,
7865
+ nt,
7866
7866
  {
7867
7867
  inputRef: D,
7868
7868
  size: "small",
@@ -8036,7 +8036,7 @@ const Oa = Ha(function({
8036
8036
  onClick: c,
8037
8037
  title: t.isFavourite ? "Remove from favourites" : "Add to favourites",
8038
8038
  sx: { p: 0.5 },
8039
- children: t.isFavourite ? /* @__PURE__ */ r(_r, { sx: { fontSize: 14, color: "warning.light" } }) : /* @__PURE__ */ r(Hn, { sx: { fontSize: 14, color: "action.disabled" } })
8039
+ children: t.isFavourite ? /* @__PURE__ */ r($r, { sx: { fontSize: 14, color: "warning.light" } }) : /* @__PURE__ */ r(Hn, { sx: { fontSize: 14, color: "action.disabled" } })
8040
8040
  }
8041
8041
  ),
8042
8042
  /* @__PURE__ */ r(
@@ -8183,7 +8183,7 @@ function Gp({
8183
8183
  }
8184
8184
  },
8185
8185
  title: A.isFavorite ? "Remove from favorites" : "Add to favorites",
8186
- children: /* @__PURE__ */ r(_r, { sx: { fontSize: 16 } })
8186
+ children: /* @__PURE__ */ r($r, { sx: { fontSize: 16 } })
8187
8187
  }
8188
8188
  ),
8189
8189
  X && c && !A.isDefault && /* @__PURE__ */ r(
@@ -8374,7 +8374,7 @@ function Gp({
8374
8374
  gap: 0.5
8375
8375
  },
8376
8376
  children: [
8377
- /* @__PURE__ */ r(_r, { sx: { fontSize: 12, color: "warning.light" } }),
8377
+ /* @__PURE__ */ r($r, { sx: { fontSize: 12, color: "warning.light" } }),
8378
8378
  /* @__PURE__ */ r(
8379
8379
  w,
8380
8380
  {
@@ -8870,7 +8870,7 @@ function qp({
8870
8870
  document.body
8871
8871
  );
8872
8872
  }
8873
- const Jp = 176, _a = "COLUMN_HEADER", Kp = Ha(function({
8873
+ const Jp = 176, $a = "COLUMN_HEADER", Kp = Ha(function({
8874
8874
  column: t,
8875
8875
  index: n,
8876
8876
  sortRule: o,
@@ -8895,7 +8895,7 @@ const Jp = 176, _a = "COLUMN_HEADER", Kp = Ha(function({
8895
8895
  onResetLayout: R
8896
8896
  }) {
8897
8897
  const I = Fe(null), [P, K] = V(!1), [Q, ie] = V({ x: 0, y: 0 }), [{ handlerId: g, isOver: M }, N] = Ci({
8898
- accept: _a,
8898
+ accept: $a,
8899
8899
  collect(X) {
8900
8900
  return { handlerId: X.getHandlerId(), isOver: X.isOver() };
8901
8901
  },
@@ -8908,7 +8908,7 @@ const Jp = 176, _a = "COLUMN_HEADER", Kp = Ha(function({
8908
8908
  pe < ce && ue < de || pe > ce && ue > de || (h(pe, ce), X.index = ce);
8909
8909
  }
8910
8910
  }), [{ isDragging: U }, ee] = ki({
8911
- type: _a,
8911
+ type: $a,
8912
8912
  item: () => ({ index: n, columnName: t.name }),
8913
8913
  collect: (X) => ({ isDragging: X.isDragging() }),
8914
8914
  end: () => {
@@ -9241,7 +9241,7 @@ function Xp({
9241
9241
  re,
9242
9242
  {
9243
9243
  onClick: v,
9244
- startIcon: /* @__PURE__ */ r(_r, { sx: { fontSize: 16, color: "warning.main" } }),
9244
+ startIcon: /* @__PURE__ */ r($r, { sx: { fontSize: 16, color: "warning.main" } }),
9245
9245
  size: "small",
9246
9246
  variant: "outlined",
9247
9247
  sx: {
@@ -9327,7 +9327,7 @@ function tm(e, t) {
9327
9327
  const n = em[t];
9328
9328
  return n ? e.palette[n.hue][n.shade] : e.palette.text.secondary;
9329
9329
  }
9330
- function nt(e) {
9330
+ function ot(e) {
9331
9331
  return E(e.palette.primary.main, e.palette.mode === "dark" ? 0.24 : 0.12);
9332
9332
  }
9333
9333
  function rm(e) {
@@ -9576,7 +9576,7 @@ function im({
9576
9576
  color: "warning.main"
9577
9577
  }
9578
9578
  },
9579
- children: a ? /* @__PURE__ */ r(_r, { sx: { fontSize: 17 } }) : /* @__PURE__ */ r(Hn, { sx: { fontSize: 17 } })
9579
+ children: a ? /* @__PURE__ */ r($r, { sx: { fontSize: 17 } }) : /* @__PURE__ */ r(Hn, { sx: { fontSize: 17 } })
9580
9580
  }
9581
9581
  )
9582
9582
  }
@@ -9895,7 +9895,7 @@ function sm({
9895
9895
  )
9896
9896
  ] });
9897
9897
  }
9898
- const $a = [10, 15, 25, 50, 100];
9898
+ const _a = [10, 15, 25, 50, 100];
9899
9899
  function lm(e, t) {
9900
9900
  const n = e.trim();
9901
9901
  if (n === "") return "Page number is required";
@@ -9938,7 +9938,7 @@ function cm({
9938
9938
  return (N = v.current) == null ? void 0 : N.select();
9939
9939
  }, 0);
9940
9940
  }, []);
9941
- if (n <= Math.min(...$a))
9941
+ if (n <= Math.min(..._a))
9942
9942
  return null;
9943
9943
  const z = () => {
9944
9944
  h(String(e)), f(null), D(!1);
@@ -10026,7 +10026,7 @@ function cm({
10026
10026
  "& .MuiSelect-select": { py: 0.5, px: 1.5 },
10027
10027
  "& .MuiOutlinedInput-notchedOutline": { borderColor: "divider" }
10028
10028
  },
10029
- children: $a.map((N) => /* @__PURE__ */ r(xe, { value: N, sx: { fontSize: "0.8125rem" }, children: N }, N))
10029
+ children: _a.map((N) => /* @__PURE__ */ r(xe, { value: N, sx: { fontSize: "0.8125rem" }, children: N }, N))
10030
10030
  }
10031
10031
  )
10032
10032
  ] }),
@@ -10175,7 +10175,7 @@ function cm({
10175
10175
  size: "small",
10176
10176
  title: "First page",
10177
10177
  sx: g,
10178
- children: /* @__PURE__ */ r(_l, { sx: { fontSize: 20 } })
10178
+ children: /* @__PURE__ */ r($l, { sx: { fontSize: 20 } })
10179
10179
  }
10180
10180
  ),
10181
10181
  /* @__PURE__ */ r(
@@ -10186,7 +10186,7 @@ function cm({
10186
10186
  size: "small",
10187
10187
  title: "Previous page",
10188
10188
  sx: g,
10189
- children: /* @__PURE__ */ r($l, { sx: { fontSize: 20 } })
10189
+ children: /* @__PURE__ */ r(_l, { sx: { fontSize: 20 } })
10190
10190
  }
10191
10191
  ),
10192
10192
  /* @__PURE__ */ r(
@@ -10324,7 +10324,7 @@ function mm({
10324
10324
  fullWidth: !0,
10325
10325
  PaperProps: {
10326
10326
  sx: {
10327
- borderRadius: ot(l),
10327
+ borderRadius: Qe(l),
10328
10328
  maxHeight: "min(720px, calc(100vh - 80px))",
10329
10329
  display: "flex",
10330
10330
  flexDirection: "column",
@@ -10671,7 +10671,7 @@ function mm({
10671
10671
  fontSize: "0.8125rem",
10672
10672
  px: 3,
10673
10673
  py: 0.75,
10674
- borderRadius: (y) => y.shape.borderRadius,
10674
+ borderRadius: (y) => `${y.shape.borderRadius}px`,
10675
10675
  minWidth: 80
10676
10676
  },
10677
10677
  children: "Close"
@@ -10693,7 +10693,7 @@ function fm({ open: e, onClose: t, onConfirm: n, rowPreview: o }) {
10693
10693
  fullWidth: !0,
10694
10694
  PaperProps: {
10695
10695
  sx: {
10696
- borderRadius: (a) => ot(a),
10696
+ borderRadius: (a) => Qe(a),
10697
10697
  maxHeight: "min(480px, calc(100vh - 180px))",
10698
10698
  my: "auto",
10699
10699
  boxShadow: (a) => ae(a, "menu")
@@ -10836,7 +10836,7 @@ function fm({ open: e, onClose: t, onConfirm: n, rowPreview: o }) {
10836
10836
  px: 3,
10837
10837
  py: 0.875,
10838
10838
  minHeight: 36,
10839
- borderRadius: (a) => a.shape.borderRadius,
10839
+ borderRadius: (a) => `${a.shape.borderRadius}px`,
10840
10840
  transition: "all 0.2s ease",
10841
10841
  "&:hover": {
10842
10842
  bgcolor: "divider",
@@ -10861,7 +10861,7 @@ function fm({ open: e, onClose: t, onConfirm: n, rowPreview: o }) {
10861
10861
  px: 3,
10862
10862
  py: 0.875,
10863
10863
  minHeight: 36,
10864
- borderRadius: (a) => a.shape.borderRadius,
10864
+ borderRadius: (a) => `${a.shape.borderRadius}px`,
10865
10865
  boxShadow: (a) => ae(a, "restButton"),
10866
10866
  transition: "all 0.2s ease",
10867
10867
  "&:hover": {
@@ -10962,7 +10962,7 @@ function hm({
10962
10962
  fullWidth: !0,
10963
10963
  PaperProps: {
10964
10964
  sx: {
10965
- borderRadius: ot(c),
10965
+ borderRadius: Qe(c),
10966
10966
  maxHeight: "min(760px, calc(100vh - 80px))",
10967
10967
  display: "flex",
10968
10968
  flexDirection: "column",
@@ -11252,7 +11252,7 @@ function hm({
11252
11252
  }
11253
11253
  ),
11254
11254
  /* @__PURE__ */ r(
11255
- rt,
11255
+ nt,
11256
11256
  {
11257
11257
  value: i ?? "",
11258
11258
  onChange: (Q) => y(x.name, Q.target.value),
@@ -11476,7 +11476,7 @@ function hm({
11476
11476
  fontSize: "0.8125rem",
11477
11477
  color: "text.secondary",
11478
11478
  px: 2,
11479
- borderRadius: (x) => x.shape.borderRadius,
11479
+ borderRadius: (x) => `${x.shape.borderRadius}px`,
11480
11480
  "&:hover": { bgcolor: "action.hover", color: "text.primary" }
11481
11481
  },
11482
11482
  children: "Cancel"
@@ -11491,7 +11491,7 @@ function hm({
11491
11491
  sx: {
11492
11492
  fontSize: "0.8125rem",
11493
11493
  px: 2.5,
11494
- borderRadius: (x) => x.shape.borderRadius,
11494
+ borderRadius: (x) => `${x.shape.borderRadius}px`,
11495
11495
  minWidth: 90
11496
11496
  },
11497
11497
  children: "Save"
@@ -11695,14 +11695,14 @@ function Cm({
11695
11695
  favoriteRowIndices: Lr = [],
11696
11696
  resolvedFavoritesSet: St = /* @__PURE__ */ new Set(),
11697
11697
  showFavoritesOnly: It = !1,
11698
- onToggleRowFavorite: Qe,
11698
+ onToggleRowFavorite: et,
11699
11699
  onBulkSetFavorites: Vr,
11700
11700
  showDevPanel: mn = !1,
11701
11701
  onOpenDevConfig: xr,
11702
11702
  onToggleFavoritesFilter: Wt
11703
11703
  }) {
11704
11704
  var Je;
11705
- const [qt, Fr] = V(null), [Jt, Xn] = V(0), [Br, fn] = V(0), [Kt, Tt] = V(null), yr = ((Je = Mr().dates) == null ? void 0 : Je.displayFormat) ?? null, [Oe, gn] = V(null), [jr, Dt] = V(null), [j, pt] = V(null), [_e, at] = V(!1), [xn, br] = V(!1), [Xt, cr] = V(null), [vr, Sr] = V(""), [yn, wr] = V(!1), [qe, te] = V(null), [Zt, $e] = V(null), [Ae, Ot] = V(null), [Hr, Pt] = V(null), [mt, Ur] = V("list"), [Yr, Gr] = V(!1), [Qt, bn] = V(() => !um("toolbar_search"));
11705
+ const [qt, Fr] = V(null), [Jt, Xn] = V(0), [Br, fn] = V(0), [Kt, Tt] = V(null), yr = ((Je = Mr().dates) == null ? void 0 : Je.displayFormat) ?? null, [Oe, gn] = V(null), [jr, Dt] = V(null), [j, pt] = V(null), [$e, at] = V(!1), [xn, br] = V(!1), [Xt, cr] = V(null), [vr, Sr] = V(""), [yn, wr] = V(!1), [qe, te] = V(null), [Zt, _e] = V(null), [Ae, Ot] = V(null), [Hr, Pt] = V(null), [mt, Ur] = V("list"), [Yr, Gr] = V(!1), [Qt, bn] = V(() => !um("toolbar_search"));
11706
11706
  Fe(null);
11707
11707
  const dr = Fe(null), Cr = Fe(null), wt = L(() => {
11708
11708
  pm("toolbar_search"), bn(!1);
@@ -11712,10 +11712,10 @@ function Cm({
11712
11712
  const O = setTimeout(wt, 2e3);
11713
11713
  return () => clearTimeout(O);
11714
11714
  }, [Qt, wt]);
11715
- const _t = he(() => {
11715
+ const $t = he(() => {
11716
11716
  const O = Kt ?? m;
11717
11717
  return O.length > 0 ? O.map((q) => e.find((ye) => ye.name === q)).filter((q) => q !== void 0) : e;
11718
- }, [Kt, m, e]), et = he(() => _t.filter((O) => p[O.name] !== !1), [_t, p]), Nt = he(() => e.filter((O) => p[O.name] === !1).length, [e, p]), qr = he(() => e.map((O) => O.name), [e]), Lt = he(() => m.length === 0 ? !1 : JSON.stringify(m) !== JSON.stringify(qr), [m, qr]), vn = L(
11718
+ }, [Kt, m, e]), tt = he(() => $t.filter((O) => p[O.name] !== !1), [$t, p]), Nt = he(() => e.filter((O) => p[O.name] === !1).length, [e, p]), qr = he(() => e.map((O) => O.name), [e]), Lt = he(() => m.length === 0 ? !1 : JSON.stringify(m) !== JSON.stringify(qr), [m, qr]), vn = L(
11719
11719
  (O, q) => {
11720
11720
  O.preventDefault(), O.stopPropagation(), Fr(q), Xn(O.clientX), fn(h[q] || 150);
11721
11721
  },
@@ -11724,7 +11724,7 @@ function Cm({
11724
11724
  Ce(() => {
11725
11725
  if (!qt) return;
11726
11726
  const O = (ye) => {
11727
- const tt = ye.clientX - Jt, fe = Math.max(100, Math.min(600, Br + tt));
11727
+ const rt = ye.clientX - Jt, fe = Math.max(100, Math.min(600, Br + rt));
11728
11728
  N == null || N(qt, fe);
11729
11729
  }, q = () => {
11730
11730
  Fr(null);
@@ -11821,7 +11821,7 @@ function Cm({
11821
11821
  ee && ee(O, !1);
11822
11822
  },
11823
11823
  [ee]
11824
- ), Kr = (b == null ? void 0 : b.enabled) && t.length > 0 && t[0] && "isGroupHeader" in t[0], In = n.length > 0 || o.length > 0 || ((b == null ? void 0 : b.enabled) ?? !1) || Object.values(p).some((O) => O === !1), kr = (Nr - 1) * pn, Ue = t, $t = he(() => {
11824
+ ), Kr = (b == null ? void 0 : b.enabled) && t.length > 0 && t[0] && "isGroupHeader" in t[0], In = n.length > 0 || o.length > 0 || ((b == null ? void 0 : b.enabled) ?? !1) || Object.values(p).some((O) => O === !1), kr = (Nr - 1) * pn, Ue = t, _t = he(() => {
11825
11825
  const O = /* @__PURE__ */ new Set();
11826
11826
  return me.forEach((q) => {
11827
11827
  const ye = q == null ? void 0 : q.__urm_row_id__;
@@ -11840,10 +11840,10 @@ function Cm({
11840
11840
  },
11841
11841
  [ke, Oe, Ge, Ue]
11842
11842
  );
11843
- !he(() => Ue.length > 0 && $t.size > 0 && Ue.every((O) => $t.has(O == null ? void 0 : O.__urm_row_id__)), [Ue, $t]) && Ue.some((O) => $t.has(O == null ? void 0 : O.__urm_row_id__));
11843
+ !he(() => Ue.length > 0 && _t.size > 0 && Ue.every((O) => _t.has(O == null ? void 0 : O.__urm_row_id__)), [Ue, _t]) && Ue.some((O) => _t.has(O == null ? void 0 : O.__urm_row_id__));
11844
11844
  const er = ke && Z, ge = L(
11845
11845
  (O) => {
11846
- var tt;
11846
+ var rt;
11847
11847
  const q = O.groupLevel, ye = q * 24;
11848
11848
  return /* @__PURE__ */ r(
11849
11849
  ir,
@@ -11859,11 +11859,11 @@ function Cm({
11859
11859
  children: /* @__PURE__ */ r(
11860
11860
  Be,
11861
11861
  {
11862
- colSpan: et.length + (er ? 1 : 0),
11862
+ colSpan: tt.length + (er ? 1 : 0),
11863
11863
  sx: { pl: `${ye + 24}px` },
11864
11864
  children: /* @__PURE__ */ d(u, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
11865
11865
  O.isCollapsed ? /* @__PURE__ */ r(Yn, { sx: { fontSize: 16 } }) : /* @__PURE__ */ r(Eo, { sx: { fontSize: 16 } }),
11866
- /* @__PURE__ */ r(w, { variant: "body2", sx: { fontWeight: 600 }, children: fs(q, ((tt = b == null ? void 0 : b.levels[q]) == null ? void 0 : tt.column) || "", O.groupValue) }),
11866
+ /* @__PURE__ */ r(w, { variant: "body2", sx: { fontWeight: 600 }, children: fs(q, ((rt = b == null ? void 0 : b.levels[q]) == null ? void 0 : rt.column) || "", O.groupValue) }),
11867
11867
  /* @__PURE__ */ d(
11868
11868
  u,
11869
11869
  {
@@ -11891,10 +11891,10 @@ function Cm({
11891
11891
  O.groupKey
11892
11892
  );
11893
11893
  },
11894
- [et, er, b, Y]
11894
+ [tt, er, b, Y]
11895
11895
  ), Se = L(
11896
11896
  (O, q) => {
11897
- const ye = $t.has(O == null ? void 0 : O.__urm_row_id__), tt = jr === q;
11897
+ const ye = _t.has(O == null ? void 0 : O.__urm_row_id__), rt = jr === q;
11898
11898
  return /* @__PURE__ */ d(
11899
11899
  ir,
11900
11900
  {
@@ -11924,7 +11924,7 @@ function Cm({
11924
11924
  borderColor: "divider"
11925
11925
  },
11926
11926
  children: [
11927
- et.map((fe, tr) => /* @__PURE__ */ r(
11927
+ tt.map((fe, tr) => /* @__PURE__ */ r(
11928
11928
  Be,
11929
11929
  {
11930
11930
  sx: {
@@ -11936,8 +11936,8 @@ function Cm({
11936
11936
  // Issue 3: left-align all columns consistently (enterprise standard
11937
11937
  // for tables where headers are left-aligned — matching header+cell)
11938
11938
  textAlign: "left",
11939
- ...tr === et.length - 1 && {
11940
- pr: `${Qe ? 76 : 40}px`
11939
+ ...tr === tt.length - 1 && {
11940
+ pr: `${et ? 76 : 40}px`
11941
11941
  },
11942
11942
  fontSize: "0.8125rem",
11943
11943
  fontWeight: 400,
@@ -11946,7 +11946,7 @@ function Cm({
11946
11946
  borderColor: "divider",
11947
11947
  minWidth: h[fe.name] ? `${h[fe.name]}px` : `${fe.type === "date" ? Math.max(rn, 180) : rn}px`
11948
11948
  },
11949
- children: wm(fe, O[fe.name], vm(fe, et), yr)
11949
+ children: wm(fe, O[fe.name], vm(fe, tt), yr)
11950
11950
  },
11951
11951
  fe.name
11952
11952
  )),
@@ -11957,9 +11957,9 @@ function Cm({
11957
11957
  sx: {
11958
11958
  position: "sticky",
11959
11959
  right: 0,
11960
- width: Qe ? 76 : 40,
11961
- minWidth: Qe ? 76 : 40,
11962
- maxWidth: Qe ? 76 : 40,
11960
+ width: et ? 76 : 40,
11961
+ minWidth: et ? 76 : 40,
11962
+ maxWidth: et ? 76 : 40,
11963
11963
  p: 0,
11964
11964
  border: "none",
11965
11965
  borderBottom: "1px solid",
@@ -11967,8 +11967,8 @@ function Cm({
11967
11967
  // DIG-122: If row is favorited, always show the td (not opacity:0) so
11968
11968
  // the gold star remains visible even when the row is not hovered.
11969
11969
  // For non-favorited rows, keep the hover-only reveal behaviour.
11970
- background: tt || St.has(O) ? (fe) => `linear-gradient(to right, transparent, ${ye ? `rgba(${fe.palette.mode === "dark", "237,108,2"},0.12)` : fe.palette.background.paper} 32px)` : "transparent",
11971
- opacity: tt || St.has(O) ? 1 : 0,
11970
+ background: rt || St.has(O) ? (fe) => `linear-gradient(to right, transparent, ${ye ? `rgba(${fe.palette.mode === "dark", "237,108,2"},0.12)` : fe.palette.background.paper} 32px)` : "transparent",
11971
+ opacity: rt || St.has(O) ? 1 : 0,
11972
11972
  transition: "opacity 0.12s ease, background 0.12s ease",
11973
11973
  zIndex: 10,
11974
11974
  verticalAlign: "middle"
@@ -11985,13 +11985,13 @@ function Cm({
11985
11985
  gap: 0.25
11986
11986
  },
11987
11987
  children: [
11988
- Qe && /* @__PURE__ */ r(
11988
+ et && /* @__PURE__ */ r(
11989
11989
  ne,
11990
11990
  {
11991
11991
  "data-row-action-btn": "true",
11992
11992
  size: "small",
11993
11993
  onClick: (fe) => {
11994
- fe.stopPropagation(), fe.preventDefault(), Qe(O);
11994
+ fe.stopPropagation(), fe.preventDefault(), et(O);
11995
11995
  },
11996
11996
  title: St.has(O) ? "Remove from favorites" : "Add to favorites",
11997
11997
  sx: {
@@ -12001,7 +12001,7 @@ function Cm({
12001
12001
  color: "warning.main"
12002
12002
  }
12003
12003
  },
12004
- children: St.has(O) ? /* @__PURE__ */ r(_r, { sx: { fontSize: 18 } }) : /* @__PURE__ */ r(Hn, { sx: { fontSize: 18 } })
12004
+ children: St.has(O) ? /* @__PURE__ */ r($r, { sx: { fontSize: 18 } }) : /* @__PURE__ */ r(Hn, { sx: { fontSize: 18 } })
12005
12005
  }
12006
12006
  ),
12007
12007
  /* @__PURE__ */ r(
@@ -12020,9 +12020,9 @@ function Cm({
12020
12020
  color: "text.secondary",
12021
12021
  // Issue 3: hide kebab when row is favorited but not hovered.
12022
12022
  // Only the star should remain permanently visible for favorited rows.
12023
- opacity: tt ? 1 : 0,
12023
+ opacity: rt ? 1 : 0,
12024
12024
  transition: "opacity 0.12s ease",
12025
- pointerEvents: tt ? "auto" : "none",
12025
+ pointerEvents: rt ? "auto" : "none",
12026
12026
  "&:hover": {
12027
12027
  bgcolor: (fe) => E(fe.palette.text.primary, 0.08),
12028
12028
  color: "text.primary"
@@ -12046,14 +12046,14 @@ function Cm({
12046
12046
  kr,
12047
12047
  jr,
12048
12048
  zr,
12049
- et,
12049
+ tt,
12050
12050
  h,
12051
12051
  Sn,
12052
12052
  bt,
12053
12053
  st,
12054
12054
  vt,
12055
12055
  ke,
12056
- Qe,
12056
+ et,
12057
12057
  St,
12058
12058
  pt,
12059
12059
  at,
@@ -12065,7 +12065,7 @@ function Cm({
12065
12065
  er && Et && ut && /* @__PURE__ */ r(
12066
12066
  Xp,
12067
12067
  {
12068
- selectedCount: $t.size,
12068
+ selectedCount: _t.size,
12069
12069
  selectedRowIds: me,
12070
12070
  resolvedFavoritesSet: St,
12071
12071
  viewMode: mt,
@@ -12177,7 +12177,7 @@ function Cm({
12177
12177
  }
12178
12178
  },
12179
12179
  children: [
12180
- It ? /* @__PURE__ */ r(_r, { sx: { fontSize: 20 } }) : /* @__PURE__ */ r(Hn, { sx: { fontSize: 20 } }),
12180
+ It ? /* @__PURE__ */ r($r, { sx: { fontSize: 20 } }) : /* @__PURE__ */ r(Hn, { sx: { fontSize: 20 } }),
12181
12181
  It && Lr.length > 0 && /* @__PURE__ */ r(
12182
12182
  u,
12183
12183
  {
@@ -12250,7 +12250,7 @@ function Cm({
12250
12250
  sx: {
12251
12251
  position: "relative",
12252
12252
  color: n.length > 0 ? "primary.main" : "text.secondary",
12253
- bgcolor: n.length > 0 ? (O) => nt(O) : "transparent",
12253
+ bgcolor: n.length > 0 ? (O) => ot(O) : "transparent",
12254
12254
  borderRadius: 1,
12255
12255
  transition: "all 0.15s ease",
12256
12256
  "&:hover": {
@@ -12295,7 +12295,7 @@ function Cm({
12295
12295
  sx: {
12296
12296
  position: "relative",
12297
12297
  color: o.length > 0 ? "primary.main" : "text.secondary",
12298
- bgcolor: o.length > 0 ? (O) => nt(O) : "transparent",
12298
+ bgcolor: o.length > 0 ? (O) => ot(O) : "transparent",
12299
12299
  borderRadius: 1,
12300
12300
  transition: "all 0.15s ease",
12301
12301
  "&:hover": {
@@ -12340,7 +12340,7 @@ function Cm({
12340
12340
  sx: {
12341
12341
  position: "relative",
12342
12342
  color: Nt > 0 || Lt ? "primary.main" : "text.secondary",
12343
- bgcolor: Nt > 0 || Lt ? (O) => nt(O) : "transparent",
12343
+ bgcolor: Nt > 0 || Lt ? (O) => ot(O) : "transparent",
12344
12344
  borderRadius: 1,
12345
12345
  transition: "all 0.15s ease",
12346
12346
  "&:hover": {
@@ -12386,7 +12386,7 @@ function Cm({
12386
12386
  sx: {
12387
12387
  borderRadius: 1,
12388
12388
  color: mt === "list" ? "primary.main" : "text.secondary",
12389
- bgcolor: mt === "list" ? (O) => nt(O) : "transparent",
12389
+ bgcolor: mt === "list" ? (O) => ot(O) : "transparent",
12390
12390
  transition: "all 0.15s ease",
12391
12391
  "&:hover": {
12392
12392
  bgcolor: mt === "list" ? (O) => E(O.palette.primary.main, 0.2) : (O) => E(O.palette.text.primary, 0.06),
@@ -12404,7 +12404,7 @@ function Cm({
12404
12404
  sx: {
12405
12405
  borderRadius: 1,
12406
12406
  color: mt === "grid" ? "primary.main" : "text.secondary",
12407
- bgcolor: mt === "grid" ? (O) => nt(O) : "transparent",
12407
+ bgcolor: mt === "grid" ? (O) => ot(O) : "transparent",
12408
12408
  transition: "all 0.15s ease",
12409
12409
  "&:hover": {
12410
12410
  bgcolor: mt === "grid" ? (O) => E(O.palette.primary.main, 0.2) : (O) => E(O.palette.text.primary, 0.06),
@@ -12541,7 +12541,7 @@ function Cm({
12541
12541
  sm,
12542
12542
  {
12543
12543
  data: Ue,
12544
- visibleColumns: et,
12544
+ visibleColumns: tt,
12545
12545
  grouping: b,
12546
12546
  selectedRowIds: me,
12547
12547
  resolvedFavoritesSet: St,
@@ -12551,19 +12551,19 @@ function Cm({
12551
12551
  onSort: f,
12552
12552
  onToggleRowSelection: ke || (() => {
12553
12553
  }),
12554
- onToggleRowFavorite: Qe,
12554
+ onToggleRowFavorite: et,
12555
12555
  onToggleGroupCollapse: Y,
12556
12556
  onViewRow: (O) => {
12557
12557
  pt(O), at(!0);
12558
12558
  },
12559
12559
  onEditRow: (O, q) => {
12560
- te(O), $e(q), wr(!0);
12560
+ te(O), _e(q), wr(!0);
12561
12561
  },
12562
12562
  onDuplicateRow: (O, q) => st == null ? void 0 : st(O, q),
12563
12563
  onDeleteRow: (O, q) => {
12564
12564
  cr(q);
12565
12565
  const ye = Object.values(q).find(
12566
- (tt) => tt != null && tt !== ""
12566
+ (rt) => rt != null && rt !== ""
12567
12567
  );
12568
12568
  Sr(ye ? String(ye) : ""), br(!0);
12569
12569
  }
@@ -12596,21 +12596,21 @@ function Cm({
12596
12596
  borderSpacing: 0,
12597
12597
  width: "100%",
12598
12598
  // Ensure header table is at least as wide as the body table
12599
- minWidth: `${et.reduce(
12599
+ minWidth: `${tt.reduce(
12600
12600
  (O, q) => O + (h[q.name] || (q.type === "date" ? 180 : rn)),
12601
- Qe ? 76 : 40
12601
+ et ? 76 : 40
12602
12602
  )}px`
12603
12603
  },
12604
12604
  children: [
12605
12605
  /* @__PURE__ */ d("colgroup", { children: [
12606
- et.map((O) => /* @__PURE__ */ r(
12606
+ tt.map((O) => /* @__PURE__ */ r(
12607
12607
  "col",
12608
12608
  {
12609
12609
  style: { width: `${h[O.name] || (O.type === "date" ? 180 : rn)}px` }
12610
12610
  },
12611
12611
  O.name
12612
12612
  )),
12613
- /* @__PURE__ */ r("col", { style: { width: `${Qe ? 76 : 40}px` } })
12613
+ /* @__PURE__ */ r("col", { style: { width: `${et ? 76 : 40}px` } })
12614
12614
  ] }),
12615
12615
  /* @__PURE__ */ r(Si, { children: /* @__PURE__ */ d(
12616
12616
  ir,
@@ -12622,7 +12622,7 @@ function Cm({
12622
12622
  borderColor: "divider"
12623
12623
  },
12624
12624
  children: [
12625
- et.map((O, q) => /* @__PURE__ */ r(
12625
+ tt.map((O, q) => /* @__PURE__ */ r(
12626
12626
  Kp,
12627
12627
  {
12628
12628
  column: O,
@@ -12657,8 +12657,8 @@ function Cm({
12657
12657
  Be,
12658
12658
  {
12659
12659
  sx: {
12660
- width: Qe ? 76 : 40,
12661
- minWidth: Qe ? 76 : 40,
12660
+ width: et ? 76 : 40,
12661
+ minWidth: et ? 76 : 40,
12662
12662
  p: 0,
12663
12663
  border: "none",
12664
12664
  borderBottom: "1px solid",
@@ -12706,26 +12706,26 @@ function Cm({
12706
12706
  borderCollapse: "collapse",
12707
12707
  borderSpacing: 0,
12708
12708
  width: "100%",
12709
- minWidth: `${et.reduce(
12709
+ minWidth: `${tt.reduce(
12710
12710
  (O, q) => O + (h[q.name] || (q.type === "date" ? 180 : rn)),
12711
- Qe ? 76 : 40
12711
+ et ? 76 : 40
12712
12712
  )}px`
12713
12713
  },
12714
12714
  children: [
12715
12715
  /* @__PURE__ */ d("colgroup", { children: [
12716
- et.map((O) => /* @__PURE__ */ r(
12716
+ tt.map((O) => /* @__PURE__ */ r(
12717
12717
  "col",
12718
12718
  {
12719
12719
  style: { width: `${h[O.name] || (O.type === "date" ? 180 : rn)}px` }
12720
12720
  },
12721
12721
  O.name
12722
12722
  )),
12723
- /* @__PURE__ */ r("col", { style: { width: `${Qe ? 76 : 40}px` } })
12723
+ /* @__PURE__ */ r("col", { style: { width: `${et ? 76 : 40}px` } })
12724
12724
  ] }),
12725
12725
  /* @__PURE__ */ r(wi, { children: Ue.length === 0 ? /* @__PURE__ */ r(ir, { children: /* @__PURE__ */ r(
12726
12726
  Be,
12727
12727
  {
12728
- colSpan: et.length + (er ? 1 : 0),
12728
+ colSpan: tt.length + (er ? 1 : 0),
12729
12729
  align: "center",
12730
12730
  sx: { py: 4 },
12731
12731
  children: /* @__PURE__ */ r(w, { variant: "body2", color: "text.secondary", children: "No data matches the current filters" })
@@ -12802,7 +12802,7 @@ function Cm({
12802
12802
  {
12803
12803
  dense: !0,
12804
12804
  onClick: () => {
12805
- Ae && (te(Ae.row), $e(Ae.rowIndex), wr(!0)), Ot(null);
12805
+ Ae && (te(Ae.row), _e(Ae.rowIndex), wr(!0)), Ot(null);
12806
12806
  },
12807
12807
  sx: { py: 1, px: 2, gap: 1.5 },
12808
12808
  children: [
@@ -12853,7 +12853,7 @@ function Cm({
12853
12853
  /* @__PURE__ */ r(
12854
12854
  mm,
12855
12855
  {
12856
- open: _e,
12856
+ open: $e,
12857
12857
  onClose: () => {
12858
12858
  at(!1), pt(null);
12859
12859
  },
@@ -12867,7 +12867,7 @@ function Cm({
12867
12867
  {
12868
12868
  open: yn,
12869
12869
  onClose: () => {
12870
- wr(!1), te(null), $e(null);
12870
+ wr(!1), te(null), _e(null);
12871
12871
  },
12872
12872
  onSave: (O) => {
12873
12873
  Zt !== null && (bt == null || bt(Zt, O));
@@ -13175,7 +13175,7 @@ function km({
13175
13175
  maxHeight: "min(520px, calc(100vh - 280px))",
13176
13176
  display: "flex",
13177
13177
  flexDirection: "column",
13178
- borderRadius: (M) => ot(M),
13178
+ borderRadius: (M) => Qe(M),
13179
13179
  bgcolor: "background.paper",
13180
13180
  outline: "none",
13181
13181
  boxShadow: (M) => ae(M, "menu"),
@@ -13340,7 +13340,7 @@ function km({
13340
13340
  bgcolor: "action.hover"
13341
13341
  },
13342
13342
  "&.Mui-selected": {
13343
- bgcolor: (N) => nt(N),
13343
+ bgcolor: (N) => ot(N),
13344
13344
  "&:hover": {
13345
13345
  bgcolor: (N) => E(N.palette.primary.main, 0.2)
13346
13346
  }
@@ -13411,7 +13411,7 @@ function km({
13411
13411
  bgcolor: "action.hover"
13412
13412
  },
13413
13413
  "&.Mui-selected": {
13414
- bgcolor: (N) => nt(N),
13414
+ bgcolor: (N) => ot(N),
13415
13415
  "&:hover": {
13416
13416
  bgcolor: (N) => E(N.palette.primary.main, 0.2)
13417
13417
  }
@@ -13425,7 +13425,7 @@ function km({
13425
13425
  )
13426
13426
  ] }),
13427
13427
  b && to(b) && /* @__PURE__ */ r(
13428
- rt,
13428
+ nt,
13429
13429
  {
13430
13430
  size: "small",
13431
13431
  fullWidth: !0,
@@ -13569,7 +13569,7 @@ function km({
13569
13569
  label: g(M),
13570
13570
  onDelete: () => P(N),
13571
13571
  sx: {
13572
- bgcolor: (U) => nt(U),
13572
+ bgcolor: (U) => ot(U),
13573
13573
  color: "primary.main",
13574
13574
  fontSize: "0.875rem",
13575
13575
  fontWeight: 400,
@@ -13626,7 +13626,7 @@ function km({
13626
13626
  px: 3,
13627
13627
  py: 1,
13628
13628
  minHeight: 36,
13629
- borderRadius: (M) => M.shape.borderRadius,
13629
+ borderRadius: (M) => `${M.shape.borderRadius}px`,
13630
13630
  transition: "all 0.2s ease",
13631
13631
  "&:hover": {
13632
13632
  bgcolor: "divider",
@@ -13649,7 +13649,7 @@ function km({
13649
13649
  px: 3,
13650
13650
  py: 1,
13651
13651
  minHeight: 36,
13652
- borderRadius: (M) => M.shape.borderRadius,
13652
+ borderRadius: (M) => `${M.shape.borderRadius}px`,
13653
13653
  boxShadow: (M) => ae(M, "restButton"),
13654
13654
  transition: "all 0.2s ease",
13655
13655
  "&:hover": {
@@ -13834,7 +13834,7 @@ function zm({
13834
13834
  bgcolor: "action.hover"
13835
13835
  },
13836
13836
  "&.Mui-selected": {
13837
- bgcolor: (h) => nt(h),
13837
+ bgcolor: (h) => ot(h),
13838
13838
  "&:hover": {
13839
13839
  bgcolor: (h) => E(h.palette.primary.main, 0.2)
13840
13840
  }
@@ -13854,7 +13854,7 @@ function zm({
13854
13854
  bgcolor: "action.hover"
13855
13855
  },
13856
13856
  "&.Mui-selected": {
13857
- bgcolor: (h) => nt(h),
13857
+ bgcolor: (h) => ot(h),
13858
13858
  "&:hover": {
13859
13859
  bgcolor: (h) => E(h.palette.primary.main, 0.2)
13860
13860
  }
@@ -13969,7 +13969,7 @@ function Em({ schema: e, sortStack: t, onUpdateSortStack: n, onClose: o }) {
13969
13969
  maxHeight: "min(440px, calc(100vh - 280px))",
13970
13970
  display: "flex",
13971
13971
  flexDirection: "column",
13972
- borderRadius: (x) => ot(x),
13972
+ borderRadius: (x) => Qe(x),
13973
13973
  bgcolor: "background.paper",
13974
13974
  outline: "none",
13975
13975
  boxShadow: (x) => ae(x, "menu"),
@@ -14134,7 +14134,7 @@ function Em({ schema: e, sortStack: t, onUpdateSortStack: n, onClose: o }) {
14134
14134
  bgcolor: "action.hover"
14135
14135
  },
14136
14136
  "&.Mui-selected": {
14137
- bgcolor: (z) => nt(z),
14137
+ bgcolor: (z) => ot(z),
14138
14138
  "&:hover": {
14139
14139
  bgcolor: (z) => E(z.palette.primary.main, 0.2)
14140
14140
  }
@@ -14287,7 +14287,7 @@ function Em({ schema: e, sortStack: t, onUpdateSortStack: n, onClose: o }) {
14287
14287
  px: 3,
14288
14288
  py: 1,
14289
14289
  minHeight: 36,
14290
- borderRadius: (x) => x.shape.borderRadius,
14290
+ borderRadius: (x) => `${x.shape.borderRadius}px`,
14291
14291
  transition: "all 0.2s ease",
14292
14292
  "&:hover": {
14293
14293
  bgcolor: "divider",
@@ -14310,7 +14310,7 @@ function Em({ schema: e, sortStack: t, onUpdateSortStack: n, onClose: o }) {
14310
14310
  px: 3,
14311
14311
  py: 1,
14312
14312
  minHeight: 36,
14313
- borderRadius: (x) => x.shape.borderRadius,
14313
+ borderRadius: (x) => `${x.shape.borderRadius}px`,
14314
14314
  boxShadow: (x) => ae(x, "restButton"),
14315
14315
  transition: "all 0.2s ease",
14316
14316
  "&:hover": {
@@ -14591,7 +14591,7 @@ function Im({
14591
14591
  PaperProps: {
14592
14592
  sx: {
14593
14593
  mt: 8,
14594
- borderRadius: ot(b),
14594
+ borderRadius: Qe(b),
14595
14595
  maxHeight: "min(640px, calc(100vh - 80px))",
14596
14596
  boxShadow: `0 8px 32px ${E(((x = f.common) == null ? void 0 : x.black) ?? "#000", 0.14)}`
14597
14597
  }
@@ -14612,7 +14612,7 @@ function Im({
14612
14612
  variant: "contained",
14613
14613
  startIcon: /* @__PURE__ */ r(cn, { sx: { fontSize: 16 } }),
14614
14614
  size: "small",
14615
- sx: { borderRadius: (i) => i.shape.borderRadius },
14615
+ sx: { borderRadius: (i) => `${i.shape.borderRadius}px` },
14616
14616
  children: "Create New View"
14617
14617
  }
14618
14618
  ) }),
@@ -14689,7 +14689,7 @@ function Im({
14689
14689
  variant: "contained",
14690
14690
  sx: {
14691
14691
  fontSize: "0.875rem",
14692
- borderRadius: (i) => i.shape.borderRadius,
14692
+ borderRadius: (i) => `${i.shape.borderRadius}px`,
14693
14693
  px: 3
14694
14694
  },
14695
14695
  children: "Close"
@@ -14736,7 +14736,7 @@ function Na({
14736
14736
  PaperProps: {
14737
14737
  sx: {
14738
14738
  mt: 8,
14739
- borderRadius: (z) => ot(z),
14739
+ borderRadius: (z) => Qe(z),
14740
14740
  boxShadow: (z) => ae(z, "menu")
14741
14741
  }
14742
14742
  },
@@ -14758,7 +14758,7 @@ function Na({
14758
14758
  " saved views. Delete an existing view before creating a new one."
14759
14759
  ] }),
14760
14760
  /* @__PURE__ */ r(
14761
- rt,
14761
+ nt,
14762
14762
  {
14763
14763
  label: "View Name",
14764
14764
  required: !0,
@@ -14778,7 +14778,7 @@ function Na({
14778
14778
  }
14779
14779
  ),
14780
14780
  /* @__PURE__ */ r(
14781
- rt,
14781
+ nt,
14782
14782
  {
14783
14783
  label: "Description (optional)",
14784
14784
  value: y,
@@ -14850,7 +14850,7 @@ function Na({
14850
14850
  px: 3,
14851
14851
  py: 0.875,
14852
14852
  minHeight: 36,
14853
- borderRadius: (z) => z.shape.borderRadius,
14853
+ borderRadius: (z) => `${z.shape.borderRadius}px`,
14854
14854
  transition: "all 0.2s ease",
14855
14855
  "&:hover": {
14856
14856
  bgcolor: "divider",
@@ -14874,7 +14874,7 @@ function Na({
14874
14874
  px: 3,
14875
14875
  py: 0.875,
14876
14876
  minHeight: 36,
14877
- borderRadius: (z) => z.shape.borderRadius,
14877
+ borderRadius: (z) => `${z.shape.borderRadius}px`,
14878
14878
  boxShadow: (z) => ae(z, "restButton"),
14879
14879
  transition: "all 0.2s ease",
14880
14880
  "&:hover": {
@@ -14914,7 +14914,7 @@ function Tm({
14914
14914
  fullWidth: !0,
14915
14915
  PaperProps: {
14916
14916
  sx: {
14917
- borderRadius: (o) => ot(o),
14917
+ borderRadius: (o) => Qe(o),
14918
14918
  maxHeight: "min(480px, calc(100vh - 180px))",
14919
14919
  my: "auto",
14920
14920
  boxShadow: (o) => ae(o, "menu")
@@ -14970,7 +14970,7 @@ function Tm({
14970
14970
  px: 3,
14971
14971
  py: 0.875,
14972
14972
  minHeight: 36,
14973
- borderRadius: (o) => o.shape.borderRadius,
14973
+ borderRadius: (o) => `${o.shape.borderRadius}px`,
14974
14974
  transition: "all 0.2s ease",
14975
14975
  "&:hover": {
14976
14976
  bgcolor: "action.selected",
@@ -14991,7 +14991,7 @@ function Tm({
14991
14991
  px: 3,
14992
14992
  py: 0.875,
14993
14993
  minHeight: 36,
14994
- borderRadius: (o) => o.shape.borderRadius,
14994
+ borderRadius: (o) => `${o.shape.borderRadius}px`,
14995
14995
  boxShadow: (o) => ae(o, "restButton"),
14996
14996
  transition: "all 0.2s ease",
14997
14997
  "&:hover": {
@@ -15151,7 +15151,7 @@ function Dm({
15151
15151
  ) }),
15152
15152
  /* @__PURE__ */ r(Be, { sx: { py: 1.5, px: 2.5, borderBottom: "none" }, children: /* @__PURE__ */ d(u, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
15153
15153
  /* @__PURE__ */ r(
15154
- rt,
15154
+ nt,
15155
15155
  {
15156
15156
  type: "number",
15157
15157
  value: p,
@@ -15291,7 +15291,7 @@ function Om({
15291
15291
  maxHeight: "min(760px, calc(100vh - 200px))",
15292
15292
  display: "flex",
15293
15293
  flexDirection: "column",
15294
- borderRadius: (H) => ot(H),
15294
+ borderRadius: (H) => Qe(H),
15295
15295
  bgcolor: "background.paper",
15296
15296
  outline: "none",
15297
15297
  boxShadow: (H) => ae(H, "menu"),
@@ -15435,7 +15435,7 @@ function Om({
15435
15435
  bgcolor: "action.hover"
15436
15436
  },
15437
15437
  "&.Mui-selected": {
15438
- bgcolor: (A) => nt(A),
15438
+ bgcolor: (A) => ot(A),
15439
15439
  "&:hover": {
15440
15440
  bgcolor: (A) => E(A.palette.primary.main, 0.2)
15441
15441
  }
@@ -15705,7 +15705,7 @@ function Om({
15705
15705
  px: 2.5,
15706
15706
  py: 0.875,
15707
15707
  minHeight: 36,
15708
- borderRadius: (H) => H.shape.borderRadius,
15708
+ borderRadius: (H) => `${H.shape.borderRadius}px`,
15709
15709
  "&:hover": {
15710
15710
  borderColor: "primary.main",
15711
15711
  bgcolor: "background.paper",
@@ -15736,7 +15736,7 @@ function Om({
15736
15736
  px: 2.5,
15737
15737
  py: 0.875,
15738
15738
  minHeight: 36,
15739
- borderRadius: (H) => H.shape.borderRadius,
15739
+ borderRadius: (H) => `${H.shape.borderRadius}px`,
15740
15740
  boxShadow: (H) => ae(H, "restButton"),
15741
15741
  transition: "all 0.2s ease",
15742
15742
  "&:hover": {
@@ -15771,7 +15771,7 @@ function Om({
15771
15771
  px: 2.5,
15772
15772
  py: 0.875,
15773
15773
  minHeight: 36,
15774
- borderRadius: (H) => H.shape.borderRadius,
15774
+ borderRadius: (H) => `${H.shape.borderRadius}px`,
15775
15775
  boxShadow: (H) => ae(H, "restButton"),
15776
15776
  transition: "all 0.2s ease",
15777
15777
  "&:hover": {
@@ -15873,7 +15873,7 @@ function Om({
15873
15873
  color: "text.secondary",
15874
15874
  px: 3,
15875
15875
  py: 1,
15876
- borderRadius: (H) => H.shape.borderRadius,
15876
+ borderRadius: (H) => `${H.shape.borderRadius}px`,
15877
15877
  "&:hover": {
15878
15878
  bgcolor: "divider",
15879
15879
  color: "text.primary"
@@ -15893,7 +15893,7 @@ function Om({
15893
15893
  color: "background.paper",
15894
15894
  px: 3,
15895
15895
  py: 1,
15896
- borderRadius: (H) => H.shape.borderRadius,
15896
+ borderRadius: (H) => `${H.shape.borderRadius}px`,
15897
15897
  boxShadow: (H) => ae(H, "pressedButton"),
15898
15898
  "&:hover": {
15899
15899
  bgcolor: "error.dark",
@@ -15921,7 +15921,7 @@ function Om({
15921
15921
  }
15922
15922
  ) });
15923
15923
  }
15924
- function _m({ schema: e, grouping: t, onApply: n, onClose: o }) {
15924
+ function $m({ schema: e, grouping: t, onApply: n, onClose: o }) {
15925
15925
  var R;
15926
15926
  const [a, l] = V(
15927
15927
  t || {
@@ -16021,7 +16021,7 @@ function _m({ schema: e, grouping: t, onApply: n, onClose: o }) {
16021
16021
  maxHeight: "min(560px, calc(100vh - 280px))",
16022
16022
  display: "flex",
16023
16023
  flexDirection: "column",
16024
- borderRadius: (I) => ot(I),
16024
+ borderRadius: (I) => Qe(I),
16025
16025
  bgcolor: "background.paper",
16026
16026
  outline: "none",
16027
16027
  boxShadow: (I) => ae(I, "menu"),
@@ -16169,7 +16169,7 @@ function _m({ schema: e, grouping: t, onApply: n, onClose: o }) {
16169
16169
  bgcolor: "action.hover"
16170
16170
  },
16171
16171
  "&.Mui-selected": {
16172
- bgcolor: (P) => nt(P),
16172
+ bgcolor: (P) => ot(P),
16173
16173
  "&:hover": {
16174
16174
  bgcolor: (P) => E(P.palette.primary.main, 0.2)
16175
16175
  }
@@ -16302,7 +16302,7 @@ function _m({ schema: e, grouping: t, onApply: n, onClose: o }) {
16302
16302
  sx: {
16303
16303
  fontSize: "0.875rem",
16304
16304
  "&.Mui-selected": {
16305
- bgcolor: (I) => nt(I)
16305
+ bgcolor: (I) => ot(I)
16306
16306
  }
16307
16307
  },
16308
16308
  children: [
@@ -16320,7 +16320,7 @@ function _m({ schema: e, grouping: t, onApply: n, onClose: o }) {
16320
16320
  sx: {
16321
16321
  fontSize: "0.875rem",
16322
16322
  "&.Mui-selected": {
16323
- bgcolor: (P) => nt(P)
16323
+ bgcolor: (P) => ot(P)
16324
16324
  }
16325
16325
  },
16326
16326
  children: [
@@ -16593,7 +16593,7 @@ function _m({ schema: e, grouping: t, onApply: n, onClose: o }) {
16593
16593
  px: 3,
16594
16594
  py: 1,
16595
16595
  minHeight: 36,
16596
- borderRadius: (I) => I.shape.borderRadius,
16596
+ borderRadius: (I) => `${I.shape.borderRadius}px`,
16597
16597
  transition: "all 0.2s ease",
16598
16598
  "&:hover": {
16599
16599
  bgcolor: "divider",
@@ -16616,7 +16616,7 @@ function _m({ schema: e, grouping: t, onApply: n, onClose: o }) {
16616
16616
  px: 3,
16617
16617
  py: 1,
16618
16618
  minHeight: 36,
16619
- borderRadius: (I) => I.shape.borderRadius,
16619
+ borderRadius: (I) => `${I.shape.borderRadius}px`,
16620
16620
  boxShadow: (I) => ae(I, "restButton"),
16621
16621
  transition: "all 0.2s ease",
16622
16622
  "&:hover": {
@@ -16640,7 +16640,7 @@ function _m({ schema: e, grouping: t, onApply: n, onClose: o }) {
16640
16640
  }
16641
16641
  );
16642
16642
  }
16643
- const $m = {
16643
+ const _m = {
16644
16644
  filters: ln,
16645
16645
  sorting: Bl,
16646
16646
  visibility: dn,
@@ -16667,7 +16667,7 @@ function Am({ changes: e, onClose: t }) {
16667
16667
  PaperProps: {
16668
16668
  sx: {
16669
16669
  mt: 8,
16670
- borderRadius: (o) => ot(o),
16670
+ borderRadius: (o) => Qe(o),
16671
16671
  boxShadow: (o) => ae(o, "menu")
16672
16672
  }
16673
16673
  },
@@ -16685,7 +16685,7 @@ function Am({ changes: e, onClose: t }) {
16685
16685
  /* @__PURE__ */ r(ct, { dividers: !0, children: e.length === 0 ? /* @__PURE__ */ r(u, { sx: { textAlign: "center", py: 4 }, children: /* @__PURE__ */ r(w, { variant: "body2", color: "text.secondary", children: "No changes detected" }) }) : /* @__PURE__ */ d(u, { children: [
16686
16686
  /* @__PURE__ */ r(w, { variant: "body2", color: "text.secondary", sx: { mb: 2 }, children: "The following modifications have been made to this view:" }),
16687
16687
  /* @__PURE__ */ r(u, { sx: { display: "flex", flexDirection: "column", gap: 1.5 }, children: e.map((o, a) => {
16688
- const l = $m[o.category];
16688
+ const l = _m[o.category];
16689
16689
  return /* @__PURE__ */ d(
16690
16690
  Ze,
16691
16691
  {
@@ -16749,7 +16749,7 @@ function Am({ changes: e, onClose: t }) {
16749
16749
  px: 3,
16750
16750
  py: 0.875,
16751
16751
  minHeight: 36,
16752
- borderRadius: (o) => o.shape.borderRadius,
16752
+ borderRadius: (o) => `${o.shape.borderRadius}px`,
16753
16753
  boxShadow: (o) => ae(o, "restButton"),
16754
16754
  transition: "all 0.2s ease",
16755
16755
  "&:hover": {
@@ -16786,7 +16786,7 @@ function Rm({
16786
16786
  sx: {
16787
16787
  width: "100%",
16788
16788
  flexShrink: 0,
16789
- bgcolor: (p) => nt(p),
16789
+ bgcolor: (p) => ot(p),
16790
16790
  borderBottom: (p) => `1px solid ${E(p.palette.primary.main, 0.3)}`,
16791
16791
  zIndex: 10
16792
16792
  },
@@ -16965,7 +16965,7 @@ function Nm({
16965
16965
  maxHeight: "min(700px, calc(100vh - 80px))",
16966
16966
  display: "flex",
16967
16967
  flexDirection: "column",
16968
- borderRadius: ot(o),
16968
+ borderRadius: Qe(o),
16969
16969
  bgcolor: "background.paper",
16970
16970
  overflow: "hidden",
16971
16971
  boxShadow: `0 8px 32px ${E(((v = a.common) == null ? void 0 : v.black) ?? "#000", 0.14)}, 0 2px 8px ${E(((C = a.common) == null ? void 0 : C.black) ?? "#000", 0.08)}`,
@@ -17360,7 +17360,7 @@ function Lm({ onSave: e, onClose: t }) {
17360
17360
  maxHeight: "min(480px, calc(100vh - 280px))",
17361
17361
  display: "flex",
17362
17362
  flexDirection: "column",
17363
- borderRadius: (i) => ot(i),
17363
+ borderRadius: (i) => Qe(i),
17364
17364
  bgcolor: "background.paper",
17365
17365
  outline: "none",
17366
17366
  boxShadow: (i) => ae(i, "menu"),
@@ -17455,7 +17455,7 @@ function Lm({ onSave: e, onClose: t }) {
17455
17455
  sx: {
17456
17456
  borderRadius: "8px",
17457
17457
  border: (i) => `1px solid ${E(i.palette.primary.main, 0.3)}`,
17458
- bgcolor: (i) => nt(i),
17458
+ bgcolor: (i) => ot(i),
17459
17459
  "& .MuiAlert-icon": {
17460
17460
  color: "primary.main"
17461
17461
  },
@@ -17498,7 +17498,7 @@ function Lm({ onSave: e, onClose: t }) {
17498
17498
  }
17499
17499
  ),
17500
17500
  /* @__PURE__ */ r(
17501
- rt,
17501
+ nt,
17502
17502
  {
17503
17503
  required: !0,
17504
17504
  value: n,
@@ -17559,7 +17559,7 @@ function Lm({ onSave: e, onClose: t }) {
17559
17559
  }
17560
17560
  ),
17561
17561
  /* @__PURE__ */ r(
17562
- rt,
17562
+ nt,
17563
17563
  {
17564
17564
  value: a,
17565
17565
  onChange: (i) => l(i.target.value),
@@ -17612,7 +17612,7 @@ function Lm({ onSave: e, onClose: t }) {
17612
17612
  ),
17613
17613
  /* @__PURE__ */ d(u, { sx: { display: "flex", gap: 1, alignItems: "flex-start" }, children: [
17614
17614
  /* @__PURE__ */ r(
17615
- rt,
17615
+ nt,
17616
17616
  {
17617
17617
  value: c,
17618
17618
  onChange: (i) => z(i.target.value),
@@ -17669,7 +17669,7 @@ function Lm({ onSave: e, onClose: t }) {
17669
17669
  px: 2,
17670
17670
  py: 1.25,
17671
17671
  minHeight: 40,
17672
- borderRadius: (i) => i.shape.borderRadius,
17672
+ borderRadius: (i) => `${i.shape.borderRadius}px`,
17673
17673
  flexShrink: 0,
17674
17674
  "&:hover": {
17675
17675
  borderColor: "primary.main",
@@ -17687,7 +17687,7 @@ function Lm({ onSave: e, onClose: t }) {
17687
17687
  onDelete: () => C(i),
17688
17688
  deleteIcon: /* @__PURE__ */ r(Ut, { sx: { fontSize: 16 } }),
17689
17689
  sx: {
17690
- bgcolor: (R) => nt(R),
17690
+ bgcolor: (R) => ot(R),
17691
17691
  color: "primary.main",
17692
17692
  fontSize: "0.8125rem",
17693
17693
  height: 28,
@@ -17744,7 +17744,7 @@ function Lm({ onSave: e, onClose: t }) {
17744
17744
  px: 3,
17745
17745
  py: 1,
17746
17746
  minHeight: 36,
17747
- borderRadius: (i) => i.shape.borderRadius,
17747
+ borderRadius: (i) => `${i.shape.borderRadius}px`,
17748
17748
  transition: "all 0.2s ease",
17749
17749
  "&:hover": {
17750
17750
  bgcolor: "divider",
@@ -17767,7 +17767,7 @@ function Lm({ onSave: e, onClose: t }) {
17767
17767
  px: 3,
17768
17768
  py: 1,
17769
17769
  minHeight: 36,
17770
- borderRadius: (i) => i.shape.borderRadius,
17770
+ borderRadius: (i) => `${i.shape.borderRadius}px`,
17771
17771
  boxShadow: (i) => ae(i, "restButton"),
17772
17772
  transition: "all 0.2s ease",
17773
17773
  "&:hover": {
@@ -17864,7 +17864,7 @@ function Fm({
17864
17864
  maxHeight: "min(720px, calc(100vh - 200px))",
17865
17865
  display: "flex",
17866
17866
  flexDirection: "column",
17867
- borderRadius: (p) => ot(p),
17867
+ borderRadius: (p) => Qe(p),
17868
17868
  bgcolor: "background.paper",
17869
17869
  outline: "none",
17870
17870
  boxShadow: (p) => ae(p, "menu"),
@@ -18110,7 +18110,7 @@ function Fm({
18110
18110
  borderColor: "divider",
18111
18111
  px: 1.5,
18112
18112
  py: 0.75,
18113
- borderRadius: (m) => m.shape.borderRadius,
18113
+ borderRadius: (m) => `${m.shape.borderRadius}px`,
18114
18114
  "&:hover": {
18115
18115
  borderColor: "error.main",
18116
18116
  bgcolor: (m) => E(m.palette.error.main, 0.04)
@@ -18149,7 +18149,7 @@ function Fm({
18149
18149
  px: 3,
18150
18150
  py: 0.875,
18151
18151
  minHeight: 36,
18152
- borderRadius: (p) => p.shape.borderRadius,
18152
+ borderRadius: (p) => `${p.shape.borderRadius}px`,
18153
18153
  boxShadow: (p) => ae(p, "restButton"),
18154
18154
  transition: "all 0.2s ease",
18155
18155
  "&:hover": {
@@ -18433,7 +18433,7 @@ function Km({
18433
18433
  maxHeight: "min(680px, calc(100vh - 180px))",
18434
18434
  display: "flex",
18435
18435
  flexDirection: "column",
18436
- borderRadius: ot(b),
18436
+ borderRadius: Qe(b),
18437
18437
  bgcolor: "background.paper",
18438
18438
  overflow: "hidden",
18439
18439
  boxShadow: `0 8px 32px ${E(((N = f.common) == null ? void 0 : N.black) ?? "#000", 0.14)}, 0 2px 8px ${E(((U = f.common) == null ? void 0 : U.black) ?? "#000", 0.08)}`,
@@ -18907,7 +18907,7 @@ function Zm({
18907
18907
  class Qm extends wl {
18908
18908
  constructor(n) {
18909
18909
  super(n);
18910
- _n(this, "handleReset", () => {
18910
+ $n(this, "handleReset", () => {
18911
18911
  this.setState({
18912
18912
  hasError: !1,
18913
18913
  error: null
@@ -18925,7 +18925,7 @@ class Qm extends wl {
18925
18925
  };
18926
18926
  }
18927
18927
  componentDidCatch(n, o) {
18928
- $r.error("urm:error-boundary", "Caught unhandled component error", n, o), this.props.onError && this.props.onError(n, o);
18928
+ _r.error("urm:error-boundary", "Caught unhandled component error", n, o), this.props.onError && this.props.onError(n, o);
18929
18929
  }
18930
18930
  render() {
18931
18931
  var n, o;
@@ -19083,7 +19083,7 @@ function nf({ open: e, onClose: t, config: n, onApply: o }) {
19083
19083
  TransitionProps: { onEnter: p },
19084
19084
  PaperProps: {
19085
19085
  sx: {
19086
- borderRadius: (C) => ot(C),
19086
+ borderRadius: (C) => Qe(C),
19087
19087
  maxHeight: "min(680px, calc(100vh - 180px))",
19088
19088
  my: "auto",
19089
19089
  display: "flex",
@@ -19170,7 +19170,7 @@ function nf({ open: e, onClose: t, config: n, onApply: o }) {
19170
19170
  ),
19171
19171
  /* @__PURE__ */ r(w, { variant: "caption", color: "text.secondary", sx: { display: "block", mb: 2 }, children: "Users can sort by at most this many columns simultaneously." }),
19172
19172
  /* @__PURE__ */ r(
19173
- $n,
19173
+ _n,
19174
19174
  {
19175
19175
  value: c.sort.maxLevels,
19176
19176
  onChange: (C, S) => b.sort({ maxLevels: S }),
@@ -19212,7 +19212,7 @@ function nf({ open: e, onClose: t, config: n, onApply: o }) {
19212
19212
  ),
19213
19213
  /* @__PURE__ */ r(w, { variant: "caption", color: "text.secondary", sx: { display: "block", mb: 2 }, children: "Users can apply at most this many simultaneous filter conditions." }),
19214
19214
  /* @__PURE__ */ r(
19215
- $n,
19215
+ _n,
19216
19216
  {
19217
19217
  value: c.filter.maxConditions,
19218
19218
  onChange: (C, S) => b.filter({ maxConditions: S }),
@@ -19286,7 +19286,7 @@ function nf({ open: e, onClose: t, config: n, onApply: o }) {
19286
19286
  ),
19287
19287
  /* @__PURE__ */ r(w, { variant: "caption", color: "text.secondary", sx: { display: "block", mb: 2 }, children: "Users cannot make more than this many columns visible simultaneously." }),
19288
19288
  /* @__PURE__ */ r(
19289
- $n,
19289
+ _n,
19290
19290
  {
19291
19291
  value: c.columns.maxVisible,
19292
19292
  onChange: (C, S) => b.columns({ maxVisible: S }),
@@ -19313,7 +19313,7 @@ function nf({ open: e, onClose: t, config: n, onApply: o }) {
19313
19313
  }
19314
19314
  ),
19315
19315
  /* @__PURE__ */ r(
19316
- $n,
19316
+ _n,
19317
19317
  {
19318
19318
  value: c.columns.minColumnWidth,
19319
19319
  onChange: (C, S) => b.columns({ minColumnWidth: S }),
@@ -19336,7 +19336,7 @@ function nf({ open: e, onClose: t, config: n, onApply: o }) {
19336
19336
  }
19337
19337
  ),
19338
19338
  /* @__PURE__ */ r(
19339
- $n,
19339
+ _n,
19340
19340
  {
19341
19341
  value: c.columns.maxColumnWidth,
19342
19342
  onChange: (C, S) => b.columns({ maxColumnWidth: S }),
@@ -19690,7 +19690,7 @@ function pf({
19690
19690
  /* @__PURE__ */ r(w, { variant: "body2", sx: { fontWeight: 600 }, children: t ? "Edit schedule" : "New schedule" })
19691
19691
  ] }),
19692
19692
  /* @__PURE__ */ r(
19693
- rt,
19693
+ nt,
19694
19694
  {
19695
19695
  label: "Schedule name *",
19696
19696
  size: "small",
@@ -19737,7 +19737,7 @@ function pf({
19737
19737
  )
19738
19738
  ] }),
19739
19739
  a.frequency === "monthly" && /* @__PURE__ */ r(
19740
- rt,
19740
+ nt,
19741
19741
  {
19742
19742
  label: "Day of month (1–28)",
19743
19743
  size: "small",
@@ -19752,7 +19752,7 @@ function pf({
19752
19752
  }
19753
19753
  ),
19754
19754
  /* @__PURE__ */ r(
19755
- rt,
19755
+ nt,
19756
19756
  {
19757
19757
  label: "Time",
19758
19758
  size: "small",
@@ -19820,7 +19820,7 @@ function pf({
19820
19820
  ] }),
19821
19821
  /* @__PURE__ */ d(u, { children: [
19822
19822
  /* @__PURE__ */ r(
19823
- rt,
19823
+ nt,
19824
19824
  {
19825
19825
  label: "Email reminder (optional)",
19826
19826
  size: "small",
@@ -19934,7 +19934,7 @@ function mf({ scheduleName: e, onConfirm: t, onCancel: n }) {
19934
19934
  sx: {
19935
19935
  fontSize: "0.8125rem",
19936
19936
  color: "text.secondary",
19937
- borderRadius: (o) => o.shape.borderRadius,
19937
+ borderRadius: (o) => `${o.shape.borderRadius}px`,
19938
19938
  "&:hover": { bgcolor: "action.hover" }
19939
19939
  },
19940
19940
  children: "Cancel"
@@ -19948,7 +19948,7 @@ function mf({ scheduleName: e, onConfirm: t, onCancel: n }) {
19948
19948
  color: "error",
19949
19949
  sx: {
19950
19950
  fontSize: "0.8125rem",
19951
- borderRadius: (o) => o.shape.borderRadius,
19951
+ borderRadius: (o) => `${o.shape.borderRadius}px`,
19952
19952
  px: 2
19953
19953
  },
19954
19954
  children: "Delete"
@@ -20223,7 +20223,7 @@ function hf({
20223
20223
  disableEscapeKeyDown: i,
20224
20224
  PaperProps: {
20225
20225
  sx: {
20226
- borderRadius: (I) => ot(I),
20226
+ borderRadius: (I) => Qe(I),
20227
20227
  maxHeight: "min(680px, calc(100vh - 180px))",
20228
20228
  my: "auto",
20229
20229
  display: "flex",
@@ -20531,7 +20531,7 @@ The file has been downloaded to your device.`
20531
20531
  }
20532
20532
  (P = (I = b.current).onFired) == null || P.call(I, y);
20533
20533
  } catch (K) {
20534
- $r.error("urm:scheduler", `Export failed for schedule: ${y.name}`, K);
20534
+ _r.error("urm:scheduler", `Export failed for schedule: ${y.name}`, K);
20535
20535
  }
20536
20536
  }, []);
20537
20537
  Ce(() => {
@@ -20563,7 +20563,7 @@ The file has been downloaded to your device.`
20563
20563
  }, [e, f]);
20564
20564
  }
20565
20565
  function qs({ reportEngine: e }) {
20566
- var Ue, $t, zr, Tn, er;
20566
+ var Ue, _t, zr, Tn, er;
20567
20567
  const {
20568
20568
  activeReport: t,
20569
20569
  // Table data
@@ -20638,7 +20638,7 @@ function qs({ reportEngine: e }) {
20638
20638
  // Search
20639
20639
  searchQuery: St,
20640
20640
  searchHistory: It,
20641
- handleSearchChange: Qe,
20641
+ handleSearchChange: et,
20642
20642
  handleAddToSearchHistory: Vr,
20643
20643
  handleToggleSearchFavourite: mn,
20644
20644
  handleDeleteSearchHistory: xr,
@@ -20662,7 +20662,7 @@ function qs({ reportEngine: e }) {
20662
20662
  showDirtyExportWarning: Dt,
20663
20663
  handleExport: j,
20664
20664
  handleExportWithConfig: pt,
20665
- handleExportSelected: _e,
20665
+ handleExportSelected: $e,
20666
20666
  handleExportAnyway: at,
20667
20667
  handleSaveAndExport: xn,
20668
20668
  handleCancelExport: br,
@@ -20677,7 +20677,7 @@ function qs({ reportEngine: e }) {
20677
20677
  generatedPreset: qe,
20678
20678
  activePreset: te,
20679
20679
  handleOpenManagePresets: Zt,
20680
- handleCreatePreset: $e,
20680
+ handleCreatePreset: _e,
20681
20681
  handleCopyPresetLink: Ae,
20682
20682
  handleOpenPreset: Ot,
20683
20683
  handleClearActivePreset: Hr,
@@ -20695,9 +20695,9 @@ function qs({ reportEngine: e }) {
20695
20695
  setReportError: Cr,
20696
20696
  handleError: wt,
20697
20697
  // Update report
20698
- updateReport: _t,
20698
+ updateReport: $t,
20699
20699
  // Snackbar
20700
- showSnack: et,
20700
+ showSnack: tt,
20701
20701
  // Row favorites
20702
20702
  favoriteRowIndices: Nt,
20703
20703
  resolvedFavoritesSet: qr,
@@ -20714,43 +20714,43 @@ function qs({ reportEngine: e }) {
20714
20714
  schema: (t == null ? void 0 : t.schema) || [],
20715
20715
  activeView: s,
20716
20716
  columnVisibility: (t == null ? void 0 : t.columnVisibility) || ((Ue = s == null ? void 0 : s.snapshot) == null ? void 0 : Ue.columnVisibility) || {},
20717
- columnOrder: (t == null ? void 0 : t.columnOrder) || (($t = s == null ? void 0 : s.snapshot) == null ? void 0 : $t.columnOrder) || [],
20717
+ columnOrder: (t == null ? void 0 : t.columnOrder) || ((_t = s == null ? void 0 : s.snapshot) == null ? void 0 : _t.columnOrder) || [],
20718
20718
  filters: (t == null ? void 0 : t.filters) || [],
20719
20719
  sortStack: (t == null ? void 0 : t.sortStack) || [],
20720
20720
  onFired: (ge) => {
20721
- et(`Scheduled export "${ge.name}" completed`, "success");
20721
+ tt(`Scheduled export "${ge.name}" completed`, "success");
20722
20722
  }
20723
20723
  });
20724
20724
  const kn = L(
20725
20725
  (ge, Se) => {
20726
20726
  if (!(t != null && t.uploadedData)) return;
20727
20727
  const Je = [...t.uploadedData];
20728
- Je[ge] = Se, _t(t.id, { uploadedData: Je });
20728
+ Je[ge] = Se, $t(t.id, { uploadedData: Je });
20729
20729
  },
20730
- [t, _t]
20730
+ [t, $t]
20731
20731
  ), zn = L(
20732
20732
  (ge) => {
20733
20733
  if (!(t != null && t.uploadedData)) return;
20734
20734
  const Se = t.uploadedData.indexOf(ge);
20735
20735
  if (Se === -1) return;
20736
20736
  const Je = t.uploadedData.filter((q, ye) => ye !== Se), O = (t.favoriteRowIndices || []).filter((q) => q !== Se).map((q) => q > Se ? q - 1 : q);
20737
- _t(t.id, { uploadedData: Je, favoriteRowIndices: O }), Br(ge);
20737
+ $t(t.id, { uploadedData: Je, favoriteRowIndices: O }), Br(ge);
20738
20738
  },
20739
- [t, _t, Br]
20739
+ [t, $t, Br]
20740
20740
  ), En = L(
20741
20741
  (ge, Se) => {
20742
20742
  if (!(t != null && t.uploadedData)) return;
20743
20743
  const Je = t.uploadedData.indexOf(Se), O = Je !== -1 ? Je + 1 : ge + 1, q = [...t.uploadedData];
20744
20744
  q.splice(O, 0, { ...Se });
20745
- const tt = (t.favoriteRowIndices ?? []).map(
20745
+ const rt = (t.favoriteRowIndices ?? []).map(
20746
20746
  (fe) => fe >= O ? fe + 1 : fe
20747
20747
  );
20748
- _t(t.id, {
20748
+ $t(t.id, {
20749
20749
  uploadedData: q,
20750
- favoriteRowIndices: tt
20750
+ favoriteRowIndices: rt
20751
20751
  });
20752
20752
  },
20753
- [t, _t]
20753
+ [t, $t]
20754
20754
  ), ur = Mr(), { handleDevConfigChange: Kr } = Di(), [In, kr] = V(!1);
20755
20755
  return Ce(() => {
20756
20756
  const ge = (Se) => {
@@ -20863,12 +20863,12 @@ function qs({ reportEngine: e }) {
20863
20863
  onToggleSearchFavourite: mn,
20864
20864
  onDeleteSearchHistory: xr,
20865
20865
  selectedRowIds: Wt,
20866
- onSearchChange: Qe,
20866
+ onSearchChange: et,
20867
20867
  onToggleRowSelection: qt,
20868
20868
  onToggleAllRows: Fr,
20869
20869
  onRangeSelection: Jt,
20870
20870
  onClearSelection: Xn,
20871
- onExportSelected: _e,
20871
+ onExportSelected: $e,
20872
20872
  currentPage: (Tt == null ? void 0 : Tt.currentPage) || fn,
20873
20873
  pageSize: (Tt == null ? void 0 : Tt.pageSize) || Kt,
20874
20874
  onPageChange: hn,
@@ -21036,7 +21036,7 @@ function qs({ reportEngine: e }) {
21036
21036
  wt(Se);
21037
21037
  },
21038
21038
  children: /* @__PURE__ */ r(
21039
- _m,
21039
+ $m,
21040
21040
  {
21041
21041
  schema: t.schema,
21042
21042
  grouping: t.grouping || null,
@@ -21053,7 +21053,7 @@ function qs({ reportEngine: e }) {
21053
21053
  onClose: () => cr(!1)
21054
21054
  }
21055
21055
  ),
21056
- vr && /* @__PURE__ */ r(Lm, { onSave: $e, onClose: () => Sr(!1) }),
21056
+ vr && /* @__PURE__ */ r(Lm, { onSave: _e, onClose: () => Sr(!1) }),
21057
21057
  yn && /* @__PURE__ */ r(
21058
21058
  Fm,
21059
21059
  {
@@ -21109,7 +21109,7 @@ function qs({ reportEngine: e }) {
21109
21109
  t.columnVisibility,
21110
21110
  t.columnOrder
21111
21111
  );
21112
- ge.format === "csv" && xo(Je, ge.name), ge.format === "excel" && yo(Je, ge.name), ge.format === "json" && bo(Je, ge.name), et(`"${ge.name}" exported successfully`, "success");
21112
+ ge.format === "csv" && xo(Je, ge.name), ge.format === "excel" && yo(Je, ge.name), ge.format === "json" && bo(Je, ge.name), tt(`"${ge.name}" exported successfully`, "success");
21113
21113
  }
21114
21114
  }
21115
21115
  ),
@@ -21169,7 +21169,7 @@ function yf({ hasExternalData: e = !1 }) {
21169
21169
  } = t, T = e && l === "uploading" && n.length === 0;
21170
21170
  return /* @__PURE__ */ d(u, { sx: { height: "100%", display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
21171
21171
  /* @__PURE__ */ r(
21172
- _d,
21172
+ $d,
21173
21173
  {
21174
21174
  onCreateReport: () => m(!0),
21175
21175
  reports: n,