ia-table 0.10.4 → 0.10.5

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.
Files changed (2) hide show
  1. package/dist/index.js +479 -475
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ var Jt = (e, t, n) => Ki(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import { jsxs as K, jsx as h, Fragment as yt } from "react/jsx-runtime";
6
6
  import * as Z from "react";
7
7
  import _t, { createContext as Zr, useContext as Ua, useMemo as De, useEffect as ae, useCallback as he, useRef as re, useState as $, forwardRef as Aa, useImperativeHandle as Xr, memo as it } from "react";
8
- import * as Pn from "xlsx";
8
+ import * as On from "xlsx";
9
9
  import { create as Zi } from "zustand";
10
10
  import { createPortal as Yt } from "react-dom";
11
11
  import ue from "prop-types";
@@ -73,7 +73,7 @@ const ma = 200, Ca = 2, qi = 56, $i = 48, fn = {
73
73
  "daterangepicker",
74
74
  "list",
75
75
  "dropdown"
76
- ], Jr = 0, _n = "furthestFromViewport", ns = 2, Gn = !1, Qn = "infiniteCache", Wn = {
76
+ ], Jr = 0, Gn = "furthestFromViewport", ns = 2, Qn = !1, Wn = "infiniteCache", Vn = {
77
77
  maxPersistedBlocks: 5,
78
78
  persistBlockData: !0,
79
79
  compressionEnabled: !1
@@ -914,7 +914,7 @@ const ni = (e, t, n = 150) => {
914
914
  s.push(g);
915
915
  });
916
916
  }
917
- const l = Pn.utils.aoa_to_sheet(s);
917
+ const l = On.utils.aoa_to_sheet(s);
918
918
  if (l["!merges"] || (l["!merges"] = []), i) {
919
919
  const f = Fa(r).headerRows;
920
920
  let g = 0;
@@ -932,11 +932,11 @@ const ni = (e, t, n = 150) => {
932
932
  }
933
933
  const d = {};
934
934
  o.forEach((u, f) => {
935
- const g = u._pixelWidth || 100, b = Math.min(Math.max(g / 7, 8), 50), A = Pn.utils.encode_col(f);
935
+ const g = u._pixelWidth || 100, b = Math.min(Math.max(g / 7, 8), 50), A = On.utils.encode_col(f);
936
936
  d[A] = { width: b };
937
937
  }), l["!cols"] = Object.values(d);
938
- const c = Pn.utils.book_new();
939
- return Pn.utils.book_append_sheet(c, l, "Sheet1"), c;
938
+ const c = On.utils.book_new();
939
+ return On.utils.book_append_sheet(c, l, "Sheet1"), c;
940
940
  }, oi = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Z.createElement("path", { d: "M8 11L4.25 7.25L5.3 6.1625L7.25 8.1125V2H8.75V8.1125L10.7 6.1625L11.75 7.25L8 11ZM3.5 14C3.0875 14 2.73438 13.8531 2.44063 13.5594C2.14687 13.2656 2 12.9125 2 12.5V10.25H3.5V12.5H12.5V10.25H14V12.5C14 12.9125 13.8531 13.2656 13.5594 13.5594C13.2656 13.8531 12.9125 14 12.5 14H3.5Z", fill: "#60697D" })), Ye = ({
941
941
  onClick: e,
942
942
  children: t,
@@ -1249,7 +1249,7 @@ const ni = (e, t, n = 150) => {
1249
1249
  });
1250
1250
  }
1251
1251
  return a;
