@nithishdts001/universal-report-module 1.0.1 → 1.0.2

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,5 +1,5 @@
1
1
  import { jsx as h, jsxs as C, Fragment as Jr } from "react/jsx-runtime";
2
- import * as je from "react";
2
+ import * as Ge from "react";
3
3
  import _e, { useMemo as Qe, useState as Ee, useCallback as Ae, useRef as vr, useEffect as jt, createContext as M0, useContext as L0, forwardRef as B0, createElement as io, memo as kh, useLayoutEffect as Ih, isValidElement as Fh, cloneElement as Al, Component as Nh } from "react";
4
4
  import Rh, { createPortal as $0 } from "react-dom";
5
5
  import { Global as Ph, ThemeContext as U0 } from "@emotion/react";
@@ -1616,10 +1616,10 @@ var Rp = /* @__PURE__ */ (function() {
1616
1616
  X[be] = xe;
1617
1617
  var Be = l(y, b);
1618
1618
  m(G, k, Be, b, X);
1619
- var Ke = T(Be, Y, X, b);
1620
- Ke[Y].name = "!Directory", O > 0 && ne !== j && (Ke[ne].name = "!MiniFAT"), Ke[X[0]].name = "!FAT", Ke.fat_addrs = X, Ke.ssz = b;
1619
+ var ze = T(Be, Y, X, b);
1620
+ ze[Y].name = "!Directory", O > 0 && ne !== j && (ze[ne].name = "!MiniFAT"), ze[X[0]].name = "!FAT", ze.fat_addrs = X, ze.ssz = b;
1621
1621
  var qe = {}, Jt = [], Pn = [], Mn = [];
1622
- E(Y, Ke, Be, Jt, O, qe, Pn, ne), x(Pn, Mn, Jt), Jt.shift();
1622
+ E(Y, ze, Be, Jt, O, qe, Pn, ne), x(Pn, Mn, Jt), Jt.shift();
1623
1623
  var Ln = {
1624
1624
  FileIndex: Pn,
1625
1625
  FullPaths: Mn
@@ -1732,8 +1732,8 @@ var Rp = /* @__PURE__ */ (function() {
1732
1732
  size: 0
1733
1733
  }, Be = xe.read_shift(2) + xe.read_shift(2) + xe.read_shift(2) + xe.read_shift(2);
1734
1734
  Be !== 0 && (be.ct = D(xe, xe.l - 8));
1735
- var Ke = xe.read_shift(2) + xe.read_shift(2) + xe.read_shift(2) + xe.read_shift(2);
1736
- Ke !== 0 && (be.mt = D(xe, xe.l - 8)), be.start = xe.read_shift(4, "i"), be.size = xe.read_shift(4, "i"), be.size < 0 && be.start < 0 && (be.size = be.type = 0, be.start = j, be.name = ""), be.type === 5 ? (G = be.start, O > 0 && G !== j && (A[G].name = "!StreamData")) : be.size >= 4096 ? (be.storage = "fat", A[be.start] === void 0 && (A[be.start] = w(S, be.start, A.fat_addrs, A.ssz)), A[be.start].name = be.name, be.content = A[be.start].data.slice(0, be.size)) : (be.storage = "minifat", be.size < 0 ? be.size = 0 : G !== j && be.start !== j && A[G] && (be.content = p(be, A[G].data, (A[ne] || {}).data))), be.content && Nr(be.content, 0), k[Ce] = be, Y.push(be);
1735
+ var ze = xe.read_shift(2) + xe.read_shift(2) + xe.read_shift(2) + xe.read_shift(2);
1736
+ ze !== 0 && (be.mt = D(xe, xe.l - 8)), be.start = xe.read_shift(4, "i"), be.size = xe.read_shift(4, "i"), be.size < 0 && be.start < 0 && (be.size = be.type = 0, be.start = j, be.name = ""), be.type === 5 ? (G = be.start, O > 0 && G !== j && (A[G].name = "!StreamData")) : be.size >= 4096 ? (be.storage = "fat", A[be.start] === void 0 && (A[be.start] = w(S, be.start, A.fat_addrs, A.ssz)), A[be.start].name = be.name, be.content = A[be.start].data.slice(0, be.size)) : (be.storage = "minifat", be.size < 0 ? be.size = 0 : G !== j && be.start !== j && A[G] && (be.content = p(be, A[G].data, (A[ne] || {}).data))), be.content && Nr(be.content, 0), k[Ce] = be, Y.push(be);
1737
1737
  }
1738
1738
  }
1739
1739
  function D(y, A) {
@@ -1829,9 +1829,9 @@ var Rp = /* @__PURE__ */ (function() {
1829
1829
  }
1830
1830
  var b = (function(Ce) {
1831
1831
  for (var xe = 0, be = 0, Be = 0; Be < Ce.FileIndex.length; ++Be) {
1832
- var Ke = Ce.FileIndex[Be];
1833
- if (Ke.content) {
1834
- var qe = Ke.content.length;
1832
+ var ze = Ce.FileIndex[Be];
1833
+ if (ze.content) {
1834
+ var qe = ze.content.length;
1835
1835
  qe > 0 && (qe < 4096 ? xe += qe + 63 >> 6 : be += qe + 511 >> 9);
1836
1836
  }
1837
1837
  }
@@ -2111,8 +2111,8 @@ var Rp = /* @__PURE__ */ (function() {
2111
2111
  for (; ne[be + Be] == ne[K + Be] && Be < 250; ) ++Be;
2112
2112
  if (Be > 2) {
2113
2113
  xe = O[Be], xe <= 22 ? X = bt(G, X, te[xe + 1] >> 1) - 1 : (bt(G, X, 3), X += 5, bt(G, X, te[xe - 23] >> 5), X += 3);
2114
- var Ke = xe < 8 ? 0 : xe - 4 >> 2;
2115
- Ke > 0 && (ct(G, X, Be - V[xe]), X += Ke), xe = A[K - be], X = bt(G, X, te[xe] >> 3), X -= 3;
2114
+ var ze = xe < 8 ? 0 : xe - 4 >> 2;
2115
+ ze > 0 && (ct(G, X, Be - V[xe]), X += ze), xe = A[K - be], X = bt(G, X, te[xe] >> 3), X -= 3;
2116
2116
  var qe = xe < 4 ? 0 : xe - 2 >> 1;
2117
2117
  qe > 0 && (ct(G, X, K - be - le[xe]), X += qe);
2118
2118
  for (var Jt = 0; Jt < Be; ++Jt)
@@ -2168,10 +2168,10 @@ var Rp = /* @__PURE__ */ (function() {
2168
2168
  Be.push(Ce), G < Ce && (G = Ce);
2169
2169
  break;
2170
2170
  }
2171
- var Ke = Be.slice(0, S), qe = Be.slice(S);
2172
- for (we = S; we < 286; ++we) Ke[we] = 0;
2171
+ var ze = Be.slice(0, S), qe = Be.slice(S);
2172
+ for (we = S; we < 286; ++we) ze[we] = 0;
2173
2173
  for (we = b; we < 30; ++we) qe[we] = 0;
2174
- return Ft = tr(Ke, it, 286), Tr = tr(qe, Et, 30), A;
2174
+ return Ft = tr(ze, it, 286), Tr = tr(qe, Et, 30), A;
2175
2175
  }
2176
2176
  function st(y, A) {
2177
2177
  if (y[0] == 3 && !(y[1] & 3))
@@ -2271,14 +2271,14 @@ var Rp = /* @__PURE__ */ (function() {
2271
2271
  default:
2272
2272
  throw new Error("Unsupported ZIP Compression method " + Y);
2273
2273
  }
2274
- var Ke = !1;
2275
- k & 8 && (G = y.read_shift(4), G == 134695760 && (G = y.read_shift(4), Ke = !0), X = y.read_shift(4), K = y.read_shift(4)), X != A && ir(Ke, "Bad compressed size: " + A + " != " + X), K != S && ir(Ke, "Bad uncompressed size: " + S + " != " + K), Te(b, Ce, Be, { unsafe: !0, mt: ne });
2274
+ var ze = !1;
2275
+ k & 8 && (G = y.read_shift(4), G == 134695760 && (G = y.read_shift(4), ze = !0), X = y.read_shift(4), K = y.read_shift(4)), X != A && ir(ze, "Bad compressed size: " + A + " != " + X), K != S && ir(ze, "Bad uncompressed size: " + S + " != " + K), Te(b, Ce, Be, { unsafe: !0, mt: ne });
2276
2276
  }
2277
2277
  function ur(y, A) {
2278
2278
  var S = A || {}, b = [], O = [], k = re(1), Y = S.compression ? 8 : 0, ne = 0, G = 0, X = 0, K = 0, me = 0, we = y.FullPaths[0], Ce = we, xe = y.FileIndex[0], be = [], Be = 0;
2279
2279
  for (G = 1; G < y.FullPaths.length; ++G)
2280
2280
  if (Ce = y.FullPaths[G].slice(we.length), xe = y.FileIndex[G], !(!xe.size || !xe.content || Ce == "Sh33tJ5")) {
2281
- var Ke = K, qe = re(Ce.length);
2281
+ var ze = K, qe = re(Ce.length);
2282
2282
  for (X = 0; X < Ce.length; ++X) qe.write_shift(1, Ce.charCodeAt(X) & 127);
2283
2283
  qe = qe.slice(0, qe.l), be[me] = Rp.buf(
2284
2284
  /*::((*/
@@ -2294,7 +2294,7 @@ var Rp = /* @__PURE__ */ (function() {
2294
2294
  4,
2295
2295
  /*::(*/
2296
2296
  xe.content.length
2297
- ), k.write_shift(2, qe.length), k.write_shift(2, 0), k.write_shift(2, 0), k.write_shift(2, 0), k.write_shift(2, 0), k.write_shift(4, 0), k.write_shift(4, Ke), Be += k.l, O.push(k), Be += qe.length, O.push(qe), ++me;
2297
+ ), k.write_shift(2, qe.length), k.write_shift(2, 0), k.write_shift(2, 0), k.write_shift(2, 0), k.write_shift(2, 0), k.write_shift(4, 0), k.write_shift(4, ze), Be += k.l, O.push(k), Be += qe.length, O.push(qe), ++me;
2298
2298
  }
2299
2299
  return k = re(22), k.write_shift(4, 101010256), k.write_shift(2, 0), k.write_shift(2, 0), k.write_shift(2, me), k.write_shift(2, me), k.write_shift(4, Be), k.write_shift(4, K), k.write_shift(2, 0), or([or(b), or(O), k]);
2300
2300
  }
@@ -2461,7 +2461,7 @@ var Rp = /* @__PURE__ */ (function() {
2461
2461
  }
2462
2462
  return !1;
2463
2463
  }
2464
- function Xe(y) {
2464
+ function Ke(y) {
2465
2465
  M(y, !0);
2466
2466
  }
2467
2467
  return t.find = W, t.read = z, t.parse = u, t.write = oe, t.writeFile = Ie, t.utils = {
@@ -2469,7 +2469,7 @@ var Rp = /* @__PURE__ */ (function() {
2469
2469
  cfb_add: Te,
2470
2470
  cfb_del: pe,
2471
2471
  cfb_mov: De,
2472
- cfb_gc: Xe,
2472
+ cfb_gc: Ke,
2473
2473
  ReadShift: $i,
2474
2474
  CheckField: Af,
2475
2475
  prep_blob: Nr,
@@ -2643,7 +2643,7 @@ function Yi(e) {
2643
2643
  } else if (s.match(/[a-z]/)) return r;
2644
2644
  return n < 0 || n > 8099 ? r : (i > 0 || a > 1) && n != 101 ? t : e.match(/[^-0-9:,\/\\]/) ? r : t;
2645
2645
  }
2646
- function Ye(e, t, r) {
2646
+ function Xe(e, t, r) {
2647
2647
  if (e.FullPaths) {
2648
2648
  if (typeof r == "string") {
2649
2649
  var n;
@@ -14910,12 +14910,12 @@ var x2 = /* @__PURE__ */ (function() {
14910
14910
  function Tu(e, t) {
14911
14911
  if (t.bookType == "fods") return mc(e, t);
14912
14912
  var r = Fo(), n = "", i = [], a = [];
14913
- return n = "mimetype", Ye(r, n, "application/vnd.oasis.opendocument.spreadsheet"), n = "content.xml", Ye(r, n, mc(e, t)), i.push([n, "text/xml"]), a.push([n, "ContentFile"]), n = "styles.xml", Ye(r, n, x2(e, t)), i.push([n, "text/xml"]), a.push([n, "StylesFile"]), n = "meta.xml", Ye(r, n, Yt + Lf(
14913
+ return n = "mimetype", Xe(r, n, "application/vnd.oasis.opendocument.spreadsheet"), n = "content.xml", Xe(r, n, mc(e, t)), i.push([n, "text/xml"]), a.push([n, "ContentFile"]), n = "styles.xml", Xe(r, n, x2(e, t)), i.push([n, "text/xml"]), a.push([n, "StylesFile"]), n = "meta.xml", Xe(r, n, Yt + Lf(
14914
14914
  /*::wb, opts*/
14915
- )), i.push([n, "text/xml"]), a.push([n, "MetadataFile"]), n = "manifest.rdf", Ye(r, n, D1(
14915
+ )), i.push([n, "text/xml"]), a.push([n, "MetadataFile"]), n = "manifest.rdf", Xe(r, n, D1(
14916
14916
  a
14917
14917
  /*, opts*/
14918
- )), i.push([n, "application/rdf+xml"]), n = "META-INF/manifest.xml", Ye(r, n, A1(
14918
+ )), i.push([n, "application/rdf+xml"]), n = "META-INF/manifest.xml", Xe(r, n, A1(
14919
14919
  i
14920
14920
  /*, opts*/
14921
14921
  )), r;
@@ -15377,27 +15377,27 @@ function C2(e, t) {
15377
15377
  var r = t.bookType == "xlsb" ? "bin" : "xml", n = au.indexOf(t.bookType) > -1, i = Rf();
15378
15378
  Xo(t = t || {});
15379
15379
  var a = Fo(), s = "", o = 0;
15380
- if (t.cellXfs = [], Nn(t.cellXfs, {}, { revssf: { General: 0 } }), e.Props || (e.Props = {}), s = "docProps/core.xml", Ye(a, s, Bf(e.Props, t)), i.coreprops.push(s), pt(t.rels, 2, s, rt.CORE_PROPS), s = "docProps/app.xml", !(e.Props && e.Props.SheetNames)) if (!e.Workbook || !e.Workbook.Sheets) e.Props.SheetNames = e.SheetNames;
15380
+ if (t.cellXfs = [], Nn(t.cellXfs, {}, { revssf: { General: 0 } }), e.Props || (e.Props = {}), s = "docProps/core.xml", Xe(a, s, Bf(e.Props, t)), i.coreprops.push(s), pt(t.rels, 2, s, rt.CORE_PROPS), s = "docProps/app.xml", !(e.Props && e.Props.SheetNames)) if (!e.Workbook || !e.Workbook.Sheets) e.Props.SheetNames = e.SheetNames;
15381
15381
  else {
15382
15382
  for (var f = [], c = 0; c < e.SheetNames.length; ++c)
15383
15383
  (e.Workbook.Sheets[c] || {}).Hidden != 2 && f.push(e.SheetNames[c]);
15384
15384
  e.Props.SheetNames = f;
15385
15385
  }
15386
- for (e.Props.Worksheets = e.Props.SheetNames.length, Ye(a, s, Uf(e.Props)), i.extprops.push(s), pt(t.rels, 3, s, rt.EXT_PROPS), e.Custprops !== e.Props && fr(e.Custprops || {}).length > 0 && (s = "docProps/custom.xml", Ye(a, s, Wf(e.Custprops)), i.custprops.push(s), pt(t.rels, 4, s, rt.CUST_PROPS)), o = 1; o <= e.SheetNames.length; ++o) {
15386
+ for (e.Props.Worksheets = e.Props.SheetNames.length, Xe(a, s, Uf(e.Props)), i.extprops.push(s), pt(t.rels, 3, s, rt.EXT_PROPS), e.Custprops !== e.Props && fr(e.Custprops || {}).length > 0 && (s = "docProps/custom.xml", Xe(a, s, Wf(e.Custprops)), i.custprops.push(s), pt(t.rels, 4, s, rt.CUST_PROPS)), o = 1; o <= e.SheetNames.length; ++o) {
15387
15387
  var u = { "!id": {} }, d = e.Sheets[e.SheetNames[o - 1]], g = (d || {})["!type"] || "sheet";
15388
15388
  switch (g) {
15389
15389
  case "chart":
15390
15390
  /* falls through */
15391
15391
  default:
15392
- s = "xl/worksheets/sheet" + o + "." + r, Ye(a, s, Dy(o - 1, s, t, e, u)), i.sheets.push(s), pt(t.wbrels, -1, "worksheets/sheet" + o + "." + r, rt.WS[0]);
15392
+ s = "xl/worksheets/sheet" + o + "." + r, Xe(a, s, Dy(o - 1, s, t, e, u)), i.sheets.push(s), pt(t.wbrels, -1, "worksheets/sheet" + o + "." + r, rt.WS[0]);
15393
15393
  }
15394
15394
  if (d) {
15395
15395
  var l = d["!comments"], x = !1, p = "";
15396
- l && l.length > 0 && (p = "xl/comments" + o + "." + r, Ye(a, p, Fy(l, p)), i.comments.push(p), pt(u, -1, "../comments" + o + "." + r, rt.CMNT), x = !0), d["!legacy"] && x && Ye(a, "xl/drawings/vmlDrawing" + o + ".vml", nu(o, d["!comments"])), delete d["!comments"], delete d["!legacy"];
15396
+ l && l.length > 0 && (p = "xl/comments" + o + "." + r, Xe(a, p, Fy(l, p)), i.comments.push(p), pt(u, -1, "../comments" + o + "." + r, rt.CMNT), x = !0), d["!legacy"] && x && Xe(a, "xl/drawings/vmlDrawing" + o + ".vml", nu(o, d["!comments"])), delete d["!comments"], delete d["!legacy"];
15397
15397
  }
15398
- u["!id"].rId1 && Ye(a, Mf(s), vi(u));
15398
+ u["!id"].rId1 && Xe(a, Mf(s), vi(u));
15399
15399
  }
15400
- return t.Strings != null && t.Strings.length > 0 && (s = "xl/sharedStrings." + r, Ye(a, s, Iy(t.Strings, s, t)), i.strs.push(s), pt(t.wbrels, -1, "sharedStrings." + r, rt.SST)), s = "xl/workbook." + r, Ye(a, s, Oy(e, s)), i.workbooks.push(s), pt(t.rels, 1, s, rt.WB), s = "xl/theme/theme1.xml", Ye(a, s, tu(e.Themes, t)), i.themes.push(s), pt(t.wbrels, -1, "theme/theme1.xml", rt.THEME), s = "xl/styles." + r, Ye(a, s, ky(e, s, t)), i.styles.push(s), pt(t.wbrels, -1, "styles." + r, rt.STY), e.vbaraw && n && (s = "xl/vbaProject.bin", Ye(a, s, e.vbaraw), i.vba.push(s), pt(t.wbrels, -1, "vbaProject.bin", rt.VBA)), s = "xl/metadata." + r, Ye(a, s, Ny(s)), i.metadata.push(s), pt(t.wbrels, -1, "metadata." + r, rt.XLMETA), Ye(a, "[Content_Types].xml", Pf(i, t)), Ye(a, "_rels/.rels", vi(t.rels)), Ye(a, "xl/_rels/workbook." + r + ".rels", vi(t.wbrels)), delete t.revssf, delete t.ssf, a;
15400
+ return t.Strings != null && t.Strings.length > 0 && (s = "xl/sharedStrings." + r, Xe(a, s, Iy(t.Strings, s, t)), i.strs.push(s), pt(t.wbrels, -1, "sharedStrings." + r, rt.SST)), s = "xl/workbook." + r, Xe(a, s, Oy(e, s)), i.workbooks.push(s), pt(t.rels, 1, s, rt.WB), s = "xl/theme/theme1.xml", Xe(a, s, tu(e.Themes, t)), i.themes.push(s), pt(t.wbrels, -1, "theme/theme1.xml", rt.THEME), s = "xl/styles." + r, Xe(a, s, ky(e, s, t)), i.styles.push(s), pt(t.wbrels, -1, "styles." + r, rt.STY), e.vbaraw && n && (s = "xl/vbaProject.bin", Xe(a, s, e.vbaraw), i.vba.push(s), pt(t.wbrels, -1, "vbaProject.bin", rt.VBA)), s = "xl/metadata." + r, Xe(a, s, Ny(s)), i.metadata.push(s), pt(t.wbrels, -1, "metadata." + r, rt.XLMETA), Xe(a, "[Content_Types].xml", Pf(i, t)), Xe(a, "_rels/.rels", vi(t.rels)), Xe(a, "xl/_rels/workbook." + r + ".rels", vi(t.wbrels)), delete t.revssf, delete t.ssf, a;
15401
15401
  }
15402
15402
  function A2(e, t) {
15403
15403
  mi = 1024, e && !e.SSF && (e.SSF = Dr(Lt)), e && e.SSF && (es(), Qa(e.SSF), t.revssf = ts(e.SSF), t.revssf[e.SSF[65535]] = 0, t.ssf = e.SSF), t.rels = {}, t.wbrels = {}, t.Strings = /*::((*/
@@ -15405,13 +15405,13 @@ function A2(e, t) {
15405
15405
  var r = "xml", n = au.indexOf(t.bookType) > -1, i = Rf();
15406
15406
  Xo(t = t || {});
15407
15407
  var a = Fo(), s = "", o = 0;
15408
- if (t.cellXfs = [], Nn(t.cellXfs, {}, { revssf: { General: 0 } }), e.Props || (e.Props = {}), s = "docProps/core.xml", Ye(a, s, Bf(e.Props, t)), i.coreprops.push(s), pt(t.rels, 2, s, rt.CORE_PROPS), s = "docProps/app.xml", !(e.Props && e.Props.SheetNames)) if (!e.Workbook || !e.Workbook.Sheets) e.Props.SheetNames = e.SheetNames;
15408
+ if (t.cellXfs = [], Nn(t.cellXfs, {}, { revssf: { General: 0 } }), e.Props || (e.Props = {}), s = "docProps/core.xml", Xe(a, s, Bf(e.Props, t)), i.coreprops.push(s), pt(t.rels, 2, s, rt.CORE_PROPS), s = "docProps/app.xml", !(e.Props && e.Props.SheetNames)) if (!e.Workbook || !e.Workbook.Sheets) e.Props.SheetNames = e.SheetNames;
15409
15409
  else {
15410
15410
  for (var f = [], c = 0; c < e.SheetNames.length; ++c)
15411
15411
  (e.Workbook.Sheets[c] || {}).Hidden != 2 && f.push(e.SheetNames[c]);
15412
15412
  e.Props.SheetNames = f;
15413
15413
  }
15414
- e.Props.Worksheets = e.Props.SheetNames.length, Ye(a, s, Uf(e.Props)), i.extprops.push(s), pt(t.rels, 3, s, rt.EXT_PROPS), e.Custprops !== e.Props && fr(e.Custprops || {}).length > 0 && (s = "docProps/custom.xml", Ye(a, s, Wf(e.Custprops)), i.custprops.push(s), pt(t.rels, 4, s, rt.CUST_PROPS));
15414
+ e.Props.Worksheets = e.Props.SheetNames.length, Xe(a, s, Uf(e.Props)), i.extprops.push(s), pt(t.rels, 3, s, rt.EXT_PROPS), e.Custprops !== e.Props && fr(e.Custprops || {}).length > 0 && (s = "docProps/custom.xml", Xe(a, s, Wf(e.Custprops)), i.custprops.push(s), pt(t.rels, 4, s, rt.CUST_PROPS));
15415
15415
  var u = ["SheetJ5"];
15416
15416
  for (t.tcid = 0, o = 1; o <= e.SheetNames.length; ++o) {
15417
15417
  var d = { "!id": {} }, g = e.Sheets[e.SheetNames[o - 1]], l = (g || {})["!type"] || "sheet";
@@ -15419,7 +15419,7 @@ function A2(e, t) {
15419
15419
  case "chart":
15420
15420
  /* falls through */
15421
15421
  default:
15422
- s = "xl/worksheets/sheet" + o + "." + r, Ye(a, s, pu(o - 1, t, e, d)), i.sheets.push(s), pt(t.wbrels, -1, "worksheets/sheet" + o + "." + r, rt.WS[0]);
15422
+ s = "xl/worksheets/sheet" + o + "." + r, Xe(a, s, pu(o - 1, t, e, d)), i.sheets.push(s), pt(t.wbrels, -1, "worksheets/sheet" + o + "." + r, rt.WS[0]);
15423
15423
  }
15424
15424
  if (g) {
15425
15425
  var x = g["!comments"], p = !1, m = "";
@@ -15429,13 +15429,13 @@ function A2(e, t) {
15429
15429
  T[1].forEach(function(E) {
15430
15430
  E.T == !0 && (w = !0);
15431
15431
  });
15432
- }), w && (m = "xl/threadedComments/threadedComment" + o + "." + r, Ye(a, m, im(x, u, t)), i.threadedcomments.push(m), pt(d, -1, "../threadedComments/threadedComment" + o + "." + r, rt.TCMNT)), m = "xl/comments" + o + "." + r, Ye(a, m, iu(x)), i.comments.push(m), pt(d, -1, "../comments" + o + "." + r, rt.CMNT), p = !0;
15432
+ }), w && (m = "xl/threadedComments/threadedComment" + o + "." + r, Xe(a, m, im(x, u, t)), i.threadedcomments.push(m), pt(d, -1, "../threadedComments/threadedComment" + o + "." + r, rt.TCMNT)), m = "xl/comments" + o + "." + r, Xe(a, m, iu(x)), i.comments.push(m), pt(d, -1, "../comments" + o + "." + r, rt.CMNT), p = !0;
15433
15433
  }
15434
- g["!legacy"] && p && Ye(a, "xl/drawings/vmlDrawing" + o + ".vml", nu(o, g["!comments"])), delete g["!comments"], delete g["!legacy"];
15434
+ g["!legacy"] && p && Xe(a, "xl/drawings/vmlDrawing" + o + ".vml", nu(o, g["!comments"])), delete g["!comments"], delete g["!legacy"];
15435
15435
  }
15436
- d["!id"].rId1 && Ye(a, Mf(s), vi(d));
15436
+ d["!id"].rId1 && Xe(a, Mf(s), vi(d));
15437
15437
  }
15438
- return t.Strings != null && t.Strings.length > 0 && (s = "xl/sharedStrings." + r, Ye(a, s, Kf(t.Strings, t)), i.strs.push(s), pt(t.wbrels, -1, "sharedStrings." + r, rt.SST)), s = "xl/workbook." + r, Ye(a, s, xu(e)), i.workbooks.push(s), pt(t.rels, 1, s, rt.WB), s = "xl/theme/theme1.xml", Ye(a, s, tu(e.Themes, t)), i.themes.push(s), pt(t.wbrels, -1, "theme/theme1.xml", rt.THEME), s = "xl/styles." + r, Ye(a, s, Qf(e, t)), i.styles.push(s), pt(t.wbrels, -1, "styles." + r, rt.STY), e.vbaraw && n && (s = "xl/vbaProject.bin", Ye(a, s, e.vbaraw), i.vba.push(s), pt(t.wbrels, -1, "vbaProject.bin", rt.VBA)), s = "xl/metadata." + r, Ye(a, s, ru()), i.metadata.push(s), pt(t.wbrels, -1, "metadata." + r, rt.XLMETA), u.length > 1 && (s = "xl/persons/person.xml", Ye(a, s, am(u)), i.people.push(s), pt(t.wbrels, -1, "persons/person.xml", rt.PEOPLE)), Ye(a, "[Content_Types].xml", Pf(i, t)), Ye(a, "_rels/.rels", vi(t.rels)), Ye(a, "xl/_rels/workbook." + r + ".rels", vi(t.wbrels)), delete t.revssf, delete t.ssf, a;
15438
+ return t.Strings != null && t.Strings.length > 0 && (s = "xl/sharedStrings." + r, Xe(a, s, Kf(t.Strings, t)), i.strs.push(s), pt(t.wbrels, -1, "sharedStrings." + r, rt.SST)), s = "xl/workbook." + r, Xe(a, s, xu(e)), i.workbooks.push(s), pt(t.rels, 1, s, rt.WB), s = "xl/theme/theme1.xml", Xe(a, s, tu(e.Themes, t)), i.themes.push(s), pt(t.wbrels, -1, "theme/theme1.xml", rt.THEME), s = "xl/styles." + r, Xe(a, s, Qf(e, t)), i.styles.push(s), pt(t.wbrels, -1, "styles." + r, rt.STY), e.vbaraw && n && (s = "xl/vbaProject.bin", Xe(a, s, e.vbaraw), i.vba.push(s), pt(t.wbrels, -1, "vbaProject.bin", rt.VBA)), s = "xl/metadata." + r, Xe(a, s, ru()), i.metadata.push(s), pt(t.wbrels, -1, "metadata." + r, rt.XLMETA), u.length > 1 && (s = "xl/persons/person.xml", Xe(a, s, am(u)), i.people.push(s), pt(t.wbrels, -1, "persons/person.xml", rt.PEOPLE)), Xe(a, "[Content_Types].xml", Pf(i, t)), Xe(a, "_rels/.rels", vi(t.rels)), Xe(a, "xl/_rels/workbook." + r + ".rels", vi(t.wbrels)), delete t.revssf, delete t.ssf, a;
15439
15439
  }
15440
15440
  function O2(e, t) {
15441
15441
  var r = "";
@@ -16814,7 +16814,7 @@ const _r = new Mw(), Lw = (e, t) => {
16814
16814
  ...t,
16815
16815
  id: r
16816
16816
  }), r;
16817
- }, Bw = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", $w = Lw, Uw = () => _r.toasts, Ww = () => _r.getActiveToasts(), Ge = Object.assign($w, {
16817
+ }, Bw = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", $w = Lw, Uw = () => _r.toasts, Ww = () => _r.getActiveToasts(), Ye = Object.assign($w, {
16818
16818
  success: _r.success,
16819
16819
  info: _r.info,
16820
16820
  warning: _r.warning,
@@ -17025,21 +17025,21 @@ const qw = (e) => {
17025
17025
  x: 0,
17026
17026
  y: 0
17027
17027
  };
17028
- const De = (Xe) => 1 / (1.5 + Math.abs(Xe) / 20);
17028
+ const De = (Ke) => 1 / (1.5 + Math.abs(Ke) / 20);
17029
17029
  if (Re === "y") {
17030
17030
  if (Te.includes("top") || Te.includes("bottom"))
17031
17031
  if (Te.includes("top") && Ct < 0 || Te.includes("bottom") && Ct > 0)
17032
17032
  pe.y = Ct;
17033
17033
  else {
17034
- const Xe = Ct * De(Ct);
17035
- pe.y = Math.abs(Xe) < Math.abs(Ct) ? Xe : Ct;
17034
+ const Ke = Ct * De(Ct);
17035
+ pe.y = Math.abs(Ke) < Math.abs(Ct) ? Ke : Ct;
17036
17036
  }
17037
17037
  } else if (Re === "x" && (Te.includes("left") || Te.includes("right")))
17038
17038
  if (Te.includes("left") && _t < 0 || Te.includes("right") && _t > 0)
17039
17039
  pe.x = _t;
17040
17040
  else {
17041
- const Xe = _t * De(_t);
17042
- pe.x = Math.abs(Xe) < Math.abs(_t) ? Xe : _t;
17041
+ const Ke = _t * De(_t);
17042
+ pe.x = Math.abs(Ke) < Math.abs(_t) ? Ke : _t;
17043
17043
  }
17044
17044
  (Math.abs(pe.x) > 0 || Math.abs(pe.y) > 0) && se(!0), (et = Ve.current) == null || et.style.setProperty("--swipe-amount-x", `${pe.x}px`), (Ot = Ve.current) == null || Ot.style.setProperty("--swipe-amount-y", `${pe.y}px`);
17045
17045
  }
@@ -17573,8 +17573,8 @@ function cS(e = {}) {
17573
17573
  );
17574
17574
  ge(l.id, {
17575
17575
  auditHistory: q
17576
- }), Ge.error(U.message), U.recoverable && nr.current && setTimeout(() => {
17577
- Ew(l, nr.current, ge), Ge.info("Previous state restored");
17576
+ }), Ye.error(U.message), U.recoverable && nr.current && setTimeout(() => {
17577
+ Ew(l, nr.current, ge), Ye.info("Previous state restored");
17578
17578
  }, 100);
17579
17579
  }, [l, ge]), Ze = Ae((U, q, Z, ie) => {
17580
17580
  if (!l) return;
@@ -17585,7 +17585,7 @@ function cS(e = {}) {
17585
17585
  q,
17586
17586
  Z,
17587
17587
  ie
17588
- ), ze = l.auditHistory || [], It = Iu(ze, Le);
17588
+ ), He = l.auditHistory || [], It = Iu(He, Le);
17589
17589
  setTimeout(() => {
17590
17590
  ge(l.id, {
17591
17591
  auditHistory: It
@@ -17667,7 +17667,7 @@ function cS(e = {}) {
17667
17667
  l.columnWidths,
17668
17668
  l.grouping,
17669
17669
  Te.snapshot.columnOrder
17670
- ), [l == null ? void 0 : l.filters, l == null ? void 0 : l.sortStack, l == null ? void 0 : l.schema, l == null ? void 0 : l.columnVisibility, l == null ? void 0 : l.columnOrder, l == null ? void 0 : l.columnWidths, l == null ? void 0 : l.grouping, Te]), Xe = Qe(() => !Te || !De || !pe ? [] : tp(De, Te.snapshot), [Te, De, pe]), y = Ae((U, q) => {
17670
+ ), [l == null ? void 0 : l.filters, l == null ? void 0 : l.sortStack, l == null ? void 0 : l.schema, l == null ? void 0 : l.columnVisibility, l == null ? void 0 : l.columnOrder, l == null ? void 0 : l.columnWidths, l == null ? void 0 : l.grouping, Te]), Ke = Qe(() => !Te || !De || !pe ? [] : tp(De, Te.snapshot), [Te, De, pe]), y = Ae((U, q) => {
17671
17671
  const Z = {
17672
17672
  id: `report-${Date.now()}`,
17673
17673
  name: U,
@@ -17706,20 +17706,20 @@ function cS(e = {}) {
17706
17706
  }, [l, ge]), k = Ae((U) => {
17707
17707
  if (!l) return;
17708
17708
  if (!en("edit_sorting", st)) {
17709
- Ge.error(tn("edit_sorting"));
17709
+ Ye.error(tn("edit_sorting"));
17710
17710
  return;
17711
17711
  }
17712
17712
  const q = l.sortStack ?? [], Z = q.find((ie) => ie.column === U);
17713
17713
  if (Z) {
17714
17714
  const ie = Hh(Z.direction);
17715
17715
  if (ie === null) {
17716
- const Le = q.filter((ze) => ze.column !== U).map((ze, It) => ({ ...ze, priority: It + 1 }));
17716
+ const Le = q.filter((He) => He.column !== U).map((He, It) => ({ ...He, priority: It + 1 }));
17717
17717
  ge(l.id, {
17718
17718
  sortStack: Le.length > 0 ? Le : void 0
17719
17719
  });
17720
17720
  } else {
17721
17721
  const Le = q.map(
17722
- (ze) => ze.column === U ? { ...ze, direction: ie } : ze
17722
+ (He) => He.column === U ? { ...He, direction: ie } : He
17723
17723
  );
17724
17724
  ge(l.id, {
17725
17725
  sortStack: Le
@@ -17740,7 +17740,7 @@ function cS(e = {}) {
17740
17740
  if (l)
17741
17741
  if (l.schema) {
17742
17742
  const { validRules: q, invalidColumns: Z } = Fu(U, l.schema);
17743
- Z.length > 0 && Ge.warning(`Removed invalid sort columns: ${Z.join(", ")}`), pr();
17743
+ Z.length > 0 && Ye.warning(`Removed invalid sort columns: ${Z.join(", ")}`), pr();
17744
17744
  try {
17745
17745
  ge(l.id, {
17746
17746
  sortStack: q.length > 0 ? q : void 0
@@ -17801,14 +17801,14 @@ function cS(e = {}) {
17801
17801
  var Z;
17802
17802
  if (!l) return;
17803
17803
  if (!en("edit_filters", st)) {
17804
- Ge.error(tn("edit_filters"));
17804
+ Ye.error(tn("edit_filters"));
17805
17805
  return;
17806
17806
  }
17807
17807
  const q = (Z = l.schema) == null ? void 0 : Z.find((ie) => ie.name === U.column);
17808
17808
  if (q && U.value !== void 0) {
17809
17809
  const ie = Tw(q.type, U.operator, U.value);
17810
17810
  if (!ie.isValid) {
17811
- Ge.error(ie.errorMessage || "Invalid filter value");
17811
+ Ye.error(ie.errorMessage || "Invalid filter value");
17812
17812
  return;
17813
17813
  }
17814
17814
  }
@@ -17825,7 +17825,7 @@ function cS(e = {}) {
17825
17825
  }, [l, st, ge, pr, ur, Ze]), K = Ae((U, q) => {
17826
17826
  if (!l) return;
17827
17827
  if (!en("edit_filters", st)) {
17828
- Ge.error(tn("edit_filters"));
17828
+ Ye.error(tn("edit_filters"));
17829
17829
  return;
17830
17830
  }
17831
17831
  const Z = l.filters ?? [], ie = [...Z];
@@ -17835,7 +17835,7 @@ function cS(e = {}) {
17835
17835
  }, [l, st, ge, Ze]), me = Ae((U) => {
17836
17836
  if (!l) return;
17837
17837
  if (!en("edit_filters", st)) {
17838
- Ge.error(tn("edit_filters"));
17838
+ Ye.error(tn("edit_filters"));
17839
17839
  return;
17840
17840
  }
17841
17841
  const q = l.filters ?? [], Z = q.filter((ie, Le) => Le !== U);
@@ -17845,7 +17845,7 @@ function cS(e = {}) {
17845
17845
  }, [l, st, ge, Ze]), we = Ae(() => {
17846
17846
  if (!l) return;
17847
17847
  if (!en("edit_filters", st)) {
17848
- Ge.error(tn("edit_filters"));
17848
+ Ye.error(tn("edit_filters"));
17849
17849
  return;
17850
17850
  }
17851
17851
  const U = l.filters ?? [];
@@ -17855,7 +17855,7 @@ function cS(e = {}) {
17855
17855
  }, [l, st, ge, Ze]), Ce = Ae((U) => {
17856
17856
  var Le;
17857
17857
  if (!l) return;
17858
- const q = (Le = l.views) == null ? void 0 : Le.find((ze) => ze.id === U);
17858
+ const q = (Le = l.views) == null ? void 0 : Le.find((He) => He.id === U);
17859
17859
  if (!q) return;
17860
17860
  const Z = q.snapshot.columnOrder, ie = hi(Z, q.snapshot.grouping);
17861
17861
  ge(l.id, {
@@ -17879,11 +17879,11 @@ function cS(e = {}) {
17879
17879
  createdAt: Date.now(),
17880
17880
  updatedAt: Date.now(),
17881
17881
  snapshot: { ...De }
17882
- }, Le = l.views ?? [], ze = Z ? Le.map((It) => ({ ...It, isDefault: !1 })) : Le;
17882
+ }, Le = l.views ?? [], He = Z ? Le.map((It) => ({ ...It, isDefault: !1 })) : Le;
17883
17883
  ge(l.id, {
17884
- views: [...ze, ie],
17884
+ views: [...He, ie],
17885
17885
  activeViewId: ie.id
17886
- }), Ge.success(`"${U}" view created`);
17886
+ }), Ye.success(`"${U}" view created`);
17887
17887
  }, [l, De, ge]), be = Ae(() => {
17888
17888
  var q;
17889
17889
  if (!Te || !De || Te.isDefault || !l) return;
@@ -17892,10 +17892,10 @@ function cS(e = {}) {
17892
17892
  );
17893
17893
  ge(l.id, {
17894
17894
  views: U
17895
- }), Ge.success(`"${Te.name}" view updated`);
17895
+ }), Ye.success(`"${Te.name}" view updated`);
17896
17896
  }, [Te, De, l, ge]), Be = Ae(() => {
17897
17897
  F(!0);
17898
- }, []), Ke = Ae(() => {
17898
+ }, []), ze = Ae(() => {
17899
17899
  if (!Te || !l) return;
17900
17900
  const U = Te.snapshot.columnOrder, q = hi(U, Te.snapshot.grouping);
17901
17901
  ge(l.id, {
@@ -17905,7 +17905,7 @@ function cS(e = {}) {
17905
17905
  columnOrder: q,
17906
17906
  columnWidths: { ...Te.snapshot.columnWidths },
17907
17907
  grouping: Te.snapshot.grouping
17908
- }), Ge.info("Changes reverted to last saved state");
17908
+ }), Ye.info("Changes reverted to last saved state");
17909
17909
  }, [Te, l, ge]), qe = Ae((U) => {
17910
17910
  if (!(l != null && l.views)) return;
17911
17911
  const q = l.views.map((ie) => ({
@@ -17916,7 +17916,7 @@ function cS(e = {}) {
17916
17916
  views: q
17917
17917
  });
17918
17918
  const Z = l.views.find((ie) => ie.id === U);
17919
- Z && Ge.success(`"${Z.name}" set as default view`);
17919
+ Z && Ye.success(`"${Z.name}" set as default view`);
17920
17920
  }, [l, ge]), Jt = Ae((U) => {
17921
17921
  if (!(l != null && l.views)) return;
17922
17922
  const q = l.views.map(
@@ -17926,20 +17926,20 @@ function cS(e = {}) {
17926
17926
  views: q
17927
17927
  });
17928
17928
  const Z = l.views.find((ie) => ie.id === U);
17929
- Z && !Z.isFavorite ? Ge.success(`"${Z.name}" added to favorites`) : Z && Ge.info(`"${Z.name}" removed from favorites`);
17929
+ Z && !Z.isFavorite ? Ye.success(`"${Z.name}" added to favorites`) : Z && Ye.info(`"${Z.name}" removed from favorites`);
17930
17930
  }, [l, ge]), Pn = Ae((U) => {
17931
17931
  if (!(l != null && l.views)) return;
17932
17932
  const q = l.views.map(
17933
- (ze) => ze.id === U ? { ...ze, isDeleted: !0, updatedAt: Date.now() } : ze
17934
- ), Z = l.activeViewId === U, ie = q.find((ze) => ze.isDefault && !ze.isDeleted);
17933
+ (He) => He.id === U ? { ...He, isDeleted: !0, updatedAt: Date.now() } : He
17934
+ ), Z = l.activeViewId === U, ie = q.find((He) => He.isDefault && !He.isDeleted);
17935
17935
  ge(l.id, {
17936
17936
  views: q,
17937
17937
  activeViewId: Z && ie ? ie.id : l.activeViewId,
17938
17938
  filters: Z && ie ? ie.snapshot.filters.length > 0 ? ie.snapshot.filters : void 0 : l.filters,
17939
17939
  sortStack: Z && ie ? ie.snapshot.sortStack.length > 0 ? ie.snapshot.sortStack : void 0 : l.sortStack
17940
17940
  });
17941
- const Le = l.views.find((ze) => ze.id === U);
17942
- Le && Ge.info(`"${Le.name}" moved to Recently Deleted`);
17941
+ const Le = l.views.find((He) => He.id === U);
17942
+ Le && Ye.info(`"${Le.name}" moved to Recently Deleted`);
17943
17943
  }, [l, ge]), Mn = Ae((U) => {
17944
17944
  if (!(l != null && l.views)) return;
17945
17945
  const q = l.views.map(
@@ -17949,21 +17949,21 @@ function cS(e = {}) {
17949
17949
  views: q
17950
17950
  });
17951
17951
  const Z = l.views.find((ie) => ie.id === U);
17952
- Z && Ge.success(`"${Z.name}" restored`);
17952
+ Z && Ye.success(`"${Z.name}" restored`);
17953
17953
  }, [l, ge]), Ln = Ae((U) => {
17954
17954
  if (!(l != null && l.views)) return;
17955
17955
  const q = l.views.find((Ir) => Ir.id === U), Z = l.views.filter((Ir) => !Ir.isDeleted || Ir.id === U);
17956
17956
  if ((q == null ? void 0 : q.isDefault) && Z.filter((Ir) => Ir.isDefault).length === 1) {
17957
- Ge.error("Cannot delete the last default view");
17957
+ Ye.error("Cannot delete the last default view");
17958
17958
  return;
17959
17959
  }
17960
- const Le = l.views.filter((Ir) => Ir.id !== U), ze = l.activeViewId === U, It = Le.find((Ir) => Ir.isDefault && !Ir.isDeleted);
17960
+ const Le = l.views.filter((Ir) => Ir.id !== U), He = l.activeViewId === U, It = Le.find((Ir) => Ir.isDefault && !Ir.isDeleted);
17961
17961
  ge(l.id, {
17962
17962
  views: Le,
17963
- activeViewId: ze && It ? It.id : l.activeViewId,
17964
- filters: ze && It ? It.snapshot.filters.length > 0 ? It.snapshot.filters : void 0 : l.filters,
17965
- sortStack: ze && It ? It.snapshot.sortStack.length > 0 ? It.snapshot.sortStack : void 0 : l.sortStack
17966
- }), q && Ge.success(`"${q.name}" permanently deleted`);
17963
+ activeViewId: He && It ? It.id : l.activeViewId,
17964
+ filters: He && It ? It.snapshot.filters.length > 0 ? It.snapshot.filters : void 0 : l.filters,
17965
+ sortStack: He && It ? It.snapshot.sortStack.length > 0 ? It.snapshot.sortStack : void 0 : l.sortStack
17966
+ }), q && Ye.success(`"${q.name}" permanently deleted`);
17967
17967
  }, [l, ge]), cn = Ae((U) => {
17968
17968
  J(U), M(!0), I(!1);
17969
17969
  }, []), ki = Ae((U, q) => {
@@ -17999,7 +17999,7 @@ function cS(e = {}) {
17999
17999
  }, [Pe, Je]), Zd = Ae((U, q) => {
18000
18000
  if (!l) return;
18001
18001
  if (!en("edit_columns", st)) {
18002
- Ge.error(tn("edit_columns"));
18002
+ Ye.error(tn("edit_columns"));
18003
18003
  return;
18004
18004
  }
18005
18005
  const ie = {
@@ -18012,7 +18012,7 @@ function cS(e = {}) {
18012
18012
  }, [l, Te, st, ge]), Qd = Ae((U) => {
18013
18013
  if (l) {
18014
18014
  if (!en("edit_columns", st)) {
18015
- Ge.error(tn("edit_columns"));
18015
+ Ye.error(tn("edit_columns"));
18016
18016
  return;
18017
18017
  }
18018
18018
  ge(l.id, {
@@ -18022,7 +18022,7 @@ function cS(e = {}) {
18022
18022
  }, [l, st, ge]), eh = Ae((U, q) => {
18023
18023
  if (!l) return;
18024
18024
  if (!en("edit_columns", st)) {
18025
- Ge.error(tn("edit_columns"));
18025
+ Ye.error(tn("edit_columns"));
18026
18026
  return;
18027
18027
  }
18028
18028
  const ie = {
@@ -18049,7 +18049,7 @@ function cS(e = {}) {
18049
18049
  columnWidths: Z,
18050
18050
  filters: void 0,
18051
18051
  sortStack: void 0
18052
- }), Ge.success("Reset to default layout - all filters and sorts cleared");
18052
+ }), Ye.success("Reset to default layout - all filters and sorts cleared");
18053
18053
  }, [Te, l, ge]), Sl = Ae(
18054
18054
  xw((U) => {
18055
18055
  Me(U);
@@ -18090,8 +18090,8 @@ function cS(e = {}) {
18090
18090
  We(/* @__PURE__ */ new Set());
18091
18091
  }, []), ch = Ae((U, q) => {
18092
18092
  We((Z) => {
18093
- const ie = new Set(Z), Le = Math.min(U, q), ze = Math.max(U, q);
18094
- for (let It = Le; It <= ze; It++)
18093
+ const ie = new Set(Z), Le = Math.min(U, q), He = Math.max(U, q);
18094
+ for (let It = Le; It <= He; It++)
18095
18095
  ie.add(It);
18096
18096
  return ie;
18097
18097
  });
@@ -18100,20 +18100,20 @@ function cS(e = {}) {
18100
18100
  }, []), uh = Ae((U) => {
18101
18101
  if (l) {
18102
18102
  if (!en("edit_columns", st)) {
18103
- Ge.error(tn("edit_columns"));
18103
+ Ye.error(tn("edit_columns"));
18104
18104
  return;
18105
18105
  }
18106
18106
  if (U && l.schema) {
18107
18107
  const { validGrouping: q, invalidColumns: Z } = Nu(U, l.schema);
18108
- Z.length > 0 && Ge.warning(`Removed invalid grouping columns: ${Z.join(", ")}`), pr();
18108
+ Z.length > 0 && Ye.warning(`Removed invalid grouping columns: ${Z.join(", ")}`), pr();
18109
18109
  try {
18110
18110
  const ie = l.grouping;
18111
18111
  q === null ? Ze("grouping", "group_cleared", ie, null) : ie ? Ze("grouping", "group_reordered", ie, q) : Ze("grouping", "group_level_added", null, q);
18112
- const Le = (Te == null ? void 0 : Te.snapshot.columnOrder) || l.columnOrder || [], ze = hi(Le, q);
18112
+ const Le = (Te == null ? void 0 : Te.snapshot.columnOrder) || l.columnOrder || [], He = hi(Le, q);
18113
18113
  ge(l.id, {
18114
18114
  grouping: q,
18115
- columnOrder: ze
18116
- }), JSON.stringify(ze) !== JSON.stringify(l.columnOrder) && Ze("columns", "column_reordered", l.columnOrder, ze), le(!1);
18115
+ columnOrder: He
18116
+ }), JSON.stringify(He) !== JSON.stringify(l.columnOrder) && Ze("columns", "column_reordered", l.columnOrder, He), le(!1);
18117
18117
  } catch (ie) {
18118
18118
  const Le = un("processing", "grouping", ie);
18119
18119
  ur(Le);
@@ -18155,17 +18155,17 @@ function cS(e = {}) {
18155
18155
  Te,
18156
18156
  Z,
18157
18157
  ie
18158
- ), ze = l.name;
18158
+ ), He = l.name;
18159
18159
  let It;
18160
18160
  switch (U.format) {
18161
18161
  case "csv":
18162
- yc(Le, ze, U), It = "export_csv";
18162
+ yc(Le, He, U), It = "export_csv";
18163
18163
  break;
18164
18164
  case "excel":
18165
- wc(Le, ze, U), It = "export_excel";
18165
+ wc(Le, He, U), It = "export_excel";
18166
18166
  break;
18167
18167
  case "json":
18168
- Sc(Le, ze, U), It = "export_json";
18168
+ Sc(Le, He, U), It = "export_json";
18169
18169
  break;
18170
18170
  }
18171
18171
  Ze("export", It, null, {
@@ -18174,12 +18174,12 @@ function cS(e = {}) {
18174
18174
  columnScope: U.columnScope,
18175
18175
  rowCount: q.length,
18176
18176
  viewName: (Te == null ? void 0 : Te.name) || "Default View"
18177
- }), Ge.success(`Export completed successfully (${U.format.toUpperCase()})`);
18177
+ }), Ye.success(`Export completed successfully (${U.format.toUpperCase()})`);
18178
18178
  } catch (q) {
18179
18179
  const Z = bw(q, {
18180
18180
  onRetry: () => ri(U)
18181
18181
  });
18182
- Ge.error(`Export failed: ${Z.message}`, {
18182
+ Ye.error(`Export failed: ${Z.message}`, {
18183
18183
  action: {
18184
18184
  label: "Retry",
18185
18185
  onClick: () => ri(U)
@@ -18221,7 +18221,7 @@ function cS(e = {}) {
18221
18221
  }, []), vh = Ae((U) => {
18222
18222
  !(l != null && l.schema) || se.size === 0 || (Re(!0), setTimeout(() => {
18223
18223
  try {
18224
- const q = Array.from(se).sort((Le, ze) => Le - ze).map((Le) => gr[Le]).filter((Le) => Le !== void 0), Z = vc(
18224
+ const q = Array.from(se).sort((Le, He) => Le - He).map((Le) => gr[Le]).filter((Le) => Le !== void 0), Z = vc(
18225
18225
  q,
18226
18226
  l.schema,
18227
18227
  l.filters ?? [],
@@ -18239,16 +18239,16 @@ function cS(e = {}) {
18239
18239
  Sc(Z, ie);
18240
18240
  break;
18241
18241
  }
18242
- Ge.success(`Exported ${q.length} selected rows`);
18242
+ Ye.success(`Exported ${q.length} selected rows`);
18243
18243
  } catch (q) {
18244
- Ge.error("Export failed. Please try again."), console.error("Export error:", q);
18244
+ Ye.error("Export failed. Please try again."), console.error("Export error:", q);
18245
18245
  } finally {
18246
18246
  Re(!1);
18247
18247
  }
18248
18248
  }, 500));
18249
18249
  }, [l, Te, se, gr]), yh = Ae(() => {
18250
18250
  if (!en("edit_filters", st)) {
18251
- Ge.error(tn("edit_filters"));
18251
+ Ye.error(tn("edit_filters"));
18252
18252
  return;
18253
18253
  }
18254
18254
  bt(!0);
@@ -18259,14 +18259,14 @@ function cS(e = {}) {
18259
18259
  ge(l.id, {
18260
18260
  presets: Le
18261
18261
  });
18262
- const ze = uw(l.id, ie.id);
18263
- Ze("presets", "preset_created", null, { presetId: ie.id, name: ie.name }), tr({ preset: ie, url: ze }), bt(!1), Bt(!0), Ge.success(`Preset "${U}" created successfully`);
18262
+ const He = uw(l.id, ie.id);
18263
+ Ze("presets", "preset_created", null, { presetId: ie.id, name: ie.name }), tr({ preset: ie, url: He }), bt(!1), Bt(!0), Ye.success(`Preset "${U}" created successfully`);
18264
18264
  } catch (Z) {
18265
- Ge.error(Z instanceof Error ? Z.message : "Failed to create preset");
18265
+ Ye.error(Z instanceof Error ? Z.message : "Failed to create preset");
18266
18266
  }
18267
18267
  }, [l, ge, Ze]), Sh = Ae(async () => {
18268
18268
  if (!tt) return;
18269
- await pw(tt.url) ? (Ze("presets", "preset_link_copied", null, { presetId: tt.preset.id }), Ge.success("Link copied to clipboard")) : Ge.error("Failed to copy link");
18269
+ await pw(tt.url) ? (Ze("presets", "preset_link_copied", null, { presetId: tt.preset.id }), Ye.success("Link copied to clipboard")) : Ye.error("Failed to copy link");
18270
18270
  }, [tt, Ze]), Eh = Ae(() => {
18271
18271
  tt && (window.location.href = tt.url);
18272
18272
  }, [tt]), Th = Ae(() => {
@@ -18274,9 +18274,9 @@ function cS(e = {}) {
18274
18274
  const U = tt.preset.id, q = tt.preset.name, Z = fw(l.presets, U);
18275
18275
  ge(l.id, {
18276
18276
  presets: Z
18277
- }), Ze("presets", "preset_deleted", { presetId: U, name: q }, null), $t === U && rr(null), Bt(!1), tr(null), Ge.success(`Preset "${q}" deleted`);
18277
+ }), Ze("presets", "preset_deleted", { presetId: U, name: q }, null), $t === U && rr(null), Bt(!1), tr(null), Ye.success(`Preset "${q}" deleted`);
18278
18278
  }, [tt, l, $t, ge, Ze]), _h = Ae(() => {
18279
- rr(null), Ge.info("Exited preset view");
18279
+ rr(null), Ye.info("Exited preset view");
18280
18280
  }, []);
18281
18281
  jt(() => {
18282
18282
  if (!l) return;
@@ -18285,11 +18285,11 @@ function cS(e = {}) {
18285
18285
  const q = Cc(l.presets, U);
18286
18286
  if (q) {
18287
18287
  const { sanitizedConfig: Z, warnings: ie } = _w(q.config, l.schema);
18288
- ie.length > 0 && ie.forEach((ze) => Ge.warning(ze));
18288
+ ie.length > 0 && ie.forEach((He) => Ye.warning(He));
18289
18289
  const Le = hw(Z);
18290
- ge(l.id, Le), rr(U), Ze("presets", "preset_applied", null, { presetId: q.id, name: q.name }), Ge.success(`Loaded preset: ${q.name}`);
18290
+ ge(l.id, Le), rr(U), Ze("presets", "preset_applied", null, { presetId: q.id, name: q.name }), Ye.success(`Loaded preset: ${q.name}`);
18291
18291
  } else
18292
- Ge.error("Preset not found");
18292
+ Ye.error("Preset not found");
18293
18293
  }
18294
18294
  }, [l == null ? void 0 : l.schemaLocked]);
18295
18295
  const bh = $t ? Cc(l == null ? void 0 : l.presets, $t) : void 0;
@@ -18356,7 +18356,7 @@ function cS(e = {}) {
18356
18356
  activeView: Te,
18357
18357
  isDirty: pe,
18358
18358
  currentTableState: De,
18359
- viewChanges: Xe,
18359
+ viewChanges: Ke,
18360
18360
  // Filters
18361
18361
  filters: l == null ? void 0 : l.filters,
18362
18362
  showFilterPanel: m,
@@ -18395,7 +18395,7 @@ function cS(e = {}) {
18395
18395
  handleCreateView: xe,
18396
18396
  handleUpdateCurrentView: be,
18397
18397
  handleSaveAsNewView: Be,
18398
- handleRevertChanges: Ke,
18398
+ handleRevertChanges: ze,
18399
18399
  handleToggleDefault: qe,
18400
18400
  handleToggleFavorite: Jt,
18401
18401
  handleSoftDelete: Pn,
@@ -19534,7 +19534,7 @@ function Tn(e) {
19534
19534
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
19535
19535
  }
19536
19536
  function Wu(e) {
19537
- if (/* @__PURE__ */ je.isValidElement(e) || Uu.isValidElementType(e) || !Tn(e))
19537
+ if (/* @__PURE__ */ Ge.isValidElement(e) || Uu.isValidElementType(e) || !Tn(e))
19538
19538
  return e;
19539
19539
  const t = {};
19540
19540
  return Object.keys(e).forEach((r) => {
@@ -19548,7 +19548,7 @@ function Lr(e, t, r = {
19548
19548
  ...e
19549
19549
  } : e;
19550
19550
  return Tn(e) && Tn(t) && Object.keys(t).forEach((i) => {
19551
- /* @__PURE__ */ je.isValidElement(t[i]) || Uu.isValidElementType(t[i]) ? n[i] = t[i] : Tn(t[i]) && // Avoid prototype pollution
19551
+ /* @__PURE__ */ Ge.isValidElement(t[i]) || Uu.isValidElementType(t[i]) ? n[i] = t[i] : Tn(t[i]) && // Avoid prototype pollution
19552
19552
  Object.prototype.hasOwnProperty.call(e, i) && Tn(e[i]) ? n[i] = Lr(e[i], t[i], r) : r.clone ? n[i] = Tn(t[i]) ? Wu(t[i]) : t[i] : n[i] = t[i];
19553
19553
  }), n;
19554
19554
  }
@@ -20433,7 +20433,7 @@ function bE(e) {
20433
20433
  return Object.keys(e).length === 0;
20434
20434
  }
20435
20435
  function rl(e = null) {
20436
- const t = je.useContext(U0);
20436
+ const t = Ge.useContext(U0);
20437
20437
  return !t || bE(t) ? e : t;
20438
20438
  }
20439
20439
  const CE = ju();
@@ -20553,7 +20553,7 @@ function ho(e, t, r = !1) {
20553
20553
  }
20554
20554
  return n;
20555
20555
  }
20556
- const Yu = typeof window < "u" ? je.useLayoutEffect : je.useEffect;
20556
+ const Yu = typeof window < "u" ? Ge.useLayoutEffect : Ge.useEffect;
20557
20557
  function NE(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
20558
20558
  return Math.max(t, Math.min(e, r));
20559
20559
  }
@@ -20692,11 +20692,11 @@ function qu(e) {
20692
20692
  }
20693
20693
  };
20694
20694
  }
20695
- const al = /* @__PURE__ */ je.createContext(null);
20695
+ const al = /* @__PURE__ */ Ge.createContext(null);
20696
20696
  process.env.NODE_ENV !== "production" && (al.displayName = "ThemeContext");
20697
20697
  function sl() {
20698
- const e = je.useContext(al);
20699
- return process.env.NODE_ENV !== "production" && je.useDebugValue(e), e;
20698
+ const e = Ge.useContext(al);
20699
+ return process.env.NODE_ENV !== "production" && Ge.useDebugValue(e), e;
20700
20700
  }
20701
20701
  const BE = typeof Symbol == "function" && Symbol.for, $E = BE ? Symbol.for("mui.nested") : "__THEME_NESTED__";
20702
20702
  function UE(e, t) {
@@ -20717,7 +20717,7 @@ function qa(e) {
20717
20717
  } = e, n = sl();
20718
20718
  process.env.NODE_ENV !== "production" && n === null && typeof r == "function" && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
20719
20719
  `));
20720
- const i = je.useMemo(() => {
20720
+ const i = Ge.useMemo(() => {
20721
20721
  const a = n === null ? {
20722
20722
  ...r
20723
20723
  } : UE(n, r);
@@ -20739,7 +20739,7 @@ process.env.NODE_ENV !== "production" && (qa.propTypes = {
20739
20739
  theme: ke.oneOfType([ke.object, ke.func]).isRequired
20740
20740
  });
20741
20741
  process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (qa.propTypes = qu(qa.propTypes));
20742
- const WE = /* @__PURE__ */ je.createContext();
20742
+ const WE = /* @__PURE__ */ Ge.createContext();
20743
20743
  function Ju({
20744
20744
  value: e,
20745
20745
  ...t
@@ -20753,7 +20753,7 @@ process.env.NODE_ENV !== "production" && (Ju.propTypes = {
20753
20753
  children: ke.node,
20754
20754
  value: ke.bool
20755
20755
  });
20756
- const Zu = /* @__PURE__ */ je.createContext(void 0);
20756
+ const Zu = /* @__PURE__ */ Ge.createContext(void 0);
20757
20757
  function Qu({
20758
20758
  value: e,
20759
20759
  children: t
@@ -20792,7 +20792,7 @@ function zE({
20792
20792
  props: e,
20793
20793
  name: t
20794
20794
  }) {
20795
- const r = je.useContext(Zu);
20795
+ const r = Ge.useContext(Zu);
20796
20796
  return VE({
20797
20797
  props: e,
20798
20798
  name: t,
@@ -20803,13 +20803,13 @@ function zE({
20803
20803
  }
20804
20804
  let e0 = 0;
20805
20805
  function HE(e) {
20806
- const [t, r] = je.useState(e), n = e || t;
20807
- return je.useEffect(() => {
20806
+ const [t, r] = Ge.useState(e), n = e || t;
20807
+ return Ge.useEffect(() => {
20808
20808
  t == null && (e0 += 1, r(`mui-${e0}`));
20809
20809
  }, [t]), n;
20810
20810
  }
20811
20811
  const jE = {
20812
- ...je
20812
+ ...Ge
20813
20813
  }, t0 = jE.useId;
20814
20814
  function GE(e) {
20815
20815
  return t0 !== void 0 ? t0() : HE(e);
@@ -20838,7 +20838,7 @@ function YE(e) {
20838
20838
  }
20839
20839
  const r0 = {};
20840
20840
  function n0(e, t, r, n = !1) {
20841
- return je.useMemo(() => {
20841
+ return Ge.useMemo(() => {
20842
20842
  const i = e && t[e] || t;
20843
20843
  if (typeof r == "function") {
20844
20844
  const a = r(i), s = e ? {
@@ -21023,16 +21023,16 @@ function QE(e) {
21023
21023
  storageWindow: o = typeof window > "u" ? void 0 : window,
21024
21024
  storageManager: f = JE,
21025
21025
  noSsr: c = !1
21026
- } = e, u = i.join(","), d = i.length > 1, g = je.useMemo(() => f == null ? void 0 : f({
21026
+ } = e, u = i.join(","), d = i.length > 1, g = Ge.useMemo(() => f == null ? void 0 : f({
21027
21027
  key: a,
21028
21028
  storageWindow: o
21029
- }), [f, a, o]), l = je.useMemo(() => f == null ? void 0 : f({
21029
+ }), [f, a, o]), l = Ge.useMemo(() => f == null ? void 0 : f({
21030
21030
  key: `${s}-light`,
21031
21031
  storageWindow: o
21032
- }), [f, s, o]), x = je.useMemo(() => f == null ? void 0 : f({
21032
+ }), [f, s, o]), x = Ge.useMemo(() => f == null ? void 0 : f({
21033
21033
  key: `${s}-dark`,
21034
21034
  storageWindow: o
21035
- }), [f, s, o]), [p, m] = je.useState(() => {
21035
+ }), [f, s, o]), [p, m] = Ge.useState(() => {
21036
21036
  const B = (g == null ? void 0 : g.get(t)) || t, M = (l == null ? void 0 : l.get(r)) || r, L = (x == null ? void 0 : x.get(n)) || n;
21037
21037
  return {
21038
21038
  mode: B,
@@ -21040,11 +21040,11 @@ function QE(e) {
21040
21040
  lightColorScheme: M,
21041
21041
  darkColorScheme: L
21042
21042
  };
21043
- }), [w, T] = je.useState(c || !d);
21044
- je.useEffect(() => {
21043
+ }), [w, T] = Ge.useState(c || !d);
21044
+ Ge.useEffect(() => {
21045
21045
  T(!0);
21046
21046
  }, []);
21047
- const E = ZE(p), D = je.useCallback((B) => {
21047
+ const E = ZE(p), D = Ge.useCallback((B) => {
21048
21048
  m((M) => {
21049
21049
  if (B === M.mode)
21050
21050
  return M;
@@ -21055,7 +21055,7 @@ function QE(e) {
21055
21055
  systemMode: i0(L)
21056
21056
  };
21057
21057
  });
21058
- }, [g, t]), I = je.useCallback((B) => {
21058
+ }, [g, t]), I = Ge.useCallback((B) => {
21059
21059
  B ? typeof B == "string" ? B && !u.includes(B) ? console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`) : m((M) => {
21060
21060
  const L = {
21061
21061
  ...M
@@ -21073,7 +21073,7 @@ function QE(e) {
21073
21073
  lightColorScheme: r,
21074
21074
  darkColorScheme: n
21075
21075
  }));
21076
- }, [u, l, x, r, n]), z = je.useCallback((B) => {
21076
+ }, [u, l, x, r, n]), z = Ge.useCallback((B) => {
21077
21077
  p.mode === "system" && m((M) => {
21078
21078
  const L = B != null && B.matches ? "dark" : "light";
21079
21079
  return M.systemMode === L ? M : {
@@ -21081,15 +21081,15 @@ function QE(e) {
21081
21081
  systemMode: L
21082
21082
  };
21083
21083
  });
21084
- }, [p.mode]), F = je.useRef(z);
21085
- return F.current = z, je.useEffect(() => {
21084
+ }, [p.mode]), F = Ge.useRef(z);
21085
+ return F.current = z, Ge.useEffect(() => {
21086
21086
  if (typeof window.matchMedia != "function" || !d)
21087
21087
  return;
21088
21088
  const B = (...L) => F.current(...L), M = window.matchMedia("(prefers-color-scheme: dark)");
21089
21089
  return M.addListener(B), B(M), () => {
21090
21090
  M.removeListener(B);
21091
21091
  };
21092
- }, [d]), je.useEffect(() => {
21092
+ }, [d]), Ge.useEffect(() => {
21093
21093
  if (d) {
21094
21094
  const B = (g == null ? void 0 : g.subscribe((W) => {
21095
21095
  (!W || ["light", "dark", "system"].includes(W)) && D(W || t);
@@ -21142,9 +21142,9 @@ function tT(e) {
21142
21142
  setMode: () => {
21143
21143
  },
21144
21144
  systemMode: void 0
21145
- }, c = /* @__PURE__ */ je.createContext(void 0);
21145
+ }, c = /* @__PURE__ */ Ge.createContext(void 0);
21146
21146
  process.env.NODE_ENV !== "production" && (c.displayName = "ColorSchemeContext");
21147
- const u = () => je.useContext(c) || f, d = {}, g = {};
21147
+ const u = () => Ge.useContext(c) || f, d = {}, g = {};
21148
21148
  function l(w) {
21149
21149
  var $t, rr, Xt, Kt;
21150
21150
  const {
@@ -21162,11 +21162,11 @@ function tT(e) {
21162
21162
  defaultMode: j = "system",
21163
21163
  forceThemeRerender: Q = !1,
21164
21164
  noSsr: J
21165
- } = w, ee = je.useRef(!1), Oe = sl(), Ie = je.useContext(c), Re = !!Ie && !W, oe = je.useMemo(() => E || (typeof r == "function" ? r() : r), [E]), ce = oe[t], _ = ce || oe, {
21165
+ } = w, ee = Ge.useRef(!1), Oe = sl(), Ie = Ge.useContext(c), Re = !!Ie && !W, oe = Ge.useMemo(() => E || (typeof r == "function" ? r() : r), [E]), ce = oe[t], _ = ce || oe, {
21166
21166
  colorSchemes: P = d,
21167
21167
  components: N = g,
21168
21168
  cssVarPrefix: R
21169
- } = _, V = Object.keys(P).filter((nt) => !!P[nt]).join(","), le = je.useMemo(() => V.split(","), [V]), de = typeof s == "string" ? s : s.light, ue = typeof s == "string" ? s : s.dark, te = P[de] && P[ue] ? j : ((rr = ($t = P[_.defaultColorScheme]) == null ? void 0 : $t.palette) == null ? void 0 : rr.mode) || ((Xt = _.palette) == null ? void 0 : Xt.mode), {
21169
+ } = _, V = Object.keys(P).filter((nt) => !!P[nt]).join(","), le = Ge.useMemo(() => V.split(","), [V]), de = typeof s == "string" ? s : s.light, ue = typeof s == "string" ? s : s.dark, te = P[de] && P[ue] ? j : ((rr = ($t = P[_.defaultColorScheme]) == null ? void 0 : $t.palette) == null ? void 0 : rr.mode) || ((Xt = _.palette) == null ? void 0 : Xt.mode), {
21170
21170
  mode: Me,
21171
21171
  setMode: se,
21172
21172
  systemMode: We,
@@ -21190,7 +21190,7 @@ function tT(e) {
21190
21190
  `));
21191
21191
  let zt = Ve || _.defaultColorScheme;
21192
21192
  _.vars && !Q && (zt = _.defaultColorScheme);
21193
- const bt = je.useMemo(() => {
21193
+ const bt = Ge.useMemo(() => {
21194
21194
  var Et;
21195
21195
  const nt = ((Et = _.generateThemeVars) == null ? void 0 : Et.call(_)) || _.vars, it = {
21196
21196
  ..._,
@@ -21227,7 +21227,7 @@ function tT(e) {
21227
21227
  L.setAttribute(it, Ve);
21228
21228
  }
21229
21229
  }
21230
- }, [Ve, ct, L, le]), je.useEffect(() => {
21230
+ }, [Ve, ct, L, le]), Ge.useEffect(() => {
21231
21231
  let nt;
21232
21232
  if (z && ee.current && M) {
21233
21233
  const it = M.createElement("style");
@@ -21238,10 +21238,10 @@ function tT(e) {
21238
21238
  return () => {
21239
21239
  clearTimeout(nt);
21240
21240
  };
21241
- }, [Ve, z, M]), je.useEffect(() => (ee.current = !0, () => {
21241
+ }, [Ve, z, M]), Ge.useEffect(() => (ee.current = !0, () => {
21242
21242
  ee.current = !1;
21243
21243
  }), []);
21244
- const Bt = je.useMemo(() => ({
21244
+ const Bt = Ge.useMemo(() => ({
21245
21245
  allColorSchemes: le,
21246
21246
  colorScheme: Ve,
21247
21247
  darkColorScheme: St,
@@ -21256,7 +21256,7 @@ function tT(e) {
21256
21256
  }), [le, Ve, St, Pe, xt, Se, se, We, bt.colorSchemeSelector]);
21257
21257
  let tt = !0;
21258
21258
  (v || _.cssVariables === !1 || Re && (Oe == null ? void 0 : Oe.cssVarPrefix) === R) && (tt = !1);
21259
- const tr = /* @__PURE__ */ C(je.Fragment, {
21259
+ const tr = /* @__PURE__ */ C(Ge.Fragment, {
21260
21260
  children: [/* @__PURE__ */ h(Zi, {
21261
21261
  themeId: ce ? t : void 0,
21262
21262
  theme: bt,
@@ -22474,7 +22474,7 @@ function HT({
22474
22474
  theme: e,
22475
22475
  ...t
22476
22476
  }) {
22477
- const r = je.useMemo(() => {
22477
+ const r = Ge.useMemo(() => {
22478
22478
  if (typeof e == "function")
22479
22479
  return e;
22480
22480
  const n = zn in e ? e[zn] : e;
@@ -22614,7 +22614,7 @@ function ud(e) {
22614
22614
  children: r,
22615
22615
  enableColorScheme: n = !1
22616
22616
  } = t;
22617
- return /* @__PURE__ */ C(je.Fragment, {
22617
+ return /* @__PURE__ */ C(Ge.Fragment, {
22618
22618
  children: [xo && /* @__PURE__ */ h(KT, {
22619
22619
  enableColorScheme: n
22620
22620
  }), !xo && !n && /* @__PURE__ */ h("span", {
@@ -24587,7 +24587,7 @@ function Cd(e, t, r) {
24587
24587
  replaceReducer: l
24588
24588
  }, n[m0] = x, n;
24589
24589
  }
24590
- function He(e, t, ...r) {
24590
+ function je(e, t, ...r) {
24591
24591
  if (bb() && t === void 0)
24592
24592
  throw new Error("invariant requires an error message argument");
24593
24593
  if (!e) {
@@ -24689,15 +24689,15 @@ function Ib(e) {
24689
24689
  };
24690
24690
  }
24691
24691
  function Fb(e, t, r) {
24692
- He(!t.isDragging(), "Cannot call beginDrag while dragging."), e.forEach(function(n) {
24693
- He(r.getSource(n), "Expected sourceIds to be registered.");
24692
+ je(!t.isDragging(), "Cannot call beginDrag while dragging."), e.forEach(function(n) {
24693
+ je(r.getSource(n), "Expected sourceIds to be registered.");
24694
24694
  });
24695
24695
  }
24696
24696
  function Nb(e) {
24697
- He(typeof e == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
24697
+ je(typeof e == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
24698
24698
  }
24699
24699
  function Rb(e) {
24700
- He(Ad(e), "Item must be an object.");
24700
+ je(Ad(e), "Item must be an object.");
24701
24701
  }
24702
24702
  function Pb(e, t) {
24703
24703
  let r = null;
@@ -24742,7 +24742,7 @@ function Bb(e) {
24742
24742
  };
24743
24743
  }
24744
24744
  function $b(e) {
24745
- He(e.isDragging(), "Cannot call drop while not dragging."), He(!e.didDrop(), "Cannot call drop twice during one drag operation.");
24745
+ je(e.isDragging(), "Cannot call drop while not dragging."), je(!e.didDrop(), "Cannot call drop twice during one drag operation.");
24746
24746
  }
24747
24747
  function Ub(e, t, r, n) {
24748
24748
  const i = r.getTarget(e);
@@ -24750,7 +24750,7 @@ function Ub(e, t, r, n) {
24750
24750
  return Wb(a), typeof a > "u" && (a = t === 0 ? {} : n.getDropResult()), a;
24751
24751
  }
24752
24752
  function Wb(e) {
24753
- He(typeof e > "u" || Ad(e), "Drop result must either be an object or undefined.");
24753
+ je(typeof e > "u" || Ad(e), "Drop result must either be an object or undefined.");
24754
24754
  }
24755
24755
  function Vb(e) {
24756
24756
  const t = e.getTargetIds().filter(e.canDropOnTarget, e);
@@ -24767,7 +24767,7 @@ function zb(e) {
24767
24767
  };
24768
24768
  }
24769
24769
  function Hb(e) {
24770
- He(e.isDragging(), "Cannot call endDrag while not dragging.");
24770
+ je(e.isDragging(), "Cannot call endDrag while not dragging.");
24771
24771
  }
24772
24772
  function So(e, t) {
24773
24773
  return t === null ? e === null : Array.isArray(e) ? e.some(
@@ -24788,15 +24788,15 @@ function jb(e) {
24788
24788
  };
24789
24789
  }
24790
24790
  function Gb(e) {
24791
- He(Array.isArray(e), "Expected targetIds to be an array.");
24791
+ je(Array.isArray(e), "Expected targetIds to be an array.");
24792
24792
  }
24793
24793
  function Yb(e, t, r) {
24794
- He(t.isDragging(), "Cannot call hover while not dragging."), He(!t.didDrop(), "Cannot call hover after drop.");
24794
+ je(t.isDragging(), "Cannot call hover while not dragging."), je(!t.didDrop(), "Cannot call hover after drop.");
24795
24795
  for (let n = 0; n < e.length; n++) {
24796
24796
  const i = e[n];
24797
- He(e.lastIndexOf(i) === n, "Expected targetIds to be unique in the passed array.");
24797
+ je(e.lastIndexOf(i) === n, "Expected targetIds to be unique in the passed array.");
24798
24798
  const a = r.getTarget(i);
24799
- He(a, "Expected targetIds to be registered.");
24799
+ je(a, "Expected targetIds to be registered.");
24800
24800
  }
24801
24801
  }
24802
24802
  function Xb(e, t, r) {
@@ -24893,7 +24893,7 @@ function rC(e, t) {
24893
24893
  class nC {
24894
24894
  subscribeToStateChange(t, r = {}) {
24895
24895
  const { handlerIds: n } = r;
24896
- He(typeof t == "function", "listener must be a function."), He(typeof n > "u" || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
24896
+ je(typeof t == "function", "listener must be a function."), je(typeof n > "u" || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
24897
24897
  let i = this.store.getState().stateId;
24898
24898
  const a = () => {
24899
24899
  const s = this.store.getState(), o = s.stateId;
@@ -24906,7 +24906,7 @@ class nC {
24906
24906
  return this.store.subscribe(a);
24907
24907
  }
24908
24908
  subscribeToOffsetChange(t) {
24909
- He(typeof t == "function", "listener must be a function.");
24909
+ je(typeof t == "function", "listener must be a function.");
24910
24910
  let r = this.store.getState().dragOffset;
24911
24911
  const n = () => {
24912
24912
  const i = this.store.getState().dragOffset;
@@ -24918,13 +24918,13 @@ class nC {
24918
24918
  if (!t)
24919
24919
  return !1;
24920
24920
  const r = this.registry.getSource(t);
24921
- return He(r, `Expected to find a valid source. sourceId=${t}`), this.isDragging() ? !1 : r.canDrag(this, t);
24921
+ return je(r, `Expected to find a valid source. sourceId=${t}`), this.isDragging() ? !1 : r.canDrag(this, t);
24922
24922
  }
24923
24923
  canDropOnTarget(t) {
24924
24924
  if (!t)
24925
24925
  return !1;
24926
24926
  const r = this.registry.getTarget(t);
24927
- if (He(r, `Expected to find a valid target. targetId=${t}`), !this.isDragging() || this.didDrop())
24927
+ if (je(r, `Expected to find a valid target. targetId=${t}`), !this.isDragging() || this.didDrop())
24928
24928
  return !1;
24929
24929
  const n = this.registry.getTargetType(t), i = this.getItemType();
24930
24930
  return So(n, i) && r.canDrop(this, t);
@@ -24936,7 +24936,7 @@ class nC {
24936
24936
  if (!t)
24937
24937
  return !1;
24938
24938
  const r = this.registry.getSource(t, !0);
24939
- if (He(r, `Expected to find a valid source. sourceId=${t}`), !this.isDragging() || !this.isSourcePublic())
24939
+ if (je(r, `Expected to find a valid source. sourceId=${t}`), !this.isDragging() || !this.isSourcePublic())
24940
24940
  return !1;
24941
24941
  const n = this.registry.getSourceType(t), i = this.getItemType();
24942
24942
  return n !== i ? !1 : r.isDragging(this, t);
@@ -25154,10 +25154,10 @@ function pC(e) {
25154
25154
  };
25155
25155
  }
25156
25156
  function gC(e) {
25157
- He(typeof e.canDrag == "function", "Expected canDrag to be a function."), He(typeof e.beginDrag == "function", "Expected beginDrag to be a function."), He(typeof e.endDrag == "function", "Expected endDrag to be a function.");
25157
+ je(typeof e.canDrag == "function", "Expected canDrag to be a function."), je(typeof e.beginDrag == "function", "Expected beginDrag to be a function."), je(typeof e.endDrag == "function", "Expected endDrag to be a function.");
25158
25158
  }
25159
25159
  function mC(e) {
25160
- He(typeof e.canDrop == "function", "Expected canDrop to be a function."), He(typeof e.hover == "function", "Expected hover to be a function."), He(typeof e.drop == "function", "Expected beginDrag to be a function.");
25160
+ je(typeof e.canDrop == "function", "Expected canDrop to be a function."), je(typeof e.hover == "function", "Expected hover to be a function."), je(typeof e.drop == "function", "Expected beginDrag to be a function.");
25161
25161
  }
25162
25162
  function Eo(e, t) {
25163
25163
  if (t && Array.isArray(e)) {
@@ -25166,7 +25166,7 @@ function Eo(e, t) {
25166
25166
  );
25167
25167
  return;
25168
25168
  }
25169
- He(typeof e == "string" || typeof e == "symbol", t ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
25169
+ je(typeof e == "string" || typeof e == "symbol", t ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
25170
25170
  }
25171
25171
  var zr;
25172
25172
  (function(e) {
@@ -25223,16 +25223,16 @@ class wC {
25223
25223
  return E0(this.dragSources, t) || E0(this.dropTargets, t);
25224
25224
  }
25225
25225
  getSource(t, r = !1) {
25226
- return He(this.isSourceId(t), "Expected a valid source ID."), r && t === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(t);
25226
+ return je(this.isSourceId(t), "Expected a valid source ID."), r && t === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(t);
25227
25227
  }
25228
25228
  getTarget(t) {
25229
- return He(this.isTargetId(t), "Expected a valid target ID."), this.dropTargets.get(t);
25229
+ return je(this.isTargetId(t), "Expected a valid target ID."), this.dropTargets.get(t);
25230
25230
  }
25231
25231
  getSourceType(t) {
25232
- return He(this.isSourceId(t), "Expected a valid source ID."), this.types.get(t);
25232
+ return je(this.isSourceId(t), "Expected a valid source ID."), this.types.get(t);
25233
25233
  }
25234
25234
  getTargetType(t) {
25235
- return He(this.isTargetId(t), "Expected a valid target ID."), this.types.get(t);
25235
+ return je(this.isTargetId(t), "Expected a valid target ID."), this.types.get(t);
25236
25236
  }
25237
25237
  isSourceId(t) {
25238
25238
  return S0(t) === zr.SOURCE;
@@ -25241,19 +25241,19 @@ class wC {
25241
25241
  return S0(t) === zr.TARGET;
25242
25242
  }
25243
25243
  removeSource(t) {
25244
- He(this.getSource(t), "Expected an existing source."), this.store.dispatch(hC(t)), fC(() => {
25244
+ je(this.getSource(t), "Expected an existing source."), this.store.dispatch(hC(t)), fC(() => {
25245
25245
  this.dragSources.delete(t), this.types.delete(t);
25246
25246
  });
25247
25247
  }
25248
25248
  removeTarget(t) {
25249
- He(this.getTarget(t), "Expected an existing target."), this.store.dispatch(pC(t)), this.dropTargets.delete(t), this.types.delete(t);
25249
+ je(this.getTarget(t), "Expected an existing target."), this.store.dispatch(pC(t)), this.dropTargets.delete(t), this.types.delete(t);
25250
25250
  }
25251
25251
  pinSource(t) {
25252
25252
  const r = this.getSource(t);
25253
- He(r, "Expected an existing source."), this.pinnedSourceId = t, this.pinnedSource = r;
25253
+ je(r, "Expected an existing source."), this.pinnedSourceId = t, this.pinnedSource = r;
25254
25254
  }
25255
25255
  unpinSource() {
25256
- He(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
25256
+ je(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
25257
25257
  }
25258
25258
  addHandler(t, r, n) {
25259
25259
  const i = yC(t);
@@ -25629,7 +25629,7 @@ class KC {
25629
25629
  return this.sourceId;
25630
25630
  }
25631
25631
  canDrag() {
25632
- He(!Qs, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
25632
+ je(!Qs, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
25633
25633
  try {
25634
25634
  return Qs = !0, this.internalMonitor.canDragSource(this.sourceId);
25635
25635
  } finally {
@@ -25639,7 +25639,7 @@ class KC {
25639
25639
  isDragging() {
25640
25640
  if (!this.sourceId)
25641
25641
  return !1;
25642
- He(!eo, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
25642
+ je(!eo, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
25643
25643
  try {
25644
25644
  return eo = !0, this.internalMonitor.isDraggingSource(this.sourceId);
25645
25645
  } finally {
@@ -25718,7 +25718,7 @@ class qC {
25718
25718
  canDrop() {
25719
25719
  if (!this.targetId)
25720
25720
  return !1;
25721
- He(!to, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
25721
+ je(!to, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
25722
25722
  try {
25723
25723
  return to = !0, this.internalMonitor.canDropOnTarget(this.targetId);
25724
25724
  } finally {
@@ -25834,7 +25834,7 @@ function C0(e, t) {
25834
25834
  }
25835
25835
  function t4(e, t) {
25836
25836
  const r = e.ref;
25837
- return He(typeof r != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), r ? Al(e, {
25837
+ return je(typeof r != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), r ? Al(e, {
25838
25838
  ref: (n) => {
25839
25839
  C0(r, n), C0(t, n);
25840
25840
  }
@@ -25976,7 +25976,7 @@ class n4 {
25976
25976
  }
25977
25977
  function Di() {
25978
25978
  const { dragDropManager: e } = L0(bd);
25979
- return He(e != null, "Expected drag drop context"), e;
25979
+ return je(e != null, "Expected drag drop context"), e;
25980
25980
  }
25981
25981
  function i4(e, t) {
25982
25982
  const r = Di(), n = Qe(
@@ -26041,7 +26041,7 @@ function o4(e, t, r) {
26041
26041
  function l4(e) {
26042
26042
  return Qe(() => {
26043
26043
  const t = e.type;
26044
- return He(t != null, "spec.type must be defined"), t;
26044
+ return je(t != null, "spec.type must be defined"), t;
26045
26045
  }, [
26046
26046
  e
26047
26047
  ]);
@@ -26063,7 +26063,7 @@ function c4(e, t, r) {
26063
26063
  }
26064
26064
  function Ld(e, t) {
26065
26065
  const r = Pd(e);
26066
- He(!r.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
26066
+ je(!r.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
26067
26067
  const n = a4(), i = i4(r.options, r.previewOptions);
26068
26068
  return c4(r, n, i), [
26069
26069
  Rd(r.collect, n, i),
@@ -26101,7 +26101,7 @@ function d4() {
26101
26101
  }
26102
26102
  function h4(e) {
26103
26103
  const { accept: t } = e;
26104
- return Qe(() => (He(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
26104
+ return Qe(() => (je(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
26105
26105
  t
26106
26106
  ]), [
26107
26107
  t
@@ -27381,8 +27381,8 @@ function P4({
27381
27381
  };
27382
27382
  jt(() => {
27383
27383
  if (!bt) return;
27384
- const pe = (Xe) => {
27385
- const y = Xe.clientX - Bt, A = Math.max(100, tr + y);
27384
+ const pe = (Ke) => {
27385
+ const y = Ke.clientX - Bt, A = Math.max(100, tr + y);
27386
27386
  j == null || j(bt, A);
27387
27387
  }, De = () => {
27388
27388
  ct(null);
@@ -27395,19 +27395,19 @@ function P4({
27395
27395
  g && g(pe);
27396
27396
  }, ir = (pe, De) => {
27397
27397
  if (!Q) return;
27398
- const Xe = [...c.length > 0 ? c : e.map((A) => A.name)], [y] = Xe.splice(pe, 1);
27399
- Xe.splice(De, 0, y), Q(Xe);
27398
+ const Ke = [...c.length > 0 ? c : e.map((A) => A.name)], [y] = Ke.splice(pe, 1);
27399
+ Ke.splice(De, 0, y), Q(Ke);
27400
27400
  }, pr = (pe) => {
27401
27401
  if (!g) return;
27402
- const De = r.find((Xe) => Xe.column === pe);
27402
+ const De = r.find((Ke) => Ke.column === pe);
27403
27403
  (!De || De.direction !== "asc") && g(pe);
27404
27404
  }, ge = (pe) => {
27405
27405
  if (!g) return;
27406
- const De = r.find((Xe) => Xe.column === pe);
27406
+ const De = r.find((Ke) => Ke.column === pe);
27407
27407
  De ? De.direction === "asc" && g(pe) : (g(pe), setTimeout(() => g(pe), 0));
27408
27408
  }, ur = (pe) => {
27409
27409
  if (!g) return;
27410
- const De = r.find((Xe) => Xe.column === pe);
27410
+ const De = r.find((Ke) => Ke.column === pe);
27411
27411
  De && (De.direction === "asc" ? (g(pe), setTimeout(() => g(pe), 0)) : De.direction === "desc" && g(pe));
27412
27412
  }, Ze = (pe) => {
27413
27413
  J && J(pe, !1);
@@ -27422,7 +27422,7 @@ function P4({
27422
27422
  ue && (De.shiftKey && rr !== null ? (De.preventDefault(), Me && Me(rr, pe)) : (ue(pe), Xt(pe)));
27423
27423
  }, gr = et.length > 0 && le.size > 0 && et.every((pe, De) => le.has(De)), Ct = le.size > 0 && !gr, _t = ue && te, Tt = (pe) => {
27424
27424
  var y;
27425
- const De = pe.groupLevel, Xe = De * 24;
27425
+ const De = pe.groupLevel, Ke = De * 24;
27426
27426
  return /* @__PURE__ */ h(
27427
27427
  dn,
27428
27428
  {
@@ -27438,7 +27438,7 @@ function P4({
27438
27438
  Wt,
27439
27439
  {
27440
27440
  colSpan: Et.length + (_t ? 1 : 0),
27441
- sx: { pl: `${Xe + 24}px` },
27441
+ sx: { pl: `${Ke + 24}px` },
27442
27442
  children: /* @__PURE__ */ C(H, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
27443
27443
  pe.isCollapsed ? /* @__PURE__ */ h(ws, { size: 16 }) : /* @__PURE__ */ h(ua, { size: 16 }),
27444
27444
  /* @__PURE__ */ h(fe, { variant: "body2", sx: { fontWeight: 600 }, children: Jh(De, ((y = d == null ? void 0 : d.levels[De]) == null ? void 0 : y.column) || "", pe.groupValue) }),
@@ -27469,7 +27469,7 @@ function P4({
27469
27469
  pe.groupKey
27470
27470
  );
27471
27471
  }, Te = (pe, De) => {
27472
- const Xe = le.has(De);
27472
+ const Ke = le.has(De);
27473
27473
  return /* @__PURE__ */ C(
27474
27474
  dn,
27475
27475
  {
@@ -27477,14 +27477,14 @@ function P4({
27477
27477
  _t && y.target === y.currentTarget && Ot(De, y);
27478
27478
  },
27479
27479
  sx: {
27480
- bgcolor: Xe ? "primary.lighter" : "transparent",
27481
- "&:hover": { bgcolor: Xe ? "primary.lighter" : "action.hover" }
27480
+ bgcolor: Ke ? "primary.lighter" : "transparent",
27481
+ "&:hover": { bgcolor: Ke ? "primary.lighter" : "action.hover" }
27482
27482
  },
27483
27483
  children: [
27484
27484
  _t && /* @__PURE__ */ h(Wt, { sx: { width: 48 }, children: /* @__PURE__ */ h(
27485
27485
  ao,
27486
27486
  {
27487
- checked: Xe,
27487
+ checked: Ke,
27488
27488
  onChange: (y) => {
27489
27489
  y.stopPropagation(), Ot(De, y);
27490
27490
  },
@@ -27773,50 +27773,61 @@ function P4({
27773
27773
  ] }),
27774
27774
  /* @__PURE__ */ C(Qr, { sx: { overflow: "hidden" }, variant: "outlined", children: [
27775
27775
  /* @__PURE__ */ h(H, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ C(Co, { sx: { tableLayout: "fixed" }, children: [
27776
- /* @__PURE__ */ h(Ao, { children: /* @__PURE__ */ C(dn, { sx: { bgcolor: "action.hover" }, children: [
27777
- _t && /* @__PURE__ */ h(Wt, { sx: { width: 48 }, children: /* @__PURE__ */ h(
27778
- ao,
27779
- {
27780
- checked: gr,
27781
- indeterminate: Ct,
27782
- onChange: (pe) => {
27783
- te == null || te(pe.target.checked, et.length);
27784
- },
27785
- size: "small",
27786
- title: "Select all visible rows"
27787
- }
27788
- ) }),
27789
- Et.map((pe, De) => /* @__PURE__ */ h(
27790
- v4,
27791
- {
27792
- column: pe,
27793
- index: De,
27794
- sortRule: r.find((Xe) => Xe.column === pe.name),
27795
- hasFilters: n.some((Xe) => Xe.column === pe.name),
27796
- isInSortStack: r.some((Xe) => Xe.column === pe.name),
27797
- width: u[pe.name],
27798
- onColumnClick: kr,
27799
- onMoveColumn: ir,
27800
- onResizeStart: nr,
27801
- onSort: kr,
27802
- onRemoveSort: ur,
27803
- onSortAscending: pr,
27804
- onSortDescending: ge,
27805
- onOpenFilterForColumn: w || (() => {
27806
- }),
27807
- onClearFiltersForColumn: ee || (() => {
27808
- }),
27809
- onHideColumn: Ze,
27810
- onManageColumns: v || (() => {
27811
- }),
27812
- onManageViews: D || (() => {
27813
- }),
27814
- onResetLayout: Oe || (() => {
27815
- })
27776
+ /* @__PURE__ */ h(
27777
+ Ao,
27778
+ {
27779
+ sx: {
27780
+ position: "sticky",
27781
+ top: 0,
27782
+ zIndex: 3,
27783
+ backgroundColor: "background.paper"
27816
27784
  },
27817
- pe.name
27818
- ))
27819
- ] }) }),
27785
+ children: /* @__PURE__ */ C(dn, { sx: { bgcolor: "action.hover" }, children: [
27786
+ _t && /* @__PURE__ */ h(Wt, { sx: { width: 48 }, children: /* @__PURE__ */ h(
27787
+ ao,
27788
+ {
27789
+ checked: gr,
27790
+ indeterminate: Ct,
27791
+ onChange: (pe) => {
27792
+ te == null || te(pe.target.checked, et.length);
27793
+ },
27794
+ size: "small",
27795
+ title: "Select all visible rows"
27796
+ }
27797
+ ) }),
27798
+ Et.map((pe, De) => /* @__PURE__ */ h(
27799
+ v4,
27800
+ {
27801
+ column: pe,
27802
+ index: De,
27803
+ sortRule: r.find((Ke) => Ke.column === pe.name),
27804
+ hasFilters: n.some((Ke) => Ke.column === pe.name),
27805
+ isInSortStack: r.some((Ke) => Ke.column === pe.name),
27806
+ width: u[pe.name],
27807
+ onColumnClick: kr,
27808
+ onMoveColumn: ir,
27809
+ onResizeStart: nr,
27810
+ onSort: kr,
27811
+ onRemoveSort: ur,
27812
+ onSortAscending: pr,
27813
+ onSortDescending: ge,
27814
+ onOpenFilterForColumn: w || (() => {
27815
+ }),
27816
+ onClearFiltersForColumn: ee || (() => {
27817
+ }),
27818
+ onHideColumn: Ze,
27819
+ onManageColumns: v || (() => {
27820
+ }),
27821
+ onManageViews: D || (() => {
27822
+ }),
27823
+ onResetLayout: Oe || (() => {
27824
+ })
27825
+ },
27826
+ pe.name
27827
+ ))
27828
+ ] })
27829
+ }
27830
+ ),
27820
27831
  /* @__PURE__ */ h(Oo, { children: et.length === 0 ? /* @__PURE__ */ h(dn, { children: /* @__PURE__ */ h(
27821
27832
  Wt,
27822
27833
  {
@@ -30100,7 +30111,7 @@ function Xd({ reportEngine: e }) {
30100
30111
  setShowCreatePreset: Te,
30101
30112
  showShareLink: pe,
30102
30113
  setShowShareLink: De,
30103
- generatedPreset: Xe,
30114
+ generatedPreset: Ke,
30104
30115
  activePreset: y,
30105
30116
  handleOpenSharePreset: A,
30106
30117
  handleCreatePreset: S,
@@ -30121,282 +30132,335 @@ function Xd({ reportEngine: e }) {
30121
30132
  // Update report
30122
30133
  updateReport: xe
30123
30134
  } = e;
30124
- return !t || !t.schemaLocked || !t.schema || !t.uploadedData || !t.views ? null : /* @__PURE__ */ C(H, { sx: { p: 3 }, children: [
30125
- X && /* @__PURE__ */ h(
30126
- Z4,
30127
- {
30128
- warning: X,
30129
- onDismiss: () => K(null)
30130
- }
30131
- ),
30132
- me && /* @__PURE__ */ h(
30133
- Q4,
30134
- {
30135
- error: me,
30136
- onDismiss: () => we(null)
30137
- }
30138
- ),
30139
- ur && /* @__PURE__ */ h(
30140
- G4,
30141
- {
30142
- onExportAnyway: et,
30143
- onSaveAndExport: Ot,
30144
- onCancel: gr
30145
- }
30146
- ),
30147
- /* @__PURE__ */ h(
30148
- P4,
30149
- {
30150
- schema: t.schema,
30151
- data: r,
30152
- sortStack: t.sortStack,
30153
- filters: t.filters,
30154
- views: t.views,
30155
- activeViewId: t.activeViewId,
30156
- isDirty: o,
30157
- isExporting: ir,
30158
- columnVisibility: t.columnVisibility || (s == null ? void 0 : s.snapshot.columnVisibility),
30159
- columnOrder: t.columnOrder || (s == null ? void 0 : s.snapshot.columnOrder),
30160
- columnWidths: t.columnWidths || (s == null ? void 0 : s.snapshot.columnWidths),
30161
- grouping: t.grouping,
30162
- onSort: z,
30163
- onSortAscending: B,
30164
- onSortDescending: M,
30165
- onOpenFilters: () => d(!0),
30166
- onOpenSort: () => I(!0),
30167
- onOpenFilterForColumn: w,
30168
- onSelectView: oe,
30169
- onCreateView: () => j(!0),
30170
- onManageViews: () => W(!0),
30171
- onUpdateCurrentView: _,
30172
- onSaveAsNewView: P,
30173
- onToggleDefault: R,
30174
- onToggleFavorite: V,
30175
- onRestoreView: de,
30176
- onPermanentDelete: ue,
30177
- onExport: Ze,
30178
- onOpenColumns: () => Pe(!0),
30179
- onUpdateColumnWidth: Se,
30180
- onUpdateColumnOrder: Je,
30181
- onUpdateColumnVisibility: St,
30182
- onClearFiltersForColumn: E,
30183
- onResetLayout: xt,
30184
- onOpenGroup: () => zt(!0),
30185
- onToggleGroupCollapse: ct,
30186
- onOpenAuditHistory: () => _t(!0),
30187
- onOpenSharePreset: A,
30188
- searchQuery: Bt,
30189
- searchHistory: tt,
30190
- onAddToSearchHistory: $t,
30191
- onToggleSearchFavourite: rr,
30192
- onDeleteSearchHistory: Xt,
30193
- selectedRowIds: Kt,
30194
- onSearchChange: tr,
30195
- onToggleRowSelection: nt,
30196
- onToggleAllRows: it,
30197
- onRangeSelection: Et,
30198
- onClearSelection: Ut,
30199
- onExportSelected: ft,
30200
- currentPage: (nr == null ? void 0 : nr.currentPage) || Ft,
30201
- pageSize: (nr == null ? void 0 : nr.pageSize) || Tr,
30202
- onPageChange: st,
30203
- onPageSizeChange: kr,
30204
- totalRowsBeforePagination: (i == null ? void 0 : i.searchedRows) || n.length,
30205
- isReadOnly: ne,
30206
- userRole: G
30207
- }
30208
- ),
30209
- !ne && o && s && /* @__PURE__ */ h(
30210
- j4,
30211
- {
30212
- viewName: s.name,
30213
- isDefaultView: s.isDefault,
30214
- changes: c,
30215
- onSaveToCurrentView: s.isDefault ? void 0 : _,
30216
- onSaveAsNewView: P,
30217
- onCancel: N
30218
- }
30219
- ),
30220
- u && /* @__PURE__ */ h(Ni, { feature: "Filters", onError: (Ke) => {
30221
- const qe = un("ui", "filters", Ke);
30222
- Ce(qe);
30223
- }, children: /* @__PURE__ */ h(
30224
- M4,
30225
- {
30226
- schema: t.schema,
30227
- filters: t.filters ?? [],
30228
- onAddFilter: l,
30229
- onUpdateFilter: x,
30230
- onRemoveFilter: p,
30231
- onClearAll: m,
30232
- onClose: T,
30233
- focusColumn: g
30234
- }
30235
- ) }),
30236
- D && /* @__PURE__ */ h(Ni, { feature: "Sorting", onError: (Ke) => {
30237
- const qe = un("ui", "sorting", Ke);
30238
- Ce(qe);
30239
- }, children: /* @__PURE__ */ h(
30240
- L4,
30241
- {
30242
- schema: t.schema,
30243
- sortStack: t.sortStack ?? [],
30244
- onUpdateSortStack: F,
30245
- onClose: () => I(!1)
30246
- }
30247
- ) }),
30248
- L && /* @__PURE__ */ h(Ni, { feature: "Views", onError: (Ke) => {
30249
- const qe = un("ui", "views", Ke);
30250
- Ce(qe);
30251
- }, children: /* @__PURE__ */ h(
30252
- B4,
30253
- {
30254
- views: t.views,
30255
- activeViewId: t.activeViewId ?? "",
30256
- onSelectView: oe,
30257
- onCreateView: () => {
30258
- W(!1), j(!0);
30259
- },
30260
- onEditView: te,
30261
- onDeleteView: le,
30262
- onRestoreView: de,
30263
- onPermanentDelete: ue,
30264
- onClose: () => W(!1)
30265
- }
30266
- ) }),
30267
- v && f && /* @__PURE__ */ h(
30268
- F0,
30269
- {
30270
- currentSnapshot: f,
30271
- onSave: ce,
30272
- onClose: () => j(!1)
30273
- }
30274
- ),
30275
- Q && Ie && /* @__PURE__ */ h(
30276
- F0,
30277
- {
30278
- currentSnapshot: Ie.snapshot,
30279
- onSave: Me,
30280
- onClose: () => {
30281
- J(!1);
30282
- },
30283
- isEditMode: !0,
30284
- initialName: Ie.name,
30285
- initialDescription: Ie.description,
30286
- initialIsDefault: Ie.isDefault
30287
- }
30288
- ),
30289
- ee && Re && /* @__PURE__ */ h(
30290
- $4,
30291
- {
30292
- viewName: Re.name,
30293
- onConfirm: se,
30294
- onCancel: () => {
30295
- Oe(!1);
30296
- }
30297
- }
30298
- ),
30299
- We && s && /* @__PURE__ */ h(
30300
- W4,
30301
- {
30302
- schema: t.schema,
30303
- columnVisibility: t.columnVisibility || s.snapshot.columnVisibility,
30304
- columnOrder: t.columnOrder || s.snapshot.columnOrder,
30305
- columnWidths: t.columnWidths || s.snapshot.columnWidths,
30306
- views: t.views,
30307
- activeViewId: t.activeViewId,
30308
- onUpdateColumnVisibility: St,
30309
- onUpdateColumnOrder: Je,
30310
- onUpdateColumnWidth: Se,
30311
- onResetLayout: xt,
30312
- onSelectView: (Ke) => {
30313
- oe(Ke);
30314
- },
30315
- onSaveToCurrentView: () => {
30316
- Pe(!1);
30317
- },
30318
- onSaveToAllViews: () => {
30319
- if (s) {
30320
- const Ke = t.views.map((qe) => ({
30321
- ...qe,
30322
- snapshot: {
30323
- ...qe.snapshot,
30324
- columnVisibility: s.snapshot.columnVisibility,
30325
- columnOrder: s.snapshot.columnOrder,
30326
- columnWidths: s.snapshot.columnWidths
30135
+ return !t || !t.schemaLocked || !t.schema || !t.uploadedData || !t.views ? null : /* @__PURE__ */ C(
30136
+ H,
30137
+ {
30138
+ sx: {
30139
+ display: "flex",
30140
+ flexDirection: "column",
30141
+ height: "100%",
30142
+ width: "100%",
30143
+ overflow: "hidden"
30144
+ },
30145
+ children: [
30146
+ /* @__PURE__ */ C(
30147
+ H,
30148
+ {
30149
+ sx: {
30150
+ flexShrink: 0,
30151
+ display: "flex",
30152
+ flexDirection: "column",
30153
+ gap: 1,
30154
+ p: 2,
30155
+ borderBottom: (ze) => `1px solid ${ze.palette.divider}`,
30156
+ backgroundColor: "background.paper",
30157
+ zIndex: 2
30158
+ },
30159
+ children: [
30160
+ X && /* @__PURE__ */ h(
30161
+ Z4,
30162
+ {
30163
+ warning: X,
30164
+ onDismiss: () => K(null)
30165
+ }
30166
+ ),
30167
+ me && /* @__PURE__ */ h(
30168
+ Q4,
30169
+ {
30170
+ error: me,
30171
+ onDismiss: () => we(null)
30172
+ }
30173
+ ),
30174
+ ur && /* @__PURE__ */ h(
30175
+ G4,
30176
+ {
30177
+ onExportAnyway: et,
30178
+ onSaveAndExport: Ot,
30179
+ onCancel: gr
30180
+ }
30181
+ )
30182
+ ]
30183
+ }
30184
+ ),
30185
+ /* @__PURE__ */ h(
30186
+ H,
30187
+ {
30188
+ sx: {
30189
+ flex: 1,
30190
+ minHeight: 0,
30191
+ overflow: "auto"
30192
+ },
30193
+ children: /* @__PURE__ */ h(
30194
+ P4,
30195
+ {
30196
+ schema: t.schema,
30197
+ data: r,
30198
+ sortStack: t.sortStack,
30199
+ filters: t.filters,
30200
+ views: t.views,
30201
+ activeViewId: t.activeViewId,
30202
+ isDirty: o,
30203
+ isExporting: ir,
30204
+ columnVisibility: t.columnVisibility || (s == null ? void 0 : s.snapshot.columnVisibility),
30205
+ columnOrder: t.columnOrder || (s == null ? void 0 : s.snapshot.columnOrder),
30206
+ columnWidths: t.columnWidths || (s == null ? void 0 : s.snapshot.columnWidths),
30207
+ grouping: t.grouping,
30208
+ onSort: z,
30209
+ onSortAscending: B,
30210
+ onSortDescending: M,
30211
+ onOpenFilters: () => d(!0),
30212
+ onOpenSort: () => I(!0),
30213
+ onOpenFilterForColumn: w,
30214
+ onSelectView: oe,
30215
+ onCreateView: () => j(!0),
30216
+ onManageViews: () => W(!0),
30217
+ onUpdateCurrentView: _,
30218
+ onSaveAsNewView: P,
30219
+ onToggleDefault: R,
30220
+ onToggleFavorite: V,
30221
+ onRestoreView: de,
30222
+ onPermanentDelete: ue,
30223
+ onExport: Ze,
30224
+ onOpenColumns: () => Pe(!0),
30225
+ onUpdateColumnWidth: Se,
30226
+ onUpdateColumnOrder: Je,
30227
+ onUpdateColumnVisibility: St,
30228
+ onClearFiltersForColumn: E,
30229
+ onResetLayout: xt,
30230
+ onOpenGroup: () => zt(!0),
30231
+ onToggleGroupCollapse: ct,
30232
+ onOpenAuditHistory: () => _t(!0),
30233
+ onOpenSharePreset: A,
30234
+ searchQuery: Bt,
30235
+ searchHistory: tt,
30236
+ onAddToSearchHistory: $t,
30237
+ onToggleSearchFavourite: rr,
30238
+ onDeleteSearchHistory: Xt,
30239
+ selectedRowIds: Kt,
30240
+ onSearchChange: tr,
30241
+ onToggleRowSelection: nt,
30242
+ onToggleAllRows: it,
30243
+ onRangeSelection: Et,
30244
+ onClearSelection: Ut,
30245
+ onExportSelected: ft,
30246
+ currentPage: (nr == null ? void 0 : nr.currentPage) || Ft,
30247
+ pageSize: (nr == null ? void 0 : nr.pageSize) || Tr,
30248
+ onPageChange: st,
30249
+ onPageSizeChange: kr,
30250
+ totalRowsBeforePagination: (i == null ? void 0 : i.searchedRows) || n.length,
30251
+ isReadOnly: ne,
30252
+ userRole: G
30327
30253
  }
30328
- }));
30329
- xe(t.id, { views: Ke }), Ge.success("Column configuration applied to all views");
30254
+ )
30330
30255
  }
30331
- Pe(!1);
30332
- },
30333
- onClose: () => Pe(!1)
30334
- }
30335
- ),
30336
- Ve && /* @__PURE__ */ h(Ni, { feature: "Grouping", onError: (Ke) => {
30337
- const qe = un("ui", "grouping", Ke);
30338
- Ce(qe);
30339
- }, children: /* @__PURE__ */ h(
30340
- V4,
30341
- {
30342
- schema: t.schema,
30343
- grouping: t.grouping || null,
30344
- onApply: bt,
30345
- onClose: () => zt(!1)
30346
- }
30347
- ) }),
30348
- Ct && /* @__PURE__ */ h(
30349
- Y4,
30350
- {
30351
- auditHistory: t.auditHistory || [],
30352
- onClose: () => _t(!1)
30353
- }
30354
- ),
30355
- Tt && /* @__PURE__ */ h(
30356
- X4,
30357
- {
30358
- onSave: S,
30359
- onClose: () => Te(!1)
30360
- }
30361
- ),
30362
- pe && Xe && /* @__PURE__ */ h(
30363
- K4,
30364
- {
30365
- presetName: Xe.preset.name,
30366
- shareUrl: Xe.url,
30367
- onCopyLink: b,
30368
- onOpenPreset: O,
30369
- onDeletePreset: k,
30370
- onClose: () => {
30371
- De(!1);
30372
- }
30373
- }
30374
- ),
30375
- y && /* @__PURE__ */ h(H, { sx: { mt: 2 }, children: /* @__PURE__ */ h(
30376
- q4,
30377
- {
30378
- presetName: y.name,
30379
- onClear: Y
30380
- }
30381
- ) }),
30382
- pr && /* @__PURE__ */ h(Ni, { feature: "Export", onError: (Ke) => {
30383
- const qe = un("ui", "export", Ke);
30384
- Ce(qe);
30385
- }, children: /* @__PURE__ */ h(
30386
- J4,
30387
- {
30388
- totalRows: (i == null ? void 0 : i.totalRows) || ((be = t.uploadedData) == null ? void 0 : be.length) || 0,
30389
- visibleRows: (i == null ? void 0 : i.searchedRows) || n.length,
30390
- visibleColumnsCount: ((Be = a == null ? void 0 : a.columnEngine) == null ? void 0 : Be.visibleColumns.length) || t.schema.length,
30391
- totalColumnsCount: t.schema.length,
30392
- hasGrouping: (i == null ? void 0 : i.isGrouped) || !1,
30393
- onExport: Fe,
30394
- onClose: () => {
30395
- ge(!1);
30396
- }
30397
- }
30398
- ) })
30399
- ] });
30256
+ ),
30257
+ !ne && o && s && /* @__PURE__ */ h(
30258
+ H,
30259
+ {
30260
+ sx: {
30261
+ flexShrink: 0,
30262
+ position: "sticky",
30263
+ bottom: 0,
30264
+ backgroundColor: "background.paper",
30265
+ borderTop: (ze) => `1px solid ${ze.palette.divider}`,
30266
+ boxShadow: 3,
30267
+ zIndex: 5
30268
+ },
30269
+ children: /* @__PURE__ */ h(
30270
+ j4,
30271
+ {
30272
+ viewName: s.name,
30273
+ isDefaultView: s.isDefault,
30274
+ changes: c,
30275
+ onSaveToCurrentView: s.isDefault ? void 0 : _,
30276
+ onSaveAsNewView: P,
30277
+ onCancel: N
30278
+ }
30279
+ )
30280
+ }
30281
+ ),
30282
+ u && /* @__PURE__ */ h(Ni, { feature: "Filters", onError: (ze) => {
30283
+ const qe = un("ui", "filters", ze);
30284
+ Ce(qe);
30285
+ }, children: /* @__PURE__ */ h(
30286
+ M4,
30287
+ {
30288
+ schema: t.schema,
30289
+ filters: t.filters ?? [],
30290
+ onAddFilter: l,
30291
+ onUpdateFilter: x,
30292
+ onRemoveFilter: p,
30293
+ onClearAll: m,
30294
+ onClose: T,
30295
+ focusColumn: g
30296
+ }
30297
+ ) }),
30298
+ D && /* @__PURE__ */ h(Ni, { feature: "Sorting", onError: (ze) => {
30299
+ const qe = un("ui", "sorting", ze);
30300
+ Ce(qe);
30301
+ }, children: /* @__PURE__ */ h(
30302
+ L4,
30303
+ {
30304
+ schema: t.schema,
30305
+ sortStack: t.sortStack ?? [],
30306
+ onUpdateSortStack: F,
30307
+ onClose: () => I(!1)
30308
+ }
30309
+ ) }),
30310
+ L && /* @__PURE__ */ h(Ni, { feature: "Views", onError: (ze) => {
30311
+ const qe = un("ui", "views", ze);
30312
+ Ce(qe);
30313
+ }, children: /* @__PURE__ */ h(
30314
+ B4,
30315
+ {
30316
+ views: t.views,
30317
+ activeViewId: t.activeViewId ?? "",
30318
+ onSelectView: oe,
30319
+ onCreateView: () => {
30320
+ W(!1), j(!0);
30321
+ },
30322
+ onEditView: te,
30323
+ onDeleteView: le,
30324
+ onRestoreView: de,
30325
+ onPermanentDelete: ue,
30326
+ onClose: () => W(!1)
30327
+ }
30328
+ ) }),
30329
+ v && f && /* @__PURE__ */ h(
30330
+ F0,
30331
+ {
30332
+ currentSnapshot: f,
30333
+ onSave: ce,
30334
+ onClose: () => j(!1)
30335
+ }
30336
+ ),
30337
+ Q && Ie && /* @__PURE__ */ h(
30338
+ F0,
30339
+ {
30340
+ currentSnapshot: Ie.snapshot,
30341
+ onSave: Me,
30342
+ onClose: () => {
30343
+ J(!1);
30344
+ },
30345
+ isEditMode: !0,
30346
+ initialName: Ie.name,
30347
+ initialDescription: Ie.description,
30348
+ initialIsDefault: Ie.isDefault
30349
+ }
30350
+ ),
30351
+ ee && Re && /* @__PURE__ */ h(
30352
+ $4,
30353
+ {
30354
+ viewName: Re.name,
30355
+ onConfirm: se,
30356
+ onCancel: () => {
30357
+ Oe(!1);
30358
+ }
30359
+ }
30360
+ ),
30361
+ We && s && /* @__PURE__ */ h(
30362
+ W4,
30363
+ {
30364
+ schema: t.schema,
30365
+ columnVisibility: t.columnVisibility || s.snapshot.columnVisibility,
30366
+ columnOrder: t.columnOrder || s.snapshot.columnOrder,
30367
+ columnWidths: t.columnWidths || s.snapshot.columnWidths,
30368
+ views: t.views,
30369
+ activeViewId: t.activeViewId,
30370
+ onUpdateColumnVisibility: St,
30371
+ onUpdateColumnOrder: Je,
30372
+ onUpdateColumnWidth: Se,
30373
+ onResetLayout: xt,
30374
+ onSelectView: (ze) => {
30375
+ oe(ze);
30376
+ },
30377
+ onSaveToCurrentView: () => {
30378
+ Pe(!1);
30379
+ },
30380
+ onSaveToAllViews: () => {
30381
+ if (s) {
30382
+ const ze = t.views.map((qe) => ({
30383
+ ...qe,
30384
+ snapshot: {
30385
+ ...qe.snapshot,
30386
+ columnVisibility: s.snapshot.columnVisibility,
30387
+ columnOrder: s.snapshot.columnOrder,
30388
+ columnWidths: s.snapshot.columnWidths
30389
+ }
30390
+ }));
30391
+ xe(t.id, { views: ze }), Ye.success("Column configuration applied to all views");
30392
+ }
30393
+ Pe(!1);
30394
+ },
30395
+ onClose: () => Pe(!1)
30396
+ }
30397
+ ),
30398
+ Ve && /* @__PURE__ */ h(Ni, { feature: "Grouping", onError: (ze) => {
30399
+ const qe = un("ui", "grouping", ze);
30400
+ Ce(qe);
30401
+ }, children: /* @__PURE__ */ h(
30402
+ V4,
30403
+ {
30404
+ schema: t.schema,
30405
+ grouping: t.grouping || null,
30406
+ onApply: bt,
30407
+ onClose: () => zt(!1)
30408
+ }
30409
+ ) }),
30410
+ Ct && /* @__PURE__ */ h(
30411
+ Y4,
30412
+ {
30413
+ auditHistory: t.auditHistory || [],
30414
+ onClose: () => _t(!1)
30415
+ }
30416
+ ),
30417
+ Tt && /* @__PURE__ */ h(
30418
+ X4,
30419
+ {
30420
+ onSave: S,
30421
+ onClose: () => Te(!1)
30422
+ }
30423
+ ),
30424
+ pe && Ke && /* @__PURE__ */ h(
30425
+ K4,
30426
+ {
30427
+ presetName: Ke.preset.name,
30428
+ shareUrl: Ke.url,
30429
+ onCopyLink: b,
30430
+ onOpenPreset: O,
30431
+ onDeletePreset: k,
30432
+ onClose: () => {
30433
+ De(!1);
30434
+ }
30435
+ }
30436
+ ),
30437
+ y && /* @__PURE__ */ h(H, { sx: { px: 2, py: 1 }, children: /* @__PURE__ */ h(
30438
+ q4,
30439
+ {
30440
+ presetName: y.name,
30441
+ onClear: Y
30442
+ }
30443
+ ) }),
30444
+ pr && /* @__PURE__ */ h(Ni, { feature: "Export", onError: (ze) => {
30445
+ const qe = un("ui", "export", ze);
30446
+ Ce(qe);
30447
+ }, children: /* @__PURE__ */ h(
30448
+ J4,
30449
+ {
30450
+ totalRows: (i == null ? void 0 : i.totalRows) || ((be = t.uploadedData) == null ? void 0 : be.length) || 0,
30451
+ visibleRows: (i == null ? void 0 : i.searchedRows) || n.length,
30452
+ visibleColumnsCount: ((Be = a == null ? void 0 : a.columnEngine) == null ? void 0 : Be.visibleColumns.length) || t.schema.length,
30453
+ totalColumnsCount: t.schema.length,
30454
+ hasGrouping: (i == null ? void 0 : i.isGrouped) || !1,
30455
+ onExport: Fe,
30456
+ onClose: () => {
30457
+ ge(!1);
30458
+ }
30459
+ }
30460
+ ) })
30461
+ ]
30462
+ }
30463
+ );
30400
30464
  }
30401
30465
  function tA() {
30402
30466
  const e = pd(), {
@@ -30415,69 +30479,143 @@ function tA() {
30415
30479
  handleRetry: l,
30416
30480
  handleConfirm: x
30417
30481
  } = e;
30418
- return /* @__PURE__ */ C(H, { sx: { minHeight: "100vh" }, children: [
30419
- /* @__PURE__ */ h(fb, { onCreateReport: () => f(!0) }),
30420
- /* @__PURE__ */ h(
30421
- ub,
30422
- {
30423
- reports: t,
30424
- activeReportId: r,
30425
- onTabClick: c
30426
- }
30427
- ),
30428
- /* @__PURE__ */ h(H, { component: "main", children: t.length === 0 ? /* @__PURE__ */ h(
30429
- _d,
30430
- {
30431
- title: "No reports yet",
30432
- description: "Create your first report to start analyzing your data."
30433
- }
30434
- ) : n ? /* @__PURE__ */ h(Jr, { children: n.schemaLocked && n.schema && n.uploadedData && n.views ? /* @__PURE__ */ h(Xd, { reportEngine: e }) : /* @__PURE__ */ h(H, { sx: { p: 3 }, children: i === "preview" && n.schema && n.uploadedData ? /* @__PURE__ */ h(
30435
- gb,
30436
- {
30437
- schema: n.schema,
30438
- onConfirm: x,
30439
- hasConflicts: s
30440
- }
30441
- ) : n.uploadError ? (
30442
- /* Error state */
30443
- /* @__PURE__ */ h(mb, { error: n.uploadError, onRetry: l })
30444
- ) : (
30445
- /* Upload state */
30446
- /* @__PURE__ */ h(
30447
- pb,
30448
- {
30449
- onFileUpload: d,
30450
- onError: g,
30451
- isUploading: i === "uploading"
30452
- }
30453
- )
30454
- ) }) }) : null }),
30455
- /* @__PURE__ */ h(
30456
- db,
30457
- {
30458
- isOpen: o,
30459
- onClose: () => f(!1),
30460
- onCreate: u
30461
- }
30462
- ),
30463
- /* @__PURE__ */ h(Ru, { position: "top-right" })
30464
- ] });
30482
+ return /* @__PURE__ */ C(
30483
+ H,
30484
+ {
30485
+ sx: {
30486
+ display: "flex",
30487
+ flexDirection: "column",
30488
+ height: "100%",
30489
+ width: "100%",
30490
+ overflow: "hidden"
30491
+ },
30492
+ children: [
30493
+ /* @__PURE__ */ C(
30494
+ H,
30495
+ {
30496
+ sx: {
30497
+ flexShrink: 0,
30498
+ display: "flex",
30499
+ flexDirection: "column",
30500
+ borderBottom: (p) => `1px solid ${p.palette.divider}`,
30501
+ backgroundColor: "background.paper",
30502
+ zIndex: 2
30503
+ },
30504
+ children: [
30505
+ /* @__PURE__ */ h(fb, { onCreateReport: () => f(!0) }),
30506
+ /* @__PURE__ */ h(
30507
+ ub,
30508
+ {
30509
+ reports: t,
30510
+ activeReportId: r,
30511
+ onTabClick: c
30512
+ }
30513
+ )
30514
+ ]
30515
+ }
30516
+ ),
30517
+ /* @__PURE__ */ h(
30518
+ H,
30519
+ {
30520
+ component: "main",
30521
+ sx: {
30522
+ flex: 1,
30523
+ minHeight: 0,
30524
+ display: "flex",
30525
+ flexDirection: "column"
30526
+ },
30527
+ children: t.length === 0 ? /* @__PURE__ */ h(
30528
+ _d,
30529
+ {
30530
+ title: "No reports yet",
30531
+ description: "Create your first report to start analyzing your data."
30532
+ }
30533
+ ) : n ? /* @__PURE__ */ h(Jr, { children: n.schemaLocked && n.schema && n.uploadedData && n.views ? /* @__PURE__ */ h(
30534
+ H,
30535
+ {
30536
+ sx: {
30537
+ flex: 1,
30538
+ minHeight: 0,
30539
+ overflow: "hidden",
30540
+ display: "flex",
30541
+ flexDirection: "column"
30542
+ },
30543
+ children: /* @__PURE__ */ h(Xd, { reportEngine: e })
30544
+ }
30545
+ ) : /* @__PURE__ */ h(H, { sx: { p: 3 }, children: i === "preview" && n.schema && n.uploadedData ? /* @__PURE__ */ h(
30546
+ gb,
30547
+ {
30548
+ schema: n.schema,
30549
+ onConfirm: x,
30550
+ hasConflicts: s
30551
+ }
30552
+ ) : n.uploadError ? (
30553
+ /* Error state */
30554
+ /* @__PURE__ */ h(mb, { error: n.uploadError, onRetry: l })
30555
+ ) : (
30556
+ /* Upload state */
30557
+ /* @__PURE__ */ h(
30558
+ pb,
30559
+ {
30560
+ onFileUpload: d,
30561
+ onError: g,
30562
+ isUploading: i === "uploading"
30563
+ }
30564
+ )
30565
+ ) }) }) : null
30566
+ }
30567
+ ),
30568
+ /* @__PURE__ */ h(
30569
+ db,
30570
+ {
30571
+ isOpen: o,
30572
+ onClose: () => f(!1),
30573
+ onCreate: u
30574
+ }
30575
+ ),
30576
+ /* @__PURE__ */ h(Ru, { position: "top-right" })
30577
+ ]
30578
+ }
30579
+ );
30465
30580
  }
30466
30581
  function cA() {
30467
30582
  return /* @__PURE__ */ h(hd, { children: /* @__PURE__ */ h(tA, {}) });
30468
30583
  }
30469
30584
  function rA() {
30470
30585
  const e = pd();
30471
- return /* @__PURE__ */ C(H, { sx: { minHeight: "100vh" }, children: [
30472
- /* @__PURE__ */ h(H, { component: "main", children: e.activeReport ? /* @__PURE__ */ h(Xd, { reportEngine: e }) : /* @__PURE__ */ h(
30473
- _d,
30474
- {
30475
- title: "No report data",
30476
- description: "This viewer requires report data to be loaded."
30477
- }
30478
- ) }),
30479
- /* @__PURE__ */ h(Ru, { position: "top-right" })
30480
- ] });
30586
+ return /* @__PURE__ */ C(
30587
+ H,
30588
+ {
30589
+ sx: {
30590
+ display: "flex",
30591
+ flexDirection: "column",
30592
+ height: "100%",
30593
+ width: "100%",
30594
+ overflow: "hidden"
30595
+ },
30596
+ children: [
30597
+ /* @__PURE__ */ h(H, { component: "main", children: e.activeReport ? /* @__PURE__ */ h(
30598
+ H,
30599
+ {
30600
+ sx: {
30601
+ flex: 1,
30602
+ minHeight: 0,
30603
+ display: "flex",
30604
+ flexDirection: "column"
30605
+ },
30606
+ children: /* @__PURE__ */ h(Xd, { reportEngine: e })
30607
+ }
30608
+ ) : /* @__PURE__ */ h(
30609
+ _d,
30610
+ {
30611
+ title: "No report data",
30612
+ description: "This viewer requires report data to be loaded."
30613
+ }
30614
+ ) }),
30615
+ /* @__PURE__ */ h(Ru, { position: "top-right" })
30616
+ ]
30617
+ }
30618
+ );
30481
30619
  }
30482
30620
  function fA({ data: e, autoLoad: t = !0, config: r }) {
30483
30621
  return /* @__PURE__ */ h(