@redi.run/redi-components 0.0.69 → 0.0.70

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.
@@ -1338,8 +1338,8 @@ var CRC32 = /* @__PURE__ */ (function() {
1338
1338
  return c ||= {};
1339
1339
  }
1340
1340
  function u(e, t) {
1341
- if (e[0] == 80 && e[1] == 75) return mg(e, t);
1342
- if ((e[0] | 32) == 109 && (e[1] | 32) == 105) return Cg(e, t);
1341
+ if (e[0] == 80 && e[1] == 75) return vg(e, t);
1342
+ if ((e[0] | 32) == 109 && (e[1] | 32) == 105) return Dg(e, t);
1343
1343
  if (e.length < 512) throw Error("CFB file size " + e.length + " < 512");
1344
1344
  var n = 3, i = 512, a = 0, o = 0, s = 0, c = 0, l = 0, u = [], h = e.slice(0, 512);
1345
1345
  prep_blob(h, 0);
@@ -1351,7 +1351,7 @@ var CRC32 = /* @__PURE__ */ (function() {
1351
1351
  case 4:
1352
1352
  i = 4096;
1353
1353
  break;
1354
- case 0: if (_[1] == 0) return mg(e, t);
1354
+ case 0: if (_[1] == 0) return vg(e, t);
1355
1355
  default: throw Error("Major Version: Expected 3 or 4 saw " + n);
1356
1356
  }
1357
1357
  i !== 512 && (h = e.slice(0, i), prep_blob(h, 28));
@@ -1565,9 +1565,9 @@ var CRC32 = /* @__PURE__ */ (function() {
1565
1565
  }
1566
1566
  function E(e, t) {
1567
1567
  var n = t || {};
1568
- if (n.fileType == "mad") return wg(e, n);
1568
+ if (n.fileType == "mad") return Og(e, n);
1569
1569
  switch (T(e), n.fileType) {
1570
- case "zip": return gg(e, n);
1570
+ case "zip": return bg(e, n);
1571
1571
  }
1572
1572
  var i = (function(e) {
1573
1573
  for (var t = 0, n = 0, i = 0; i < e.FileIndex.length; ++i) {
@@ -1602,13 +1602,13 @@ var CRC32 = /* @__PURE__ */ (function() {
1602
1602
  for (s += e; o < s - 1; ++o) a.write_shift(-4, o + 1);
1603
1603
  e && (++o, a.write_shift(-4, k));
1604
1604
  };
1605
- for (s = o = 0, s += i[1]; o < s; ++o) a.write_shift(-4, z.DIFSECT);
1606
- for (s += i[2]; o < s; ++o) a.write_shift(-4, z.FATSECT);
1605
+ for (s = o = 0, s += i[1]; o < s; ++o) a.write_shift(-4, B.DIFSECT);
1606
+ for (s += i[2]; o < s; ++o) a.write_shift(-4, B.FATSECT);
1607
1607
  c(i[3]), c(i[4]);
1608
1608
  for (var l = 0, u = 0, d = e.FileIndex[0]; l < e.FileIndex.length; ++l) d = e.FileIndex[l], d.content && (u = d.content.length, !(u < 4096) && (d.start = s, c(u + 511 >> 9)));
1609
- for (c(i[6] + 7 >> 3); a.l & 511;) a.write_shift(-4, z.ENDOFCHAIN);
1609
+ for (c(i[6] + 7 >> 3); a.l & 511;) a.write_shift(-4, B.ENDOFCHAIN);
1610
1610
  for (s = o = 0, l = 0; l < e.FileIndex.length; ++l) d = e.FileIndex[l], d.content && (u = d.content.length, !(!u || u >= 4096) && (d.start = s, c(u + 63 >> 6)));
1611
- for (; a.l & 511;) a.write_shift(-4, z.ENDOFCHAIN);
1611
+ for (; a.l & 511;) a.write_shift(-4, B.ENDOFCHAIN);
1612
1612
  for (o = 0; o < i[4] << 2; ++o) {
1613
1613
  var f = e.FullPaths[o];
1614
1614
  if (!f || f.length === 0) {
@@ -1660,7 +1660,7 @@ var CRC32 = /* @__PURE__ */ (function() {
1660
1660
  177,
1661
1661
  26,
1662
1662
  225
1663
- ], M = "00000000000000000000000000000000", z = {
1663
+ ], M = "00000000000000000000000000000000", B = {
1664
1664
  MAXREGSECT: -6,
1665
1665
  DIFSECT: -4,
1666
1666
  FATSECT: -3,
@@ -1680,21 +1680,21 @@ var CRC32 = /* @__PURE__ */ (function() {
1680
1680
  "root"
1681
1681
  ]
1682
1682
  };
1683
- function B(e, t, n) {
1683
+ function V(e, t, n) {
1684
1684
  l();
1685
1685
  var i = E(e, n);
1686
1686
  c.writeFileSync(t, i);
1687
1687
  }
1688
- function V(e) {
1688
+ function H(e) {
1689
1689
  for (var t = Array(e.length), n = 0; n < e.length; ++n) t[n] = String.fromCharCode(e[n]);
1690
1690
  return t.join("");
1691
1691
  }
1692
- function H(e, t) {
1692
+ function U(e, t) {
1693
1693
  var n = E(e, t);
1694
1694
  switch (t && t.type || "buffer") {
1695
1695
  case "file": return l(), c.writeFileSync(t.filename, n), n;
1696
- case "binary": return typeof n == "string" ? n : V(n);
1697
- case "base64": return Base64_encode(typeof n == "string" ? n : V(n));
1696
+ case "binary": return typeof n == "string" ? n : H(n);
1697
+ case "base64": return Base64_encode(typeof n == "string" ? n : H(n));
1698
1698
  case "buffer": if (has_buf) return Buffer.isBuffer(n) ? n : Buffer_from(n);
1699
1699
  case "array": return typeof n == "string" ? s2a(n) : n;
1700
1700
  }
@@ -1710,15 +1710,15 @@ var CRC32 = /* @__PURE__ */ (function() {
1710
1710
  console.error("cannot use native zlib: " + (e.message || e));
1711
1711
  }
1712
1712
  }
1713
- function K(e, t) {
1714
- if (!W) return fg(e, t);
1713
+ function Hh(e, t) {
1714
+ if (!W) return gg(e, t);
1715
1715
  var n = W.InflateRaw, i = new n(), a = i._processChunk(e.slice(e.l), i._finishFlushFlag);
1716
1716
  return e.l += i.bytesRead, a;
1717
1717
  }
1718
- function Rh(e) {
1719
- return W ? W.deflateRawSync(e) : ig(e);
1718
+ function Uh(e) {
1719
+ return W ? W.deflateRawSync(e) : cg(e);
1720
1720
  }
1721
- var q = [
1721
+ var K = [
1722
1722
  16,
1723
1723
  17,
1724
1724
  18,
@@ -1738,7 +1738,7 @@ var CRC32 = /* @__PURE__ */ (function() {
1738
1738
  14,
1739
1739
  1,
1740
1740
  15
1741
- ], J = [
1741
+ ], q = [
1742
1742
  3,
1743
1743
  4,
1744
1744
  5,
@@ -1768,7 +1768,7 @@ var CRC32 = /* @__PURE__ */ (function() {
1768
1768
  195,
1769
1769
  227,
1770
1770
  258
1771
- ], zh = [
1771
+ ], Wh = [
1772
1772
  1,
1773
1773
  2,
1774
1774
  3,
@@ -1800,56 +1800,56 @@ var CRC32 = /* @__PURE__ */ (function() {
1800
1800
  16385,
1801
1801
  24577
1802
1802
  ];
1803
- function Bh(e) {
1803
+ function J(e) {
1804
1804
  var t = (e << 1 | e << 11) & 139536 | (e << 5 | e << 15) & 558144;
1805
1805
  return (t >> 16 | t >> 8 | t) & 255;
1806
1806
  }
1807
- for (var Y = typeof Uint8Array < "u", X = Y ? new Uint8Array(256) : [], Vh = 0; Vh < 256; ++Vh) X[Vh] = Bh(Vh);
1808
- function Hh(e, t) {
1807
+ for (var Y = typeof Uint8Array < "u", X = Y ? new Uint8Array(256) : [], Gh = 0; Gh < 256; ++Gh) X[Gh] = J(Gh);
1808
+ function Kh(e, t) {
1809
1809
  var n = X[e & 255];
1810
1810
  return t <= 8 ? n >>> 8 - t : (n = n << 8 | X[e >> 8 & 255], t <= 16 ? n >>> 16 - t : (n = n << 8 | X[e >> 16 & 255], n >>> 24 - t));
1811
1811
  }
1812
- function Uh(e, t) {
1812
+ function qh(e, t) {
1813
1813
  var n = t & 7, i = t >>> 3;
1814
1814
  return (e[i] | (n <= 6 ? 0 : e[i + 1] << 8)) >>> n & 3;
1815
1815
  }
1816
- function Wh(e, t) {
1816
+ function Jh(e, t) {
1817
1817
  var n = t & 7, i = t >>> 3;
1818
1818
  return (e[i] | (n <= 5 ? 0 : e[i + 1] << 8)) >>> n & 7;
1819
1819
  }
1820
- function Gh(e, t) {
1820
+ function Yh(e, t) {
1821
1821
  var n = t & 7, i = t >>> 3;
1822
1822
  return (e[i] | (n <= 4 ? 0 : e[i + 1] << 8)) >>> n & 15;
1823
1823
  }
1824
- function Kh(e, t) {
1824
+ function Xh(e, t) {
1825
1825
  var n = t & 7, i = t >>> 3;
1826
1826
  return (e[i] | (n <= 3 ? 0 : e[i + 1] << 8)) >>> n & 31;
1827
1827
  }
1828
- function qh(e, t) {
1828
+ function Zh(e, t) {
1829
1829
  var n = t & 7, i = t >>> 3;
1830
1830
  return (e[i] | (n <= 1 ? 0 : e[i + 1] << 8)) >>> n & 127;
1831
1831
  }
1832
- function Jh(e, t, n) {
1832
+ function Qh(e, t, n) {
1833
1833
  var i = t & 7, a = t >>> 3, o = (1 << n) - 1, s = e[a] >>> i;
1834
1834
  return n < 8 - i || (s |= e[a + 1] << 8 - i, n < 16 - i) || (s |= e[a + 2] << 16 - i, n < 24 - i) || (s |= e[a + 3] << 24 - i), s & o;
1835
1835
  }
1836
- function Yh(e, t, n) {
1836
+ function $h(e, t, n) {
1837
1837
  var i = t & 7, a = t >>> 3;
1838
1838
  return i <= 5 ? e[a] |= (n & 7) << i : (e[a] |= n << i & 255, e[a + 1] = (n & 7) >> 8 - i), t + 3;
1839
1839
  }
1840
- function Xh(e, t, n) {
1840
+ function eg(e, t, n) {
1841
1841
  var i = t & 7, a = t >>> 3;
1842
1842
  return n = (n & 1) << i, e[a] |= n, t + 1;
1843
1843
  }
1844
- function Zh(e, t, n) {
1844
+ function tg(e, t, n) {
1845
1845
  var i = t & 7, a = t >>> 3;
1846
1846
  return n <<= i, e[a] |= n & 255, n >>>= 8, e[a + 1] = n, t + 8;
1847
1847
  }
1848
- function Qh(e, t, n) {
1848
+ function ng(e, t, n) {
1849
1849
  var i = t & 7, a = t >>> 3;
1850
1850
  return n <<= i, e[a] |= n & 255, n >>>= 8, e[a + 1] = n & 255, e[a + 2] = n >>> 8, t + 16;
1851
1851
  }
1852
- function $h(e, t) {
1852
+ function rg(e, t) {
1853
1853
  var n = e.length, i = 2 * n > t ? 2 * n : t + 5, a = 0;
1854
1854
  if (n >= t) return e;
1855
1855
  if (has_buf) {
@@ -1869,7 +1869,7 @@ var CRC32 = /* @__PURE__ */ (function() {
1869
1869
  for (var t = Array(e), n = 0; n < e; ++n) t[n] = 0;
1870
1870
  return t;
1871
1871
  }
1872
- function eg(e, t, n) {
1872
+ function ig(e, t, n) {
1873
1873
  var i = 1, a = 0, o = 0, s = 0, c = 0, l = e.length, u = Y ? new Uint16Array(32) : Z(32);
1874
1874
  for (o = 0; o < 32; ++o) u[o] = 0;
1875
1875
  for (o = l; o < n; ++o) e[o] = 0;
@@ -1879,29 +1879,29 @@ var CRC32 = /* @__PURE__ */ (function() {
1879
1879
  for (u[0] = 0, o = 1; o <= i; ++o) u[o + 16] = c = c + u[o - 1] << 1;
1880
1880
  for (o = 0; o < l; ++o) c = e[o], c != 0 && (d[o] = u[c + 16]++);
1881
1881
  var f = 0;
1882
- for (o = 0; o < l; ++o) if (f = e[o], f != 0) for (c = Hh(d[o], i) >> i - f, s = (1 << i + 4 - f) - 1; s >= 0; --s) t[c | s << f] = f & 15 | o << 4;
1882
+ for (o = 0; o < l; ++o) if (f = e[o], f != 0) for (c = Kh(d[o], i) >> i - f, s = (1 << i + 4 - f) - 1; s >= 0; --s) t[c | s << f] = f & 15 | o << 4;
1883
1883
  return i;
1884
1884
  }
1885
- var tg = Y ? new Uint16Array(512) : Z(512), ng = Y ? new Uint16Array(32) : Z(32);
1885
+ var ag = Y ? new Uint16Array(512) : Z(512), og = Y ? new Uint16Array(32) : Z(32);
1886
1886
  if (!Y) {
1887
- for (var Q = 0; Q < 512; ++Q) tg[Q] = 0;
1888
- for (Q = 0; Q < 32; ++Q) ng[Q] = 0;
1887
+ for (var Q = 0; Q < 512; ++Q) ag[Q] = 0;
1888
+ for (Q = 0; Q < 32; ++Q) og[Q] = 0;
1889
1889
  }
1890
1890
  (function() {
1891
1891
  for (var e = [], t = 0; t < 32; t++) e.push(5);
1892
- eg(e, ng, 32);
1892
+ ig(e, og, 32);
1893
1893
  var n = [];
1894
1894
  for (t = 0; t <= 143; t++) n.push(8);
1895
1895
  for (; t <= 255; t++) n.push(9);
1896
1896
  for (; t <= 279; t++) n.push(7);
1897
1897
  for (; t <= 287; t++) n.push(8);
1898
- eg(n, tg, 288);
1898
+ ig(n, ag, 288);
1899
1899
  })();
1900
- var rg = /* @__PURE__ */ (function() {
1901
- for (var e = Y ? new Uint8Array(32768) : [], t = 0, n = 0; t < zh.length - 1; ++t) for (; n < zh[t + 1]; ++n) e[n] = t;
1900
+ var sg = /* @__PURE__ */ (function() {
1901
+ for (var e = Y ? new Uint8Array(32768) : [], t = 0, n = 0; t < Wh.length - 1; ++t) for (; n < Wh[t + 1]; ++n) e[n] = t;
1902
1902
  for (; n < 32768; ++n) e[n] = 29;
1903
1903
  var i = Y ? new Uint8Array(259) : [];
1904
- for (t = 0, n = 0; t < J.length - 1; ++t) for (; n < J[t + 1]; ++n) i[n] = t;
1904
+ for (t = 0, n = 0; t < q.length - 1; ++t) for (; n < q[t + 1]; ++n) i[n] = t;
1905
1905
  function a(e, t) {
1906
1906
  for (var n = 0; n < e.length;) {
1907
1907
  var i = Math.min(65535, e.length - n), a = n + i == e.length;
@@ -1913,27 +1913,27 @@ var CRC32 = /* @__PURE__ */ (function() {
1913
1913
  for (var a = 0, o = 0, s = Y ? new Uint16Array(32768) : []; o < t.length;) {
1914
1914
  var c = Math.min(65535, t.length - o);
1915
1915
  if (c < 10) {
1916
- for (a = Yh(n, a, +(o + c == t.length)), a & 7 && (a += 8 - (a & 7)), n.l = a / 8 | 0, n.write_shift(2, c), n.write_shift(2, ~c & 65535); c-- > 0;) n[n.l++] = t[o++];
1916
+ for (a = $h(n, a, +(o + c == t.length)), a & 7 && (a += 8 - (a & 7)), n.l = a / 8 | 0, n.write_shift(2, c), n.write_shift(2, ~c & 65535); c-- > 0;) n[n.l++] = t[o++];
1917
1917
  a = n.l * 8;
1918
1918
  continue;
1919
1919
  }
1920
- a = Yh(n, a, +(o + c == t.length) + 2);
1920
+ a = $h(n, a, +(o + c == t.length) + 2);
1921
1921
  for (var l = 0; c-- > 0;) {
1922
1922
  var u = t[o];
1923
1923
  l = (l << 5 ^ u) & 32767;
1924
1924
  var d = -1, f = 0;
1925
1925
  if ((d = s[l]) && (d |= o & -32768, d > o && (d -= 32768), d < o)) for (; t[d + f] == t[o + f] && f < 250;) ++f;
1926
1926
  if (f > 2) {
1927
- u = i[f], u <= 22 ? a = Zh(n, a, X[u + 1] >> 1) - 1 : (Zh(n, a, 3), a += 5, Zh(n, a, X[u - 23] >> 5), a += 3);
1927
+ u = i[f], u <= 22 ? a = tg(n, a, X[u + 1] >> 1) - 1 : (tg(n, a, 3), a += 5, tg(n, a, X[u - 23] >> 5), a += 3);
1928
1928
  var p = u < 8 ? 0 : u - 4 >> 2;
1929
- p > 0 && (Qh(n, a, f - J[u]), a += p), u = e[o - d], a = Zh(n, a, X[u] >> 3), a -= 3;
1929
+ p > 0 && (ng(n, a, f - q[u]), a += p), u = e[o - d], a = tg(n, a, X[u] >> 3), a -= 3;
1930
1930
  var m = u < 4 ? 0 : u - 2 >> 1;
1931
- m > 0 && (Qh(n, a, o - d - zh[u]), a += m);
1931
+ m > 0 && (ng(n, a, o - d - Wh[u]), a += m);
1932
1932
  for (var h = 0; h < f; ++h) s[l] = o & 32767, l = (l << 5 ^ t[o]) & 32767, ++o;
1933
1933
  c -= f - 1;
1934
- } else u <= 143 ? u += 48 : a = Xh(n, a, 1), a = Zh(n, a, X[u]), s[l] = o & 32767, ++o;
1934
+ } else u <= 143 ? u += 48 : a = eg(n, a, 1), a = tg(n, a, X[u]), s[l] = o & 32767, ++o;
1935
1935
  }
1936
- a = Zh(n, a, 0) - 1;
1936
+ a = tg(n, a, 0) - 1;
1937
1937
  }
1938
1938
  return n.l = (a + 7) / 8 | 0, n.l;
1939
1939
  }
@@ -1941,17 +1941,17 @@ var CRC32 = /* @__PURE__ */ (function() {
1941
1941
  return e.length < 8 ? a(e, t) : o(e, t);
1942
1942
  };
1943
1943
  })();
1944
- function ig(e) {
1945
- var t = new_buf(50 + Math.floor(e.length * 1.1)), n = rg(e, t);
1944
+ function cg(e) {
1945
+ var t = new_buf(50 + Math.floor(e.length * 1.1)), n = sg(e, t);
1946
1946
  return t.slice(0, n);
1947
1947
  }
1948
- var ag = Y ? new Uint16Array(32768) : Z(32768), og = Y ? new Uint16Array(32768) : Z(32768), sg = Y ? new Uint16Array(128) : Z(128), cg = 1, lg = 1;
1949
- function ug(e, t) {
1950
- var n = Kh(e, t) + 257;
1948
+ var lg = Y ? new Uint16Array(32768) : Z(32768), ug = Y ? new Uint16Array(32768) : Z(32768), dg = Y ? new Uint16Array(128) : Z(128), fg = 1, pg = 1;
1949
+ function mg(e, t) {
1950
+ var n = Xh(e, t) + 257;
1951
1951
  t += 5;
1952
- var i = Kh(e, t) + 1;
1952
+ var i = Xh(e, t) + 1;
1953
1953
  t += 5;
1954
- var a = Gh(e, t) + 4;
1954
+ var a = Yh(e, t) + 4;
1955
1955
  t += 4;
1956
1956
  for (var o = 0, s = Y ? new Uint8Array(19) : Z(19), c = [
1957
1957
  0,
@@ -1973,25 +1973,25 @@ var CRC32 = /* @__PURE__ */ (function() {
1973
1973
  0,
1974
1974
  0,
1975
1975
  0
1976
- ], l = 1, u = Y ? new Uint8Array(8) : Z(8), d = Y ? new Uint8Array(8) : Z(8), f = s.length, p = 0; p < a; ++p) s[q[p]] = o = Wh(e, t), l < o && (l = o), u[o]++, t += 3;
1976
+ ], l = 1, u = Y ? new Uint8Array(8) : Z(8), d = Y ? new Uint8Array(8) : Z(8), f = s.length, p = 0; p < a; ++p) s[K[p]] = o = Jh(e, t), l < o && (l = o), u[o]++, t += 3;
1977
1977
  var m = 0;
1978
1978
  for (u[0] = 0, p = 1; p <= l; ++p) d[p] = m = m + u[p - 1] << 1;
1979
1979
  for (p = 0; p < f; ++p) (m = s[p]) != 0 && (c[p] = d[m]++);
1980
1980
  var h = 0;
1981
1981
  for (p = 0; p < f; ++p) if (h = s[p], h != 0) {
1982
1982
  m = X[c[p]] >> 8 - h;
1983
- for (var g = (1 << 7 - h) - 1; g >= 0; --g) sg[m | g << h] = h & 7 | p << 3;
1983
+ for (var g = (1 << 7 - h) - 1; g >= 0; --g) dg[m | g << h] = h & 7 | p << 3;
1984
1984
  }
1985
1985
  var _ = [];
1986
- for (l = 1; _.length < n + i;) switch (m = sg[qh(e, t)], t += m & 7, m >>>= 3) {
1986
+ for (l = 1; _.length < n + i;) switch (m = dg[Zh(e, t)], t += m & 7, m >>>= 3) {
1987
1987
  case 16:
1988
- for (o = 3 + Uh(e, t), t += 2, m = _[_.length - 1]; o-- > 0;) _.push(m);
1988
+ for (o = 3 + qh(e, t), t += 2, m = _[_.length - 1]; o-- > 0;) _.push(m);
1989
1989
  break;
1990
1990
  case 17:
1991
- for (o = 3 + Wh(e, t), t += 3; o-- > 0;) _.push(0);
1991
+ for (o = 3 + Jh(e, t), t += 3; o-- > 0;) _.push(0);
1992
1992
  break;
1993
1993
  case 18:
1994
- for (o = 11 + qh(e, t), t += 7; o-- > 0;) _.push(0);
1994
+ for (o = 11 + Zh(e, t), t += 7; o-- > 0;) _.push(0);
1995
1995
  break;
1996
1996
  default:
1997
1997
  _.push(m), l < m && (l = m);
@@ -2000,45 +2000,45 @@ var CRC32 = /* @__PURE__ */ (function() {
2000
2000
  var v = _.slice(0, n), y = _.slice(n);
2001
2001
  for (p = n; p < 286; ++p) v[p] = 0;
2002
2002
  for (p = i; p < 30; ++p) y[p] = 0;
2003
- return cg = eg(v, ag, 286), lg = eg(y, og, 30), t;
2003
+ return fg = ig(v, lg, 286), pg = ig(y, ug, 30), t;
2004
2004
  }
2005
- function dg(e, t) {
2005
+ function hg(e, t) {
2006
2006
  if (e[0] == 3 && !(e[1] & 3)) return [new_raw_buf(t), 2];
2007
2007
  for (var n = 0, i = 0, a = new_unsafe_buf(t || 1 << 18), o = 0, s = a.length >>> 0, c = 0, l = 0; !(i & 1);) {
2008
- if (i = Wh(e, n), n += 3, i >>> 1) i >> 1 == 1 ? (c = 9, l = 5) : (n = ug(e, n), c = cg, l = lg);
2008
+ if (i = Jh(e, n), n += 3, i >>> 1) i >> 1 == 1 ? (c = 9, l = 5) : (n = mg(e, n), c = fg, l = pg);
2009
2009
  else {
2010
2010
  n & 7 && (n += 8 - (n & 7));
2011
2011
  var u = e[n >>> 3] | e[(n >>> 3) + 1] << 8;
2012
- if (n += 32, u > 0) for (!t && s < o + u && (a = $h(a, o + u), s = a.length); u-- > 0;) a[o++] = e[n >>> 3], n += 8;
2012
+ if (n += 32, u > 0) for (!t && s < o + u && (a = rg(a, o + u), s = a.length); u-- > 0;) a[o++] = e[n >>> 3], n += 8;
2013
2013
  continue;
2014
2014
  }
2015
2015
  for (;;) {
2016
- !t && s < o + 32767 && (a = $h(a, o + 32767), s = a.length);
2017
- var d = Jh(e, n, c), f = i >>> 1 == 1 ? tg[d] : ag[d];
2016
+ !t && s < o + 32767 && (a = rg(a, o + 32767), s = a.length);
2017
+ var d = Qh(e, n, c), f = i >>> 1 == 1 ? ag[d] : lg[d];
2018
2018
  if (n += f & 15, f >>>= 4, !(f >>> 8 & 255)) a[o++] = f;
2019
2019
  else if (f == 256) break;
2020
2020
  else {
2021
2021
  f -= 257;
2022
2022
  var p = f < 8 ? 0 : f - 4 >> 2;
2023
2023
  p > 5 && (p = 0);
2024
- var m = o + J[f];
2025
- p > 0 && (m += Jh(e, n, p), n += p), d = Jh(e, n, l), f = i >>> 1 == 1 ? ng[d] : og[d], n += f & 15, f >>>= 4;
2026
- var h = f < 4 ? 0 : f - 2 >> 1, g = zh[f];
2027
- for (h > 0 && (g += Jh(e, n, h), n += h), !t && s < m && (a = $h(a, m + 100), s = a.length); o < m;) a[o] = a[o - g], ++o;
2024
+ var m = o + q[f];
2025
+ p > 0 && (m += Qh(e, n, p), n += p), d = Qh(e, n, l), f = i >>> 1 == 1 ? og[d] : ug[d], n += f & 15, f >>>= 4;
2026
+ var h = f < 4 ? 0 : f - 2 >> 1, g = Wh[f];
2027
+ for (h > 0 && (g += Qh(e, n, h), n += h), !t && s < m && (a = rg(a, m + 100), s = a.length); o < m;) a[o] = a[o - g], ++o;
2028
2028
  }
2029
2029
  }
2030
2030
  }
2031
2031
  return t ? [a, n + 7 >>> 3] : [a.slice(0, o), n + 7 >>> 3];
2032
2032
  }
2033
- function fg(e, t) {
2034
- var n = e.slice(e.l || 0), i = dg(n, t);
2033
+ function gg(e, t) {
2034
+ var n = e.slice(e.l || 0), i = hg(n, t);
2035
2035
  return e.l += i[1], i[0];
2036
2036
  }
2037
- function pg(e, t) {
2037
+ function _g(e, t) {
2038
2038
  if (e) typeof console < "u" && console.error(t);
2039
2039
  else throw Error(t);
2040
2040
  }
2041
- function mg(e, t) {
2041
+ function vg(e, t) {
2042
2042
  var n = e;
2043
2043
  prep_blob(n, 0);
2044
2044
  var i = {
@@ -2056,11 +2056,11 @@ var CRC32 = /* @__PURE__ */ (function() {
2056
2056
  var p = n.read_shift(4), m = s(n.slice(n.l + u, n.l + u + d));
2057
2057
  n.l += u + d + f;
2058
2058
  var h = n.l;
2059
- n.l = p + 4, hg(n, c, l, i, m), n.l = h;
2059
+ n.l = p + 4, yg(n, c, l, i, m), n.l = h;
2060
2060
  }
2061
2061
  return i;
2062
2062
  }
2063
- function hg(e, t, n, i, a) {
2063
+ function yg(e, t, n, i, a) {
2064
2064
  e.l += 2;
2065
2065
  var c = e.read_shift(2), l = e.read_shift(2), u = o(e);
2066
2066
  if (c & 8257) throw Error("Unsupported ZIP encryption");
@@ -2073,25 +2073,25 @@ var CRC32 = /* @__PURE__ */ (function() {
2073
2073
  var y = e.slice(e.l, e.l + f);
2074
2074
  switch (l) {
2075
2075
  case 8:
2076
- y = K(e, p);
2076
+ y = Hh(e, p);
2077
2077
  break;
2078
2078
  case 0: break;
2079
2079
  default: throw Error("Unsupported ZIP Compression method " + l);
2080
2080
  }
2081
2081
  var b = !1;
2082
- c & 8 && (d = e.read_shift(4), d == 134695760 && (d = e.read_shift(4), b = !0), f = e.read_shift(4), p = e.read_shift(4)), f != t && pg(b, "Bad compressed size: " + t + " != " + f), p != n && pg(b, "Bad uncompressed size: " + n + " != " + p), Eg(i, g, y, {
2082
+ c & 8 && (d = e.read_shift(4), d == 134695760 && (d = e.read_shift(4), b = !0), f = e.read_shift(4), p = e.read_shift(4)), f != t && _g(b, "Bad compressed size: " + t + " != " + f), p != n && _g(b, "Bad uncompressed size: " + n + " != " + p), Ag(i, g, y, {
2083
2083
  unsafe: !0,
2084
2084
  mt: u
2085
2085
  });
2086
2086
  }
2087
- function gg(e, t) {
2087
+ function bg(e, t) {
2088
2088
  var n = t || {}, i = [], o = [], s = new_buf(1), c = n.compression ? 8 : 0, l = 0, u = 0, d = 0, f = 0, p = 0, m = e.FullPaths[0], h = m, g = e.FileIndex[0], _ = [], v = 0;
2089
2089
  for (u = 1; u < e.FullPaths.length; ++u) if (h = e.FullPaths[u].slice(m.length), g = e.FileIndex[u], !(!g.size || !g.content || h == "Sh33tJ5")) {
2090
2090
  var y = f, b = new_buf(h.length);
2091
2091
  for (d = 0; d < h.length; ++d) b.write_shift(1, h.charCodeAt(d) & 127);
2092
2092
  b = b.slice(0, b.l), _[p] = CRC32.buf(g.content, 0);
2093
2093
  var x = g.content;
2094
- c == 8 && (x = Rh(x)), s = new_buf(30), s.write_shift(4, 67324752), s.write_shift(2, 20), s.write_shift(2, l), s.write_shift(2, c), g.mt ? a(s, g.mt) : s.write_shift(4, 0), s.write_shift(-4, l & 8 ? 0 : _[p]), s.write_shift(4, l & 8 ? 0 : x.length), s.write_shift(4, l & 8 ? 0 : g.content.length), s.write_shift(2, b.length), s.write_shift(2, 0), f += s.length, i.push(s), f += b.length, i.push(b), f += x.length, i.push(x), l & 8 && (s = new_buf(12), s.write_shift(-4, _[p]), s.write_shift(4, x.length), s.write_shift(4, g.content.length), f += s.l, i.push(s)), s = new_buf(46), s.write_shift(4, 33639248), s.write_shift(2, 0), s.write_shift(2, 20), s.write_shift(2, l), s.write_shift(2, c), s.write_shift(4, 0), s.write_shift(-4, _[p]), s.write_shift(4, x.length), s.write_shift(4, g.content.length), s.write_shift(2, b.length), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(4, 0), s.write_shift(4, y), v += s.l, o.push(s), v += b.length, o.push(b), ++p;
2094
+ c == 8 && (x = Uh(x)), s = new_buf(30), s.write_shift(4, 67324752), s.write_shift(2, 20), s.write_shift(2, l), s.write_shift(2, c), g.mt ? a(s, g.mt) : s.write_shift(4, 0), s.write_shift(-4, l & 8 ? 0 : _[p]), s.write_shift(4, l & 8 ? 0 : x.length), s.write_shift(4, l & 8 ? 0 : g.content.length), s.write_shift(2, b.length), s.write_shift(2, 0), f += s.length, i.push(s), f += b.length, i.push(b), f += x.length, i.push(x), l & 8 && (s = new_buf(12), s.write_shift(-4, _[p]), s.write_shift(4, x.length), s.write_shift(4, g.content.length), f += s.l, i.push(s)), s = new_buf(46), s.write_shift(4, 33639248), s.write_shift(2, 0), s.write_shift(2, 20), s.write_shift(2, l), s.write_shift(2, c), s.write_shift(4, 0), s.write_shift(-4, _[p]), s.write_shift(4, x.length), s.write_shift(4, g.content.length), s.write_shift(2, b.length), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(4, 0), s.write_shift(4, y), v += s.l, o.push(s), v += b.length, o.push(b), ++p;
2095
2095
  }
2096
2096
  return s = new_buf(22), s.write_shift(4, 101010256), s.write_shift(2, 0), s.write_shift(2, 0), s.write_shift(2, p), s.write_shift(2, p), s.write_shift(4, v), s.write_shift(4, f), s.write_shift(2, 0), bconcat([
2097
2097
  bconcat(i),
@@ -2099,7 +2099,7 @@ var CRC32 = /* @__PURE__ */ (function() {
2099
2099
  s
2100
2100
  ]);
2101
2101
  }
2102
- var _g = {
2102
+ var xg = {
2103
2103
  htm: "text/html",
2104
2104
  xml: "text/xml",
2105
2105
  gif: "image/gif",
@@ -2109,16 +2109,16 @@ var CRC32 = /* @__PURE__ */ (function() {
2109
2109
  thmx: "application/vnd.ms-officetheme",
2110
2110
  sh33tj5: "application/octet-stream"
2111
2111
  };
2112
- function vg(e, t) {
2112
+ function Sg(e, t) {
2113
2113
  if (e.ctype) return e.ctype;
2114
2114
  var n = e.name || "", i = n.match(/\.([^\.]+)$/);
2115
- return i && _g[i[1]] || t && (i = (n = t).match(/[\.\\]([^\.\\])+$/), i && _g[i[1]]) ? _g[i[1]] : "application/octet-stream";
2115
+ return i && xg[i[1]] || t && (i = (n = t).match(/[\.\\]([^\.\\])+$/), i && xg[i[1]]) ? xg[i[1]] : "application/octet-stream";
2116
2116
  }
2117
- function yg(e) {
2117
+ function Cg(e) {
2118
2118
  for (var t = Base64_encode(e), n = [], i = 0; i < t.length; i += 76) n.push(t.slice(i, i + 76));
2119
2119
  return n.join("\r\n") + "\r\n";
2120
2120
  }
2121
- function bg(e) {
2121
+ function wg(e) {
2122
2122
  var t = e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(e) {
2123
2123
  var t = e.charCodeAt(0).toString(16).toUpperCase();
2124
2124
  return "=" + (t.length == 1 ? "0" + t : t);
@@ -2137,7 +2137,7 @@ var CRC32 = /* @__PURE__ */ (function() {
2137
2137
  }
2138
2138
  return n.join("\r\n");
2139
2139
  }
2140
- function xg(e) {
2140
+ function Tg(e) {
2141
2141
  for (var t = [], n = 0; n < e.length; ++n) {
2142
2142
  for (var i = e[n]; n <= e.length && i.charAt(i.length - 1) == "=";) i = i.slice(0, i.length - 1) + e[++n];
2143
2143
  t.push(i);
@@ -2147,7 +2147,7 @@ var CRC32 = /* @__PURE__ */ (function() {
2147
2147
  });
2148
2148
  return s2a(t.join("\r\n"));
2149
2149
  }
2150
- function Sg(e, t, n) {
2150
+ function Eg(e, t, n) {
2151
2151
  for (var i = "", a = "", o = "", s, c = 0; c < 10; ++c) {
2152
2152
  var l = t[c];
2153
2153
  if (!l || l.match(/^\s*$/)) break;
@@ -2169,16 +2169,16 @@ var CRC32 = /* @__PURE__ */ (function() {
2169
2169
  s = s2a(Base64_decode(t.slice(c).join("")));
2170
2170
  break;
2171
2171
  case "quoted-printable":
2172
- s = xg(t.slice(c));
2172
+ s = Tg(t.slice(c));
2173
2173
  break;
2174
2174
  default: throw Error("Unsupported Content-Transfer-Encoding " + a);
2175
2175
  }
2176
- var d = Eg(e, i.slice(n.length), s, { unsafe: !0 });
2176
+ var d = Ag(e, i.slice(n.length), s, { unsafe: !0 });
2177
2177
  o && (d.ctype = o);
2178
2178
  }
2179
- function Cg(e, t) {
2180
- if (V(e.slice(0, 13)).toLowerCase() != "mime-version:") throw Error("Unsupported MAD header");
2181
- var n = t && t.root || "", i = (has_buf && Buffer.isBuffer(e) ? e.toString("binary") : V(e)).split("\r\n"), a = 0, o = "";
2179
+ function Dg(e, t) {
2180
+ if (H(e.slice(0, 13)).toLowerCase() != "mime-version:") throw Error("Unsupported MAD header");
2181
+ var n = t && t.root || "", i = (has_buf && Buffer.isBuffer(e) ? e.toString("binary") : H(e)).split("\r\n"), a = 0, o = "";
2182
2182
  for (a = 0; a < i.length; ++a) if (o = i[a], /^Content-Location:/i.test(o) && (o = o.slice(o.indexOf("file")), n ||= o.slice(0, o.lastIndexOf("/") + 1), o.slice(0, n.length) != n)) for (; n.length > 0 && (n = n.slice(0, n.length - 1), n = n.slice(0, n.lastIndexOf("/") + 1), o.slice(0, n.length) != n););
2183
2183
  var s = (i[1] || "").match(/boundary="(.*?)"/);
2184
2184
  if (!s) throw Error("MAD cannot find boundary");
@@ -2190,11 +2190,11 @@ var CRC32 = /* @__PURE__ */ (function() {
2190
2190
  var u, d = 0;
2191
2191
  for (a = 0; a < i.length; ++a) {
2192
2192
  var f = i[a];
2193
- f !== c && f !== c + "--" || (d++ && Sg(l, i.slice(u, a), n), u = a);
2193
+ f !== c && f !== c + "--" || (d++ && Eg(l, i.slice(u, a), n), u = a);
2194
2194
  }
2195
2195
  return l;
2196
2196
  }
2197
- function wg(e, t) {
2197
+ function Og(e, t) {
2198
2198
  var n = t || {}, i = n.boundary || "SheetJS";
2199
2199
  i = "------=" + i;
2200
2200
  for (var a = [
@@ -2209,17 +2209,17 @@ var CRC32 = /* @__PURE__ */ (function() {
2209
2209
  }).replace(/[\u0080-\uFFFF]/g, function(e) {
2210
2210
  return "_u" + e.charCodeAt(0).toString(16) + "_";
2211
2211
  });
2212
- for (var u = c.content, d = has_buf && Buffer.isBuffer(u) ? u.toString("binary") : V(u), f = 0, p = Math.min(1024, d.length), m = 0, h = 0; h <= p; ++h) (m = d.charCodeAt(h)) >= 32 && m < 128 && ++f;
2212
+ for (var u = c.content, d = has_buf && Buffer.isBuffer(u) ? u.toString("binary") : H(u), f = 0, p = Math.min(1024, d.length), m = 0, h = 0; h <= p; ++h) (m = d.charCodeAt(h)) >= 32 && m < 128 && ++f;
2213
2213
  var g = f >= p * 4 / 5;
2214
- a.push(i), a.push("Content-Location: " + (n.root || "file:///C:/SheetJS/") + s), a.push("Content-Transfer-Encoding: " + (g ? "quoted-printable" : "base64")), a.push("Content-Type: " + vg(c, s)), a.push(""), a.push(g ? bg(d) : yg(d));
2214
+ a.push(i), a.push("Content-Location: " + (n.root || "file:///C:/SheetJS/") + s), a.push("Content-Transfer-Encoding: " + (g ? "quoted-printable" : "base64")), a.push("Content-Type: " + Sg(c, s)), a.push(""), a.push(g ? wg(d) : Cg(d));
2215
2215
  }
2216
2216
  return a.push(i + "--\r\n"), a.join("\r\n");
2217
2217
  }
2218
- function Tg(e) {
2218
+ function kg(e) {
2219
2219
  var t = {};
2220
2220
  return C(t, e), t;
2221
2221
  }
2222
- function Eg(e, t, n, a) {
2222
+ function Ag(e, t, n, a) {
2223
2223
  var o = a && a.unsafe;
2224
2224
  o || C(e);
2225
2225
  var s = !o && CFB.find(e, t);
@@ -2232,7 +2232,7 @@ var CRC32 = /* @__PURE__ */ (function() {
2232
2232
  }
2233
2233
  return s.content = n, s.size = n ? n.length : 0, a && (a.CLSID && (s.clsid = a.CLSID), a.mt && (s.mt = a.mt), a.ct && (s.ct = a.ct)), s;
2234
2234
  }
2235
- function Dg(e, t) {
2235
+ function jg(e, t) {
2236
2236
  C(e);
2237
2237
  var n = CFB.find(e, t);
2238
2238
  if (n) {
@@ -2240,7 +2240,7 @@ var CRC32 = /* @__PURE__ */ (function() {
2240
2240
  }
2241
2241
  return !1;
2242
2242
  }
2243
- function Og(e, t, n) {
2243
+ function Mg(e, t, n) {
2244
2244
  C(e);
2245
2245
  var a = CFB.find(e, t);
2246
2246
  if (a) {
@@ -2248,23 +2248,23 @@ var CRC32 = /* @__PURE__ */ (function() {
2248
2248
  }
2249
2249
  return !1;
2250
2250
  }
2251
- function kg(e) {
2251
+ function Ng(e) {
2252
2252
  T(e, !0);
2253
2253
  }
2254
- return e.find = D, e.read = S, e.parse = u, e.write = H, e.writeFile = B, e.utils = {
2255
- cfb_new: Tg,
2256
- cfb_add: Eg,
2257
- cfb_del: Dg,
2258
- cfb_mov: Og,
2259
- cfb_gc: kg,
2254
+ return e.find = D, e.read = S, e.parse = u, e.write = U, e.writeFile = V, e.utils = {
2255
+ cfb_new: kg,
2256
+ cfb_add: Ag,
2257
+ cfb_del: jg,
2258
+ cfb_mov: Mg,
2259
+ cfb_gc: Ng,
2260
2260
  ReadShift,
2261
2261
  CheckField,
2262
2262
  prep_blob,
2263
2263
  bconcat,
2264
2264
  use_zlib: G,
2265
- _deflateRaw: ig,
2266
- _inflateRaw: fg,
2267
- consts: z
2265
+ _deflateRaw: cg,
2266
+ _inflateRaw: gg,
2267
+ consts: B
2268
2268
  }, e;
2269
2269
  })(), _fs = void 0;
2270
2270
  function blobify(e) {
@@ -5395,7 +5395,7 @@ var DBF = /* @__PURE__ */ (function() {
5395
5395
  function e(e, t, n) {
5396
5396
  if (e) {
5397
5397
  prep_blob(e, e.l || 0);
5398
- for (var i = n.Enum || B; e.l < e.length;) {
5398
+ for (var i = n.Enum || V; e.l < e.length;) {
5399
5399
  var a = e.read_shift(2), o = i[a] || i[65535], s = e.read_shift(2), c = e.l + s, l = o.f && o.f(e, s, n);
5400
5400
  if (e.l = c, t(l, o, a)) return;
5401
5401
  }
@@ -5425,7 +5425,7 @@ var DBF = /* @__PURE__ */ (function() {
5425
5425
  }
5426
5426
  }, p = i.sheetRows || 0;
5427
5427
  if (t[2] == 0 && (t[3] == 8 || t[3] == 9) && t.length >= 16 && t[14] == 5 && t[15] === 108) throw Error("Unsupported Works 3 for Mac file");
5428
- if (t[2] == 2) i.Enum = B, e(t, function(e, t, n) {
5428
+ if (t[2] == 2) i.Enum = V, e(t, function(e, t, n) {
5429
5429
  switch (n) {
5430
5430
  case 0:
5431
5431
  i.vers = e, e >= 4096 && (i.qpro = !0);
@@ -5464,7 +5464,7 @@ var DBF = /* @__PURE__ */ (function() {
5464
5464
  default:
5465
5465
  }
5466
5466
  }, i);
5467
- else if (t[2] == 26 || t[2] == 14) i.Enum = V, t[2] == 14 && (i.qpro = !0, t.l = 0), e(t, function(e, t, n) {
5467
+ else if (t[2] == 26 || t[2] == 14) i.Enum = H, t[2] == 14 && (i.qpro = !0, t.l = 0), e(t, function(e, t, n) {
5468
5468
  switch (n) {
5469
5469
  case 204:
5470
5470
  o = e;
@@ -5529,7 +5529,7 @@ var DBF = /* @__PURE__ */ (function() {
5529
5529
  if (+n.codepage >= 0 && set_cp(+n.codepage), n.type == "string") throw Error("Cannot write WK3 to JS string");
5530
5530
  var i = buf_array();
5531
5531
  write_biff_rec(i, 0, s(e));
5532
- for (var a = 0, o = 0; a < e.SheetNames.length; ++a) (e.Sheets[e.SheetNames[a]] || {})["!ref"] && write_biff_rec(i, 27, z(e.SheetNames[a], o++));
5532
+ for (var a = 0, o = 0; a < e.SheetNames.length; ++a) (e.Sheets[e.SheetNames[a]] || {})["!ref"] && write_biff_rec(i, 27, B(e.SheetNames[a], o++));
5533
5533
  var c = 0;
5534
5534
  for (a = 0; a < e.SheetNames.length; ++a) {
5535
5535
  var l = e.Sheets[e.SheetNames[a]];
@@ -5830,7 +5830,7 @@ var DBF = /* @__PURE__ */ (function() {
5830
5830
  }
5831
5831
  return n;
5832
5832
  }
5833
- function z(e, t) {
5833
+ function B(e, t) {
5834
5834
  var n = new_buf(5 + e.length);
5835
5835
  n.write_shift(2, 14e3), n.write_shift(2, t);
5836
5836
  for (var i = 0; i < e.length; ++i) {
@@ -5839,7 +5839,7 @@ var DBF = /* @__PURE__ */ (function() {
5839
5839
  }
5840
5840
  return n[n.l++] = 0, n;
5841
5841
  }
5842
- var B = {
5842
+ var V = {
5843
5843
  0: {
5844
5844
  n: "BOF",
5845
5845
  f: parseuint16
@@ -5931,7 +5931,7 @@ var DBF = /* @__PURE__ */ (function() {
5931
5931
  f: I
5932
5932
  },
5933
5933
  65535: { n: "" }
5934
- }, V = {
5934
+ }, H = {
5935
5935
  0: { n: "BOF" },
5936
5936
  1: { n: "EOF" },
5937
5937
  2: { n: "PASSWORD" },
@@ -12797,7 +12797,7 @@ var buildThemePalette$1 = (e) => {
12797
12797
  l && a === "right" && !s && l
12798
12798
  ] })]
12799
12799
  });
12800
- }, TableBody_default = ({ loading: e, paginatedData: t, displayColumns: n, getColumnWidth: i, pinnedColumns: a, stickyActionsColumn: o, rowKey: s, editingRowId: c, enableInlineEditing: l, editValues: u, validationErrors: d, handleInputChange: m, labels: h }) => /* @__PURE__ */ jsx("tbody", { children: e ? Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ jsx("tr", {
12800
+ }, TableBody_default = React.memo(({ loading: e, paginatedData: t, displayColumns: n, getColumnWidth: i, pinnedColumns: a, stickyActionsColumn: o, rowKey: s, editingRowId: c, enableInlineEditing: l, editValues: u, validationErrors: d, handleInputChange: m, labels: h }) => /* @__PURE__ */ jsx("tbody", { children: e ? Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ jsx("tr", {
12801
12801
  className: "border-b border-solid border-gray-100",
12802
12802
  children: n.map((e, t) => {
12803
12803
  let s = i(e), c = a.includes(e.id), l = e.isAction && o, u = 0;
@@ -12923,7 +12923,7 @@ var buildThemePalette$1 = (e) => {
12923
12923
  children: h.noData
12924
12924
  })]
12925
12925
  })
12926
- }) }) });
12926
+ }) }) }));
12927
12927
  const FilterIcon = ({ color: e, size: t = 24 }) => /* @__PURE__ */ jsx("svg", {
12928
12928
  fill: e,
12929
12929
  stroke: "currentColor",
@@ -13126,7 +13126,7 @@ var AdvancedTable_module_default = {
13126
13126
  })
13127
13127
  ]
13128
13128
  });
13129
- }, TableHeader_default = ({ displayColumns: e, getColumnWidth: t, pinnedColumns: n, stickyActionsColumn: i, enableColumnReordering: o, handleColumnReorder: c, sortConfig: d, handleSort: m, enableSorting: h, filters: g, handleFilter: _, fetchData: v, data: y, paginatedData: b, enableColumnResizing: x, handleColumnResize: S, tableColumns: C, rowKey: w, selectedRows: T, handleSelectAll: E, stateColumnOrder: D }) => {
13129
+ }, TableHeader_default = React.memo(({ displayColumns: e, getColumnWidth: t, pinnedColumns: n, stickyActionsColumn: i, enableColumnReordering: o, handleColumnReorder: c, sortConfig: d, handleSort: m, enableSorting: h, filters: g, handleFilter: _, fetchData: v, data: y, paginatedData: b, enableColumnResizing: x, handleColumnResize: S, tableColumns: C, rowKey: w, selectedRows: T, handleSelectAll: E, stateColumnOrder: D }) => {
13130
13130
  let [O, k] = useState(null), [A, j] = useState(null), [M, N] = useState(null), [P, F] = useState({}), [I, L] = useState({}), R = useRef(null);
13131
13131
  useEffect(() => {
13132
13132
  let e = (e) => {
@@ -13140,19 +13140,19 @@ var AdvancedTable_module_default = {
13140
13140
  document.removeEventListener("mousemove", e), document.removeEventListener("mouseup", t);
13141
13141
  };
13142
13142
  }, [x, S]);
13143
- let Fh = (e, t, n) => {
13143
+ let z = (e, t, n) => {
13144
13144
  e.preventDefault(), e.stopPropagation(), R.current = {
13145
13145
  columnId: t,
13146
13146
  startX: e.clientX,
13147
13147
  startWidth: n
13148
13148
  }, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
13149
- }, z = (e, t) => {
13150
- k(t), e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/html", "");
13151
13149
  }, B = (e, t) => {
13150
+ k(t), e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/html", "");
13151
+ }, V = (e, t) => {
13152
13152
  e.preventDefault(), e.dataTransfer.dropEffect = "move", j(t);
13153
- }, V = () => {
13153
+ }, H = () => {
13154
13154
  j(null);
13155
- }, Ih = (t, n) => {
13155
+ }, zh = (t, n) => {
13156
13156
  if (t.preventDefault(), O === null) return;
13157
13157
  let i = e[O].id, a = e[n].id;
13158
13158
  if (i === a) {
@@ -13161,9 +13161,9 @@ var AdvancedTable_module_default = {
13161
13161
  }
13162
13162
  let o = t.currentTarget.getBoundingClientRect(), s = t.clientX - o.left > o.width / 2, l = [...D], u = l.indexOf(i), d = l.indexOf(a);
13163
13163
  u === -1 || d === -1 || (l.splice(u, 1), d = l.indexOf(a), s ? l.splice(d + 1, 0, i) : l.splice(d, 0, i), c(l), k(null), j(null));
13164
- }, H = () => {
13164
+ }, U = () => {
13165
13165
  k(null), j(null);
13166
- }, Lh = useCallback(async (e) => {
13166
+ }, Bh = useCallback(async (e) => {
13167
13167
  let t = C.find((t) => t.id === e);
13168
13168
  if (t?.fetchColumn && !P[e]) {
13169
13169
  L((t) => ({
@@ -13185,9 +13185,9 @@ var AdvancedTable_module_default = {
13185
13185
  }));
13186
13186
  }
13187
13187
  }
13188
- }, [C, P]), U = (e) => {
13188
+ }, [C, P]), Vh = (e) => {
13189
13189
  let t = M !== e;
13190
- N(t ? e : null), t && Lh(e);
13190
+ N(t ? e : null), t && Bh(e);
13191
13191
  }, W = useCallback((e) => {
13192
13192
  let t = C.find((t) => t.id === e);
13193
13193
  if (!t) return [];
@@ -13225,12 +13225,12 @@ var AdvancedTable_module_default = {
13225
13225
  i > 0 ? s.push({
13226
13226
  value: t,
13227
13227
  count: i,
13228
- label: o,
13228
+ label: `${o} (${i})`,
13229
13229
  group: "Disponibles"
13230
13230
  }) : c.push({
13231
13231
  value: t,
13232
13232
  count: e.count,
13233
- label: o,
13233
+ label: `${o} (0)`,
13234
13234
  group: "Otros"
13235
13235
  });
13236
13236
  }), s.sort((e, t) => e.value.localeCompare(t.value)), c.sort((e, t) => e.value.localeCompare(t.value)), c.length === 0 ? s.map((e) => ({
@@ -13273,11 +13273,11 @@ var AdvancedTable_module_default = {
13273
13273
  `,
13274
13274
  style: S,
13275
13275
  draggable: !a.isAction && o && (a.draggable ?? !1),
13276
- onDragStart: (e) => !a.isAction && o && (a.draggable ?? !1) && z(e, s),
13277
- onDragOver: (e) => !a.isAction && o && B(e, s),
13278
- onDragLeave: V,
13279
- onDrop: (e) => !a.isAction && o && Ih(e, s),
13280
- onDragEnd: H,
13276
+ onDragStart: (e) => !a.isAction && o && (a.draggable ?? !1) && B(e, s),
13277
+ onDragOver: (e) => !a.isAction && o && V(e, s),
13278
+ onDragLeave: H,
13279
+ onDrop: (e) => !a.isAction && o && zh(e, s),
13280
+ onDragEnd: U,
13281
13281
  "aria-sort": d?.column === a.id ? d.direction === "asc" ? "ascending" : "descending" : "none",
13282
13282
  children: /* @__PURE__ */ jsxs("div", {
13283
13283
  className: "flex items-center py-2 px-3 gap-2 min-h-10",
@@ -13321,7 +13321,7 @@ var AdvancedTable_module_default = {
13321
13321
  children: [/* @__PURE__ */ jsx(Button_default, {
13322
13322
  level: "icon",
13323
13323
  onClick: (e) => {
13324
- e.stopPropagation(), U(a.id);
13324
+ e.stopPropagation(), Vh(a.id);
13325
13325
  },
13326
13326
  "aria-label": `Filter by ${a.label}`,
13327
13327
  children: /* @__PURE__ */ jsx(FilterIcon, { size: 16 })
@@ -13342,13 +13342,13 @@ var AdvancedTable_module_default = {
13342
13342
  }),
13343
13343
  x && !a.isAction && a.id !== "selection-synthetic" && /* @__PURE__ */ jsx("div", {
13344
13344
  className: "absolute right-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-redi-primary z-20",
13345
- onMouseDown: (e) => Fh(e, a.id, c)
13345
+ onMouseDown: (e) => z(e, a.id, c)
13346
13346
  })
13347
13347
  ]
13348
13348
  })
13349
13349
  }, a.id);
13350
13350
  }) }) });
13351
- };
13351
+ });
13352
13352
  const TablePagination = ({ pagination: e, labels: t, totalUnfiltered: n, pageSizeOptions: i, handlePageSizeChange: a, handlePageChange: o, totalPages: s }) => /* @__PURE__ */ jsxs("div", {
13353
13353
  className: "flex items-center justify-between py-4 px-6 bg-white border-t-gray-300 border-solid border-t gap-4",
13354
13354
  children: [/* @__PURE__ */ jsx("div", {
@@ -13754,6 +13754,47 @@ var TableConfig_default = forwardRef(({ tableColumns: e, hiddenColumns: t, pinne
13754
13754
  })]
13755
13755
  });
13756
13756
  };
13757
+ function useDebouncedCallback(e, t, n = []) {
13758
+ let i = useRef(null), a = useRef(e);
13759
+ useEffect(() => {
13760
+ a.current = e;
13761
+ }, [e]), useEffect(() => (i.current && clearTimeout(i.current), i.current = setTimeout(() => {
13762
+ a.current();
13763
+ }, t), () => {
13764
+ i.current && clearTimeout(i.current);
13765
+ }), [t, ...n]);
13766
+ }
13767
+ function isObject(e) {
13768
+ return typeof e == "object" && !!e && !Array.isArray(e);
13769
+ }
13770
+ function deepEqual(e, t) {
13771
+ if (e === t) return !0;
13772
+ if (e === null || t === null) return e === t;
13773
+ if (typeof e != typeof t) return !1;
13774
+ if (typeof e == "function") return e === t;
13775
+ if (Array.isArray(e) && Array.isArray(t)) {
13776
+ if (e.length !== t.length) return !1;
13777
+ for (let n = 0; n < e.length; n++) if (!deepEqual(e[n], t[n])) return !1;
13778
+ return !0;
13779
+ }
13780
+ if (isObject(e) && isObject(t)) {
13781
+ let n = Object.keys(e), i = Object.keys(t);
13782
+ if (n.length !== i.length) return !1;
13783
+ for (let a of n) if (!i.includes(a) || !deepEqual(e[a], t[a])) return !1;
13784
+ return !0;
13785
+ }
13786
+ return !1;
13787
+ }
13788
+ function useColumnSync(e, t) {
13789
+ let n = useRef(e), i = useRef(new Set(e.map((e) => e.id)));
13790
+ useEffect(() => {
13791
+ let a = e.map((e) => e.id), o = new Set(a), s = i.current;
13792
+ (e.length !== n.current.length || e.some((e, t) => e.id !== n.current[t]?.id) || a.some((e) => !s.has(e)) || Array.from(s).some((e) => !o.has(e))) && (t.setColumnOrder((e) => {
13793
+ let t = e.filter((e) => o.has(e)), n = a.filter((e) => !t.includes(e));
13794
+ return [...t, ...n];
13795
+ }), t.setHiddenColumns((e) => e.filter((e) => o.has(e))), t.setPinnedColumns((e) => e.filter((e) => o.has(e))), n.current = e, i.current = o);
13796
+ }, [e, t]);
13797
+ }
13757
13798
  const useAdvancedTable = (e) => {
13758
13799
  let { data: t, columns: n, defaultSort: i, defaultFilters: o = {}, defaultPageSize: d = 10, pageSizeOptions: f = [
13759
13800
  10,
@@ -13796,41 +13837,53 @@ const useAdvancedTable = (e) => {
13796
13837
  }), [E, D] = useState(p?.columnOrder || n.map((e) => e.id)), [O, k] = useState(p?.hiddenColumns || []), [A, j] = useState(p?.pinnedColumns || []), [M, N] = useState([]), [P, F] = useState({}), [I, L] = useState({
13797
13838
  page: 1,
13798
13839
  pageSize: p?.pagination?.pageSize || d
13799
- }), [R, Fh] = useState([]), [z, B] = useState(0), [V, Ih] = useState(0), [H, Lh] = useState(!1), [U, W] = useState(0);
13800
- useEffect(() => {
13801
- let e = n.map((e) => e.id);
13802
- D((t) => {
13803
- let n = t.filter((t) => e.includes(t)), i = e.filter((e) => !n.includes(e));
13804
- return [...n, ...i];
13805
- }), k((t) => t.filter((t) => e.includes(t))), j((t) => t.filter((t) => e.includes(t)));
13806
- }, [n]);
13807
- let G = useMemo(() => {
13808
- let e = [];
13809
- return e = _ ? [...R] : [...t], Object.entries(w).forEach(([t, i]) => {
13810
- let a = n.find((e) => e.id === t);
13811
- a && (_ && a.shouldBeRefetch || (e = e.filter((e) => {
13812
- let t = typeof a.accessor == "function" ? a.accessor(e) : e[a.accessor], n = String(t || "").toLowerCase(), o = !0;
13813
- return i.type === "text" && i.value && (o &&= n.includes(String(i.value).toLowerCase())), i.type === "select" && i.value && (o &&= n === String(i.value).toLowerCase()), i.type === "multiselect" && Array.isArray(i.value) && i.value.length > 0 && (o &&= i.value.some((e) => n === String(e).toLowerCase())), o;
13814
- })));
13840
+ }), [R, z] = useState({
13841
+ rowId: null,
13842
+ values: {},
13843
+ errors: {},
13844
+ isSaving: !1
13845
+ }), [B, V] = useState([]), [H, zh] = useState(0), [U, Bh] = useState(0), [Vh, W] = useState(!1), [G, Hh] = useState(0);
13846
+ useColumnSync(n, {
13847
+ setColumnOrder: D,
13848
+ setHiddenColumns: k,
13849
+ setPinnedColumns: j
13850
+ });
13851
+ let Uh = useMemo(() => {
13852
+ let e = /* @__PURE__ */ new Map();
13853
+ return Object.entries(w).forEach(([t, n]) => {
13854
+ n.value && (n.type === "text" || n.type === "select" || n.type === "multiselect" && Array.isArray(n.value) && n.value.length > 0) && e.set(t, n);
13815
13855
  }), e;
13856
+ }, [w]), K = useMemo(() => {
13857
+ let e = [];
13858
+ if (e = _ ? [...B] : [...t], Uh.size === 0) return e;
13859
+ let i = /* @__PURE__ */ new Map();
13860
+ return n.forEach((e) => i.set(e.id, e)), e.filter((e) => {
13861
+ for (let [t, n] of Uh) {
13862
+ let a = i.get(t);
13863
+ if (!a || _ && a.shouldBeRefetch) continue;
13864
+ let o = typeof a.accessor == "function" ? a.accessor(e) : e[a.accessor], s = String(o || "").toLowerCase(), c = !0;
13865
+ if (n.type === "text" && n.value && (c &&= s.includes(String(n.value).toLowerCase())), n.type === "select" && n.value && (c &&= s === String(n.value).toLowerCase()), n.type === "multiselect" && Array.isArray(n.value) && n.value.length > 0 && (c &&= n.value.some((e) => s === String(e).toLowerCase())), !c) return !1;
13866
+ }
13867
+ return !0;
13868
+ });
13816
13869
  }, [
13817
13870
  t,
13818
- w,
13871
+ Uh,
13819
13872
  n,
13820
13873
  _,
13821
- R
13822
- ]), K = _ ? z : G.length, Rh = _ ? V : t.length, q = useMemo(() => ({
13874
+ B
13875
+ ]), q = _ ? H : K.length, Wh = _ ? U : t.length, J = useMemo(() => ({
13823
13876
  page: I.page,
13824
13877
  pageSize: I.pageSize,
13825
- total: K
13878
+ total: q
13826
13879
  }), [
13827
13880
  I.page,
13828
13881
  I.pageSize,
13829
- K
13830
- ]), J = useMemo(() => {
13831
- if (_ || !S) return G;
13882
+ q
13883
+ ]), Y = useMemo(() => {
13884
+ if (_ || !S) return K;
13832
13885
  let e = n.find((e) => e.id === S.column);
13833
- return e ? [...G].sort((t, n) => {
13886
+ return e ? [...K].sort((t, n) => {
13834
13887
  let i = typeof e.accessor == "function" ? e.accessor(t) : t[e.accessor], a = typeof e.accessor == "function" ? e.accessor(n) : n[e.accessor];
13835
13888
  if (i == null) return 1;
13836
13889
  if (a == null) return -1;
@@ -13843,112 +13896,107 @@ const useAdvancedTable = (e) => {
13843
13896
  o = e.localeCompare(t);
13844
13897
  }
13845
13898
  return S.direction === "desc" ? o * -1 : o;
13846
- }) : G;
13899
+ }) : K;
13847
13900
  }, [
13848
- G,
13901
+ K,
13849
13902
  S,
13850
13903
  n,
13851
13904
  _
13852
- ]), zh = useMemo(() => {
13853
- if (_ || !x) return J;
13854
- let e = (q.page - 1) * q.pageSize, t = e + q.pageSize;
13855
- return J.slice(e, t);
13905
+ ]), X = useMemo(() => {
13906
+ if (_ || !x) return Y;
13907
+ let e = (J.page - 1) * J.pageSize, t = e + J.pageSize;
13908
+ return Y.slice(e, t);
13856
13909
  }, [
13857
- J,
13858
- q.page,
13859
- q.pageSize,
13910
+ Y,
13911
+ J.page,
13912
+ J.pageSize,
13860
13913
  _,
13861
13914
  x
13862
- ]), Bh = useCallback(async () => {
13915
+ ]), Gh = useCallback(async () => {
13863
13916
  if (_) {
13864
- Lh(!0);
13917
+ W(!0);
13865
13918
  try {
13866
13919
  let e = {
13867
- page_number: q.page,
13868
- page_size: q.pageSize
13920
+ page_number: J.page,
13921
+ page_size: J.pageSize
13869
13922
  };
13870
13923
  S && (e.order_by = `${S.direction === "desc" ? "-" : ""}${S.column}`), Object.entries(w).forEach(([t, i]) => {
13871
13924
  i.value && n.find((e) => e.id === t)?.shouldBeRefetch && (e[t] = i.value);
13872
13925
  });
13873
13926
  let t = await _(e);
13874
- Fh(t.items), B(t.total_items), t.total_unfiltered_items === void 0 ? Object.entries(w).some(([e, t]) => n.find((t) => t.id === e)?.shouldBeRefetch && t.value && (Array.isArray(t.value) ? t.value.length > 0 : !0)) || Ih(t.total_items) : Ih(t.total_unfiltered_items);
13927
+ V(t.items), zh(t.total_items), t.total_unfiltered_items === void 0 ? Object.entries(w).some(([e, t]) => n.find((t) => t.id === e)?.shouldBeRefetch && t.value && (Array.isArray(t.value) ? t.value.length > 0 : !0)) || Bh(t.total_items) : Bh(t.total_unfiltered_items);
13875
13928
  } catch (e) {
13876
13929
  console.error("Failed to fetch data:", e);
13877
13930
  } finally {
13878
- Lh(!1);
13931
+ W(!1);
13879
13932
  }
13880
13933
  }
13881
13934
  }, [
13882
13935
  _,
13883
- q.page,
13884
- q.pageSize,
13936
+ J.page,
13937
+ J.pageSize,
13885
13938
  S,
13886
13939
  w,
13887
13940
  n
13888
- ]), Y = useRef(!0), X = useRef(w), Vh = useRef(S), Hh = useRef(q.page), Uh = useRef(q.pageSize), Wh = useRef(U);
13941
+ ]), Kh = useRef(!0), qh = useRef(w), Jh = useRef(S), Yh = useRef(J.page), Xh = useRef(J.pageSize), Zh = useRef(G);
13889
13942
  useEffect(() => {
13890
13943
  if (_) {
13891
- let e = !1, t = JSON.stringify(w) !== JSON.stringify(X.current);
13892
- if (Y.current) e = !0, Y.current = !1;
13893
- else if (U !== Wh.current) e = !0, Wh.current = U;
13894
- else if (q.page !== Hh.current || q.pageSize !== Uh.current) e = !0;
13895
- else if (JSON.stringify(S) !== JSON.stringify(Vh.current)) e = !0;
13944
+ let e = !1, t = !deepEqual(w, qh.current), i = !deepEqual(S, Jh.current), a = J.page !== Yh.current || J.pageSize !== Xh.current;
13945
+ if (Kh.current) e = !0, Kh.current = !1;
13946
+ else if (G !== Zh.current) e = !0, Zh.current = G;
13896
13947
  else if (t) {
13897
- let t = Object.keys(X.current), i = Object.keys(w), a = Array.from(new Set([...t, ...i]));
13898
- for (let t of a) if (JSON.stringify(X.current[t]) !== JSON.stringify(w[t]) && n.find((e) => e.id === t)?.shouldBeRefetch === !0) {
13948
+ let t = Object.keys(qh.current), i = Object.keys(w), a = Array.from(new Set([...t, ...i]));
13949
+ for (let t of a) if (!deepEqual(qh.current[t], w[t]) && n.find((e) => e.id === t)?.shouldBeRefetch === !0) {
13899
13950
  e = !0;
13900
13951
  break;
13901
13952
  }
13902
- }
13903
- Hh.current = q.page, Uh.current = q.pageSize, Vh.current = S, X.current = w, e && Bh();
13953
+ } else (a || i) && (e = !0);
13954
+ Yh.current = J.page, Xh.current = J.pageSize, Jh.current = S, qh.current = w, e && Gh();
13904
13955
  }
13905
13956
  }, [
13906
- Bh,
13907
- U,
13957
+ Gh,
13958
+ G,
13908
13959
  _,
13909
- q.page,
13910
- q.pageSize,
13960
+ J.page,
13961
+ J.pageSize,
13911
13962
  S,
13912
13963
  w,
13913
13964
  n
13914
13965
  ]), useEffect(() => {
13915
13966
  if (!_) {
13916
- let e = Math.ceil(K / q.pageSize) || 1;
13917
- q.page > e && L((t) => ({
13967
+ let e = Math.ceil(q / J.pageSize) || 1;
13968
+ J.page > e && L((t) => ({
13918
13969
  ...t,
13919
13970
  page: e
13920
13971
  }));
13921
13972
  }
13922
13973
  }, [
13923
- K,
13924
- q.pageSize,
13974
+ q,
13975
+ J.pageSize,
13925
13976
  _,
13926
- q.page
13927
- ]), useEffect(() => {
13977
+ J.page
13978
+ ]), useDebouncedCallback(() => {
13928
13979
  m?.({
13929
13980
  columns: n,
13930
13981
  sort: S,
13931
13982
  filters: w,
13932
- pagination: q,
13983
+ pagination: J,
13933
13984
  columnOrder: E,
13934
13985
  hiddenColumns: O,
13935
13986
  pinnedColumns: A
13936
- });
13937
- }, [
13987
+ }), h?.(J), g?.(w);
13988
+ }, 100, [
13938
13989
  S,
13939
13990
  w,
13991
+ J,
13940
13992
  E,
13941
13993
  O,
13942
13994
  A,
13943
- q.pageSize,
13944
13995
  m,
13945
- q,
13996
+ h,
13997
+ g,
13946
13998
  n
13947
13999
  ]), useEffect(() => {
13948
- h?.(q);
13949
- }, [q, h]), useEffect(() => {
13950
- g?.(w);
13951
- }, [w, g]), useEffect(() => {
13952
14000
  if (b && typeof window < "u") {
13953
14001
  let e = new URLSearchParams(window.location.search);
13954
14002
  n.forEach((t) => {
@@ -13965,7 +14013,7 @@ const useAdvancedTable = (e) => {
13965
14013
  n,
13966
14014
  _
13967
14015
  ]);
13968
- let Gh = useCallback((e) => {
14016
+ let Qh = useCallback((e) => {
13969
14017
  C((t) => t?.column === e ? t.direction === "asc" ? {
13970
14018
  column: e,
13971
14019
  direction: "desc"
@@ -13973,7 +14021,7 @@ const useAdvancedTable = (e) => {
13973
14021
  column: e,
13974
14022
  direction: "asc"
13975
14023
  });
13976
- }, []), Kh = useCallback((e, t, n = "text") => {
14024
+ }, []), $h = useCallback((e, t, n = "text") => {
13977
14025
  T((i) => ({
13978
14026
  ...i,
13979
14027
  [e]: {
@@ -13985,36 +14033,36 @@ const useAdvancedTable = (e) => {
13985
14033
  ...e,
13986
14034
  page: 1
13987
14035
  }));
13988
- }, []), qh = useCallback((e) => {
14036
+ }, []), eg = useCallback((e) => {
13989
14037
  T((t) => {
13990
14038
  let n = { ...t };
13991
14039
  return delete n[e], n;
13992
14040
  });
13993
- }, []), Jh = useCallback(() => {
14041
+ }, []), tg = useCallback(() => {
13994
14042
  T({});
13995
- }, []), Yh = useCallback((e) => {
14043
+ }, []), ng = useCallback((e) => {
13996
14044
  L((t) => ({
13997
14045
  ...t,
13998
14046
  page: e
13999
14047
  }));
14000
- }, []), Xh = useCallback((e) => {
14048
+ }, []), rg = useCallback((e) => {
14001
14049
  L((t) => ({
14002
14050
  ...t,
14003
14051
  pageSize: e,
14004
14052
  page: 1
14005
14053
  }));
14006
- }, []), Zh = useCallback((e) => {
14054
+ }, []), Z = useCallback((e) => {
14007
14055
  D(e);
14008
- }, []), Qh = useCallback((e) => {
14056
+ }, []), ig = useCallback((e) => {
14009
14057
  k((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
14010
- }, []), $h = useCallback((e) => {
14058
+ }, []), ag = useCallback((e) => {
14011
14059
  j((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
14012
- }, []), Z = useCallback((e) => {
14060
+ }, []), og = useCallback((e) => {
14013
14061
  N((t) => {
14014
14062
  let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
14015
14063
  return y?.(n), n;
14016
14064
  });
14017
- }, [y]), eg = useCallback((e) => {
14065
+ }, [y]), Q = useCallback((e) => {
14018
14066
  N((t) => {
14019
14067
  let n = e.map((e) => typeof v == "function" ? v(e) : e[v]), i = n.every((e) => t.includes(e)), a;
14020
14068
  if (i) a = t.filter((e) => !n.includes(e));
@@ -14024,53 +14072,143 @@ const useAdvancedTable = (e) => {
14024
14072
  }
14025
14073
  return y?.(a), a;
14026
14074
  });
14027
- }, [v, y]), tg = useCallback((e, t) => {
14075
+ }, [v, y]), sg = useCallback((e, t) => {
14028
14076
  F((n) => ({
14029
14077
  ...n,
14030
14078
  [e]: Math.max(50, t)
14031
14079
  }));
14032
- }, []), ng = useMemo(() => {
14080
+ }, []), cg = useCallback((e) => {
14081
+ let t = typeof v == "function" ? v(e) : e[v], i = {};
14082
+ n.forEach((t) => {
14083
+ if (t.editable) {
14084
+ let n = typeof t.accessor == "function" ? t.accessor(e) : e[t.accessor];
14085
+ i[t.id] = n;
14086
+ }
14087
+ }), z({
14088
+ rowId: t,
14089
+ values: i,
14090
+ errors: {},
14091
+ isSaving: !1
14092
+ });
14093
+ }, [v, n]), lg = useCallback(() => {
14094
+ z((e) => ({
14095
+ ...e,
14096
+ rowId: null,
14097
+ values: {},
14098
+ errors: {}
14099
+ }));
14100
+ }, []), ug = useCallback(async (t) => {
14101
+ let i = {}, a = !1, o = {};
14102
+ if (n.forEach((e) => {
14103
+ if (e.editable) {
14104
+ let t = R.values[e.id];
14105
+ if (e.inputType === "number" && typeof t == "string" && t !== "") {
14106
+ let e = Number(t);
14107
+ isNaN(e) || (t = e);
14108
+ }
14109
+ if (e.validation) {
14110
+ let n = e.validation(t);
14111
+ n && (i[e.id] = n, a = !0);
14112
+ }
14113
+ typeof e.accessor == "string" ? o[e.accessor] = t : o[e.id] = t;
14114
+ }
14115
+ }), a) {
14116
+ z((e) => ({
14117
+ ...e,
14118
+ errors: i
14119
+ }));
14120
+ return;
14121
+ }
14122
+ z((e) => ({
14123
+ ...e,
14124
+ isSaving: !0
14125
+ }));
14126
+ try {
14127
+ await e.onRowSave?.(t, o), z((e) => ({
14128
+ ...e,
14129
+ rowId: null,
14130
+ values: {},
14131
+ errors: {},
14132
+ isSaving: !1
14133
+ }));
14134
+ } catch (e) {
14135
+ console.error("Failed to save row", e), z((e) => ({
14136
+ ...e,
14137
+ isSaving: !1
14138
+ }));
14139
+ }
14140
+ }, [
14141
+ n,
14142
+ R.values,
14143
+ e.onRowSave
14144
+ ]), dg = useCallback((e, t) => {
14145
+ if (z((n) => ({
14146
+ ...n,
14147
+ values: {
14148
+ ...n.values,
14149
+ [e]: t
14150
+ }
14151
+ })), R.errors[e]) {
14152
+ z((e) => ({
14153
+ ...e,
14154
+ errors: { ...e.errors }
14155
+ }));
14156
+ let t = { ...R.errors };
14157
+ delete t[e], z((e) => ({
14158
+ ...e,
14159
+ errors: t
14160
+ }));
14161
+ }
14162
+ }, [R.errors]), fg = useMemo(() => {
14033
14163
  let e = new Map(n.map((e) => [e.id, e])), t = E.map((t) => e.get(t)).filter(Boolean), i = new Set(t.map((e) => e.id)), a = n.filter((e) => !i.has(e.id));
14034
14164
  return [...t, ...a].filter((e) => !O.includes(e.id));
14035
14165
  }, [
14036
14166
  E,
14037
14167
  n,
14038
14168
  O
14039
- ]), Q = useCallback(() => {
14040
- W((e) => e + 1);
14169
+ ]), pg = useCallback(() => {
14170
+ Hh((e) => e + 1);
14041
14171
  }, []);
14042
14172
  return {
14043
14173
  state: {
14044
14174
  data: t,
14045
- filteredData: G,
14046
- paginatedData: zh,
14175
+ filteredData: K,
14176
+ paginatedData: X,
14047
14177
  sortConfig: S,
14048
14178
  filters: w,
14049
- pagination: q,
14179
+ pagination: J,
14050
14180
  columnOrder: E,
14051
14181
  hiddenColumns: O,
14052
14182
  pinnedColumns: A,
14053
14183
  selectedRows: M,
14054
14184
  columnWidths: P,
14055
- loading: H,
14056
- totalUnfiltered: Rh
14185
+ loading: Vh,
14186
+ totalUnfiltered: Wh
14057
14187
  },
14058
- orderedColumns: ng,
14188
+ orderedColumns: fg,
14059
14189
  pageSizeOptions: f,
14060
- handleSort: Gh,
14061
- handleFilter: Kh,
14062
- clearFilter: qh,
14063
- clearAllFilters: Jh,
14064
- handlePageChange: Yh,
14065
- handlePageSizeChange: Xh,
14066
- handleColumnReorder: Zh,
14067
- handleToggleColumn: Qh,
14068
- handleTogglePin: $h,
14069
- handleRowSelect: Z,
14070
- handleSelectAll: eg,
14071
- handleColumnResize: tg,
14190
+ handleSort: Qh,
14191
+ handleFilter: $h,
14192
+ clearFilter: eg,
14193
+ clearAllFilters: tg,
14194
+ handlePageChange: ng,
14195
+ handlePageSizeChange: rg,
14196
+ handleColumnReorder: Z,
14197
+ handleToggleColumn: ig,
14198
+ handleTogglePin: ag,
14199
+ handleRowSelect: og,
14200
+ handleSelectAll: Q,
14201
+ handleColumnResize: sg,
14072
14202
  allColumns: n,
14073
- refresh: Q
14203
+ refresh: pg,
14204
+ editingRowId: R.rowId,
14205
+ editValues: R.values,
14206
+ validationErrors: R.errors,
14207
+ isSaving: R.isSaving,
14208
+ handleEditClick: cg,
14209
+ handleCancelEdit: lg,
14210
+ handleSaveEdit: ug,
14211
+ handleInputChange: dg
14074
14212
  };
14075
14213
  };
14076
14214
  var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilters: i = {}, defaultPageSize: o = 10, pageSizeOptions: d = [
@@ -14095,22 +14233,22 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14095
14233
  },
14096
14234
  clearAllFilters: "Limpiar todos los filtros",
14097
14235
  noData: "No hay datos disponibles"
14098
- }, enableColumnReordering: T = !0, enableColumnPinning: E = !1, enableColumnResizing: D = !1, enableRowSelection: O = !1, stickyActionsColumn: k = !1, rowKey: A = "id", onRowSelectionChange: j, renderActions: M, actionsColumnLabel: N, loading: P = !1, fetchData: F, onRefresh: I, onPaginationChange: L, onFiltersChange: R, syncFiltersWithUrl: Fh = !1, enableColumnConfig: z = !0, enableInlineEditing: B = !1, onRowSave: V, onRowEditCancel: Ih }) => {
14099
- let [H, Lh] = useState(t), [U, W] = useState(null), [G, K] = useState({}), [Rh, q] = useState({}), [J, zh] = useState(!1), Bh = useCallback((e) => {
14236
+ }, enableColumnReordering: T = !0, enableColumnPinning: E = !1, enableColumnResizing: D = !1, enableRowSelection: O = !1, stickyActionsColumn: k = !1, rowKey: A = "id", onRowSelectionChange: j, renderActions: M, actionsColumnLabel: N, loading: P = !1, fetchData: F, onRefresh: I, onPaginationChange: L, onFiltersChange: R, syncFiltersWithUrl: z = !1, enableColumnConfig: B = !0, enableInlineEditing: V = !1, onRowSave: H, onRowEditCancel: zh }) => {
14237
+ let [U, Bh] = useState(t), [Vh, W] = useState(null), [G, Hh] = useState({}), [Uh, K] = useState({}), [q, Wh] = useState(!1), J = useCallback((e) => {
14100
14238
  let t = typeof A == "function" ? A(e) : e[A];
14101
14239
  W(t);
14102
14240
  let n = {};
14103
- H.forEach((t) => {
14241
+ U.forEach((t) => {
14104
14242
  if (t.editable) {
14105
14243
  let i = typeof t.accessor == "function" ? t.accessor(e) : e[t.accessor];
14106
14244
  n[t.id] = i;
14107
14245
  }
14108
- }), K(n), q({});
14109
- }, [A, H]), Y = useCallback(() => {
14110
- W(null), K({}), q({}), Ih?.();
14111
- }, [Ih]), X = useCallback(async (e) => {
14246
+ }), Hh(n), K({});
14247
+ }, [A, U]), Y = useCallback(() => {
14248
+ W(null), Hh({}), K({}), zh?.();
14249
+ }, [zh]), X = useCallback(async (e) => {
14112
14250
  let t = {}, n = !1, i = {};
14113
- if (H.forEach((e) => {
14251
+ if (U.forEach((e) => {
14114
14252
  if (e.editable) {
14115
14253
  let a = G[e.id];
14116
14254
  if (e.inputType === "number" && typeof a == "string" && a !== "") {
@@ -14124,32 +14262,32 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14124
14262
  typeof e.accessor == "string" ? i[e.accessor] = a : i[e.id] = a;
14125
14263
  }
14126
14264
  }), n) {
14127
- q(t);
14265
+ K(t);
14128
14266
  return;
14129
14267
  }
14130
- zh(!0);
14268
+ Wh(!0);
14131
14269
  try {
14132
- await V?.(e, i), W(null), K({});
14270
+ await H?.(e, i), W(null), Hh({});
14133
14271
  } catch (e) {
14134
14272
  console.error("Failed to save row", e);
14135
14273
  } finally {
14136
- zh(!1);
14274
+ Wh(!1);
14137
14275
  }
14138
14276
  }, [
14139
- V,
14140
14277
  H,
14278
+ U,
14141
14279
  G
14142
- ]), Vh = (e, t) => {
14143
- K((n) => ({
14280
+ ]), Gh = (e, t) => {
14281
+ Hh((n) => ({
14144
14282
  ...n,
14145
14283
  [e]: t
14146
- })), Rh[e] && q((t) => {
14284
+ })), Uh[e] && K((t) => {
14147
14285
  let n = { ...t };
14148
14286
  return delete n[e], n;
14149
14287
  });
14150
- }, { state: Hh, orderedColumns: Uh, handleSort: Wh, handleFilter: Gh, clearAllFilters: Kh, handlePageChange: qh, handlePageSizeChange: Jh, handleColumnReorder: Yh, handleToggleColumn: Xh, handleTogglePin: Zh, handleRowSelect: Qh, handleSelectAll: $h, handleColumnResize: Z, refresh: eg } = useAdvancedTable({
14288
+ }, { state: Kh, orderedColumns: qh, handleSort: Jh, handleFilter: Yh, clearAllFilters: Xh, handlePageChange: Zh, handlePageSizeChange: Qh, handleColumnReorder: $h, handleToggleColumn: eg, handleTogglePin: tg, handleRowSelect: ng, handleSelectAll: rg, handleColumnResize: Z, refresh: ig } = useAdvancedTable({
14151
14289
  data: e,
14152
- columns: H,
14290
+ columns: U,
14153
14291
  defaultSort: n,
14154
14292
  defaultFilters: i,
14155
14293
  defaultPageSize: o,
@@ -14161,25 +14299,25 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14161
14299
  onFiltersChange: R,
14162
14300
  rowKey: A,
14163
14301
  onRowSelectionChange: j,
14164
- syncFiltersWithUrl: Fh,
14302
+ syncFiltersWithUrl: z,
14165
14303
  enablePagination: y
14166
- }), { paginatedData: tg, sortConfig: ng, filters: Q, pagination: rg, hiddenColumns: ig, pinnedColumns: ag, selectedRows: og, columnWidths: sg, loading: cg, totalUnfiltered: lg } = Hh, ug = P || cg;
14167
- useEffect(() => Lh(t), [t]);
14168
- let dg = useRef(null), fg = useRef(null), [pg, mg] = useState(0);
14304
+ }), { paginatedData: ag, sortConfig: og, filters: Q, pagination: sg, hiddenColumns: cg, pinnedColumns: lg, selectedRows: ug, columnWidths: dg, loading: fg, totalUnfiltered: pg } = Kh, mg = P || fg;
14305
+ useEffect(() => Bh(t), [t]);
14306
+ let hg = useRef(null), gg = useRef(null), [_g, vg] = useState(0);
14169
14307
  useEffect(() => {
14170
14308
  let e = () => {
14171
- dg.current && mg(dg.current.scrollWidth);
14309
+ hg.current && vg(hg.current.scrollWidth);
14172
14310
  };
14173
14311
  e();
14174
14312
  let t = new ResizeObserver(e);
14175
- return dg.current && t.observe(dg.current), () => t.disconnect();
14176
- }, [tg, H]);
14177
- let hg = (e) => {
14178
- dg.current && (dg.current.scrollLeft = e.currentTarget.scrollLeft);
14179
- }, gg = (e) => {
14180
- fg.current && (fg.current.scrollLeft = e.currentTarget.scrollLeft);
14181
- }, _g = useMemo(() => {
14182
- let e = [...Uh], t = e.filter((e) => e.isAction), n = [...e.filter((e) => !e.isAction), ...t];
14313
+ return hg.current && t.observe(hg.current), () => t.disconnect();
14314
+ }, [ag, U]);
14315
+ let yg = (e) => {
14316
+ hg.current && (hg.current.scrollLeft = e.currentTarget.scrollLeft);
14317
+ }, bg = (e) => {
14318
+ gg.current && (gg.current.scrollLeft = e.currentTarget.scrollLeft);
14319
+ }, xg = useMemo(() => {
14320
+ let e = [...qh], t = e.filter((e) => e.isAction), n = [...e.filter((e) => !e.isAction), ...t];
14183
14321
  return O && n.unshift({
14184
14322
  id: "selection-synthetic",
14185
14323
  label: "",
@@ -14191,9 +14329,9 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14191
14329
  return /* @__PURE__ */ jsx("input", {
14192
14330
  type: "checkbox",
14193
14331
  className: "w-4 h-4 accent-redi-primary cursor-pointer",
14194
- checked: og.includes(t),
14332
+ checked: ug.includes(t),
14195
14333
  onChange: (e) => {
14196
- e.stopPropagation(), Qh(t);
14334
+ e.stopPropagation(), ng(t);
14197
14335
  },
14198
14336
  onClick: (e) => e.stopPropagation()
14199
14337
  });
@@ -14202,20 +14340,20 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14202
14340
  filterable: !1,
14203
14341
  sortable: !1,
14204
14342
  draggable: !1
14205
- }), (M || B) && n.push({
14343
+ }), (M || V) && n.push({
14206
14344
  id: "actions-synthetic",
14207
14345
  label: N || "",
14208
14346
  accessor: (e) => e[A],
14209
14347
  render: ({ row: e, column: t, index: n }) => {
14210
14348
  let i = typeof A == "function" ? A(e) : e[A];
14211
- return B ? U === i ? /* @__PURE__ */ jsxs("div", {
14349
+ return V ? Vh === i ? /* @__PURE__ */ jsxs("div", {
14212
14350
  className: "flex items-center gap-2",
14213
14351
  children: [/* @__PURE__ */ jsx(Button_default, {
14214
14352
  level: "icon",
14215
14353
  onClick: (t) => {
14216
14354
  t.stopPropagation(), X(e);
14217
14355
  },
14218
- disabled: J,
14356
+ disabled: q,
14219
14357
  className: "text-green-600 hover:bg-green-100 p-1 rounded-full",
14220
14358
  label: "Save",
14221
14359
  children: /* @__PURE__ */ jsx(CheckIcon, { size: 18 })
@@ -14224,7 +14362,7 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14224
14362
  onClick: (e) => {
14225
14363
  e.stopPropagation(), Y();
14226
14364
  },
14227
- disabled: J,
14365
+ disabled: q,
14228
14366
  className: "text-red-600 hover:bg-red-100 p-1 rounded-full",
14229
14367
  label: "Cancel",
14230
14368
  children: /* @__PURE__ */ jsx(CloseIcon, { size: 18 })
@@ -14234,7 +14372,7 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14234
14372
  children: [/* @__PURE__ */ jsx(Button_default, {
14235
14373
  level: "icon",
14236
14374
  onClick: (t) => {
14237
- t.stopPropagation(), Bh(e);
14375
+ t.stopPropagation(), J(e);
14238
14376
  },
14239
14377
  className: "text-blue-600 hover:bg-blue-100 p-1 rounded-full",
14240
14378
  label: "Edit",
@@ -14257,27 +14395,27 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14257
14395
  draggable: !1
14258
14396
  }), n;
14259
14397
  }, [
14260
- Uh,
14398
+ qh,
14261
14399
  O,
14262
14400
  M,
14263
- B,
14401
+ V,
14264
14402
  A,
14265
- og,
14266
- Qh,
14403
+ ug,
14404
+ ng,
14267
14405
  N,
14268
- U,
14269
- J,
14406
+ Vh,
14407
+ q,
14270
14408
  X,
14271
14409
  Y,
14272
- Bh
14273
- ]), vg = () => {
14410
+ J
14411
+ ]), Sg = () => {
14274
14412
  if (!b) return;
14275
- let e = _g.filter((e) => !e.isAction);
14276
- exportToExcel(Hh.filteredData, e, "table-data.xlsx");
14277
- }, yg = Object.values(Q).some((e) => e.type === "text" && e.value || e.type === "select" && e.value || e.type === "multiselect" && Array.isArray(e.value) && e.value.length > 0), bg = useMemo(() => {
14413
+ let e = xg.filter((e) => !e.isAction);
14414
+ exportToExcel(Kh.filteredData, e, "table-data.xlsx");
14415
+ }, Cg = Object.values(Q).some((e) => e.type === "text" && e.value || e.type === "select" && e.value || e.type === "multiselect" && Array.isArray(e.value) && e.value.length > 0), wg = useMemo(() => {
14278
14416
  let e = [];
14279
14417
  return Object.entries(Q).forEach(([t, n]) => {
14280
- let i = H.find((e) => e.id === t);
14418
+ let i = U.find((e) => e.id === t);
14281
14419
  i && (n.type === "text" && n.value ? e.push({
14282
14420
  columnId: t,
14283
14421
  columnLabel: i.label,
@@ -14292,14 +14430,14 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14292
14430
  });
14293
14431
  }));
14294
14432
  }), e;
14295
- }, [Q, H]), xg = (e, t) => {
14433
+ }, [Q, U]), Tg = (e, t) => {
14296
14434
  let n = Q[e];
14297
- if (n.type === "text") Gh(e, "", "text");
14435
+ if (n.type === "text") Yh(e, "", "text");
14298
14436
  else if (n.type === "multiselect" && Array.isArray(n.value)) {
14299
14437
  let i = n.value.filter((e) => e !== t);
14300
- Gh(e, i, "multiselect");
14438
+ Yh(e, i, "multiselect");
14301
14439
  }
14302
- }, Sg = Math.ceil(rg.total / rg.pageSize), Cg = (e) => sg[e.id] ? sg[e.id] : e.width ? e.width : e.isAction ? 100 : 150 + (e.filterable ? 50 : 0);
14440
+ }, Eg = Math.ceil(sg.total / sg.pageSize), Dg = (e) => dg[e.id] ? dg[e.id] : e.width ? e.width : e.isAction ? 100 : 150 + (e.filterable ? 50 : 0);
14303
14441
  return /* @__PURE__ */ jsxs("div", {
14304
14442
  className: `w-full bg-redi-background border border-solid border-gray-500 rounded-xl overflow-hidden font-family-base shadow ${C}`,
14305
14443
  children: [
@@ -14307,90 +14445,90 @@ var AdvancedTable_default = ({ data: e, columns: t, defaultSort: n, defaultFilte
14307
14445
  fetchData: F,
14308
14446
  onRefresh: I,
14309
14447
  handleRefreshClick: () => {
14310
- eg(), I?.();
14448
+ ig(), I?.();
14311
14449
  },
14312
- isLoading: ug,
14313
- enableColumnConfig: z,
14450
+ isLoading: mg,
14451
+ enableColumnConfig: B,
14314
14452
  labels: w,
14315
- tableColumns: H,
14316
- hiddenColumns: ig,
14317
- pinnedColumns: ag,
14318
- handleToggleColumn: Xh,
14319
- handleTogglePin: Zh,
14320
- setTableColumns: Lh,
14453
+ tableColumns: U,
14454
+ hiddenColumns: cg,
14455
+ pinnedColumns: lg,
14456
+ handleToggleColumn: eg,
14457
+ handleTogglePin: tg,
14458
+ setTableColumns: Bh,
14321
14459
  enableColumnPinning: E,
14322
14460
  enableFiltering: v,
14323
- hasActiveFilters: yg,
14324
- clearAllFilters: Kh,
14325
- activeFilterTags: bg,
14326
- handleRemoveFilterTag: xg,
14461
+ hasActiveFilters: Cg,
14462
+ clearAllFilters: Xh,
14463
+ activeFilterTags: wg,
14464
+ handleRemoveFilterTag: Tg,
14327
14465
  enableExport: b,
14328
- handleExport: vg
14466
+ handleExport: Sg
14329
14467
  }),
14330
14468
  y && /* @__PURE__ */ jsx("div", {
14331
- ref: fg,
14469
+ ref: gg,
14332
14470
  className: `overflow-x-auto bg-gray-50 border-b border-gray-200 ${y ? "md:overflow-y-hidden" : ""}`,
14333
- onScroll: hg,
14471
+ onScroll: yg,
14334
14472
  style: { height: "12px" },
14335
14473
  children: /* @__PURE__ */ jsx("div", { style: {
14336
- width: pg,
14474
+ width: _g,
14337
14475
  height: "1px"
14338
14476
  } })
14339
14477
  }),
14340
14478
  /* @__PURE__ */ jsx("div", {
14341
- ref: dg,
14342
- onScroll: gg,
14479
+ ref: hg,
14480
+ onScroll: bg,
14343
14481
  className: `overflow-x-auto bg-white relative ${y ? "max-h-150 md:max-h-none min-h-125 overflow-y-auto md:overflow-y-visible" : "min-h-0 max-h-150 overflow-y-auto"}`,
14344
14482
  children: /* @__PURE__ */ jsxs("table", {
14345
14483
  className: "w-full border-separate border-spacing-0 table-auto text-sm relative",
14346
14484
  "aria-label": "Data Table",
14347
14485
  children: [/* @__PURE__ */ jsx(TableHeader_default, {
14348
- displayColumns: _g,
14349
- getColumnWidth: Cg,
14350
- pinnedColumns: ag,
14486
+ displayColumns: xg,
14487
+ getColumnWidth: Dg,
14488
+ pinnedColumns: lg,
14351
14489
  stickyActionsColumn: k,
14352
14490
  enableColumnReordering: T,
14353
- handleColumnReorder: Yh,
14354
- sortConfig: ng,
14355
- handleSort: Wh,
14491
+ handleColumnReorder: $h,
14492
+ sortConfig: og,
14493
+ handleSort: Jh,
14356
14494
  enableSorting: _,
14357
14495
  filters: Q,
14358
- handleFilter: Gh,
14496
+ handleFilter: Yh,
14359
14497
  fetchData: F,
14360
14498
  data: e,
14361
- paginatedData: tg,
14499
+ paginatedData: ag,
14362
14500
  enableColumnResizing: D,
14363
14501
  handleColumnResize: Z,
14364
- tableColumns: H,
14502
+ tableColumns: U,
14365
14503
  rowKey: A,
14366
- selectedRows: og,
14367
- handleSelectAll: $h,
14368
- stateColumnOrder: Hh.columnOrder
14504
+ selectedRows: ug,
14505
+ handleSelectAll: rg,
14506
+ stateColumnOrder: Kh.columnOrder
14369
14507
  }), /* @__PURE__ */ jsx(TableBody_default, {
14370
14508
  loading: P,
14371
- paginatedData: tg,
14372
- displayColumns: _g,
14373
- getColumnWidth: Cg,
14374
- pinnedColumns: ag,
14509
+ paginatedData: ag,
14510
+ displayColumns: xg,
14511
+ getColumnWidth: Dg,
14512
+ pinnedColumns: lg,
14375
14513
  stickyActionsColumn: k,
14376
14514
  rowKey: A,
14377
- editingRowId: U,
14378
- enableInlineEditing: B,
14515
+ editingRowId: Vh,
14516
+ enableInlineEditing: V,
14379
14517
  editValues: G,
14380
- validationErrors: Rh,
14381
- handleInputChange: Vh,
14518
+ validationErrors: Uh,
14519
+ handleInputChange: Gh,
14382
14520
  labels: w
14383
14521
  })]
14384
14522
  })
14385
14523
  }),
14386
14524
  y && /* @__PURE__ */ jsx(TablePagination, {
14387
- pagination: rg,
14525
+ pagination: sg,
14388
14526
  labels: w,
14389
- totalUnfiltered: lg,
14527
+ totalUnfiltered: pg,
14390
14528
  pageSizeOptions: d,
14391
- handlePageSizeChange: Jh,
14392
- handlePageChange: qh,
14393
- totalPages: Sg
14529
+ handlePageSizeChange: Qh,
14530
+ handlePageChange: Zh,
14531
+ totalPages: Eg
14394
14532
  })
14395
14533
  ]
14396
14534
  });