1252
- }, On = (e, t) => {
1252
+ }, xn = (e, t) => {
1253
1253
  var a, r, i;
1254
1254
  const n = (r = (a = e.api) == null ? void 0 : a.getInfiniteCacheInstance) == null ? void 0 : r.call(a);
1255
1255
  (i = n == null ? void 0 : n.updatePageData) == null || i.call(n, e.pagination.page, t, !0, {
@@ -1259,7 +1259,7 @@ const ni = (e, t, n = 150) => {
1259
1259
  var n, a;
1260
1260
  const t = (a = (n = e.api) == null ? void 0 : n.getInfiniteRowModel) == null ? void 0 : a.call(n);
1261
1261
  t && t.infiniteCache && t.infiniteCache.purgeCache && t.infiniteCache.purgeCache({ isRefreshData: !1 });
1262
- }, xn = (e) => Object.keys(e.expandedChildRows).length === 0, ur = (e, t) => {
1262
+ }, Mn = (e) => Object.keys(e.expandedChildRows).length === 0, ur = (e, t) => {
1263
1263
  var a, r;
1264
1264
  const n = (r = (a = e.current) == null ? void 0 : a.querySelectorAll) == null ? void 0 : r.call(
1265
1265
  a,
@@ -1272,7 +1272,7 @@ const ni = (e, t, n = 150) => {
1272
1272
  i.classList.remove("ia-table-recently-updated");
1273
1273
  });
1274
1274
  }, 500));
1275
- }, Mn = ({ state: e, action: t }) => {
1275
+ }, Hn = ({ state: e, action: t }) => {
1276
1276
  var a, r;
1277
1277
  const n = {
1278
1278
  api: {
@@ -1921,7 +1921,7 @@ const ni = (e, t, n = 150) => {
1921
1921
  e.rowSpanColumn,
1922
1922
  e.api
1923
1923
  );
1924
- return On(e, p), e.serverSide || (o = (s = (i = (r = (a = (n = e.api) == null ? void 0 : n.getInfiniteCache) == null ? void 0 : a.call(n)) == null ? void 0 : r.params) == null ? void 0 : i.datasource) == null ? void 0 : s.updateData) == null || o.call(
1924
+ return xn(e, p), e.serverSide || (o = (s = (i = (r = (a = (n = e.api) == null ? void 0 : n.getInfiniteCache) == null ? void 0 : a.call(n)) == null ? void 0 : r.params) == null ? void 0 : i.datasource) == null ? void 0 : s.updateData) == null || o.call(
1925
1925
  s,
1926
1926
  e.pagination,
1927
1927
  p.filter(
@@ -2045,8 +2045,8 @@ const ni = (e, t, n = 150) => {
2045
2045
  draggedRow: t.payload
2046
2046
  };
2047
2047
  case U.SET_SORT: {
2048
- const C = xn(e);
2049
- (e.isSelectAllRecords || ((d = e.selectedRows) == null ? void 0 : d.length) > 0) && Mn({ state: e, action: { payload: null } });
2048
+ const C = Mn(e);
2049
+ (e.isSelectAllRecords || ((d = e.selectedRows) == null ? void 0 : d.length) > 0) && Hn({ state: e, action: { payload: null } });
2050
2050
  const y = {
2051
2051
  ...e,
2052
2052
  ...C ? {} : { expandedChildRows: {} },
@@ -2076,8 +2076,8 @@ const ni = (e, t, n = 150) => {
2076
2076
  };
2077
2077
  case U.SET_PAGE: {
2078
2078
  const C = za(e);
2079
- On(e, C);
2080
- const y = xn(e);
2079
+ xn(e, C);
2080
+ const y = Mn(e);
2081
2081
  return {
2082
2082
  ...e,
2083
2083
  ...y ? {} : { expandedChildRows: {} },
@@ -2089,7 +2089,7 @@ const ni = (e, t, n = 150) => {
2089
2089
  };
2090
2090
  }
2091
2091
  case U.SET_PAGE_SIZE: {
2092
- const C = xn(e), { totalItems: y } = e.pagination;
2092
+ const C = Mn(e), { totalItems: y } = e.pagination;
2093
2093
  return {
2094
2094
  ...e,
2095
2095
  ...C ? {} : { expandedChildRows: {} },
@@ -2134,7 +2134,7 @@ const ni = (e, t, n = 150) => {
2134
2134
  S = P, E = N, T = R;
2135
2135
  } else
2136
2136
  S = t.payload, T = t.payload.reduce((P, N) => (P[N] = !0, P), {});
2137
- return Mn({
2137
+ return Hn({
2138
2138
  state: e,
2139
2139
  action: { payload: S }
2140
2140
  }), {
@@ -2249,7 +2249,7 @@ const ni = (e, t, n = 150) => {
2249
2249
  rowIndex: y,
2250
2250
  api: e.api,
2251
2251
  isExpanded: T
2252
- }), On(e, S), {
2252
+ }), xn(e, S), {
2253
2253
  ...e,
2254
2254
  expandedChildRows: p,
2255
2255
  filteredData: S,
@@ -2522,9 +2522,9 @@ const ni = (e, t, n = 150) => {
2522
2522
  if (!P && H.length && M.length) {
2523
2523
  const V = H.join("/");
2524
2524
  P = M.reduce(
2525
- (J, le) => {
2525
+ (J, ce) => {
2526
2526
  var oe;
2527
- return J + ((oe = e.columnMap[`${V}/${le}`.toLowerCase()]) == null ? void 0 : oe.width) || 0;
2527
+ return J + ((oe = e.columnMap[`${V}/${ce}`.toLowerCase()]) == null ? void 0 : oe.width) || 0;
2528
2528
  },
2529
2529
  0
2530
2530
  );
@@ -2640,7 +2640,7 @@ const ni = (e, t, n = 150) => {
2640
2640
  case U.SET_IS_SELECT_ALL_RECORDS: {
2641
2641
  let C = [];
2642
2642
  const y = e.api.getInfiniteCache();
2643
- if (e.serverSide ? C = y.getAllCachedData() || e.data : C = y.params.datasource.getWholeData() || e.data, Mn({ state: e, action: t }), t.payload === e.isSelectAllRecords)
2643
+ if (e.serverSide ? C = y.getAllCachedData() || e.data : C = y.params.datasource.getWholeData() || e.data, Hn({ state: e, action: t }), t.payload === e.isSelectAllRecords)
2644
2644
  return t.payload ? e : {
2645
2645
  ...e,
2646
2646
  selectedRows: [],
@@ -3200,7 +3200,7 @@ const ni = (e, t, n = 150) => {
3200
3200
  !i
3201
3201
  // Include hidden columns unless visibleOnly is true
3202
3202
  );
3203
- Pn.writeFile(c, s), n && n.showNotification && n.showNotification({
3203
+ On.writeFile(c, s), n && n.showNotification && n.showNotification({
3204
3204
  type: "success",
3205
3205
  message: `Successfully exported ${d.length} rows to Excel`,
3206
3206
  timeout: 3e3
@@ -3488,7 +3488,7 @@ const ni = (e, t, n = 150) => {
3488
3488
  f !== document.body && f instanceof Element && (Q = f.getBoundingClientRect(), H = !0);
3489
3489
  const M = window.innerWidth, W = window.innerHeight, Y = o || Math.max(D.width, 150), te = e.length * 40;
3490
3490
  let j = s;
3491
- const X = D.top > te, V = W - D.bottom > te, J = D.left > Y, le = M - D.right > Y;
3491
+ const X = D.top > te, V = W - D.bottom > te, J = D.left > Y, ce = M - D.right > Y;
3492
3492
  if (b)
3493
3493
  j = s;
3494
3494
  else
@@ -3500,10 +3500,10 @@ const ni = (e, t, n = 150) => {
3500
3500
  !V && X && (j = rt.TOP);
3501
3501
  break;
3502
3502
  case rt.LEFT:
3503
- !J && le && (j = rt.RIGHT);
3503
+ !J && ce && (j = rt.RIGHT);
3504
3504
  break;
3505
3505
  case rt.RIGHT:
3506
- !le && J && (j = rt.LEFT);
3506
+ !ce && J && (j = rt.LEFT);
3507
3507
  break;
3508
3508
  }
3509
3509
  const oe = d && (c != null && c.current) ? c.current.getBoundingClientRect() : D, q = Gs(
@@ -3514,12 +3514,12 @@ const ni = (e, t, n = 150) => {
3514
3514
  D
3515
3515
  );
3516
3516
  if (j === rt.BOTTOM || j === rt.TOP) {
3517
- let ce = l;
3517
+ let le = l;
3518
3518
  if (l === dn.AUTO) {
3519
3519
  const ge = D.right + Y <= M, ye = D.left - Y >= 0;
3520
- ge ? ce = dn.START : ye ? ce = dn.END : ce = dn.START;
3520
+ ge ? le = dn.START : ye ? le = dn.END : le = dn.START;
3521
3521
  }
3522
- if (ce === dn.START ? H ? q.left = D.left - Q.left : q.left = D.left + window.scrollX : ce === dn.END && (H ? q.left = D.right - Y - Q.left : q.left = D.right - Y + window.scrollX), H) {
3522
+ if (le === dn.START ? H ? q.left = D.left - Q.left : q.left = D.left + window.scrollX : le === dn.END && (H ? q.left = D.right - Y - Q.left : q.left = D.right - Y + window.scrollX), H) {
3523
3523
  const ge = Q.width;
3524
3524
  q.left + Y > ge && (q.left = Math.max(0, ge - Y));
3525
3525
  } else
@@ -3528,11 +3528,11 @@ const ni = (e, t, n = 150) => {
3528
3528
  } else (j === rt.LEFT || j === rt.RIGHT) && (H || q.top + te > W && (q.top = Math.max(0, W - te)));
3529
3529
  let de = "center";
3530
3530
  if (j === rt.BOTTOM || j === rt.TOP) {
3531
- const ce = D.left + D.width / 2, ge = M / 2;
3532
- ce < ge && le ? de = "left" : ce >= ge && J && (de = "right");
3531
+ const le = D.left + D.width / 2, ge = M / 2;
3532
+ le < ge && ce ? de = "left" : le >= ge && J && (de = "right");
3533
3533
  } else if (j === rt.LEFT || j === rt.RIGHT) {
3534
- const ce = D.top + D.height / 2, ge = W / 2;
3535
- ce < ge && V ? de = "top" : ce >= ge && X && (de = "bottom");
3534
+ const le = D.top + D.height / 2, ge = W / 2;
3535
+ le < ge && V ? de = "top" : le >= ge && X && (de = "bottom");
3536
3536
  }
3537
3537
  _(j), z(de), I({
3538
3538
  ...q,
@@ -4013,42 +4013,42 @@ const ea = (e, t = {}) => {
4013
4013
  disableSelectAllRecords: E
4014
4014
  }, T) => {
4015
4015
  const P = re(null), N = re({}), D = Os().getState().dispatch, Q = he((X) => {
4016
- var J, le, oe, q;
4016
+ var J, ce, oe, q;
4017
4017
  D(X);
4018
4018
  const V = N.current.state || {};
4019
4019
  if (V != null && V.api && ((J = V.api) != null && J.dispatchEvent)) {
4020
4020
  const de = ys[X.type];
4021
4021
  if (de) {
4022
- let ce = { api: V.api };
4022
+ let le = { api: V.api };
4023
4023
  switch (X.type) {
4024
4024
  case U.SET_COLUMN_WIDTH:
4025
4025
  case U.SET_COLUMNS_WIDTH:
4026
- ce = {
4027
- ...ce,
4026
+ le = {
4027
+ ...le,
4028
4028
  column: X.payload.column || X.payload.columns
4029
4029
  };
4030
4030
  break;
4031
4031
  case U.REORDER_COLUMNS:
4032
- ce = { ...ce, columns: X.payload };
4032
+ le = { ...le, columns: X.payload };
4033
4033
  break;
4034
4034
  case U.TOGGLE_COLUMN_VISIBILITY:
4035
- ce = {
4036
- ...ce,
4035
+ le = {
4036
+ ...le,
4037
4037
  column: X.payload.column,
4038
4038
  visible: X.payload.visible
4039
4039
  };
4040
4040
  break;
4041
4041
  case U.SET_SORT:
4042
- ce = { ...ce, sortState: X.payload };
4042
+ le = { ...le, sortState: X.payload };
4043
4043
  break;
4044
4044
  case U.SET_COLUMN_FILTER:
4045
4045
  case U.REMOVE_COLUMN_FILTER:
4046
4046
  case U.APPLY_FILTERS:
4047
- dr(V), ce = { ...ce, filterState: V.columnFilters };
4047
+ dr(V), le = { ...le, filterState: V.columnFilters };
4048
4048
  break;
4049
4049
  case U.SET_PAGE:
4050
- ce = {
4051
- ...ce,
4050
+ le = {
4051
+ ...le,
4052
4052
  paginationState: {
4053
4053
  ...V.pagination,
4054
4054
  page: X.payload
@@ -4056,8 +4056,8 @@ const ea = (e, t = {}) => {
4056
4056
  };
4057
4057
  break;
4058
4058
  case U.SET_PAGE_SIZE:
4059
- dr(V), ce = {
4060
- ...ce,
4059
+ dr(V), le = {
4060
+ ...le,
4061
4061
  paginationState: {
4062
4062
  ...V.pagination,
4063
4063
  pageSize: X.payload
@@ -4065,8 +4065,8 @@ const ea = (e, t = {}) => {
4065
4065
  };
4066
4066
  break;
4067
4067
  case U.UPDATE_ROW_DATA:
4068
- ce = {
4069
- ...ce,
4068
+ le = {
4069
+ ...le,
4070
4070
  data: X.payload.rowId ? V.data.find(
4071
4071
  (ge) => ge[V.uniqueIdField] === X.payload.rowId
4072
4072
  ) : null,
@@ -4076,26 +4076,26 @@ const ea = (e, t = {}) => {
4076
4076
  };
4077
4077
  break;
4078
4078
  case U.UPDATE_ROW_DATA_OBJECT:
4079
- ce = {
4080
- ...ce,
4079
+ le = {
4080
+ ...le,
4081
4081
  data: X.payload.rowData,
4082
4082
  changes: X.payload.changes
4083
4083
  };
4084
4084
  break;
4085
4085
  case U.SET_SELECTED_ROWS:
4086
- ce = { ...ce, selectedRows: X.payload };
4086
+ le = { ...le, selectedRows: X.payload };
4087
4087
  break;
4088
4088
  case U.TOGGLE_ROW_GROUP:
4089
- ce = {
4090
- ...ce,
4089
+ le = {
4090
+ ...le,
4091
4091
  groupId: X.payload.groupId,
4092
4092
  rowIndex: X.payload.rowIndex,
4093
4093
  isExpanded: X.payload.isExpanded
4094
4094
  };
4095
4095
  break;
4096
4096
  case U.SET_ROW_GROUP_DATA:
4097
- ce = {
4098
- ...ce,
4097
+ le = {
4098
+ ...le,
4099
4099
  groupId: X.payload.groupId,
4100
4100
  data: X.payload.data,
4101
4101
  append: X.payload.append || !1,
@@ -4103,17 +4103,17 @@ const ea = (e, t = {}) => {
4103
4103
  };
4104
4104
  break;
4105
4105
  case U.TOGGLE_GROUP_EXPANSION:
4106
- ce = {
4107
- ...ce,
4106
+ le = {
4107
+ ...le,
4108
4108
  rowId: X.payload.rowId,
4109
4109
  rowIndex: X.payload.rowIndex
4110
4110
  };
4111
4111
  break;
4112
4112
  }
4113
- V.api.dispatchEvent(de, ce);
4113
+ V.api.dispatchEvent(de, le);
4114
4114
  }
4115
4115
  }
4116
- !V.tableId || !((le = P.current.alignedGrids) != null && le.length) || (oe = X.meta) != null && oe.fromAlignedGrid || !Ss.includes(X.type) || (q = P.current) != null && q.propagateChange && P.current.propagateChange(
4116
+ !V.tableId || !((ce = P.current.alignedGrids) != null && ce.length) || (oe = X.meta) != null && oe.fromAlignedGrid || !Ss.includes(X.type) || (q = P.current) != null && q.propagateChange && P.current.propagateChange(
4117
4117
  X.type,
4118
4118
  X.payload,
4119
4119
  X.meta
@@ -4163,8 +4163,8 @@ const ea = (e, t = {}) => {
4163
4163
  const X = setTimeout(() => {
4164
4164
  const V = {};
4165
4165
  let J = !1;
4166
- t.forEach((le) => {
4167
- le.width || (J = !0, V[ee(le)] = !0);
4166
+ t.forEach((ce) => {
4167
+ ce.width || (J = !0, V[ee(ce)] = !0);
4168
4168
  }), J && D({
4169
4169
  type: U.AUTOSIZE_COLUMNS_REQUESTED,
4170
4170
  payload: { columnsToAutosize: V }
@@ -4232,8 +4232,8 @@ const ea = (e, t = {}) => {
4232
4232
  ), te = he(
4233
4233
  (X, V) => {
4234
4234
  const J = Vs(N.current.state, X, V) || [];
4235
- Array.isArray(J) && J.forEach((le) => {
4236
- Y(X, le);
4235
+ Array.isArray(J) && J.forEach((ce) => {
4236
+ Y(X, ce);
4237
4237
  });
4238
4238
  },
4239
4239
  [Y]
@@ -4303,7 +4303,7 @@ const ea = (e, t = {}) => {
4303
4303
  }
4304
4304
  };
4305
4305
  }, [r, t, n, a, e]), null;
4306
- }, ft = () => {
4306
+ }, gt = () => {
4307
4307
  const e = Ua(gi);
4308
4308
  if (!e)
4309
4309
  throw new Error("useTableContext must be used within a TableProvider");
@@ -4313,7 +4313,7 @@ const ea = (e, t = {}) => {
4313
4313
  shouldRenderTable: t,
4314
4314
  settingPanelRef: n
4315
4315
  }) => {
4316
- const { dispatch: a, ACTION_TYPES: r } = ft(), { rowHeight: i } = _e(
4316
+ const { dispatch: a, ACTION_TYPES: r } = gt(), { rowHeight: i } = _e(
4317
4317
  We((d) => ({
4318
4318
  rowHeight: d.rowHeight
4319
4319
  }))
@@ -4478,7 +4478,7 @@ const ea = (e, t = {}) => {
4478
4478
  let n = !0;
4479
4479
  return (e.tableHeader !== t.tableHeader || e.topRightOptions !== t.topRightOptions || e.topLeftOptions !== t.topLeftOptions || e.downloadAsExcel !== t.downloadAsExcel || e.downloadAsCSV !== t.downloadAsCSV || e.copyToClipboard !== t.copyToClipboard || e.additionalButtons !== t.additionalButtons || e.shouldRenderTable !== t.shouldRenderTable || e.enableNestedTableCloseButton !== t.enableNestedTableCloseButton || e.onCloseNestedTable !== t.onCloseNestedTable || e.settingPanelRef !== t.settingPanelRef || e.showSaveTableConfig !== t.showSaveTableConfig) && (n = !1), n;
4480
4480
  }), ro = () => {
4481
- const { dispatch: e, ACTION_TYPES: t } = ft(), { columns: n, columnFilters: a, callBackRef: r, api: i } = _e(
4481
+ const { dispatch: e, ACTION_TYPES: t } = gt(), { columns: n, columnFilters: a, callBackRef: r, api: i } = _e(
4482
4482
  We((u) => ({
4483
4483
  columns: u.columns,
4484
4484
  columnFilters: u.columnFilters,
@@ -4582,7 +4582,7 @@ const ea = (e, t = {}) => {
4582
4582
  pagination: t = !1,
4583
4583
  hidePaginationPageSizeSelector: n,
4584
4584
  paginationPageSizeSelector: a
4585
- } = e, { dispatch: r, ACTION_TYPES: i } = ft(), {
4585
+ } = e, { dispatch: r, ACTION_TYPES: i } = gt(), {
4586
4586
  filteredData: s,
4587
4587
  serverSide: o,
4588
4588
  api: l,
@@ -4790,7 +4790,7 @@ const ea = (e, t = {}) => {
4790
4790
  )
4791
4791
  ] })
4792
4792
  ] }), uo = it(co), ho = () => {
4793
- const { dispatch: e, ACTION_TYPES: t } = ft(), [n, a] = $("medium"), r = _e(We((i) => i.format.numberFormat));
4793
+ const { dispatch: e, ACTION_TYPES: t } = gt(), [n, a] = $("medium"), r = _e(We((i) => i.format.numberFormat));
4794
4794
  return /* @__PURE__ */ K("div", { className: "table-setting-format-tab", children: [
4795
4795
  /* @__PURE__ */ K("div", { className: "format-section", children: [
4796
4796
  /* @__PURE__ */ h("h3", { className: "format-section-title", children: "Font size" }),
@@ -4954,7 +4954,7 @@ const ea = (e, t = {}) => {
4954
4954
  !t && !e && /* @__PURE__ */ h(Wa, { className: "ia-table-checkbox-partial-icon" })
4955
4955
  ] });
4956
4956
  }, go = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 13 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Z.createElement("path", { d: "M9.09808 7.54717H8.52308L8.31929 7.36192C9.03258 6.57976 9.46201 5.56432 9.46201 4.45969C9.46201 1.99657 7.34397 0 4.731 0C2.11803 0 0 1.99657 0 4.45969C0 6.92281 2.11803 8.91938 4.731 8.91938C5.90284 8.91938 6.98005 8.51458 7.80979 7.8422L8.00631 8.0343V8.57633L11.6455 12L12.73 10.9777L9.09808 7.54717ZM4.731 7.54717C2.91866 7.54717 1.45569 6.1681 1.45569 4.45969C1.45569 2.75129 2.91866 1.37221 4.731 1.37221C6.54334 1.37221 8.00631 2.75129 8.00631 4.45969C8.00631 6.1681 6.54334 7.54717 4.731 7.54717Z", fill: "#60697D" })), na = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 10 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Z.createElement("path", { d: "M9 6L5 2L1 6", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" })), En = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 8 11", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Z.createElement("path", { d: "M1.99902 8.66675C2.45611 8.66675 2.83283 9.04271 2.83301 9.49976C2.83301 9.95695 2.45621 10.3337 1.99902 10.3337C1.54198 10.3336 1.16602 9.95684 1.16602 9.49976C1.16619 9.04282 1.54209 8.66693 1.99902 8.66675ZM5.99902 8.66675C6.45611 8.66675 6.83283 9.04271 6.83301 9.49976C6.83301 9.95695 6.45621 10.3337 5.99902 10.3337C5.54198 10.3336 5.16602 9.95684 5.16602 9.49976C5.16619 9.04282 5.54209 8.66693 5.99902 8.66675ZM1.99902 4.66675C2.45611 4.66675 2.83283 5.04271 2.83301 5.49976C2.83301 5.95695 2.45621 6.33374 1.99902 6.33374C1.54198 6.33356 1.16602 5.95684 1.16602 5.49976C1.16619 5.04282 1.54209 4.66693 1.99902 4.66675ZM5.99902 4.66675C6.45611 4.66675 6.83283 5.04271 6.83301 5.49976C6.83301 5.95695 6.45621 6.33374 5.99902 6.33374C5.54198 6.33356 5.16602 5.95684 5.16602 5.49976C5.16619 5.04282 5.54209 4.66693 5.99902 4.66675ZM1.99902 0.666748C2.45611 0.666748 2.83283 1.04271 2.83301 1.49976C2.83301 1.95695 2.45621 2.33374 1.99902 2.33374C1.54198 2.33356 1.16602 1.95684 1.16602 1.49976C1.16619 1.04282 1.54209 0.666926 1.99902 0.666748ZM5.99902 0.666748C6.45611 0.666748 6.83283 1.04271 6.83301 1.49976C6.83301 1.95695 6.45621 2.33374 5.99902 2.33374C5.54198 2.33356 5.16602 1.95684 5.16602 1.49976C5.16619 1.04282 5.54209 0.666926 5.99902 0.666748Z", fill: "currentColor", stroke: "currentColor" })), po = () => {
4957
- const { dispatch: e, ACTION_TYPES: t } = ft(), { columns: n, expandedColumnGroups: a, filteredData: r } = _e(
4957
+ const { dispatch: e, ACTION_TYPES: t } = gt(), { columns: n, expandedColumnGroups: a, filteredData: r } = _e(
4958
4958
  We((E) => ({
4959
4959
  columns: E.columns,
4960
4960
  expandedColumnGroups: E.expandedColumnGroups,
@@ -5993,7 +5993,7 @@ vi.propTypes = {
5993
5993
  className: ue.string,
5994
5994
  isMulti: ue.bool
5995
5995
  };
5996
- const Hn = it(vi), tr = ({
5996
+ const Fn = it(vi), tr = ({
5997
5997
  checked: e = !1,
5998
5998
  onChange: t,
5999
5999
  label: n,
@@ -6158,7 +6158,7 @@ const Io = ({
6158
6158
  ) }),
6159
6159
  /* @__PURE__ */ h("div", { className: "save-view-modal-children-body-replace-view d-flex align-items-center justify-content-center", children: /* @__PURE__ */ h("span", { className: "position-relative", children: "Or replace with saved view" }) }),
6160
6160
  /* @__PURE__ */ h("div", { className: "save-view-modal-children-body-replace-view-select", children: /* @__PURE__ */ h(
6161
- Hn,
6161
+ Fn,
6162
6162
  {
6163
6163
  label: "Replace with",
6164
6164
  minWidth: "100%",
@@ -6590,7 +6590,7 @@ class Oo {
6590
6590
  this.tooltipElement && this.tooltipElement.parentNode && (this.tooltipElement.parentNode.removeChild(this.tooltipElement), this.tooltipElement = null);
6591
6591
  }
6592
6592
  }
6593
- const Na = new Oo(), Fn = ({
6593
+ const Na = new Oo(), zn = ({
6594
6594
  title: e,
6595
6595
  varient: t,
6596
6596
  orientation: n,
@@ -6702,7 +6702,7 @@ const Na = new Oo(), Fn = ({
6702
6702
  a && /* @__PURE__ */ h(Po, {}),
6703
6703
  /* @__PURE__ */ K("div", { className: "ia-table-settings-panel-tabs d-flex align-items-center position-relative", children: [
6704
6704
  /* @__PURE__ */ h(
6705
- Fn,
6705
+ zn,
6706
6706
  {
6707
6707
  title: "Columns",
6708
6708
  varient: "tertiary",
@@ -6725,7 +6725,7 @@ const Na = new Oo(), Fn = ({
6725
6725
  }
6726
6726
  ),
6727
6727
  t && /* @__PURE__ */ h(
6728
- Fn,
6728
+ zn,
6729
6729
  {
6730
6730
  title: "Format",
6731
6731
  varient: "tertiary",
@@ -6748,7 +6748,7 @@ const Na = new Oo(), Fn = ({
6748
6748
  }
6749
6749
  ),
6750
6750
  e && /* @__PURE__ */ h(
6751
- Fn,
6751
+ zn,
6752
6752
  {
6753
6753
  title: "Actions",
6754
6754
  varient: "tertiary",
@@ -6780,7 +6780,7 @@ const Na = new Oo(), Fn = ({
6780
6780
  }
6781
6781
  ) : null;
6782
6782
  }, Mo = () => {
6783
- const { dispatch: e, ACTION_TYPES: t } = ft(), n = _e(We((r) => r.notification)), a = he(() => {
6783
+ const { dispatch: e, ACTION_TYPES: t } = gt(), n = _e(We((r) => r.notification)), a = he(() => {
6784
6784
  e({
6785
6785
  type: t.HIDE_NOTIFICATION
6786
6786
  });
@@ -7057,7 +7057,7 @@ const zo = (e, t) => {
7057
7057
  width: n
7058
7058
  }), a;
7059
7059
  }, Qo = ({ column: e }) => {
7060
- const { dispatch: t, ACTION_TYPES: n } = ft(), {
7060
+ const { dispatch: t, ACTION_TYPES: n } = gt(), {
7061
7061
  columns: a,
7062
7062
  frozenColumns: r,
7063
7063
  defaultMinWidth: i,
@@ -7642,11 +7642,11 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
7642
7642
  b,
7643
7643
  J
7644
7644
  ]);
7645
- const [le, oe] = $({ top: 0, left: 0 }), q = he(() => {
7646
- var et;
7645
+ const [ce, oe] = $({ top: 0, left: 0 }), q = he(() => {
7646
+ var tt;
7647
7647
  if (!W.current)
7648
7648
  return;
7649
- const ie = W.current.getBoundingClientRect(), Ee = ((et = M.current) == null ? void 0 : et.offsetHeight) || 400, be = window.innerHeight - ie.bottom, Ge = ie.top, Me = 8;
7649
+ const ie = W.current.getBoundingClientRect(), Ee = ((tt = M.current) == null ? void 0 : tt.offsetHeight) || 400, be = window.innerHeight - ie.bottom, Ge = ie.top, Me = 8;
7650
7650
  let ze;
7651
7651
  be >= Ee + Me ? ze = ie.bottom + Me : Ge >= Ee + Me ? ze = ie.top - Ee - Me : Ge > be ? ze = Me : ze = ie.bottom + Me, oe({
7652
7652
  top: ze,
@@ -7671,7 +7671,7 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
7671
7671
  document.removeEventListener("mousedown", ie);
7672
7672
  };
7673
7673
  }, [A]);
7674
- const de = De(() => ve.generateCalendarDays(y), [y]), ce = he(
7674
+ const de = De(() => ve.generateCalendarDays(y), [y]), le = he(
7675
7675
  (ie) => {
7676
7676
  if (!ie) return;
7677
7677
  const Ee = se(y).date(ie), be = Nr(Ee.toDate());
@@ -7716,8 +7716,8 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
7716
7716
  return;
7717
7717
  }
7718
7718
  if (ze && (Ee.preventDefault(), Ee.stopPropagation()), (Me.month() !== y.month() || Me.year() !== y.year()) && m(Me.clone().startOf("month")), H(Me.date()), ze) {
7719
- const et = Nr(Me.toDate());
7720
- S(et), G(et);
7719
+ const tt = Nr(Me.toDate());
7720
+ S(tt), G(tt);
7721
7721
  }
7722
7722
  };
7723
7723
  return document.addEventListener("keydown", ie), () => {
@@ -7757,19 +7757,19 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
7757
7757
  ie.stopPropagation(), m(se(y).add(1, "year").startOf("month"));
7758
7758
  },
7759
7759
  [y]
7760
- ), Be = () => ve.getDayNames(), Ce = () => ve.getMonthNames(), Ke = () => ve.getYearsRange(g, b), xe = (ie) => {
7760
+ ), Be = () => ve.getDayNames(), Ce = () => ve.getMonthNames(), Ze = () => ve.getYearsRange(g, b), xe = (ie) => {
7761
7761
  const Ee = Ce().indexOf(ie);
7762
7762
  m(se(y).month(Ee)), T(!1);
7763
7763
  }, Ne = (ie) => {
7764
7764
  m(se(y).year(ie)), N(!1);
7765
- }, Ze = he(
7765
+ }, Xe = he(
7766
7766
  (ie) => {
7767
7767
  if (!ie) return !1;
7768
7768
  const Ee = se(y).date(ie);
7769
7769
  return ve.isToday(Ee);
7770
7770
  },
7771
7771
  [y]
7772
- ), $e = he(
7772
+ ), et = he(
7773
7773
  (ie) => {
7774
7774
  const Ee = p || O;
7775
7775
  return ve.isSelected(ie, y, Ee);
@@ -7867,7 +7867,7 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
7867
7867
  {
7868
7868
  className: "ia-table-datepicker-year-dropdown",
7869
7869
  ref: te,
7870
- children: Ke().map((ie, Ee) => /* @__PURE__ */ h(
7870
+ children: Ze().map((ie, Ee) => /* @__PURE__ */ h(
7871
7871
  "div",
7872
7872
  {
7873
7873
  className: `ia-table-datepicker-dropdown-option ${se(y).year() === ie ? "ia-table-datepicker-dropdown-option-selected" : ""}`,
@@ -7892,13 +7892,13 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
7892
7892
  {
7893
7893
  className: `ia-table-datepicker-day d-flex align-items-center justify-content-center cursor-pointer
7894
7894
  ${ie.isCurrentMonth ? "" : "ia-table-datepicker-day-outside"}
7895
- ${Ze(ie.day) ? "ia-table-datepicker-day-today" : ""}
7896
- ${$e(ie.day) ? "ia-table-datepicker-day-selected" : ""}
7895
+ ${Xe(ie.day) ? "ia-table-datepicker-day-today" : ""}
7896
+ ${et(ie.day) ? "ia-table-datepicker-day-selected" : ""}
7897
7897
  ${st(ie.day) ? "ia-table-datepicker-day-disabled" : ""}
7898
7898
  ${Q === ie.day && ie.isCurrentMonth ? "ia-table-datepicker-day-focused" : ""}
7899
7899
  `,
7900
7900
  onClick: (be) => {
7901
- be.stopPropagation(), ie.isCurrentMonth && !st(ie.day) && ce(ie.day);
7901
+ be.stopPropagation(), ie.isCurrentMonth && !st(ie.day) && le(ie.day);
7902
7902
  },
7903
7903
  onMouseEnter: () => {
7904
7904
  ie.isCurrentMonth && !st(ie.day) && H(ie.day);
@@ -7934,10 +7934,10 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
7934
7934
  fe,
7935
7935
  xe,
7936
7936
  Ne,
7937
- Ze,
7938
- $e,
7937
+ Xe,
7938
+ et,
7939
7939
  st,
7940
- ce,
7940
+ le,
7941
7941
  ge,
7942
7942
  ye
7943
7943
  ]), Lt = () => !w || a ? null : s && j ? Yt(
@@ -7948,8 +7948,8 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
7948
7948
  ref: M,
7949
7949
  style: {
7950
7950
  position: "fixed",
7951
- top: le.top,
7952
- left: le.left,
7951
+ top: ce.top,
7952
+ left: ce.left,
7953
7953
  zIndex: 10001
7954
7954
  },
7955
7955
  onWheel: (ie) => {
@@ -8284,13 +8284,13 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
8284
8284
  payload: n
8285
8285
  }), e.applySearch();
8286
8286
  i.current = t;
8287
- }, Bi = (e, t) => e.includes("inRange") ? t.min_val || "" : e.includes("less") ? t.max_val || "" : e.includes("greater") ? t.min_val || "" : t.min_val, rl = (e) => !e.children || e.children.length === 0, zn = (e, t, n = !1) => {
8287
+ }, Bi = (e, t) => e.includes("inRange") ? t.min_val || "" : e.includes("less") ? t.max_val || "" : e.includes("greater") ? t.min_val || "" : t.min_val, rl = (e) => !e.children || e.children.length === 0, _n = (e, t, n = !1) => {
8288
8288
  if (!e || !Array.isArray(e)) return [];
8289
8289
  let a = [];
8290
8290
  for (const r of e)
8291
8291
  rl(r) ? (!vt(r) || n) && a.push({ ...r, api: t }) : r.children && r.children.length > 0 && (a = [
8292
8292
  ...a,
8293
- ...zn(r.children, t, n)
8293
+ ..._n(r.children, t, n)
8294
8294
  ]);
8295
8295
  return a;
8296
8296
  }, Or = {
@@ -8306,7 +8306,7 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
8306
8306
  greaterThanOrEqual: "Greater Than Or Equal",
8307
8307
  inRange: "Range"
8308
8308
  }, Pi = ({ column: e, onClose: t, advancedSearchApplyRef: n }) => {
8309
- const { dispatch: a, ACTION_TYPES: r } = ft(), { columns: i, columnFilters: s, api: o } = _e(
8309
+ const { dispatch: a, ACTION_TYPES: r } = gt(), { columns: i, columnFilters: s, api: o } = _e(
8310
8310
  We((p) => ({
8311
8311
  columns: p.columns,
8312
8312
  columnFilters: p.columnFilters,
@@ -8318,7 +8318,7 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
8318
8318
  { column: "", search_type: "", pattern: "", type: "", operators: [] }
8319
8319
  ]), { columnsOptions: I, advancedSearchOptions: k } = De(() => {
8320
8320
  const p = [], S = [];
8321
- return zn(i).forEach((T) => {
8321
+ return _n(i).forEach((T) => {
8322
8322
  var P, N;
8323
8323
  (T.isSearchable || T.is_searchable) && T.headerName && p.push({
8324
8324
  value: ee(T),
@@ -8525,7 +8525,7 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
8525
8525
  className: "ia-table-search-field-row d-flex align-items-center gap-12",
8526
8526
  children: [
8527
8527
  /* @__PURE__ */ h(
8528
- Hn,
8528
+ Fn,
8529
8529
  {
8530
8530
  width: "354px",
8531
8531
  initialOptions: T,
@@ -8616,7 +8616,7 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
8616
8616
  className: "ia-table-search-rule d-flex align-items-center gap-12",
8617
8617
  children: [
8618
8618
  /* @__PURE__ */ h("div", { className: "ia-table-field-select", children: /* @__PURE__ */ h(
8619
- Hn,
8619
+ Fn,
8620
8620
  {
8621
8621
  width: R ? "354px" : "232px",
8622
8622
  initialOptions: T,
@@ -8632,7 +8632,7 @@ const Di = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height:
8632
8632
  }
8633
8633
  ) }),
8634
8634
  R ? "" : /* @__PURE__ */ h("div", { className: "ia-table-operator-select", children: /* @__PURE__ */ h(
8635
- Hn,
8635
+ Fn,
8636
8636
  {
8637
8637
  width: "232px",
8638
8638
  initialOptions: p.operators,
@@ -8917,7 +8917,7 @@ const il = (e, t, n = {}) => {
8917
8917
  }
8918
8918
  return a;
8919
8919
  }, Mi = () => {
8920
- const { dispatch: e, ACTION_TYPES: t } = ft(), { filteredData: n, defaultColDef: a, tableRef: r, tableId: i, columns: s } = _e(
8920
+ const { dispatch: e, ACTION_TYPES: t } = gt(), { filteredData: n, defaultColDef: a, tableRef: r, tableId: i, columns: s } = _e(
8921
8921
  We((c) => ({
8922
8922
  filteredData: c.filteredData,
8923
8923
  defaultColDef: c.defaultColDef,
@@ -9094,7 +9094,7 @@ const il = (e, t, n = {}) => {
9094
9094
  }
9095
9095
  };
9096
9096
  }, cl = () => {
9097
- const { dispatch: e, ACTION_TYPES: t } = ft(), { autoSizeColumn: n, customSizeColumn: a } = Mi();
9097
+ const { dispatch: e, ACTION_TYPES: t } = gt(), { autoSizeColumn: n, customSizeColumn: a } = Mi();
9098
9098
  return {
9099
9099
  unfreezeColumn: (l) => {
9100
9100
  e && e({
@@ -9170,8 +9170,8 @@ const il = (e, t, n = {}) => {
9170
9170
  I(!1), _(!1), B(null);
9171
9171
  return;
9172
9172
  }
9173
- const le = J.currentTarget.getBoundingClientRect();
9174
- b(R(le)), B(J.currentTarget), V === "sort" && (I(!0), _(!1)), V === "width" && (_(!0), I(!1));
9173
+ const ce = J.currentTarget.getBoundingClientRect();
9174
+ b(R(ce)), B(J.currentTarget), V === "sort" && (I(!0), _(!1)), V === "width" && (_(!0), I(!1));
9175
9175
  }, N = () => {
9176
9176
  if (t && s && s.current) {
9177
9177
  const V = s.current.getBoundingClientRect();
@@ -9186,7 +9186,7 @@ const il = (e, t, n = {}) => {
9186
9186
  N(), t || (I(!1), _(!1), B(null));
9187
9187
  }, [t, s]);
9188
9188
  const R = (V) => {
9189
- const J = window.innerWidth, le = 180, q = V.right + Ia + le > J ? V.left - le - Ia * 3 : V.right + Ia;
9189
+ const J = window.innerWidth, ce = 180, q = V.right + Ia + ce > J ? V.left - ce - Ia * 3 : V.right + Ia;
9190
9190
  return {
9191
9191
  top: V.top,
9192
9192
  left: q
@@ -9223,8 +9223,8 @@ const il = (e, t, n = {}) => {
9223
9223
  var q;
9224
9224
  if ((q = s == null ? void 0 : s.current) != null && q.contains(J.target))
9225
9225
  return;
9226
- const le = d.current && d.current.contains(J.target), oe = c.current && c.current.contains(J.target);
9227
- l.current && !l.current.contains(J.target) && !le && !oe && (n(), I(!1), _(!1), B(null));
9226
+ const ce = d.current && d.current.contains(J.target), oe = c.current && c.current.contains(J.target);
9227
+ l.current && !l.current.contains(J.target) && !ce && !oe && (n(), I(!1), _(!1), B(null));
9228
9228
  };
9229
9229
  return document.addEventListener("mousedown", V), () => {
9230
9230
  document.removeEventListener("mousedown", V);
@@ -9232,9 +9232,9 @@ const il = (e, t, n = {}) => {
9232
9232
  }, [t, n, s]);
9233
9233
  let M = null;
9234
9234
  const W = (V) => {
9235
- var le, oe;
9235
+ var ce, oe;
9236
9236
  const J = V.relatedTarget;
9237
- (le = d.current) != null && le.contains(J) || (oe = c.current) != null && oe.contains(J) || (M = setTimeout(() => {
9237
+ (ce = d.current) != null && ce.contains(J) || (oe = c.current) != null && oe.contains(J) || (M = setTimeout(() => {
9238
9238
  I(!1), _(!1), B(null);
9239
9239
  }, 100));
9240
9240
  };
@@ -9342,14 +9342,14 @@ const il = (e, t, n = {}) => {
9342
9342
  className: "menu-item autosize-option",
9343
9343
  onClick: (V) => {
9344
9344
  V.stopPropagation();
9345
- const J = V.currentTarget, le = J.innerText;
9345
+ const J = V.currentTarget, ce = J.innerText;
9346
9346
  J.innerText = "Calculating...", J.style.pointerEvents = "none", J.style.opacity = "0.7", setTimeout(() => {
9347
9347
  try {
9348
9348
  C();
9349
9349
  } catch (oe) {
9350
9350
  console.error("Error autosizing columns:", oe);
9351
9351
  } finally {
9352
- J.innerText = le, J.style.pointerEvents = "auto", J.style.opacity = "1", n();
9352
+ J.innerText = ce, J.style.pointerEvents = "auto", J.style.opacity = "1", n();
9353
9353
  }
9354
9354
  }, 10);
9355
9355
  },
@@ -9513,7 +9513,7 @@ const il = (e, t, n = {}) => {
9513
9513
  }
9514
9514
  );
9515
9515
  }, ml = ({ column: e, index: t, hasChildren: n, columnMap: a }) => {
9516
- const { dispatch: r, ACTION_TYPES: i } = ft(), [s, o] = $(!1), [l, d] = $(null);
9516
+ const { dispatch: r, ACTION_TYPES: i } = gt(), [s, o] = $(!1), [l, d] = $(null);
9517
9517
  return {
9518
9518
  isDragging: s,
9519
9519
  dragOverColumn: l,
@@ -9589,8 +9589,8 @@ const il = (e, t, n = {}) => {
9589
9589
  headerHeight: o,
9590
9590
  currentRowHeight: l
9591
9591
  }) => {
9592
- var He, Ve, ht, Nt, Ut, rn, Xe, sn, tt, kt;
9593
- const d = re(null), c = re(!1), u = re(null), f = re(null), g = re(!1), { dispatch: b, ACTION_TYPES: A } = ft(), {
9592
+ var He, Ve, ft, Nt, Ut, rn, Je, sn, nt, kt;
9593
+ const d = re(null), c = re(!1), u = re(null), f = re(null), g = re(!1), { dispatch: b, ACTION_TYPES: A } = gt(), {
9594
9594
  sortState: I,
9595
9595
  columnFilters: k,
9596
9596
  frozenColumns: B,
@@ -9650,7 +9650,7 @@ const il = (e, t, n = {}) => {
9650
9650
  autoHeight: D = !1,
9651
9651
  wrapHeaderText: Q = !1,
9652
9652
  headerComponent: H = null
9653
- } = e, M = H || O, W = re(null), [Y, te] = $(!1), [j, X] = $(!1), [V, J] = $(!1), [le, oe] = $(""), [q, de] = $(!1), ce = re(), ge = re(""), ye = k[C] && k[C].length > 0, pe = p === !0, Pe = nl(e), { isLeftPinned: Oe, isRightPinned: fe, pinnedPosition: Be, rightPinnedPosition: Ce } = De(
9653
+ } = e, M = H || O, W = re(null), [Y, te] = $(!1), [j, X] = $(!1), [V, J] = $(!1), [ce, oe] = $(""), [q, de] = $(!1), le = re(), ge = re(""), ye = k[C] && k[C].length > 0, pe = p === !0, Pe = nl(e), { isLeftPinned: Oe, isRightPinned: fe, pinnedPosition: Be, rightPinnedPosition: Ce } = De(
9654
9654
  () => tl({
9655
9655
  column: e,
9656
9656
  isFrozen: N,
@@ -9660,11 +9660,11 @@ const il = (e, t, n = {}) => {
9660
9660
  [e, N, B, C]
9661
9661
  );
9662
9662
  ae(() => {
9663
- var gt;
9663
+ var pt;
9664
9664
  if (c.current) return;
9665
9665
  const we = Ot.includes(e.type);
9666
9666
  let ke = null;
9667
- const ot = (gt = k[C]) == null ? void 0 : gt[0];
9667
+ const ot = (pt = k[C]) == null ? void 0 : pt[0];
9668
9668
  we && ot ? ke = Bi(
9669
9669
  ot.search_type,
9670
9670
  ot
@@ -9680,14 +9680,14 @@ const il = (e, t, n = {}) => {
9680
9680
  }), we(), () => ke.disconnect();
9681
9681
  }, []), ae(() => {
9682
9682
  const we = (ke) => {
9683
- const ot = ke.target.closest(".column-menu-dropdown"), gt = ke.target.closest(".column-menu-icon");
9684
- !ot && !gt && J(!1);
9683
+ const ot = ke.target.closest(".column-menu-dropdown"), pt = ke.target.closest(".column-menu-icon");
9684
+ !ot && !pt && J(!1);
9685
9685
  };
9686
9686
  return document.addEventListener("mousedown", we), () => {
9687
9687
  document.removeEventListener("mousedown", we);
9688
9688
  };
9689
9689
  }, []);
9690
- const Ke = De(() => {
9690
+ const Ze = De(() => {
9691
9691
  const we = e.width;
9692
9692
  return {
9693
9693
  width: `${we}px`,
@@ -9763,7 +9763,7 @@ const il = (e, t, n = {}) => {
9763
9763
  }
9764
9764
  }, Ne = (we) => {
9765
9765
  we.stopPropagation(), de(!q);
9766
- }, Ze = he(
9766
+ }, Xe = he(
9767
9767
  (we) => {
9768
9768
  g.current = !1, oe(we || ""), Pr(
9769
9769
  G,
@@ -9779,32 +9779,32 @@ const il = (e, t, n = {}) => {
9779
9779
  ae(() => {
9780
9780
  if (!(Pe || g.current)) {
9781
9781
  if (!q) {
9782
- ce.current && (clearTimeout(ce.current), ce.current = null);
9782
+ le.current && (clearTimeout(le.current), le.current = null);
9783
9783
  return;
9784
9784
  }
9785
- return ce.current && clearTimeout(ce.current), ce.current = setTimeout(() => {
9786
- le !== ge.current && Pr(
9785
+ return le.current && clearTimeout(le.current), le.current = setTimeout(() => {
9786
+ ce !== ge.current && Pr(
9787
9787
  G,
9788
- le,
9788
+ ce,
9789
9789
  C,
9790
9790
  e.type,
9791
9791
  b,
9792
9792
  ge
9793
9793
  );
9794
9794
  }, 300), () => {
9795
- ce.current && (clearTimeout(ce.current), ce.current = null);
9795
+ le.current && (clearTimeout(le.current), le.current = null);
9796
9796
  };
9797
9797
  }
9798
9798
  }, [
9799
9799
  G,
9800
- le,
9800
+ ce,
9801
9801
  q,
9802
9802
  C,
9803
9803
  b,
9804
9804
  A,
9805
9805
  Pe
9806
9806
  ]);
9807
- const $e = (we) => {
9807
+ const et = (we) => {
9808
9808
  we.stopPropagation(), J(!V);
9809
9809
  }, st = (we, ke) => {
9810
9810
  b && b({
@@ -9821,32 +9821,32 @@ const il = (e, t, n = {}) => {
9821
9821
  handleDragLeave: Ge,
9822
9822
  handleDrop: Me,
9823
9823
  handleDragEnd: ze
9824
- } = ml({ column: e, index: t, hasChildren: R, columnMap: F }), et = !R && !e.emptyCell, zt = Oe ? "ia-table-frozen" : fe ? "ia-table-right-pinned" : "", ne = ol(e), Ae = !R && !e.emptyCell && e.isSortable, Te = Ot.includes(e.type);
9824
+ } = ml({ column: e, index: t, hasChildren: R, columnMap: F }), tt = !R && !e.emptyCell, zt = Oe ? "ia-table-frozen" : fe ? "ia-table-right-pinned" : "", ne = ol(e), Ae = !R && !e.emptyCell && e.isSortable, Te = Ot.includes(e.type);
9825
9825
  ae(() => {
9826
9826
  if (i) {
9827
9827
  const we = u.current, ke = f.current;
9828
9828
  if (!we || !ke) return;
9829
9829
  const ot = () => {
9830
- const pt = ne + (Ae ? 20 : 0);
9830
+ const At = ne + (Ae ? 20 : 0);
9831
9831
  !R && i && (ke.style.setProperty(
9832
9832
  "--header-width-original",
9833
- `${pt}px`
9833
+ `${At}px`
9834
9834
  ), ke.style.setProperty(
9835
9835
  "--header-width-no-sort",
9836
9836
  `${ne}px`
9837
9837
  ));
9838
9838
  };
9839
- let gt = null;
9839
+ let pt = null;
9840
9840
  if (typeof ResizeObserver < "u")
9841
- gt = new ResizeObserver(() => {
9841
+ pt = new ResizeObserver(() => {
9842
9842
  ot();
9843
- }), gt.observe(we), ot();
9843
+ }), pt.observe(we), ot();
9844
9844
  else {
9845
- const pt = () => ot();
9846
- return window.addEventListener("resize", pt), ot(), () => window.removeEventListener("resize", pt);
9845
+ const At = () => ot();
9846
+ return window.addEventListener("resize", At), ot(), () => window.removeEventListener("resize", At);
9847
9847
  }
9848
9848
  return () => {
9849
- gt && gt.disconnect();
9849
+ pt && pt.disconnect();
9850
9850
  };
9851
9851
  }
9852
9852
  }, [
@@ -9879,7 +9879,7 @@ const il = (e, t, n = {}) => {
9879
9879
  availableWidth: ne,
9880
9880
  wrapHeaderText: Q,
9881
9881
  menuButtonRef: W,
9882
- menuToggle: $e,
9882
+ menuToggle: et,
9883
9883
  toggleAdvancedSeach: te
9884
9884
  }), [
9885
9885
  e,
@@ -9895,7 +9895,7 @@ const il = (e, t, n = {}) => {
9895
9895
  ne,
9896
9896
  Q,
9897
9897
  W,
9898
- $e,
9898
+ et,
9899
9899
  te
9900
9900
  ]);
9901
9901
  return P ? null : /* @__PURE__ */ K(
@@ -9905,7 +9905,7 @@ const il = (e, t, n = {}) => {
9905
9905
  className: `ia-table-header-cell ${zt} ${Lt ? "dragging" : ""} ${ie === C ? "drag-over" : ""}
9906
9906
  ${al(e, R, t)} height-inherit${pe && q ? " search-active" : ""}`,
9907
9907
  style: {
9908
- ...Ke,
9908
+ ...Ze,
9909
9909
  ...s ? {
9910
9910
  height: `${s}px`,
9911
9911
  marginTop: `${-(s - o - 19)}px`
@@ -9929,7 +9929,7 @@ const il = (e, t, n = {}) => {
9929
9929
  "div",
9930
9930
  {
9931
9931
  ref: f,
9932
- className: `ia-table-header-title-container ${R ? "parent-header" : Te ? "type-int" : ""} ${pe && q ? "search-active" : ""} ${R && !(pe && q) ? "ia-table-text-align-center" : ""} ${R ? "" : "header-title-width-responsive"} ${i && !R ? "show-full-text" : ""} ${le ? "ia-table-search-active-cell" : ""}`,
9932
+ className: `ia-table-header-title-container ${R ? "parent-header" : Te ? "type-int" : ""} ${pe && q ? "search-active" : ""} ${R && !(pe && q) ? "ia-table-text-align-center" : ""} ${R ? "" : "header-title-width-responsive"} ${i && !R ? "show-full-text" : ""} ${ce ? "ia-table-search-active-cell" : ""}`,
9933
9933
  style: {
9934
9934
  ...pe && q ? { width: "100%" } : !R && !i ? { width: `${ne + (Ae ? 20 : 0)}px` } : {}
9935
9935
  },
@@ -9938,8 +9938,8 @@ const il = (e, t, n = {}) => {
9938
9938
  pe && q ? Pe ? /* @__PURE__ */ h(
9939
9939
  pa,
9940
9940
  {
9941
- value: le || ((ht = (Ve = k[C]) == null ? void 0 : Ve[0]) == null ? void 0 : ht.pattern) || "",
9942
- onChange: Ze,
9941
+ value: ce || ((ft = (Ve = k[C]) == null ? void 0 : Ve[0]) == null ? void 0 : ft.pattern) || "",
9942
+ onChange: Xe,
9943
9943
  placeholder: "Search...",
9944
9944
  disabled: !1,
9945
9945
  withPortal: !0,
@@ -9948,7 +9948,7 @@ const il = (e, t, n = {}) => {
9948
9948
  width: "100%",
9949
9949
  startYear: ((Ut = e.cellRendererParams) == null ? void 0 : Ut.startYear) || 2e3,
9950
9950
  endYear: ((rn = e.cellRendererParams) == null ? void 0 : rn.endYear) || 2100,
9951
- minDate: ((Xe = e.cellRendererParams) == null ? void 0 : Xe.minDate) || null,
9951
+ minDate: ((Je = e.cellRendererParams) == null ? void 0 : Je.minDate) || null,
9952
9952
  maxDate: ((sn = e.cellRendererParams) == null ? void 0 : sn.maxDate) || null,
9953
9953
  isheadercell: !0,
9954
9954
  column: e,
@@ -9959,7 +9959,7 @@ const il = (e, t, n = {}) => {
9959
9959
  In,
9960
9960
  {
9961
9961
  placeholder: "Search...",
9962
- value: le || ((kt = (tt = k[C]) == null ? void 0 : tt[0]) == null ? void 0 : kt.pattern),
9962
+ value: ce || ((kt = (nt = k[C]) == null ? void 0 : nt[0]) == null ? void 0 : kt.pattern),
9963
9963
  onChange: (we) => {
9964
9964
  g.current = !1, oe(we.target.value);
9965
9965
  },
@@ -9972,8 +9972,8 @@ const il = (e, t, n = {}) => {
9972
9972
  c.current = !1;
9973
9973
  },
9974
9974
  leftIcon: /* @__PURE__ */ h(fa, { className: "ia-table-input-icon" }),
9975
- rightIcon: le || S ? /* @__PURE__ */ K("div", { className: "d-flex align-items-center justify-content-center gap-8", children: [
9976
- le && /* @__PURE__ */ h(
9975
+ rightIcon: ce || S ? /* @__PURE__ */ K("div", { className: "d-flex align-items-center justify-content-center gap-8", children: [
9976
+ ce && /* @__PURE__ */ h(
9977
9977
  "span",
9978
9978
  {
9979
9979
  className: "icon-16 cursor-pointer",
@@ -9996,7 +9996,7 @@ const il = (e, t, n = {}) => {
9996
9996
  ] }) : null
9997
9997
  }
9998
9998
  ) : /* @__PURE__ */ h(
9999
- Fn,
9999
+ zn,
10000
10000
  {
10001
10001
  targetRef: d,
10002
10002
  title: y || C,
@@ -10049,7 +10049,7 @@ const il = (e, t, n = {}) => {
10049
10049
  children: /* @__PURE__ */ h(gn, {})
10050
10050
  }
10051
10051
  ),
10052
- !M && !(pe && q) && et && /* @__PURE__ */ K(
10052
+ !M && !(pe && q) && tt && /* @__PURE__ */ K(
10053
10053
  "div",
10054
10054
  {
10055
10055
  className: `ia-table-header-icons-container d-flex align-items-center gap-12 ${Te ? "ia-table-header-icons-integer" : ""}`,
@@ -10057,12 +10057,12 @@ const il = (e, t, n = {}) => {
10057
10057
  p && /* @__PURE__ */ h(yt, { children: /* @__PURE__ */ K(
10058
10058
  "button",
10059
10059
  {
10060
- className: `ia-table-search-button position-relative ${ye || pe && q ? "ia-table-active" : ""} ${le ? "ia-table-active" : ""}`,
10060
+ className: `ia-table-search-button position-relative ${ye || pe && q ? "ia-table-active" : ""} ${ce ? "ia-table-active" : ""}`,
10061
10061
  onClick: Ne,
10062
10062
  "aria-label": `Search ${y || C}`,
10063
10063
  children: [
10064
- le ? /* @__PURE__ */ h(ul, { className: "icon-24 flex-shrink-0" }) : /* @__PURE__ */ h(fa, { className: "ia-table-header-search-icon" }),
10065
- le && /* @__PURE__ */ h("span", { className: "ia-table-header-search-badge position-absolute", children: /* @__PURE__ */ h("span", { className: "ia-table-header-search-badge-icon" }) })
10064
+ ce ? /* @__PURE__ */ h(ul, { className: "icon-24 flex-shrink-0" }) : /* @__PURE__ */ h(fa, { className: "ia-table-header-search-icon" }),
10065
+ ce && /* @__PURE__ */ h("span", { className: "ia-table-header-search-badge position-absolute", children: /* @__PURE__ */ h("span", { className: "ia-table-header-search-badge-icon" }) })
10066
10066
  ]
10067
10067
  }
10068
10068
  ) }),
@@ -10071,7 +10071,7 @@ const il = (e, t, n = {}) => {
10071
10071
  {
10072
10072
  ref: W,
10073
10073
  className: "ia-table-dropdown-toggle ia-table-column-menu-icon",
10074
- onClick: $e,
10074
+ onClick: et,
10075
10075
  children: /* @__PURE__ */ h(hl, { width: "4", height: "16" })
10076
10076
  }
10077
10077
  )
@@ -10124,7 +10124,7 @@ const il = (e, t, n = {}) => {
10124
10124
  }, zr = it(Cl, (e, t) => {
10125
10125
  let n = !0;
10126
10126
  return e.column !== t.column && (n = !1), e.onToggle !== t.onToggle && (n = !1), e.isExpandable !== t.isExpandable && (n = !1), e.selectable !== t.selectable && (n = !1), e.totalFinalHeight !== t.totalFinalHeight && (n = !1), e.headerHeight !== t.headerHeight && (n = !1), n;
10127
- }), Bn = ({
10127
+ }), Pn = ({
10128
10128
  children: e,
10129
10129
  rowHeight: t = {
10130
10130
  maxHeight: 21,
@@ -10222,7 +10222,7 @@ const il = (e, t, n = {}) => {
10222
10222
  n
10223
10223
  );
10224
10224
  }, vl = (e) => /* @__PURE__ */ Z.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 13 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ Z.createElement("path", { d: "M3.12214 4.32491C3.20269 4.24177 3.29806 4.2002 3.40826 4.2002C3.51824 4.2002 3.61351 4.24177 3.69406 4.32491L6.05424 6.76094L8.42248 4.31659C8.49767 4.239 8.59164 4.2002 8.70442 4.2002C8.81719 4.2002 8.91385 4.24177 8.99441 4.32491C9.07496 4.40805 9.11523 4.50649 9.11523 4.62023C9.11523 4.73374 9.07496 4.83207 8.99441 4.91521L6.27979 7.70874C6.24757 7.742 6.21266 7.76561 6.17507 7.77958C6.13748 7.79332 6.09721 7.8002 6.05424 7.8002C6.01128 7.8002 5.97101 7.79332 5.93342 7.77958C5.89582 7.76561 5.86092 7.742 5.8287 7.70874L3.11408 4.90689C3.0389 4.8293 3.00131 4.73374 3.00131 4.62023C3.00131 4.50649 3.04158 4.40805 3.12214 4.32491Z", fill: "#60697D" })), Il = () => {
10225
- const [e, t] = $(!1), [n, a] = $(null), [r, i] = $(/* @__PURE__ */ new Set()), [s, o] = $({ top: 0, left: 0 }), l = re(null), d = re(null), { dispatch: c, ACTION_TYPES: u } = ft(), {
10225
+ const [e, t] = $(!1), [n, a] = $(null), [r, i] = $(/* @__PURE__ */ new Set()), [s, o] = $({ top: 0, left: 0 }), l = re(null), d = re(null), { dispatch: c, ACTION_TYPES: u } = gt(), {
10226
10226
  selectedRows: f,
10227
10227
  filteredData: g,
10228
10228
  pagination: b,
@@ -10467,9 +10467,9 @@ const il = (e, t, n = {}) => {
10467
10467
  return t && B.length === 0 && r ? e.some(
10468
10468
  (_) => _.children && _.children.length > 0
10469
10469
  ) ? /* @__PURE__ */ K("div", { className: "ia-table-multi-row-header", children: [
10470
- /* @__PURE__ */ h(Bn, { children: /* @__PURE__ */ h("div", { className: "ia-table-empty-parent-cell ia-table-frozen" }) }),
10471
- /* @__PURE__ */ h(Bn, { children: f && r && t ? /* @__PURE__ */ h("div", { className: "ia-table-selection-header-cell" }) : r && t ? /* @__PURE__ */ h(sa, {}) : null })
10472
- ] }) : /* @__PURE__ */ h(Bn, { children: f && r && t ? /* @__PURE__ */ h("div", { className: "ia-table-selection-header-cell" }) : r && t ? /* @__PURE__ */ h(sa, {}) : null }) : null;
10470
+ /* @__PURE__ */ h(Pn, { children: /* @__PURE__ */ h("div", { className: "ia-table-empty-parent-cell ia-table-frozen" }) }),
10471
+ /* @__PURE__ */ h(Pn, { children: f && r && t ? /* @__PURE__ */ h("div", { className: "ia-table-selection-header-cell" }) : r && t ? /* @__PURE__ */ h(sa, {}) : null })
10472
+ ] }) : /* @__PURE__ */ h(Pn, { children: f && r && t ? /* @__PURE__ */ h("div", { className: "ia-table-selection-header-cell" }) : r && t ? /* @__PURE__ */ h(sa, {}) : null }) : null;
10473
10473
  })();
10474
10474
  if (A && !t && !n)
10475
10475
  return A;
@@ -10478,7 +10478,7 @@ const il = (e, t, n = {}) => {
10478
10478
  if (o.length <= 1) {
10479
10479
  const B = d.left_pinned_0, F = d.right_pinned_0;
10480
10480
  let x = d.normal_0;
10481
- return B && (!x || B.maxHeight > x.maxHeight) && (x = B), F && (!x || F.maxHeight > x.maxHeight) && (x = F), /* @__PURE__ */ K(Bn, { rowHeight: x, children: [
10481
+ return B && (!x || B.maxHeight > x.maxHeight) && (x = B), F && (!x || F.maxHeight > x.maxHeight) && (x = F), /* @__PURE__ */ K(Pn, { rowHeight: x, children: [
10482
10482
  r && t !== !1 && !n && (f ? /* @__PURE__ */ h("div", { className: "ia-table-selection-header-cell" }) : /* @__PURE__ */ h(sa, {})),
10483
10483
  l.map(
10484
10484
  (z, O) => !z.emptyCell && z.headerName && /* @__PURE__ */ h(
@@ -10506,7 +10506,7 @@ const il = (e, t, n = {}) => {
10506
10506
  I += x.maxHeight, k.push(x.maxHeight);
10507
10507
  const z = o.length * 19 + I, O = -(I + o.length * 19 - x.maxHeight - 19) || 0;
10508
10508
  return /* @__PURE__ */ K(
10509
- Bn,
10509
+ Pn,
10510
10510
  {
10511
10511
  rowHeight: x,
10512
10512
  children: [
@@ -10567,7 +10567,7 @@ const il = (e, t, n = {}) => {
10567
10567
  virtualizedStartCololumnIndex: o,
10568
10568
  ShowFullText: l
10569
10569
  }) => {
10570
- const { dispatch: d } = ft(), { columns: c, headerRowHeightwithIndex: u } = _e(
10570
+ const { dispatch: d } = gt(), { columns: c, headerRowHeightwithIndex: u } = _e(
10571
10571
  We((f) => ({
10572
10572
  columns: f.columns,
10573
10573
  headerRowHeightwithIndex: f.headerRowHeightwithIndex
@@ -10718,7 +10718,7 @@ const il = (e, t, n = {}) => {
10718
10718
  Math.abs(Q) > 1 && (p = p - Q);
10719
10719
  }
10720
10720
  if (S <= 0) return;
10721
- const P = L(p, S), N = B.start !== P.start || B.end !== P.end, R = Math.abs(B.start - P.start) > 2 || Math.abs(B.end - P.end) > 2;
10721
+ const P = L(p, S), N = B.start !== P.start || B.end !== P.end, R = Math.abs(B.start - P.start) > 2 || Math.abs(B.end - P.end) > 2 || G.current;
10722
10722
  N && R && P.end !== -1 && F(P), G.current = !0, w.current && clearTimeout(w.current), w.current = setTimeout(() => {
10723
10723
  G.current = !1;
10724
10724
  }, is);
@@ -10860,7 +10860,7 @@ const il = (e, t, n = {}) => {
10860
10860
  };
10861
10861
  let Pa = -1, Oa = -1, wn = null;
10862
10862
  const kl = ({ rowIndex: e, rowData: t, bodyContainerRef: n }) => {
10863
- const { dispatch: a, ACTION_TYPES: r } = ft(), { draggedRow: i, callBackRef: s, api: o } = _e(
10863
+ const { dispatch: a, ACTION_TYPES: r } = gt(), { draggedRow: i, callBackRef: s, api: o } = _e(
10864
10864
  We((x) => ({
10865
10865
  draggedRow: x.draggedRow,
10866
10866
  callBackRef: x.callBackRef,
@@ -11551,7 +11551,7 @@ const kl = ({ rowIndex: e, rowData: t, bodyContainerRef: n }) => {
11551
11551
  return ae(() => {
11552
11552
  f(c());
11553
11553
  }, [t == null ? void 0 : t.value, t == null ? void 0 : t.rowData, d]), /* @__PURE__ */ h(
11554
- Hn,
11554
+ Fn,
11555
11555
  {
11556
11556
  initialOptions: l,
11557
11557
  selectedOptions: u,
@@ -12394,20 +12394,20 @@ function Jl({
12394
12394
  const T = (j, X) => {
12395
12395
  if (!j || c && se(j).isBefore(c, "day") || u && se(j).isAfter(u, "day"))
12396
12396
  return !1;
12397
- const V = X ? F : x, J = o || "DD-MM-YYYY", le = {
12397
+ const V = X ? F : x, J = o || "DD-MM-YYYY", ce = {
12398
12398
  "DD-MM-YYYY": { day: [0, 2], month: [3, 5], year: [6, 10] },
12399
12399
  "MM-DD-YYYY": { day: [3, 5], month: [0, 2], year: [6, 10] },
12400
12400
  "YYYY-MM-DD": { day: [8, 10], month: [5, 7], year: [0, 4] }
12401
- }, oe = le[J] || le["DD-MM-YYYY"], q = parseInt(
12401
+ }, oe = ce[J] || ce["DD-MM-YYYY"], q = parseInt(
12402
12402
  V.substring(oe.day[0], oe.day[1])
12403
12403
  ), de = parseInt(
12404
12404
  V.substring(oe.month[0], oe.month[1])
12405
- ), ce = parseInt(
12405
+ ), le = parseInt(
12406
12406
  V.substring(oe.year[0], oe.year[1])
12407
12407
  );
12408
12408
  if (de < 1 || de > 12)
12409
12409
  return !1;
12410
- const ge = se(`${ce}-${de}`, "YYYY-M").daysInMonth();
12410
+ const ge = se(`${le}-${de}`, "YYYY-M").daysInMonth();
12411
12411
  if (q < 1 || q > ge)
12412
12412
  return !1;
12413
12413
  if (X && x) {
@@ -12460,7 +12460,7 @@ function Jl({
12460
12460
  return;
12461
12461
  }
12462
12462
  if (!E.includes(X)) {
12463
- const V = E.find((le) => le >= X), J = E[E.length - 1];
12463
+ const V = E.find((ce) => ce >= X), J = E[E.length - 1];
12464
12464
  p.current.setSelectionRange(
12465
12465
  V !== void 0 ? V : J,
12466
12466
  V !== void 0 ? V : J
@@ -12469,19 +12469,19 @@ function Jl({
12469
12469
  }
12470
12470
  },
12471
12471
  onChange: (j) => {
12472
- var ce;
12472
+ var le;
12473
12473
  const X = j.target, V = X.value, J = X.selectionStart;
12474
12474
  if (J == null || J < 1) return;
12475
- const le = V[J - 1];
12476
- if (!/^\d$/.test(le)) return;
12475
+ const ce = V[J - 1];
12476
+ if (!/^\d$/.test(ce)) return;
12477
12477
  const oe = J - 1;
12478
12478
  if (!E.includes(oe)) {
12479
- (ce = j.preventDefault) == null || ce.call(j), C(
12479
+ (le = j.preventDefault) == null || le.call(j), C(
12480
12480
  E.find((ge) => ge > oe) ?? E[E.length - 1]
12481
12481
  );
12482
12482
  return;
12483
12483
  }
12484
- const q = F.slice(0, oe) + le + F.slice(oe + 1);
12484
+ const q = F.slice(0, oe) + ce + F.slice(oe + 1);
12485
12485
  if (q.length > o.length) return;
12486
12486
  _(q), l == null || l(q);
12487
12487
  const de = E.indexOf(oe);
@@ -12502,10 +12502,10 @@ function Jl({
12502
12502
  const J = F.slice(0, V) + o[V] + // "D" | "M" | "Y"
12503
12503
  F.slice(V + 1);
12504
12504
  _(J), l == null || l(J);
12505
- let le = V;
12506
- for (; le > 0 && !E.includes(le - 1); )
12507
- le--;
12508
- C(le);
12505
+ let ce = V;
12506
+ for (; ce > 0 && !E.includes(ce - 1); )
12507
+ ce--;
12508
+ C(ce);
12509
12509
  return;
12510
12510
  }
12511
12511
  /^\d$/.test(j.key) || j.preventDefault();
@@ -12549,7 +12549,7 @@ function Jl({
12549
12549
  return;
12550
12550
  }
12551
12551
  if (!E.includes(X)) {
12552
- const V = E.find((le) => le >= X), J = E[E.length - 1];
12552
+ const V = E.find((ce) => ce >= X), J = E[E.length - 1];
12553
12553
  S.current.setSelectionRange(
12554
12554
  V !== void 0 ? V : J,
12555
12555
  V !== void 0 ? V : J
@@ -12558,19 +12558,19 @@ function Jl({
12558
12558
  }
12559
12559
  },
12560
12560
  onChange: (j) => {
12561
- var ce;
12561
+ var le;
12562
12562
  const X = j.target, V = X.value, J = X.selectionStart;
12563
12563
  if (J == null || J < 1) return;
12564
- const le = V[J - 1];
12565
- if (!/^\d$/.test(le)) return;
12564
+ const ce = V[J - 1];
12565
+ if (!/^\d$/.test(ce)) return;
12566
12566
  const oe = J - 1;
12567
12567
  if (!E.includes(oe)) {
12568
- (ce = j.preventDefault) == null || ce.call(j), m(
12568
+ (le = j.preventDefault) == null || le.call(j), m(
12569
12569
  E.find((ge) => ge > oe) ?? E[E.length - 1]
12570
12570
  );
12571
12571
  return;
12572
12572
  }
12573
- const q = x.slice(0, oe) + le + x.slice(oe + 1);
12573
+ const q = x.slice(0, oe) + ce + x.slice(oe + 1);
12574
12574
  if (q.length > o.length) return;
12575
12575
  z(q), d == null || d(q);
12576
12576
  const de = E.indexOf(oe);
@@ -12591,10 +12591,10 @@ function Jl({
12591
12591
  const J = x.slice(0, V) + o[V] + // "D" | "M" | "Y"
12592
12592
  x.slice(V + 1);
12593
12593
  z(J), d == null || d(J);
12594
- let le = V;
12595
- for (; le > 0 && !E.includes(le - 1); )
12596
- le--;
12597
- m(le);
12594
+ let ce = V;
12595
+ for (; ce > 0 && !E.includes(ce - 1); )
12596
+ ce--;
12597
+ m(ce);
12598
12598
  return;
12599
12599
  }
12600
12600
  /^\d$/.test(j.key) || j.preventDefault();
@@ -12689,7 +12689,7 @@ const ql = ({
12689
12689
  if (ne) return ne;
12690
12690
  }
12691
12691
  return se(te).add(1, "month");
12692
- }), [J, le] = $(null), [oe, q] = $(null), [de, ce] = $(!1), [ge, ye] = $(!1), [pe, Pe] = $("left"), [Oe, fe] = $(null), Be = re(null), Ce = re(null), Ke = re(null), xe = re(null), [Ne, Ze] = $(null);
12692
+ }), [J, ce] = $(null), [oe, q] = $(null), [de, le] = $(!1), [ge, ye] = $(!1), [pe, Pe] = $("left"), [Oe, fe] = $(null), Be = re(null), Ce = re(null), Ze = re(null), xe = re(null), [Ne, Xe] = $(null);
12693
12693
  ae(() => {
12694
12694
  O((ne) => ne === e ? ne : e), w((ne) => ne === t ? ne : t);
12695
12695
  }, [e, t]), ae(() => {
@@ -12697,12 +12697,12 @@ const ql = ({
12697
12697
  let ne = document.getElementById(
12698
12698
  "ia-table-daterangepicker-portal"
12699
12699
  );
12700
- return ne || (ne = document.createElement("div"), ne.id = "ia-table-daterangepicker-portal", document.body.appendChild(ne)), Ze(ne), () => {
12700
+ return ne || (ne = document.createElement("div"), ne.id = "ia-table-daterangepicker-portal", document.body.appendChild(ne)), Xe(ne), () => {
12701
12701
  ne && ne.childNodes.length === 0 && document.body.contains(ne) && document.body.removeChild(ne);
12702
12702
  };
12703
12703
  }
12704
12704
  }, [o, H]);
12705
- const $e = he(
12705
+ const et = he(
12706
12706
  (ne) => {
12707
12707
  if (!ne) return "";
12708
12708
  try {
@@ -12739,12 +12739,12 @@ const ql = ({
12739
12739
  st
12740
12740
  ), [J, oe, st]);
12741
12741
  ae(() => {
12742
- H || (L($e(z)), y($e(G)));
12743
- }, [z, G, $e, H]);
12742
+ H || (L(et(z)), y(et(G)));
12743
+ }, [z, G, et, H]);
12744
12744
  const Lt = re({ startDate: "", endDate: "" });
12745
12745
  ae(() => {
12746
12746
  if (H) {
12747
- const ne = J || z, Ae = oe || G, Te = $e(ne), Le = $e(Ae);
12747
+ const ne = J || z, Ae = oe || G, Te = et(ne), Le = et(Ae);
12748
12748
  Lt.current.startDate !== Te && (L(Te), Lt.current.startDate = Te), Lt.current.endDate !== Le && (y(Le), Lt.current.endDate = Le), p((He) => He + 1);
12749
12749
  }
12750
12750
  }, [
@@ -12753,13 +12753,13 @@ const ql = ({
12753
12753
  H,
12754
12754
  z,
12755
12755
  G,
12756
- $e
12756
+ et
12757
12757
  ]);
12758
12758
  const [ie, Ee] = $({ top: 0, left: 0 }), be = he(() => {
12759
- var ht;
12759
+ var ft;
12760
12760
  if (!Ce.current)
12761
12761
  return;
12762
- const ne = Ce.current.getBoundingClientRect(), Ae = ((ht = Be.current) == null ? void 0 : ht.offsetHeight) || 450, Te = window.innerHeight - ne.bottom, Le = ne.top, He = 8;
12762
+ const ne = Ce.current.getBoundingClientRect(), Ae = ((ft = Be.current) == null ? void 0 : ft.offsetHeight) || 450, Te = window.innerHeight - ne.bottom, Le = ne.top, He = 8;
12763
12763
  let Ve;
12764
12764
  Te >= Ae + He ? Ve = ne.bottom + He : Le >= Ae + He ? Ve = ne.top - Ae - He : Le > Te ? Ve = He : Ve = ne.bottom + He, Ee({
12765
12765
  top: Ve,
@@ -12780,8 +12780,8 @@ const ql = ({
12780
12780
  ne && j(ne);
12781
12781
  const Ve = ne || te;
12782
12782
  if (Ae) {
12783
- const ht = se(Ve).isSame(Ae, "month");
12784
- V(ht ? se(Ve).add(1, "month") : Ae);
12783
+ const ft = se(Ve).isSame(Ae, "month");
12784
+ V(ft ? se(Ve).add(1, "month") : Ae);
12785
12785
  } else
12786
12786
  V(se(Ve).add(1, "month"));
12787
12787
  Ge.current = {
@@ -12802,9 +12802,9 @@ const ql = ({
12802
12802
  }
12803
12803
  }, [H, be]), ae(() => {
12804
12804
  const ne = (Ae) => {
12805
- Be.current && !Be.current.contains(Ae.target) && Ce.current && !Ce.current.contains(Ae.target) && (M(!1), ce(!1), ye(!1), I && (k != null && k.tableId) ? ((!window.iaTablePortalOpen || typeof window.iaTablePortalOpen != "object") && (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[k.tableId] = !1) : I && (window.iaTablePortalOpen[k.tableId] = !1)), Ke.current && !Ke.current.contains(Ae.target) && !Ae.target.classList.contains(
12805
+ Be.current && !Be.current.contains(Ae.target) && Ce.current && !Ce.current.contains(Ae.target) && (M(!1), le(!1), ye(!1), I && (k != null && k.tableId) ? ((!window.iaTablePortalOpen || typeof window.iaTablePortalOpen != "object") && (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[k.tableId] = !1) : I && (window.iaTablePortalOpen[k.tableId] = !1)), Ze.current && !Ze.current.contains(Ae.target) && !Ae.target.classList.contains(
12806
12806
  "ia-table-daterangepicker-month-select"
12807
- ) && ce(!1), xe.current && !xe.current.contains(Ae.target) && !Ae.target.classList.contains("ia-table-daterangepicker-year-select") && ye(!1);
12807
+ ) && le(!1), xe.current && !xe.current.contains(Ae.target) && !Ae.target.classList.contains("ia-table-daterangepicker-year-select") && ye(!1);
12808
12808
  };
12809
12809
  return document.addEventListener("mousedown", ne), () => {
12810
12810
  document.removeEventListener("mousedown", ne);
@@ -12850,13 +12850,13 @@ const ql = ({
12850
12850
  return;
12851
12851
  }
12852
12852
  if (J && oe && !s) {
12853
- const Ve = ve.parseDate(J), ht = ve.parseDate(oe);
12854
- if (Ve && ht) {
12853
+ const Ve = ve.parseDate(J), ft = ve.parseDate(oe);
12854
+ if (Ve && ft) {
12855
12855
  const Nt = ve.formatDate(
12856
12856
  Ve,
12857
12857
  "YYYY-MM-DD"
12858
12858
  ), Ut = ve.formatDate(
12859
- ht,
12859
+ ft,
12860
12860
  "YYYY-MM-DD"
12861
12861
  );
12862
12862
  n && n({
@@ -12872,7 +12872,7 @@ const ql = ({
12872
12872
  }
12873
12873
  if (He && (Ae.preventDefault(), Ae.stopPropagation()), fe(Le), W === "start" ? Le.isSame(te, "month") || j(Le.clone().startOf("month")) : W === "end" && (Le.isSame(X, "month") || V(Le.clone().startOf("month"))), He) {
12874
12874
  const Ve = ve.formatDate(Le, "YYYY-MM-DD");
12875
- W === "start" ? (le(Ve), O(Ve)) : W === "end" && (q(Ve), w(Ve));
12875
+ W === "start" ? (ce(Ve), O(Ve)) : W === "end" && (q(Ve), w(Ve));
12876
12876
  }
12877
12877
  };
12878
12878
  return document.addEventListener("keydown", ne), () => {
@@ -12917,12 +12917,12 @@ const ql = ({
12917
12917
  () => ({
12918
12918
  setLeftMonth: j,
12919
12919
  setRightMonth: V,
12920
- setTempStartDate: le,
12920
+ setTempStartDate: ce,
12921
12921
  setTempEndDate: q,
12922
- setShowMonthDropdown: ce,
12922
+ setShowMonthDropdown: le,
12923
12923
  setShowYearDropdown: ye,
12924
12924
  setActiveCalendar: Pe,
12925
- monthDropdownRef: Ke,
12925
+ monthDropdownRef: Ze,
12926
12926
  yearDropdownRef: xe,
12927
12927
  setIsOpen: M,
12928
12928
  setFocusedInput: Y,
@@ -12944,7 +12944,7 @@ const ql = ({
12944
12944
  I,
12945
12945
  k
12946
12946
  ]
12947
- ), et = De(
12947
+ ), tt = De(
12948
12948
  () => ({
12949
12949
  startDate: e,
12950
12950
  endDate: t,
@@ -12992,9 +12992,9 @@ const ql = ({
12992
12992
  ), zt = De(
12993
12993
  () => ({
12994
12994
  ...ze,
12995
- ...et
12995
+ ...tt
12996
12996
  }),
12997
- [ze, et]
12997
+ [ze, tt]
12998
12998
  );
12999
12999
  return /* @__PURE__ */ K(
13000
13000
  "div",
@@ -13036,12 +13036,12 @@ const ql = ({
13036
13036
  return;
13037
13037
  }
13038
13038
  const Te = ve.formatDate(ne, "YYYY-MM-DD");
13039
- if (le(Te), E(!0), R(""), j(se(ne)), oe) {
13039
+ if (ce(Te), E(!0), R(""), j(se(ne)), oe) {
13040
13040
  const Le = se(oe);
13041
13041
  ne.isSame(Le, "month") ? V(se(ne).add(1, "month")) : ne.isBefore(Le) ? V(Le) : V(se(ne).add(1, "month"));
13042
13042
  } else
13043
13043
  V(se(ne).add(1, "month"));
13044
- } else ne === null && (le(""), O(""), E(!0), R(""));
13044
+ } else ne === null && (ce(""), O(""), E(!0), R(""));
13045
13045
  },
13046
13046
  onEndDateStringChange: (ne) => {
13047
13047
  if (ne && typeof ne == "object" && se.isMoment(ne)) {
@@ -13065,7 +13065,7 @@ const ql = ({
13065
13065
  onErrorStateChange: R,
13066
13066
  clearErrorsTrigger: m,
13067
13067
  onClear: (ne) => {
13068
- ne.preventDefault(), ne.stopPropagation(), le(""), q(""), O(""), w(""), E(!0), P(!0), R(""), n && n({ startDate: "", endDate: "" });
13068
+ ne.preventDefault(), ne.stopPropagation(), ce(""), q(""), O(""), w(""), E(!0), P(!0), R(""), n && n({ startDate: "", endDate: "" });
13069
13069
  },
13070
13070
  isCellRenderer: I
13071
13071
  }
@@ -13349,8 +13349,8 @@ const ql = ({
13349
13349
  }
13350
13350
  };
13351
13351
  }, nc = (e) => {
13352
- var Kn, Zn, Xn, Jn, qn, pn, An, Mt, Gt, $t, It, kn, en, $n;
13353
- const { dispatch: t, ACTION_TYPES: n, toggleGroupExpansion: a } = ft(), {
13352
+ var Kn, Zn, Xn, Jn, qn, pn, An, Mt, Gt, $t, It, Bn, en, $n;
13353
+ const { dispatch: t, ACTION_TYPES: n, toggleGroupExpansion: a } = gt(), {
13354
13354
  defaultColDef: r,
13355
13355
  rowDragManaged: i,
13356
13356
  tableApi: s,
@@ -13425,11 +13425,11 @@ const ql = ({
13425
13425
  field: X = "",
13426
13426
  is_frozen: V = !1,
13427
13427
  cellRendererParams: J = {},
13428
- extra: { hideToolTip: le = !1 } = {}
13428
+ extra: { hideToolTip: ce = !1 } = {}
13429
13429
  } = M;
13430
13430
  let oe = 0;
13431
13431
  T && (L != null && L.__parentPath) && (oe = ((Xn = (Zn = L.__parentPath) == null ? void 0 : Zn.split("/")) == null ? void 0 : Xn.length) || 0, oe > 4 && (oe = 4));
13432
- const q = r.minWidth, de = M.width && M.width < q ? q : M.width, ce = ((Jn = M.cellStyle) == null ? void 0 : Jn.textAlign) || "left", ge = M.is_disabled || ((qn = M.extra) == null ? void 0 : qn.is_disabled) || ((pn = M.extra) == null ? void 0 : pn.isDisabled);
13432
+ const q = r.minWidth, de = M.width && M.width < q ? q : M.width, le = ((Jn = M.cellStyle) == null ? void 0 : Jn.textAlign) || "left", ge = M.is_disabled || ((qn = M.extra) == null ? void 0 : qn.is_disabled) || ((pn = M.extra) == null ? void 0 : pn.isDisabled);
13433
13433
  let ye = L.__isAggregationRow || !1, pe = N || {};
13434
13434
  if (B != null && B.includes(X) && (L != null && L.__rowSpanInfo)) {
13435
13435
  const me = ((Mt = (An = L.__rowSpanInfo) == null ? void 0 : An[X]) == null ? void 0 : Mt.span) || 0, dt = (($t = (Gt = L.__rowSpanInfo) == null ? void 0 : Gt[X]) == null ? void 0 : $t.isFirst) || !1;
@@ -13440,23 +13440,23 @@ const ql = ({
13440
13440
  isPinnedRight: fe,
13441
13441
  frozenPosition: Be,
13442
13442
  frozenIndex: Ce,
13443
- rightPinnedPosition: Ke
13443
+ rightPinnedPosition: Ze
13444
13444
  } = De(() => ls({
13445
13445
  isFrozen: V,
13446
13446
  column: M,
13447
13447
  frozenColumns: u,
13448
13448
  colIndex: m
13449
- }), [V, M, u, m]), xe = M.extra && M.extra.is_grouping_key === !0 || M.rowGroup, Ne = L && L[d] && Array.isArray(L[d]) && L[d].length > 0, Ze = b == null ? void 0 : b.enabled, $e = Gr(M), st = _.some((me) => me.is_frozen), Dt = M.order_of_display === 1 || !M.order_of_display && m === 0 && (st && v ? st : !st), Lt = V && (Ce === 0 || u.indexes && u.indexes.indexOf(m) === 0), ie = Ze && !xe && (V && Lt || !st && Dt), Ee = Gr(M) && W, be = Ee ? Hl(L, c) : null, Ge = be == null ? void 0 : be.id, Me = Ge ? (It = I == null ? void 0 : I.expandedGroups[Ge]) == null ? void 0 : It[Ge] : !1, ze = (
13449
+ }), [V, M, u, m]), xe = M.extra && M.extra.is_grouping_key === !0 || M.rowGroup, Ne = L && L[d] && Array.isArray(L[d]) && L[d].length > 0, Xe = b == null ? void 0 : b.enabled, et = Gr(M), st = _.some((me) => me.is_frozen), Dt = M.order_of_display === 1 || !M.order_of_display && m === 0 && (st && v ? st : !st), Lt = V && (Ce === 0 || u.indexes && u.indexes.indexOf(m) === 0), ie = Xe && !xe && (V && Lt || !st && Dt), Ee = Gr(M) && W, be = Ee ? Hl(L, c) : null, Ge = be == null ? void 0 : be.id, Me = Ge ? (It = I == null ? void 0 : I.expandedGroups[Ge]) == null ? void 0 : It[Ge] : !1, ze = (
13450
13450
  // Row grouping
13451
13451
  xe && Ne || ie || Ee && !ye
13452
13452
  );
13453
- let et = [];
13453
+ let tt = [];
13454
13454
  for (let me = 0; me < _.length; me++)
13455
13455
  if (_[me].rowGroup) {
13456
- et = _[me].originalFields;
13456
+ tt = _[me].originalFields;
13457
13457
  break;
13458
13458
  }
13459
- const zt = ee(M), ne = L && (L[c] || L.id || L[et == null ? void 0 : et[et.length - 1]] || L[zt] || y), Ae = L.__parentPath ? `${L.__parentPath}/${ne}` : ne, Te = l && l[Ae], Le = ((kn = b == null ? void 0 : b.expandedRows) == null ? void 0 : kn.includes(ne)) || !1;
13459
+ const zt = ee(M), ne = L && (L[c] || L.id || L[tt == null ? void 0 : tt[tt.length - 1]] || L[zt] || y), Ae = L.__parentPath ? `${L.__parentPath}/${ne}` : ne, Te = l && l[Ae], Le = ((Bn = b == null ? void 0 : b.expandedRows) == null ? void 0 : Bn.includes(ne)) || !1;
13460
13460
  let He = $o(
13461
13461
  L,
13462
13462
  M,
@@ -13472,12 +13472,12 @@ const ql = ({
13472
13472
  );
13473
13473
  ye = !0, me !== null && (He = me);
13474
13474
  }
13475
- const ht = he(
13475
+ const ft = he(
13476
13476
  (me) => {
13477
13477
  p && p(me, { rowData: L, column: M, rowIndex: y, colIndex: m });
13478
13478
  },
13479
13479
  [p, L, M, y, m]
13480
- ), Nt = re(null), Ut = re(null), rn = !T, Xe = rn ? !Object.prototype.hasOwnProperty.call(L, X) && kr.includes(Y) : !1, sn = S || rn && Xe || M.aggFunc && Te || !1, tt = Jo(He), kt = () => {
13480
+ ), Nt = re(null), Ut = re(null), rn = !T, Je = rn ? !Object.prototype.hasOwnProperty.call(L, X) && kr.includes(Y) : !1, sn = S || rn && Je || M.aggFunc && Te || !1, nt = Jo(He), kt = () => {
13481
13481
  var Et;
13482
13482
  const me = L.groupingLevel && ((Et = M == null ? void 0 : M.originalFields) != null && Et[L.groupingLevel]) ? M.originalFields[L.groupingLevel] : ee(M), dt = L[me];
13483
13483
  s.toggleRowGroup(Ge, y, { fieldName: me, value: dt });
@@ -13509,7 +13509,7 @@ const ql = ({
13509
13509
  ya == ne && Sa === X ? (ln = (Et = Nt.current.classList) == null ? void 0 : Et.add) == null || ln.call(Et, "ia-table-body-cell-selected") : (mn = (Qt = (Xt = Nt.current) == null ? void 0 : Xt.classList) == null ? void 0 : Qt.remove) == null || mn.call(Qt, "ia-table-body-cell-selected");
13510
13510
  }
13511
13511
  }, [L, ne, X, o]);
13512
- let ke = tt, ot = !1;
13512
+ let ke = nt, ot = !1;
13513
13513
  if (Y && !ye && (typeof Y == "function" || J && J.innerRenderer && typeof J.innerRenderer == "function")) {
13514
13514
  const me = Y && typeof Y != "function" ? J.innerRenderer : Y, dt = Yr({
13515
13515
  cellValue: He,
@@ -13543,16 +13543,16 @@ const ql = ({
13543
13543
  }
13544
13544
  );
13545
13545
  }
13546
- const gt = {
13546
+ const pt = {
13547
13547
  flex: "0 1 auto"
13548
- }, pt = Zo(M), wt = De(() => xa(pt) && He !== void 0 && He !== null ? Ol(He, f) : He, [pt, He, f]), At = (Oe ? "ia-table-frozen" : "") || (fe ? "ia-table-right-pinned" : ""), Vn = `
13549
- ia-table-body-cell ia-table-body-cell--type-${pt} ia-table-body-cell--font ia-table-body-cell--align-${ce} ia-table-${A.type}-cell ${J.disabled || ge ? "ia-table-body-cell--disabled" : ""} ${j ? "ia-table-body-cell--auto-height" : ""} ${At} ${fe ? "right-pinned" : ""} ${te} ${E} ${$e ? "ia-table-row-group-cell" : ""} ${W ? "" : "ia-table-row-group-cell--disabled"} ${T ? "ia-table-child-row-cell" : ""} ${Y && ts.includes(M.type) && !ye ? "ia-table-cell-renderer" : ""} ${D ? "ia-table-aggregation-total-row-title" : ""}
13550
- `.trim(), ba = A.height, Yn = Pe > 1 ? `${Pe * ba}px` : "100%", Dn = de, Zt = {
13548
+ }, At = Zo(M), wt = De(() => xa(At) && He !== void 0 && He !== null ? Ol(He, f) : He, [At, He, f]), mt = (Oe ? "ia-table-frozen" : "") || (fe ? "ia-table-right-pinned" : ""), Yn = `
13549
+ ia-table-body-cell ia-table-body-cell--type-${At} ia-table-body-cell--font ia-table-body-cell--align-${le} ia-table-${A.type}-cell ${J.disabled || ge ? "ia-table-body-cell--disabled" : ""} ${j ? "ia-table-body-cell--auto-height" : ""} ${mt} ${fe ? "right-pinned" : ""} ${te} ${E} ${et ? "ia-table-row-group-cell" : ""} ${W ? "" : "ia-table-row-group-cell--disabled"} ${T ? "ia-table-child-row-cell" : ""} ${Y && ts.includes(M.type) && !ye ? "ia-table-cell-renderer" : ""} ${D ? "ia-table-aggregation-total-row-title" : ""}
13550
+ `.trim(), ba = A.height, jn = Pe > 1 ? `${Pe * ba}px` : "100%", Dn = de, Zt = {
13551
13551
  width: `${Dn}px`,
13552
13552
  minWidth: `${Dn}px`,
13553
13553
  flex: `0 0 ${Dn}px`,
13554
- height: Yn,
13555
- minHeight: Yn,
13554
+ height: jn,
13555
+ minHeight: jn,
13556
13556
  position: Oe || fe ? "sticky" : "absolute",
13557
13557
  ...!Oe && !fe && {
13558
13558
  left: `${M.leftTotalWidth - de}px`
@@ -13562,7 +13562,7 @@ const ql = ({
13562
13562
  left: R ? `${Be + jt(R, z, x)}px` : 0
13563
13563
  },
13564
13564
  ...fe && {
13565
- right: `${Ke}px`
13565
+ right: `${Ze}px`
13566
13566
  },
13567
13567
  ...O
13568
13568
  };
@@ -13571,7 +13571,7 @@ const ql = ({
13571
13571
  return null;
13572
13572
  pe.span > 1 && (Zt.verticalAlign = "top", Zt.borderBottom = "1px solid #e0e0e0", Zt.alignItems = "flex-start", Zt.paddingTop = "12px", Zt.gridRow = `span ${pe.span}`);
13573
13573
  }
13574
- Object.assign(Zt, gt);
13574
+ Object.assign(Zt, pt);
13575
13575
  const Ln = Zt, xt = i && Dt, Nn = (me) => {
13576
13576
  var dt;
13577
13577
  ki(
@@ -13587,7 +13587,7 @@ const ql = ({
13587
13587
  L,
13588
13588
  He
13589
13589
  );
13590
- }, jn = Ee && Me, on = typeof wt == "object" && wt ? wt.value : wt != null ? String(wt) : "";
13590
+ }, kn = Ee && Me, on = typeof wt == "object" && wt ? wt.value : wt != null ? String(wt) : "";
13591
13591
  let Un = Y ? J != null && J.tooltipTitle ? J.tooltipTitle : (en = J.options) != null && en.length && (($n = J.options.find(
13592
13592
  (me) => me.value == wt
13593
13593
  )) == null ? void 0 : $n.label) || on : on;
@@ -13607,17 +13607,17 @@ const ql = ({
13607
13607
  location: "cell",
13608
13608
  node: me,
13609
13609
  rowIndex: y,
13610
- value: tt
13610
+ value: nt
13611
13611
  });
13612
13612
  }
13613
13613
  return /* @__PURE__ */ K(
13614
13614
  "div",
13615
13615
  {
13616
13616
  ref: Nt,
13617
- className: Vn,
13617
+ className: Yn,
13618
13618
  style: Ln,
13619
13619
  onClick: Nn,
13620
- onDoubleClick: ht,
13620
+ onDoubleClick: ft,
13621
13621
  "data-row": y,
13622
13622
  "data-row-id": ne,
13623
13623
  "data-col": m,
@@ -13628,7 +13628,7 @@ const ql = ({
13628
13628
  /* @__PURE__ */ K(
13629
13629
  "div",
13630
13630
  {
13631
- className: `ia-table-body-cell__content ${j ? "" : "text-overflow-ellipsis"} ia-table-body-cell__content--${pt}`,
13631
+ className: `ia-table-body-cell__content ${j ? "" : "text-overflow-ellipsis"} ia-table-body-cell__content--${At}`,
13632
13632
  style: {
13633
13633
  marginLeft: T && !Q && (Dt || Lt) && (xe || Me) ? `${oe * es + 20}px` : 0
13634
13634
  },
@@ -13649,16 +13649,16 @@ const ql = ({
13649
13649
  )
13650
13650
  }
13651
13651
  ),
13652
- le ? /* @__PURE__ */ h(
13652
+ ce ? /* @__PURE__ */ h(
13653
13653
  "span",
13654
13654
  {
13655
13655
  ref: Ut,
13656
- style: gt,
13656
+ style: pt,
13657
13657
  className: `ia-table-original-content ia-table-width-inherit d-block ${j ? "" : "text-overflow-ellipsis"}`,
13658
- children: sn ? null : (_t.isValidElement(ke) ? ke : xa(pt) && wt !== void 0 ? on : ke) || (T ? "" : "-")
13658
+ children: sn ? null : (_t.isValidElement(ke) ? ke : xa(At) && wt !== void 0 ? on : ke) || (T ? "" : "-")
13659
13659
  }
13660
13660
  ) : /* @__PURE__ */ h(
13661
- Fn,
13661
+ zn,
13662
13662
  {
13663
13663
  targetRef: Ut,
13664
13664
  title: Un,
@@ -13668,9 +13668,9 @@ const ql = ({
13668
13668
  "span",
13669
13669
  {
13670
13670
  ref: Ut,
13671
- style: gt,
13671
+ style: pt,
13672
13672
  className: `ia-table-original-content ia-table-width-inherit d-block ${j ? "" : "text-overflow-ellipsis"}`,
13673
- children: sn ? null : (_t.isValidElement(ke) ? ke : xa(pt) && wt !== void 0 ? on : ke) || (T ? "" : "-")
13673
+ children: sn ? null : (_t.isValidElement(ke) ? ke : xa(At) && wt !== void 0 ? on : ke) || (T ? "" : "-")
13674
13674
  }
13675
13675
  )
13676
13676
  }
@@ -13678,7 +13678,7 @@ const ql = ({
13678
13678
  ]
13679
13679
  }
13680
13680
  ),
13681
- jn && Ge && k && /* @__PURE__ */ h(
13681
+ kn && Ge && k && /* @__PURE__ */ h(
13682
13682
  _l,
13683
13683
  {
13684
13684
  groupId: Ge,
@@ -13712,8 +13712,8 @@ const ql = ({
13712
13712
  virtualizedStartCololumnIndex: b,
13713
13713
  uniqueIdField: A
13714
13714
  }) => {
13715
- var V, J, le;
13716
- const { dispatch: I, toggleGroupExpansion: k, ACTION_TYPES: B, getRowStyle: F } = ft(), _ = (e == null ? void 0 : e[A]) || (e == null ? void 0 : e.id) || t, {
13715
+ var V, J, ce;
13716
+ const { dispatch: I, toggleGroupExpansion: k, ACTION_TYPES: B, getRowStyle: F } = gt(), _ = (e == null ? void 0 : e[A]) || (e == null ? void 0 : e.id) || t, {
13717
13717
  contextColumns: x,
13718
13718
  expandedChildRows: z,
13719
13719
  selectedRowId: O,
@@ -13755,13 +13755,13 @@ const ql = ({
13755
13755
  }
13756
13756
  });
13757
13757
  else {
13758
- let ce = !1;
13759
- O ? (de = !1, ce = !0) : de = !0, I({
13758
+ let le = !1;
13759
+ O ? (de = !1, le = !0) : de = !0, I({
13760
13760
  type: B.SET_SELECTED_ROWS,
13761
13761
  payload: {
13762
13762
  isSelected: de,
13763
13763
  selectUnselectRowId: q,
13764
- isUnchecked: ce,
13764
+ isUnchecked: le,
13765
13765
  singleEntry: !0
13766
13766
  }
13767
13767
  });
@@ -13818,7 +13818,7 @@ const ql = ({
13818
13818
  const q = oe;
13819
13819
  if (p && q && (q.span === 0 || !q.isFirst))
13820
13820
  return null;
13821
- const ce = y, ge = (q == null ? void 0 : q.span) || 1, ye = ge > 1 ? `${ge * ce}px` : "100%", pe = (e == null ? void 0 : e.is_disabled) || !1;
13821
+ const le = y, ge = (q == null ? void 0 : q.span) || 1, ye = ge > 1 ? `${ge * le}px` : "100%", pe = (e == null ? void 0 : e.is_disabled) || !1;
13822
13822
  return /* @__PURE__ */ h(
13823
13823
  "div",
13824
13824
  {
@@ -13849,7 +13849,7 @@ const ql = ({
13849
13849
  }
13850
13850
  );
13851
13851
  })(),
13852
- a && o && E && !j && ((le = (J = e.__rowSpanInfo) == null ? void 0 : J.Selection) == null ? void 0 : le.span) !== 0 && /* @__PURE__ */ h("div", { className: "ia-table-body-selection-cell ia-table-frozen " }),
13852
+ a && o && E && !j && ((ce = (J = e.__rowSpanInfo) == null ? void 0 : J.Selection) == null ? void 0 : ce.span) !== 0 && /* @__PURE__ */ h("div", { className: "ia-table-body-selection-cell ia-table-frozen " }),
13853
13853
  r && /* @__PURE__ */ h(
13854
13854
  "div",
13855
13855
  {
@@ -13866,7 +13866,7 @@ const ql = ({
13866
13866
  }
13867
13867
  ),
13868
13868
  Q.map((oe, q) => {
13869
- var ce;
13869
+ var le;
13870
13870
  const de = ee(oe);
13871
13871
  return oe.colId = de, /* @__PURE__ */ h(
13872
13872
  ac,
@@ -13879,7 +13879,7 @@ const ql = ({
13879
13879
  rowIndex: t,
13880
13880
  colIndex: b.current + q,
13881
13881
  onClick: n,
13882
- rowSpanInfo: (ce = e == null ? void 0 : e.__rowSpanInfo) == null ? void 0 : ce[de],
13882
+ rowSpanInfo: (le = e == null ? void 0 : e.__rowSpanInfo) == null ? void 0 : le[de],
13883
13883
  customRowStyle: Y,
13884
13884
  loadingRef: c,
13885
13885
  virtualized: i,
@@ -14321,8 +14321,8 @@ const lc = ({
14321
14321
  }, []), ae(() => {
14322
14322
  const fe = () => {
14323
14323
  if (l != null && l.current) {
14324
- const Ke = l.current.getBoundingClientRect();
14325
- T(Ke.height);
14324
+ const Ze = l.current.getBoundingClientRect();
14325
+ T(Ze.height);
14326
14326
  }
14327
14327
  };
14328
14328
  fe();
@@ -14347,9 +14347,9 @@ const lc = ({
14347
14347
  if (I && A.currentLoadedPage * A.pageSize === b.length && (c.current = !1), !b.length) return [];
14348
14348
  if (I) return b;
14349
14349
  {
14350
- const { currentPage: fe, pageSize: Be, totalItems: Ce, currentLoadedPage: Ke } = A, Ne = (b.length === Ce ? k ? 0 : Ke - 1 : fe - 1) * Be;
14351
- let Ze = B && Ne === 0 ? b.length : Ne + Be;
14352
- return Ze < b.length && k && (Ze = b.length), X > 0 && (Ze += X), y && (Ze += 1), b.slice(Ne, Ze);
14350
+ const { currentPage: fe, pageSize: Be, totalItems: Ce, currentLoadedPage: Ze } = A, Ne = (b.length === Ce ? k ? 0 : Ze - 1 : fe - 1) * Be;
14351
+ let Xe = B && Ne === 0 ? b.length : Ne + Be;
14352
+ return Xe < b.length && k && (Xe = b.length), X > 0 && (Xe += X), y && (Xe += 1), b.slice(Ne, Xe);
14353
14353
  }
14354
14354
  }, [
14355
14355
  b,
@@ -14357,10 +14357,10 @@ const lc = ({
14357
14357
  A.pageSize,
14358
14358
  I
14359
14359
  ]), J = re({});
14360
- let le = [...V];
14360
+ let ce = [...V];
14361
14361
  De(() => {
14362
- var Ce, Ke, xe, Ne;
14363
- if (!m.some((Ze) => Ze.autoHeight)) return;
14362
+ var Ce, Ze, xe, Ne;
14363
+ if (!m.some((Xe) => Xe.autoHeight)) return;
14364
14364
  const Be = oc(
14365
14365
  V,
14366
14366
  m,
@@ -14371,16 +14371,16 @@ const lc = ({
14371
14371
  padding: v.padding
14372
14372
  }
14373
14373
  );
14374
- (Ke = (Ce = Q.current) == null ? void 0 : Ce.setAllHeight) == null || Ke.call(Ce, Be), (Ne = (xe = Q.current) == null ? void 0 : xe.setPreviousCount) == null || Ne.call(xe, 0), Object.keys(Be).length > 0 && M(Be);
14374
+ (Ze = (Ce = Q.current) == null ? void 0 : Ce.setAllHeight) == null || Ze.call(Ce, Be), (Ne = (xe = Q.current) == null ? void 0 : xe.setPreviousCount) == null || Ne.call(xe, 0), Object.keys(Be).length > 0 && M(Be);
14375
14375
  }, [V, m, w, v]);
14376
14376
  const oe = Nl({
14377
- dataLength: le.length,
14377
+ dataLength: ce.length,
14378
14378
  threshold: 20,
14379
14379
  rowHeight: v.height,
14380
14380
  bufferSize: 10,
14381
14381
  containerRef: D,
14382
14382
  scrollContainerRef: l,
14383
- currentPageData: le,
14383
+ currentPageData: ce,
14384
14384
  expandedChildRowsByParentIndex: J,
14385
14385
  expandedRowGroups: te,
14386
14386
  rowHeightMap: H,
@@ -14391,9 +14391,9 @@ const lc = ({
14391
14391
  var Ce;
14392
14392
  (Ce = p == null ? void 0 : p.rowRenderer) != null && Ce.setRenderedRange && p.rowRenderer.setRenderedRange(fe, Be);
14393
14393
  }
14394
- }), { visibleRange: q, rowHeight: de, updatedData: ce } = oe;
14394
+ }), { visibleRange: q, rowHeight: de, updatedData: le } = oe;
14395
14395
  let ge = De(() => As(
14396
- le,
14396
+ ce,
14397
14397
  de,
14398
14398
  s,
14399
14399
  _,
@@ -14404,7 +14404,7 @@ const lc = ({
14404
14404
  H,
14405
14405
  O
14406
14406
  ), [
14407
- le,
14407
+ ce,
14408
14408
  de,
14409
14409
  s,
14410
14410
  _,
@@ -14415,8 +14415,8 @@ const lc = ({
14415
14415
  H,
14416
14416
  O
14417
14417
  ]);
14418
- const ye = A == null ? void 0 : A.pageSize, pe = Object.keys(L || {}).length > 0, Pe = C && !pe, Oe = pe && le.length === 0;
14419
- return (C || Pe && le.length === 0) && (ge = ye * de), Oe && le.length === 0 && (ge = Math.max(ge, 200)), j && C && (ge += Rn * de), Ll({ scrollContainerRef: l, tableInstance: G }), /* @__PURE__ */ h(
14418
+ const ye = A == null ? void 0 : A.pageSize, pe = Object.keys(L || {}).length > 0, Pe = C && !pe, Oe = pe && ce.length === 0;
14419
+ return (C || Pe && ce.length === 0) && (ge = ye * de), Oe && ce.length === 0 && (ge = Math.max(ge, 200)), j && C && (ge += Rn * de), Ll({ scrollContainerRef: l, tableInstance: G }), /* @__PURE__ */ h(
14420
14420
  "div",
14421
14421
  {
14422
14422
  className: "ia-table-body-content",
@@ -14453,8 +14453,8 @@ const lc = ({
14453
14453
  children: /* @__PURE__ */ h(
14454
14454
  sc,
14455
14455
  {
14456
- currentRenderData: ce,
14457
- currentPageData: le,
14456
+ currentRenderData: le,
14457
+ currentPageData: ce,
14458
14458
  onRowClick: e,
14459
14459
  selectable: t,
14460
14460
  expandable: n,
@@ -14602,7 +14602,7 @@ const lc = ({
14602
14602
  X
14603
14603
  ), J = re(V);
14604
14604
  J.current < V && (J.current = V);
14605
- const le = Fo({
14605
+ const ce = Fo({
14606
14606
  headerRows: j,
14607
14607
  columns: te,
14608
14608
  // Pass empty array for pinned columns
@@ -14619,8 +14619,8 @@ const lc = ({
14619
14619
  const {
14620
14620
  visibleColumns: q = [],
14621
14621
  virtualizedHeaderRows: de = [],
14622
- handleScroll: ce
14623
- } = le, ge = {
14622
+ handleScroll: le
14623
+ } = ce, ge = {
14624
14624
  width: u.length > 0 ? "auto" : "fit-content",
14625
14625
  ...d || c ? {} : { width: `${oe}px` }
14626
14626
  }, ye = d || c ? te : q, pe = re(null), Pe = re(!1);
@@ -14643,7 +14643,7 @@ const lc = ({
14643
14643
  }, 0);
14644
14644
  }
14645
14645
  }
14646
- } : ce,
14646
+ } : le,
14647
14647
  ref: c ? pe : a,
14648
14648
  children: /* @__PURE__ */ K("div", { className: "ia-table-table-container", style: ge, children: [
14649
14649
  s && i != 0 && /* @__PURE__ */ h("div", { style: { flexShrink: 0 }, ref: r, children: /* @__PURE__ */ h(
@@ -14699,13 +14699,13 @@ const lc = ({
14699
14699
  maxHeight: k === "auto" ? "368px" : k
14700
14700
  },
14701
14701
  onScroll: (Ce) => {
14702
- var Ke;
14703
- if (C && m && ((Ke = x == null ? void 0 : x.current) != null && Ke.onPageChange) && !d && !c && !R.current) {
14704
- const { scrollTop: xe, scrollHeight: Ne, clientHeight: Ze } = Ce.target;
14705
- if (xe + Ze >= Ne * 0.8) {
14702
+ var Ze;
14703
+ if (C && m && ((Ze = x == null ? void 0 : x.current) != null && Ze.onPageChange) && !d && !c && !R.current) {
14704
+ const { scrollTop: xe, scrollHeight: Ne, clientHeight: Xe } = Ce.target;
14705
+ if (xe + Xe >= Ne * 0.8) {
14706
14706
  R.current = !0;
14707
- const $e = _ + 1;
14708
- x.current.onPageChange($e);
14707
+ const et = _ + 1;
14708
+ x.current.onPageChange(et);
14709
14709
  }
14710
14710
  }
14711
14711
  (pe.current || e.current) && !Pe.current && (Pe.current = !0, requestAnimationFrame(() => {
@@ -15531,7 +15531,7 @@ const Ac = ({ tableInstance: e, callBackRef: t, api: n }) => (ae(() => {
15531
15531
  ShowFullText: Q = !1,
15532
15532
  detailRendererTable: H
15533
15533
  }) => {
15534
- const { dispatch: M, ACTION_TYPES: W } = ft(), Y = re(null), te = re({}), j = re(null);
15534
+ const { dispatch: M, ACTION_TYPES: W } = gt(), Y = re(null), te = re({}), j = re(null);
15535
15535
  ae(() => {
15536
15536
  M({
15537
15537
  type: W.SET_MASTER_DETAIL_CONFIG,
@@ -15954,13 +15954,13 @@ const Tt = class Tt {
15954
15954
  uniqueIdField: "id",
15955
15955
  onBlockStateChanged: null,
15956
15956
  // Callback for block state changes
15957
- purgeStrategy: _n,
15957
+ purgeStrategy: Gn,
15958
15958
  // Default purge strategy
15959
- enablePersistence: Gn,
15959
+ enablePersistence: Qn,
15960
15960
  // Enable cache persistence
15961
- persistenceStorageKey: Qn,
15961
+ persistenceStorageKey: Wn,
15962
15962
  // Key for storing in localStorage
15963
- persistenceOptions: Wn,
15963
+ persistenceOptions: Vn,
15964
15964
  isPaginationMode: !1,
15965
15965
  // Flag to indicate if we're using pagination vs scrolling
15966
15966
  ...t
@@ -16805,10 +16805,10 @@ class Tc {
16805
16805
  onBlockStateChanged: null,
16806
16806
  // Callback for block state changes
16807
16807
  // Cache configuration
16808
- enablePersistence: Gn,
16809
- persistenceStorageKey: Qn,
16810
- persistenceOptions: Wn,
16811
- purgeStrategy: _n,
16808
+ enablePersistence: Qn,
16809
+ persistenceStorageKey: Wn,
16810
+ persistenceOptions: Vn,
16811
+ purgeStrategy: Gn,
16812
16812
  // Default pageSize for server-side data fetching
16813
16813
  pageSize: 10,
16814
16814
  // Flag to indicate if we're using pagination
@@ -16861,10 +16861,10 @@ class Tc {
16861
16861
  // Block state change callback
16862
16862
  onBlockStateChanged: this.handleBlockStateChanged.bind(this),
16863
16863
  // Advanced cache configuration
16864
- purgeStrategy: this.params.purgeStrategy || _n,
16865
- enablePersistence: this.params.enablePersistence || Gn,
16866
- persistenceStorageKey: this.params.persistenceStorageKey || Qn,
16867
- persistenceOptions: this.params.persistenceOptions || Wn,
16864
+ purgeStrategy: this.params.purgeStrategy || Gn,
16865
+ enablePersistence: this.params.enablePersistence || Qn,
16866
+ persistenceStorageKey: this.params.persistenceStorageKey || Wn,
16867
+ persistenceOptions: this.params.persistenceOptions || Vn,
16868
16868
  pageSize: this.params.pageSize,
16869
16869
  // Pass pageSize to the cache
16870
16870
  updatedPageSizeRef: this.params.updatedPageSizeRef,
@@ -18178,10 +18178,10 @@ const Oc = (e, t = {}) => {
18178
18178
  maxBlocksInCache: a = ma,
18179
18179
  cacheOverflowSize: r = Ca,
18180
18180
  rowHeight: i,
18181
- purgeStrategy: s = _n,
18182
- enablePersistence: o = Gn,
18183
- persistenceStorageKey: l = Qn,
18184
- persistenceOptions: d = Wn,
18181
+ purgeStrategy: s = Gn,
18182
+ enablePersistence: o = Qn,
18183
+ persistenceStorageKey: l = Wn,
18184
+ persistenceOptions: d = Vn,
18185
18185
  uniqueIdField: c = "id",
18186
18186
  fetchDataMethodRef: u = null,
18187
18187
  apiUrl: f = null,
@@ -18215,8 +18215,8 @@ const Oc = (e, t = {}) => {
18215
18215
  }, [I, k.current, P, n]);
18216
18216
  const R = {
18217
18217
  ...t.context || {},
18218
- updateData: (q, de, ce) => {
18219
- t.onDataUpdate && t.onDataUpdate(q, de, ce);
18218
+ updateData: (q, de, le) => {
18219
+ t.onDataUpdate && t.onDataUpdate(q, de, le);
18220
18220
  },
18221
18221
  tableContextRef: w
18222
18222
  }, D = he(() => {
@@ -18307,7 +18307,11 @@ const Oc = (e, t = {}) => {
18307
18307
  });
18308
18308
  m.current = q, p.current = null;
18309
18309
  const de = D();
18310
- return de && (q.setDatasource(de), k.current || W(0, B)), L(!0), () => {
18310
+ if (de && (q.setDatasource(de), !k.current)) {
18311
+ const { startRow: le, endRow: ge } = S.current || {};
18312
+ le !== 0 ? W(le, ge) : W(0, B);
18313
+ }
18314
+ return L(!0), () => {
18311
18315
  };
18312
18316
  }, [
18313
18317
  e,
@@ -18344,16 +18348,16 @@ const Oc = (e, t = {}) => {
18344
18348
  var Pe, Oe, fe;
18345
18349
  if (!N.current || !m.current)
18346
18350
  return Array.isArray(e) ? e.slice(q, de + 1) : [];
18347
- const ce = S.current.startRow, ge = S.current.endRow;
18351
+ const le = S.current.startRow, ge = S.current.endRow;
18348
18352
  let ye = [];
18349
18353
  const pe = q % (de - q + 1) === 0 || (de + 1) % (de - q + 1) === 0;
18350
- if ((pe || Math.abs(ce - q) > 5 || Math.abs(ge - de) > 5) && pe) {
18354
+ if ((pe || Math.abs(le - q) > 5 || Math.abs(ge - de) > 5) && pe) {
18351
18355
  const Be = [];
18352
18356
  let Ce = !1;
18353
- const Ke = ((fe = (Oe = (Pe = w.current) == null ? void 0 : Pe.state) == null ? void 0 : Oe.data) == null ? void 0 : fe.length) || 0;
18357
+ const Ze = ((fe = (Oe = (Pe = w.current) == null ? void 0 : Pe.state) == null ? void 0 : Oe.data) == null ? void 0 : fe.length) || 0;
18354
18358
  for (let xe = q; xe <= de; xe++) {
18355
18359
  const Ne = m.current.getRow(xe);
18356
- Ne && Ne.data ? (Be.push(Ne.data), Ce = !0) : xe < Ke && Be.push({
18360
+ Ne && Ne.data ? (Be.push(Ne.data), Ce = !0) : xe < Ze && Be.push({
18357
18361
  id: `loading-${xe}`,
18358
18362
  isLoading: !0,
18359
18363
  rowIndex: xe
@@ -18377,11 +18381,11 @@ const Oc = (e, t = {}) => {
18377
18381
  if (!N.current || !m.current) return;
18378
18382
  const {
18379
18383
  purge: de = !1,
18380
- partialRefresh: ce = !1,
18384
+ partialRefresh: le = !1,
18381
18385
  preserveFields: ge = [],
18382
18386
  userInitiated: ye = !1
18383
18387
  } = q, pe = { ...S.current }, Pe = P > 2e4;
18384
- de ? m.current.purgeCache() : ce ? m.current.refreshCachePartial(ge) : m.current.refreshCache(), setTimeout(
18388
+ de ? m.current.purgeCache() : le ? m.current.refreshCachePartial(ge) : m.current.refreshCache(), setTimeout(
18385
18389
  () => {
18386
18390
  m.current && de && !ye && ((S.current.startRow !== pe.startRow || S.current.endRow !== pe.endRow) && (S.current = pe, m.current.setViewportRange(
18387
18391
  pe.startRow,
@@ -18402,17 +18406,17 @@ const Oc = (e, t = {}) => {
18402
18406
  }, []), V = he(() => {
18403
18407
  !N.current || !m.current || m.current.clearPersistedCache();
18404
18408
  }, []), J = he(() => {
18405
- var de, ce, ge, ye, pe;
18409
+ var de, le, ge, ye, pe;
18406
18410
  if (!N.current || !m.current) return null;
18407
18411
  const q = m.current.getCacheState();
18408
18412
  return !q || !q.cache ? {
18409
18413
  cache: m.current.infiniteCache,
18410
- rowCount: ((ge = (ce = (de = w.current) == null ? void 0 : de.state) == null ? void 0 : ce.data) == null ? void 0 : ge.length) || 0,
18414
+ rowCount: ((ge = (le = (de = w.current) == null ? void 0 : de.state) == null ? void 0 : le.data) == null ? void 0 : ge.length) || 0,
18411
18415
  lastRowKnown: C,
18412
18416
  blockCount: ((pe = (ye = m.current.infiniteCache) == null ? void 0 : ye.getBlockCount) == null ? void 0 : pe.call(ye)) || 0,
18413
18417
  status: m.current.infiniteCache ? "active" : "inactive"
18414
18418
  } : q;
18415
- }, [C]), le = he(
18419
+ }, [C]), ce = he(
18416
18420
  (q, de = !1) => {
18417
18421
  var ge, ye;
18418
18422
  if (!q || typeof q.getRows != "function")
@@ -18423,7 +18427,7 @@ const Oc = (e, t = {}) => {
18423
18427
  const Oe = m.current.getCacheState();
18424
18428
  Oe != null && Oe.cache && Oe.cache.setBlockData(pe, Pe);
18425
18429
  });
18426
- const ce = {
18430
+ const le = {
18427
18431
  // Core properties
18428
18432
  _originalDatasource: q,
18429
18433
  _loadingBlocks: {},
@@ -18455,7 +18459,7 @@ const Oc = (e, t = {}) => {
18455
18459
  if (this._loadingBlocks[Ce])
18456
18460
  return;
18457
18461
  this._loadingBlocks[Ce] = !0;
18458
- const Ke = {
18462
+ const Ze = {
18459
18463
  request: Object.assign(
18460
18464
  {
18461
18465
  startRow: Pe,
@@ -18469,34 +18473,34 @@ const Oc = (e, t = {}) => {
18469
18473
  success: (Ne) => {
18470
18474
  if (this._isDestroyed) return;
18471
18475
  delete this._loadingBlocks[Ce], delete this._pendingRequests[Ce];
18472
- const Ze = Ne.rowData || [];
18476
+ const Xe = Ne.rowData || [];
18473
18477
  if (t.onDataUpdate && !pe.noDataUpdate) {
18474
- const $e = requestAnimationFrame(() => {
18475
- this._isDestroyed || t.onDataUpdate(Ze, Ce, Ne);
18478
+ const et = requestAnimationFrame(() => {
18479
+ this._isDestroyed || t.onDataUpdate(Xe, Ce, Ne);
18476
18480
  });
18477
- this._pendingRAFs || (this._pendingRAFs = []), this._pendingRAFs.push($e);
18481
+ this._pendingRAFs || (this._pendingRAFs = []), this._pendingRAFs.push(et);
18478
18482
  }
18479
18483
  pe.successCallback && pe.successCallback(
18480
- Ze,
18484
+ Xe,
18481
18485
  Ne.lastRow || Ne.rowCount
18482
18486
  );
18483
18487
  },
18484
18488
  // Error handler - optimized for performance
18485
18489
  fail: () => {
18486
18490
  if (this._isDestroyed) return;
18487
- const { [Ce]: Ne, ...Ze } = this._loadingBlocks, { [Ce]: $e, ...st } = this._pendingRequests;
18488
- this._loadingBlocks = Ze, this._pendingRequests = st, pe.failCallback && pe.failCallback();
18491
+ const { [Ce]: Ne, ...Xe } = this._loadingBlocks, { [Ce]: et, ...st } = this._pendingRequests;
18492
+ this._loadingBlocks = Xe, this._pendingRequests = st, pe.failCallback && pe.failCallback();
18489
18493
  }
18490
18494
  };
18491
18495
  try {
18492
- const Ne = this._originalDatasource.getRows(Ke);
18496
+ const Ne = this._originalDatasource.getRows(Ze);
18493
18497
  Ne != null && Ne.abort && (this._pendingRequests[Ce] = Ne);
18494
18498
  } catch (Ne) {
18495
18499
  console.error("Error calling datasource getRows:", Ne), delete this._loadingBlocks[Ce], (xe = pe.failCallback) == null || xe.call(pe);
18496
18500
  }
18497
18501
  }
18498
18502
  };
18499
- return m.current && (m.current.setDatasource(ce, !de), de && m.current.resetCache()), ce;
18503
+ return m.current && (m.current.setDatasource(le, !de), de && m.current.resetCache()), le;
18500
18504
  },
18501
18505
  [B, t.onDataUpdate, T, E]
18502
18506
  );
@@ -18512,7 +18516,7 @@ const Oc = (e, t = {}) => {
18512
18516
  setFilterModel: M,
18513
18517
  refreshCache: te,
18514
18518
  // Server-side data source management
18515
- setServerSideDataSource: le,
18519
+ setServerSideDataSource: ce,
18516
18520
  // Configuration methods
18517
18521
  setPurgeStrategy: j,
18518
18522
  setPersistence: X,
@@ -18533,7 +18537,7 @@ const Oc = (e, t = {}) => {
18533
18537
  M,
18534
18538
  te,
18535
18539
  // Server-side data source management
18536
- le,
18540
+ ce,
18537
18541
  // Configuration methods
18538
18542
  j,
18539
18543
  X,
@@ -18673,9 +18677,9 @@ const Oc = (e, t = {}) => {
18673
18677
  });
18674
18678
  });
18675
18679
  const f = za(t);
18676
- On(t, f);
18677
- const g = xn(t);
18678
- (t.isSelectAllRecords || (a = t.selectedRows) != null && a.length) && Mn({ state: t, action: { payload: null } }), n({
18680
+ xn(t, f);
18681
+ const g = Mn(t);
18682
+ (t.isSelectAllRecords || (a = t.selectedRows) != null && a.length) && Hn({ state: t, action: { payload: null } }), n({
18679
18683
  type: U.APPLY_FILTERS,
18680
18684
  payload: {
18681
18685
  isChildRowEmpty: g,
@@ -18691,9 +18695,9 @@ const Oc = (e, t = {}) => {
18691
18695
  t.columnFilters,
18692
18696
  f
18693
18697
  ), b = za(t);
18694
- On(t, b);
18695
- const A = xn(t);
18696
- (t.isSelectAllRecords || (c = t.selectedRows) != null && c.length) && Mn({ state: t, action: { payload: null } }), n({
18698
+ xn(t, b);
18699
+ const A = Mn(t);
18700
+ (t.isSelectAllRecords || (c = t.selectedRows) != null && c.length) && Hn({ state: t, action: { payload: null } }), n({
18697
18701
  type: U.APPLY_FILTERS,
18698
18702
  payload: {
18699
18703
  isChildRowEmpty: A,
@@ -19427,7 +19431,7 @@ const Oc = (e, t = {}) => {
19427
19431
  try {
19428
19432
  let { columns: v, api: L } = ((w = e.current) == null ? void 0 : w.state) || {};
19429
19433
  v.length || (v = t);
19430
- const C = zn(v, L, !0);
19434
+ const C = _n(v, L, !0);
19431
19435
  return C && Array.isArray(C) && C.length > 0 ? C : [];
19432
19436
  } catch (v) {
19433
19437
  return console.error("Error in getAllColumns:", v), [];
@@ -19581,7 +19585,7 @@ const Oc = (e, t = {}) => {
19581
19585
  null,
19582
19586
  150
19583
19587
  );
19584
- return zn(y, C).map((p) => {
19588
+ return _n(y, C).map((p) => {
19585
19589
  const S = ee(p);
19586
19590
  return {
19587
19591
  // Return a simplified column object similar to AG Grid's format
@@ -19620,7 +19624,7 @@ const Oc = (e, t = {}) => {
19620
19624
  frozenColumns: P
19621
19625
  } = ((L = e.current) == null ? void 0 : L.state) || {};
19622
19626
  let N = -1, R = null, D = null, Q = null;
19623
- typeof v == "object" && v !== null && (R = v, N = zn(m, p).findIndex(
19627
+ typeof v == "object" && v !== null && (R = v, N = _n(m, p).findIndex(
19624
19628
  (j) => ee(j) === R.colId
19625
19629
  ), Q = R.colDef.pinned === "left" ? "leftPinned" : R.colDef.pinned === "right" ? "rightPinned" : !1, D = S.current.querySelector(
19626
19630
  `[data-row="${w}"][data-pinned="${Q}"][data-field="${ee(R.colDef)}"]`
@@ -19996,11 +20000,11 @@ const Oc = (e, t = {}) => {
19996
20000
  isSaveViewEnabled: X = !1,
19997
20001
  isSavingViewLoading: V = !1,
19998
20002
  maxSavedViews: J = 50,
19999
- deleteViewPromptText: le = "Deleted can not be recover!.",
20003
+ deleteViewPromptText: ce = "Deleted can not be recover!.",
20000
20004
  savedViewsOptions: oe = [],
20001
20005
  handleSetDefaultView: q = null,
20002
20006
  handleSavedViewClick: de = null,
20003
- handleEditSaveView: ce = null,
20007
+ handleEditSaveView: le = null,
20004
20008
  handleSaveAndApply: ge = null,
20005
20009
  handleDeleteViewClick: ye = null,
20006
20010
  // for row Height
@@ -20011,11 +20015,11 @@ const Oc = (e, t = {}) => {
20011
20015
  // Nested table props
20012
20016
  nestedTable: Be = !1,
20013
20017
  nestedTableComponent: Ce = null,
20014
- enableNestedTableCloseButton: Ke = !1,
20018
+ enableNestedTableCloseButton: Ze = !1,
20015
20019
  onCloseNestedTable: xe,
20016
20020
  downloadExcelHandler: Ne,
20017
- downloadCSVHandler: Ze,
20018
- copyToClipboardHandler: $e,
20021
+ downloadCSVHandler: Xe,
20022
+ copyToClipboardHandler: et,
20019
20023
  ShowFullText: st = !0,
20020
20024
  hideNotification: Dt = !1,
20021
20025
  selectable: Lt = !0,
@@ -20024,49 +20028,49 @@ const Oc = (e, t = {}) => {
20024
20028
  disableSelectAllRecords: Ee = !1,
20025
20029
  ...be
20026
20030
  }, Ge) => {
20027
- const Me = be != null && be.paginationPageSize ? be == null ? void 0 : be.paginationPageSize : [10, 20], ze = Array.isArray(e) ? e.length : 0, et = re(null), zt = re([]), ne = re(!0), Ae = re(null), Te = re(!1), Le = re(
20031
+ const Me = be != null && be.paginationPageSize ? be == null ? void 0 : be.paginationPageSize : [10, 20], ze = Array.isArray(e) ? e.length : 0, tt = re(null), zt = re([]), ne = re(!0), Ae = re(null), Te = re(!1), Le = re(
20028
20032
  D && !O && !G ? ze : be.defaultPageSize || 10
20029
- ), He = re(null), Ve = re(null), ht = re(!1), Nt = re(null), [Ut, rn] = $(0), [Xe] = $(() => E || `smartGrid-${Date.now()}`), sn = m ? n : "fit-content", tt = De(() => {
20033
+ ), He = re(null), Ve = re(null), ft = re(!1), Nt = re(null), [Ut, rn] = $(0), [Je] = $(() => E || `smartGrid-${Date.now()}`), sn = m ? n : "fit-content", nt = De(() => {
20030
20034
  const Ie = O && !ze || !ze && !O;
20031
20035
  return Te.current = Ie, Ie;
20032
- }, [O, e]), [kt, we] = $([]), [ke, ot] = $([]), [gt, pt] = $([]), wt = re([]), Kt = re(1), Je = re({
20036
+ }, [O, e]), [kt, we] = $([]), [ke, ot] = $([]), [pt, At] = $([]), wt = re([]), Kt = re(1), qe = re({
20033
20037
  totalItems: 0,
20034
20038
  totalPages: 1,
20035
20039
  currentPage: 1,
20036
20040
  isCountUnknown: !0
20037
- }), [At, Vn] = $(
20041
+ }), [mt, Yn] = $(
20038
20042
  D && !O && !G ? ze : be.defaultPageSize || 10
20039
20043
  );
20040
20044
  ae(() => {
20041
20045
  const Ie = D && !O && !G ? ze : be.defaultPageSize || 10;
20042
- Le.current = Ie, Vn(Ie);
20046
+ Le.current = Ie, Yn(Ie);
20043
20047
  }, [e, be.defaultPageSize]);
20044
- const [ba, Yn] = $(be.defaultSort || null), [Dn, Zt] = $({}), [Ln, xt] = $(tt), [Nn, jn] = $(() => ({
20048
+ const [ba, jn] = $(be.defaultSort || null), [Dn, Zt] = $({}), [Ln, xt] = $(nt), [Nn, kn] = $(() => ({
20045
20049
  startRow: 0,
20046
- endRow: (D && !O && !G ? ze : At || be.defaultPageSize || 10) - 1
20050
+ endRow: (D && !O && !G ? ze : mt || be.defaultPageSize || 10) - 1
20047
20051
  // Exactly one page, no buffer
20048
20052
  }));
20049
20053
  ae(() => {
20050
20054
  if (D) {
20051
- const Ie = D && !O && !G ? ze : At || be.defaultPageSize || 10;
20052
- jn({
20055
+ const Ie = D && !O && !G ? ze : mt || be.defaultPageSize || 10;
20056
+ kn({
20053
20057
  startRow: 0,
20054
20058
  endRow: Ie
20055
20059
  });
20056
20060
  }
20057
20061
  }, [e]), ae(() => {
20058
- tt || xt(!1);
20059
- }, [tt]), ae(() => {
20062
+ nt || xt(!1);
20063
+ }, [nt]), ae(() => {
20060
20064
  Nt.current = O;
20061
20065
  }, [O]), ae(() => (ne.current = !0, () => {
20062
- var Ie, nt, je, Ue, at;
20063
- if (ne.current = !1, (nt = (Ie = He.current) == null ? void 0 : Ie.dataSourceRef) != null && nt.current) {
20064
- const mt = He.current.dataSourceRef.current;
20065
- mt.destroy && typeof mt.destroy == "function" && mt.destroy();
20066
+ var Ie, at, je, Ue, $e;
20067
+ if (ne.current = !1, (at = (Ie = He.current) == null ? void 0 : Ie.dataSourceRef) != null && at.current) {
20068
+ const ut = He.current.dataSourceRef.current;
20069
+ ut.destroy && typeof ut.destroy == "function" && ut.destroy();
20066
20070
  }
20067
- if ((at = (Ue = (je = He.current) == null ? void 0 : je.modelRef) == null ? void 0 : Ue.current) != null && at.infiniteCache) {
20068
- const mt = He.current.modelRef.current.infiniteCache;
20069
- mt.eventListeners && (mt.eventListeners = {});
20071
+ if (($e = (Ue = (je = He.current) == null ? void 0 : je.modelRef) == null ? void 0 : Ue.current) != null && $e.infiniteCache) {
20072
+ const ut = He.current.modelRef.current.infiniteCache;
20073
+ ut.eventListeners && (ut.eventListeners = {});
20070
20074
  }
20071
20075
  window.iaTableKeyHandlerCleanup && (window.iaTableKeyHandlerCleanup(), window.iaTableSelectedCell = null, window.iaTableKeyHandlerInitialized = !1, window.iaTableState = {
20072
20076
  selectedCells: /* @__PURE__ */ new Map(),
@@ -20075,8 +20079,8 @@ const Oc = (e, t = {}) => {
20075
20079
  // Currently active table instance
20076
20080
  instanceKeyHandlers: /* @__PURE__ */ new Map()
20077
20081
  // Map of tableInstanceId -> keyHandler
20078
- }), window._pageTransitions && window._pageTransitions[Xe] && delete window._pageTransitions[Xe], window[Xe] && delete window[Xe];
20079
- }), [Xe]);
20082
+ }), window._pageTransitions && window._pageTransitions[Je] && delete window._pageTransitions[Je], window[Je] && delete window[Je];
20083
+ }), [Je]);
20080
20084
  const {
20081
20085
  enableIndexedDBCache: on,
20082
20086
  enableStreamingLoad: Un,
@@ -20084,32 +20088,32 @@ const Oc = (e, t = {}) => {
20084
20088
  binaryFormat: Zn,
20085
20089
  extremelyLargeDatasetThreshold: Xn
20086
20090
  } = p, Jn = v.force || ze > 5e3, [qn] = $({}), pn = he(
20087
- (Ie, nt, je = {}) => {
20088
- var Ue, at, mt;
20091
+ (Ie, at, je = {}) => {
20092
+ var Ue, $e, ut;
20089
20093
  if (Ie && Array.isArray(Ie) && Ie.length >= 0) {
20090
- const Fe = Ie || [], lt = nt + 1, Ct = lt - 1, ut = Le.current;
20094
+ const Fe = Ie || [], lt = at + 1, Ct = lt - 1, ht = Le.current;
20091
20095
  if (Te.current) {
20092
- const Bt = D ? wt.current.length > 0 || wt.current.length > 0 ? wt.current : [] : [], qe = lt === 1 ? Fe : [...Bt, ...Fe];
20093
- if (wt.current = D ? qe : [], je && je.totalCount !== void 0) {
20096
+ const Bt = D ? wt.current.length > 0 || wt.current.length > 0 ? wt.current : [] : [], Ke = lt === 1 ? Fe : [...Bt, ...Fe];
20097
+ if (wt.current = D ? Ke : [], je && je.totalCount !== void 0) {
20094
20098
  const St = je.totalCount;
20095
- Je.current.totalItems = St, Je.current.isCountUnknown = !1, Je.current.totalPages = Math.ceil(St / ut) || 1, D && Fe.length > 0 ? pt(qe) : D && Fe.length === 0 ? (Je.current.totalPages = Ct, Je.current.currentPage = Ct, pt(qe)) : we(qe);
20096
- } else if (Fe.length > 0 && Fe.length < ut) {
20099
+ qe.current.totalItems = St, qe.current.isCountUnknown = !1, qe.current.totalPages = Math.ceil(St / ht) || 1, D && Fe.length > 0 ? At(Ke) : D && Fe.length === 0 ? (qe.current.totalPages = Ct, qe.current.currentPage = Ct, At(Ke)) : we(Ke);
20100
+ } else if (Fe.length > 0 && Fe.length < ht) {
20097
20101
  Kt.current = lt;
20098
- const St = Ct * ut + Fe.length;
20099
- Je.current.isCountUnknown = !1, Je.current.totalItems = St, Je.current.totalPages = lt, D ? pt(qe) : we(qe);
20102
+ const St = Ct * ht + Fe.length;
20103
+ qe.current.isCountUnknown = !1, qe.current.totalItems = St, qe.current.totalPages = lt, D ? At(Ke) : we(Ke);
20100
20104
  } else if (Fe.length === 0 && lt > 1) {
20101
20105
  Kt.current = Ct;
20102
- const St = Ct * ut;
20103
- Je.current.isCountUnknown = !1, Je.current.totalItems = St, Je.current.totalPages = Ct, Je.current.currentPage = Ct;
20104
- const cn = (mt = (at = (Ue = He.current) == null ? void 0 : Ue.modelRef) == null ? void 0 : at.current) == null ? void 0 : mt.infiniteCache;
20106
+ const St = Ct * ht;
20107
+ qe.current.isCountUnknown = !1, qe.current.totalItems = St, qe.current.totalPages = Ct, qe.current.currentPage = Ct;
20108
+ const cn = (ut = ($e = (Ue = He.current) == null ? void 0 : Ue.modelRef) == null ? void 0 : $e.current) == null ? void 0 : ut.infiniteCache;
20105
20109
  if (cn) {
20106
20110
  const lr = Ct - 1, Vt = cn.getBlockData(lr);
20107
20111
  Vt && Array.isArray(Vt) && Vt.length > 0 && we(Vt);
20108
20112
  }
20109
- } else Fe.length === ut ? (Je.current.totalPages = lt, D ? pt(qe) : we(qe), Kt.current < lt && Math.max(
20113
+ } else Fe.length === ht ? (qe.current.totalPages = lt, D ? At(Ke) : we(Ke), Kt.current < lt && Math.max(
20110
20114
  Kt.current,
20111
20115
  lt
20112
- ) !== Kt.current && (Kt.current = Kt)) : D ? pt(qe) : we(Fe);
20116
+ ) !== Kt.current && (Kt.current = Kt)) : D ? At(Ke) : we(Fe);
20113
20117
  } else
20114
20118
  ot(Ie);
20115
20119
  xt(!1);
@@ -20119,21 +20123,21 @@ const Oc = (e, t = {}) => {
20119
20123
  ), An = {
20120
20124
  firstRenderedRow: 0,
20121
20125
  lastRenderedRow: ze || kt.length,
20122
- setRenderedRange: (Ie, nt) => {
20123
- An.firstRenderedRow = Ie, An.lastRenderedRow = nt;
20126
+ setRenderedRange: (Ie, at) => {
20127
+ An.firstRenderedRow = Ie, An.lastRenderedRow = at;
20124
20128
  }
20125
- }, Mt = Oc(tt ? null : e, {
20129
+ }, Mt = Oc(nt ? null : e, {
20126
20130
  threshold: v.threshold || Jr,
20127
20131
  maxBlocksInCache: v.maxBlocksInCache || ma,
20128
20132
  cacheOverflowSize: v.cacheOverflowSize || Ca,
20129
20133
  rowHeight: v.rowHeight || fn[pe],
20130
- purgeStrategy: v.purgeStrategy || _n,
20131
- enablePersistence: v.enablePersistence || Gn,
20132
- persistenceStorageKey: v.persistenceStorageKey || Qn,
20133
- persistenceOptions: v.persistenceOptions || Wn,
20134
+ purgeStrategy: v.purgeStrategy || Gn,
20135
+ enablePersistence: v.enablePersistence || Qn,
20136
+ persistenceStorageKey: v.persistenceStorageKey || Wn,
20137
+ persistenceOptions: v.persistenceOptions || Vn,
20134
20138
  uniqueIdField: a,
20135
- fetchDataMethodRef: tt ? Nt : null,
20136
- apiUrl: tt ? G : null,
20139
+ fetchDataMethodRef: nt ? Nt : null,
20140
+ apiUrl: nt ? G : null,
20137
20141
  initialFilterModel: Dn,
20138
20142
  initialSortModel: ba,
20139
20143
  force: Jn,
@@ -20142,7 +20146,7 @@ const Oc = (e, t = {}) => {
20142
20146
  enableEnhancedWorker: Kn,
20143
20147
  binaryFormat: Zn,
20144
20148
  extremelyLargeDatasetThreshold: Xn || qr,
20145
- pageSize: At,
20149
+ pageSize: mt,
20146
20150
  onDataUpdate: pn,
20147
20151
  context: null,
20148
20152
  // Will update this after creating tableApi
@@ -20151,14 +20155,14 @@ const Oc = (e, t = {}) => {
20151
20155
  updatedPageSizeRef: Le,
20152
20156
  isServerSideRef: Te,
20153
20157
  tableContextRef: Ae,
20154
- tableId: Xe
20158
+ tableId: Je
20155
20159
  });
20156
20160
  He.current = Mt;
20157
20161
  const {
20158
20162
  shouldUseCacheRef: Gt,
20159
20163
  cacheReady: $t,
20160
20164
  setVisibleRange: It,
20161
- setSortModel: kn,
20165
+ setSortModel: Bn,
20162
20166
  setFilterModel: en,
20163
20167
  refreshCache: $n,
20164
20168
  setServerSideDataSource: me
@@ -20169,24 +20173,24 @@ const Oc = (e, t = {}) => {
20169
20173
  uniqueIdField: a,
20170
20174
  shouldUseCacheRef: Gt,
20171
20175
  infiniteCache: Mt,
20172
- tableContainerRef: et,
20176
+ tableContainerRef: tt,
20173
20177
  data: e,
20174
- isServerSide: tt,
20178
+ isServerSide: nt,
20175
20179
  infiniteScroll: D,
20176
20180
  serverData: kt,
20177
- pageSize: At,
20181
+ pageSize: mt,
20178
20182
  selectedRowsRef: zt,
20179
20183
  setRefreshCounter: rn,
20180
20184
  refreshCache: $n,
20181
20185
  setLoading: xt,
20182
- paginationRelatedRef: Je,
20183
- setVisibleRange: jn,
20186
+ paginationRelatedRef: qe,
20187
+ setVisibleRange: kn,
20184
20188
  setCacheVisibleRange: It,
20185
20189
  cachedBlockData: qn,
20186
20190
  cacheReady: $t,
20187
20191
  gridOptions: S,
20188
20192
  getRowData: H,
20189
- tableId: Xe
20193
+ tableId: Je
20190
20194
  }), Et = {
20191
20195
  ...dt,
20192
20196
  rowRenderer: An,
@@ -20223,45 +20227,45 @@ const Oc = (e, t = {}) => {
20223
20227
  ]);
20224
20228
  const Xt = he(
20225
20229
  (Ie) => {
20226
- var lt, Ct, ut, Bt;
20227
- const nt = Te.current, je = He.current;
20228
- if (ht.current)
20230
+ var lt, Ct, ht, Bt;
20231
+ const at = Te.current, je = He.current;
20232
+ if (ft.current)
20229
20233
  return;
20230
- !D && nt && xt(!0);
20231
- const Ue = Le.current || At || 10;
20232
- if (!nt) {
20233
- const qe = Math.ceil(ze / Ue);
20234
- if (Ie < 1 || Ie > qe) {
20235
- console.warn(`Page ${Ie} out of range (1-${qe})`), xt(!1);
20234
+ !D && at && xt(!0);
20235
+ const Ue = Le.current || mt || 10;
20236
+ if (!at) {
20237
+ const Ke = Math.ceil(ze / Ue);
20238
+ if (Ie < 1 || Ie > Ke) {
20239
+ console.warn(`Page ${Ie} out of range (1-${Ke})`), xt(!1);
20236
20240
  return;
20237
20241
  }
20238
20242
  }
20239
- if (jo(Xe), window._pageTransitions[Xe][Ie]) {
20243
+ if (jo(Je), window._pageTransitions[Je][Ie]) {
20240
20244
  xt(!1);
20241
20245
  return;
20242
20246
  }
20243
- window._pageTransitions[Xe][Ie] = !0, window && (window[Xe] = {
20247
+ window._pageTransitions[Je][Ie] = !0, window && (window[Je] = {
20244
20248
  _targetPage: Ie,
20245
20249
  _forceReload: !0
20246
20250
  });
20247
- const at = (Ie - 1) * Ue, mt = at + Ue - 1;
20248
- if (Je.current.currentPage = Ie, Gt.current) {
20251
+ const $e = (Ie - 1) * Ue, ut = $e + Ue - 1;
20252
+ if (qe.current.currentPage = Ie, kn((Ke) => Ke && Ke.startRow === $e && Ke.endRow === ut ? Ke : { startRow: $e, endRow: ut }), Gt.current) {
20249
20253
  je && typeof je.setVisibleData == "function" && je.setVisibleData([]);
20250
- const qe = (lt = je == null ? void 0 : je.dataSourceRef) == null ? void 0 : lt.current, St = (Bt = (ut = (Ct = He.current) == null ? void 0 : Ct.modelRef) == null ? void 0 : ut.current) == null ? void 0 : Bt.infiniteCache;
20251
- qe && St && typeof qe.updateCacheReference == "function" && qe.updateCacheReference(St);
20252
- const cn = Math.floor(at / Ue);
20254
+ const Ke = (lt = je == null ? void 0 : je.dataSourceRef) == null ? void 0 : lt.current, St = (Bt = (ht = (Ct = He.current) == null ? void 0 : Ct.modelRef) == null ? void 0 : ht.current) == null ? void 0 : Bt.infiniteCache;
20255
+ Ke && St && typeof Ke.updateCacheReference == "function" && Ke.updateCacheReference(St);
20256
+ const cn = Math.floor($e / Ue);
20253
20257
  if (St && St.isBlockCached(cn)) {
20254
20258
  const Vt = St.getBlockData(cn);
20255
- Vt && Array.isArray(Vt) && Vt.length > 0 ? (nt ? we(Vt) : ot(Vt), xt(!1)) : (we([]), It(at, mt));
20259
+ Vt && Array.isArray(Vt) && Vt.length > 0 ? (at ? we(Vt) : ot(Vt), xt(!1)) : (we([]), It($e, ut));
20256
20260
  } else
20257
- It(at, mt);
20261
+ It($e, ut);
20258
20262
  }
20259
20263
  const Fe = setTimeout(() => {
20260
- window._pageTransitions && window._pageTransitions[Xe] && window._pageTransitions[Xe] && (window._pageTransitions[Xe] = {});
20261
- const qe = setTimeout(() => {
20264
+ window._pageTransitions && window._pageTransitions[Je] && window._pageTransitions[Je] && (window._pageTransitions[Je] = {});
20265
+ const Ke = setTimeout(() => {
20262
20266
  xt(!1);
20263
20267
  }, 3e3);
20264
- return () => clearTimeout(qe);
20268
+ return () => clearTimeout(Ke);
20265
20269
  }, 100);
20266
20270
  return () => {
20267
20271
  clearTimeout(Fe);
@@ -20270,26 +20274,26 @@ const Oc = (e, t = {}) => {
20270
20274
  [It, e]
20271
20275
  ), Qt = he(
20272
20276
  (Ie) => {
20273
- if (xt(!0), Je.current.currentPage = 1, window[Xe] = {
20277
+ if (xt(!0), qe.current.currentPage = 1, window[Je] = {
20274
20278
  _targetPage: 1
20275
- }, Yn(Ie), Gt.current) {
20276
- kn(Ie), setTimeout(() => {
20279
+ }, jn(Ie), Gt.current) {
20280
+ Bn(Ie), setTimeout(() => {
20277
20281
  It(0, Le.current - 1);
20278
20282
  }, 10);
20279
20283
  return;
20280
20284
  }
20281
20285
  },
20282
- [kn, It]
20286
+ [Bn, It]
20283
20287
  );
20284
20288
  ae(() => {
20285
20289
  const Ie = (Ue) => {
20286
20290
  if (Ue.type === "paginationChanged" && Ue.paginationState) {
20287
- const at = Ue.paginationState.pageSize !== Le.current;
20288
- Ue.paginationState.pageSize && (Le.current = Ue.paginationState.pageSize, Vn(Ue.paginationState.pageSize)), Ue.paginationState.page !== void 0 && Xt(
20289
- at ? 1 : Ue.paginationState.page
20291
+ const $e = Ue.paginationState.pageSize !== Le.current;
20292
+ Ue.paginationState.pageSize && (Le.current = Ue.paginationState.pageSize, Yn(Ue.paginationState.pageSize)), Ue.paginationState.page !== void 0 && Xt(
20293
+ $e ? 1 : Ue.paginationState.page
20290
20294
  );
20291
20295
  }
20292
- }, nt = (Ue) => {
20296
+ }, at = (Ue) => {
20293
20297
  Ue.type === "sortChanged" && Qt(Ue.sortState);
20294
20298
  }, je = Ae.current;
20295
20299
  if (je)
@@ -20298,40 +20302,40 @@ const Oc = (e, t = {}) => {
20298
20302
  Ie
20299
20303
  ), je.tableApi.addEventListener(
20300
20304
  "sortChanged",
20301
- nt
20305
+ at
20302
20306
  ), () => {
20303
20307
  je && (je.tableApi.removeEventListener(
20304
20308
  "paginationChanged",
20305
20309
  Ie
20306
20310
  ), je.tableApi.removeEventListener(
20307
20311
  "sortChanged",
20308
- nt
20312
+ at
20309
20313
  ));
20310
20314
  };
20311
20315
  }, [Xt, Qt]);
20312
20316
  const mn = he(
20313
20317
  (Ie) => {
20314
20318
  if (Zt(Ie), Gt.current) {
20315
- en(Ie), Je.current.currentPage = 1;
20319
+ en(Ie), qe.current.currentPage = 1;
20316
20320
  return;
20317
20321
  }
20318
20322
  },
20319
20323
  [en]
20320
20324
  ), Cn = he(
20321
20325
  (Ie) => {
20322
- window[Xe] = {
20326
+ window[Je] = {
20323
20327
  _targetPage: 1
20324
20328
  };
20325
- const nt = Ie ? { _search: Ie } : {};
20326
- Gt.current && Te.current ? (xt(!0), ht.current = !0, en(nt, { isRefreshData: !0 }), It(0, Le.current - 1), Kt.current = 1, Je.current = {
20329
+ const at = Ie ? { _search: Ie } : {};
20330
+ Gt.current && Te.current ? (xt(!0), ft.current = !0, en(at, { isRefreshData: !0 }), It(0, Le.current - 1), Kt.current = 1, qe.current = {
20327
20331
  totalItems: 0,
20328
20332
  totalPages: 1,
20329
20333
  currentPage: 1,
20330
20334
  isCountUnknown: !0
20331
20335
  }, wt.current = [], window._pageTransitions && (window._pageTransitions = { 1: !0 }), setTimeout(() => {
20332
- ht.current = !1;
20333
- }, 500)) : (ht.current = !0, en(nt, { isRefreshData: !0 }), It(0, Le.current - 1), setTimeout(() => {
20334
- ht.current = !1;
20336
+ ft.current = !1;
20337
+ }, 500)) : (ft.current = !0, en(at, { isRefreshData: !0 }), It(0, Le.current - 1), setTimeout(() => {
20338
+ ft.current = !1;
20335
20339
  }, 100));
20336
20340
  },
20337
20341
  [en, It]
@@ -20342,15 +20346,15 @@ const Oc = (e, t = {}) => {
20342
20346
  saveViewOptionsRef: Gi
20343
20347
  } = zc({
20344
20348
  downloadExcelHandler: Ne,
20345
- downloadCSVHandler: Ze,
20346
- copyToClipboardHandler: $e,
20349
+ downloadCSVHandler: Xe,
20350
+ copyToClipboardHandler: et,
20347
20351
  handleSetDefaultView: q,
20348
20352
  handleSavedViewClick: de,
20349
- handleEditSaveView: ce,
20353
+ handleEditSaveView: le,
20350
20354
  handleSaveAndApply: ge,
20351
20355
  handleDeleteViewClick: ye,
20352
20356
  maxSavedViews: J,
20353
- deleteViewPromptText: le,
20357
+ deleteViewPromptText: ce,
20354
20358
  onSelectionChanged: I,
20355
20359
  onRowDragStart: k,
20356
20360
  onRowDragEnd: B,
@@ -20385,9 +20389,9 @@ const Oc = (e, t = {}) => {
20385
20389
  () => fe ? {
20386
20390
  ...tn,
20387
20391
  // Expose tableId for alignment functionality
20388
- tableId: Xe
20392
+ tableId: Je
20389
20393
  } : null,
20390
- [tn, Xe, fe]
20394
+ [tn, Je, fe]
20391
20395
  ), ae(() => {
20392
20396
  let Ie = null;
20393
20397
  return t.length && tn.api && (Ie = setTimeout(() => {
@@ -20395,73 +20399,73 @@ const Oc = (e, t = {}) => {
20395
20399
  }, 100)), () => clearTimeout(Ie);
20396
20400
  }, [t.length, e == null ? void 0 : e.length]);
20397
20401
  const Wt = De(() => {
20398
- const Ie = kt.length > 0 && kt.length < At, { totalItems: nt, totalPages: je, isCountUnknown: Ue, currentPage: at } = Je.current, mt = !Ue && at === je && je > 0;
20399
- if (tt)
20402
+ const Ie = kt.length > 0 && kt.length < mt, { totalItems: at, totalPages: je, isCountUnknown: Ue, currentPage: $e } = qe.current, ut = !Ue && $e === je && je > 0;
20403
+ if (nt)
20400
20404
  return {
20401
- totalItems: Math.max(nt, kt.length),
20402
- totalPages: mt ? je : Ie ? at : Math.max(at, je),
20403
- currentPage: at,
20405
+ totalItems: Math.max(at, kt.length),
20406
+ totalPages: ut ? je : Ie ? $e : Math.max($e, je),
20407
+ currentPage: $e,
20404
20408
  isCountUnknown: Ue,
20405
20409
  enablePaginationWhenCountUnknown: !0,
20406
20410
  displayNextPageButton: !0,
20407
- pageSize: At
20411
+ pageSize: mt
20408
20412
  };
20409
20413
  {
20410
- const Fe = ze, lt = At || 10, Ct = Math.max(1, Math.ceil(Fe / lt));
20414
+ const Fe = ze, lt = mt || 10, Ct = Math.max(1, Math.ceil(Fe / lt));
20411
20415
  return {
20412
20416
  pageSize: lt,
20413
20417
  totalItems: Fe,
20414
20418
  totalPages: Ct,
20415
- currentPage: Math.min(at, Ct),
20419
+ currentPage: Math.min($e, Ct),
20416
20420
  isCountUnknown: !1
20417
20421
  // Always known count for client-side
20418
20422
  };
20419
20423
  }
20420
20424
  }, [
20421
- tt,
20422
- At,
20425
+ nt,
20426
+ mt,
20423
20427
  kt,
20424
20428
  ke,
20425
- gt,
20429
+ pt,
20426
20430
  e,
20427
- At
20431
+ mt
20428
20432
  ]);
20429
20433
  ae(() => {
20430
- var Ie, nt, je, Ue, at, mt;
20434
+ var Ie, at, je, Ue, $e, ut;
20431
20435
  try {
20432
20436
  let Fe = [];
20433
- if (!tt && Gt.current && $t)
20437
+ if (!nt && Gt.current && $t)
20434
20438
  if (Li(
20435
20439
  Mt.modelRef,
20436
20440
  e
20437
20441
  ))
20438
20442
  Fe = e;
20439
20443
  else {
20440
- const Bt = Le.current || 10, qe = (Je.current.currentPage - 1) * Bt, St = Math.min(
20441
- qe + Bt,
20444
+ const Bt = Le.current || 10, Ke = (qe.current.currentPage - 1) * Bt, St = Math.min(
20445
+ Ke + Bt,
20442
20446
  (e == null ? void 0 : e.length) || 0
20443
20447
  ), cn = Object.keys(
20444
- ((nt = (Ie = Ae.current) == null ? void 0 : Ie.state) == null ? void 0 : nt.columnFilters) || {}
20448
+ ((at = (Ie = Ae.current) == null ? void 0 : Ie.state) == null ? void 0 : at.columnFilters) || {}
20445
20449
  ).length;
20446
- ke.length > 0 || cn ? Fe = ke : Fe = e.slice(qe, St);
20450
+ ke.length > 0 || cn ? Fe = ke : Fe = e.slice(Ke, St);
20447
20451
  }
20448
- else if (tt)
20449
- D && tt ? Fe = gt : Fe = kt;
20452
+ else if (nt)
20453
+ D && nt ? Fe = pt : Fe = kt;
20450
20454
  else {
20451
- const ut = At || 10, Bt = (Je.current.currentPage - 1) * ut, qe = Math.min(Bt + ut, (e == null ? void 0 : e.length) || 0);
20452
- ze <= (v.threshold || 1e3) ? Fe = e : Fe = Array.isArray(e) ? e.slice(Bt, qe) : [];
20455
+ const ht = mt || 10, Bt = (qe.current.currentPage - 1) * ht, Ke = Math.min(Bt + ht, (e == null ? void 0 : e.length) || 0);
20456
+ ze <= (v.threshold || 1e3) ? Fe = e : Fe = Array.isArray(e) ? e.slice(Bt, Ke) : [];
20453
20457
  }
20454
20458
  if (!be.enableRowSpan || !be.rowSpanColumn || !(Fe != null && Fe.length))
20455
- Fe = Fe.map((ut) => (delete ut.__rowSpanInfo, ut)) || [];
20459
+ Fe = Fe.map((ht) => (delete ht.__rowSpanInfo, ht)) || [];
20456
20460
  else {
20457
- const { processedData: ut } = Rs(
20461
+ const { processedData: ht } = Rs(
20458
20462
  Fe,
20459
20463
  be.rowSpanColumn,
20460
20464
  a,
20461
20465
  Ve.current,
20462
20466
  Ls
20463
20467
  );
20464
- Fe = ut;
20468
+ Fe = ht;
20465
20469
  }
20466
20470
  const Ct = !((((Ue = (je = Ae.current) == null ? void 0 : je.state) == null ? void 0 : Ue.data) || []).length === 0 && Fe.length === 0);
20467
20471
  Fe && Ct && Ae.current.dispatch({
@@ -20477,15 +20481,15 @@ const Oc = (e, t = {}) => {
20477
20481
  } catch (Fe) {
20478
20482
  console.error("Error generating tableData:", Fe);
20479
20483
  let lt = [];
20480
- const ut = !((((mt = (at = Ae.current) == null ? void 0 : at.state) == null ? void 0 : mt.data) || []).length === 0 && lt.length === 0);
20481
- if (!tt && Array.isArray(e)) {
20482
- const Bt = (Je.current.currentPage - 1) * At;
20484
+ const ht = !((((ut = ($e = Ae.current) == null ? void 0 : $e.state) == null ? void 0 : ut.data) || []).length === 0 && lt.length === 0);
20485
+ if (!nt && Array.isArray(e)) {
20486
+ const Bt = (qe.current.currentPage - 1) * mt;
20483
20487
  lt = e.slice(
20484
20488
  Bt,
20485
- Math.min(Bt + At, ze)
20489
+ Math.min(Bt + mt, ze)
20486
20490
  );
20487
20491
  }
20488
- lt && ut && Ae.current.dispatch({
20492
+ lt && ht && Ae.current.dispatch({
20489
20493
  type: Ae.current.ACTION_TYPES.SET_DATA,
20490
20494
  payload: lt,
20491
20495
  meta: {
@@ -20497,15 +20501,15 @@ const Oc = (e, t = {}) => {
20497
20501
  });
20498
20502
  }
20499
20503
  }, [
20500
- tt,
20504
+ nt,
20501
20505
  $t,
20502
- At,
20506
+ mt,
20503
20507
  ze,
20504
20508
  e,
20505
20509
  kt,
20506
20510
  ke,
20507
20511
  D,
20508
- gt,
20512
+ pt,
20509
20513
  Wt
20510
20514
  ]), ae(() => {
20511
20515
  Ln && Te.current && Ae.current.dispatch({
@@ -20533,7 +20537,7 @@ const Oc = (e, t = {}) => {
20533
20537
  return /* @__PURE__ */ h(
20534
20538
  "div",
20535
20539
  {
20536
- ref: et,
20540
+ ref: tt,
20537
20541
  className: `ia-table-enterprise-table-container d-flex flex-column position-relative overflow-hidden ${Yi ? "ia-table-without-top-border" : ""} ${ji ? "ia-table-without-bottom-border" : ""}`,
20538
20542
  children: /* @__PURE__ */ h("div", { className: "ia-table-enterprise-table", children: /* @__PURE__ */ h(
20539
20543
  Ks,
@@ -20544,9 +20548,9 @@ const Oc = (e, t = {}) => {
20544
20548
  childKeyField: r,
20545
20549
  tableApi: Et,
20546
20550
  tableActions: be.actions || {},
20547
- serverSide: tt,
20551
+ serverSide: nt,
20548
20552
  pageSize: Wt.pageSize,
20549
- tableId: Xe,
20553
+ tableId: Je,
20550
20554
  alignedGrids: T,
20551
20555
  defaultColDef: i,
20552
20556
  initialExpandedColumnGroups: or,
@@ -20558,7 +20562,7 @@ const Oc = (e, t = {}) => {
20558
20562
  pinnedTopRows: s,
20559
20563
  pinnedBottomRows: o,
20560
20564
  getRowStyle: l,
20561
- tableInstance: et,
20565
+ tableInstance: tt,
20562
20566
  smartGridMenuOptions: j,
20563
20567
  purgeClosedRowNodes: Y,
20564
20568
  detailRendererTable: te,
@@ -20583,7 +20587,7 @@ const Oc = (e, t = {}) => {
20583
20587
  height: sn,
20584
20588
  headerHeight: A,
20585
20589
  pagination: D ? !1 : be.pagination !== !1,
20586
- pageSize: At,
20590
+ pageSize: mt,
20587
20591
  tableHeader: d,
20588
20592
  topRightOptions: c,
20589
20593
  topLeftOptions: b,
@@ -20592,7 +20596,7 @@ const Oc = (e, t = {}) => {
20592
20596
  bottomRightOptions: g,
20593
20597
  additionalButtons: Pe,
20594
20598
  adjustTableHeightServerSide: m,
20595
- tableId: Xe,
20599
+ tableId: Je,
20596
20600
  alignedGrids: T,
20597
20601
  onScroll: Qi,
20598
20602
  masterDetail: P,
@@ -20607,7 +20611,7 @@ const Oc = (e, t = {}) => {
20607
20611
  shouldRenderTable: fe,
20608
20612
  nestedTable: Be,
20609
20613
  nestedTableComponent: Ce,
20610
- enableNestedTableCloseButton: Ke,
20614
+ enableNestedTableCloseButton: Ze,
20611
20615
  onCloseNestedTable: xe,
20612
20616
  showTableSettingActionTab: be.showTableSettingActionTab,
20613
20617
  showTableSettingFormatTab: be.showTableSettingFormatTab,